/* APEX MOTO — yeni dizayn (2026-12): üzv ana səhifəsi, alt menyu, ümumi kart dili.
   İsti açıq fon · tünd əsas kart · qırmızı yalnız əsas əməl · qızılı nailiyyət · 16px kənar · 20px künc · ≥48px toxunma */
:root{--u2-hero:#15171C;--u2-hero-2:#23262C;--u2-soft:var(--bg-2,#EFECE6);--u2-gold:#B8892E;--u2-red-ink:#B81E2B}
html[data-theme="dark"]{--u2-hero:#1C1F25;--u2-hero-2:#2A2E35;--u2-soft:#1E2126;--u2-red-ink:#FF6B77}

.is-mh .page-hero{display:none}
.mh{background:var(--bg);color:var(--text);padding:12px 0 calc(110px + env(safe-area-inset-bottom))}
.mh-wrap{max-width:1180px;margin:0 auto;padding:0 16px}
.mh a{color:inherit;text-decoration:none}
.mh h1,.mh h2{font-family:var(--font-head)}

/* Salam */
.mh-hello{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 16px}
.mh-date{margin:0;font-size:.85rem;color:var(--text-3);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.mh-hello h1{margin:2px 0 0;font-size:clamp(1.5rem,5.6vw,2.1rem);font-weight:700;line-height:1.1;letter-spacing:-.01em}
.mh-me{position:relative;flex:none;border-radius:50%;padding:3px;background:conic-gradient(#E52535,#E9C46A,#E52535)}
.mh-me .avatar{display:block;width:46px;height:46px;border-radius:50%;border:2px solid var(--bg);object-fit:cover}
.mh-me-qr{position:absolute;right:-4px;bottom:-4px;width:24px;height:24px;border-radius:50%;background:var(--text);color:var(--bg);display:grid;place-items:center;border:2px solid var(--bg)}
.mh-wxchip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;background:var(--u2-soft);color:var(--text-2);font-weight:600}

.mh-grid{display:grid;gap:18px}
.mh-main,.mh-side{display:flex;flex-direction:column;gap:18px;min-width:0}
@media (min-width:980px){.mh-grid{grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}.mh-side{position:sticky;top:calc(var(--header-h) + 14px)}}

/* Ad günü */
.mh-bday{position:relative;overflow:hidden;display:flex;align-items:center;gap:12px;padding:14px 14px 14px 12px;border-radius:22px;background:linear-gradient(135deg,#FFF4D9,#FFE3E6);color:#2A1E10!important;border:1px solid #F5D9A8}
html[data-theme="dark"] .mh-bday{background:linear-gradient(135deg,#3A2E14,#3A1A1E);color:#FFEFD0!important;border-color:#6B5524}
.mh-bday-av{position:relative;flex:none}
.mh-bday-av .avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;border:3px solid #fff}
.mh-bday-av i{position:absolute;right:-6px;bottom:-4px;font-style:normal;font-size:22px}
.mh-bday-t{flex:1;min-width:0;display:grid;gap:1px}
.mh-bday-t small{font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#B8540C}
.mh-bday-t b{font-size:1.05rem}
.mh-bday-t span{font-size:.82rem;opacity:.8}
.mh-bday-go{flex:none;padding:10px 14px;border-radius:999px;background:#2A1E10;color:#fff;font-weight:700;font-size:.85rem}
html[data-theme="dark"] .mh-bday-go{background:#FFEFD0;color:#2A1E10}
.mh-confetti i{position:absolute;width:6px;height:10px;border-radius:2px;top:-12px;opacity:.8;animation:mhFall 3.6s linear infinite}
.mh-confetti i:nth-child(1){left:12%;background:#E52535}.mh-confetti i:nth-child(2){left:34%;background:#F6C445;animation-delay:.6s}.mh-confetti i:nth-child(3){left:52%;background:#7FD3FF;animation-delay:1.3s}
.mh-confetti i:nth-child(4){left:68%;background:#E52535;animation-delay:2s}.mh-confetti i:nth-child(5){left:82%;background:#16A34A;animation-delay:.9s}.mh-confetti i:nth-child(6){left:94%;background:#F6C445;animation-delay:2.6s}
@keyframes mhFall{to{transform:translateY(120px) rotate(320deg)}}

/* Növbəti sürüş (əsas kart) */
.mh-hero{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:6px;padding:18px 18px 16px;border-radius:26px;background:var(--u2-hero);color:#fff!important;min-height:178px;box-shadow:0 22px 44px -28px rgba(21,23,28,.6)}
.mh-hero-route{position:absolute;right:-6px;top:4px;width:70%;height:58%;opacity:.85;pointer-events:none}
.mh-hero>*:not(.mh-hero-route){position:relative}
.mh-eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#F2B8BD}
.mh-hero-t{font-family:var(--font-head);font-size:clamp(1.45rem,6vw,1.9rem);font-weight:700;line-height:1.12;max-width:88%}
.mh-hero-m{font-size:.88rem;color:#C9CCD2}
.mh-hero-f{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:12px}
.mh-stack{display:flex;align-items:center;min-width:0}
.mh-stack .mh-av{display:inline-flex;margin-left:-8px;border-radius:50%;box-shadow:0 0 0 2px var(--u2-hero)}
.mh-stack .mh-av:first-child{margin-left:0}
.mh-stack .avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;font-size:.7rem}
.mh-stack-n{margin-left:8px;font-size:.82rem;color:#C9CCD2;white-space:nowrap}
.mh-hero-cta{flex:none;padding:11px 18px;border-radius:999px;background:#fff;color:#15171C;font-weight:800;font-size:.9rem}
.mh-hero-cta.is-in{background:#16A34A;color:#fff}
.mh-hero-empty{min-height:150px}

/* Sürətli keçidlər */
.mh-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px}
.mh-quick a{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:.74rem;font-weight:600;text-align:center;line-height:1.2;color:var(--text-1,var(--text))!important}
.mh-quick a>span{width:58px;height:58px;border-radius:19px;display:grid;place-items:center;background:var(--card);border:1px solid var(--border);color:var(--text);transition:transform .15s var(--ease)}
.mh-quick a:active>span{transform:scale(.92)}
.mh-quick a.is-main>span{background:#E52535;border-color:#E52535;color:#fff;box-shadow:0 10px 20px -10px rgba(229,37,53,.7)}
@media (min-width:980px){.mh-quick{grid-template-columns:repeat(8,minmax(0,1fr))}}

/* Bölmə başlığı + üfüqi siyahı */
.mh-sec{display:flex;flex-direction:column;gap:10px;min-width:0}
.mh-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.mh-h h2{margin:0;font-size:1.1rem;font-weight:700;display:flex;align-items:center;gap:6px}
.mh-h a{font-size:.88rem;font-weight:700;color:var(--u2-red-ink)!important}
.mh-row{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:2px 16px 4px;scrollbar-width:none}
.mh-row::-webkit-scrollbar{display:none}
.mh-row>*{scroll-snap-align:start;flex:none}

.mh-card{border-radius:20px;background:var(--card);border:1px solid var(--border)}

/* Tədbir kartı */
.mh-ev{width:176px;display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:20px;background:var(--card);border:1px solid var(--border);position:relative}
.mh-ev-d{width:46px;display:flex;flex-direction:column;align-items:center;padding:6px 0;border-radius:12px;background:var(--u2-soft);margin-bottom:2px}
.mh-ev-d small{font-size:.66rem;font-weight:800;color:var(--u2-red-ink)}
.mh-ev-d b{font-family:var(--font-head);font-size:1.2rem;line-height:1}
.mh-ev-t{font-weight:700;font-size:.95rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mh-ev-m{font-size:.78rem;color:var(--text-3)}
.mh-pill-ok{position:absolute;top:12px;right:12px;padding:4px 8px;border-radius:9px;background:var(--ok-bg,#EEF9F1);color:var(--ok-fg,#14532D);font-size:.7rem;font-weight:800}

/* Partnyor */
.mh-px{width:132px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px;border-radius:20px;background:var(--card);border:1px solid var(--border);position:relative}
.mh-px-lg{width:46px;height:46px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:var(--u2-soft);color:var(--text)}
.mh-px-lg img{width:100%;height:100%;object-fit:cover}
.mh-px-n{font-weight:700;font-size:.88rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mh-px-pct{position:absolute;top:12px;right:12px;padding:4px 8px;border-radius:9px;background:#FDECEE;color:#B81E2B;font-size:.76rem;font-weight:800}
html[data-theme="dark"] .mh-px-pct{background:#3A1A1E;color:#FF9AA3}
.mh-px-qr{background:var(--u2-hero);border-color:var(--u2-hero);color:#fff!important}
.mh-px-qr .mh-px-lg{background:var(--u2-hero-2);color:#fff}
.mh-px-go{font-size:.78rem;font-weight:800;color:#F2B8BD}

/* İcma */
.mh-comm{padding:6px 6px 10px}
.mh-plan{display:flex;align-items:center;gap:12px;padding:10px;border-radius:16px}
.mh-plan+.mh-plan{border-top:1px solid var(--border);border-radius:0}
.mh-plan-ic{flex:none;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:var(--u2-soft)}
.mh-plan-t{flex:1;min-width:0;display:grid}
.mh-plan-t b{font-size:.94rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh-plan-t small{font-size:.78rem;color:var(--text-3)}
.mh-chev{flex:none;color:var(--text-3);display:grid}
.mh-fresh{display:flex;align-items:center;gap:10px;padding:10px 10px 2px;border-top:1px dashed var(--border);margin-top:4px}
.mh-stack-light .mh-av{box-shadow:0 0 0 2px var(--card)}
.mh-fresh small{color:var(--text-3);font-size:.8rem}

/* Media */
.mh-media .mh-ph{width:118px;height:118px;border-radius:18px;overflow:hidden;background:var(--u2-soft)}
.mh-ph img{width:100%;height:100%;object-fit:cover;display:block}

/* Yan sütun */
.mh-jk{display:flex;align-items:center;gap:12px;padding:14px}
.mh-jk-art{flex:none;display:flex}
.mh-jk-art .pt-svg{margin-right:-14px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.25))}
.mh-jk-art .pt-svg:last-child{margin-right:0}
.mh-jk-t{flex:1;min-width:0;display:grid;gap:3px;padding-left:8px}
.mh-jk-t b{font-size:.98rem}
.mh-jk-t small{font-size:.8rem;color:var(--text-3)}
.mh-bar{display:block;height:7px;border-radius:99px;background:var(--u2-soft);overflow:hidden;margin-top:4px}
.mh-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#c9971a,#F6C445)}
.mh-wx{display:flex;align-items:center;gap:12px;padding:14px}
.mh-wx-em{flex:none;width:50px;height:50px;border-radius:16px;background:var(--u2-soft);display:grid;place-items:center;font-size:26px}
.mh-wx-t{flex:1;min-width:0;display:grid;gap:1px}
.mh-wx-t b{font-family:var(--font-head);font-size:1.15rem}
.mh-wx-t small{font-size:.8rem;color:var(--text-3)}
.mh-wx-t span{font-size:.82rem;font-weight:600}
.mh-wx.is-good .mh-wx-t span{color:var(--ok,#16A34A)}
.mh-wx.is-bad .mh-wx-t span{color:var(--warn,#D97706)}
.mh-wx-go{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--u2-soft);color:var(--text)}
.mh-soon{padding:14px}
.mh-h-in{margin-bottom:6px}
.mh-h-in h2{font-size:1rem}
.mh-soon-r{display:flex;align-items:center;gap:10px;padding:6px 0}
.mh-soon-r .avatar{width:36px;height:36px;border-radius:50%;object-fit:cover}
.mh-soon-r span{display:grid}
.mh-soon-r small{font-size:.78rem;color:var(--text-3)}
.mh-medal{display:flex;align-items:center;gap:12px;padding:12px 14px;background:linear-gradient(135deg,var(--card),rgba(246,196,69,.1))}
.mh-medal>span:nth-child(2){flex:1;display:grid}
.mh-medal small{font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--u2-gold)}
.mh-medal span span{font-size:.82rem;color:var(--text-2)}
.mh-duo{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mh-tile{display:flex;flex-direction:column;gap:3px;padding:14px;min-height:110px}
.mh-tile b{font-size:.95rem;line-height:1.2;margin-top:auto}
.mh-tile span:last-child{font-size:.78rem;color:var(--text-3)}
.mh-tile small{font-family:var(--font-head);font-size:1.5rem;font-weight:700;color:#E9C46A}
.mh-tile-dark{background:var(--u2-hero);border-color:var(--u2-hero);color:#fff!important}
.mh-tile-dark span:last-child{color:#A9ADB5}
.mh-tile-ic{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--u2-soft)}
.mh-gold{color:var(--u2-gold)}
.mh-news{padding:14px;display:grid;gap:4px}
.mh-news a:not(.mh-h a){display:grid;padding:8px 0;border-top:1px solid var(--border)}
.mh-news small{font-size:.76rem;color:var(--text-3)}

/* ---------- Alt menyu (sayt + tətbiq): Ana · Tədbirlər · [Sürüş] · Xəritə · Profil ---------- */
.bottom-nav.u2nav{grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;padding:6px 6px calc(8px + env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--border);box-shadow:0 -10px 30px -22px rgba(21,23,28,.35);backdrop-filter:none;-webkit-backdrop-filter:none}
.bottom-nav.u2nav a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px 2px;color:var(--text-3);font:600 .68rem/1.2 var(--font-body);text-decoration:none;position:relative}
.bottom-nav.u2nav a .u2i{display:grid;place-items:center;width:44px;height:30px;border-radius:12px;transition:background .2s}
.bottom-nav.u2nav a.on,.bottom-nav.u2nav a.active{color:var(--text);font-weight:800}
.bottom-nav.u2nav a.on .u2i,.bottom-nav.u2nav a.active .u2i{background:var(--u2-soft)}
.bottom-nav.u2nav a.u2cta{color:var(--text)}
.bottom-nav.u2nav a.u2cta .u2i{width:60px;height:60px;margin-top:-30px;border-radius:50%;background:#E52535;color:#fff;box-shadow:0 12px 24px -10px rgba(229,37,53,.7),0 0 0 5px var(--card)}
.bottom-nav.u2nav a.u2cta.on .u2i{background:#C81E2D}
.bottom-nav.u2nav a:active .u2i{transform:scale(.92)}
.bottom-nav.u2nav .badge-dot{position:absolute;top:2px;left:calc(50% + 6px)}

/* Tətbiq (qabığın menyusu saytın menyusundan qurulur — native.js): eyni görünüş */
nav.bottom-nav.apx-nav{align-items:end;padding:6px 6px calc(8px + env(safe-area-inset-bottom));background:var(--card,#fff);border-top:1px solid var(--border,#E7E3DB);box-shadow:0 -10px 30px -22px rgba(21,23,28,.35)}
nav.bottom-nav.apx-nav a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px 2px;color:var(--text-3,#8B909A);font:600 .68rem/1.2 Inter,system-ui,sans-serif}
nav.bottom-nav.apx-nav a .ic{display:grid;place-items:center;width:44px;height:30px;border-radius:12px;transition:background .2s}
nav.bottom-nav.apx-nav a .ic svg{width:23px;height:23px}
nav.bottom-nav.apx-nav a.on{color:var(--text,#15171C);font-weight:800}
nav.bottom-nav.apx-nav a.on .ic{background:var(--u2-soft)}
nav.bottom-nav.apx-nav a.cta{color:var(--text,#15171C)}
nav.bottom-nav.apx-nav a.cta .ic{width:60px;height:60px;margin-top:-30px;border-radius:50%;border:0;background:#E52535;color:#fff;box-shadow:0 12px 24px -10px rgba(229,37,53,.7),0 0 0 5px var(--card,#fff)}
nav.bottom-nav.apx-nav a.cta .ic svg{width:28px;height:28px}
nav.bottom-nav.apx-nav a:active .ic{transform:scale(.92)}
/* Ortadakı «Sürüş» düyməsi olduğu üçün köhnə üzən moto düyməsi (aktiv sürüş yoxdursa) gizlənir */
body:has(.u2nav) .rb:not(.is-sos):not(.is-convoy){display:none!important}

.mh .avatar-initials,.mh .avatar.avatar-initials{display:grid!important;place-items:center;font-weight:700;line-height:1}
.mh-me .avatar-initials{font-size:.95rem}
.mh-live:empty{display:none}
.mh-live{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:18px}
.mh-live>*{min-width:0}
.mh-live>*{margin:0!important}
.mh-live .container{width:auto!important;max-width:none!important;padding:0!important;margin:0!important}
.mh-live{min-width:0}
.mh-live .lstrip{margin:0!important}
.mh-live section{padding:0!important}

/* ---------- Tədbirlər siyahısı: telefonda 1-ci böyük kart, qalanları yığcam sətir ---------- */
@media (max-width:759px){
  .ev2-list{display:flex!important;flex-direction:column;gap:12px}
  .ev2-list .event-card{border-radius:22px;box-shadow:none}
  .ev2-list .event-card:first-child .event-card-media{aspect-ratio:16/9}
  .ev2-list .event-card:not(:first-child){flex-direction:row;align-items:center;gap:12px;padding:12px 14px}
  .ev2-list .event-card:not(:first-child) .event-card-media{flex:none;aspect-ratio:auto;width:56px;height:62px;border-radius:14px;background:var(--u2-soft);overflow:visible}
  .ev2-list .event-card:not(:first-child) .event-card-media>:not(.date-chip){display:none}
  .ev2-list .event-card:not(:first-child) .date-chip{position:static;width:56px;height:62px;padding:0;background:none;box-shadow:none;color:var(--u2-red-ink);align-content:center}
  .ev2-list .event-card:not(:first-child) .event-card-body{padding:0;gap:4px;min-width:0}
  .ev2-list .event-card:not(:first-child) .event-card-top{order:3}
  .ev2-list .event-card:not(:first-child) .event-card-title{font-size:1rem;margin:0}
  .ev2-list .event-card:not(:first-child) .meta-list li:not(:first-child){display:none}
  .ev2-list .event-card:not(:first-child) .meta-list{font-size:.8rem}
  .ev2-list .event-card:not(:first-child) .seats{display:none}
  .ev2-list .event-card:not(:first-child) .tag{display:none}
}
