/* ============================================================
   JITS MARKET AGENT — Design System (Phase 1 base)
   ============================================================ */

/* 1. Design tokens */
:root {
    --teal: #00A88F;
    --teal-dark: #008F79;
    --navy: #062B50;
    --navy-dark: #041E36;
    --white: #FFFFFF;
    --bg: #F5F8FA;
    --border: #E4EAF0;
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;
    --text: #0F2740;
    --muted: #64748B;
    --radius-card: 16px;
    --radius-btn: 12px;
    --shadow-sm: 0 1px 3px rgba(6, 43, 80, .08);
    --shadow: 0 8px 24px rgba(6, 43, 80, .10);
    --shadow-lg: 0 20px 48px rgba(6, 43, 80, .14);
    --font: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    --header-h: 76px;
    --container: 1200px;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Never allow off-canvas panels or wide rows to create a horizontal
   (bottom) scrollbar that clashes with the page width. `clip` keeps the
   sticky header working, unlike `hidden`. */
html, body { max-width: 100%; overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; color: var(--navy); }
ul, ol { padding-left: 1.25rem; }
button { font-family: inherit; cursor: pointer; }

/* 3. Utilities */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border: 0; border-radius: var(--radius-btn);
    font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(0,168,143,.4); outline-offset: 2px; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 8px 20px rgba(0,168,143,.35); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--border); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.section { padding: 88px 0; }
.section--center { text-align: center; }
.section__eyebrow {
    display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.section__title { font-size: clamp(30px, 4.5vw, 46px); color: var(--navy); }
.section__lead { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 9999;
}
.skip-link:focus { left: 0; }

/* 4. Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--header-h); gap: 20px;
}
.site-header__brand { display: inline-flex; align-items: center; gap: 8px; }
.site-header__logo { height: 38px; width: auto; object-fit: contain; }
.site-header__sublabel {
    font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--teal);
    border-left: 1px solid var(--border); padding-left: 8px; align-self: center;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav__link, .site-nav__drop-link {
    padding: 9px 13px; font-size: 14px; font-weight: 600; color: var(--navy);
    border-radius: 8px; transition: color .15s, background .15s;
}
.site-nav__link:hover, .site-nav__drop-link:hover { color: var(--teal); background: rgba(0,168,143,.06); }
.site-nav__link.active, .site-nav__drop-link.active { color: var(--teal); background: rgba(0,168,143,.08); }

.site-nav__item { position: relative; }
.site-nav__link--parent { display: inline-flex; align-items: center; gap: 6px; }
.site-nav__caret {
    width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 6px solid currentColor; transition: transform .2s ease;
}
.site-nav__item:hover .site-nav__caret, .site-nav__item.is-open .site-nav__caret { transform: rotate(180deg); }
.site-nav__dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    min-width: 300px; padding: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 120;
}
.site-nav__item:hover .site-nav__dropdown, .site-nav__item.is-open .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown { opacity: 1; visibility: visible; }
.site-nav__drop-group { display: flex; flex-direction: column; align-items: flex-start; }
.site-nav__drop-group:first-child { grid-column: span 2; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.site-nav__drop-label {
    font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--teal); margin: 0 0 6px; display: block;
}
.site-nav__drop-link { display: block; width: 100%; text-align: left; font-weight: 600; }
.site-header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none; width: 42px; height: 42px; border: 1px solid var(--border);
    border-radius: 10px; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
    position: fixed; inset: 0; z-index: 200;
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--teal-dark) 135%);
    transform: translateX(100%); transition: transform .28s ease;
    display: flex; flex-direction: column; padding: 0 0 32px; overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__brand {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-drawer__close {
    width: 44px; height: 44px; font-size: 26px; line-height: 1;
    border: 1px solid rgba(255,255,255,.28); border-radius: 10px; background: transparent; color: #fff;
}
.mobile-drawer__nav { display: flex; flex-direction: column; gap: 2px; padding: 18px 24px; }
.mobile-drawer__link {
    padding: 14px 8px; font-size: 17px; font-weight: 700; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.10); transition: color .15s, background .15s;
}
.mobile-drawer__link:hover { color: #7BE8D5; background: rgba(0,168,143,.12); }
.mobile-drawer__link.active { color: #7BE8D5; background: rgba(0,168,143,.18); }
.mobile-drawer__label {
    margin-top: 18px; margin-bottom: 4px; font-size: 11px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase; color: #7BE8D5; padding: 0 8px;
}
.mobile-drawer .btn { margin-top: 20px; }
.mobile-drawer .btn--outline { border-color: rgba(255,255,255,.5); color: #fff; }
.mobile-drawer .btn--outline:hover { background: #fff; color: var(--navy); }

/* 5. Hero */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #F0FBF8 0%, #F5F8FA 100%);
    padding: 72px 0 88px;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__slide { display: none; animation: fadeIn .5s ease; }
.hero__slide.is-active { display: block; }
.hero__badge {
    display: inline-block; padding: 8px 16px; font-size: 12px; font-weight: 800;
    letter-spacing: .14em; color: var(--teal); background: rgba(0,168,143,.10);
    border: 1px solid rgba(0,168,143,.25); border-radius: 999px; margin-bottom: 22px;
}
.hero__title { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.04; color: var(--navy); }
.hero__highlight { color: var(--teal); }
.hero__lead { font-size: 17px; color: var(--muted); max-width: 540px; margin: 22px 0 30px; }
.hero__dots { display: flex; justify-content: center; gap: 8px; margin: -12px 0 20px; }
.hero__dot {
    width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
    background: #b9cfdc; transition: width .25s ease, background .25s ease;
}
.hero__dot.is-active { width: 26px; border-radius: 999px; background: var(--teal); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust {
    display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 34px 0 0;
}
.hero__trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.hero__trust li::before {
    content: ""; width: 18px; height: 18px; border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2300A88F'/%3E%3Cpath d='M6 10l3 3 5-6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hero__visual { position: relative; }
.hero__visual-bg {
    border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, var(--navy), #0a4a7a);
    box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4;
}
.hero__visual-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: fadeIn 1s ease .2s forwards; }
.hero__chip {
    position: absolute; display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); border: 1px solid var(--border); border-radius: 999px;
    padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--navy);
    box-shadow: var(--shadow);
}
.hero__chip--available { bottom: 14%; left: -26px; animation: floatY 5s ease-in-out infinite; }
.hero__chip--available::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(22,163,74,.2); animation: pulse 2s infinite; }
.hero__chip--live { top: 16%; right: -18px; animation: floatY 6s ease-in-out .8s infinite; }
.hero__chip--live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px rgba(220,38,38,.2); animation: pulse 2s infinite; }
.hero__chip--verified { top: 42%; left: -30px; animation: floatY 5.5s ease-in-out .4s infinite; }
.hero__chip--verified::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0,168,143,.2); }

/* 5a. Full-bleed hero carousel */
.hero--bleed { padding: 0; background:  #008F79; }
.hero--bleed .hero__stage { position: relative; height: clamp(500px, 76vh, 740px); overflow: hidden; }
.hero--bleed .hero__slide {
    position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden;
    transition: opacity .9s ease; animation: none;
}
.hero--bleed .hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero--bleed .hero__slide-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transform: scale(1.04);
}
.hero--bleed .hero__slide.is-active .hero__slide-bg { animation: heroPan 9s ease forwards; }
.hero--bleed .hero__slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(4,30,54,.93) 0%, rgba(4,30,54,.72) 42%, rgba(4,30,54,.18) 100%);
}
.hero--bleed .hero__slide-inner { position: relative; z-index: 3; height: 100%; display: flex; align-items: flex-end; padding-bottom: 66px; }
.hero--bleed .hero__copy { max-width: 640px; }
.hero--bleed .hero__actions { justify-content: center; margin-top: 34px; }
.hero__badge-img { display: block; width: 210px; height: auto; margin-bottom: 10px; }
.hero--bleed .hero__title { color: #fff; }
.hero--bleed .hero__lead { color: rgba(255,255,255,.9); }
.hero--bleed .hero__trust li { color: #fff; }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.hero--bleed .hero__dots-wrap { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 4; margin-top: 0; }
.hero--bleed .hero__dots { margin: 0; }
.hero--bleed .hero__dot { background: rgba(255,255,255,.5); }
.hero--bleed .hero__dot.is-active { background: var(--teal); }
.hero__floating-chip {
    position: absolute; right: 6%; bottom: 14%; z-index: 4; width: 170px; height: auto;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,.28)); animation: floatY 5s ease-in-out infinite;
}
.hero--bleed + .booking-strip .booking-strip__card { transform: none; margin-bottom: 0; }
@keyframes heroPan { from { transform: scale(1.04); } to { transform: scale(1.12); } }
@media (max-width: 860px) {
    .hero--bleed .hero__stage { height: clamp(520px, 88vh, 720px); }
    .hero--bleed .hero__slide-overlay { background: linear-gradient(180deg, rgba(4,30,54,.42) 0%, rgba(4,30,54,.84) 72%); }
    .hero--bleed .hero__slide-inner { align-items: flex-end; padding-bottom: 30px; }
    .hero--bleed .hero__dots-wrap { bottom: 18px; }
    .hero__floating-chip { display: none; }
    .hero__badge-img { width: 170px; }
}

/* 5b. Booking strip */
.booking-strip { padding: 0 0 24px; position: relative; z-index: 5; }
.booking-strip__card {
    background: linear-gradient(135deg, var(--navy) 0%, #0A4A7A 100%);
    border-radius: 20px; padding: 40px 44px; color: #fff; box-shadow: var(--shadow-lg);
    transform: translateY(-40px); margin-bottom: -40px;
}
.booking-strip__header h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.booking-strip__header p { color: #9fb9d0; margin: 0 0 24px; }
.booking-strip__form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px; align-items: end; }
.booking-strip__field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #9fb9d0; margin-bottom: 8px; }
@media (max-width: 860px) {
    .booking-strip__form { grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
    .booking-strip__field select { padding-top: 15px; padding-bottom: 15px; }
}
.booking-strip__field select {
    width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08); color: #fff; font-size: 14px; font-weight: 600; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.booking-strip__field select:focus-visible { outline: 2px solid var(--teal); }
.booking-strip__field select option { color: var(--navy); background: #fff; }
.booking-strip__form .btn { margin: 0; }
.booking-strip__result { margin-top: 16px; font-size: 14px; }
.booking-strip__result .note { color: #9fb9d0; }

/* 5c. Stats */
.stats-section { padding: 72px 0 32px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
    text-align: center; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 28px 16px; box-shadow: var(--shadow-sm);
}
.stat-card__value { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 800; color: var(--teal); line-height: 1; }
.stat-card__label { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }

@media (max-width: 860px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .stat-card { padding: 18px 10px; }
    .stat-card__value { font-size: clamp(24px, 6vw, 34px); }
    .stat-card__label { font-size: 12px; margin-top: 8px; }
}

/* 5d. Steps (numbered) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: step; list-style: none; padding: 0; text-align: left; }
.steps li {
    counter-increment: step; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 26px; box-shadow: var(--shadow-sm); position: relative;
    transition: box-shadow .2s ease, transform .2s ease;
}
.steps li:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.steps li::before {
    content: counter(step, decimal-leading-zero); position: absolute; top: 14px; right: 18px;
    font-size: 34px; font-weight: 800; color: rgba(0,168,143,.16);
}
.steps li p { color: var(--muted); font-size: 14px; margin: 0; }
.steps strong { display: block; margin-bottom: 6px; font-size: 16px; color: var(--navy); }
.steps__num { color: var(--teal); font-size: 13px; letter-spacing: .08em; }

/* 5d2. Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* On small screens the scroll-reveal can leave page content invisible when
   IntersectionObserver does not fire. Keep content visible on mobile/tablet. */
@media (max-width: 860px) {
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* 5e. Risk section */
.risk-section { background: linear-gradient(180deg, var(--bg), #fff); }
.risk-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.risk-copy__lead { color: var(--muted); font-size: 17px; max-width: 460px; margin: 0 0 28px; }
.risk-copy { text-align: center; }
.risk-copy__lead { margin-inline: auto; }
.risk-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.risk-card {
    display: flex; gap: 14px; align-items: flex-start; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px;
    box-shadow: var(--shadow-sm);
}
.risk-card__check {
    flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2300A88F'/%3E%3Cpath d='M6 10l3 3 5-6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.risk-card h3 { font-size: 15px; margin-bottom: 4px; }
.risk-card p { color: var(--muted); font-size: 13px; margin: 0; }
@media (max-width: 560px) {
    .risk-cards { grid-template-columns: 1fr; }
}

/* 5f. Market cards */
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.market-grid[hidden] { display: none !important; }
.markets-more { display: flex; justify-content: center; margin-top: 30px; }
.market-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
    overflow: hidden; box-shadow: var(--shadow-sm); text-align: left; transition: box-shadow .2s ease, transform .2s ease;
}
.market-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.market-card__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), #0a4a7a); }
.market-card__media img { width: 100%; height: 100%; object-fit: cover; }
.market-card__agents {
    position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px;
    background: rgba(4,30,54,.75); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px);
}
.market-card__body { padding: 24px; }
.market-card__body h3 { font-size: 20px; }
.market-card__body p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.market-card__cats { color: var(--teal); font-weight: 600; }

/* 5f.2 Coming-soon market card */
.coming-soon-card {
    display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
    margin-top: 32px; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm);
}
.coming-soon-card img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.coming-soon-card__body { padding: 34px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.coming-soon-card__body h3 { font-size: 22px; }
.coming-soon-card__body p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 760px) { .coming-soon-card { grid-template-columns: 1fr; } }

/* 5f.3 Media galleries + wide banners */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.media-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm); text-align: left; }
.media-card__media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy), #0a4a7a); }
.media-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-card__body { padding: 20px; }
.media-card__body h3 { font-size: 17px; margin-bottom: 6px; }
.media-card__body p { color: var(--muted); font-size: 14px; margin: 0; }
.media-grid--duo { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.media-grid--duo .media-card__media { aspect-ratio: auto; }
.media-grid--duo .media-card__media img { height: auto; }
@media (max-width: 680px) {
    .media-grid--duo { grid-template-columns: 1fr; gap: 18px; }
}

.media-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.media-grid--3 .media-card__media { aspect-ratio: auto; }
.media-grid--3 .media-card__media img { height: auto; }
@media (max-width: 760px) { .media-grid--3 { grid-template-columns: 1fr; gap: 18px; } }

/* 5f.4 Feature cards (agent program pages) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; text-align: left; }
.feature-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 26px; box-shadow: var(--shadow-sm); position: relative;
}
.feature-card::before {
    content: ""; display: block; width: 34px; height: 4px; border-radius: 999px;
    background: var(--teal); margin-bottom: 18px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; }
.media-banner { position: relative; border-radius: 20px; overflow: hidden; min-height: 280px; display: flex; align-items: center; }
.media-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-banner__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,30,54,.92) 0%, rgba(6,43,80,.55) 55%, rgba(6,43,80,.2) 100%); }
.media-banner__content { position: relative; z-index: 2; padding: 46px; max-width: 600px; color: #fff; }
.media-banner__content h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 10px; }
.media-banner__content p { color: #cfe3ee; font-size: 16px; margin: 0 0 22px; }
.media-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .media-stack { grid-template-columns: 1fr; } }

/* 5g. Agent cards */
.section--tinted { background: var(--bg); }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.agent-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
    overflow: hidden; box-shadow: var(--shadow-sm); text-align: left; transition: box-shadow .2s ease, transform .2s ease;
}
.agent-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.agent-card__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--navy), #0a4a7a); }
.agent-card__media img { width: 100%; height: 100%; object-fit: cover; }
.agent-card__online {
    position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
    background: rgba(4,30,54,.78); color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.agent-card__online i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
.agent-card__body { padding: 20px; }
.agent-card__body h3 { font-size: 18px; }
.agent-card__market { color: var(--teal); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.agent-card__cats { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.agent-card__meta { display: flex; gap: 14px; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.agent-card__price { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.agent-card__price strong { color: var(--navy); font-size: 17px; }

.badge { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.badge--verified { background: rgba(0,168,143,.12); color: var(--teal); margin-bottom: 8px; }

/* 5h. Empty state */
.empty-state {
    max-width: 520px; margin: 0 auto; padding: 48px 28px; background: var(--white);
    border: 1px dashed var(--border); border-radius: var(--radius-card);
}
.empty-state__icon { font-size: 40px; display: block; margin-bottom: 12px; }
.empty-state h3 { font-size: 20px; }
.empty-state p { color: var(--muted); font-size: 14px; }
.empty-state__actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* 5i. Safety */
.safety-section { padding: 0; }
.safety-section > .container { max-width: none; width: 100%; padding: 0; }
.safety-card {
    display: grid; grid-template-columns: .35fr .65fr; gap: 48px; align-items: center;
    width: 100%;
    background: linear-gradient(135deg, #062B50, #0A4A7A); border-radius: 0;
    padding: 72px 6vw; box-shadow: none; overflow: hidden;
}
.safety-card__copy { color: #fff; }
.safety-card .section__eyebrow { color: var(--teal); }
.safety-card .section__title { color: #fff; }
.safety-card__lead { color: #cfe3ee; font-size: 17px; margin: 0 0 22px; }
.safety-card__list { list-style: none; padding: 0; margin: 0; }
.safety-card__list li { color: #e7f4f0; padding: 8px 0; padding-left: 28px; position: relative; font-size: 14px; }
.safety-card__list li::before {
    content: "✓"; position: absolute; left: 0; top: 8px; color: var(--teal); font-weight: 800;
}
.safety-card__media { position: relative; width: 100%; min-height: 380px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, #0A4A7A, var(--teal)); }
.safety-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* 5j. FAQ */
.container--narrow { max-width: 860px; }
.faq-list { text-align: left; }
.faq-item { background: rgba(0,168,143,.10); border: 1px solid rgba(0,168,143,.25); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-item__q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: var(--navy); border: 0; padding: 18px 22px; font-size: 15px; font-weight: 700; color: #fff;
    text-align: left;
}
.faq-item__q:hover { background: var(--navy-dark); }
.faq-item__icon { position: relative; width: 18px; height: 18px; flex: 0 0 18px; }
.faq-item__icon::before, .faq-item__icon::after {
    content: ""; position: absolute; background: #7BE8D5; border-radius: 2px; transition: transform .25s ease;
}
.faq-item__icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-item__icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item__q[aria-expanded="true"] .faq-item__icon::after { transform: scaleY(0); }
.faq-item__a { padding: 20px 22px; color: var(--teal-dark); font-size: 14px; background: rgba(0,168,143,.10); }
.faq-item__a p { margin: 0; color: var(--teal-dark); }

/* 5k. CTA banners — full-bleed bands (match the hero slider) */
.cta-zone { padding: 0; }
.cta-banner {
    position: relative; overflow: hidden; margin: 0; padding: 0;
    min-height: clamp(420px, 58vh, 600px);
    display: flex; align-items: center; background: var(--navy);
}
.cta-banner__bg {
    position: absolute; inset: 0;
    background-color: var(--navy); background-size: cover; background-position: center; background-repeat: no-repeat;
}
.cta-banner__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(4,30,54,.92) 0%, rgba(6,43,80,.72) 48%, rgba(6,43,80,.25) 100%);
}
.cta-banner__inner { position: relative; z-index: 2; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.cta-banner__content { max-width: 560px; }
.cta-banner__content h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 10px; }
.cta-banner__content p { color: #cfe3ee; font-size: 16px; margin-bottom: 24px; }
.cta-banner--agent { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.cta-banner--agent .cta-banner__content { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-banner--agent .cta-banner__bg::after { background: linear-gradient(180deg, rgba(4,30,54,.55), rgba(6,43,80,.78)); }
.cta-banner--agent h2 { color: #fff; }
.cta-banner--agent p { color: rgba(255,255,255,.92); }
.cta-banner--agent .btn--primary { background: #fff; color: var(--teal); }
.cta-banner--agent .btn--primary:hover { background: #f0fbf8; }
@media (max-width: 860px) {
    .cta-banner { min-height: clamp(340px, 64vh, 500px); }
    .cta-banner__inner { padding-top: 56px; padding-bottom: 56px; }
}

/* 8. Footer */
.site-footer { background: var(--navy-dark); color: #cfe3ee; padding: 72px 0 0; margin-top: 80px; }
.home .site-footer { margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.site-footer__logo { height: 110px; width: auto; object-fit: contain; }
.site-footer__tagline { color: #9fb9d0; margin-top: 16px; font-size: 15px; }
.site-footer__motto { color: var(--teal); font-weight: 700; font-size: 14px; margin-top: 10px; }
.site-footer__col h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer__col a { display: block; color: #9fb9d0; font-size: 14px; padding: 7px 0; transition: color .15s; }
.site-footer__col a:hover { color: var(--teal); }
.site-footer__bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0 28px; font-size: 13px; color: #7c98b0;
}
.footer-sep-icon { margin: 0 8px; color: var(--teal); font-size: 12px; }

/* 9. Mobile bottom nav */
.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
    background: var(--white); border-top: 1px solid var(--border); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.mobile-bottom-nav { grid-template-columns: repeat(5, 1fr); }
.mobile-bottom-nav * { grid-template-columns: none; }
.mobile-bottom-nav__item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 700; color: var(--muted); padding: 6px 2px;
}
.mobile-bottom-nav__item--cta {
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: linear-gradient(180deg, #2ce0c0 0%, #00b396 55%, #008a74 100%);
    color: #fff; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.45);
    border-bottom: 4px solid #007a67;
    padding: 13px 10px 10px; margin: -18px 6px 2px;
    box-shadow: 0 4px 0 -2px #008a74, 0 12px 0 -7px #006b5c, 0 18px 28px rgba(0,120,100,.4), inset 0 1px 0 rgba(255,255,255,.45);
    text-shadow: 0 1px 2px rgba(0,70,58,.4), 0 0 1px rgba(0,0,0,.2);
    font-size: 11px; font-weight: 800; letter-spacing: .02em; line-height: 1.35;
    transform: translateY(-5px);
    transition: transform .15s ease, box-shadow .15s ease, border-bottom-width .15s ease, filter .15s ease;
    filter: saturate(1.05) drop-shadow(0 6px 8px rgba(0,150,125,.35));
}
.mobile-bottom-nav__item--cta:hover { color: #fff; filter: brightness(1.06) drop-shadow(0 6px 8px rgba(0,150,125,.4)); }
.mobile-bottom-nav__item--cta:active {
    transform: translateY(-2px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 0 -1px #008a74, 0 6px 0 -4px #006b5c, 0 10px 16px rgba(0,120,100,.3), inset 0 1px 0 rgba(255,255,255,.35);
    filter: brightness(.98) drop-shadow(0 3px 4px rgba(0,150,125,.25));
}

/* 10. Toasts */
.toast-stack { position: fixed; top: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
    display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 360px;
    background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--success);
    border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 14px; font-weight: 600;
    animation: slideInRight .3s ease;
}
.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--danger); }
.toast--warning { border-left-color: var(--warning); }
.toast--info { border-left-color: var(--teal); }
.toast__close { border: 0; background: transparent; font-size: 20px; color: var(--muted); line-height: 1; margin-left: auto; }

/* 11. Error pages */
.error__code { font-size: clamp(80px, 14vw, 160px); color: var(--teal); line-height: 1; margin: 0; }

/* 12. Animations */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.35); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

/* 13. Responsive */
@media (max-width: 1024px) {
    .hero { padding: 0px 0 8px; }
    .hero__inner { gap: 36px; }
    .hero__chip--available { left: -8px; }
    .hero__chip--live { right: -8px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    /* The full nav needs ~1000px, so collapse to the menu button before it
       can overflow the page width on narrow desktop/tablet windows. */
    .site-nav { display: none; }
    .nav-toggle { display: flex; }
    .site-header__actions .btn--primary { display: none; }
}

/* True-desktop: mobile-only navigation must never render over the page. */
@media (min-width: 1025px) {
    .mobile-drawer { display: none; }
    .mobile-bottom-nav { display: none; }
}
@media (max-width: 860px) {
    .site-nav { display: none; }
    .nav-toggle { display: flex; }
    .site-header__actions .btn--primary { display: none; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
    .hero__chip--available { left: 8px; }
.mobile-bottom-nav { display: grid; }
    body { padding-bottom: 76px; }
    .section { padding: 60px 0; }
    .safety-page-grid, .contact-grid, .safety-card { grid-template-columns: 1fr; }
    .safety-card { padding: 48px 5vw; gap: 28px; }
    .safety-card__media { min-height: 320px; width: 100%; border-radius: 14px; }
    .market-hero { grid-template-columns: 1fr; padding: 24px; }
    .market-hero__media { max-width: 520px; width: 100%; margin: 0 auto; }
    .page-hero { padding: 64px 0 44px; }
}
@media (max-width: 560px) {
    .hero:not(.hero--bleed) { padding: 44px 0 56px; }
    .hero__title { font-size: clamp(32px, 8.5vw, 40px); }
    .hero__actions .btn { width: 100%; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .container { padding: 0 18px; }
}

/* 5m. Inner page hero */
.page-hero {
    background: linear-gradient(180deg, rgba(234,246,242,0) 0%, rgba(234,246,242,.6) 55%, rgba(234,246,242,0) 100%);
    padding: 84px 0 56px; text-align: center;
}
.page-hero__title { font-size: clamp(30px, 5vw, 46px); color: var(--navy); line-height: 1.1; margin: 10px 0 14px; }
.page-hero__lead { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto; }
.page-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.section__eyebrow { color: var(--teal); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section__note { color: var(--muted); font-size: 14px; text-align: center; margin-top: 28px; max-width: 720px; margin-inline: auto; }

/* 5n. Services / pricing cards */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.package-card {
    position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 28px 24px; box-shadow: var(--shadow-sm); text-align: left; display: flex; flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}
.package-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.package-card--featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.package-card__tag {
    position: absolute; top: -12px; right: 18px; background: var(--teal); color: #fff; font-size: 11px;
    font-weight: 800; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; text-transform: uppercase;
}
.package-card h3 { font-size: 19px; color: var(--navy); margin: 0 0 10px; }
.package-card__price strong { font-size: 30px; color: var(--navy); }
.package-card__price span { color: var(--muted); font-size: 13px; }
.package-card__dur { color: var(--teal); font-weight: 700; font-size: 13px; margin: 6px 0 18px; }
.package-card__features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.package-card__features li { color: var(--muted); font-size: 14px; padding: 7px 0; padding-left: 26px; position: relative; }
.package-card__features li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--teal); font-weight: 800; }

/* 5o. Safety page */
.safety-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.safety-page-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.safety-page-card h3 { font-size: 20px; margin: 0 0 16px; }
.safety-page-card ul { list-style: none; padding: 0; margin: 0; }
.safety-page-card li { color: var(--muted); font-size: 14px; padding: 8px 0; padding-left: 26px; position: relative; }
.safety-page-card li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--teal); font-weight: 800; }
.disclaimer-callout {
    background: #FFF7E8; border: 1px solid #F3DFB2; border-radius: 18px; padding: 32px 36px; margin-top: 36px;
}
.disclaimer-callout h3 { color: var(--navy); font-size: 18px; margin: 0 0 12px; }
.disclaimer-callout p, .disclaimer-callout li { color: var(--muted); font-size: 14px; }
.disclaimer-callout ul { margin: 0 0 12px; padding-left: 20px; }
.safety-tips { text-align: center; }
.safety-tips h2 { font-size: 26px; margin-bottom: 22px; }
.safety-tips ol { text-align: left; display: inline-block; margin: 0 0 28px; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 2; }

/* 5p. Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.contact-aside { display: grid; gap: 24px; }
.contact-strip {
    position: relative; overflow: hidden; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.contact-strip::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--teal-dark) 45%, var(--navy) 100%);
}
.contact-strip--form { padding: 32px; }
.contact-strip h3 { font-size: 19px; margin: 0 0 12px; }
.contact-strip p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.contact-strip--form .contact-form { margin-top: 20px; }
.contact-strip--form p a { color: var(--teal); font-weight: 600; }
.contact-strip .btn { margin-top: 6px; }
.contact-strip__note { font-size: 13px !important; margin-top: 16px !important; }
.contact-strip__icon {
    margin-right: 8px; color: var(--teal); width: 18px; text-align: center;
}
.contact-strip__link { color: var(--teal); font-weight: 600; }
@media (max-width: 860px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* 5q. Market detail page */
.hero--market .hero__badge-img { margin-bottom: 2px; }
.market-hero {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center;
    background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 20px; box-shadow: var(--shadow-sm);
}
.market-hero__media { border-radius: 16px; overflow: hidden; aspect-ratio: auto; background: linear-gradient(135deg, var(--navy), #0A4A7A); }
.market-hero__media img { width: 100%; height: auto; object-fit: cover; }
.market-hero__body h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.market-hero__body p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.market-hero__sub { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin: 22px 0 -8px; }
.market-hero__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.market-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
    .market-hero { grid-template-columns: 1fr; gap: 20px; padding: 0; overflow: hidden; }
    .market-hero__media { max-width: 100%; width: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; }
    .market-hero__media img { height: auto; max-height: none; width: 100%; object-fit: cover; }
    .market-hero__body { display: flex; flex-direction: column; align-items: flex-start; width: 100%; box-sizing: border-box; padding: 4px 22px 26px; }
}
.chip {
    display: inline-block; background: var(--bg); border: 1px solid var(--border); color: var(--navy);
    font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}
.chip--zone { background: var(--white); border-color: var(--teal); color: var(--teal); }
.chip--specialty { background: var(--white); border-color: var(--teal); color: var(--navy); }
.steps--rows { list-style: none; padding: 0; margin: 0; }
.steps--rows li { padding: 14px 0 14px 34px; position: relative; border-left: 2px solid var(--teal); margin-left: 6px; color: var(--muted); font-size: 14px; }
.steps--rows li::before { content: ""; position: absolute; left: -6px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.steps--rows li strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 2px; }
.steps--rows li p { margin: 0; }

/* 5r. Release / interim cards */
.release-card {
    background: linear-gradient(135deg, #062B50, #0A4A7A); border-radius: 22px; color: #fff;
    padding: 48px 44px; text-align: center; box-shadow: var(--shadow-lg);
}
.release-card__badge {
    display: inline-block; background: rgba(0,168,143,.2); color: var(--teal); border: 1px solid rgba(0,168,143,.45);
    font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 7px 14px; border-radius: 999px; text-transform: uppercase; margin-bottom: 18px;
}
.release-card h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 14px; }
.release-card p { color: #cfe3ee; font-size: 15px; max-width: 560px; margin: 0 auto 26px; }
.release-card__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.release-card--agent h2 {
    background: linear-gradient(90deg, #fff 0%, #7BE8D5 55%, #00A88F 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.release-card--agent .btn--ghost { color: var(--teal); border-color: rgba(0,168,143,.6); }
.release-card--agent .btn--ghost:hover { color: #fff; border-color: var(--teal); background: rgba(0,168,143,.15); }

/* 5s. Empty agents variant */
.empty-state--agents { text-align: center; }
.empty-state--agents h2 { font-size: 22px; margin: 14px 0 8px; }
.empty-state--agents .empty-state__icon img { border-radius: 50%; }

/* 5t. Inner page hero on tinted sections */
.section--tinted .section__title { font-size: 28px; }

/* 14. Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
/* ============================================================
   Phase 4 � Auth pages, forms, dashboard
   ============================================================ */

/* ---- shared alerts / breadcrumbs --------------------------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb__link:hover { color: var(--teal); }
.breadcrumb__sep { opacity: .6; }

.alert { border: 1px solid var(--border); border-left: 4px solid var(--teal); background: #fff; border-radius: 12px; padding: 14px 18px; font-size: 14px; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.alert--danger { border-left-color: var(--danger); background: #FEF2F2; }
.alert--success { border-left-color: var(--success); background: #F0FDF4; }
.alert--warning { border-left-color: var(--warning); background: #FFFBEB; }

/* ---- badges ------------------------------------------------ */
.badge--teal { background: rgba(0,168,143,.12); color: var(--teal); }
.badge--success { background: rgba(22,163,74,.12); color: var(--success); }
.badge--neutral { background: rgba(100,116,139,.12); color: var(--muted); }

/* ---- auth layout ------------------------------------------- */
.auth-body { min-height: 100vh; background: linear-gradient(180deg, var(--navy) 0%, #0A4A7A 45%, var(--bg) 45.1%, var(--bg) 100%); display: flex; flex-direction: column; }
.auth-shell { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 10px 18px; border-radius: 999px; backdrop-filter: blur(4px); }
.auth-brand__logo { height: 150px; width: auto; transition: opacity .5s ease; }
.auth-brand__sub { color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 18px 40px rgba(6,43,80,.10); padding: 38px 40px 32px; width: 100%; max-width: 440px; }
.auth-eyebrow { display: block; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; }
.auth-card__title { color: var(--navy); font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
.auth-card__lead { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 24px; }
.auth-card__foot { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.auth-back { margin-top: 20px; font-size: 13px; }
.auth-back a { color: #E2F5F1; }
.auth-back a:hover { color: #fff; }
.auth-steps { list-style: none; margin: 0 0 24px; padding: 0 6px; }
.auth-step { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.auth-step + .auth-step { margin-top: 18px; }
.auth-step__num { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }

/* ---- forms -------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 4px; }
.form-grid--two { grid-template-columns: 1fr 1fr; }
.form-field { margin-bottom: 16px; }
.form-grid .form-field { margin-bottom: 0; }
.form-field__label { display: block; font-weight: 700; font-size: 13px; color: var(--navy); margin-bottom: 7px; }
.form-field__optional { color: var(--muted); font-weight: 500; }
.form-field__input { width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--navy); background: #fff; border: 1.5px solid var(--border); border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease; }
.form-field__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,168,143,.15); }
.form-field__input:disabled { background: #F1F5F9; color: var(--muted); cursor: not-allowed; }
.form-field__input--textarea { resize: vertical; min-height: 88px; }
.form-field__error { display: block; margin-top: 6px; color: var(--danger); font-size: 12.5px; font-weight: 600; }
.form-field__note { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.form__row { display: flex; align-items: center; margin-bottom: 20px; }
.form__row--between { justify-content: space-between; gap: 14px; }
.form-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; user-select: none; }
.form-check input { accent-color: var(--teal); width: 16px; height: 16px; }
.form-link { font-size: 13.5px; font-weight: 600; }
.form-field__check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; user-select: none; }
.form-field__check .form-field__checkbox { accent-color: var(--teal); width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; }
.form-field__check a { color: var(--teal); font-weight: 700; }

/* ---- dashboard (customer area) ------------------------------ */
.dash-grid { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; box-shadow: 0 4px 18px rgba(6,43,80,.05); }

/* Refer & Earn panel */
.referral-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center; background: linear-gradient(135deg, #062B50 0%, #0A4A7A 45%, #009575 125%); border: 1px solid rgba(0,168,143,.35); border-radius: var(--radius-card); padding: 30px; color: #fff; box-shadow: 0 18px 40px rgba(6,43,80,.18); }
.referral-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--teal-bright), var(--teal), #7BE8D5); }
.referral-hero::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(0,168,143,.5), transparent 70%); pointer-events: none; }
.referral-hero > div { position: relative; z-index: 1; }
.referral-hero__badge { display: inline-block; background: rgba(0,168,143,.18); border: 1px solid rgba(0,168,143,.5); color: #4fe0c4; font-size: 12px; font-weight: 800; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.referral-hero__title { font-size: clamp(20px, 2.6vw, 28px); margin: 0 0 8px; color: silver; }
.referral-hero__lead { color: #cfe3ee; font-size: 14.5px; margin: 0; }
.referral-share { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 18px; }
.referral-share__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9fc0da; margin-bottom: 8px; }
.referral-share__row { display: flex; gap: 8px; }
.referral-share__input { flex: 1; min-width: 0; background: rgba(255,255,255,.95); border: 0; border-radius: 10px; padding: 11px 12px; font-size: 13px; font-weight: 600; color: var(--navy); }
.referral-share__code { margin: 10px 0 0; font-size: 13px; color: #cfe3ee; }
.referral-share__wa { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: #4fe0c4; }
.referral-share__wa:hover { color: #fff; }
.referral-hero__lead strong { color: #fff; }
.referral-hero--dash { padding: 26px; gap: 22px; }
.referral-hero--dash .referral-hero__title { margin: 0 0 10px; font-size: clamp(19px, 2.6vw, 26px); }
.referral-hero--dash .referral-share__wa { margin-top: 6px; }
.referral-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.referral-note a { font-weight: 700; }
@media (max-width: 760px) {
    .referral-hero { grid-template-columns: 1fr; padding: 26px 20px; gap: 24px; }
    .referral-hero__title { margin-bottom: 12px; }
    .referral-hero__lead { line-height: 1.65; }
    .referral-share { padding: 18px 16px; }
    .referral-share__row { gap: 10px; }
    .referral-share__input { padding: 13px 12px; font-size: 13.5px; }
    .referral-share__wa { margin-top: 14px; }
    .referral-note { line-height: 1.6; }
}
@media (max-width: 480px) {
    .referral-hero { padding: 24px 18px; }
    .referral-share__row { flex-direction: column; align-items: stretch; }
    .referral-share__row .btn { width: 100%; }
}
.dash-side { text-align: center; position: sticky; top: 110px; }
.dash-side__avatar { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 999px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.avatar-img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.dash-side__name { color: var(--navy); font-size: 18px; margin: 0 0 4px; }
.dash-side__email { color: var(--muted); font-size: 13px; margin: 0 0 20px; word-break: break-all; }
.dash-meta { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--border); }
.dash-meta__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--navy); }
.dash-meta__label { color: var(--muted); }
.dash-main { min-width: 0; }
.dash-form { padding: 30px; }
.dash-form__head { margin-bottom: 22px; }
.dash-form__title { color: var(--navy); font-size: 20px; margin: 0 0 4px; }
.dash-form__hint { color: var(--muted); font-size: 13.5px; margin: 0; }
.dash-form__actions { margin-top: 22px; }
.dash-side__logout { margin-top: 22px; }
.alert .btn { white-space: nowrap; flex-shrink: 0; }

/* ---- header user chip ---------------------------------------- */
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__user { display: inline-flex; align-items: center; gap: 8px; }
.site-header__avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.site-header__logout { margin: 0; }
.site-header__logout-btn { background: none; border: 0; cursor: pointer; color: var(--navy); font-size: 13px; font-weight: 700; padding: 8px 0; }
.site-header__logout-btn:hover { color: var(--danger); }

/* ---- CMS / legal pages --------------------------------------- */
.page-hero--compact { padding: 52px 0 30px; }
.prose { font-size: 16px; line-height: 1.85; color: var(--text); }
.prose p { margin: 0 0 16px; }
.site-footer__legal {
    display: flex; flex-wrap: wrap; gap: 10px 22px;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 4px; padding: 20px 0 0;
}
.site-footer__legal a { color: #9fb9d0; font-size: 13px; transition: color .15s; }
.site-footer__legal a:hover { color: var(--teal); }

/* ---- agent workspace (Phase 5) ------------------------------- */
.agent-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.agent-nav__link { padding: 10px 16px; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.agent-nav__link:hover { color: var(--navy); }
.agent-nav__link.is-active { color: var(--navy); border-bottom-color: var(--teal); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid .stat-card { padding: 22px 14px; }
.stat-grid .stat-card__value { font-size: clamp(22px, 3vw, 30px); }
.stat-card--split { display: flex; flex-direction: column; gap: 12px; }
.stat-card--split .stat-card__cell { display: flex; flex-direction: column; }
.stat-card--split .stat-card__value { font-size: clamp(18px, 2.4vw, 24px); }
.stat-card--split .stat-card__label { margin-top: 2px; font-size: 12px; }

.progress-bar { height: 8px; width: 100%; background: #E2E8F0; border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-dark)); border-radius: 999px; transition: width .3s ease; }

.availability-toggle { display: flex; flex-wrap: wrap; gap: 10px; }
.toggle-chip { padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .15s ease; }
.toggle-chip:hover { border-color: var(--teal); color: var(--teal); }
.toggle-chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch-row__input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row__track { width: 46px; height: 26px; flex: 0 0 46px; border-radius: 999px; background: var(--border); position: relative; transition: background .18s ease; }
.switch-row__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(10, 26, 45, .25); transition: transform .18s ease; }
.switch-row__input:checked + .switch-row__track { background: var(--teal); }
.switch-row__input:checked + .switch-row__track::after { transform: translateX(20px); }
.switch-row__input:focus-visible + .switch-row__track { outline: 2px solid var(--teal); outline-offset: 2px; }
.switch-row__label { font-size: 14px; color: var(--text); }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chip-list .chip { margin: 0; }

.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.doc-list__name { font-size: 13.5px; font-weight: 700; color: var(--navy); text-transform: capitalize; display: inline-flex; align-items: center; gap: 8px; }

.form-field__note--ok { color: var(--success); font-weight: 700; }
.badge--danger { background: rgba(220,38,38,.12); color: var(--danger); }

/* Application stepper */
.apply-form { padding: 30px; }
.apply-stepper { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 4px; padding: 0; margin: 0 0 26px; border-bottom: 1px solid var(--border); }
.apply-stepper__item { display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.apply-stepper__item.is-active { color: var(--navy); border-bottom-color: var(--teal); }
.apply-stepper__num { width: 22px; height: 22px; border-radius: 999px; background: #E2E8F0; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.apply-stepper__item.is-active .apply-stepper__num { background: var(--teal); color: #fff; }
.apply-step { display: none; border: 0; padding: 0; margin: 0; }
.apply-step.is-active { display: block; }
.apply-step__legend { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 16px; padding: 0; }
.apply-actions { display: flex; gap: 12px; margin-top: 24px; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.check-grid--compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.check-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 13.5px; color: var(--navy); transition: border-color .15s ease, background .15s ease; }
.check-card:hover { border-color: var(--teal); }
.check-card input { accent-color: var(--teal); margin-top: 2px; }
.check-card strong { display: block; font-weight: 700; }
.check-card small { display: block; color: var(--muted); font-weight: 500; }

.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* ---- responsive ---------------------------------------------- */
@media (max-width: 860px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dash-side { position: static; }
    .form-grid--two { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 22px; }
    .auth-body { background: linear-gradient(180deg, var(--navy) 0%, #0A4A7A 38%, var(--bg) 38.1%, var(--bg) 100%); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
.stat-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .auth-card__title { font-size: 22px; }
    .alert { flex-direction: column; align-items: flex-start; }
    .stat-grid { grid-template-columns: 1fr; }
.stat-grid--3 { grid-template-columns: 1fr; }
}

/* ============================================================
   Customer area (Phase 7) — sidebar layout + account sections
   ============================================================ */
.badge--warning { background: rgba(245,158,11,.14); color: #b45309; }
.badge--danger { background: rgba(220,38,38,.12); color: var(--danger); }
.badge--info { background: rgba(14,116,144,.12); color: #0e7490; }

/* ---- account layout ---------------------------------------- */
.dash-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.dash-sidebar { position: sticky; top: 110px; }

.dash-nav { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px; box-shadow: 0 4px 18px rgba(6,43,80,.05); }
.dash-nav__label { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--muted); margin: 0 6px 10px; }
.dash-nav__list { list-style: none; margin: 0; padding: 0; }
.dash-nav__link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background .15s ease, color .15s ease; }
.dash-nav__link:hover { background: #F0FDFA; color: var(--teal-dark); }
.dash-nav__link.is-active { background: rgba(0,168,143,.12); color: var(--teal-dark); }
.dash-nav__badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.dash-nav__cta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---- profile identity strip --------------------------------- */
.dash-identity { display: flex; align-items: center; gap: 18px; }
.dash-identity__avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 999px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.dash-identity .dash-meta { margin: 10px 0 0; }

/* ---- generic result list ------------------------------------ */
.result-list { list-style: none; margin: 0; padding: 0; }
.result-list__item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 2px; border-bottom: 1px solid var(--border); }
.result-list__item:last-child { border-bottom: 0; }
.result-list__main { min-width: 0; }
.result-list__title { display: block; color: var(--navy); font-weight: 800; font-size: 15px; text-decoration: none; }
.result-list__title:hover { color: var(--teal-dark); }
.result-list__sub { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.result-list__meta { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.result-list__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.result-list__amount { font-weight: 800; color: var(--navy); font-size: 15px; }

/* ---- notifications ------------------------------------------- */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list__item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 2px; border-bottom: 1px solid var(--border); }
.notice-list__item:last-child { border-bottom: 0; }
.notice-list__item.is-unread { background: rgba(0,168,143,.05); margin: 0 -14px; padding: 16px 14px; border-radius: 12px; }
.notice-list__icon { flex: 0 0 auto; font-size: 22px; line-height: 1.3; }
.notice-list__body { min-width: 0; flex: 1; }
.notice-list__body strong { color: var(--navy); font-size: 14.5px; }
.notice-list__body p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.notice-list__time { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.notice-list__actions { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ---- message threads ----------------------------------------- */
.thread-list { list-style: none; margin: 0; padding: 0; }
.thread-list__item { border-bottom: 1px solid var(--border); }
.thread-list__item:last-child { border-bottom: 0; }
.thread-list__link { display: flex; align-items: center; gap: 14px; padding: 16px 4px; text-decoration: none; }
.thread-list__link:hover { background: #F0FDFA; margin: 0 -12px; padding: 16px 12px; border-radius: 12px; }
.thread-list__avatar { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 999px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.thread-list__body { min-width: 0; flex: 1; }
.thread-list__title { display: block; color: var(--navy); font-size: 15px; }
.thread-list__preview { display: block; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.thread-list__meta { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---- chat ----------------------------------------------------- */
.dash-chat { display: flex; flex-direction: column; min-height: 420px; }
.dash-chat__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.dash-chat__head strong { color: var(--navy); display: block; font-size: 16px; }
.dash-chat__head .dash-form__hint { display: block; margin-top: 3px; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 4px 4px 16px; }
.chat-bubble { max-width: 78%; padding: 12px 15px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.chat-bubble p { margin: 0; }
.chat-bubble__meta { display: block; margin-top: 6px; font-size: 11.5px; opacity: .75; }
.chat-bubble--mine { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble--mine .chat-bubble__meta { color: rgba(255,255,255,.85); }
.chat-bubble--theirs { align-self: flex-start; background: #F1F5F9; color: var(--navy); border-bottom-left-radius: 4px; }
.chat-bubble--theirs .chat-bubble__meta { color: var(--muted); }
.dash-chat__composer { display: flex; align-items: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.dash-chat__composer .form-field__input { flex: 1; }

/* ---- report view ---------------------------------------------- */
.report-quote { font-size: 15px; font-style: italic; color: var(--navy); background: #F0FDFA; border-left: 3px solid var(--teal); padding: 14px 18px; border-radius: 0 10px 10px 0; margin-top: 14px; }
.summary-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--border); }
.summary-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.summary-list span { color: var(--muted); }
.check-results { list-style: none; margin: 0; padding: 0; }
.check-results__item { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 13px 2px; border-bottom: 1px solid var(--border); }
.check-results__item:last-child { border-bottom: 0; }
.check-results__label { font-weight: 700; color: var(--navy); font-size: 14px; }
.check-results__status { text-align: right; }
.check-results__note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* ---- inspection media ---------------------------------------- */
.media-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: var(--navy); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.media-thumb:hover img { transform: scale(1.04); }
.media-thumb__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; background: rgba(4,30,54,.35); }
.media-grid--tight { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }

/* ---- saved sellers -------------------------------------------- */
.seller-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.seller-card { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px; display: flex; flex-direction: column; }
.seller-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.seller-card__avatar { width: 44px; height: 44px; border-radius: 999px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.seller-card__name { display: block; color: var(--navy); font-size: 15px; }
.seller-card__shop { display: block; color: var(--muted); font-size: 13px; }
.seller-card__meta { list-style: none; margin: 0 0 12px; padding: 0; }
.seller-card__meta li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.seller-card__meta li:last-child { border-bottom: 0; }
.seller-card__meta span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.seller-card__meta a { color: var(--teal-dark); font-weight: 700; }
.seller-card__notes { font-size: 13px; color: var(--muted); background: #F8FAFC; padding: 10px 12px; border-radius: 8px; margin: 0 0 12px; }
.seller-card__actions { margin-top: auto; text-align: right; }

/* ---- support ------------------------------------------------- */
.dash-form__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.dash-form__head--split .dash-form__title { margin-bottom: 0; }
.empty-state--compact { text-align: center; padding: 18px 0; }

/* ---- responsive ---------------------------------------------- */
@media (max-width: 900px) {
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; }
}
@media (max-width: 560px) {
    .dash-nav__cta { display: none; }
    .result-list__item { flex-direction: column; align-items: flex-start; }
    .result-list__side { flex-direction: row; align-items: center; }
    .seller-grid { grid-template-columns: 1fr; }
    .dash-chat__composer { flex-direction: column; align-items: stretch; }
    .dash-chat__composer .btn { align-self: flex-end; }
}

/* ---- booking wizard (Phase 6/7) ---------------------------------------- */
.wizard { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; }
.wizard-main { min-width: 0; }

.wizard-rail {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 18px 20px; box-shadow: 0 4px 18px rgba(6,43,80,.05);
}
.wizard-rail__meta {
    color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; margin: 0 0 14px;
}

/* Step flow as a straight row on desktop. */
.wizard-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.wizard-step {
    position: relative; flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 4px 20px 0 0;
}
.wizard-step:not(:last-child)::after {
    content: ""; position: absolute; right: -14px; left: 14px; top: 17px;
    height: 2px; background: #E2E8F0;
}
.wizard-step.is-done:not(:last-child)::after { background: var(--teal); }
.wizard-step__num {
    position: relative; z-index: 1; flex-shrink: 0;
    width: 28px; height: 28px; border-radius: 999px;
    background: #E2E8F0; color: var(--muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
}
.wizard-step.is-active .wizard-step__num { background: var(--teal); color: #fff; box-shadow: 0 0 0 4px rgba(0,168,143,.18); }
.wizard-step.is-done .wizard-step__num { background: var(--teal); color: #fff; }
.wizard-step__label { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.wizard-step.is-active .wizard-step__label { color: var(--navy); font-weight: 800; }
.wizard-step.is-done .wizard-step__label { color: var(--navy); }

.wizard-note {
    margin-top: 18px; background: rgba(0,168,143,.08); border: 1px solid rgba(0,168,143,.25);
    border-radius: var(--radius-card); padding: 16px;
}
.wizard-note strong { display: block; color: var(--navy); font-size: 13px; margin-bottom: 6px; }
.wizard-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

@media (max-width: 900px) {
    .wizard { grid-template-columns: 1fr; gap: 22px; }
    .wizard-rail { padding: 16px; }

    /* Vertical stepper stays vertical + boxed on mobile (matches desktop). */
    .wizard-steps { display: block; padding: 0; overflow: visible; }
    .wizard-step { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; padding: 0 0 24px; }
    .wizard-step:last-child { padding-bottom: 0; }
    .wizard-step:not(:last-child)::before {
        content: ""; position: absolute; left: 13px; top: 30px; bottom: -6px;
        width: 2px; background: #E2E8F0;
    }
    .wizard-step.is-done:not(:last-child)::before { background: var(--teal); }
    .wizard-step:not(:last-child)::after { display: none; }
    .wizard-step__num { width: 28px; height: 28px; font-size: 13px; }
    .wizard-step__label { padding-top: 5px; white-space: normal; overflow-wrap: anywhere; }

    /* Keep every info box fully visible inside the container on mobile. */
    .wizard-rail,
    .wizard-note,
    .card,
    .card .card__body,
    .form-card,
    [class*="form-"] { max-width: 100%; overflow-wrap: anywhere; }
    .wizard-note, .wizard-rail { margin-left: 0; margin-right: 0; width: auto; }
}

/* ---- shared dashboard list/timing components (customer + agent) --------- */
.booking-list { list-style: none; margin: 0; padding: 0; }
.booking-list__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--border); }
.booking-list__item:last-child { border-bottom: 0; }
.booking-list__main { min-width: 0; }
.booking-list__ref { display: block; font-weight: 800; font-size: 15px; color: var(--navy); }
.booking-list__ref:hover { color: var(--teal); }
.booking-list__item-name { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.booking-list__date { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.booking-list__meta { display: inline-block; margin-top: 6px; }
.booking-list__side { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.booking-list__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.dash-tabs { display: flex; gap: 6px; margin: 0 0 20px; padding: 6px; background: #EEF3F7; border-radius: 12px; overflow-x: auto; }
.dash-tabs__link { padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.dash-tabs__link:hover { color: var(--navy); }
.dash-tabs__link.is-active { background: var(--white); color: var(--teal); box-shadow: var(--shadow-sm); }

.dash-link-row { display: flex; flex-wrap: wrap; gap: 10px; }

.dash-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dash-stat-row__cell { background: #F7FAFC; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.dash-stat-row__cell strong { display: block; color: var(--navy); font-size: 15px; margin-top: 2px; }
.dash-stat-row__label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.pay-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #F7FAFC; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.pay-banner__amount { display: block; color: var(--navy); font-size: 22px; margin-top: 2px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline__dot { position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 999px; background: var(--teal); border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--teal); }
.timeline__body strong { color: var(--navy); font-size: 14px; }
.timeline__body p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.timeline__time { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

.field { display: block; margin-top: 16px; }
.field__label { display: block; font-weight: 700; font-size: 13.5px; color: var(--navy); margin-bottom: 7px; }
.field__input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 14.5px; color: var(--text); background: var(--white); }
.field__input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 168, 143, .14); }
.field__hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.field--check { display: flex; align-items: center; gap: 10px; }
.field--check input { width: 18px; height: 18px; accent-color: var(--teal); }
.field--check span { font-size: 14px; }

.dash-mini { text-align: center; }
.dash-mini__avatar { width: 56px; height: 56px; border-radius: 999px; margin: 0 auto 10px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.dash-mini__name { margin: 0; font-size: 16px; }
.dash-mini__email { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.agent-nav__badge { margin-left: 4px; }

/* ---- agent inspection sheet ------------------------------------- */
.inspection-sheet { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.inspection-sheet__row { padding: 16px; border-bottom: 1px solid var(--border); background: var(--white); }
.inspection-sheet__row:last-child { border-bottom: 0; }
.inspection-sheet__label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.inspection-sheet__label strong { font-size: 14px; color: var(--navy); }
.inspection-sheet__controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.result-chip { position: relative; }
.result-chip input { position: absolute; opacity: 0; pointer-events: none; }
.result-chip span { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.result-chip input:checked + span { border-color: var(--teal); background: rgba(0, 168, 143, .10); color: var(--teal-dark); }
.result-chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.inspection-sheet__row .field__input { margin-top: 0; }

/* ---- buyer decision actions ------------------------------------ */
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #B91C1C; color: #fff; }

/* ---- testimonials (Phase 10) ------------------------------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.testimonial-card__quote { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--text); }
.testimonial-card__meta { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.testimonial-card__meta strong { color: var(--navy); }
.testimonial-card__role { color: var(--muted); }
.testimonial-card__stars { color: var(--accent, #f5a623); letter-spacing: 1px; }

/* ---- dashboard polish (UI concept only; no flow changes) ---------------- */
:root { --teal-bright: #00B58A; }

/* Stat cards: brand accent bar + soft lift on hover. */
.stat-grid .stat-card {
    position: relative; overflow: hidden; padding: 24px 16px 22px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-grid .stat-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--teal-bright), var(--teal));
}
.stat-grid .stat-card:hover {
    transform: translateY(-3px); border-color: rgba(0,168,143,.35);
    box-shadow: 0 14px 30px rgba(6,43,80,.10);
}
.stat-grid .stat-card__value {
    position: relative; z-index: 1;
    background: linear-gradient(180deg, #003c5e, var(--navy));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Card panel: clearer header separation. */
.dash-card .dash-form__head {
    padding-bottom: 16px; margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.dash-card .dash-form__head--split { align-items: center; }
.dash-card .dash-form__title {
    display: flex; align-items: center; gap: 10px;
}
.dash-card .dash-form__title::before {
    content: ""; flex: 0 0 auto; width: 5px; height: 22px; border-radius: 999px;
    background: linear-gradient(180deg, var(--teal-bright), var(--teal));
}

/* Referral hero: richer brand gradient + decorative glow (visual only). */
.referral-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #041E36 0%, #062B50 46%, #065254 100%);
}
.referral-hero::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    width: 340px; height: 340px; border-radius: 50%;
    top: -140px; right: -120px;
    background: radial-gradient(circle, rgba(0,181,138,.35), transparent 68%);
}
.referral-hero::before {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    width: 300px; height: 300px; border-radius: 50%;
    bottom: -170px; left: -110px;
    background: radial-gradient(circle, rgba(0,181,138,.22), transparent 65%);
}
.referral-hero > * { position: relative; z-index: 1; }
.referral-hero__title { color: #fff; }
.referral-hero__badge { background: rgba(0,181,138,.22); border-color: rgba(0,181,138,.65); }
.referral-hero__lead strong { color: #4fe0c4; }

/* Availability toggle: crisper active state. */
.toggle-chip.is-active {
    background: var(--teal-bright); border-color: var(--teal-bright);
    box-shadow: 0 6px 14px rgba(0,181,138,.35);
}

/* Dashboard cards on small screens: keep content fully boxed. */
@media (max-width: 860px) {
    .dash-card { padding: 20px 16px; }
    .stat-grid .stat-card { padding: 18px 12px 16px; }
    .stat-grid .stat-card__value { font-size: clamp(20px, 6vw, 26px); }
}

/* ---- booking wizard: state + market selection ---------------------- */

/* Booking summary boxes: two per row on mobile, green gradient cap. */
.dash-stat-row--duo .dash-stat-row__cell {
    position: relative; overflow: hidden;
    padding: 16px 14px 14px; background: var(--white);
}
.dash-stat-row--duo .dash-stat-row__cell::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
    background: linear-gradient(90deg, var(--teal-bright), var(--teal));
}
.dash-stat-row--duo .dash-stat-row__cell strong { font-size: clamp(16px, 4.4vw, 19px); }

/* ---- branded summary card: teal tint + gradient cap (homepage FAQ accent) ---- */
.dash-card--brand {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, rgba(0,168,143,.12), #fff 46%);
    border-color: rgba(0,168,143,.30);
}
.dash-card--brand::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
    background: linear-gradient(90deg, var(--teal-bright), var(--teal), var(--teal-dark));
}
.dash-card--brand .dash-form__title { color: var(--teal-dark); }
.dash-card--brand .dash-form__title::before {
    content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-bright), var(--teal));
    box-shadow: 0 0 0 4px rgba(0,168,143,.14); margin-right: 10px;
}
.dash-card--brand .dash-form__hint { color: var(--muted); }
.dash-card--brand .dash-stat-row__cell {
    background: #fff; border-color: rgba(0,168,143,.22);
    box-shadow: 0 4px 14px rgba(6,43,80,.06);
}
.dash-card--brand .dash-stat-row__cell strong { color: var(--navy); }
.dash-card--brand .dash-stat-row__label { color: var(--teal-dark); }
.dash-card--brand .summary-list { border-top-color: rgba(0,168,143,.22); }
.dash-card--brand .summary-list li { border-bottom-color: rgba(0,168,143,.16); }
.dash-card--brand .summary-list span { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-dark); }

/* Branded list items: soft teal ring cards (matches booking/referral lists) */
.booking-list--brand { display: grid; gap: 10px; margin-top: 4px; }
.booking-list--brand .booking-list__item {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 15px 16px; background: #fff; border: 1px solid rgba(0,168,143,.20);
    border-radius: 12px; box-shadow: 0 2px 10px rgba(6,43,80,.05);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.booking-list--brand .booking-list__item:last-child { border-bottom: 1px solid rgba(0,168,143,.20); }
.booking-list--brand .booking-list__item:hover {
    border-color: rgba(0,168,143,.50); box-shadow: 0 8px 20px rgba(6,43,80,.08);
    transform: translateY(-1px);
}
.booking-list--brand .booking-list__ref { display: flex; align-items: center; gap: 9px; }
.booking-list--brand .booking-list__ref::before {
    content: ""; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-bright), var(--teal));
    box-shadow: 0 0 0 4px rgba(0,168,143,.12);
}
.booking-list--brand .booking-list__item-name { color: var(--navy); font-weight: 600; }
.booking-list--brand .booking-list__date { margin-top: 5px; }

/* Quick actions tiles (customer dashboard) — FAQ navy + teal palette. */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 4px; }
.quick-card {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
    background: linear-gradient(180deg, rgba(0,168,143,.14), rgba(0,168,143,.03) 62%);
    border: 1px solid rgba(0,168,143,.25); border-radius: 14px;
    padding: 20px 18px 18px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.quick-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--teal-bright), var(--teal), var(--teal-dark));
}
.quick-card:hover {
    border-color: rgba(0,168,143,.45); box-shadow: 0 12px 26px rgba(0,168,143,.14);
    transform: translateY(-2px);
}
.quick-card__icon {
    width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(0,168,143,.18); color: var(--teal-dark); font-size: 21px; line-height: 1; margin-bottom: 14px;
}
.quick-card strong { display: block; color: var(--navy); font-size: 15.5px; font-weight: 800; }
.quick-card__desc { margin: 6px 0 16px; color: var(--teal-dark); font-size: 13px; line-height: 1.6; }
.quick-card .btn { margin-top: auto; }

/* Even breathing room between stacked dashboard cards. */
.dash-main > .dash-card + .dash-card { margin-top: 26px; }

@media (max-width: 900px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 369px) {
    .quick-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* State picker cards. */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pick-card {
    position: relative; display: block; cursor: pointer;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 15px 42px 15px 16px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pick-card input { position: absolute; opacity: 0; pointer-events: none; }
.pick-card__body strong { display: block; color: var(--navy); font-size: 15px; }
.pick-card__tick {
    position: absolute; top: 50%; right: 16px; transform: translateY(-50%) scale(.6);
    width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
    opacity: 0; transition: opacity .18s ease, transform .18s ease;
}
.pick-card:hover { border-color: rgba(0,168,143,.45); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pick-card:has(input:checked) {
    border-color: var(--teal); background: linear-gradient(180deg, rgba(0,181,138,.10), rgba(0,181,138,.02));
    box-shadow: 0 8px 22px rgba(6,43,80,.08);
}
.pick-card:has(input:checked) .pick-card__tick { opacity: 1; transform: translateY(-50%) scale(1); }
.pick-card:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Market cards (state -> market step). */
.market-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.market-pick {
    position: relative; display: flex; flex-direction: column; gap: 10px; cursor: pointer;
    background: var(--white); border: 1.5px solid var(--border); border-radius: 16px;
    padding: 18px 18px 16px; overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.market-pick::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--teal-bright), var(--teal));
    opacity: .5; transition: opacity .18s ease;
}
.market-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mk__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mk__name { color: var(--navy); font-weight: 800; font-size: 15.5px; line-height: 1.35; }
.mk__fee { flex: 0 0 auto; text-align: right; }
.mk__fee span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mk__fee strong { display: block; color: var(--teal-dark); font-size: 16px; margin-top: 2px; white-space: nowrap; }
.mk__where { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.mk__pin { color: var(--teal); font-size: 9px; }
.mk__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mk__tag {
    display: inline-block; padding: 5px 10px; border-radius: 999px;
    background: rgba(0,168,143,.10); color: var(--teal-dark);
    font-size: 11.5px; font-weight: 700; line-height: 1.3;
}
.mk__tag--more { background: #EEF3F7; color: var(--muted); }
.mk__pick {
    margin-top: 4px; text-align: center; padding: 10px 12px; border-radius: 10px;
    background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 800;
}
.market-pick:hover { transform: translateY(-3px); border-color: rgba(0,168,143,.45); box-shadow: 0 14px 28px rgba(6,43,80,.09); }
.market-pick:hover .mk__pick { background: #0A2E52; }
.market-pick.is-picked {
    border-color: var(--teal); box-shadow: 0 16px 32px rgba(0,168,143,.20);
}
.market-pick.is-picked::before { opacity: 1; height: 5px; }
.market-pick.is-picked .mk__pick { background: var(--teal); }
.market-pick:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }

.market-tip {
    margin: 18px 0 0; padding: 13px 16px; border-radius: 12px;
    background: rgba(0,168,143,.08); border: 1px solid rgba(0,168,143,.25);
    color: var(--navy); font-size: 13.5px; line-height: 1.6;
}

/* Booking summary panel at the bottom of the market step. */
.book-summary {
    margin-top: 24px; border: 1px solid rgba(0,168,143,.30); border-radius: 16px;
    background: linear-gradient(180deg, #F4FBF9 0%, #FFFFFF 62%); padding: 20px;
}
.book-summary__head { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.book-summary__title { margin: 0; color: var(--navy); font-size: 17px; }
.book-summary__hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.book-summary__market { padding: 16px 0 4px; }
.book-summary__market strong { display: block; color: var(--navy); font-size: 16px; margin-top: 3px; }
.book-summary__where { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.book-summary__lines { list-style: none; margin: 12px 0 0; padding: 0; }
.book-summary__lines li {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 0; border-bottom: 1px dashed var(--border);
    font-size: 13.5px; color: var(--muted);
}
.book-summary__lines li strong { color: var(--navy); font-size: 14.5px; }
.book-summary__total {
    border-bottom: 0 !important; padding-top: 16px !important;
}
.book-summary__total span { color: var(--navy); font-weight: 800; }
.book-summary__total strong { color: var(--teal-dark) !important; font-size: 19px !important; }
.book-summary__covered {
    list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
    margin: 14px 0 0; padding: 0;
}
.book-summary__covered li {
    font-size: 12px; font-weight: 700; color: var(--teal-dark);
    background: rgba(0,168,143,.10); border: 1px solid rgba(0,168,143,.25);
    border-radius: 999px; padding: 5px 11px;
}
.book-summary__note {
    margin: 14px 0 0; padding: 13px 15px; border-radius: 12px;
    background: #FFFBEB; border: 1px solid #FDE68A; border-left: 4px solid var(--warning);
    color: #92400E; font-size: 13px; line-height: 1.6;
}

/* Chosen-market banner on the seller step. */
.market-picked {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
    background: var(--white); border: 1.5px solid rgba(0,168,143,.35);
    border-radius: 14px; padding: 16px 18px; margin-bottom: 18px;
}
.market-picked strong { color: var(--navy); font-size: 15px; }
.market-picked__where { color: var(--muted); font-size: 13px; }
.market-picked .btn--link { margin-left: auto; }

/* "Others — specify below" field on the product step. */
.other-field {
    margin-top: 16px; padding: 16px; border-radius: 14px;
    background: #FFFBEB; border: 1px solid #FDE68A;
}
.other-field[hidden] { display: none; }

/* Admin market form: category multi-select. */
.cat-picker {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px;
    max-height: 260px; overflow-y: auto; padding: 12px;
    border: 1.5px solid var(--border); border-radius: 12px; background: var(--white);
}
.cat-picker__item {
    display: flex; align-items: center; gap: 9px; cursor: pointer;
    padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px;
    background: #F7FAFC; font-size: 13.5px; color: var(--navy);
}
.cat-picker__item:hover { border-color: rgba(0,168,143,.45); }
.cat-picker__item:has(input:checked) {
    border-color: var(--teal); background: rgba(0,181,138,.10); font-weight: 700;
}
.cat-picker__item input { width: 17px; height: 17px; accent-color: var(--teal); }

/* ---- responsive: booking wizard + summary boxes -------------------- */
@media (max-width: 900px) {
    .market-picks, .pick-grid { grid-template-columns: 1fr; }
    .market-pick { padding: 16px 16px 14px; }
}

@media (max-width: 640px) {
    /* Two boxes per row for the booking summary. */
    .dash-stat-row--duo { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .dash-stat-row--duo .dash-stat-row__cell { padding: 14px 12px 12px; border-radius: 12px; }
    .dash-stat-row--duo .dash-stat-row__label { font-size: 10.5px; letter-spacing: .04em; }
    .dash-stat-row--duo .dash-stat-row__cell strong { font-size: 17px; overflow-wrap: anywhere; }

    .book-summary { padding: 16px 15px; }
    .book-summary__lines li { font-size: 13px; }
    .market-picked { align-items: flex-start; }
    .market-picked .btn--link { margin-left: 0; }
}

/* Booking summary panel (wizard sidebar). */
.booking-summary {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}
.booking-summary--wizard {
    margin-top: 26px;
}
.booking-summary__head {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}
.booking-summary__title {
    margin: 0;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
}
.booking-summary__hint {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.booking-summary__lines {
    list-style: none;
    margin: 0;
    padding: 0;
}
.booking-summary__lines li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
    color: var(--muted);
}
.booking-summary__lines li:last-child {
    border-bottom: none;
}
.booking-summary__label {
    color: var(--muted);
    font-size: 12.5px;
}
.booking-summary__lines li strong {
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 700;
}
.booking-summary__total {
    border-bottom: none !important;
    padding-top: 14px !important;
}
.booking-summary__total span {
    color: var(--navy);
    font-weight: 800;
    font-size: 13px;
}
.booking-summary__total strong {
    color: var(--teal-dark) !important;
    font-size: 16px !important;
}
.booking-summary__grand {
    padding-top: 8px !important;
}
.booking-summary__grand strong {
    font-size: 18px !important;
}
.booking-summary__value {
    font-weight: 700;
    color: var(--navy);
}
.booking-summary__value--pending {
    color: var(--muted);
    font-style: italic;
}
.booking-summary__pending {
    background: #F7FAFC;
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 12.5px;
    color: var(--muted);
}
.booking-summary__note {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #F4FBF9;
    border: 1px solid rgba(0,168,143,.30);
    color: var(--navy);
    font-size: 12px;
    line-height: 1.5;
}

