:root{
  --gim-navy:#07162d;
  --gim-navy-2:#0e2748;
  --gim-blue:#1167d8;
  --gim-orange:#f59e0b;
  --gim-green:#159447;
  --gim-red:#c93b3b;
  --gim-bg:#f2f5f9;
  --gim-card:#ffffff;
  --gim-text:#10213a;
  --gim-muted:#67758a;
  --gim-border:#dfe5ed;
  --gim-safe-top:env(safe-area-inset-top,0px);
  --gim-safe-bottom:env(safe-area-inset-bottom,0px);
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
  background:var(--gim-bg);
  color:var(--gim-text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing:antialiased;
}

body{
  min-height:100dvh;
  overscroll-behavior-y:none;
}

button,
input,
select,
textarea{
  font:inherit;
}

button,
a{
  -webkit-tap-highlight-color:transparent;
}

button{
  cursor:pointer;
}

.gim-app{
  width:100%;
  max-width:840px;
  min-height:100dvh;
  margin:0 auto;
  padding-bottom:
    calc(92px + var(--gim-safe-bottom));
}

.gim-header{
  position:sticky;
  top:0;
  z-index:100;
  min-height:
    calc(66px + var(--gim-safe-top));
  padding:
    calc(10px + var(--gim-safe-top))
    16px
    10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:
    linear-gradient(
      135deg,
      var(--gim-navy),
      var(--gim-navy-2)
    );
  box-shadow:
    0 10px 28px
    rgba(7,22,45,.18);
}

.gim-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:#fff;
  text-decoration:none;
}

.gim-brand img{
  width:39px;
  height:39px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  padding:3px;
}

.gim-brand span{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.gim-brand strong{
  font-size:13px;
  letter-spacing:.8px;
}

.gim-brand small{
  margin-top:2px;
  color:#b9c8dc;
  font-size:10px;
  font-weight:800;
  letter-spacing:1.4px;
}

.gim-online-button{
  min-height:38px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  padding:0 13px;
  display:flex;
  align-items:center;
  gap:7px;
  background:rgba(255,255,255,.09);
  color:#fff;
  font-size:11px;
  font-weight:900;
  letter-spacing:.7px;
}

.gim-online-button i{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#8795a8;
}

.gim-online-button.online i{
  background:#39d879;
  box-shadow:
    0 0 0 5px
    rgba(57,216,121,.13);
}

.gim-screen{
  padding:14px;
}

.gim-map-card{
  position:relative;
  overflow:hidden;
  min-height:340px;
  border-radius:25px;
  background:#dfe6ee;
  box-shadow:
    0 12px 32px
    rgba(14,39,72,.12);
}

.gim-map-card iframe{
  width:100%;
  height:340px;
  display:block;
  border:0;
  background:#e5eaf0;
}

.gim-map-empty{
  height:340px;
  padding:32px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
  color:var(--gim-muted);
}

.gim-map-empty strong{
  color:var(--gim-text);
  font-size:18px;
}

.gim-map-pin{
  width:54px;
  height:54px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:var(--gim-navy);
  color:#fff;
  font-size:26px;
  box-shadow:
    0 8px 20px
    rgba(7,22,45,.2);
}

.gim-map-overlay{
  position:absolute;
  top:12px;
  left:12px;
  right:12px;
  display:flex;
  justify-content:space-between;
  gap:8px;
  pointer-events:none;
}

.gim-live-chip{
  min-height:32px;
  max-width:62%;
  padding:0 11px;
  display:flex;
  align-items:center;
  gap:7px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:var(--gim-text);
  font-size:11px;
  font-weight:900;
  box-shadow:
    0 6px 16px
    rgba(7,22,45,.12);
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.gim-live-chip i{
  width:7px;
  height:7px;
  flex:0 0 auto;
  border-radius:50%;
  background:#98a4b4;
}

.gim-live-chip.active i{
  background:#22b760;
}

.gim-live-chip.dark{
  background:rgba(7,22,45,.9);
  color:#fff;
}

.gim-next-stop{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  min-height:74px;
  padding:12px 12px 12px 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-radius:18px;
  background:rgba(7,22,45,.94);
  color:#fff;
  box-shadow:
    0 10px 22px
    rgba(7,22,45,.2);
}

.gim-next-stop div{
  min-width:0;
}

.gim-next-stop small{
  display:block;
  margin-bottom:4px;
  color:#9fb4cf;
  font-size:9px;
  font-weight:900;
  letter-spacing:1px;
}

.gim-next-stop strong{
  display:block;
  font-size:12px;
  line-height:1.35;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.gim-next-stop a{
  flex:0 0 auto;
  min-height:42px;
  padding:0 14px;
  display:flex;
  align-items:center;
  border-radius:13px;
  background:var(--gim-orange);
  color:#111827;
  text-decoration:none;
  font-size:12px;
  font-weight:900;
}

.gim-metrics{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
}

.gim-metrics > div{
  min-height:78px;
  padding:13px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border:1px solid var(--gim-border);
  border-radius:18px;
  background:#fff;
}

.gim-metrics span{
  color:var(--gim-muted);
  font-size:10px;
  font-weight:800;
}

.gim-metrics strong{
  font-size:19px;
}

.gim-metrics strong.online{
  color:var(--gim-green);
  font-size:13px;
}

.gim-metrics strong.offline{
  color:var(--gim-muted);
  font-size:13px;
}

.gim-section{
  margin-top:20px;
}

.gim-section-head{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.gim-section-head h2{
  margin:0;
  font-size:17px;
}

.gim-section-head span{
  min-width:28px;
  height:28px;
  padding:0 8px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#e7edf5;
  color:var(--gim-navy);
  font-size:11px;
  font-weight:900;
}

.gim-job-card{
  margin-top:10px;
  padding:16px;
  border:1px solid var(--gim-border);
  border-radius:22px;
  background:#fff;
  box-shadow:
    0 8px 22px
    rgba(15,31,52,.055);
}

.gim-job-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.gim-eyebrow{
  color:var(--gim-blue);
  font-size:9px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
}

.gim-job-top h3{
  margin:4px 0 0;
  font-size:14px;
  word-break:break-word;
}

.gim-status{
  flex:0 0 auto;
  max-width:42%;
  padding:6px 9px;
  border-radius:999px;
  background:#edf2f7;
  color:#44546a;
  font-size:9px;
  font-weight:900;
  text-align:center;
}

.gim-payout{
  margin-top:12px;
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-radius:14px;
  background:#ecf8f0;
  color:#126d36;
}

.gim-payout span{
  font-size:11px;
  font-weight:800;
}

.gim-payout strong{
  font-size:15px;
}

.gim-route{
  margin-top:15px;
  padding:14px;
  border-radius:17px;
  background:#f7f9fc;
}

.gim-route-row{
  display:grid;
  grid-template-columns:13px 1fr;
  align-items:flex-start;
  gap:10px;
}

.gim-route-row small{
  display:block;
  margin-bottom:3px;
  color:var(--gim-muted);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.7px;
}

.gim-route-row strong{
  display:block;
  font-size:12px;
  line-height:1.35;
}

.gim-route-dot{
  width:11px;
  height:11px;
  margin-top:4px;
  border:3px solid var(--gim-blue);
  border-radius:50%;
  background:#fff;
}

.gim-route-dot.dropoff{
  border-color:var(--gim-orange);
}

.gim-route-line{
  width:2px;
  height:18px;
  margin:2px 0 2px 5px;
  background:#d0d8e3;
}

.gim-action-grid{
  margin-top:13px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.gim-button,
.gim-proof{
  min-height:46px;
  padding:10px 12px;
  border:0;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  text-decoration:none;
  font-size:11px;
  font-weight:900;
  line-height:1.2;
}

.gim-button.primary{
  background:var(--gim-blue);
  color:#fff;
}

.gim-button.secondary{
  border:1px solid #dbe2eb;
  background:#f7f9fc;
  color:var(--gim-text);
}

.gim-button.success{
  background:var(--gim-green);
  color:#fff;
}

.gim-button.danger-soft{
  background:#fff0f0;
  color:#a62f2f;
}

.gim-proof{
  background:#f4f6f8;
  color:#748094;
}

.gim-proof.complete{
  background:#ecf8f0;
  color:#15763d;
}

.gim-proof.locked{
  grid-column:span 2;
}

.gim-empty-state{
  min-height:115px;
  margin-top:10px;
  padding:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:6px;
  border:1px dashed #cbd4df;
  border-radius:20px;
  background:rgba(255,255,255,.65);
}

.gim-empty-state strong{
  font-size:13px;
}

.gim-empty-state span{
  color:var(--gim-muted);
  font-size:11px;
}

.gim-page-title{
  padding:12px 3px 5px;
}

.gim-page-title > span{
  color:var(--gim-blue);
  font-size:9px;
  font-weight:900;
  letter-spacing:1.3px;
}

.gim-page-title h1{
  margin:4px 0;
  font-size:29px;
  letter-spacing:-.8px;
}

.gim-page-title p{
  margin:0;
  color:var(--gim-muted);
  font-size:12px;
}

.gim-money-grid{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.gim-money-grid > div{
  min-height:105px;
  padding:16px;
  border:1px solid var(--gim-border);
  border-radius:20px;
  background:#fff;
}

.gim-money-grid .wide{
  grid-column:span 2;
  background:
    linear-gradient(
      135deg,
      var(--gim-navy),
      var(--gim-navy-2)
    );
  color:#fff;
}

.gim-money-grid span{
  display:block;
  color:var(--gim-muted);
  font-size:10px;
  font-weight:800;
}

.gim-money-grid .wide span{
  color:#a9b9cc;
}

.gim-money-grid strong{
  display:block;
  margin-top:15px;
  font-size:25px;
}

.gim-info-card,
.gim-account-card{
  margin-top:16px;
  border:1px solid var(--gim-border);
  border-radius:22px;
  background:#fff;
  overflow:hidden;
}

.gim-info-card{
  padding:18px;
}

.gim-info-card strong{
  font-size:14px;
}

.gim-info-card p{
  margin:5px 0 0;
  color:var(--gim-muted);
  font-size:12px;
  line-height:1.5;
}

.gim-account-row{
  min-height:78px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  border-bottom:1px solid var(--gim-border);
}

.gim-account-row small,
.gim-account-row strong{
  display:block;
}

.gim-account-row small{
  color:var(--gim-muted);
  font-size:10px;
}

.gim-account-row strong{
  margin-top:3px;
  font-size:14px;
}

.gim-switch{
  width:52px;
  height:31px;
  padding:3px;
  border:0;
  border-radius:999px;
  background:#c9d0d9;
}

.gim-switch span{
  width:25px;
  height:25px;
  display:block;
  border-radius:50%;
  background:#fff;
  transition:transform .2s ease;
  box-shadow:0 2px 7px rgba(0,0,0,.15);
}

.gim-switch.on{
  background:var(--gim-green);
}

.gim-switch.on span{
  transform:translateX(21px);
}

.gim-menu-row{
  width:100%;
  min-height:70px;
  padding:13px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:0;
  border-bottom:1px solid var(--gim-border);
  background:#fff;
  color:var(--gim-text);
  text-align:left;
}

.gim-menu-row:last-child{
  border-bottom:0;
}

.gim-menu-row span{
  min-width:0;
}

.gim-menu-row b{
  display:block;
  font-size:13px;
}

.gim-menu-row small{
  display:block;
  margin-top:3px;
  color:var(--gim-muted);
  font-size:10px;
}

.gim-menu-row > strong{
  color:#8b98aa;
  font-size:23px;
}

.gim-menu-row.danger b{
  color:var(--gim-red);
}

.gim-version{
  margin-top:20px;
  padding:10px;
  color:#8894a5;
  text-align:center;
  font-size:9px;
  letter-spacing:.7px;
}

.gim-bottom-nav{
  position:fixed;
  z-index:150;
  left:50%;
  bottom:0;
  width:100%;
  max-width:840px;
  min-height:
    calc(68px + var(--gim-safe-bottom));
  padding:
    7px
    8px
    calc(7px + var(--gim-safe-bottom));
  display:grid;
  grid-template-columns:
    1fr
    1fr
    1.1fr
    1fr
    1fr;
  align-items:end;
  gap:3px;
  background:rgba(255,255,255,.96);
  border-top:1px solid #dce3ec;
  transform:translateX(-50%);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:
    0 -8px 25px
    rgba(16,33,58,.07);
}

.gim-nav-item,
.gim-nav-main{
  min-height:52px;
  border:0;
  border-radius:15px;
  background:transparent;
  color:#748095;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
}

.gim-nav-item b{
  font-size:18px;
  line-height:1;
}

.gim-nav-item span,
.gim-nav-main span{
  font-size:9px;
  font-weight:800;
}

.gim-nav-item.active{
  background:#eef4fc;
  color:var(--gim-blue);
}

.gim-nav-main{
  margin-top:-24px;
  min-height:66px;
  color:var(--gim-navy);
}

.gim-nav-main b{
  width:49px;
  height:49px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:var(--gim-orange);
  color:#111827;
  font-size:25px;
  box-shadow:
    0 8px 18px
    rgba(245,158,11,.25);
}

.gim-loading{
  min-height:100dvh;
  padding:30px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:15px;
  background:
    linear-gradient(
      145deg,
      var(--gim-navy),
      var(--gim-navy-2)
    );
  color:#fff;
}

.gim-loading img{
  width:78px;
  height:78px;
  object-fit:contain;
  border-radius:20px;
  background:#fff;
  padding:6px;
}

.gim-spinner{
  width:28px;
  height:28px;
  border:3px solid rgba(255,255,255,.2);
  border-top-color:#fff;
  border-radius:50%;
  animation:gim-spin .8s linear infinite;
}

@keyframes gim-spin{
  to{
    transform:rotate(360deg);
  }
}

.gim-toast{
  position:fixed;
  z-index:500;
  left:50%;
  bottom:
    calc(92px + var(--gim-safe-bottom));
  width:calc(100% - 28px);
  max-width:520px;
  padding:13px 15px;
  border-radius:15px;
  background:var(--gim-navy);
  color:#fff;
  font-size:12px;
  font-weight:800;
  text-align:center;
  transform:
    translate(-50%,20px);
  opacity:0;
  transition:
    opacity .2s ease,
    transform .2s ease;
  box-shadow:
    0 12px 28px
    rgba(7,22,45,.22);
}

.gim-toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

.gim-toast.error{
  background:#9f2f2f;
}

.gim-toast.success{
  background:#13773d;
}

.gim-modal{
  position:fixed;
  z-index:400;
  inset:0;
  padding:
    calc(12px + var(--gim-safe-top))
    10px
    calc(12px + var(--gim-safe-bottom));
  display:flex;
  align-items:flex-end;
  background:rgba(5,14,27,.65);
  backdrop-filter:blur(8px);
}

.gim-modal-sheet{
  width:100%;
  max-width:820px;
  height:min(88dvh,850px);
  margin:0 auto;
  overflow:hidden;
  border-radius:25px 25px 16px 16px;
  background:#fff;
  box-shadow:
    0 20px 60px
    rgba(0,0,0,.28);
}

.gim-modal-head{
  height:58px;
  padding:0 12px 0 17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--gim-border);
}

.gim-modal-head strong{
  font-size:13px;
}

.gim-modal-head button{
  width:38px;
  height:38px;
  border:0;
  border-radius:12px;
  background:#eef2f6;
  font-size:24px;
  line-height:1;
}

.gim-modal iframe{
  width:100%;
  height:calc(100% - 58px);
  border:0;
}

@media(min-width:700px){
  .gim-screen{
    padding:20px;
  }

  .gim-map-card,
  .gim-map-card iframe,
  .gim-map-empty{
    height:430px;
  }

  .gim-map-card{
    min-height:430px;
  }

  .gim-action-grid{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

  .gim-proof.locked{
    grid-column:auto;
  }
}
