/* =========================================
   1. RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --onyx-bg: #12110f;
    --onyx-bg-soft: #1a1a1a;
    --onyx-surface: rgba(24, 22, 20, 0.9);
    --onyx-surface-solid: #1b1916;
    --onyx-border: rgba(233, 216, 184, 0.15);
    --onyx-text: #f6f2eb;
    --onyx-muted: #b7aea0;
    --onyx-gold: #c9a87a;
    --onyx-gold-soft: #e8d4be;
    --onyx-shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.42);
    --onyx-radius-lg: 18px;
    --touch-target: 44px;
    color-scheme: dark;
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    background-color: #000000;
    background-image: radial-gradient(circle at top, #262019 0%, #12110f 58%, #0f0e0d 100%);
    overscroll-behavior-y: none;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000;
    background-image: radial-gradient(circle at top, #262019 0%, #12110f 58%, #0f0e0d 100%);
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--onyx-text);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents side-scrolling when menu is hidden */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.06);
}

/* Narrow viewports: iOS Safari auto-zooms focused fields when computed font < 16px */
@media (max-width: 600px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="file"]),
    textarea,
    select {
        font-size: max(16px, 1rem);
    }
}

/* =========================================
   2. STICKY NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(64px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background-color: #11100f;
    background-image: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.98) 0%,
        rgba(17, 16, 15, 0.95) 70%,
        rgba(12, 11, 10, 0.92) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--onyx-border);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    touch-action: manipulation;
}

.nav-container {
    width: 100%;
    padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--onyx-text);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.3s;
    margin-right: auto;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-logo-text {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between Login and Three-prong icon */
    flex-shrink: 0;
    margin-left: auto;
}

.nav-welcome {
    color: #e0e0e0;
    font-size: 13px;
    letter-spacing: 0.2px;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Nav CTA (Login on inner pages, Create Your Account on marketing home) */
.nav-login-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(201, 168, 122, 0.45);
    background: linear-gradient(135deg, #3b3229 0%, #2b251f 100%);
    color: #f4ead7;
    padding: 8px 14px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    line-height: 1.2;
    transition: background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 0;
    box-sizing: border-box;
    touch-action: manipulation;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.nav-login-btn:hover {
    background: linear-gradient(135deg, #3f352b 0%, #2f2822 100%);
    border-color: rgba(201, 168, 122, 0.75);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.42);
}

.nav-login-btn:active {
    transform: scale(0.98);
}

.settings-menu {
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    width: var(--touch-target);
    height: var(--touch-target);
    position: relative;
    transition: color 0.3s;
    z-index: 2001;
    touch-action: manipulation;
    border-radius: 0;
}

.settings-menu:hover {
    color: rgba(255, 255, 255, 0.7);
}

.settings-menu i {
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

.settings-menu.active i.fa-bars {
    opacity: 0;
    transform: rotate(180deg);
}

.settings-menu::after {
    content: '×';
    position: absolute;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    opacity: 0;
    transform: rotate(-90deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    color: #ffffff;
}

.settings-menu.active::after {
    opacity: 1;
    transform: rotate(0deg);
}

/* =========================================
   3. SIDE MENU (SLIDE OUT)
   ========================================= */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 350px;
    height: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(20, 19, 17, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    padding: calc(88px + env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--onyx-border);
    box-shadow: -10px 0 50px rgba(0,0,0,0.6);
}

/* JS toggles this class */
.side-menu.active {
    right: 0;
}

.menu-close {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    color: #ffffff;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2002;
}

body.menu-open .menu-close {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-close:hover {
    opacity: 0.7;
    transform: rotate(90deg);
}

.menu-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding-top: 30px;
}

.menu-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--touch-target);
    padding: 10px 12px;
    color: var(--onyx-text);
    text-decoration: none;
    font-size: clamp(17px, 4.5vw, 20px);
    font-weight: 500;
    margin-bottom: 8px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.menu-links a:hover {
    color: var(--onyx-gold);
    background: rgba(255, 255, 255, 0.04);
}

.menu-links a:active {
    transform: scale(0.98);
}

.menu-links a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(201, 168, 122, 0.35);
}

.menu-links a.menu-link-create-account {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: clamp(17px, 4.5vw, 20px);
    font-weight: 500;
}

.menu-logout-button {
    border: none;
    background: transparent;
    color: var(--onyx-text);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: clamp(17px, 4.5vw, 20px);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    min-height: var(--touch-target);
    margin-top: 0;
    width: 100%;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    align-self: stretch;
    font-family: inherit;
}

.menu-logout-button:hover {
    color: var(--onyx-gold);
    background: rgba(255, 255, 255, 0.04);
}

.menu-logout-button:active {
    transform: scale(0.98);
}

.menu-logout-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(201, 168, 122, 0.35);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.logout-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.logout-modal-overlay.active {
    display: flex;
}

.logout-modal {
    width: min(420px, 100%);
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    padding: 24px 22px;
}

.logout-modal h2 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 8px;
}

.logout-modal p {
    color: #c9c9c9;
    font-size: 15px;
}

.logout-modal-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-logout-cancel,
.btn-logout-confirm {
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    min-height: 48px;
    touch-action: manipulation;
    font-family: inherit;
}

.btn-logout-cancel {
    background: #3a3a3a;
    color: #efefef;
}

.btn-logout-confirm {
    background: linear-gradient(135deg, #3b3229 0%, #2b251f 100%);
    color: #f4ead7;
    border: 1px solid rgba(201, 168, 122, 0.45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn-logout-confirm:hover {
    background: linear-gradient(135deg, #3f352b 0%, #2f2822 100%);
    border-color: rgba(201, 168, 122, 0.75);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.42);
}

.btn-logout-confirm:active {
    transform: scale(0.98);
}

/* Settings — legal row actions match dashboard secondary buttons */
.settings-page .legal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(201, 168, 122, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #e8e8e8;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    touch-action: manipulation;
}

.settings-page .legal-link:hover {
    background: rgba(201, 168, 122, 0.15);
    border-color: rgba(230, 212, 193, 0.85);
    color: #f4ead7;
    text-decoration: none;
}

.settings-page .legal-link:active {
    transform: scale(0.98);
}

.settings-page .legal-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(201, 168, 122, 0.35);
}

/* =========================================
   4. HERO SECTION (COFFEE IMAGE)
   ========================================= */
.hero {
    height: 65vh;
    min-height: 400px;
    width: 100%;
    background: url('/assets/images/hero-onyx-interior.png') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    margin-top: calc(64px + env(safe-area-inset-top));
}

@media (max-width: 768px) {
    .hero {
        height: 55vh;
        min-height: 320px;
        background-attachment: scroll;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 12, 11, 0.45) 0%, rgba(10, 10, 10, 0.72) 100%),
        rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom));
}

.hero-overlay h1 {
    font-size: clamp(1.35rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    line-height: 1.2;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.8);
}

@media (max-width: 480px) {
    .hero-overlay h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
        padding: 0 16px;
    }
}

/* =========================================
   5. MAIN CONTENT AREA
   ========================================= */
.main-content {
    padding: calc(80px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    display: flex;
    justify-content: center;
    background: linear-gradient(160deg, #171614 0%, #1f1c18 58%, #151311 100%);
}

.content-card {
    background: var(--onyx-surface);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--onyx-radius-lg);
    box-shadow: var(--onyx-shadow-lg);
    max-width: 600px;
    width: 100%;
    padding: 50px 40px;
    border: 1px solid var(--onyx-border);
    text-align: center;
}

.debug-card {
    max-width: 760px;
    text-align: left;
}

.debug-title {
    font-size: 28px;
    margin-bottom: 14px;
    color: #ffffff;
}

.session-debug-output {
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    color: #d8d8d8;
    overflow: auto;
    max-height: 420px;
    font-size: 13px;
    line-height: 1.45;
}

.description {
    color: var(--onyx-muted);
    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.65;
    margin-bottom: 32px;
}

.landing-card-title {
    color: #f6f2eb;
    font-size: clamp(1.2rem, 3.4vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0 0 18px;
}

.mission-description {
    margin-top: 24px;
    font-size: 16px;
}

.mission-label {
    color: var(--onyx-gold);
}

.drip-locations {
    margin: -8px 0 28px;
}

.drip-locations-title {
    color: var(--onyx-text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.drip-locations-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--onyx-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

/* Home content card + login footer: simple gold text link */
.signup-link {
    text-align: center;
    color: #a0a0a0;
    font-size: 15px;
    line-height: 1.5;
}

.signup-link a {
    color: var(--onyx-gold);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: var(--onyx-gold-soft);
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .navbar,
    .side-menu,
    .content-card {
        background: var(--onyx-surface-solid);
    }

    .navbar {
        background-color: #11100f;
        background-image: linear-gradient(
            to bottom,
            rgba(26, 26, 26, 0.98) 0%,
            rgba(17, 16, 15, 0.95) 70%,
            rgba(12, 11, 10, 0.92) 100%
        );
    }
}

.payment-success-content {
    padding: 100px max(20px, env(safe-area-inset-right)) 80px max(20px, env(safe-area-inset-left));
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.payment-success-card {
    background: var(--onyx-surface);
    border-radius: var(--onyx-radius-lg);
    box-shadow: var(--onyx-shadow-lg);
    border: 1px solid var(--onyx-border);
    padding: 34px 30px;
}

.payment-success-content h1 {
    font-size: clamp(1.45rem, 5vw, 1.9rem);
    color: var(--onyx-text);
    margin-bottom: 16px;
    line-height: 1.25;
}

.payment-success-content p {
    color: var(--onyx-muted);
    margin-bottom: 24px;
}

.payment-success-content a {
    color: var(--onyx-gold);
    font-weight: 700;
    text-decoration: none;
}

.payment-success-content a:hover {
    color: var(--onyx-gold-soft);
}

.wallet-pass-page {
    padding: 100px max(20px, env(safe-area-inset-right)) 80px max(20px, env(safe-area-inset-left));
    max-width: 560px;
    margin: 0 auto;
}

.wallet-pass-card {
    background: var(--onyx-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--onyx-radius-lg);
    padding: 40px;
    border: 1px solid var(--onyx-border);
    box-shadow: var(--onyx-shadow-lg);
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.wallet-pass-card h1 {
    font-size: clamp(1.35rem, 4.5vw, 1.75rem);
    font-weight: 700;
    color: var(--onyx-text);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.wallet-pass-card p {
    color: var(--onyx-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.wallet-pass-error {
    color: #fecaca;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(185, 68, 68, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.35);
    box-shadow: inset 3px 0 0 0 rgba(248, 113, 113, 0.85);
    line-height: 1.45;
}

.wallet-pass-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: min(100%, 380px);
    margin: 0 auto;
}

.wallet-pass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    touch-action: manipulation;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: linear-gradient(135deg, var(--onyx-gold) 0%, #a0522d 100%);
    color: #0f1412;
    box-shadow: 0 4px 16px rgba(201, 168, 122, 0.35);
}

.wallet-pass-btn:hover {
    box-shadow: 0 6px 24px rgba(201, 168, 122, 0.45);
}

.wallet-pass-btn__copy {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.wallet-pass-btn__sub {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.wallet-pass-btn__main {
    font-size: 1rem;
    font-weight: 700;
}

.wallet-pass-btn--apple {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.wallet-pass-btn--apple:hover {
    background: #0d0d0d;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.wallet-pass-btn--apple i {
    font-size: 1.35rem;
}

.wallet-pass-btn--google {
    background: rgba(18, 17, 15, 0.94);
    color: #f2efe8;
    border: 1px solid rgba(233, 216, 184, 0.28);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42);
}

.wallet-pass-btn--google:hover {
    background: rgba(22, 20, 18, 0.98);
    border-color: rgba(233, 216, 184, 0.45);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.wallet-google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    background: conic-gradient(
        #4285f4 0deg 110deg,
        #34a853 110deg 200deg,
        #fbbc05 200deg 290deg,
        #ea4335 290deg 360deg
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.wallet-pass-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e8e8e8;
    border: 2px solid rgba(201, 168, 122, 0.5);
}

.wallet-pass-btn.secondary:hover {
    background: rgba(201, 168, 122, 0.15);
    border-color: rgba(230, 212, 193, 0.85);
}

.wallet-pass-btn.loading,
.wallet-pass-btn:disabled {
    opacity: 0.7;
    pointer-events: none;
}

.wallet-pass-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: min(100%, 380px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.wallet-pass-footer-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--onyx-muted);
    text-align: center;
}

.wallet-pass-reset-form {
    margin: 0;
    width: 100%;
}

.wallet-pass-btn.wallet-pass-btn--danger-outline {
    background: transparent;
    color: #efb1b1;
    border: 2px solid rgba(183, 90, 90, 0.65);
    min-height: 48px;
    font-weight: 600;
    box-shadow: none;
}

.wallet-pass-btn.wallet-pass-btn--danger-outline:hover {
    background: rgba(183, 90, 90, 0.18);
    border-color: rgba(229, 115, 115, 0.85);
    color: #ffd2d2;
}

/* =========================================
   6. RESPONSIVE QUERIES
   ========================================= */

/* Landscape mode fix - prevent hero from stretching */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        margin-top: calc(64px + env(safe-area-inset-top));
    }

    .hero-overlay h1 {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    html {
        background-color: #000000 !important;
        background-image: radial-gradient(circle at top, #262019 0%, #12110f 58%, #0f0e0d 100%) !important;
    }

    body {
        background-color: #000000 !important;
        background-image: radial-gradient(circle at top, #262019 0%, #12110f 58%, #0f0e0d 100%) !important;
    }

    .side-menu {
        width: 100%; /* Full screen on mobile */
    }

    .nav-container {
        gap: 8px;
    }

    .nav-actions {
        gap: 10px;
    }

    .nav-logo {
        min-width: 0;
        max-width: min(48vw, 220px);
    }

    .nav-logo-text {
        display: none;
    }

    .logo-img {
        height: 40px;
    }

    .content-card {
        padding: 30px 20px;
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.15),
            0 4px 16px rgba(0, 0, 0, 0.12),
            0 8px 32px rgba(0, 0, 0, 0.08),
            0 16px 64px rgba(0, 0, 0, 0.04),
            0 32px 128px rgba(0, 0, 0, 0.02);
    }

    .nav-login-btn {
        padding: 9px 16px;
        font-size: clamp(14px, 3.8vw, 16px);
        min-height: 42px;
        min-width: 0;
        max-width: none;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        border-radius: 0;
        background: linear-gradient(135deg, #3b3229 0%, #2b251f 100%);
    }

    /* Compact Login in the nav on phone (marketing home + settings guest) */
    .landing-page .nav-login-btn,
    .settings-page .nav-login-btn {
        padding: 6px 11px;
        font-size: 13px;
        min-height: 36px;
        line-height: 1.15;
    }

    .settings-page .setting-item {
        align-items: stretch;
    }

    .settings-page .legal-link {
        width: 100%;
        max-width: 100%;
    }

    .main-content {
        padding: 40px max(16px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        background: linear-gradient(160deg, #171614 0%, #1f1c18 58%, #151311 100%);
    }

    .payment-success-content,
    .wallet-pass-page {
        padding-top: 88px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .wallet-pass-card {
        padding: 28px 20px;
    }

    .wallet-pass-buttons,
    .wallet-pass-footer {
        width: 100%;
        max-width: 100%;
    }

    .payment-success-card {
        padding: 28px 22px;
    }
}

/* Keep desktop and tablet consistent with dashboard gradient treatment. */

@media (max-width: 480px) {
    .nav-container {
        padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    }

    .nav-welcome {
        max-width: 34vw;
        font-size: 12px;
    }

    .menu-links a {
        font-size: 17px;
    }

    .menu-logout-button {
        width: fit-content;
        max-width: calc(100% - 8px);
        align-self: center;
    }

    .logout-modal {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .logout-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-logout-cancel,
    .btn-logout-confirm {
        width: 100%;
    }
}