/* ============================================================
   DoctorAdam — Patient Portal theme
   wwwroot/harmonify/css/portal-theme.css
   Design tokens mirrored from HarmonifyRX.UI/wwwroot/css/checkout.css
   (source of truth for brand). Keep the two files in sync.
   Breakpoints: 520 / 768 / 900 / 1024 only.
============================================================ */

/* ---------- Design tokens ---------- */
:root {
    --paper: #F7F9FC;
    --surface: #FFFFFF;
    --ink: #1B2430;
    --ink-2: #2A3340;
    --muted: #5E6B7B;
    --line: #E5E8EE;
    --line-strong: #D7DCE4;
    --brand: #D94B23;
    --brand-700: #B03B1A;
    --brand-800: #B93C18;
    --brand-tint: #FFF0EB;
    --brand-tint-hover: #FBD9CC;
    --brand-ink: #7A2A12;
    --brand-gradient: linear-gradient(107.36deg,#D82D61 -2.64%,#D94B23 38.88%,#F1A34E 91.52%);
    --accent: #F1A34E;
    --savings: #5BA829;
    --savings-bg: #ECF7E3;
    /* İkincil vurgu (doz timeline "current shipment", bilgi ikonu) — mockup indigo'su */
    --indigo: #4C5FD5;
    --indigo-tint: #EEF0FB;
    --indigo-ink: #32408F;
    --danger: #C0492F;
    --danger-bg: #FBEBE7;
    --ring: 0 0 0 3px rgba(217,75,35,.20);
    --card-border: #EEF0F4;
    --shadow-sm: 0 1px 2px rgba(27,36,48,.05);
    --shadow: 0 32px 64px -16px rgba(27,36,48,.08);
    --shadow-card: 0 1px 2px rgba(16,24,40,0.04), 0 8px 24px -8px rgba(16,24,40,0.08);
    --r: 20px;
    --r-sm: 14px;
}

/* ---------- Base ---------- */
body.v2 {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* hiçbir taşma sayfayı yana kaydırmasın → kartlar hep tam-genişlik ve eşit */
}

.dm-heading { font-family: 'DM Sans', sans-serif; letter-spacing: -0.03em; }
.ui-text    { font-family: 'Inter', sans-serif; }

.ms-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal; font-style: normal;
    line-height: 1; letter-spacing: normal; text-transform: none;
    display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* Focus visibility (brand ring) */
.v2 a:focus-visible,
.v2 button:focus-visible,
.v2 input:focus-visible,
.v2 select:focus-visible,
.v2 textarea:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

/* ---------- Buttons ---------- */
.btn-brand        { background: var(--brand); color: #fff; }
.btn-brand:hover  { background: var(--brand-700); color: #fff; }
.btn-brand-soft   { background: var(--brand-tint); color: var(--brand-ink); }
.btn-brand-soft:hover { background: var(--brand-tint-hover); color: var(--brand-ink); }

/* Primary CTA — comfortable touch target, full width on small phones */
.cta-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 10px 22px;
    background: var(--brand); color: #fff;
    border: none; border-radius: 12px;
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px;
    cursor: pointer; transition: background .15s;
}
.cta-primary:hover { background: var(--brand-700); color: #fff; }
.cta-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 10px 22px;
    background: var(--brand-tint); color: var(--brand-ink);
    border: none; border-radius: 12px;
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px;
    cursor: pointer; transition: background .15s;
}
.cta-secondary:hover { background: var(--brand-tint-hover); color: var(--brand-ink); }

@media (max-width: 520px) {
    .cta-primary, .cta-secondary { width: 100%; }
}

/* ---------- Status pills ---------- */
.status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 500; white-space: nowrap;
}
.status-pill.ok      { background: var(--savings-bg); color: #157347; }
.status-pill.pending { background: #FEF3C7; color: #92400E; }
.status-pill.warn    { background: #FEF3C7; color: #92400E; }
.status-pill.brand   { background: var(--brand-tint); color: var(--brand-ink); }
.status-pill.muted   { background: #F2F4F8; color: var(--muted); }
.status-pill.cancel  { background: var(--danger-bg); color: var(--danger); }

/* ---------- Inline edit pill ---------- */
.pill-edit {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 500;
    padding: 4px 10px; border-radius: 999px;
    background: var(--brand-tint); color: var(--brand-ink);
    min-height: 28px; cursor: pointer; transition: background .15s;
    white-space: nowrap; flex-shrink: 0;
    position: relative;
}
/* Görünmez dokunma halesi: pill görsel olarak 28px kalır, tıklanabilir alan ~44px olur */
.pill-edit::before { content: ''; position: absolute; inset: -8px; border-radius: 999px; }
.pill-edit:hover { background: var(--brand-tint-hover); color: var(--brand-ink); }

/* Dokunma alanı genişletici — görsel düzeni DEĞİŞTİRMEDEN (negatif margin) tıklanabilir
   kutuyu ~44px yüksekliğe çıkarır; 16-20px'lik metin linkleri için (QA sweep Sept 12). */
.tap-target {
    display: inline-flex; align-items: center;
    padding-top: 12px; padding-bottom: 12px;
    margin-top: -12px; margin-bottom: -12px;
}

/* ---------- Profile label/value rows ---------- */
.profile-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.profile-row:last-child { border-bottom: none; }

@media (max-width: 520px) {
    /* Stack label above value so long values don't squeeze at 375px */
    .profile-row { flex-direction: column; align-items: stretch; gap: 4px; }
}

/* ---------- Document type chip ---------- */
.doc-type-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 8px;
    background: var(--brand-tint); color: var(--brand-ink);
    font-size: 12px; font-weight: 600;
}

/* ---------- Mobile card lists (dual-render tables) ---------- */
.mobile-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}
.mobile-card + .mobile-card { margin-top: 12px; }
.mobile-card__head {
    display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.mobile-card__title {
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px;
    color: var(--ink); letter-spacing: -0.01em;
}
.mobile-card__sub { font-size: 12.5px; color: var(--muted); }
.mobile-card__row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 7px 0; font-size: 13.5px;
    border-bottom: 1px dashed var(--line);
}
.mobile-card__row:last-of-type { border-bottom: none; }
.mobile-card__label { color: var(--muted); font-family: 'Inter', sans-serif; }
.mobile-card__value { color: var(--ink); font-weight: 500; text-align: right; }
.mobile-card__actions {
    display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
}
.mobile-card__actions .cta-primary,
.mobile-card__actions .cta-secondary { width: 100%; min-height: 44px; }
/* Secondary link rows inside cards (e.g. View questionnaire) */
.mobile-card__link {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; font-size: 14px; font-weight: 500; color: var(--brand);
}
.mobile-card__link:hover { color: var(--brand-700); }

/* ---------- Sidebar nav ---------- */
.nav-link-v2 {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    min-height: 44px; padding: 10px 14px; border-radius: 10px;
    color: var(--muted); font-weight: 500; font-size: 14px;
    transition: background .15s, color .15s;
}
.nav-link-v2:hover { background: #F2F4F8; color: var(--ink); }
.nav-link-v2 .ms-rounded { font-size: 20px; }
/* Active: left orange accent bar + ink text + filled orange icon on a subtle neutral bg */
.nav-link-v2.active { background: #F5F6F8; color: var(--ink); font-weight: 600; }
.nav-link-v2.active::before {
    content: ''; position: absolute; left: 0; top: 22%; bottom: 22%;
    width: 3px; border-radius: 999px; background: var(--brand);
}
.nav-link-v2.active .ms-rounded {
    color: var(--brand);
    font-variation-settings: 'FILL' 1;
}

/* ---------- Sidebar user card (bottom-pinned identity + sign-out) ---------- */
.sidebar-user {
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 14px;
    border: 1px solid var(--line); background: var(--surface);
    text-align: left; cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.sidebar-user:hover { background: #F7F8FA; border-color: var(--line-strong); }
#sidebarUser.open .sidebar-user { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.sidebar-user__name  { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.sidebar-user__email { font-size: 11.5px; color: var(--muted); line-height: 1.3; }

.sidebar-user__menu {
    display: none;
    position: absolute; left: 16px; right: 16px; bottom: calc(100% - 4px);
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 16px 40px rgba(16,24,40,.14);
    padding: 6px; z-index: 45;
}
#sidebarUser.open .sidebar-user__menu { display: block; animation: sidebarUserIn .16s ease; }
@keyframes sidebarUserIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.sidebar-user__item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; border-radius: 10px;
    color: var(--ink-2); font-weight: 500; font-size: 13.5px;
    transition: background .12s, color .12s;
}
.sidebar-user__item:hover { background: #F5F6F8; color: var(--ink); }
.sidebar-user__item--danger { color: var(--danger); }
.sidebar-user__item--danger:hover { background: var(--danger-bg); color: var(--danger); }
.sidebar-user__divider { height: 1px; background: var(--line); margin: 5px 8px; }

/* ---------- Bottom tab bar (mobile) ---------- */
#bottomNav {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}
#bottomNav .bottom-nav__in {
    /* minmax(0,1fr) → kolonlar içeriğin altına küçülebilir; 5 sekme HER ekran genişliğine sığar
       (1fr = minmax(auto,1fr) etiketin min-genişliğinde takılıp dar telefonlarda taşıyordu). */
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: 56px; max-width: 560px; margin: 0 auto;
}
.bottom-nav__item {
    position: relative; min-width: 0; padding: 0 2px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--muted); font-family: 'Inter', sans-serif;
    font-size: 11px; font-weight: 500; line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav__item > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 374px) {
    /* 5 tabs on very narrow phones — keep labels from clipping */
    .bottom-nav__item { font-size: 10px; }
    .bottom-nav__item .ms-rounded { font-size: 21px; }
}
.bottom-nav__item .ms-rounded { font-size: 22px; }
/* Active: brand color + filled icon + slim top accent bar (matches sidebar accent style) */
.bottom-nav__item.active { color: var(--brand); font-weight: 600; }
.bottom-nav__item.active .ms-rounded { font-variation-settings: 'FILL' 1; }
.bottom-nav__item.active::before {
    content: ''; position: absolute; top: 0; left: 50%;
    width: 24px; height: 2px; border-radius: 999px;
    transform: translateX(-50%); background: var(--brand);
}

@media (max-width: 1023px) {
    #bottomNav { display: block; }
}

/* ---------- Metronic-free chrome reskin (Bootstrap components) ---------- */
.v2 .card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--shadow-card);
}
.v2 .card-header { border-bottom: 1px solid var(--line); padding: 20px 24px; background: transparent; }
.v2 .card-body   { padding: 20px 24px; }
.v2 .badge-light-primary { background: var(--brand-tint) !important; color: var(--brand-ink) !important; }
.v2 .btn-primary { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.v2 .btn-primary:hover { background: var(--brand-700) !important; border-color: var(--brand-700) !important; }
.v2 .text-primary { color: var(--brand) !important; }
.v2 .form-control:focus,
.v2 .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(217,75,35,.12); }
.v2 .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.v2 a.text-hover-primary:hover, .v2 .text-hover-primary:hover { color: var(--brand) !important; }
.v2 .modal-content { border-radius: 16px; border: 1px solid var(--line); }

/* Contact rows — shared by the Support page AND the care-team "We're here to help" modal.
   (Moved out of Support/Index.cshtml page-scope so the shared modal renders styled everywhere.) */
.support-contact-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.support-contact-row:hover { background: var(--paper); border-color: var(--brand); }
.support-contact-row .ms-rounded {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; font-size: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-tint); color: var(--brand);
}
.support-contact-row--primary { background: var(--brand-tint); border-color: var(--brand-tint-hover); }
.support-contact-row--primary:hover { background: var(--brand-tint-hover); border-color: var(--brand); }
.support-contact-row--primary .ms-rounded { background: var(--brand); color: #fff; }
.support-contact-row .support-contact-row__go {
    width: auto; height: auto; background: transparent; color: var(--brand); font-size: 20px; margin-left: auto;
}

.v2 .btn { min-height: 44px; }
.v2 .btn-sm { min-height: 36px; }

/* Metronic "indicator" spinner contract used by legacy JS ("Please wait…") */
.indicator-progress { display: none; }
[data-kt-indicator="on"] .indicator-label { display: none; }
[data-kt-indicator="on"] .indicator-progress { display: inline-block; }

/* Metronic icon-size helpers still present in some markup */
.v2 .fs-2 { font-size: 1.5rem; }
.v2 .fs-3 { font-size: 1.35rem; }

/* ---------- Touch targets in JS-rendered tables ---------- */
#allergiesTable td a, #allergiesTable td button,
#medicationsTable td a, #medicationsTable td button {
    min-height: 44px; min-width: 44px;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Visit banner (_LatestInfoPartial) ----------
   Renders as a self-sticky strip at the top of the content column (it used to sit
   inside the topbar). Canvas-fade background keeps a soft edge while stuck. */
.visit-banner-wrapper {
    position: sticky; top: 0; z-index: 20;
    padding: 12px 16px 6px;
    background: linear-gradient(#F7F9FC, #F7F9FC 78%, rgba(247,249,252,0));
}
@media (min-width: 640px)  { .visit-banner-wrapper { padding: 16px 32px 8px; } }
@media (max-width: 1023px) { .visit-banner-wrapper { top: 64px; } } /* below mobile topbar */
.visit-banner {
    display: flex; align-items: center; gap: 10px;
    background: var(--brand-tint);
    border: 1px solid var(--brand-tint-hover);
    border-radius: 12px;
    color: var(--brand-ink);
    padding: 8px 12px;
    position: relative;
}
.visit-banner .visit-banner__icon {
    flex-shrink: 0; font-size: 20px; color: var(--brand);
}
.visit-banner .visit-banner__text { flex: 1; min-width: 0; }
.visit-banner .visit-banner__title {
    font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 600;
    margin: 0; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.visit-banner .visit-banner__message {
    font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--brand-ink);
    opacity: .85; margin: 0; line-height: 1.4;
}
.visit-banner .btn-visit {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 8px 16px;
    background: var(--brand); color: #fff;
    border-radius: 10px; font-size: 13.5px; font-weight: 600;
    white-space: nowrap; transition: background .15s;
}
.visit-banner .btn-visit:hover { background: var(--brand-700); color: #fff; }

@media (min-width: 768px) {
    .visit-banner__message { display: block; }
}

@media (max-width: 767px) {
    .visit-banner { cursor: pointer; flex-wrap: wrap; }
    .visit-banner::after {
        content: 'expand_more';
        font-family: 'Material Symbols Rounded';
        font-size: 18px; color: var(--brand);
        margin-left: auto; flex-shrink: 0;
        transition: transform .25s ease;
    }
    .visit-banner.expanded::after { transform: rotate(180deg); }
    .visit-banner .visit-banner__message,
    .visit-banner .visit-banner__action {
        max-height: 0; opacity: 0; overflow: hidden; margin: 0;
        transition: max-height .25s ease, opacity .25s ease;
    }
    .visit-banner.expanded .visit-banner__title { white-space: normal; }
    .visit-banner.expanded .visit-banner__message { max-height: 120px; opacity: 1; margin-top: 2px; }
    .visit-banner.expanded .visit-banner__action {
        max-height: 60px; opacity: 1; width: 100%; margin-top: 8px;
    }
    .visit-banner.expanded .btn-visit { width: 100%; min-height: 44px; }
}

@media (max-width: 520px) {
    .visit-banner { padding: 7px 10px; }
    .visit-banner .visit-banner__title { font-size: 12.5px; }
}

/* ---------- Shop page ---------- */
.shop-search {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 0 14px; min-height: 48px;
}
.shop-search .ms-rounded { color: var(--muted); font-size: 20px; flex-shrink: 0; }
.shop-search input {
    flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink);
}
.shop-search input::placeholder { color: var(--muted); }

.shop-chips-wrap { position: relative; }
.shop-chips {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 2px; margin: 0 -2px;
    scrollbar-width: none; scroll-behavior: smooth;
    scroll-snap-type: x proximity;
}
.shop-chips::-webkit-scrollbar { display: none; }
/* Snap noktası = çip MERKEZİ: programatik ortalama snap'le çakışmaz (start-align
   ortalanmış konumu proximity içinde geri çekiyordu) + kaydırma karusel gibi durur */
.shop-chip { scroll-snap-align: center; }
/* Fade hints — only while more content hides in that direction */
.shop-chips-wrap::before,
.shop-chips-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 56px;
    pointer-events: none; z-index: 1; opacity: 0; transition: opacity .2s;
}
.shop-chips-wrap::before { left: -2px; background: linear-gradient(to right, var(--paper), transparent); }
.shop-chips-wrap::after  { right: -2px; background: linear-gradient(to left, var(--paper), transparent); }
.shop-chips-wrap.can-left::before { opacity: 1; }
.shop-chips-wrap.can-right::after { opacity: 1; }
.shop-chips-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    display: none; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow-card); color: var(--ink); cursor: pointer;
    transition: opacity .2s, background .15s;
}
.shop-chips-arrow:hover { background: var(--brand-tint); color: var(--brand); }
.shop-chips-arrow .ms-rounded { font-size: 20px; }
.shop-chips-arrow--left  { left: -10px; }
.shop-chips-arrow--right { right: -10px; }
@media (min-width: 768px) {
    /* Arrows are a pointer affordance; phones get the nudge pill below */
    .shop-chips-wrap.can-left  .shop-chips-arrow--left  { display: inline-flex; }
    .shop-chips-wrap.can-right .shop-chips-arrow--right { display: inline-flex; }
}
@media (max-width: 767px) {
    /* Mobil: kaydırıcı olduğu belli olsun — sağda yüzen "›" pili (tık = kaydır,
       şerit sonunda can-right düşünce kendiliğinden kaybolur) + daha geniş fade,
       son çip pilin altında kalmasın diye sağ padding. */
    .shop-chips { padding-right: 48px; }
    .shop-chips-wrap::after { width: 72px; }
    .shop-chips-wrap.can-right .shop-chips-arrow--right {
        display: inline-flex; width: 30px; height: 30px; right: -4px;
        border-color: var(--line-strong);
    }
    .shop-chips-wrap.can-right .shop-chips-arrow--right .ms-rounded {
        animation: chipNudge 1.6s ease-in-out 2; /* iki nabız — dikkat çek, sonra sus */
    }
}
@keyframes chipNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
.shop-chip {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
    min-height: 38px; padding: 6px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    color: var(--muted); font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 500; cursor: pointer;
    white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.shop-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.shop-chip.active {
    background: var(--brand); border-color: var(--brand);
    color: #fff; font-weight: 600;
}

/* Hero — light surface card in the portal's own language; warmth stays a whisper */
.shop-hero {
    position: relative; overflow: hidden;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    padding: 36px 32px;
}
.shop-hero::before {
    /* quiet brand-tint wash, top-right */
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(52% 92% at 90% 0%, var(--brand-tint) 0%, transparent 62%),
        radial-gradient(36% 60% at 74% 100%, #FFF8F3 0%, transparent 58%);
    pointer-events: none;
}
.shop-hero__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; }
.shop-hero__copy { flex: 1; min-width: 0; }
.shop-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-tint);
    padding: 5px 12px; border-radius: 999px;
}
.shop-hero h1 {
    font-family: 'DM Sans', sans-serif; letter-spacing: -0.03em;
    font-weight: 700; font-size: clamp(26px, 4.2vw, 38px); line-height: 1.14;
    color: var(--ink); margin: 14px 0 10px;
}
.shop-hero__accent {
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shop-hero__sub {
    font-family: 'Inter', sans-serif; font-size: 14.5px; line-height: 1.6;
    color: var(--muted); max-width: 54ch;
}
/* Trustpilot lockup — official green, links to the live review page */
.tp-link {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-top: 16px; font-family: 'Inter', sans-serif; font-size: 13px;
    color: var(--ink-2);
}
.tp-link:hover { color: var(--ink); }
.tp-link:hover .tp-text u { text-decoration-color: var(--ink); }
.tp-stars { display: inline-flex; gap: 3px; }
.tp-stars i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 21px; height: 21px; background: #00B67A; border-radius: 3px;
}
.tp-stars svg { width: 13px; height: 13px; fill: #fff; }
.tp-text strong { font-weight: 700; }
.tp-text u { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.shop-hero .shop-search {
    margin-top: 18px; max-width: 560px;
    background: var(--surface); border: 1px solid var(--line-strong);
}
.shop-hero .shop-search:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.shop-hero__meta {
    display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px;
    font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
}
.shop-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.shop-hero__meta .ms-rounded { font-size: 17px; color: var(--brand); }
/* Framed provider portrait with a soft tint halo (desktop only) */
.shop-hero__portrait { position: relative; flex-shrink: 0; width: 230px; }
.shop-hero__portrait::before {
    content: ''; position: absolute; inset: -22px -18px auto auto;
    width: 190px; height: 190px; border-radius: 999px;
    background: var(--brand-tint); z-index: 0;
}
.shop-hero__portrait img {
    position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 4.6;
    /* source banner has baked-in text on its left — frame the doctor on the right */
    object-fit: cover; object-position: 100% 32%;
    border-radius: 18px; border: 4px solid #fff;
    box-shadow: 0 20px 40px -14px rgba(27,36,48,.25);
}
.shop-hero__portrait figcaption {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 8px;
    margin-top: -26px; margin-left: 12px; margin-right: 12px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 8px 12px;
    box-shadow: var(--shadow-card);
    font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--muted);
}
.shop-hero__portrait figcaption .ms-rounded {
    color: var(--savings); font-size: 18px; font-variation-settings: 'FILL' 1;
}
.shop-hero__portrait figcaption b {
    display: block; font-size: 12.5px; color: var(--ink); font-weight: 600;
}
/* Compact doctor chip — phones only, replaces the hidden portrait */
.shop-hero__docchip {
    display: none; align-items: center; gap: 10px;
    margin-top: 16px; padding: 10px 12px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow-sm);
}
.shop-hero__docchip img {
    width: 38px; height: 38px; border-radius: 999px; object-fit: cover;
    object-position: 76% 8%; /* face sits right-of-center in the source banner */
    border: 2px solid #fff; box-shadow: 0 2px 8px rgba(27,36,48,.18); flex-shrink: 0;
}
.shop-hero__docchip span:not(.ms-rounded) {
    flex: 1; min-width: 0;
    font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--muted); line-height: 1.35;
}
.shop-hero__docchip b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.shop-hero__docchip .ms-rounded {
    color: var(--savings); font-size: 20px; font-variation-settings: 'FILL' 1; flex-shrink: 0;
}
@media (max-width: 900px) {
    .shop-hero__portrait { display: none; }
    .shop-hero__docchip { display: flex; }
}
@media (max-width: 639px) {
    .shop-hero { padding: 22px 18px 20px; }
    .shop-hero h1 { font-size: 25px; margin: 12px 0 8px; }
    .shop-hero__sub { font-size: 13px; line-height: 1.55; }
    .tp-link { margin-top: 13px; font-size: 12.5px; gap: 8px; }
    .tp-stars i { width: 18px; height: 18px; }
    .tp-stars svg { width: 11px; height: 11px; }
    .shop-hero .shop-search { margin-top: 14px; min-height: 46px; }
    /* Trust points side by side instead of a tall stack */
    .shop-hero__meta {
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 8px 10px; margin-top: 14px; font-size: 11.5px;
    }
    .shop-hero__meta .ms-rounded { font-size: 15px; }
    .shop-hero__docchip { margin-top: 14px; }

    /* Hafif dikey sıkılaştırma (yatay 18px sabit — pills full-bleed'i buna bağlı) */
    .shop-hero--slim { padding: 18px 18px 16px; }
    .shop-hero--slim .shop-hero__sub { margin-top: 0; }
    .shop-hero--slim .shop-search { margin-top: 12px; }
}

/* Category tints — pastel image backdrops per display category */
.tint-wl { background: #E9F6EE; }
.tint-sm { background: #EAF1FB; }
.tint-sf { background: #FDEEF4; }
.tint-hl { background: #FFF3E3; }
.tint-lo { background: #F3EFFB; }
.tint-sl { background: #ECEFFA; }
.tint-ab { background: #FDF0EC; }
.tint-ic { background: #E8F5F3; }

/* Product card — merchandised */
.shop-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--card-border);
    border-radius: var(--r); box-shadow: var(--shadow-card);
    padding: 12px 16px 16px; transition: transform .18s ease, box-shadow .18s ease;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -14px rgba(27,36,48,.18); }
.shop-card__img {
    position: relative; display: flex; align-items: center; justify-content: center;
    aspect-ratio: 5 / 4; border-radius: 14px; margin: -2px -6px 12px;
    overflow: hidden;
}
.shop-card__img img {
    max-width: 74%; max-height: 82%; object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(27,36,48,.18));
    transition: transform .25s ease;
}
.shop-card:hover .shop-card__img img { transform: scale(1.05) translateY(-2px); }
.shop-card__img .ms-rounded { font-size: 44px; color: rgba(27,36,48,.18); }
.shop-badge {
    position: absolute; top: 10px; left: 10px; z-index: 1;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 999px;
    background: var(--ink); color: #fff;
    font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
}
.shop-badge.hot { background: var(--brand); }
.shop-card__cat {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.shop-card__name {
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 16.5px;
    color: var(--ink); letter-spacing: -0.02em; line-height: 1.25; margin-top: 3px;
}
.shop-card__desc {
    font-family: 'Inter', sans-serif; font-size: 12.5px; line-height: 1.5;
    color: var(--muted); margin-top: 7px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-card__bullets { list-style: none; margin: 10px 0 0; padding: 0; }
.shop-card__bullets li {
    display: flex; align-items: flex-start; gap: 7px;
    font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--ink-2);
    padding: 2.5px 0; line-height: 1.4;
}
.shop-card__bullets .ms-rounded {
    font-size: 15px; color: var(--savings); flex-shrink: 0; margin-top: 1px;
    font-variation-settings: 'FILL' 1;
}
.shop-card__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    /* pin to the card bottom so price + Get Started align across a row of cards */
    margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line);
}
.shop-card__bullets { margin-bottom: 12px; }
.shop-card__price {
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 19px; color: var(--ink);
    line-height: 1.1; white-space: nowrap;
}
.shop-card__price small {
    display: block; font-family: 'Inter', sans-serif; font-weight: 400;
    font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap;
}
.shop-card .cta-primary { min-height: 42px; font-size: 13.5px; padding: 8px 16px; width: auto; white-space: nowrap; }
@media (max-width: 520px) { .shop-card .cta-primary { width: auto; } }

/* Emergency Kit kartı: canlı bileşen toplamından tasarruf şeridi + what's-inside satırı */
.shop-card__kitvalue {
    font-family: 'Inter', sans-serif; font-size: 12px; line-height: 1.4;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
    margin-bottom: 10px;
}
.shop-card__kitvalue s { color: var(--muted); }
.shop-card__kitvalue b { color: var(--savings); font-weight: 700; }
.shop-card__inside {
    display: flex; align-items: center; gap: 8px; width: 100%;
    background: transparent; border: none; border-top: 1px dashed var(--line);
    padding: 10px 0 0; margin-bottom: 10px; cursor: pointer; text-align: left;
    font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
    transition: color .15s;
}
.shop-card__inside:hover { color: var(--brand); }
.shop-card__inside > .ms-rounded:first-child {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-tint); color: var(--brand); font-size: 15px;
}
.shop-card__inside-chev { margin-left: auto; font-size: 17px; color: var(--muted); }
.shop-card__inside:hover .shop-card__inside-chev { color: var(--brand); }

/* ---------- Shop redesign: kategori hub'ı (sayfanın asıl işi) ----------
   .cat-card = büyük tıklanabilir kategori kartı; tint zemin + yüzen ürün görseli.
   Girişte kademeli belirme (--stagger, reduced-motion'da kapalı). */
.cat-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card {
    position: relative; overflow: hidden; text-align: left;
    display: flex; align-items: stretch;
    min-height: 148px; padding: 18px 18px 16px;
    border: 1px solid rgba(27,36,48,.06); border-radius: var(--r);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    animation: catIn .45s ease both; animation-delay: var(--stagger, 0ms);
}
@keyframes catIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cat-card { animation: none; } }
.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -14px rgba(27,36,48,.18);
}
.cat-card.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(217,75,35,.18); }
.cat-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; max-width: 68%; }
.cat-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(255,255,255,.75); color: var(--brand); margin-bottom: 10px;
}
.cat-card__icon .ms-rounded { font-size: 19px; }
.cat-card__name {
    font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: -0.02em;
    font-size: 17px; color: var(--ink); line-height: 1.2;
}
.cat-card__tag {
    font-family: 'Inter', sans-serif; font-size: 12.5px; line-height: 1.45;
    color: var(--ink-2); opacity: .85; margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-card__meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: auto; padding-top: 12px;
}
.cat-card__price {
    font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 700; color: var(--ink);
    background: rgba(255,255,255,.8); padding: 3px 9px; border-radius: 999px;
}
.cat-card__count {
    font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 500; color: var(--muted);
}
.cat-card__img {
    position: absolute; right: -6px; bottom: -10px; z-index: 0;
    width: 38%; max-width: 120px; object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(27,36,48,.22));
    transform: rotate(6deg);
    transition: transform .25s ease;
}
.cat-card:hover .cat-card__img { transform: rotate(2deg) translateY(-4px) scale(1.04); }
.cat-card__chev {
    position: absolute; right: 14px; top: 14px; z-index: 1;
    font-size: 18px; color: var(--ink); opacity: 0;
    transform: translateX(-6px);
    transition: opacity .18s ease, transform .18s ease;
}
.cat-card:hover .cat-card__chev, .cat-card.is-active .cat-card__chev { opacity: .7; transform: none; }
@media (max-width: 639px) {
    /* 2 sütun kompakt hub: ikon + isim + adet; tagline/fiyat/chev gizli —
       8 kategori ~2 ekrana iner (tek sütun listede 4+ ekrandı).
       Base .cat-card kuralları YUKARIDA — bu blok onlardan sonra gelmeli. */
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-card { min-height: 116px; padding: 12px 12px 11px; }
    /* İsim görsele taşmasın: görsel sağda ~60px şerit kaplar (66px, right:-6) —
       gövdeye calc ile garantili sağ boşluk; isim kaç satır sararsa sarsın çakışmaz */
    .cat-card__body { max-width: calc(100% - 64px); }
    .cat-card__icon { width: 28px; height: 28px; border-radius: 8px; margin-bottom: 8px; }
    .cat-card__icon .ms-rounded { font-size: 16px; }
    .cat-card__name { font-size: 14px; line-height: 1.15; }
    .cat-card__tag { display: none; }   /* JS textContent'i display:none'da da okur — panelContext bozulmaz */
    .cat-card__meta { padding-top: 8px; }
    .cat-card__price { display: none; } /* kompakt spec: isim + adet */
    .cat-card__count { font-size: 10.5px; white-space: nowrap; }
    .cat-card__img { width: 40%; max-width: 66px; right: -6px; bottom: -10px; }
    .cat-card__chev { display: none; }
}

/* İnce nasıl-çalışır şeridi */
.how-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 10px 26px; margin-top: 18px; padding: 12px 16px;
    border: 1px dashed var(--line); border-radius: var(--r-sm);
    font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--ink-2);
}
.how-strip span { display: inline-flex; align-items: center; gap: 7px; }
.how-strip i {
    font-style: normal; display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--brand-tint); color: var(--brand);
    font-size: 11px; font-weight: 700;
}

/* Popüler ray — tüm genişliklerde yatay kaydırma, kenar solmalı */
.shop-popular-rail {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; gap: 14px;
    margin: 0 -16px; padding: 2px 16px 10px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.shop-popular-rail::-webkit-scrollbar { display: none; }
.shop-popular-rail .shop-card { flex: 0 0 270px; scroll-snap-align: start; }
@media (max-width: 639px) {
    /* Sonraki kart ~65px "peek" yapsın — kaydırılabilirlik sinyali; snap zaten mandatory */
    .shop-popular-rail { scroll-padding: 0 16px; }
    .shop-popular-rail .shop-card { flex-basis: 78%; max-width: 300px; }
}

/* Sticky kategori pill barı — panel açıkken görünür */
.shop-sticky-chips {
    position: sticky; top: 0; z-index: 30;
    margin: 18px -16px 0; padding: 10px 16px;
    background: rgba(247,249,252,.92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
@media (max-width: 1023px) {
    /* Mobil topbar (h-16=64px, z-30) altına yapış; z-index topbar'ın altında kalsın.
       Bilinen ödün: açık visit banner da top:64px'te (z-20) — panel açıkken çipler
       banner'ın üstünü örter; koşullu banner'a offset zincirlemiyoruz. */
    .shop-sticky-chips { top: 64px; z-index: 25; }
}
/* scrollIntoView(allSection) hedefi yapışkan elemanların altına insin.
   Çip barı yüksekliği ~59px (10+10 pad + 38 çip + 1 border). */
#allSection { scroll-margin-top: 68px; }                                  /* desktop: çip barı top:0 */
@media (max-width: 1023px) { #allSection { scroll-margin-top: 132px; } }  /* 64 topbar + 59 çip + pay */

/* Ürün paneli başlığı + temizle */
.shop-panel-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 12px; margin-bottom: 16px;
}
.shop-panel-clear {
    display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
    font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600;
    color: var(--muted); background: var(--surface);
    border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
    cursor: pointer; transition: color .15s ease, border-color .15s ease;
}
.shop-panel-clear:hover { color: var(--ink); border-color: var(--line-strong); }

/* Browse-all aç/kapa */
.browse-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 600;
    color: var(--ink-2); background: var(--surface);
    border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px;
    cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease;
}
.browse-toggle:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }

/* Yorum marquee'si — /select (winback.css .wb-marquee) deseninin portal portu.
   Gerçek scroll container: mobilde native swipe, masaüstünde drag; otomatik akış
   sayfa JS'inde (hover/drag/kullanıcı kaydırmasında durur). */
.shop-reviews-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px 16px; margin-bottom: 14px;
}
.shop-marquee {
    display: flex;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 2px 0 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}
.shop-marquee::-webkit-scrollbar { display: none; }
.shop-marquee.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.shop-marquee__group {
    display: flex; gap: 12px; padding-right: 12px;
    flex: 0 0 auto; min-width: max-content;
}
.shop-review {
    flex: 0 0 auto; width: 265px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm);
    padding: 15px 16px;
}
.shop-review__stars { display: flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.shop-review__verified {
    display: inline-flex; align-items: center; gap: 3px; margin-left: auto;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
    color: var(--savings);
}
.shop-review__verified svg { width: 12px; height: 12px; }
.shop-review__text {
    font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.55;
    color: var(--ink-2); margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-review__by { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted); }

/* Slim hero + inline güven hapları */
.shop-hero--slim .shop-hero__inner { align-items: center; }
.shop-hero--slim h1 { font-size: clamp(24px, 3.4vw, 32px); }
.shop-trust-pills {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px;
}
.shop-trust-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 500; color: var(--ink-2);
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}
.shop-trust-pill .ms-rounded { font-size: 14px; color: var(--brand); }
.shop-hero__portrait--sm { width: 170px; }

/* ---------- Shop: mobile-first compaction (most customers are on phones) ---------- */
@media (max-width: 639px) {
    /* Güven hapları: tek satır yatay kaydırma, kenar solmalı, scrollbar gizli.
       Base .shop-trust-pills (flex-wrap:wrap) YUKARIDA — bu blok ondan sonra gelmeli. */
    .shop-trust-pills {
        flex-wrap: nowrap; overflow-x: auto; margin-top: 12px;
        margin-left: -18px; margin-right: -18px; padding: 2px 18px;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
                mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    }
    .shop-trust-pills::-webkit-scrollbar { display: none; }
    .shop-trust-pills .tp-link { flex-wrap: nowrap; flex-shrink: 0; white-space: nowrap; } /* base flex-wrap:wrap — zorla tek satır */
    .shop-trust-pill { flex-shrink: 0; }

    /* Popüler ray kart içi sıkılaştırma (ray stilleri .shop-popular-rail'de, tüm genişlikler) */
    .shop-popular-rail .shop-card .cta-primary {
        white-space: nowrap; min-height: 40px; padding: 8px 14px; font-size: 13px;
    }
    .shop-popular-rail .shop-card__price { font-size: 17px; }
    .shop-popular-rail .shop-card__price small { white-space: nowrap; }

    /* All Treatments -> compact scannable rows: tint thumb left, essentials right */
    #productGrid { gap: 10px; }
    #productGrid .shop-card {
        display: grid; grid-template-columns: 96px 1fr;
        column-gap: 14px; align-items: center;
        padding: 12px; border-radius: var(--r-sm);
        cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    /* Tailwind .hidden (0,0,1) yukarıdaki ID'li kuralı (0,1,1) yenemez — filtre
       gizlemesi için aynı kapsamda display:none şart. DİKKAT: bu blokta #productGrid
       ile display set eden her yeni kural aynı tuzağı kurar. */
    #productGrid .shop-card.hidden { display: none; }
    #productGrid .shop-card:active { background: #FCFCFD; }
    #productGrid .shop-card__img {
        grid-row: 1 / span 4; align-self: center;
        aspect-ratio: 1 / 1; width: 96px; margin: 0; border-radius: 12px;
    }
    #productGrid .shop-card__img img { max-width: 84%; max-height: 84%; }
    #productGrid .shop-badge {
        top: auto; bottom: 6px; left: 50%; transform: translateX(-50%);
        padding: 3px 8px; font-size: 8.5px; white-space: nowrap;
    }
    #productGrid .shop-card__cat { font-size: 10px; }
    #productGrid .shop-card__name { font-size: 14.5px; margin-top: 1px; }
    #productGrid .shop-card__desc,
    #productGrid .shop-card__bullets { display: none; }
    #productGrid .shop-card__foot {
        margin-top: 6px; padding-top: 0; border-top: none;
    }
    #productGrid .shop-card__price { font-size: 16px; }
    #productGrid .shop-card__price small { font-size: 10px; }
    #productGrid .shop-card .cta-primary {
        min-height: 38px; padding: 6px 14px; font-size: 12.5px; white-space: nowrap;
    }
    #productGrid .shop-card:hover { transform: none; }
    /* Kit kartı: desc/bullets gizliyken tasarruf şeridi + inside satırı kalır —
       şerit fiyat alanının altında tek satır, inside satırı kartın son sırası */
    #productGrid .shop-card__kitvalue { font-size: 11px; margin: 2px 0 0; }
    #productGrid .shop-card__inside { padding: 7px 0 0; margin: 6px 0 0; font-size: 12px; }
}

/* Rotating quotes: items stack in one grid cell; container height fits the tallest,
   so the transition never causes layout shift. Sequenced, not crossfaded: the old
   quote floats up and fades fully out, THEN the new one rises in from below. */
.quote-rotator { display: grid; }
.quote-rotator .rotate-item {
    grid-area: 1 / 1; opacity: 0; transform: translateY(14px);
    pointer-events: none; visibility: hidden;
    transition:
        opacity .9s cubic-bezier(.25,.46,.45,.94),
        transform .9s cubic-bezier(.25,.46,.45,.94),
        visibility 0s linear .9s;
}
.quote-rotator .rotate-item.is-active {
    opacity: 1; transform: none; pointer-events: auto; visibility: visible;
    transition:
        opacity .9s cubic-bezier(.25,.46,.45,.94),
        transform .9s cubic-bezier(.25,.46,.45,.94),
        visibility 0s;
}
.quote-rotator .rotate-item.is-leaving {
    opacity: 0; transform: translateY(-10px); visibility: visible;
    transition:
        opacity .55s ease-in,
        transform .55s ease-in,
        visibility 0s linear .55s;
}
@media (prefers-reduced-motion: reduce) {
    .quote-rotator .rotate-item,
    .quote-rotator .rotate-item.is-active,
    .quote-rotator .rotate-item.is-leaving { transition: none; transform: none; }
}

/* Real review quote inside a category showcase */
.shop-quote {
    margin: 12px 0 0; padding: 12px 14px;
    background: var(--paper); border-left: 3px solid #00B67A; border-radius: 10px;
}
.shop-quote p {
    font-family: 'Inter', sans-serif; font-size: 12.5px; line-height: 1.55;
    color: var(--ink-2); font-style: italic; margin: 0;
}
.shop-quote footer {
    font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--muted); margin-top: 6px;
}
.shop-quote footer a { color: #00857a; }
.shop-quote footer a:hover { text-decoration: underline; color: #00B67A; }

/* Small Trustpilot lockup (showcase meta row) */
.shop-tp-mini {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--ink-2);
}
.shop-tp-mini:hover { color: var(--ink); }
.shop-tp-mini i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 17px; height: 17px; background: #00B67A; border-radius: 3px;
}
.shop-tp-mini svg { width: 11px; height: 11px; fill: #fff; }

/* Trustpilot yıldızları küçük varyant (proof şeridi) */
.tp-stars--sm i { width: 16px; height: 16px; }
.tp-stars--sm svg { width: 10px; height: 10px; }

/* ---------- Treatment hero (Manage Treatment / dashboard treatment card) ---------- */
.treatment-hero {
    position: relative;
    display: flex; align-items: stretch; gap: 22px;
    background: var(--surface); border: 1px solid var(--card-border);
    border-radius: var(--r); box-shadow: var(--shadow-card);
    padding: 20px;
    transition: box-shadow .2s ease, transform .2s ease;
}
/* Dashboard kartı hover'da hafif yükselir (Manage başlığı statik kalır) */
.treatment-hero--card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 16px 36px -10px rgba(16,24,40,.14);
}
/* Ürün spot'u: sıcak radyal degrade + halka aksanları; kart yüksekliğine ezilmez */
.treatment-hero__img {
    flex-shrink: 0; align-self: stretch; position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 224px; min-height: 200px; padding: 12px; border-radius: 16px;
    background: radial-gradient(130% 95% at 50% 18%, #FFE1D2 0%, var(--brand-tint) 52%, #FFF8F4 100%);
    overflow: hidden;
}
.treatment-hero__img::before,
.treatment-hero__img::after {
    content: ""; position: absolute; left: 50%; top: 54%;
    transform: translate(-50%, -50%); border-radius: 50%;
    border: 1.5px solid rgba(217,75,35,.10); pointer-events: none;
}
.treatment-hero__img::before { width: 150px; height: 150px; }
.treatment-hero__img::after  { width: 214px; height: 214px; border-color: rgba(217,75,35,.06); }
.treatment-hero__img img {
    position: relative; z-index: 1;
    width: auto; height: auto; max-width: 100%; max-height: 100%;
    object-fit: contain; border-radius: 14px;
    filter: drop-shadow(0 14px 20px rgba(122,42,18,.18));
    transition: transform .25s ease;
}
.treatment-hero--card:hover .treatment-hero__img img { transform: translateY(-3px) scale(1.02); }
.treatment-hero__img .ms-rounded { font-size: 40px; color: rgba(27,36,48,.18); }
.treatment-hero__body { flex: 1; min-width: 0; }
/* ACTIVE rozeti — sağ üst, nabız atan nokta */
.treatment-hero__badge {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px;
    background: var(--savings-bg); border: 1px solid #DCEECB;
    font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: #3E7C17;
}
.treatment-hero__badge i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--savings);
    animation: hero-badge-pulse 2.2s ease-out infinite;
}
@keyframes hero-badge-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(91,168,41,.45); }
    70%  { box-shadow: 0 0 0 6px rgba(91,168,41,0); }
    100% { box-shadow: 0 0 0 0 rgba(91,168,41,0); }
}
.treatment-hero__eyebrow {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--brand);
}
.treatment-hero__title {
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 20px;
    letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; margin-top: 4px;
}
.treatment-hero__sub {
    font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.55;
    color: var(--muted); margin-top: 6px;
}
/* Hero'daki "Product guide" linki — cta-secondary'nin pilüle kompakt hali */
.treatment-hero__guide {
    min-height: 38px; padding: 7px 16px;
    border-radius: 999px; font-size: 13.5px;
}
@media (max-width: 520px) { .treatment-hero__guide { width: auto; } }
/* Right rail: shipment/refill facts + Buy again */
.treatment-hero__facts {
    flex-shrink: 0; display: flex; flex-direction: column; gap: 12px;
    justify-content: flex-start; min-width: 300px; max-width: 330px;
}
.treatment-hero--badged .treatment-hero__facts { padding-top: 34px; }
/* İkon-rozetli bilgi çifti (Next shipment / Refill frequency) — mockup'taki yatay ikili */
.fact-tile-row { display: flex; align-items: stretch; gap: 14px; }
/* Manage'ın dikey rayı: masaüstünde sarmalayıcı görünmez (contents), mobilde karta dönüşür */
.fact-tile-row--col { display: contents; }
.fact-tile-row__divider { width: 1px; flex-shrink: 0; background: var(--line); }
/* flex:1 yalnız yatay ikili içinde — dikey rayda (Manage) kutular yayılıp hizayı bozuyordu */
.fact-tile { display: flex; gap: 10px; flex: 0 0 auto; min-width: 0; font-family: 'Inter', sans-serif; }
.fact-tile-row:not(.fact-tile-row--col) .fact-tile { flex: 1 1 0; }
.fact-tile__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--brand-tint); color: var(--brand); font-size: 20px;
}
/* Kargo/lojistik ikonu yeşil — mockup'ta tek semantik renk (truck) */
.fact-tile__icon--ship { background: var(--savings-bg); color: #3E7C17; }
.fact-tile__label {
    font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.fact-tile__value {
    font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700;
    letter-spacing: -0.01em; color: var(--ink); margin-top: 2px; line-height: 1.25;
}
.fact-tile__sub { font-size: 12px; color: var(--muted); margin-top: 1px; line-height: 1.4; }
/* Plan tile'ın "Plan details" tetiği — ayrıntılar (kadans/prepaid/next) modalda */
.fact-tile__more {
    display: inline-flex; align-items: center; gap: 2px;
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
    color: var(--brand); background: none; border: 0; padding: 0; margin-top: 2px;
    cursor: pointer; min-height: 24px;
}
.fact-tile__more:hover { color: var(--brand-700); }

/* Plan details modal — "Shipment journey" (Sep 17): track-modal dilini paylaşır
   (.track-head/.track-zone/.track-foot) + numaralı sevkiyat kutuları. */
.pdm-badge {
    display: inline-block; margin-left: 8px; padding: 2px 8px; vertical-align: 2px;
    font-family: 'Inter', sans-serif; font-size: 9.5px; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--brand); background: #fff; border: 1px solid var(--brand);
    border-radius: 999px;
}
.pdm-zone-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pdm-zone-count { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); flex-shrink: 0; }
.pdm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 520px) { .pdm-grid { grid-template-columns: repeat(2, 1fr); } }
.pdm-ship {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--surface); text-align: center;
}
.pdm-ship__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--paper); color: var(--muted); font-size: 15px;
}
.pdm-ship__num {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: .04em; color: var(--muted);
    display: inline-flex; align-items: center; gap: 4px;
}
.pdm-ship__date { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; color: var(--ink); min-height: 16px; }
.pdm-ship.is-done .pdm-ship__icon { background: var(--savings-bg); color: var(--savings); }
.pdm-ship.is-done { border-color: #DCEED0; }
.pdm-ship.is-next { background: var(--brand-tint); border-color: var(--brand); }
.pdm-ship.is-next .pdm-ship__icon { background: var(--brand); color: #fff; }
.pdm-ship.is-next .pdm-ship__num { color: var(--brand); }
.pdm-ship__next-chip {
    padding: 1px 6px; border-radius: 999px; font-size: 8.5px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--brand);
}
.pdm-ship.is-planned { opacity: .75; }
.pdm-ship.is-planned .pdm-ship__date { color: var(--muted); font-weight: 500; }
.pdm-coverage {
    display: inline-flex; align-items: center; gap: 6px; min-width: 0;
    font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted); line-height: 1.4;
}
.pdm-coverage .ms-rounded { font-size: 16px; color: var(--savings); flex-shrink: 0; }
.pdm-coverage b { color: var(--ink-2); font-weight: 600; }

/* Superseded grup şeridi — kart DEĞİL: aktif kartın altında ince "previous treatment" satırı
   (form/ürün geçişi iki ilaç kullanılıyormuş gibi görünmesin; Buy again sunulmaz) */
.treatment-prev-strip {
    display: flex; align-items: center; gap: 10px;
    margin-top: 10px; padding: 10px 14px;
    background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
    font-family: 'Inter', sans-serif; font-size: 13px; color: var(--muted);
}
.treatment-prev-strip__icon { color: var(--line-strong); font-size: 18px; flex-shrink: 0; }
.treatment-prev-strip__txt { flex: 1; min-width: 0; }
.treatment-prev-strip__txt b { color: var(--ink-2); font-weight: 600; }
.treatment-prev-strip__link {
    display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
    font-weight: 600; color: var(--brand); min-height: 32px;
}
.treatment-prev-strip__link:hover { color: var(--brand-700); }
@media (max-width: 520px) {
    .treatment-prev-strip { flex-wrap: wrap; }
    .treatment-prev-strip__link { margin-left: 28px; }
}
/* Kart içi bölüm başlığı (Status / Future dose plan) — kalın başlık + sağa uzayan çizgi */
.section-label {
    display: flex; align-items: center; gap: 10px;
    font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700;
    letter-spacing: -0.01em; color: var(--ink);
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Yanında başka içerik (ör. legend) olan başlıklar çizgisiz */
.section-label--bare::after { content: none; }
/* Durum paneli — duruma göre tonlanan yumuşak kutu: ikon + kalın etiket + alt mesaj */
.status-panel { border-radius: 12px; padding: 10px 14px; font-family: 'Inter', sans-serif; }
.status-panel__line { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.status-panel__line .ms-rounded { font-size: 17px; }
.status-panel__msg { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
/* Varyant anahtarları TreatmentPillClass ile birebir */
.status-panel--ok      { background: #F1F8ED; } .status-panel--ok .status-panel__line      { color: #157347; }
.status-panel--pending { background: #FDF6E7; } .status-panel--pending .status-panel__line { color: #92400E; }
.status-panel--warn    { background: #FDF6E7; } .status-panel--warn .status-panel__line    { color: #92400E; }
.status-panel--brand   { background: var(--brand-tint); } .status-panel--brand .status-panel__line { color: var(--brand-ink); }
.status-panel--cancel  { background: var(--danger-bg); } .status-panel--cancel .status-panel__line { color: var(--danger); }
.status-panel--muted   { background: #F5F6F8; } .status-panel--muted .status-panel__line   { color: var(--muted); }

/* Gövde içi küçük etiketler (fact değerleri) hâlâ bu sınıfları kullanır */
.treatment-fact { font-family: 'Inter', sans-serif; }
.treatment-fact__label {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted);
}
.treatment-fact__label .ms-rounded { font-size: 15px; color: var(--brand); }
.treatment-fact__value { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.treatment-fact__sub {
    font-size: 12px; color: var(--muted); margin-top: 1px; line-height: 1.4;
}
@media (max-width: 767px) {
    .treatment-hero { flex-direction: column; padding: 16px; }
    .treatment-hero__img { width: 100%; min-height: 0; aspect-ratio: 4 / 3; align-self: stretch; padding: 12px; }
    .treatment-hero__badge { top: 24px; right: 24px; }
    .treatment-hero__facts {
        min-width: 0; max-width: none; padding-top: 14px;
    }
    .treatment-hero--badged .treatment-hero__facts { padding-top: 14px; }
    /* Mobil: iki bilgi tek "sevkiyat özeti" kartında — kısayol kartlarıyla aynı ritim.
       Yumuşak zemin = tıklanmaz veri; beyaz kartlar = eylem. */
    .fact-tile-row, .fact-tile-row--col {
        display: flex; flex-direction: column; gap: 0;
        border: 1px solid var(--line); border-radius: var(--r-sm);
        background: #FBFCFD; padding: 4px 14px;
    }
    .fact-tile-row .fact-tile,
    .fact-tile-row--col .fact-tile { flex: 0 0 auto; padding: 10px 0; }
    .fact-tile-row--col .fact-tile + .fact-tile { border-top: 1px solid var(--line); }
    .fact-tile-row__divider { width: auto; height: 1px; flex: none; }
    .fact-tile__icon { width: 38px; height: 38px; font-size: 18px; }
}

/* 3 aylık plana geçiş banner'ı — kartın üstünde bağımsız yuvarlak şerit (mockup) */
.plan-upsell-banner {
    display: flex; align-items: center; gap: 10px;
    background: var(--savings-bg); border: 1px solid #DCEECB;
    border-radius: var(--r-sm);
    padding: 12px 20px; margin-bottom: 10px;
    font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--ink);
}
.plan-upsell-banner__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; background: #fff;
    font-size: 18px; color: #1E5B0E;
}
.plan-upsell-banner__text { flex: 1; min-width: 0; line-height: 1.45; }
.plan-upsell-banner__text strong { font-weight: 700; color: var(--ink); }
.plan-upsell-banner__cta {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
    background: var(--surface); border: 1px solid #DCEECB; border-radius: 999px;
    padding: 4px 14px; min-height: 30px;
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 13px;
    color: #1E5B0E;
    transition: background .15s, border-color .15s;
}
.plan-upsell-banner__cta:hover { background: #F3FAEC; border-color: var(--savings); color: #1E5B0E; }
@media (max-width: 520px) {
    .plan-upsell-banner { flex-wrap: wrap; padding: 10px 16px; }
    /* 1. satır ikon + tam genişlik metin, 2. satır sağa dayalı pill */
    .plan-upsell-banner__text { flex: 1 1 calc(100% - 42px); }
    .plan-upsell-banner__cta { margin-left: auto; margin-top: 2px; }
}

/* Kompakt doz şeridi (dashboard kartı) — tam timeline DosePlan sayfasında (.dose-node) */
.dose-chip-row {
    display: flex; align-items: stretch; gap: 6px; margin-top: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px;
}
.dose-chip-row::-webkit-scrollbar { display: none; }
/* Çipler arası ok bağlayıcı — mockup'taki ilerleme hissi */
.dose-chip-arrow { flex-shrink: 0; align-self: center; font-size: 15px; color: var(--line-strong); }
.dose-chip {
    flex-shrink: 0; display: flex; flex-direction: column; justify-content: center;
    min-width: 76px; padding: 8px 10px;
    background: #FBFCFD; border: 1.5px solid var(--line); border-radius: 12px;
    font-family: 'Inter', sans-serif; text-align: center;
}
.dose-chip__month {
    font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.dose-chip__dose { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 2px; white-space: nowrap; }
/* Mevcut açık siparişle gelecek ay(lar) — mockup'taki vurgulu çerçeve, marka renginde */
.dose-chip.is-current { background: var(--brand-tint); border-color: var(--brand); }
.dose-chip.is-current .dose-chip__month { color: var(--brand-ink); }
.dose-chip.is-current .dose-chip__dose { color: var(--brand-ink); }
.dose-chip__month .ms-rounded { font-size: 12px; vertical-align: -2px; margin-right: 2px; color: var(--brand); }

/* Sağ sütun kısayol kartları (Change refill date / Manage treatment) */
.treatment-shortcut {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--surface);
    transition: background .15s, border-color .15s, box-shadow .15s;
    text-decoration: none;
}
.treatment-shortcut:hover { background: #FFFDFC; border-color: var(--brand); box-shadow: var(--shadow-sm); }
/* <button> varyantı (kargo takibi — modal açar): anchor görünümünü birebir alır */
.treatment-shortcut--btn { width: 100%; text-align: left; font: inherit; cursor: pointer; }
/* Durum renkleri: kargoda = marka turuncusu, teslim = yeşil (başlık + ikon birlikte) */
.treatment-shortcut--shipped .treatment-shortcut__icon {
    background: var(--brand-tint); border-color: var(--brand); color: var(--brand);
    font-variation-settings: 'FILL' 1;
}
.treatment-shortcut--shipped .treatment-shortcut__title { color: var(--brand); }
.treatment-shortcut--delivered .treatment-shortcut__icon {
    background: var(--savings-bg); border-color: var(--savings); color: var(--savings);
    font-variation-settings: 'FILL' 1;
}
.treatment-shortcut--delivered .treatment-shortcut__title { color: #157347; }
.treatment-shortcut--delivered:hover .treatment-shortcut__icon {
    background: var(--savings-bg); border-color: var(--savings); color: var(--savings);
}
/* Dashboard hero kargo satırı — tüm satır tıklanır, modal açar */
.hero-tracking-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; background: transparent; border: none; cursor: pointer;
    padding: 6px 8px; margin: -4px -8px; border-radius: 10px; text-align: left;
    transition: background .15s;
}
.hero-tracking-btn:hover { background: var(--paper); }
.treatment-shortcut__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line-strong);
    color: var(--ink-2); font-size: 19px;
    transition: background .15s, border-color .15s, color .15s;
}
.treatment-shortcut:hover .treatment-shortcut__icon { color: var(--brand); }
.treatment-shortcut:hover .treatment-shortcut__icon { background: var(--brand-tint); border-color: var(--brand); }
.treatment-shortcut__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.treatment-shortcut__title {
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 13.5px;
    color: var(--ink); line-height: 1.3;
}
.treatment-shortcut__sub {
    font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--muted);
    line-height: 1.35; margin-top: 1px;
}
.treatment-shortcut__chevron {
    flex-shrink: 0; color: var(--muted); font-size: 18px;
    transition: transform .15s, color .15s;
}
.treatment-shortcut:hover .treatment-shortcut__chevron { color: var(--brand); transform: translateX(3px); }
.treatment-hero__buy { width: 100%; }

/* ---------- Action list (My Treatment menu rows) ---------- */
.action-list {
    background: var(--surface); border: 1px solid var(--card-border);
    border-radius: var(--r); box-shadow: var(--shadow-card);
    overflow: hidden;
}
.action-row {
    display: flex; align-items: center; gap: 14px; width: 100%;
    min-height: 72px; padding: 14px 20px;
    background: transparent; border: none; text-align: left; cursor: pointer;
    border-bottom: 1px solid var(--line);
    transition: background .15s;
}
.action-row:last-child { border-bottom: none; }
.action-row:hover { background: #F8F9FB; }
/* Mockup 13: kontur çember + marka glifi (shortcut ikonlarıyla aynı etkileşim dili) */
.action-row__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--line-strong); color: var(--brand);
    transition: background .15s, border-color .15s;
}
.action-row:hover .action-row__icon { background: var(--brand-tint); border-color: var(--brand); }
.action-row__icon .ms-rounded { font-size: 21px; }
.action-row__body { flex: 1; min-width: 0; }
.action-row__title {
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14.5px;
    color: var(--ink); line-height: 1.3;
}
.action-row__sub {
    font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--muted);
    margin-top: 1px; line-height: 1.4;
}
.action-row__chevron { flex-shrink: 0; color: var(--muted); font-size: 20px; }
.action-row:hover .action-row__chevron { color: var(--brand); }
/* Sağdaki açık eylem etiketi ("Switch medication" vb.) — yaşlı kullanıcılar için ne olacağı belli */
.action-row__cta {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px;
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 13.5px;
    color: var(--brand); white-space: nowrap;
}
.action-row__cta .ms-rounded { font-size: 20px; }
@media (max-width: 480px) { .action-row__cta { font-size: 12.5px; } }
/* Danger variant (Cancel treatment) */
.action-row--danger .action-row__icon { background: var(--danger-bg); color: var(--danger); }
.action-row--danger .action-row__title { color: var(--danger); }
.action-row--danger:hover .action-row__chevron { color: var(--danger); }
/* Disabled variant (no active refill) */
.action-row--disabled { cursor: default; opacity: .55; }
.action-row--disabled:hover { background: transparent; }
.action-row--disabled:hover .action-row__chevron { color: var(--muted); }

/* ---------- Dose plan timeline ---------- */
/* SNAP YOK: 'x mandatory' + 'center' kombinasyonu her jestten sonra bir kartı zorla
   ortalıyordu — şerit bırakılan yerde durmuyor, "sürekli başka yana kayıyor"du. */
.dose-timeline {
    display: flex; gap: 10px; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 12px; scrollbar-width: thin;
    /* Klasik (Windows) scrollbar yüksekliği içeriden yer — dikey kırpma/çift bar olmasın */
    overflow-y: hidden; scrollbar-color: var(--line-strong) transparent;
}
.dose-timeline::-webkit-scrollbar { height: 8px; }
.dose-timeline::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.dose-timeline::-webkit-scrollbar-track { background: transparent; }
.dose-node {
    flex: 0 0 128px;
    display: flex; flex-direction: column; align-items: center;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-sm); padding: 14px 12px;
    text-align: center; font-family: 'Inter', sans-serif;
}
.dose-node__month {
    font-size: 11px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--ink-2);
}
.dose-node__dose {
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 19px;
    color: var(--ink); margin-top: 6px; letter-spacing: -0.02em;
}
.dose-node__state {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 500;
    /* auto: durum çipi tabana itilir — bant içindeki kartlar aynı taban hizasında */
    margin-top: auto; padding: 3px 8px; border-radius: 999px;
    background: #F2F4F8; color: var(--muted);
}
.dose-node__dose { margin-bottom: 8px; }
.dose-node__state .ms-rounded { font-size: 13px; }
.dose-node.is-complete { background: #FBFCFD; }
.dose-node.is-complete .dose-node__state { background: var(--savings-bg); color: #157347; }
.dose-node.is-current {
    border: 1.5px solid var(--indigo);
    background: var(--indigo-tint);
    transform: translateY(-4px);
    box-shadow: 0 0 0 3px rgba(76,95,213,.18), var(--shadow-card);
}
.dose-node.is-current .dose-node__dose { color: var(--indigo-ink); }
/* Mockup: pill değil düz indigo metin — bant etiketi + üst kamyon ikonu zaten durumu söylüyor */
.dose-node.is-current .dose-node__state {
    background: transparent; padding: 3px 0;
    color: var(--indigo-ink); font-weight: 600;
}
.dose-node.is-current .dose-node__state .ms-rounded { display: none; }
.dose-node.is-locked { opacity: .6; }
.dose-node .pill-edit { margin-top: 8px; }

/* Ay kartı eklentileri: üst durum ikonu, tarih satırı, geçmiş kilidi */
.dose-node { position: relative; }
.dose-node__topicon {
    width: 26px; height: 26px; margin: 0 auto 6px;
    border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.dose-node__topicon .ms-rounded { font-size: 17px; }
.dose-node__topicon.is-done { background: var(--savings-bg); color: #157347; }
.dose-node__topicon.is-ship { background: #fff; color: var(--indigo); }
.dose-node__date { font-size: 11px; color: var(--muted); margin-top: 1px; }
.dose-node__lock {
    margin-top: 8px; color: var(--muted);
}
.dose-node__lock .ms-rounded { font-size: 15px; }
/* Estimated future date tag on the timeline node */
.dose-node__est {
    display:inline-block; margin-left:4px; padding:0 5px; border-radius:999px;
    background:var(--paper); border:1px solid var(--card-border); color:var(--muted);
    font-size:9px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; vertical-align:1px;
}


/* Past / Current / Future bantları — kutu YOK (mockup): etiket + kartlar, aralarında dikey çizgi */
.dose-band {
    flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px;
    padding: 8px 0 4px; /* üst pay: yükselen current kartın ringi kesilmesin */
}
.dose-band__label {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--muted);
}
.dose-band__label .ms-rounded { font-size: 14px; }
/* flex:1 → row, bandın stretch yüksekliğini doldurur; align-items:stretch node'ları o yüksekliğe
   eşitler → bantlar arası (current edit-pill'siz vs future edit-pill'li) kart boyutları eşit.
   Mobilde band block olduğundan (media <768) flex:1 yok sayılır — güvenli. */
.dose-band__row { display: flex; align-items: stretch; gap: 6px; flex: 1 1 auto; }
.dose-node.is-current .dose-node__topicon { width: 30px; height: 30px; }
.dose-node.is-current .dose-node__topicon .ms-rounded { font-size: 18px; }
.dose-band.is-current .dose-band__label { color: var(--indigo-ink); }
.dose-band.is-current .dose-band__label .ms-rounded { color: var(--indigo); }
/* Bantlar arası ince dikey ayraç */
.dose-divider { flex: 0 0 1px; align-self: stretch; background: var(--line); margin: 4px 8px 0; }
.dose-arrow {
    align-self: center; flex: 0 0 auto;
    font-size: 16px; color: var(--line-strong);
}
.dose-arrow--band { color: var(--muted); }
/* ---------- Dose plan: current dose hero ---------- */
.dose-hero {
    background: var(--indigo-tint); border: 1px solid #D9DEF6;
    border-radius: var(--r-sm); padding: 16px 18px;
    font-family: 'Inter', sans-serif;
}
.dose-hero__badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    color: var(--indigo-ink); background: #fff; padding: 3px 10px; border-radius: 999px;
}
.dose-hero__dose {
    font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 32px;
    letter-spacing: -0.02em; color: var(--indigo-ink); margin-top: 6px; line-height: 1.1;
}
.dose-hero__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.dose-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
/* Önceki/sonraki sevkiyat kutuları — mobilde gizli (dikey liste zaten hemen altta),
   masaüstünde boş kalan sağ yarıyı doldurur */
.dose-hero__ctx { display: none; }
.dose-hero__ctx-label {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: var(--muted);
}
.dose-hero__ctx-dose { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 3px; }
.dose-hero__ctx-date { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
@media (min-width: 768px) {
    .dose-hero { padding: 18px 22px; }
    .dose-hero__ctx { display: flex; gap: 10px; }
    .dose-hero__ctx-item {
        min-width: 172px; background: rgba(255,255,255,.75);
        border: 1px solid #D9DEF6; border-radius: 12px; padding: 10px 14px;
    }
    .dose-hero__ctx-item.is-next { border-color: var(--indigo); }
    .dose-hero__ctx-item.is-next .dose-hero__ctx-label,
    .dose-hero__ctx-item.is-next .dose-hero__ctx-dose { color: var(--indigo-ink); }
}
/* Basamak etiketleri bar'ın ALTINDA ORTALI; desktop'ta barlar kart genişliğine yayılmasın */
.dose-hero__steps { display: flex; gap: 8px; margin-top: 14px; max-width: 480px; }
.dose-hero__step { flex: 1; min-width: 0; text-align: center; }
.dose-hero__step-bar { display: block; height: 6px; border-radius: 999px; background: #D9DEF6; }
.dose-hero__step.is-done .dose-hero__step-bar { background: var(--indigo); opacity: .45; }
.dose-hero__step.is-here .dose-hero__step-bar { background: var(--indigo); box-shadow: 0 0 0 3px rgba(76,95,213,.18); }
.dose-hero__step-label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 5px; }
.dose-hero__step.is-here .dose-hero__step-label { color: var(--indigo-ink); }
.dose-hero__step-here {
    display: block; font-size: 10px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--indigo);
}
.dose-hero__refill {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: var(--ink-2);
    margin-top: 12px; padding-top: 10px; border-top: 1px solid #D9DEF6;
}
/* Mevcut sevkiyat yüksek dozdaysa: sevkiyat başına HDF bilgisi (amber ücret dili) */
.dose-hero__fee {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
    font-size: 12px; font-weight: 600; color: #8A5A00;
}

/* Locked üst ikonu yalnız mobil dikey modda görünür; is-plan artık desktop'ta da gösterilir
   (past yeşil check / current indigo truck ile stil bütünlüğü — nötr gri daire + takvim ikonu). */
.dose-node__topicon.is-lockicon { display: none; }
.dose-node__topicon.is-plan { background: #F2F4F8; color: var(--muted); }
.dose-past-toggle { display: none; }
/* Masaüstünde gelecek ayların tamamı her zaman açık (kapatma yalnız mobil) */
.dose-future-more { display: contents; }
/* Desktop: sağ kenarda "devamı var" solgunluğu — scroll kabında değil sarmalayıcıda.
   Şerit sona kaydırıldıysa kaybolur; yoksa son (veya sona ortalanmış current) kart kesik görünüyor. */
.dose-timeline-shell { position: relative; }
@media (min-width: 768px) {
    .dose-timeline-shell::after {
        content: ''; position: absolute; top: 0; bottom: 12px; right: 0; width: 32px;
        background: linear-gradient(to left, var(--surface), transparent); pointer-events: none;
        opacity: 1; transition: opacity .15s;
    }
    .dose-timeline-shell.is-at-end::after { opacity: 0; }
}

@media (max-width: 767px) {
    /* Mobil: yatay şerit yerine dikey yolculuk — sol rayda durum ikonları,
       ay başına tam genişlik satır kartı */
    .dose-timeline { display: block; overflow: visible; padding: 0 0 4px; }
    .dose-arrow, .dose-divider, .dose-node__lock, .dose-node__state { display: none; }
    .dose-band { display: block; padding: 4px 0; }
    .dose-band__row { display: flex; flex-direction: column; gap: 10px; position: relative; }
    /* Ray; kartlar üstünü örter, yalnız kart aralarındaki boşlukta görünür */
    .dose-band__row::before {
        content: ''; position: absolute; left: 28px; top: 14px; bottom: 14px; width: 2px;
        background: var(--line-strong);
    }
    .dose-node {
        position: relative; z-index: 1; flex-basis: auto; width: 100%;
        display: grid; grid-template-columns: 30px minmax(0, 1fr) auto;
        /* 4. satır = HDF rozeti; div yoksa satır 0'a çöker, kartlar değişmez */
        grid-template-areas: "icon month dose" "icon date dose" "icon src action" "icon fee fee";
        column-gap: 12px; row-gap: 1px; align-items: center;
        padding: 12px 14px; text-align: left;
    }
    .dose-node__fee { grid-area: fee; justify-self: start; margin-top: 4px; }
    .dose-node__paid { grid-area: fee; justify-self: end; margin-top: 4px; }
    .dose-node__topicon {
        grid-area: icon; display: flex; width: 28px; height: 28px;
        background: #fff; border: 1px solid var(--line); /* ray üstünde beyaz düğüm */
        /* Kart yüksekliği değişse de ikon ay/tarih kümesiyle hizalı kalsın —
           tüm satırlara yayılıp ortalanınca uzun kartlarda aşağı kayıyordu */
        align-self: start; margin: 3px 0 0;
    }
    .dose-node__topicon.is-done { background: var(--savings-bg); border-color: transparent; }
    .dose-node__topicon.is-plan { display: flex; color: var(--brand); }
    .dose-node__topicon.is-lockicon { display: flex; color: var(--muted); }
    .dose-node__month { grid-area: month; }
    .dose-node__date { grid-area: date; margin-top: 0; }
    .dose-node__src { grid-area: src; justify-self: start; margin-top: 3px; }
    /* Doz ve Edit pill aynı 76px sağ sütun ekseninde ORTALI — flush-sağ hizada doz
       metni yuvarlak pill'den taşmış ve kart kenarına yapışmış görünüyordu */
    .dose-node__dose {
        grid-area: dose; justify-self: end; align-self: center; margin: 0;
        font-size: 20px; min-width: 76px; text-align: center;
    }
    .dose-node .pill-edit {
        grid-area: action; justify-self: end; margin-top: 2px;
        min-height: 40px; padding: 8px 12px; font-size: 13px; /* dokunma hedefi ≥40px */
        min-width: 76px; justify-content: center;
    }
    /* is-current: dikey listede yukarı kaydırma yok — ring küçülür, transform sıfırlanır */
    .dose-node.is-current {
        transform: none; flex-basis: auto;
        box-shadow: 0 0 0 2px rgba(76,95,213,.15), var(--shadow-sm);
    }
    .dose-node.is-current .dose-node__topicon { width: 30px; height: 30px; border-color: var(--indigo); }
    /* Kilitli uzak aylar: sıkışık + soluk */
    .dose-node.is-locked { padding: 8px 14px; opacity: .55; }
    .dose-node.is-locked .dose-node__dose { font-size: 15px; }
    .dose-node.is-locked .dose-node__src { display: none; }
    /* Geçmiş bandı: varsayılan kapalı, etiket yerine toggle satırı */
    .dose-band.is-past .dose-band__label { display: none; }
    .dose-past-toggle {
        display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px;
        padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
        background: var(--paper); color: var(--muted);
        font: 600 13px 'Inter', sans-serif; cursor: pointer;
    }
    .dose-past-toggle__chev { margin-left: auto; transition: transform .15s; }
    .dose-band.is-past .dose-past-toggle__show { display: none; }
    .dose-band.is-past.is-collapsed .dose-past-toggle__show { display: inline; }
    .dose-band.is-past.is-collapsed .dose-past-toggle__hide { display: none; }
    .dose-band.is-past:not(.is-collapsed) .dose-past-toggle__chev { transform: rotate(180deg); }
    .dose-band.is-past.is-collapsed .dose-band__row { display: none; }
    .dose-past-toggle + .dose-band__row { margin-top: 10px; }
    /* Gelecek aylar: ilk 3 görünür, kalanı "Show N more months" arkasında */
    .dose-band.is-future.is-collapsed .dose-future-more { display: none; }
    .dose-more-toggle { position: relative; z-index: 1; } /* ray butonun arkasında kalsın */
    .dose-band.is-future .dose-more-toggle__show { display: none; }
    .dose-band.is-future.is-collapsed .dose-more-toggle__show { display: inline; }
    .dose-band.is-future.is-collapsed .dose-more-toggle__hide { display: none; }
    .dose-band.is-future:not(.is-collapsed) .dose-past-toggle__chev { transform: rotate(180deg); }
    .dose-hero__dose { font-size: 28px; }
}

/* Doz seçici modal — kart ızgarası (standart / yüksek doz grupları) + tek özet satırı */
.dose-modal { font-family: 'Inter', sans-serif; }
.dose-modal__group-label {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); margin: 2px 0 8px;
}
.dose-modal__group-label--high { margin-top: 16px; color: var(--danger); }
.dose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dose-grid--high { grid-template-columns: repeat(2, 1fr); }
.dose-card {
    position: relative; display: flex; flex-direction: column; align-items: center;
    gap: 2px; padding: 14px 8px 11px; cursor: pointer; text-align: center;
    background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm);
    transition: border-color .15s, background .15s, transform .1s;
}
.dose-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.dose-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.dose-card__check {
    position: absolute; top: 6px; right: 7px; width: 17px; height: 17px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--brand); color: #fff;
    opacity: 0; transition: opacity .15s;
}
.dose-card__check svg { width: 11px; height: 11px; }
.dose-card:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: var(--ring); }
.dose-card:has(input:checked) .dose-card__check { opacity: 1; }
.dose-card__dose { font-family: 'DM Sans', sans-serif; font-size: 19px; font-weight: 700; color: var(--ink); }
.dose-card__meta { font-size: 11px; color: var(--muted); line-height: 1.35; }
.dose-card__meta--free { color: var(--savings); font-weight: 600; }
.dose-card__meta--fee {
    padding: 1px 8px; border-radius: 999px; font-weight: 700;
    background: #FFF6E5; color: #8A5A00;
}
.dose-card__meta--lock { display: inline-flex; align-items: center; gap: 3px; }
.dose-card__meta--lock svg { width: 12px; height: 12px; flex-shrink: 0; }
.dose-card--high .dose-card__dose { color: var(--danger); }
.dose-card.is-current { border-style: dashed; background: var(--paper); cursor: default; }
.dose-card.is-current .dose-card__meta { font-weight: 600; }
.dose-card.is-disabled { opacity: .5; cursor: not-allowed; }
.dose-card.is-disabled:hover { border-color: var(--line); transform: none; }
.dose-summary {
    display: flex; align-items: flex-start; gap: 8px;
    margin-top: 14px; padding: 10px 13px; border-radius: var(--r-sm);
    font-size: 12.5px; color: var(--ink); background: var(--savings-bg);
}
.dose-summary__icon { display: inline-flex; flex-shrink: 0; color: var(--savings); }
.dose-summary__icon svg { width: 16px; height: 16px; margin-top: 1px; }
.dose-summary--fee { background: #FFF6E5; }
.dose-summary--fee .dose-summary__icon { color: #8A5A00; }
@media (max-width: 420px) {
    .dose-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Refill date option rows (radio cards) ---------- */
.refill-option {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-family: 'Inter', sans-serif;
    transition: border-color .15s, background .15s;
}
.refill-option + .refill-option { margin-top: 10px; }
.refill-option:hover { border-color: var(--line-strong); }
.refill-option:has(input:checked) {
    border-color: var(--brand); background: var(--brand-tint);
    box-shadow: var(--ring);
}
.refill-option input[type="radio"] { accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }
.refill-option__label { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.refill-option__hint { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.refill-option__date { flex-shrink: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.refill-option:has(input:checked) .refill-option__date { color: var(--brand-ink); }

/* Mini date strip above the refill options */
.refill-strip {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px;
    scrollbar-width: none;
}
.refill-strip::-webkit-scrollbar { display: none; }
.refill-strip__item {
    flex: 0 0 auto; text-align: center; padding: 8px 14px;
    border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface);
    font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted);
    white-space: nowrap;
}
.refill-strip__item b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.refill-strip__item.is-current {
    border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink);
}
.refill-strip__item.is-current b { color: var(--brand-ink); }

/* ---------- Promo / cross-sell cards ---------- */
.promo-card {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--card-border);
    border-radius: var(--r-sm); box-shadow: var(--shadow-sm);
    padding: 16px 18px; cursor: pointer;
    transition: box-shadow .18s ease;
}
.promo-card:hover { box-shadow: var(--shadow-card); }
.promo-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; background: var(--brand-gradient);
}
.promo-card__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--brand-tint); color: var(--brand);
}
.promo-card__icon .ms-rounded { font-size: 22px; }
.promo-card__title {
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.promo-card__sub { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.promo-card .ms-rounded.promo-card__chevron { margin-left: auto; color: var(--muted); flex-shrink: 0; }

/* ---------- Sticky mobile CTA (clears the bottom tab bar) ---------- */
.sticky-cta {
    position: sticky; bottom: 0; z-index: 30;
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    margin: 0 -16px;
}
.sticky-cta .cta-primary { width: 100%; }
@media (max-width: 1023px) {
    /* bottom tab bar (56px) sits under the sticky CTA */
    .sticky-cta { bottom: 56px; }
}
@media (min-width: 768px) {
    .sticky-cta {
        position: static; background: transparent; border-top: none;
        padding: 0; margin: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
    }
    .sticky-cta .cta-primary { width: auto; }
}

/* ---------- Portal footer (_FooterPortal.cshtml — logged-in pages only) ----------
   Kendi sınıflarıyla stillenir (Tailwind/Bootstrap utility'leri DEĞİL):
   layout'taki Bootstrap'ın !important'lı .text-center vb. sınıflarıyla
   çakışmasın diye. Onboarding/funnel sayfaları koyu _FooterOnboarding'i kullanır. */
.portal-footer {
    margin-top: 48px;
    background: var(--surface);
    border-top: 1px solid var(--line);
}
.portal-footer__in {
    max-width: 72rem; /* = Tailwind max-w-6xl (sayfa içerik genişliği) */
    margin: 0 auto;
    padding: 32px 16px 24px;
}
.portal-footer__top {
    display: flex; flex-direction: column; align-items: center;
    gap: 22px; text-align: center;
}
.portal-footer__brand img { height: 26px; display: inline-block; }
.portal-footer__tagline {
    font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.55;
    color: var(--muted); margin-top: 10px; max-width: 340px;
}
.portal-footer__help-title {
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14px;
    color: var(--ink); margin-bottom: 8px;
}
.portal-footer__help-row {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: 'Inter', sans-serif; font-size: 13.5px;
    color: var(--brand); text-decoration: none;
}
.portal-footer__help-row:hover { color: var(--brand-700); text-decoration: underline; }
.portal-footer__help-row .ms-rounded { font-size: 17px; }
.portal-footer__help-rows { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.portal-footer__help-note {
    font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted); margin-top: 8px;
}
.portal-footer__trust {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 8px 10px;
    margin-top: 26px; padding: 18px 0;
    border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.portal-footer .trust-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--paper); border: 1px solid var(--line);
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    color: var(--ink-2); white-space: nowrap;
}
.portal-footer .trust-chip .ms-rounded { font-size: 15px; color: var(--brand); }
.portal-footer__badges { display: inline-flex; align-items: center; gap: 12px; }
.portal-footer__badges img { height: 44px; width: 44px; object-fit: contain; }
.portal-footer__bottom {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding-top: 16px;
    font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted);
    text-align: center;
}
.portal-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.portal-footer__links a { color: var(--muted); text-decoration: none; }
.portal-footer__links a:hover { color: var(--ink); }
.portal-footer__totop {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--muted); text-decoration: none;
}
.portal-footer__totop:hover { color: var(--ink); }
.portal-footer__totop .ms-rounded { font-size: 15px; }
@media (min-width: 768px) {
    .portal-footer__in { padding: 40px 32px 28px; }
    .portal-footer__top {
        flex-direction: row; align-items: flex-start; justify-content: space-between;
        text-align: left;
    }
    .portal-footer__help { text-align: right; }
    .portal-footer__help-rows { align-items: flex-end; }
    .portal-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* "Your Medication" kartı (sabit dozlu ürünler — timeline yerine) */
.med-card__img {
    width: 92px; height: 92px; border-radius: 16px;
    background: var(--paper); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.med-card__img img { max-width: 82%; max-height: 82%; object-fit: contain; }
.med-card__img .ms-rounded { font-size: 30px; color: var(--line-strong); }
@media (max-width: 520px) { .med-card__img { width: 72px; height: 72px; } }

/* Dose Plan kaynak etiketi: gerçek reçete vs katalog projeksiyonu */
.dose-node__src {
    font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted); margin-top: 3px;
}
.dose-node__src--actual { color: var(--savings); }
.dose-node__src--chosen { color: var(--brand); }

/* Aylık HDF rozeti — ücret dozu izler, yüksek dozlu her sevkiyatta (bilgi, tahsilat yok).
   Amber ücret dili .dose-card__meta--fee ile aynı. */
.dose-node__fee {
    font-size: 10.5px; font-weight: 600; line-height: 1.3;
    color: #8A5A00; background: #FFF6E5;
    padding: 2px 7px; border-radius: 999px; margin-top: 4px;
}
/* Ön ödemeli zincirde çoktan ödenmiş gelecek ay — yeşil "Included · paid" rozeti */
.dose-node__paid {
    font-size: 10.5px; font-weight: 600; line-height: 1.3;
    color: var(--savings); background: var(--savings-bg);
    padding: 2px 7px; border-radius: 999px; margin-top: 4px;
}
.dose-hero__refill--paid { color: var(--savings); }

/* ---------- Refill urgency ribbon (tedavi kartı + Manage hero) ----------
   Supply-end TAHMİNİ üzerinden "running low / ran out" nudge'ı;
   Scheduled durumunda sadece sakin bilgi satırı (.refill-alert--info). */
.refill-alert {
    display: flex; align-items: flex-start; gap: 8px;
    margin-top: 12px; padding: 9px 12px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.45;
    background: #FDF6EC; border: 1px solid #F2DDBB; color: #8A5A16;
}
.refill-alert .ms-rounded { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.refill-alert strong { font-weight: 600; }
.refill-alert--danger {
    background: var(--danger-bg); border-color: #F0C8BE; color: var(--danger);
}
.refill-alert--info {
    background: transparent; border: none; padding: 6px 0 0; margin-top: 6px;
    color: var(--muted); font-size: 12.5px;
}

/* ---------- Shipment tracking modal (_ShipmentTrackingModal, Sep 17 redesign) ----------
   Tarih/saat string'leri sunucudan hazır gelir; burada yalnız dizilim var.
   Yapı: durum-renkli başlık (modalın başlığıdır, X tint üstünde) + iç ETA kartı →
   ilerleme → Journey rayı → numara satırı → sakin footer. Ship-banner diliyle uyumlu. */
.track-modal-dialog { max-width: 560px; }
.track-modal-content { overflow: hidden; } /* tint başlık, modalın üst radius'unu devralsın */

.track-head { position: relative; padding: 20px 20px 16px; }
.track-head--transit { background: var(--brand-tint); }
.track-head--delivered { background: var(--savings-bg); }
.track-head--pending { background: var(--paper); border-bottom: 1px solid var(--line); }
.track-head__close {
    position: absolute; top: 14px; right: 14px; z-index: 1;
    width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.85); color: var(--ink-2);
}
.track-head__close:hover { color: var(--ink); background: #fff; }
.track-head__close .ms-rounded { font-size: 18px; }
.track-head__row { display: flex; align-items: flex-start; gap: 13px; padding-right: 36px; }
.track-head__icon {
    width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff;
}
.track-head--transit .track-head__icon { color: var(--brand); }
.track-head--delivered .track-head__icon { color: var(--savings); }
.track-head--pending .track-head__icon { color: var(--muted); border: 1px solid var(--line); }
.track-head__icon .ms-rounded { font-size: 22px; font-variation-settings: 'FILL' 1; }
.track-head__text { min-width: 0; }
.track-head__eyebrow {
    font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.track-head--delivered .track-head__eyebrow { color: var(--savings); }
.track-head--pending .track-head__eyebrow { color: var(--muted); }
.track-head__title {
    font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--ink);
    line-height: 1.25; margin-top: 2px;
}
.track-head__sub {
    font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted);
    margin-top: 2px; line-height: 1.45;
}
.track-head__eta-card {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-top: 14px; padding: 11px 14px;
    background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-sm);
}
.track-head__eta-label {
    font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase; color: var(--muted); flex-shrink: 0;
}
.track-head__eta-value {
    font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 700;
    letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; text-align: right;
}
.track-head--delivered .track-head__eta-value { font-size: 15px; }
.track-head__eta-value--muted { font-size: 14px; font-weight: 600; color: var(--muted); }

.track-zone { padding: 16px 20px 14px; }
.track-zone--divided { border-top: 1px dashed var(--line); }
.track-zone .track-progress { margin: 4px 0 2px; }
.track-zone .section-label { margin-bottom: 12px; }

/* Journey rayı — kesintisiz dikey çizgi, en yeni olay vurgulu */
.track-rail { position: relative; max-height: 260px; overflow-y: auto; padding-right: 4px;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.track-rail__item {
    position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 8px; padding-bottom: 14px;
}
.track-rail__item:last-child { padding-bottom: 2px; }
.track-rail__item::before {
    content: ''; position: absolute; left: 5px; top: 16px; bottom: -2px;
    width: 2px; background: var(--line);
}
.track-rail__item:last-child::before { display: none; }
.track-rail__dot {
    position: relative; z-index: 1; justify-self: start;
    width: 12px; height: 12px; margin-top: 3px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--line-strong);
}
.track-rail__item.is-latest .track-rail__dot {
    background: var(--brand); border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-tint);
}
.track-rail__desc {
    font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--ink-2); line-height: 1.4;
}
.track-rail__item.is-latest .track-rail__desc { color: var(--ink); font-weight: 600; }
.track-rail__latest {
    display: inline-block; margin-left: 7px; padding: 1px 7px; vertical-align: 1px;
    font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-tint); border-radius: 999px;
}
.track-rail__meta {
    font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted); margin-top: 2px;
}

/* Numara satırı + kopyala */
.track-num { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px; }
.track-num__carrier {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-tint);
    padding: 3px 9px; border-radius: 999px; flex-shrink: 0;
}
.track-num code {
    font-size: 13px; color: var(--ink); background: transparent;
    letter-spacing: .03em; word-break: break-all;
}
.track-copy {
    margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--surface); color: var(--muted); cursor: pointer;
}
.track-copy:hover { color: var(--ink); border-color: var(--line-strong); }

/* Footer: eşit ağırlıklı sakin butonlar — dev turuncu Close bitti */
.track-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 20px; border-top: 1px dashed var(--line);
}
.track-foot__btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 16px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line-strong); background: var(--surface);
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--ink-2);
    text-decoration: none; transition: border-color .15s, color .15s;
}
.track-foot__btn:hover { border-color: var(--brand); color: var(--brand); }

/* ── ETA-öncelikli kargo banner'ı (Sep 17) ─────────────────────────────────
   Sıkışık tek-satırın yerine kart: durum başlığı + modal'ın 4-adımlı ilerlemesi
   + BÜYÜK varış tarihi + Track CTA. Paylaşılan JS renderer _ShipmentTrackingModal'da;
   slot sözleşmesi: <div data-ship-banner data-order-id> [fallback] </div>. */
.ship-banner {
    border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 14px 16px 12px; background: var(--surface);
}
.ship-banner__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ship-banner__icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 12px; font-size: 20px;
    background: var(--brand-tint); color: var(--brand);
}
.ship-banner--delivered .ship-banner__icon { background: var(--savings-bg); color: var(--savings); }
.ship-banner__text { min-width: 0; }
.ship-banner__eyebrow {
    font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.ship-banner--delivered .ship-banner__eyebrow { color: var(--savings); }
.ship-banner--pending .ship-banner__eyebrow { color: var(--muted); }
.ship-banner__title {
    font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
    color: var(--ink); line-height: 1.25; margin-top: 2px;
}
.ship-banner__time {
    font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted); margin-top: 2px;
}
.ship-banner .track-progress { margin: 0 0 12px; }
.ship-banner__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border-top: 1px dashed var(--line); padding-top: 12px;
}
.ship-banner__foot--end { justify-content: flex-end; }
.ship-banner__eta-label {
    font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.ship-banner__eta {
    font-family: 'DM Sans', sans-serif; font-size: 19px; font-weight: 700;
    letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; margin-top: 1px;
}
.ship-banner__eta--muted { font-size: 14px; font-weight: 600; color: var(--muted); }
.ship-banner__cta {
    display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
    padding: 9px 16px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--brand); color: #fff;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
    transition: background .15s;
}
.ship-banner__cta:hover { background: var(--brand-700); color: #fff; }
.ship-banner--delivered .ship-banner__cta { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.ship-banner--delivered .ship-banner__cta:hover { border-color: var(--brand); color: var(--brand); background: var(--paper); }
@media (max-width: 520px) {
    .ship-banner__foot { flex-wrap: wrap; }
    .ship-banner__cta { width: 100%; justify-content: center; }
    .ship-banner .track-progress__label { font-size: 9px; }
}

/* Gönderi ilerleme çubuğu — dashboard .tracker deseninin küçük ölçekli hali */
.track-progress { display: flex; margin: 2px 0 14px; }
.track-progress__step {
    flex: 1; position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.track-progress__step::before {
    content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px;
    background: var(--line);
}
.track-progress__step:first-child::before { display: none; }
.track-progress__step.is-done::before { background: var(--brand); }
.track-progress__dot {
    position: relative; z-index: 1;
    width: 18px; height: 18px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--line); color: #fff;
}
.track-progress__dot .ms-rounded { font-size: 12px; font-weight: 700; }
.track-progress__step.is-done .track-progress__dot { background: var(--brand); }
.track-progress__step.is-current .track-progress__dot { box-shadow: 0 0 0 4px var(--brand-tint); }
.track-progress__label {
    font-family: 'Inter', sans-serif; font-size: 10.5px; color: var(--muted);
    text-align: center; line-height: 1.2;
}
.track-progress__step.is-current .track-progress__label { color: var(--ink); font-weight: 600; }
.track-skeleton { display: flex; flex-direction: column; }
.track-skeleton__head {
    height: 120px; background: var(--paper);
    animation: trackPulse 1.2s ease-in-out infinite;
}
.track-skeleton__rows { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.track-skeleton__bar {
    height: 13px; border-radius: 6px; background: var(--line);
    animation: trackPulse 1.2s ease-in-out infinite;
}
@keyframes trackPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (max-width: 520px) {
    /* Bootstrap modalı mobilde bottom-sheet gibi davransın (yalnız #trackModal) */
    #trackModal .modal-dialog {
        position: fixed; bottom: 0; left: 0; right: 0;
        margin: 0; max-width: none; display: block;
    }
    #trackModal .modal-content {
        border-radius: 16px 16px 0 0; border-bottom: none;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ---------- Dikkat satırı (dashboard) — hero dışında intake bekleyen açık siparişler */
.attention-row {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px;
    background: #FDF6EC; border: 1px solid #F2DDBB; border-radius: var(--r-sm);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.attention-row:hover { border-color: #E8C892; box-shadow: var(--shadow-sm); }
.attention-row > .ms-rounded { font-size: 19px; color: #8A5A16; flex-shrink: 0; }
.attention-row__text {
    font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.45; color: #6B4A14;
    min-width: 0;
}
.attention-row__text strong { font-weight: 600; }
.attention-row__cta {
    margin-left: auto; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 3px;
    font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 700;
    color: var(--brand); white-space: nowrap;
}

/* ---------- Winback card (dashboard, lapsed hasta) ----------
   Teklif linki imzalı /select URL'idir; yüzde HMAC ile korunur. Rozet /select
   sayfasındaki yeşil "savings" bandıyla aynı dili konuşur. */
.winback-card {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(135deg, #FFF8F4, var(--brand-tint));
    border: 1px solid var(--brand-tint-hover);
    border-radius: var(--r);
    padding: 18px 20px;
}
.winback-card__badge {
    flex-shrink: 0;
    background: var(--savings-bg); color: #3B6E1E; border: 1px solid #CBE7B5;
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: .02em;
    padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.winback-card__body { flex: 1 1 260px; min-width: 0; }
.winback-card__title { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }
.winback-card__sub { font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 3px; max-width: 52ch; }
.winback-card__urgency {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 8px;
    font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600;
    color: #8A5A16;
}
.winback-card__urgency .ms-rounded { font-size: 15px; }
.winback-card .cta-primary { flex-shrink: 0; }
@media (max-width: 520px) {
    .winback-card .cta-primary { width: 100%; }
}

/* ---------- Dashboard pilot: /select (checkout.css) tip sistemi ----------
   body.pg-dash yalnızca Dashboard'da (Profile/Index ViewData["BodyClass"]).
   Onay sonrası rollout = bu kuralları body.v2 / komponent kurallarına taşı.
   .v2.pg-dash çift-sınıf spesifisitesi Tailwind utility'lerini ve Bootstrap'ı
   yükleme sırasından bağımsız yener; Bootstrap'ın !important .text-muted'ı
   için scoped !important karşılığı gerekir. */
body.v2.pg-dash { font-family: 'Inter', sans-serif; font-size: 15px; }
.v2.pg-dash .dm-heading { font-family: 'DM Sans', sans-serif; }   /* display DM Sans kalır */
.v2.pg-dash .text-muted { color: var(--muted) !important; }       /* Bootstrap #6C757D'yi ez */
.v2.pg-dash .text-sm    { font-size: 13.5px; }                    /* checkout ölçeği */
.v2.pg-dash .text-base  { font-size: 15px; }
/* küçük komponentler → /select kart/çip reçetesi (Inter) */
.v2.pg-dash .promo-card__title,
.v2.pg-dash .treatment-hero__sub { font-family: 'Inter', sans-serif; }
.v2.pg-dash .status-pill {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
}

/* ---------- Shop reuse-answers modal + adım şeridi ----------
   Modal (Shop/Index) ile /Shop/Interstitial fallback sayfası .intake-steps'i paylaşır —
   kopya iki yüzeyde birebir aynı görünür. Mobilde modal bottom-sheet olur. */
.intake-modal {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.intake-modal[hidden] { display: none; }
.intake-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(16,24,40,.45);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .22s ease;
}
.intake-modal__card {
    position: relative; width: 100%; max-width: 432px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--shadow);
    padding: 30px 26px 20px; text-align: center;
    opacity: 0; transform: translateY(14px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
}
.intake-modal.is-open .intake-modal__backdrop { opacity: 1; }
.intake-modal.is-open .intake-modal__card { opacity: 1; transform: none; }
.intake-modal__x {
    position: absolute; top: 12px; right: 12px;
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer; color: var(--muted);
    transition: background .15s, color .15s;
}
.intake-modal__x:hover { background: var(--paper); color: var(--ink); }
.intake-modal__x .ms-rounded { font-size: 20px; }
.intake-modal__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--savings-bg); margin-bottom: 14px;
}
.intake-modal__icon .ms-rounded {
    font-size: 28px; color: var(--savings); font-variation-settings: 'FILL' 1;
}
.intake-modal__title { font-size: 21px; font-weight: 700; color: var(--ink); }
.intake-modal__sub {
    font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-top: 8px;
}
.intake-modal__sub b { color: var(--ink); font-weight: 600; }
.intake-modal__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.intake-modal__actions .cta-primary, .intake-modal__actions .cta-secondary { width: 100%; }
.intake-modal__foot { font-size: 12px; color: var(--muted); margin-top: 14px; }
.intake-modal__foot a { color: var(--brand); }
.intake-modal__foot a:hover { text-decoration: underline; }

/* 2 adımlık "neden soru yok" şeridi */
.intake-steps {
    list-style: none; margin: 18px 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.intake-steps li {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
    font-family: 'Inter', sans-serif;
}
.intake-steps__txt { flex: 1; min-width: 0; }
.intake-steps li b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.intake-steps li small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
/* Adım 1 içindeki satır-içi "Review" linki — ayrı alt buton yerine cevapların yanında */
.intake-steps__review {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px;
    font-size: 12.5px; font-weight: 600; color: var(--brand);
    padding: 4px 6px; margin: -4px -2px; border-radius: 8px;
}
.intake-steps__review:hover { background: rgba(217,75,35,.08); text-decoration: none; }
.intake-steps__review .ms-rounded { font-size: 16px; }
.intake-steps__done { background: var(--savings-bg); border-color: transparent; }
.intake-steps__done .ms-rounded {
    font-size: 21px; color: var(--savings); font-variation-settings: 'FILL' 1; flex-shrink: 0;
}
.intake-steps__next { border-style: dashed; }
.intake-steps__num {
    width: 21px; height: 21px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-tint); color: var(--brand);
    font-size: 11.5px; font-weight: 700;
}

@media (max-width: 520px) {
    /* Bottom sheet: alttan kayar, safe-area'yı sayar */
    .intake-modal { align-items: flex-end; padding: 0; }
    .intake-modal__card {
        max-width: none; border-radius: 20px 20px 0 0; border-bottom: none;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
        transform: translateY(100%);
    }
    .intake-modal.is-open .intake-modal__card { transform: none; }
}

/* ---------- Emergency Kit "what's inside" modalı ----------
   .intake-modal kalıbının klonu (backdrop/is-open/bottom-sheet aynı sözleşme);
   z-index intake'in ALTINDA — CTA intake-reuse modalını üstte açabilir.
   İçerik: kapsam çipleri + 3 gruplu 8'li ilaç grid'i ⇄ ilaç inspector paneli. */
.kit-modal {
    position: fixed; inset: 0; z-index: 80;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.kit-modal[hidden] { display: none; }
.kit-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(16,24,40,.45);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .22s ease;
}
.kit-modal__card {
    position: relative; width: 100%; max-width: 560px;
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(14px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
    overflow: hidden;
}
.kit-modal.is-open .kit-modal__backdrop { opacity: 1; }
.kit-modal.is-open .kit-modal__card { opacity: 1; transform: none; }
.kit-modal__x {
    position: absolute; top: 12px; right: 12px; z-index: 1;
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); border: none; cursor: pointer; color: var(--muted);
    transition: background .15s, color .15s;
}
.kit-modal__x:hover { background: var(--paper); color: var(--ink); }
.kit-modal__x .ms-rounded { font-size: 20px; }
.kit-modal__body {
    overflow-y: auto; max-height: min(72vh, 640px);
    padding: 26px 24px 18px;
}
.kit-modal__title { font-size: 20px; font-weight: 700; color: var(--ink); padding-right: 34px; }
.kit-modal__sub { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 6px; }

.kit-coverage {
    display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
    margin-top: 12px;
}
.kit-coverage__label {
    font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--muted); white-space: nowrap;
}
.kit-coverage__chip {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; color: var(--ink-2);
    background: var(--paper); border: 1px solid var(--line);
    padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}

.kit-group-head {
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700; color: var(--ink-2);
    text-transform: uppercase; letter-spacing: .04em;
    margin: 16px 0 8px;
}
.kit-tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kit-tile {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
    padding: 10px 8px; border-radius: 14px; cursor: pointer;
    background: var(--paper); border: 1.5px solid var(--line);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.kit-tile:hover {
    border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px);
}
.kit-tile img { width: 56px; height: 56px; object-fit: contain; }
.kit-tile__name {
    font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600; color: var(--ink);
    line-height: 1.25;
}
.kit-tile__usefor { font-family: 'Inter', sans-serif; font-size: 10px; color: var(--muted); line-height: 1.3; }

/* İlaç inspector paneli (grid ile aynı gövdede, [hidden] toggle) */
.kit-inspect__back {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: none; cursor: pointer; padding: 0;
    font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; color: var(--brand);
}
.kit-inspect__back:hover { text-decoration: underline; }
.kit-inspect__back .ms-rounded { font-size: 16px; }
.kit-inspect__head { display: flex; align-items: flex-start; gap: 14px; margin-top: 14px; }
.kit-inspect__head img {
    width: 60px; height: 60px; object-fit: contain; flex-shrink: 0;
    background: var(--paper); border-radius: 12px;
}
.kit-inspect__head-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kit-inspect__name { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700; color: var(--ink); }
.kit-inspect__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.kit-pill {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.kit-pill--plan { background: var(--brand-tint); color: var(--brand); }
.kit-pill--usefor { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.kit-inspect__tagline { font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 12px; }
.kit-inspect__bullets { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.kit-inspect__bullets li {
    display: flex; align-items: flex-start; gap: 8px;
    font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink-2); line-height: 1.45;
}
.kit-inspect__bullets .ms-rounded { font-size: 16px; color: var(--savings); flex-shrink: 0; margin-top: 1px; }
.kit-inspect__details {
    font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--muted); line-height: 1.6;
    background: var(--paper); border-left: 3px solid var(--brand-tint-hover);
    border-radius: 0 10px 10px 0; padding: 10px 12px; margin-top: 12px;
}

.kit-modal__foot {
    border-top: 1px solid var(--line); padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 8px;
}
.kit-modal__value {
    font-family: 'Inter', sans-serif; font-size: 12px;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
}
.kit-modal__value s { color: var(--muted); }
.kit-modal__value b { color: var(--savings); font-weight: 700; }
.kit-modal__foot .cta-primary { width: 100%; }
.kit-modal__fineprint { font-size: 11px; color: var(--muted); text-align: center; margin: 0; }

@media (max-width: 520px) {
    /* Bottom sheet — intake-modal ile aynı sözleşme */
    .kit-modal { align-items: flex-end; padding: 0; }
    .kit-modal__card {
        max-width: none; border-radius: 20px 20px 0 0; border-bottom: none;
        transform: translateY(100%);
    }
    .kit-modal.is-open .kit-modal__card { transform: none; }
    .kit-modal__body { max-height: calc(84vh - 120px); padding: 22px 18px 14px; }
    .kit-tile-grid { grid-template-columns: repeat(2, 1fr); }
    .kit-tile img { width: 52px; height: 52px; }
}

/* ---------- Supply meter (dashboard tedavi kartı) ----------
   SupplyState gerçeklerini gösterir; alert banner'lar (nag) ayrı yaşar.
   Durum renkleri fill + chip'i birlikte boyar. */
.supply-meter { font-family: 'Inter', sans-serif; }
.supply-meter__head { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.supply-meter__head .section-label { flex: 1 1 auto; min-width: 84px; }
.supply-meter__chip {
    display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; max-width: 100%;
    font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
    padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.supply-meter__chip .ms-rounded { font-size: 14px; }
.supply-meter__hint { margin-top: 6px; font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted); line-height: 1.45; }
.supply-meter__track {
    height: 6px; border-radius: 999px; background: var(--line);
    margin-top: 10px; overflow: hidden;
}
.supply-meter__fill { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.supply-meter__ends {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: 12px; color: var(--muted); margin-top: 6px;
}
.supply-meter__ends b { color: var(--ink); font-weight: 600; }
.supply-meter--ok   .supply-meter__fill { background: var(--savings); }
.supply-meter--ok   .supply-meter__chip { background: var(--savings-bg); color: #157347; }
.supply-meter--low  .supply-meter__fill { background: var(--accent); }
.supply-meter--low  .supply-meter__chip { background: #FDF3E4; color: #9A6215; }
.supply-meter--out  .supply-meter__fill { background: var(--danger); }
.supply-meter--out  .supply-meter__chip { background: var(--danger-bg); color: var(--danger); }
.supply-meter--auto .supply-meter__fill { background: var(--indigo); }
.supply-meter--auto .supply-meter__chip { background: var(--indigo-tint); color: var(--indigo-ink); }

/* Gösterge-içi reorder CTA — biten ikmal dolgun marka butonu, azalan ikmal yumuşak tint */
.supply-meter__cta {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; margin-top: 12px; padding: 10px 16px;
    border-radius: 999px; font-size: 13.5px; font-weight: 700;
    transition: background .15s, transform .15s;
}
.supply-meter__cta .ms-rounded { font-size: 17px; }
.supply-meter__cta:hover .supply-meter__cta-arrow { transform: translateX(3px); }
.supply-meter__cta-arrow { transition: transform .15s; }
.supply-meter--out .supply-meter__cta { background: var(--brand); color: #fff !important; }
.supply-meter--out .supply-meter__cta:hover { background: var(--brand-700); }
.supply-meter--low .supply-meter__cta { background: var(--brand-tint); color: var(--brand) !important; }
.supply-meter--low .supply-meter__cta:hover { background: var(--brand-tint-hover); }

/* ---------- Doz değişimi onay kartı (SweetAlert gövdesi) ----------
   İkon fontu YOK — Swal sayfa fontlarından önce açılabilir; karakter + inline SVG
   her koşulda çizilir. .dose-swal Swal kabuğunu portal diline çeker. */
.dose-swal { border-radius: var(--r) !important; padding: 26px 26px 24px !important; }
.dose-swal__title {
    font-family: 'DM Sans', sans-serif !important; font-size: 21px !important;
    font-weight: 700 !important; color: var(--ink) !important; padding: 14px 0 4px !important;
}
.dose-swal__btn { margin-top: 6px; min-width: 200px; justify-content: center; }
.dose-done { font-family: 'Inter', sans-serif; text-align: left; }
.dose-done__badge {
    display: flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; margin: 2px auto 0; border-radius: 50%;
    background: var(--savings-bg); color: var(--savings);
}
.dose-done__badge svg { width: 28px; height: 28px; }
.dose-done__svg { display: inline-flex; flex-shrink: 0; }
.dose-done__svg svg { width: 20px; height: 20px; }
.dose-done__change {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 12px 16px; text-align: center; margin-top: 14px;
}
.dose-done__change small {
    display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.dose-done__doses {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-family: 'DM Sans', sans-serif; font-size: 22px; color: var(--ink);
}
.dose-done__doses s { color: var(--muted); font-size: 17px; text-decoration-thickness: 2px; }
.dose-done__doses b { font-weight: 700; }
.dose-done__arrow { font-size: 19px; color: var(--muted); line-height: 1; }
.dose-done__note { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.dose-done__fee {
    display: flex; align-items: center; gap: 10px;
    background: var(--brand-tint); border-radius: var(--r-sm);
    padding: 11px 14px; margin-top: 12px; color: var(--brand);
}
.dose-done__fee-txt { flex: 1; min-width: 0; }
.dose-done__fee-txt b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.dose-done__fee-txt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.dose-done__fee-amt { font-size: 16px; font-weight: 700; color: var(--brand); flex-shrink: 0; }
.dose-done__fee-per { font-size: 10px; font-weight: 600; color: var(--muted); margin-left: 1px; }
.dose-done__warn {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12px; color: #9A6215; background: #FDF3E4;
    border-radius: var(--r-sm); padding: 10px 12px; margin-top: 10px;
}
.dose-done__svg--warn svg { width: 15px; height: 15px; margin-top: 1px; }

.recent-row__delivered { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted, #6B7280); }

/* ============================================================
   Orders page — order cards + fulfillment tracker (mobile-first)
============================================================ */
.orders-filter {
    display: inline-flex; gap: 4px; background: #EDF0F5; border-radius: 999px; padding: 4px;
    max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.orders-filter__btn {
    appearance: none; border: 0; cursor: pointer; background: transparent; white-space: nowrap;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--muted);
    padding: 8px 16px; border-radius: 999px; min-height: 38px; transition: background .15s, color .15s, box-shadow .15s;
}
.orders-filter__btn:hover { color: var(--ink); }
.orders-filter__btn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.order-card {
    background: var(--surface); border: 1px solid var(--card-border);
    border-radius: var(--r); box-shadow: var(--shadow-card); padding: 18px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.order-card + .order-card { margin-top: 14px; }
.order-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.order-card.is-closed { opacity: .74; }

.order-card__head { display: flex; align-items: flex-start; gap: 14px; }
.order-card__thumb {
    position: relative; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex: 0 0 auto;
    background: var(--paper); display: flex; align-items: center; justify-content: center;
}
.order-card__thumb .doc { width: 100%; height: 100%; object-fit: cover; }
.order-card__thumb .drug { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5px; background: var(--paper); }
.order-card__thumb .ms-rounded { color: var(--muted); font-size: 24px; }
.order-card__titlewrap { min-width: 0; flex: 1; }
.order-card__title { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.25; }
.order-card__meta { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.order-card__pillwrap { flex: 0 0 auto; }

.order-card__alert {
    display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 13px;
    background: #FEF6E7; border: 1px solid #F6E2B8; border-radius: 13px;
    font-family: 'Inter', sans-serif; font-size: 13px; color: #8A5A00; line-height: 1.4;
}
.order-card__alert .ms-rounded { color: #C98A00; font-size: 20px; flex: 0 0 auto; }

/* fulfillment tracker */
.order-track { display: flex; margin: 18px 4px 2px; }
.order-track__node { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.order-track__node:not(:first-child)::before {
    content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px;
    background: var(--line-strong); z-index: 0;
}
.order-track__node.is-done::before, .order-track__node.is-current::before { background: var(--brand); }
.order-track__dot {
    position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 2px solid var(--line-strong);
}
.order-track__dot .ms-rounded { font-size: 15px; color: #fff; }
.order-track__node.is-done .order-track__dot { background: var(--brand); border-color: var(--brand); }
.order-track__node.is-current .order-track__dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.order-track__node.is-current .order-track__dot::after { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--brand); }
.order-track__label { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 7px; }
.order-track__node.is-done .order-track__label, .order-track__node.is-current .order-track__label { color: var(--ink); }
.order-track-caption { font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; color: var(--brand-700); margin-top: 8px; }
.order-track-caption--muted { color: var(--muted); font-weight: 500; }

/* delivered orders: compact confirmation instead of the full step tracker */
.order-delivered {
    display: inline-flex; align-items: center; gap: 9px; margin-top: 15px;
    padding: 8px 14px 8px 10px; border-radius: 999px;
    background: var(--savings-bg); border: 1px solid #CDE9BF;
    font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 600; color: #157347;
}
.order-delivered .ms-rounded { font-size: 20px; color: #2E9E4F; }

/* fact chips */
.order-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.order-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
    background: var(--paper); border: 1px solid var(--line);
    font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--ink-2);
}
.order-chip .ms-rounded { font-size: 16px; color: var(--muted); }
.order-chip img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.order-chip b { font-weight: 600; color: var(--ink); }

/* actions */
.order-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.order-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 10px 18px; border-radius: 12px; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.order-btn .ms-rounded { font-size: 18px; }
/* Delivery details / Track = INFORMATIONAL UTILITY → light-grey at rest, orange tint on hover
   (matches dashboard). */
.order-btn--track { background: var(--paper); color: var(--ink); border-color: var(--card-border); }
.order-btn--track .ms-rounded { color: var(--muted); }
.order-btn--track:hover { background: var(--brand-tint); color: var(--brand-ink); border-color: var(--brand-tint-hover); }
.order-btn--track:hover .ms-rounded { color: var(--brand); }
.order-btn--buy { background: var(--brand); color: #fff; }
.order-btn--buy:hover { background: var(--brand-700); color: #fff; }
/* Change dose = TREATMENT ACTION → brand-filled pill (matches dashboard). */
.order-btn--change { background: var(--brand); color: #fff; border-color: var(--brand); }
.order-btn--change:hover { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.order-btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.order-btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

/* footer = chips + actions; stacks on mobile, splits (chips left / actions right) on desktop */
.order-card__footer { margin-top: 16px; }
.order-card__footer .order-card__chips { margin-top: 0; }
.order-card__footer .order-card__actions { margin-top: 12px; }

@media (max-width: 520px) {
    .order-card__actions .order-btn { flex: 1 1 100%; }
    .order-track__label { font-size: 10px; }
}
@media (min-width: 1024px) {
    .order-card { padding: 24px 28px; }
    .order-card__thumb { width: 62px; height: 62px; }
    .order-card__title { font-size: 18px; }
    .order-track { margin: 22px 6px 4px; }
    .order-card__footer {
        display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px;
        padding-top: 18px; border-top: 1px solid var(--line);
    }
    .order-card__footer .order-card__actions { margin-top: 0; flex-wrap: nowrap; }
    .order-card__footer .order-card__chips { margin-top: 0; }
    /* Footer aksiyonları tek bir boyut ailesi olarak okunsun — ragged içerik-genişliği yerine eşit min. */
    .order-card__footer .order-card__actions .order-btn { min-width: 132px; }
}

/* ---------- Recent-order / shipment mini-cards (dashboard + treatment history) ---------- */
.recent-row {
    display:flex; align-items:center; gap:14px; padding:14px 16px;
    border:1px solid var(--card-border); border-radius:14px; background:var(--surface);
    transition:box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.recent-row + .recent-row { margin-top:10px; }
.recent-row:hover { border-color:var(--brand-tint-hover); box-shadow:var(--shadow-card); transform:translateY(-1px); }
.recent-row__thumb {
    position:relative; width:46px; height:46px; border-radius:12px; overflow:hidden; flex:0 0 auto;
    background:var(--paper); display:flex; align-items:center; justify-content:center;
}
.recent-row__thumb .doc  { width:100%; height:100%; object-fit:cover; }
.recent-row__thumb .drug { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:4px; background:var(--paper); }
.recent-row__thumb .ms-rounded { color:var(--muted); }
.recent-row__body { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.recent-row__title { font-family:'DM Sans',sans-serif; font-weight:600; font-size:14.5px; letter-spacing:-0.01em; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Dedicated DOSE badge (prominent) + muted category · ordered date. */
.recent-row__info { display:flex; align-items:center; gap:10px; min-width:0; }
.recent-row__dose {
    display:inline-flex; align-items:center; gap:5px; flex:0 0 auto;
    padding:3px 11px 3px 8px; border-radius:999px;
    background:var(--brand-tint); border:1px solid var(--brand-tint-hover);
    color:var(--brand-ink); font-family:'DM Sans',sans-serif; font-weight:700; font-size:13px; letter-spacing:-0.01em; line-height:1.3;
    white-space:nowrap;
}
.recent-row__dose .ms-rounded { font-size:15px; color:var(--brand); }
.recent-row__meta { font-family:'Inter',sans-serif; font-size:12.5px; color:var(--muted); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recent-row__done { display:inline-flex; align-items:center; gap:5px; font-family:'Inter',sans-serif; font-size:12px; font-weight:600; }
.recent-row__done .ms-rounded { font-size:14px; }
.recent-row__done--ok { color:#157347; }
.recent-row__done--transit { color:var(--brand-700); }

/* Right column, FIXED width so everything lines up across rows: status pill (right-aligned)
   on top, then ONE full-width action button — buttons form a clean aligned column. */
.recent-row__aside { flex:0 0 auto; width:150px; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.recent-row__status { min-height:32px; }
/* Shared button layout */
.recent-row__track, .recent-row__visit, .recent-row__change {
    display:inline-flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:36px; padding:8px 14px;
    border-radius:999px; cursor:pointer; text-decoration:none; white-space:nowrap;
    font-family:'Inter',sans-serif; font-size:13px; font-weight:600;
    transition:background .15s, color .15s, border-color .15s;
}
/* Change dose + Start visit = TREATMENT ACTION → brand-filled pill (primary). */
.recent-row__change, .recent-row__visit {
    background:var(--brand); border:1px solid var(--brand); color:#fff;
}
.recent-row__change:hover, .recent-row__visit:hover { background:var(--brand-700); border-color:var(--brand-700); }
/* Delivery details / Track = INFORMATIONAL UTILITY → soft light-grey fill at rest, warms to the
   brand orange tint on hover. */
.recent-row__track {
    background:var(--paper); border:1px solid var(--card-border); color:var(--ink);
}
.recent-row__track .ms-rounded { color:var(--muted); }
.recent-row__track:hover { background:var(--brand-tint); border-color:var(--brand-tint-hover); color:var(--brand-ink); }
.recent-row__track:hover .ms-rounded { color:var(--brand); }
@media (max-width: 560px) {
    .recent-row { flex-wrap:wrap; }
    .recent-row__body { flex-basis:calc(100% - 60px); }
    /* Status + action drop under the body (past the thumb), inline & left-aligned. */
    .recent-row__aside { width:auto; flex-basis:100%; flex-direction:row; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:8px; padding-left:60px; margin-top:12px; }
    .recent-row__aside .recent-row__track, .recent-row__aside .recent-row__visit, .recent-row__aside .recent-row__change { width:auto; }
}

/* ---------- Treatment history (read-only past treatment) ---------- */
.hist-cta__icon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 40px; height: 40px; border-radius: 11px; background: var(--brand-tint); color: var(--brand);
}
.hist-cta__icon .ms-rounded { font-size: 21px; }

/* ---------- Print ---------- */
@media print {
    #sidebar, #topbar, #bottomNav { display: none !important; }
}

/* ---------- Shipping-schedule page (read-only, visual) ---------- */
.ship-hero { background: linear-gradient(135deg, var(--brand-tint) 0%, #fff 70%); border: 1px solid var(--brand-tint-hover); border-radius: var(--r); padding: 20px 22px; }
.ship-hero__eyebrow { display:inline-flex; align-items:center; gap:6px; font-family:'Inter',sans-serif; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--brand-ink); }
.ship-hero__title { font-family:'DM Sans',sans-serif; font-weight:700; font-size:22px; letter-spacing:-.02em; color:var(--ink); margin-top:6px; }
.ship-hero__cadence { font-family:'Inter',sans-serif; font-size:13.5px; color:var(--ink); margin-top:6px; display:flex; align-items:center; gap:7px; }
.ship-hero__cadence .ms-rounded { font-size:18px; color:var(--brand); }

.ship-stats { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; margin-top:16px; }
.ship-stat { background:#fff; border:1px solid var(--line); border-radius:14px; padding:13px 14px; }
.ship-stat__icon { width:34px; height:34px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; background:var(--brand-tint); color:var(--brand); font-size:19px; }
.ship-stat__num { font-family:'DM Sans',sans-serif; font-weight:700; font-size:17px; letter-spacing:-.02em; color:var(--ink); margin-top:9px; }
.ship-stat__label { font-family:'Inter',sans-serif; font-size:11.5px; color:var(--muted); margin-top:1px; }
@media (max-width:520px){
    .ship-stats { grid-template-columns:1fr; }
    .ship-stat { display:flex; align-items:center; gap:13px; }
    .ship-stat__num { margin-top:0; }
    .ship-stat__icon { flex:0 0 auto; }
}

/* supply timeline: Delivered -> Today -> (next-ship flag) -> Runs out */
.ship-timeline__track { position:relative; height:12px; border-radius:999px; background:var(--line); margin:42px 8px 10px; }
.ship-timeline__fill { position:absolute; left:0; top:0; bottom:0; border-radius:999px; background:linear-gradient(90deg, #22a06b, var(--brand)); }
.ship-timeline__today { position:absolute; top:-7px; bottom:-7px; width:3px; border-radius:2px; background:var(--ink); transform:translateX(-50%); z-index:3; }
.ship-timeline__today b { position:absolute; top:-19px; left:50%; transform:translateX(-50%); font-family:'Inter',sans-serif; font-size:10.5px; font-weight:700; color:var(--ink); white-space:nowrap; }
.ship-timeline__flag { position:absolute; top:-34px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:2px; z-index:2; }
.ship-timeline__flag .ms-rounded { font-size:16px; color:var(--brand); }
.ship-timeline__flag b { font-family:'Inter',sans-serif; font-size:10.5px; font-weight:700; color:var(--brand-ink); background:var(--brand-tint); border:1px solid var(--brand-tint-hover); border-radius:6px; padding:1px 6px; white-space:nowrap; }
.ship-timeline__flag i { width:2px; height:11px; background:var(--brand); display:block; }
.ship-timeline__ends { display:flex; justify-content:space-between; gap:12px; font-family:'Inter',sans-serif; font-size:12px; color:var(--muted); }
.ship-timeline__ends b { color:var(--ink); font-weight:600; }

/* shipment chain journey */
.ship-journey__track { display:flex; align-items:flex-start; }
.ship-node { flex:1; display:flex; flex-direction:column; align-items:center; text-align:center; position:relative; min-width:0; }
.ship-node:not(:first-child)::before { content:''; position:absolute; top:16px; left:-50%; width:100%; height:2px; background:var(--line); z-index:0; }
.ship-node.is-done::before, .ship-node.is-next::before { background:var(--brand); }
.ship-node__dot { width:34px; height:34px; border-radius:50%; z-index:1; display:flex; align-items:center; justify-content:center; background:#fff; border:2px solid var(--line-strong); color:var(--muted); font-size:17px; }
.ship-node.is-done .ship-node__dot { background:#22a06b; border-color:#22a06b; color:#fff; }
.ship-node.is-next .ship-node__dot { background:var(--brand); border-color:var(--brand); color:#fff; box-shadow:0 0 0 4px var(--brand-tint); }
.ship-node.is-planned .ship-node__dot { border-style:dashed; }
.ship-node__meta { display:flex; flex-direction:column; align-items:center; margin-top:7px; }
.ship-node__num { font-family:'Inter',sans-serif; font-size:11.5px; font-weight:700; color:var(--ink); }
.ship-node__date { font-family:'Inter',sans-serif; font-size:11px; color:var(--muted); margin-top:1px; white-space:nowrap; }
.ship-node__chip { display:inline-block; font-family:'Inter',sans-serif; font-size:9.5px; font-weight:700; color:var(--brand-ink); background:var(--brand-tint); border-radius:5px; padding:1px 6px; margin-top:4px; }
@media (max-width:640px){
    .ship-journey__track { flex-direction:column; align-items:stretch; }
    .ship-node { flex-direction:row; align-items:center; gap:14px; text-align:left; padding:8px 0; }
    .ship-node:not(:first-child)::before { top:-50%; left:16px; width:2px; height:100%; }
    .ship-node__meta { margin-top:0; align-items:flex-start; }
}

/* covered / gap badge */
.ship-covered { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:999px; font-family:'Inter',sans-serif; font-size:12px; font-weight:700; white-space:nowrap; }
.ship-covered.is-ok { background:var(--savings-bg); color:#157347; }
.ship-covered.is-warn { background:#FEF3C7; color:#92400E; }

/* manage-shipments action tiles */
.ship-action { display:flex; align-items:center; gap:12px; width:100%; text-align:left; cursor:pointer; padding:13px 14px; background:#fff; border:1px solid var(--line); border-radius:14px; transition:background .15s, border-color .15s; }
.ship-action:hover { background:var(--paper); border-color:var(--brand); }
.ship-action__icon { width:38px; height:38px; flex-shrink:0; border-radius:11px; display:inline-flex; align-items:center; justify-content:center; background:var(--brand-tint); color:var(--brand); font-size:20px; }
.ship-action__body { flex:1; min-width:0; display:flex; flex-direction:column; }
.ship-action__title { font-family:'Inter',sans-serif; font-size:13.5px; font-weight:600; color:var(--ink); }
.ship-action__sub { font-family:'Inter',sans-serif; font-size:12px; color:var(--muted); margin-top:1px; }
.ship-action__chev { color:var(--muted); font-size:20px; flex-shrink:0; }
