/* ================================================================
   DARE TO DREAM — Warm Sunset Theme
   The Untold Story of Tan Sri Datuk Danny Ooi
   Design system: cream paper + sunset accents, inspired by the
   book cover palette (sky blue, sunset orange, gold, warm red).
   ================================================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Warm light base — book-cover inspired */
    --bg:            #fff8ec;     /* cream paper */
    --bg-soft:       #fffaf0;     /* lighter paper */
    --bg-panel:      #ffffff;     /* card white */
    --bg-tint:       #fff1db;     /* warm tint */
    --bg-navy:       #1a3a6e;     /* deep sky blue (book border) */

    /* Accents from the cover */
    --sunset:        #ff6b35;     /* hero sunset orange */
    --sunset-dark:   #e55a2b;
    --gold:          #ffc857;     /* D-letter gold */
    --warm-red:      #e63946;     /* title red */
    --sky:           #4a90d9;     /* sky blue */
    --sky-dark:      #1a3a6e;
    --leaf:          #3fa66a;     /* green panels */

    /* Semantic */
    --text:          #1c1e27;
    --text-soft:     #4a4f62;
    --text-muted:    #8b8f9e;
    --border:        rgba(26, 58, 110, 0.10);
    --border-strong: rgba(26, 58, 110, 0.22);

    /* Gradients */
    --gradient-sunset: linear-gradient(135deg, #ffb800 0%, #ff8a3d 45%, #ff4e2e 100%);
    --gradient-title:  linear-gradient(180deg, #ffd34d 0%, #ff7a2e 55%, #d91f2e 100%);
    --gradient-sky:    linear-gradient(180deg, #9ec9f0 0%, #ffd6a5 55%, #ff8a3d 100%);
    --gradient-soft:   linear-gradient(135deg, rgba(255, 184, 0, 0.14), rgba(255, 107, 53, 0.10));

    /* Glow / shadows */
    --shadow-sm:  0 2px 8px rgba(26, 58, 110, 0.06);
    --shadow:     0 8px 28px rgba(26, 58, 110, 0.10);
    --shadow-lg:  0 20px 50px rgba(26, 58, 110, 0.16);
    --shadow-warm: 0 10px 40px rgba(255, 107, 53, 0.22);

    --radius:     18px;
    --radius-sm:  12px;
    --radius-xs:  8px;

    --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Soft warm sunset sky painted across the page */
.bg-gradient-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255, 200, 87, 0.45), transparent 60%),
        radial-gradient(ellipse 70% 40% at 10% 90%, rgba(74, 144, 217, 0.10), transparent 70%),
        radial-gradient(ellipse 60% 40% at 95% 85%, rgba(255, 107, 53, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, .display-serif {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bg-navy);
}

/* ---------- Utilities ---------- */
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-muted-light { color: var(--text-soft) !important; }
.text-accent { color: var(--sunset) !important; }
.text-navy { color: var(--bg-navy) !important; }

.text-gradient {
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.link-accent {
    color: var(--sunset-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}
.link-accent:hover { color: var(--warm-red); }

.code-glass {
    background: var(--bg-tint);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.85em;
    color: var(--sunset-dark);
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(255, 248, 236, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    z-index: 1000;
}

.navbar-dark .navbar-toggler { color: var(--bg-navy); }
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a3a6e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-sunset);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.brand-icon-sm { width: 30px; height: 30px; font-size: 0.9rem; border-radius: 9px; }

.brand-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--bg-navy);
}

.brand-sub {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 4px;
    font-style: italic;
}

.navbar .nav-link {
    color: var(--text-soft) !important;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: all .2s;
}
.navbar .nav-link:hover {
    color: var(--bg-navy) !important;
    background: var(--bg-tint);
}

/* ---------- Buttons ---------- */
.btn-accent {
    background: var(--gradient-sunset);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
    transition: all .3s;
    box-shadow: var(--shadow-warm);
    letter-spacing: 0.01em;
}
.btn-accent:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(255, 107, 53, 0.38);
    filter: brightness(1.05);
}
.btn-accent:active { transform: translateY(0); }

.btn-glass {
    background: #fff;
    color: var(--bg-navy);
    border: 1.5px solid var(--border-strong);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all .25s;
}
.btn-glass:hover {
    background: var(--bg-tint);
    border-color: var(--sunset);
    color: var(--sunset-dark);
}

.btn-outline-navy {
    background: transparent;
    color: var(--bg-navy);
    border: 1.5px solid var(--bg-navy);
    border-radius: 12px;
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    transition: all .25s;
}
.btn-outline-navy:hover {
    background: var(--bg-navy);
    color: #fff;
}

/* ---------- Glass Card (= Paper Card in the warm theme) ---------- */
.glass-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

/* ---------- Main ---------- */
.main-content {
    flex: 1;
    padding-top: 96px;
    padding-bottom: 3rem;
}

/* ---------- Alerts ---------- */
.alert-glass {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}
.alert-success-glass { border-left: 4px solid var(--leaf); }
.alert-danger-glass  { border-left: 4px solid var(--warm-red); }
.alert-warning-glass { border-left: 4px solid var(--gold); }
.alert-glass .btn-close { filter: none; opacity: .5; }

/* ---------- Hero ---------- */
.hero-section {
    padding: 3rem 0 1.5rem;
    position: relative;
}

.hero-glow {
    position: absolute;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.35), transparent 65%);
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    filter: blur(40px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sunset-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1.25rem;
    color: var(--bg-navy);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 620px;
    line-height: 1.65;
}

.hero-trilingual {
    display: inline-flex;
    gap: 1.25rem;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    color: var(--sunset-dark);
    margin-top: 0.5rem;
}
.hero-trilingual span { white-space: nowrap; }

.hero-price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}
.hero-price-tag .price-currency {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bg-navy);
}
.hero-price-tag .price-amount {
    font-family: var(--font-display);
    font-size: 4.2rem;
    font-weight: 800;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.hero-price-tag .price-decimal {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-soft);
}

.hero-trust {
    font-size: 0.82rem;
    color: var(--text-soft);
}

/* ---------- Book hero layout ---------- */
.book-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 1rem 0 2rem;
}
.book-cover-wrap {
    position: relative;
    text-align: center;
}
.book-cover {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow:
        0 30px 60px -20px rgba(26, 58, 110, 0.35),
        0 18px 36px -18px rgba(255, 107, 53, 0.35);
    border: 4px solid #fff;
    transform: rotate(-1.5deg);
    transition: transform .4s ease;
}
.book-cover:hover { transform: rotate(0) scale(1.02); }

.book-badges {
    position: absolute;
    top: -14px;
    left: -14px;
    z-index: 3;            /* keep chips above the rotated cover image */
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.book-cover { position: relative; z-index: 1; }
.book-badge {
    background: var(--warm-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    box-shadow: var(--shadow);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transform: rotate(-4deg);
}
.book-badge.gold { background: var(--gold); color: var(--bg-navy); }
.book-badge.navy { background: var(--bg-navy); color: #fff; transform: rotate(3deg); }

@media (max-width: 900px) {
    .book-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .hero-trilingual { justify-content: center; flex-wrap: wrap; }
}

/* ---------- Feature Cards ---------- */
.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-sunset);
    opacity: 0;
    transition: opacity .3s;
}
.feature-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.feature-icon-blue  { background: rgba(74, 144, 217, 0.12);  color: var(--sky-dark); }
.feature-icon-green { background: rgba(63, 166, 106, 0.13);  color: var(--leaf); }
.feature-icon-amber { background: rgba(255, 200, 87, 0.20);  color: #c27a00; }

.feature-title { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.4rem; color: var(--bg-navy); }
.feature-desc  { color: var(--text-soft); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1rem; }
.feature-tag {
    display: inline-block;
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.25rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sunset-dark);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ---------- Language Cards ---------- */
.lang-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    height: 100%;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.lang-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    border-radius: var(--radius) var(--radius) 0 0;
}
.lang-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.lang-blue::before  { background: linear-gradient(90deg, #4a90d9, #1a3a6e); }
.lang-green::before { background: linear-gradient(90deg, #3fa66a, #1f8a4b); }
.lang-red::before   { background: linear-gradient(90deg, #ff6b35, #e63946); }
.lang-gold::before  { background: linear-gradient(90deg, #ffc857, #ff8a3d); }

.lang-flag { font-size: 2.4rem; margin-bottom: 0.5rem; line-height: 1; }
.lang-name {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.lang-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    min-height: 2.5em;
    color: var(--bg-navy);
}
.lang-desc { font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; margin-bottom: 1rem; flex: 1; }
.lang-price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Section Titles ---------- */
.section-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--bg-navy);
}
.section-subtitle {
    color: var(--text-soft);
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto;
}

/* ---------- Step Cards ---------- */
.step-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    transition: all .3s;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.step-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }

.step-number {
    position: absolute;
    top: -12px;
    right: -8px;
    width: 32px; height: 32px;
    background: var(--gradient-sunset);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
    border: 3px solid var(--bg);
}
.step-icon {
    font-size: 2rem;
    color: var(--sunset-dark);
    margin-bottom: 0.6rem;
}
.step-card h6 { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.2rem; color: var(--bg-navy); }

/* ---------- Commission / Earnings cards ---------- */
.commission-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.commission-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.comm-row { display: flex; align-items: center; gap: 0.75rem; }
.comm-label {
    width: 130px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-soft);
    flex-shrink: 0;
}
.comm-bar-wrap {
    flex: 1;
    background: var(--bg-tint);
    border-radius: 50px;
    height: 32px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.comm-bar {
    height: 100%;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    min-width: 70px;
}
.comm-bar-c21      { background: linear-gradient(90deg, #1a3a6e, #4a90d9); }
.comm-bar-l1       { background: linear-gradient(90deg, #ff6b35, #ff8a3d); }
.comm-bar-l2       { background: linear-gradient(90deg, #ffc857, #ff8a3d); color: #5a2e00; }
.comm-bar-platform { background: linear-gradient(90deg, #1a3a6e, #4a90d9); }

.comm-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: 70px;
    text-align: right;
    flex-shrink: 0;
}

/* ---------- Auth Card ---------- */
.auth-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.auth-icon {
    width: 64px; height: 64px;
    background: var(--gradient-sunset);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: var(--shadow-warm);
}

/* ---------- Forms ---------- */
.input-icon-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    z-index: 2;
    pointer-events: none;
}
.form-control-glass {
    background: var(--bg-soft) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 12px !important;
    color: var(--text) !important;
    padding: 0.75rem 0.75rem 0.75rem 2.75rem !important;
    font-size: 0.95rem;
    transition: all .2s;
}
.form-control-glass::placeholder { color: var(--text-muted) !important; }
.form-control-glass:focus {
    border-color: var(--sunset) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18) !important;
    background: #fff !important;
}
.form-check-input {
    background-color: #fff;
    border-color: var(--border-strong);
}
.form-check-input:checked {
    background-color: var(--sunset);
    border-color: var(--sunset);
}

/* ---------- Checkout ---------- */
.checkout-header {
    background: var(--gradient-soft);
    border-bottom: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--sunset-dark);
}
.product-summary {
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}
.price-tag-sm { display: flex; align-items: baseline; gap: 1px; flex-shrink: 0; }
.price-tag-sm .price-currency { font-size: 0.95rem; font-weight: 700; color: var(--bg-navy); }
.price-tag-sm .price-amount   { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--sunset-dark); line-height: 1; }
.price-tag-sm .price-decimal  { font-size: 0.95rem; font-weight: 700; color: var(--text-soft); }

.badge-glass-sm {
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.25rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-soft);
}
.payment-chip {
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bg-navy);
}

/* ---------- Payment Result ---------- */
.result-icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}
.result-icon-success {
    background: rgba(63, 166, 106, 0.14);
    color: var(--leaf);
    box-shadow: 0 0 40px rgba(63, 166, 106, 0.22);
}
.result-icon-error {
    background: rgba(230, 57, 70, 0.12);
    color: var(--warm-red);
    box-shadow: 0 0 40px rgba(230, 57, 70, 0.18);
}

/* ---------- Reseller Dashboard ---------- */
.dash-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}
.stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all .3s;
    box-shadow: var(--shadow-sm);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-value {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
    color: var(--bg-navy);
}
.stat-label { font-size: 0.82rem; color: var(--text-soft); font-weight: 500; }
.stat-icon { position: absolute; top: 12px; right: 14px; font-size: 1.35rem; opacity: 0.25; }

.stat-card-accent { border-left: 4px solid var(--sunset); }
.stat-card-accent .stat-value { color: var(--sunset-dark); }
.stat-card-green  { border-left: 4px solid var(--leaf); }
.stat-card-green  .stat-value { color: var(--leaf); }
.stat-card-amber  { border-left: 4px solid var(--gold); }
.stat-card-amber  .stat-value { color: #c27a00; }
.stat-card-blue   { border-left: 4px solid var(--sky); }
.stat-card-blue   .stat-value { color: var(--sky-dark); }

.earnings-badge {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.earnings-badge-green { background: rgba(63, 166, 106, 0.15);  color: var(--leaf); }
.earnings-badge-amber { background: rgba(255, 200, 87, 0.22);  color: #c27a00; }

/* QR Display */
.qr-display {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem;
    display: inline-block;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.qr-image { max-width: 200px; width: 100%; height: auto; display: block; }

/* How it works list */
.how-it-works-list { display: flex; flex-direction: column; gap: 1rem; }
.hiw-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.94rem;
    color: var(--text);
}
.hiw-num {
    width: 34px; height: 34px;
    background: var(--bg-tint);
    border: 1.5px solid var(--sunset);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--sunset-dark);
    flex-shrink: 0;
}

/* Become Reseller */
.reseller-hero-icon {
    width: 84px; height: 84px;
    background: var(--gradient-sunset);
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: #fff;
    box-shadow: var(--shadow-warm);
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-navy);
}

/* ---------- Tables ---------- */
.table-header {
    background: var(--bg-tint);
    border-bottom: 1px solid var(--border);
}
.table-dark-glass {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    color: var(--text);
}
.table-dark-glass thead th {
    background: var(--bg-tint);
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1rem;
}
.table-dark-glass tbody td {
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.table-dark-glass tbody tr:hover { background: var(--bg-tint); }

.badge-green {
    background: rgba(63, 166, 106, 0.15) !important;
    color: var(--leaf) !important;
    font-weight: 700;
    font-size: 0.74rem;
    border-radius: 50px;
    padding: 0.3em 0.8em;
}
.badge-amber {
    background: rgba(255, 200, 87, 0.22) !important;
    color: #c27a00 !important;
    font-weight: 700;
    font-size: 0.74rem;
    border-radius: 50px;
    padding: 0.3em 0.8em;
}

/* ---------- Reader ---------- */
.reader-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}
.reader-container {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.reader-iframe { border: none; width: 100%; height: 80vh; display: block; }

/* ---------- Preview strip ---------- */
.preview-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}
.preview-strip img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .3s;
}
.preview-strip img:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow); }

@media (max-width: 768px) {
    .preview-strip { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Pull Quote ---------- */
.pull-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.45;
    color: var(--bg-navy);
    position: relative;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--sunset);
    background: var(--bg-tint);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sunset-dark);
    letter-spacing: 0.03em;
}

/* ---------- Trust row ---------- */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-tint);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.trust-row .trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-navy);
}
.trust-row .trust-item i { color: var(--sunset); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1.75rem 0;
    margin-top: auto;
    position: relative;
    z-index: 1;
    color: var(--text-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; letter-spacing: -1px; }
    .hero-price-tag .price-amount { font-size: 3.2rem; }
    .commission-card { padding: 1.5rem; }
    .comm-label { width: 90px; font-size: 0.7rem; }
    .comm-badge { width: 50px; font-size: 0.62rem; }
    .comm-bar   { font-size: 0.65rem; min-width: 55px; }
    .stat-value { font-size: 1.35rem; }
    .glass-card { padding: 1.5rem; }
    .auth-card  { padding: 1.5rem; }
    .pull-quote { font-size: 1.15rem; padding: 1.15rem 1.25rem; }
    .section-title { font-size: 1.7rem; }
}

@media (max-width: 576px) {
    .main-content { padding-top: 82px; }
    .hero-section { padding: 1.75rem 0 0.5rem; }
    .hero-trust { font-size: 0.7rem; }
    .hero-trust .mx-3 { margin-left: 0.4rem !important; margin-right: 0.4rem !important; }
}

/* ---------- Overrides ---------- */
.form-check-label { color: var(--text-soft); }
a { color: var(--sunset-dark); }
a:hover { color: var(--warm-red); }

::selection { background: var(--gold); color: var(--bg-navy); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(26, 58, 110, 0.20); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--sunset); }

/* ================================================================
   MOBILE BOTTOM NAV
   Replaces the hamburger on small screens. 5-slot pattern with a
   raised circular "Buy" CTA in the center (iOS-app style).
   Safe-area inset padding keeps it clear of the iPhone home bar.
   ================================================================ */
.bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: stretch;
    background: rgba(255, 248, 236, 0.92);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(26, 58, 110, 0.08);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    z-index: 1050;
}

.bottom-nav .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    position: relative;
    min-height: 54px;
    transition: color .2s, transform .1s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav .tab i {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform .15s;
}

.bottom-nav .tab:active { transform: scale(.95); }
.bottom-nav .tab:hover  { color: var(--text-soft); }

.bottom-nav .tab.active {
    color: var(--sunset-dark);
}
.bottom-nav .tab.active i {
    transform: scale(1.1);
}
.bottom-nav .tab.active::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--gradient-sunset);
}

/* Raised "Buy" center CTA — floats above the bar */
.bottom-nav .tab.cta-tab {
    color: var(--sunset-dark);
}
.bottom-nav .tab.cta-tab i {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-sunset);
    color: #fff !important;
    border-radius: 50%;
    font-size: 1.35rem;
    margin-top: -22px;
    margin-bottom: 2px;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.45);
    border: 3px solid var(--bg);
}
.bottom-nav .tab.cta-tab::before { display: none; }

/* ================================================================
   ACTION SHEET — slide-up modal for the Account tab
   ================================================================ */
.action-sheet {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
}
.action-sheet[hidden] { display: none; }
.action-sheet.open { pointer-events: auto; }

.action-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 58, 110, 0.35);
    opacity: 0;
    transition: opacity .2s ease;
    backdrop-filter: blur(2px);
}
.action-sheet.open .action-sheet-backdrop { opacity: 1; }

.action-sheet-panel {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: var(--bg-panel);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    padding: 12px 20px calc(28px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(26, 58, 110, 0.22);
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    max-width: 560px;
    margin: 0 auto;
}
.action-sheet.open .action-sheet-panel { transform: translateY(0); }

.action-sheet-grab {
    width: 42px;
    height: 4px;
    background: rgba(26, 58, 110, 0.18);
    border-radius: 2px;
    margin: 4px auto 16px;
}

.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-sunset);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}

/* ================================================================
   RESPONSIVE — hide bottom nav on desktop, reshape main padding
   ================================================================ */
@media (min-width: 992px) {
    .bottom-nav { display: none !important; }
    .action-sheet { display: none !important; }
}

@media (max-width: 991.98px) {
    /* Extra bottom padding on mobile so content doesn't hide behind the tab bar */
    .main-content {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
    .site-footer {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
    /* Top navbar is brand-only on mobile — keep it minimal */
    .navbar { padding: 0.6rem 0; }
}

