﻿/* BUILD: v5 */
/* ============================================================
   app.css — چیدمان صفحات اپلیکیشن
   وابسته به theme.css (توکن‌ها)
   ============================================================ */

/* ---------- قاب پیش‌نمایش (فقط در نمونه اولیه؛ در اپ واقعی حذف می‌شود) ---------- */
.stage{
  min-height:100vh; background:#0A1020;
  background-image:radial-gradient(1200px 600px at 50% -10%, #16223A 0%, #0A1020 60%);
  color:#C7D3E8; padding:24px 16px 60px;
}
.stage__bar{ max-width:1120px; margin:0 auto 22px; display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.stage__title{ font-size:15px; font-weight:800; color:#EAF0F8; }
.stage__title span{ display:block; font-size:12px; font-weight:400; color:#7488A8; }
.stage__spacer{ flex:1; }
.stage__btn{
  height:34px; padding:0 14px; border-radius:999px; font-size:13px; font-weight:600;
  background:#1B2942; color:#C7D3E8; border:1px solid #2C3E60;
}
.stage__btn[aria-pressed="true"]{ background:#0F9D6B; color:#fff; border-color:#0F9D6B; }
.stage__grid{ max-width:1120px; margin:0 auto; display:flex; flex-wrap:wrap; gap:28px; justify-content:center; }
.stage__item{ text-align:center; }
.stage__caption{ margin-top:10px; font-size:12px; color:#7488A8; }

.device{
  width:390px; height:844px; flex:none;
  background:var(--paper); border-radius:44px; overflow:hidden; position:relative;
  box-shadow:0 0 0 10px #131C2E, 0 0 0 11px #33415C, 0 30px 70px rgba(0,0,0,.55);
}
.device__notch{
  position:absolute; top:10px; left:50%; transform:translateX(-50%);
  width:118px; height:30px; background:#0B1220; border-radius:999px; z-index:60;
}

/* ---------- اسکلت صفحه ---------- */
.screen{
  position:absolute; inset:0; display:none;
  flex-direction:column; background:var(--paper); overflow:hidden;
}
.screen.is-active{ display:flex; }
.screen__body{ flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.safe-top{ padding-top:52px; }   /* فضای نوار وضعیت گوشی */
.safe-bottom{ padding-bottom:24px; }

/* نوار وضعیت شبیه‌سازی‌شده */
.statusbar{
  position:absolute; top:0; inset-inline:0; height:52px; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 26px 0; font-size:13px; font-weight:700; pointer-events:none;
  color:var(--text);
}
.statusbar--light{ color:#fff; }
.statusbar__icons{ display:flex; gap:5px; align-items:center; }

/* ---------- نوار بالا ---------- */
.topbar{
  flex:none; display:flex; align-items:center; gap:var(--s3);
  height:56px; padding:0 var(--s4); background:var(--surface);
  border-bottom:1px solid var(--surface-2);
}
.topbar__title{ font-size:var(--fs-h2); font-weight:800; }
.topbar__btn{ width:40px; height:40px; display:grid; place-items:center; border-radius:var(--r-full); color:var(--text-2); }
.topbar__btn:hover{ background:var(--surface-2); }
.topbar__btn svg{ width:22px; height:22px; }

/* ---------- نوار تب پایین ---------- */
.tabbar{
  flex:none; display:flex; background:var(--ink);
  border-top:1px solid rgba(201,161,59,.35); padding-bottom:14px;
  box-shadow:0 -4px 18px rgba(0,0,0,.18);
  position:relative; z-index:40;
}
.tabbar__item{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:9px 0 4px; color:var(--on-dark-2); font-size:var(--fs-xs); font-weight:600;
  transition:color var(--dur) var(--ease);
}
.tabbar__item svg{ width:24px; height:24px; }
.tabbar__item[aria-current="page"]{ color:var(--go-light); }
.tabbar__badge{
  position:absolute; transform:translate(-13px,-4px);
  min-width:16px; height:16px; padding:0 4px; border-radius:999px;
  background:var(--danger); color:#fff; font-size:10px; font-weight:800;
  display:grid; place-items:center;
}

/* ============================================================
   صفحه نقشه
   ============================================================ */
.map{ position:relative; flex:1; overflow:hidden; background:#E9E4D8; }

/* نقشه شماتیک — در نسخه نهایی با Leaflet + OpenStreetMap جایگزین می‌شود */
.map__canvas{ position:absolute; inset:0; width:100%; height:100%; }

/* دایره شعاع جستجو */
.map__radius{
  position:absolute; top:50%; left:50%;
  border-radius:50%; transform:translate(-50%,-50%);
  border:2px dashed rgba(201,161,59,.75);
  background:radial-gradient(circle, rgba(201,161,59,.12) 0%, rgba(201,161,59,.04) 70%, transparent 100%);
  transition:width var(--dur) var(--ease), height var(--dur) var(--ease);
  pointer-events:none;
}

/* موقعیت کاربر */
.me{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:12; }
.me__dot{
  width:20px; height:20px; border-radius:50%;
  background:var(--alert); border:3.5px solid #fff;
  box-shadow:0 2px 8px rgba(20,16,8,.35);
}
.me__pulse{
  position:absolute; inset:-14px; border-radius:50%;
  background:rgba(255,176,32,.30); animation:pulse 2.4s var(--ease) infinite;
}
@keyframes pulse{
  0%{ transform:scale(.55); opacity:.85; }
  100%{ transform:scale(1.7); opacity:0; }
}

/* پین مکان */
.pin{
  position:absolute; z-index:11;
  transform:translate(-50%,-100%);
  transition:transform .18s var(--ease);
}
.pin__body{
  width:36px; height:36px; border-radius:50% 50% 50% 6px;
  transform:rotate(45deg);
  display:grid; place-items:center;
  box-shadow:0 4px 10px rgba(20,16,8,.32);
  border:2px solid #fff;
}
.pin__body svg{ width:17px; height:17px; transform:rotate(-45deg); color:#fff; }
.pin[data-active="true"]{ transform:translate(-50%,-100%) scale(1.28); z-index:14; }
.pin[data-active="true"] .pin__body{ box-shadow:0 6px 18px rgba(20,16,8,.45); }

/* ---------- ردیف چیپ دسته‌بندی ---------- */
.catbar{
  position:absolute; top:60px; inset-inline:0; z-index:20;
  display:flex; gap:var(--s2); padding:0 var(--s4) var(--s2);
  overflow-x:auto; scrollbar-width:none;
}
.catbar::-webkit-scrollbar{ display:none; }

/* ---------- نوار جستجوی شناور ---------- */
.searchbar{
  position:absolute; top:8px; inset-inline:var(--s4); z-index:22;
  display:flex; align-items:center; gap:var(--s3);
  height:48px; padding:0 var(--s4);
  background:var(--surface); border-radius:var(--r-md); box-shadow:var(--sh-2);
}
.searchbar svg{ width:20px; height:20px; color:var(--text-3); flex:none; }
.searchbar input{ flex:1; min-width:0; border:0; background:transparent; outline:none; font-size:var(--fs-body); }
.searchbar input::placeholder{ color:var(--text-3); }

/* ---------- عنصر امضا: قرص شعاع ---------- */
.dial{
  position:absolute; z-index:24;
  inset-inline-start:var(--s4);
  width:76px; height:76px;
  background:var(--surface); border-radius:50%;
  box-shadow:var(--sh-2);
  display:grid; place-items:center;
  touch-action:none; cursor:grab;
}
.dial:active{ cursor:grabbing; }
.dial__svg{ position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.dial__track{ fill:none; stroke:var(--surface-2); stroke-width:5; }
.dial__arc{ fill:none; stroke:var(--go); stroke-width:5; stroke-linecap:round; transition:stroke-dashoffset .18s var(--ease); }
.dial__knob{ fill:var(--go); stroke:#fff; stroke-width:2.5; }
.dial__val{ text-align:center; line-height:1.1; }
.dial__val b{ display:block; font-size:17px; font-weight:800; }
.dial__val span{ font-size:9px; color:var(--text-3); font-weight:600; }

/* دکمه موقعیت من */
.locate{
  position:absolute; z-index:24; inset-inline-end:var(--s4);
  width:48px; height:48px; border-radius:var(--r-full);
  background:var(--surface); box-shadow:var(--sh-2);
  display:grid; place-items:center; color:var(--ink);
}
.locate svg{ width:23px; height:23px; }

/* ---------- شیت پایین ---------- */
.sheet{
  position:absolute; inset-inline:0; bottom:0; z-index:30;
  background:var(--surface);
  border-radius:var(--r-xl) var(--r-xl) 0 0;
  box-shadow:var(--sh-3);
  display:flex; flex-direction:column;
  transition:height var(--dur) var(--ease);
  max-height:82%;
}
.sheet__handle{
  flex:none; padding:10px 0 6px; display:grid; place-items:center;
  touch-action:none; cursor:grab;
}
.sheet__handle::before{
  content:""; width:40px; height:4px; border-radius:999px; background:var(--surface-2);
}
.sheet__head{ flex:none; display:flex; align-items:baseline; gap:var(--s2); padding:0 var(--s5) var(--s2); }
.sheet__title{ font-size:var(--fs-h2); font-weight:800; }
.sheet__body{ flex:1; overflow-y:auto; padding:0 var(--s5) var(--s6); }

/* ============================================================
   صفحات احراز هویت
   ============================================================ */
.auth{ padding:0 var(--s6) var(--s6); display:flex; flex-direction:column; height:100%; }
.auth__brand{ padding:var(--s10) 0 var(--s8); }
.auth__head{ font-size:var(--fs-h1); font-weight:800; line-height:1.5; }
.auth__sub{ margin-top:var(--s2); color:var(--text-2); font-size:var(--fs-sm); }
.auth__foot{ margin-top:auto; padding-top:var(--s5); }
.auth__terms{ margin-top:var(--s4); text-align:center; font-size:var(--fs-xs); color:var(--text-3); line-height:2; }
.auth__terms a{ color:var(--go); font-weight:600; }

/* کد یکبار مصرف */
.otp{ display:flex; gap:var(--s3); direction:ltr; justify-content:center; margin:var(--s6) 0 var(--s4); }
.otp input{
  width:56px; height:64px; text-align:center;
  font-size:26px; font-weight:800;
  background:var(--surface); border:1.5px solid var(--surface-2);
  border-radius:var(--r-md); outline:none;
  transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.otp input:focus{ border-color:var(--go); box-shadow:0 0 0 4px var(--go-soft); }
.otp input.is-filled{ border-color:var(--go); background:var(--go-soft); }
.countdown{ text-align:center; font-size:var(--fs-sm); color:var(--text-2); }
.countdown b{ color:var(--text); font-weight:800; }

/* لوگو */
.logo{ display:flex; align-items:center; gap:var(--s3); }
.logo__mark{ width:46px; height:46px; }
.logo__text{ font-size:22px; font-weight:800; letter-spacing:-.02em; }
.logo__text small{ display:block; font-size:11px; font-weight:500; color:var(--text-3); letter-spacing:0; }

/* ---------- اسپلش ---------- */
.splash{
  background:var(--ink);
  background-image:radial-gradient(700px 420px at 50% 35%, #2B2720 0%, #0D0D0F 70%);
  align-items:center; justify-content:center; color:#fff;
}
.splash__inner{ display:flex; flex-direction:column; align-items:center; gap:var(--s4); }
.splash__name{ font-size:28px; font-weight:800; }
.splash__tag{ font-size:var(--fs-sm); color:var(--on-dark-2); }
.splash__ring{ animation:spin 2.6s linear infinite; transform-origin:center; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ============================================================
   صفحه جزئیات مکان
   ============================================================ */
.hero{
  position:relative; height:210px; flex:none;
  background:linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  display:grid; place-items:center; color:rgba(255,255,255,.16);
}
.hero svg{ width:74px; height:74px; }
.hero__back{
  position:absolute; top:60px; inset-inline-start:var(--s4);
  width:40px; height:40px; border-radius:var(--r-full);
  background:rgba(255,255,255,.92); color:var(--ink);
  display:grid; place-items:center; box-shadow:var(--sh-1);
}
.hero__back svg{ width:21px; height:21px; }

.detail{ margin-top:-22px; border-radius:var(--r-xl) var(--r-xl) 0 0; background:var(--surface); position:relative; padding:var(--s5); }
.detail__name{ font-size:var(--fs-h1); font-weight:800; }
.detail__meta{ margin-top:var(--s2); color:var(--text-2); font-size:var(--fs-sm); }

/* نوار نشانگرها — «داشبورد» فاصله و زمان */
.gauges{
  display:flex; margin:var(--s5) 0;
  background:var(--surface-2); border-radius:var(--r-md); overflow:hidden;
}
.gauge{ flex:1; padding:var(--s3) var(--s2); text-align:center; }
.gauge + .gauge{ border-inline-start:1px solid rgba(0,0,0,.06); }
.gauge b{ display:block; font-size:21px; font-weight:800; line-height:1.25; }
.gauge span{ font-size:var(--fs-xs); color:var(--text-3); }

.actions{ display:flex; gap:var(--s2); }
.actions .btn{ flex:1; }
.action-ico{
  flex:none !important; width:52px; background:var(--surface-2); border-radius:var(--r-md);
  display:grid; place-items:center; color:var(--text-2);
}
.action-ico svg{ width:21px; height:21px; }

.infolist{ margin-top:var(--s5); }
.infolist__row{ display:flex; gap:var(--s3); padding:var(--s3) 0; border-bottom:1px solid var(--surface-2); }
.infolist__row:last-child{ border-bottom:0; }
.infolist__row svg{ width:20px; height:20px; color:var(--text-3); flex:none; margin-top:3px; }
.infolist__k{ font-size:var(--fs-xs); color:var(--text-3); }
.infolist__v{ font-size:var(--fs-sm); font-weight:600; }

.tags{ display:flex; flex-wrap:wrap; gap:var(--s2); margin-top:var(--s4); }
.tag{
  padding:5px 12px; border-radius:var(--r-full);
  background:var(--go-soft); color:var(--go-dark);
  font-size:var(--fs-xs); font-weight:700;
}

/* ============================================================
   اعلان‌ها
   ============================================================ */
.notif{ display:flex; gap:var(--s3); padding:var(--s4); background:var(--surface); border-radius:var(--r-md); margin-bottom:var(--s3); box-shadow:var(--sh-1); }
.notif--unread{ border-inline-start:3px solid var(--go); }
.notif__ico{ flex:none; width:40px; height:40px; border-radius:var(--r-sm); display:grid; place-items:center; background:var(--go-soft); color:var(--go-dark); }
.notif__ico svg{ width:20px; height:20px; }
.notif__title{ font-weight:700; font-size:var(--fs-sm); }
.notif__text{ font-size:var(--fs-sm); color:var(--text-2); margin-top:2px; }
.notif__time{ font-size:var(--fs-xs); color:var(--text-3); margin-top:var(--s2); }

/* ============================================================
   پروفایل
   ============================================================ */
.profile__card{
  background:var(--ink);
  background-image:radial-gradient(400px 200px at 80% 0%, #3A3222 0%, #0D0D0F 70%);
  color:#fff; border-radius:var(--r-lg); padding:var(--s5);
  display:flex; align-items:center; gap:var(--s4); margin-bottom:var(--s5);
}
.avatar{
  width:60px; height:60px; border-radius:var(--r-full); flex:none;
  background:var(--alert); color:var(--ink);
  display:grid; place-items:center; font-size:22px; font-weight:800;
}
.menu{ background:var(--surface); border-radius:var(--r-md); box-shadow:var(--sh-1); overflow:hidden; }
.menu__item{ display:flex; align-items:center; gap:var(--s3); width:100%; padding:var(--s4); text-align:right; border-bottom:1px solid var(--surface-2); }
.menu__item:last-child{ border-bottom:0; }
.menu__item > svg:first-child{ width:21px; height:21px; color:var(--text-2); flex:none; }
.menu__item .chev{ width:18px; height:18px; color:var(--text-3); }
.menu__item span{ flex:1; font-size:var(--fs-body); font-weight:600; }

/* بخش عنوان‌دار */
.section-title{ font-size:var(--fs-xs); font-weight:800; color:var(--text-3); margin:var(--s5) 0 var(--s2); }

/* ============================================================
   صفحه توکن‌های طراحی (فقط برای بازبینی)
   ============================================================ */
.swatches{ display:grid; grid-template-columns:repeat(2,1fr); gap:var(--s3); }
.swatch{ border-radius:var(--r-md); overflow:hidden; box-shadow:var(--sh-1); background:var(--surface); }
.swatch__chip{ height:56px; }
.swatch__meta{ padding:var(--s2) var(--s3); font-size:var(--fs-xs); }
.swatch__meta b{ display:block; }
.swatch__meta code{ color:var(--text-3); font-size:10px; }

/* ============================================================
   صفحه اصلی سوپراپ «اپلس»
   تم: مشکی/عاجی/طلایی · موتیف امضا: گره‌های مدار (از لوگو)
   ============================================================ */
:root{
  /* پالت مشکی-طلایی اپلس؛ نام‌های g1/g2 برای سازگاری با قواعد قبلی مانده */
  --g1:#0D0D0F;          /* مشکی */
  --g2:#C9A13B;          /* طلایی اصلی */
  --g3:#EBD38F;          /* طلایی روشن */
  --gold:#C9A13B;        /* طلایی */
  --gold-soft:#F6EEDA;
}

/* ---------- سربرگ ---------- */
.home-head{
  position:relative; flex:none;
  /* فضای بالا فقط به اندازه نوار وضعیت گوشی؛ خط خوشامد داخل همین فضای
     سبز موجود می‌نشیند و ارتفاع سربرگ را بیشتر نمی‌کند.
     env(safe-area-inset-top) برای گوشی‌هایی با ناچ. */
  padding:calc(16px + env(safe-area-inset-top, 0px)) var(--s4) 42px;
  background:var(--ink-grad);
  color:#fff; overflow:hidden;
  border-radius:0 0 30px 30px;
  box-shadow:inset 0 -2px 0 rgba(201,161,59,.55);
}
.home-head .circuit{ position:absolute; inset:0; width:100%; height:100%; opacity:.16; pointer-events:none; }
.home-head__row{ position:relative; display:flex; align-items:center; gap:var(--s3); }
.home-head__logo{ width:46px; height:auto; filter:drop-shadow(0 2px 4px rgba(0,0,0,.25)); background:#fff; border-radius:12px; padding:4px; }
.home-head__name{ font-size:19px; font-weight:800; }
.home-head__name small{ display:block; font-size:10px; font-weight:500; color:var(--go-light); }
.home-head__bell{ margin-inline-start:auto; width:42px; height:42px; border-radius:14px; background:rgba(255,255,255,.08); border:1px solid rgba(201,161,59,.35); display:grid; place-items:center; color:var(--go-light); position:relative; }
.home-head__bell svg{ width:21px; height:21px; }
.home-head__bell b{ position:absolute; top:-4px; inset-inline-start:-4px; min-width:17px; height:17px; padding:0 4px; border-radius:999px; background:var(--gold); color:var(--on-go); font-size:10px; display:grid; place-items:center; }
.home-head__hi{ position:relative; margin-top:var(--s4); font-size:15px; color:#E9E2D0; }
.home-head__hi b{ color:var(--go-light); font-size:17px; }

/* جستجو داخل سربرگ */
.home-search{
  position:relative; margin-top:var(--s3);
  display:flex; align-items:center; gap:var(--s3);
  height:50px; padding:0 var(--s4);
  background:#fff; border-radius:var(--r-md);
  box-shadow:0 10px 26px rgba(0,0,0,.18);
  color:var(--text-3);
}
.home-search svg{ width:20px; height:20px; flex:none; }
.home-search input{ flex:1; min-width:0; border:0; outline:none; background:none; font-size:var(--fs-body); color:var(--text); }

/* ---------- کارت کیف پول (سوار بر سربرگ) ---------- */
.wallet{
  position:relative; margin:-30px var(--s4) 0; z-index:5;
  background:linear-gradient(120deg, #FFFDF7 0%, #F8EFD9 100%);
  border:1px solid #E8D9AE;
  border-radius:var(--r-md);
  box-shadow:0 12px 26px rgba(20,16,8,.13);
  padding:10px var(--s4);
  display:flex; align-items:center; gap:var(--s3);
  overflow:hidden;
}
.wallet::after{ /* سکه تزئینی */
  content:""; position:absolute; inset-inline-end:-34px; top:-34px;
  width:110px; height:110px; border-radius:50%;
  background:radial-gradient(circle at 35% 35%, #EBD38F, var(--gold));
  opacity:.28;
}
.wallet__ico{ flex:none; width:38px; height:38px; border-radius:12px; background:var(--gold-grad); color:var(--on-go); display:grid; place-items:center; box-shadow:0 6px 14px rgba(164,124,37,.4); }
.wallet__ico svg{ width:20px; height:20px; }
.wallet__label{ font-size:var(--fs-sm); font-weight:700; color:var(--go-dark); }
.wallet__amount{ font-size:19px; font-weight:900; color:var(--text); }
.wallet__amount small{ font-size:var(--fs-xs); font-weight:600; }
.wallet__btn{
  position:relative; margin-inline-start:auto; height:40px; padding:0 var(--s4);
  border-radius:var(--r-full); background:var(--ink); color:var(--go-light);
  font-size:var(--fs-sm); font-weight:700; display:inline-flex; align-items:center; gap:6px;
  box-shadow:0 6px 14px rgba(20,16,8,.30);
}
.wallet__btn svg{ width:16px; height:16px; }

/* ---------- شبکه خدمات ---------- */
.svc-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--s3) var(--s2); padding:var(--s5) var(--s4) var(--s2); }
.svc{ display:flex; flex-direction:column; align-items:center; gap:7px; }
.svc__tile{
  width:62px; height:62px; border-radius:20px;
  display:grid; place-items:center; color:#fff;
  box-shadow:0 8px 16px rgba(20,16,8,.16);
  transition:transform .15s var(--ease);
  position:relative; overflow:hidden;
}
.svc__tile::after{ content:""; position:absolute; inset:0; background:radial-gradient(90px 60px at 20% 0%, rgba(255,255,255,.35), transparent 60%); }
.svc:active .svc__tile{ transform:scale(.92); }
.svc__tile svg{ width:27px; height:27px; position:relative; }
.svc__name{ font-size:11.5px; font-weight:800; color:var(--text); text-align:center; line-height:1.4; }

/* ---------- بخش‌ها و کراسل ---------- */
.sect{ margin-top:var(--s5); }
.sect__head{ display:flex; align-items:center; gap:var(--s2); padding:0 var(--s4); margin-bottom:var(--s3); }
.sect__spark{ width:8px; height:22px; border-radius:4px; background:linear-gradient(180deg,var(--g3),var(--go-dark)); }
.sect__title{ font-size:16.5px; font-weight:900; color:var(--text); }
.sect__more{ margin-inline-start:auto; font-size:var(--fs-xs); font-weight:700; color:var(--go-dark); display:inline-flex; align-items:center; gap:3px; }
.sect__more svg{ width:14px; height:14px; }
.hscroll{ display:flex; gap:var(--s3); overflow-x:auto; padding:2px var(--s4) 10px; scrollbar-width:none; scroll-snap-type:x proximity; }
.hscroll::-webkit-scrollbar{ display:none; }
.hscroll > *{ scroll-snap-align:start; flex:none; }

/* ---------- اسلایدر تبلیغات ---------- */
.banner-wrap{ margin-top:var(--s4); }
.banner{
  width:315px; height:128px; border-radius:var(--r-lg); overflow:hidden; position:relative;
  color:#fff; padding:var(--s4); display:flex; flex-direction:column; justify-content:flex-end;
  box-shadow:var(--sh-2);
}
.banner__k{ font-size:var(--fs-xs); font-weight:700; opacity:.85; }
.banner__t{ font-size:17px; font-weight:800; }
.banner__deco{ position:absolute; inset-inline-end:12px; top:10px; opacity:.25; width:84px; height:84px; }
.dots{ display:flex; justify-content:center; gap:5px; margin-top:2px; }
.dots i{ width:6px; height:6px; border-radius:999px; background:var(--text-3); opacity:.4; transition:all .25s var(--ease); }
.dots i.on{ width:18px; background:var(--g2); opacity:1; }

/* ---------- دسته‌بندی سطح ۱ و ۲ ---------- */
.cat1{ display:flex; flex-direction:column; align-items:center; gap:7px; width:72px; }
.cat1__ring{
  width:60px; height:60px; border-radius:50%; padding:3px;
  background:conic-gradient(var(--gold), var(--g3), var(--g1), var(--gold));
}
.cat1__in{ width:100%; height:100%; border-radius:50%; background:var(--surface); display:grid; place-items:center; }
.cat1__in svg{ width:25px; height:25px; }
.cat1__name{ font-size:11.5px; font-weight:800; color:var(--text); text-align:center; }
.cat2{
  display:inline-flex; align-items:center; gap:8px; height:42px; padding:0 var(--s4) 0 var(--s3);
  background:var(--surface); border-radius:var(--r-full); box-shadow:var(--sh-1);
  font-size:var(--fs-sm); font-weight:700; color:var(--text);
  border:1px solid var(--surface-2);
}
.cat2 svg{ width:18px; height:18px; }

/* ---------- کارت خبر ---------- */
.news-card{
  width:250px; background:var(--surface); border-radius:var(--r-lg);
  box-shadow:var(--sh-1); padding:var(--s4);
  border-top:3px solid var(--g2);
  display:flex; flex-direction:column; gap:6px;
}
.news-card__tag{ align-self:flex-start; font-size:10px; font-weight:700; color:var(--go-dark); background:var(--go-soft); padding:2px 9px; border-radius:999px; }
.news-card__t{ font-size:14px; font-weight:900; color:var(--text); line-height:1.7; }
.news-card__s{ font-size:var(--fs-xs); font-weight:500; color:var(--text-2); line-height:1.9;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.news-card__f{ margin-top:auto; display:flex; align-items:center; }
.news-card__d{ font-size:10px; color:var(--text-3); }
.news-card__go{ margin-inline-start:auto; width:30px; height:30px; border-radius:10px; background:var(--go-soft); color:var(--go-dark); display:grid; place-items:center; }
.news-card__go svg{ width:16px; height:16px; }

/* ---------- کارت مرکز (آنلاین/حضوری) ---------- */
.center-card{ width:142px; background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--sh-1); overflow:hidden; }
.center-card__img{ position:relative; height:96px; display:grid; place-items:center; color:#fff; }
.center-card__img svg{ width:38px; height:38px; opacity:.9; }
.center-card__off{
  display:inline-block; margin-top:4px;
  background:var(--gold-soft); color:var(--go-dark); font-size:11px; font-weight:800;
  padding:2px 9px; border-radius:999px; border:1px solid #E8D9AE;
}
.center-card__b{ padding:9px var(--s3) var(--s3); }
.center-card__t{ font-size:12.5px; font-weight:900; color:var(--text); line-height:1.6; height:40px; overflow:hidden; }
.center-card__f{ display:flex; align-items:center; margin-top:4px; }
.center-card__k{ font-size:10px; color:var(--text-3); }
.center-card__go{ margin-inline-start:auto; width:26px; height:26px; border-radius:9px; background:var(--surface-2); color:var(--go-dark); display:grid; place-items:center; }
.center-card__go svg{ width:14px; height:14px; }

/* ---------- کارت دوره آموزشی ---------- */
.course-card{
  width:262px; background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--sh-1);
  display:flex; gap:var(--s3); padding:var(--s3); align-items:stretch;
}
.course-card__img{
  flex:none; width:86px; border-radius:var(--r-md);
  display:grid; place-items:center; color:#fff;
}
.course-card__img svg{ width:32px; height:32px; opacity:.9; }
.course-card__b{ flex:1; min-width:0; display:flex; flex-direction:column; }
.course-card__inst{ font-size:10.5px; font-weight:700; color:var(--go-dark); }
.course-card__t{ font-size:13px; font-weight:900; color:var(--text); margin-top:2px; line-height:1.6; }
.course-card__f{ display:flex; align-items:center; margin-top:auto; padding-top:6px; }
.course-card__p{ font-size:13px; font-weight:900; color:var(--go-dark); }
.course-card__p small{ font-size:10px; color:var(--text-3); font-weight:600; }

/* ---------- کارت آگهی ---------- */
.ad-card{
  width:238px; background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--sh-1);
  display:flex; gap:var(--s3); padding:var(--s3); align-items:stretch;
}
.ad-card__img{ flex:none; width:74px; border-radius:var(--r-md); display:grid; place-items:center; color:#fff; }
.ad-card__img svg{ width:28px; height:28px; opacity:.9; }
.ad-card__b{ flex:1; min-width:0; display:flex; flex-direction:column; }
.ad-card__t{ font-size:12.5px; font-weight:900; color:var(--text); line-height:1.7; }

/* ---------- دکمه‌های شناور ---------- */
.fab-pill{
  position:absolute; bottom:96px; left:50%; transform:translateX(-50%); z-index:35;
  display:flex; background:linear-gradient(135deg, #0D0D0F 0%, #2B2720 100%);
  border-radius:var(--r-full); border:1px solid rgba(201,161,59,.40);
  box-shadow:0 14px 34px rgba(0,0,0,.40); overflow:hidden;
}
.fab-pill button{
  display:inline-flex; align-items:center; gap:7px; white-space:nowrap;
  height:48px; padding:0 var(--s5); color:#fff; font-size:var(--fs-sm); font-weight:800;
}
.fab-pill button + button{ border-inline-start:1px solid rgba(201,161,59,.45); }
.fab-pill svg{ width:19px; height:19px; }
.fab-pill .is-bot svg{ color:var(--g3); }
.fab-pill .is-tour svg{ color:var(--gold); }

/* ---------- صدای شهروند ---------- */
.voice-hero{
  margin:var(--s4); padding:var(--s5); border-radius:var(--r-lg); color:#fff;
  background:var(--ink-grad); position:relative; overflow:hidden;
}
.voice-hero p{ font-size:var(--fs-sm); color:#E9E2D0; margin-top:4px; }
.voice-grid{ display:grid; grid-template-columns:1fr 1fr; gap:var(--s3); padding:0 var(--s4); }
.voice-item{
  background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--sh-1);
  padding:var(--s4); display:flex; flex-direction:column; gap:8px; text-align:right;
}
.voice-item__ico{ width:42px; height:42px; border-radius:13px; display:grid; place-items:center; color:#fff; }
.voice-item__ico svg{ width:21px; height:21px; }
.voice-item b{ font-size:var(--fs-sm); }
.voice-item span{ font-size:var(--fs-xs); color:var(--text-3); }


/* ---------- دکمه خانه وسط تب‌بار ---------- */
.tabbar__homewrap{ flex:1; display:flex; justify-content:center; align-items:flex-start; }
.tabbar__homebtn{
  width:58px; height:58px; border-radius:50%;
  margin-top:-26px;
  background:var(--gold-grad);
  color:var(--on-go); display:grid; place-items:center;
  border:4px solid var(--ink);
  box-shadow:0 10px 24px rgba(164,124,37,.45);
  transition:transform .15s var(--ease);
}
.tabbar__homebtn:active{ transform:scale(.92); }
.tabbar__homebtn svg{ width:26px; height:26px; }
.tabbar__homebtn[aria-current="page"]{ box-shadow:0 10px 24px rgba(164,124,37,.45), 0 0 0 3px rgba(235,211,143,.45); }

/* ============================================================
   حالت‌های بارگذاری و خطا (نسخه واقعی متصل به API)
   ============================================================ */
@keyframes shimmer{ 0%{ background-position:100% 0; } 100%{ background-position:-100% 0; } }
.skel{
  flex:none; border-radius:var(--r-md);
  background:linear-gradient(90deg, var(--surface-2) 25%, #F7F2E6 50%, var(--surface-2) 75%);
  background-size:200% 100%;
  animation:shimmer 1.3s linear infinite;
}
.skel--svc{ width:100%; height:86px; border-radius:20px; }
.skel--banner{ width:315px; height:128px; border-radius:var(--r-lg); }
.skel--cat1{ width:60px; height:78px; border-radius:14px; }
.skel--cat2{ width:110px; height:42px; border-radius:var(--r-full); }
.skel--news{ width:250px; height:132px; border-radius:var(--r-lg); }
.skel--center{ width:142px; height:186px; border-radius:var(--r-lg); }
.skel--course{ width:262px; height:104px; border-radius:var(--r-lg); }
.skel--ad{ width:238px; height:96px; border-radius:var(--r-lg); }

/* بنر با عکس واقعی */
.banner--img{ padding:0; }
.banner--img img{ width:100%; height:100%; object-fit:cover; }

/* عکس داخل حلقه دسته‌بندی سطح ۱ */
.cat1__in img{ width:100%; height:100%; border-radius:50%; object-fit:cover; }

/* جعبه خطای بارگذاری */
.load-error{
  margin:var(--s4); padding:var(--s5);
  background:var(--danger-soft); border:1px solid #F7C7C7;
  border-radius:var(--r-md); text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:var(--s2);
}
.load-error b{ font-size:var(--fs-body); color:#A6262A; }
.load-error span{ font-size:var(--fs-sm); color:var(--text-2); }

/* دکمه ذره‌بین داخل نوار جستجو */
.home-search__go{
  flex:none; width:34px; height:34px; border-radius:10px;
  background:var(--ink); color:var(--go-light);
  display:grid; place-items:center;
}
.home-search__go svg{ width:18px; height:18px; }

/* لینک‌ها نباید رنگ پیش‌فرض مرورگر بگیرند */
a.svc, a.cat1, a.cat2, a.news-card, a.center-card, a.course-card, a.ad-card{ color:inherit; text-decoration:none; }

/* عکس کوچک داخل چیپ دسته‌بندی سطح ۲ (ستون pic در category_job) */
.cat2__img{ width:22px; height:22px; border-radius:6px; object-fit:cover; flex:none; }

/* ============================================================
   صفحه ورود (Login.aspx)
   ============================================================ */
.auth-screen{ background:var(--paper); }

.auth-head{
  position:relative; flex:none; overflow:hidden;
  padding:54px var(--s5) 34px;
  background:var(--ink-grad);
  color:#fff; text-align:center;
  border-radius:0 0 34px 34px;
  box-shadow:inset 0 -2px 0 rgba(201,161,59,.55);
}
.auth-head .circuit{ position:absolute; inset:0; width:100%; height:100%; opacity:.16; }
.auth-head__logo{
  position:relative; width:76px; height:76px; margin:0 auto var(--s3);
  background:#fff; border-radius:24px; padding:8px;
  box-shadow:0 10px 26px rgba(0,0,0,.28);
  display:grid; place-items:center;
}
.auth-head__logo img{ width:100%; height:auto; }
.auth-head__name{ position:relative; font-size:23px; font-weight:900; }
.auth-head__tag{ position:relative; font-size:var(--fs-xs); color:var(--go-light); margin-top:2px; }

.auth-screen .auth{ padding:var(--s6) var(--s5) var(--s5); }
.auth-screen .auth__head{ font-size:19px; }

/* دکمه متنی (ویرایش شماره / ارسال دوباره) */
.linkbtn{
  display:inline-flex; align-items:center; gap:5px;
  color:var(--go-dark); font-weight:800; font-size:var(--fs-sm);
}
.linkbtn:hover{ color:var(--text); }

/* پیام وضعیت */
.auth-msg{
  margin-top:var(--s4); padding:11px var(--s4);
  background:var(--danger-soft); border:1px solid #F7C7C7; color:#A6262A;
  border-radius:var(--r-sm); font-size:var(--fs-sm); font-weight:600; text-align:center;
}
.auth-msg--ok{ background:var(--go-soft); border-color:#E8D9AE; color:var(--go-dark); }

/* یادآوری امنیت */
.auth-secure{
  display:flex; align-items:center; justify-content:center; gap:6px;
  margin-top:var(--s5); font-size:var(--fs-xs); color:var(--text-3);
}
.auth-secure svg{ width:15px; height:15px; }

/* در صفحه ورود، دکمه اصلی نباید تا ته صفحه هل داده شود */
.auth-screen .auth__foot{ margin-top:var(--s6); padding-top:0; }


/* ============================================================
   اصلاحات بازبینی دوم
   ============================================================ */

/* فیلد شماره موبایل: خود شماره یک عدد است، پس کل فیلد چپ‌چین می‌شود
   تا «+۹۸» جلوی شماره و سمت چپ بنشیند، مثل نوشتن واقعی شماره تلفن */
.field__box--tel{ direction:ltr; padding-inline:var(--s4); }
.field__box--tel .field__prefix{
  font-size:15px; font-weight:800; color:var(--text-2);
  padding-inline-end:10px; margin-inline-end:10px;
  border-inline-end:1.5px solid var(--surface-2);
}
.field__box--tel input{ text-align:left; direction:ltr; }

/* خط خوشامد بالای جستجو */
.home-head__hi{
  position:relative; margin:0 0 10px;
  font-size:var(--fs-sm); font-weight:600; color:#E9E2D0;
  line-height:1.4;
}
.home-head__hi b{ color:var(--go-light); font-weight:800; }

/* کارت خبر: فقط عنوان، بدون خلاصه */
.news-card{ width:212px; gap:8px; }
.news-card__t{
  font-size:13.5px; line-height:1.8;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* عکس مراکز: کاملا مربع.
   از padding-top استفاده شده نه aspect-ratio، چون روی وب‌ویوهای قدیمی
   اندروید ۷ که هدف حداقلی ماست، aspect-ratio پشتیبانی نمی‌شود. */
.center-card__img{
  position:relative; height:0; padding-top:100%;
  border-radius:var(--r-md); overflow:hidden; margin:0;
}
.center-card__img svg{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:34px; height:34px;
}
.center-card{ padding:8px; }
.center-card__b{ padding:8px 4px 2px; }

/* دکمه‌های شناور: استایل باید روی <a> هم اعمال شود، نه فقط <button>.
   بعد از تبدیل دکمه‌ها به لینک، چیدمان به هم ریخته بود. */
.fab-pill a,
.fab-pill button{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  white-space:nowrap; height:48px; padding:0 var(--s5);
  color:#fff; font-size:var(--fs-sm); font-weight:800;
  text-decoration:none; line-height:1;
}
.fab-pill a + a,
.fab-pill button + button{ border-inline-start:1px solid rgba(201,161,59,.45); }
.fab-pill a:active{ background:rgba(255,255,255,.08); }

/* آیکن خدماتی که صفحه‌اش هنوز آماده نیست */
.svc--soon{ opacity:.55; }
.svc--soon .svc__tile{ box-shadow:none; }

/* پیام کوتاه (وقتی app_list.css در صفحه نیست) */
.toast{
  position:fixed; bottom:96px; left:50%; transform:translateX(-50%) translateY(16px);
  z-index:400; max-width:82%;
  background:var(--ink); color:#fff;
  padding:11px var(--s5); border-radius:var(--r-full);
  font-size:var(--fs-sm); font-weight:600; text-align:center;
  box-shadow:0 10px 26px rgba(20,16,8,.4);
  opacity:0; pointer-events:none; transition:opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on{ opacity:1; transform:translateX(-50%) translateY(0); }


/* ============================================================
   فاصله انتهای صفحه اصلی

   دکمه شناور «از من بپرس / گردشگری» در ۹۶ پیکسلی از پایین با ارتفاع ۴۸
   می‌نشیند، یعنی تا ۱۴۴ پیکسل را می‌پوشاند. اگر فاصله انتهای محتوا کمتر
   باشد، آخرین کارت‌ها زیر آن پنهان می‌مانند و کاربر نمی‌تواند ببیندشان.
   مقدار زیر با حاشیه اطمینان و احترام به ناحیه امن گوشی محاسبه شده است.
   ============================================================ */
.sect--last{
  /* یک عنصر خالی انتهای صفحه، به ارتفاع دکمه شناور.
     ⚠ padding روی خود .sect کار نمی‌کند چون ردیف‌های داخلش اسکرول افقی
     دارند و padding عمودی‌شان روی ارتفاع کل صفحه اثر نمی‌گذارد. */
  padding-bottom:var(--s5);
}

/* فضای خالی انتهای صفحه اصلی.
   ارتفاع = فاصله دکمه شناور از پایین (۹۶) + ارتفاعش (۴۸) + حاشیه اطمینان،
   منهای فضایی که خود تب‌بار می‌گیرد. */
.bottom-space{
  flex:none; height:calc(120px + env(safe-area-inset-bottom, 0px));
  pointer-events:none;
}

/* ============================================================
   انتخاب استان/شهر + مرکز تسهیلگری (سربرگ صفحه اصلی) - ۱۴۰۵/۰۷
   ============================================================ */
.home-top{ position:relative; display:flex; align-items:center; gap:var(--s2); margin-bottom:10px; }
.city-chip{
  flex:1; min-width:0; display:flex; align-items:center; gap:8px;
  height:46px; padding:0 12px; border-radius:14px; text-align:right;
  background:rgba(255,255,255,.06); border:1px solid rgba(201,161,59,.45); color:#fff;
}
.city-chip:active{ background:rgba(255,255,255,.12); }
.city-chip__pin{ flex:none; width:20px; height:20px; color:var(--go-light); }
.city-chip__txt{ flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.city-chip__txt b{ font-size:15px; font-weight:900; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.city-chip__txt small{ font-size:10.5px; font-weight:600; color:var(--on-dark-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.city-chip__arrow{ flex:none; width:16px; height:16px; color:var(--go-light); transform:rotate(-90deg); }
.city-chip.is-empty{ animation:cityPulse 2.2s var(--ease) infinite; }
@keyframes cityPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(201,161,59,.45); } 50%{ box-shadow:0 0 0 6px rgba(201,161,59,0); } }

.facil-btn{
  flex:none; display:flex; align-items:center; gap:6px; height:46px; padding:0 12px;
  border-radius:14px; background:var(--gold-grad); color:var(--on-go);
  font-size:12px; font-weight:900; white-space:nowrap; text-decoration:none;
  box-shadow:0 6px 16px rgba(164,124,37,.35);
}
.facil-btn svg{ width:20px; height:20px; flex:none; }
.facil-btn:active{ transform:scale(.97); }

/* برچسب کوچک کنار عنوان کراسل‌های دسته‌ای مراکز حضوری */
.sect__kind{
  font-size:10px; font-weight:800; color:var(--go-dark); background:var(--go-soft);
  border:1px solid #E8D9AE; padding:1px 8px; border-radius:999px; white-space:nowrap;
}
.city-empty{
  margin:var(--s5) var(--s4) 0; padding:var(--s4); border-radius:var(--r-md);
  background:var(--surface); border:1px dashed #E8D9AE; color:var(--text-2);
  font-size:var(--fs-sm); text-align:center;
}

/* پنجره‌ی انتخاب استان/شهر */
.city-sheet{ position:fixed; inset:0; z-index:500; }
.city-sheet__backdrop{ position:absolute; inset:0; background:rgba(13,13,15,.55); opacity:0; transition:opacity .22s var(--ease); }
.city-sheet__panel{
  position:absolute; left:0; right:0; bottom:0; max-height:84vh; display:flex; flex-direction:column;
  background:var(--paper); border-radius:24px 24px 0 0; padding:8px var(--s4) calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow:0 -14px 40px rgba(0,0,0,.25); transform:translateY(100%); transition:transform .22s var(--ease);
  border-top:2px solid rgba(201,161,59,.6);
}
.city-sheet.is-open .city-sheet__backdrop{ opacity:1; }
.city-sheet.is-open .city-sheet__panel{ transform:translateY(0); }
.city-sheet__grip{ width:42px; height:5px; border-radius:999px; background:#D9CFB8; margin:0 auto 8px; }
.city-sheet__head{ display:flex; align-items:center; gap:var(--s2); min-height:40px; }
.city-sheet__title{ flex:1; font-size:17px; font-weight:900; }
.city-sheet__icon{ width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:var(--surface-2); color:var(--text); flex:none; }
.city-sheet__icon svg{ width:18px; height:18px; }
#cityBack svg{ transform:rotate(180deg); }
.city-sheet__search{
  display:flex; align-items:center; gap:var(--s2); height:46px; margin:10px 0; padding:0 var(--s3);
  background:var(--surface); border:1.5px solid var(--surface-2); border-radius:var(--r-md); color:var(--text-3);
}
.city-sheet__search:focus-within{ border-color:var(--go); box-shadow:0 0 0 4px var(--go-soft); }
.city-sheet__search svg{ width:18px; height:18px; flex:none; }
.city-sheet__search input{ flex:1; min-width:0; border:0; outline:none; background:none; font-size:15px; color:var(--text); }
.city-sheet__list{ flex:1; min-height:120px; overflow-y:auto; -webkit-overflow-scrolling:touch; margin:0 calc(-1 * var(--s4)); padding:0 var(--s4); }
.city-sheet__label{ font-size:var(--fs-xs); font-weight:800; color:var(--text-3); margin:10px 2px 4px; }
.city-sheet__msg{ padding:var(--s6) 0; text-align:center; color:var(--text-3); font-size:var(--fs-sm); }
.city-row{
  width:100%; display:flex; align-items:center; gap:var(--s2); min-height:52px; padding:8px 4px;
  border-bottom:1px solid var(--surface-2); text-align:right; color:var(--text);
}
.city-row:active{ background:var(--go-soft); }
.city-row__name{ flex:1; min-width:0; font-size:15px; font-weight:700; display:flex; flex-direction:column; }
.city-row__name small{ font-size:11px; font-weight:600; color:var(--text-3); }
.city-row__count{ flex:none; font-size:11px; font-weight:800; color:var(--go-dark); background:var(--go-soft); padding:2px 9px; border-radius:999px; }
.city-row__go{ flex:none; width:16px; height:16px; color:var(--text-3); }
.city-sheet__all{
  flex:none; margin-top:10px; height:46px; border-radius:var(--r-md);
  background:var(--ink); color:var(--go-light); font-weight:800; font-size:var(--fs-sm);
}

/* دکمه‌ی کوچک اشتراک‌گذاری اپ (کنار انتخاب شهر) + پنجره‌ی آن */
.share-ico{
  flex:none; width:36px; height:36px; border-radius:11px; display:grid; place-items:center;
  background:rgba(255,255,255,.06); border:1px solid rgba(201,161,59,.45); color:var(--go-light);
}
.share-ico svg{ width:17px; height:17px; }
.share-ico:active{ background:rgba(255,255,255,.14); }
.share-sheet{ max-height:none; }
.share-apps{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; padding:14px 0 6px; }
.share-app{
  display:flex; flex-direction:column; align-items:center; gap:7px;
  font-size:11.5px; font-weight:800; color:var(--text); text-decoration:none; background:none;
}
.share-app__ico{
  width:50px; height:50px; border-radius:16px; display:grid; place-items:center; color:#fff;
  box-shadow:0 6px 14px rgba(20,16,8,.16);
}
.share-app__ico svg{ width:24px; height:24px; }
.share-app__ico--ink{ background:var(--ink); color:var(--go-light); }
.share-app:active .share-app__ico{ transform:scale(.94); }
