/* ============================================================
   SCHACK'S YAKS — Mobile-First Kayak Rental PWA
   Design System: Apple HIG + Black & White Brand
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
a { color: inherit; text-decoration: none; }
button {
    font-family: inherit; cursor: pointer; border: none; background: none;
    -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* --- CSS Custom Properties --- */
:root {
    /* Brand — Black & White */
    --color-brand: #000000;
    --color-brand-contrast: #FFFFFF;

    /* Primary Actions */
    --color-primary: #000000;
    --color-primary-hover: #1a1a1a;

    /* Semantic Colors */
    --color-success: #34C759;
    --color-warning: #FF9500;
    --color-danger: #FF3B30;
    --color-info: #5856D6;

    /* Surfaces — Light */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-tertiary: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-grouped: #F2F2F7;

    /* Text — Light */
    --text-primary: #000000;
    --text-secondary: rgba(60, 60, 67, 0.6);
    --text-tertiary: rgba(60, 60, 67, 0.45);
    --text-on-primary: #FFFFFF;

    /* Borders & Separators */
    --separator: rgba(60, 60, 67, 0.12);
    --separator-opaque: #C6C6C8;
    --border: var(--separator);
    --border-color: var(--separator-opaque);
    --divider-color: var(--separator);
    --surface: var(--bg-secondary);

    /* Materials */
    --material-thin: rgba(255, 255, 255, 0.6);
    --material-regular: rgba(255, 255, 255, 0.78);
    --material-thick: rgba(255, 255, 255, 0.9);

    /* Typography */
    --font-brand: 'Archivo Black', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', ui-monospace, 'Cascadia Code', monospace;

    /* Spacing (8pt grid) */
    --space-2: 2px;
    --space-4: 4px;
    --space-6: 6px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 100px;

    /* Easing */
    --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Durations */
    --dur-fast: 200ms;
    --dur-normal: 350ms;
    --dur-slow: 500ms;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
    --shadow-xl: 0 8px 32px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.1);

    /* Layout */
    --header-height: 56px;
    --tab-bar-height: 72px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* Glass Material Tokens — Apple Liquid Glass */
    --glass-blur: 20px;
    --glass-blur-heavy: 30px;
    --glass-blur-light: 12px;
    --glass-blur-subtle: 8px;
    --glass-saturation: 180%;
    --glass-brightness: 1.05;
    --glass-bg-light: rgba(255, 255, 255, 0.25);
    --glass-bg-medium: rgba(255, 255, 255, 0.18);
    --glass-bg-thin: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-border-subtle: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.3);
    --glass-shadow-outer: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    --glass-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    --glass-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-radius-sm: 12px;
    --glass-radius-md: 20px;
    --glass-radius-lg: 28px;
    --glass-radius-pill: 9999px;
}

/* --- App Layout --- */
#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 0.5px solid var(--separator);
    flex-shrink: 0;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-12) var(--space-20);
    min-height: var(--header-height);
}
.header-title {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.header-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.header-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    transition: background var(--dur-fast) ease;
}
.header-btn:active { background: var(--separator); }
.header-btn .icon { width: 22px; height: 22px; }
.inline-icon { display: inline-flex; width: 14px; height: 14px; vertical-align: -2px; flex-shrink: 0; color: var(--color-primary); }
.inline-icon svg { width: 100%; height: 100%; }
.notification-dot {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-danger);
    border: 2px solid var(--bg-primary);
}
.notification-dot.visible { display: block; }
.notification-dot.has-count {
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    top: 0;
    right: -4px;
}
.review-star:active { transform: scale(1.2); }

/* --- Location Weather Badge (card) --- */
.location-weather-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-top: 2px;
}
.location-weather-badge svg { width: 14px; height: 14px; }
.location-weather-badge.weather-good { background: rgba(52,199,89,0.1); color: #34C759; }
.location-weather-badge.weather-good svg { color: #FF9500; }
.location-weather-badge.weather-caution { background: rgba(255,149,0,0.1); color: #FF9500; }
.location-weather-badge.weather-danger { background: rgba(255,59,48,0.1); color: #FF3B30; }

/* --- Location Weather Detail Section --- */
.location-weather-section {
    margin-bottom: var(--space-16);
    padding: var(--space-12);
    background: var(--bg-secondary);
    border-radius: var(--radius-16);
}
.weather-current {
    display: flex;
    align-items: center;
    gap: var(--space-12);
}
.weather-current-main {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}
.weather-current-icon svg { width: 32px; height: 32px; color: #FF9500; }
.weather-current-temp {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.weather-current-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.weather-detail {
    font-size: 13px;
    color: var(--text-secondary);
}
.weather-badge-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    margin-top: 2px;
    width: fit-content;
}
.weather-badge-pill.weather-good { background: rgba(52,199,89,0.14); color: #34C759; }
.weather-badge-pill.weather-caution { background: rgba(255,149,0,0.14); color: #FF9500; }
.weather-badge-pill.weather-danger { background: rgba(255,59,48,0.14); color: #FF3B30; }
.weather-wind-warning {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    margin-top: var(--space-8);
    padding: var(--space-8) var(--space-12);
    background: rgba(255,149,0,0.1);
    border: 0.5px solid rgba(255,149,0,0.2);
    border-radius: var(--radius-12);
    font-size: 13px;
    font-weight: 500;
    color: #FF9500;
}
.weather-wind-warning svg { width: 16px; height: 16px; flex-shrink: 0; }

/* --- 3-Day Forecast --- */
.weather-forecast {
    margin-top: var(--space-12);
    padding-top: var(--space-12);
    border-top: 0.5px solid var(--separator);
}
.forecast-day {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-6) 0;
}
.forecast-day + .forecast-day {
    border-top: 0.5px solid var(--separator);
}
.forecast-day-name {
    width: 36px;
    font-size: 13px;
    font-weight: 600;
}
.forecast-icon svg { width: 20px; height: 20px; color: #FF9500; }
.forecast-temps {
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
}
.forecast-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.forecast-badge.weather-good { background: rgba(52,199,89,0.14); color: #34C759; }
.forecast-badge.weather-caution { background: rgba(255,149,0,0.14); color: #FF9500; }
.forecast-badge.weather-danger { background: rgba(255,59,48,0.14); color: #FF3B30; }
.forecast-wind-flag {
    font-size: 11px;
    color: #FF9500;
    font-weight: 500;
}

/* --- Screen Container --- */
.screen-container {
    flex: 1;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
}

/* --- Tab Bar — Floating Liquid Glass --- */
.tab-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 4px calc(6px + var(--safe-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 0.5px solid var(--separator);
    flex-shrink: 0;
    z-index: 50;
}
.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 12px;
    min-width: 52px;
    border-radius: 16px;
    color: var(--text-tertiary);
    transition: color 0.25s ease, background 0.3s ease, transform 0.15s ease;
    position: relative;
}
.tab.active {
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.06);
}
.tab:active .tab-icon,
.tab:active .tab-scan-btn { transform: scale(0.82); }
.tab-icon {
    width: 26px;
    height: 26px;
    transition: transform 0.2s var(--ease-spring);
}
.tab-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.25s ease;
}
.tab.active .tab-label {
    opacity: 1;
    max-height: 16px;
}

/* Scan Tab — Elevated Floating Button */
.tab-scan { position: relative; }
.tab-scan-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -24px;
    margin-bottom: -4px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}
.tab-scan-btn .tab-icon-scan {
    width: 26px;
    height: 26px;
    color: var(--text-on-primary);
}
.tab-scan .tab-label {
    margin-top: 2px;
    opacity: 0;
    max-height: 0;
}
.tab-scan.active .tab-label {
    opacity: 1;
    max-height: 16px;
}
.tab-scan.active .tab-scan-btn {
    background: linear-gradient(145deg, #1a1a1a, #000000);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* --- Screen Sections --- */
.screen { padding: 0 var(--space-20) var(--space-20); }
.section { margin-bottom: var(--space-32); }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-12);
}
.section-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}
.section-action {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}
.section-action:active { opacity: 0.6; }

/* --- Greeting Card --- */
.greeting {
    padding: var(--space-20);
    padding-top: var(--space-8);
}
.greeting-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}
.greeting-sub {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: var(--space-4);
}
.weather-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-12);
    background: var(--glass-bg-thin);
    backdrop-filter: blur(var(--glass-blur-subtle)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur-subtle)) saturate(160%);
    border: 0.5px solid var(--glass-border-subtle);
    border-radius: var(--glass-radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: var(--space-8);
}
.weather-badge svg { width: 16px; height: 16px; color: #FF9500; }

/* --- Active Rental Hero Card --- */
.rental-hero {
    margin: 0 var(--space-20) var(--space-24);
    background: linear-gradient(145deg, #1a1a1a 0%, #000000 50%, #0a0a0a 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-24);
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}
/* Liquid Glass upgrade */
.rental-hero-glass {
    background: linear-gradient(165deg,
        rgba(40, 40, 48, 0.75) 0%,
        rgba(15, 15, 20, 0.88) 100%);
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
    backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
    border-radius: var(--glass-radius-lg);
    border: 0.5px solid var(--glass-border-subtle);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.25),
        0 1.5px 6px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.rental-glass-shimmer {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%);
    pointer-events: none;
    border-radius: 28px 28px 0 0;
}
.rental-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    opacity: 0.1;
}
.rental-hero-status {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-success);
    margin-bottom: var(--space-16);
    position: relative;
}
.rental-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    animation: pulse 2s ease-in-out infinite;
}
.rental-hero-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-4);
    position: relative;
}
.rental-hero-location {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-20);
    position: relative;
}
.rental-hero-timer {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    text-align: center;
    margin: var(--space-16) 0;
    position: relative;
}
.rental-hero-cost {
    text-align: center;
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-16);
    position: relative;
}
.rental-hero-cost span {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
}
.rental-hero-actions {
    display: flex;
    gap: var(--space-12);
    position: relative;
}

/* --- BLE Rental Status Panel (Liquid Glass) --- */
.ble-glass-panel {
    background: var(--glass-bg-medium);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    border: 0.5px solid var(--glass-border-subtle);
    border-radius: var(--glass-radius-md);
    padding: 14px 16px;
    margin-bottom: var(--space-16);
    position: relative;
}
.ble-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.ble-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--glass-radius-pill);
    background: var(--glass-bg-thin);
    border: 0.5px solid var(--glass-border-subtle);
}
.ble-badge-icon {
    width: 14px; height: 14px;
    display: flex; align-items: center;
}
.ble-badge-icon svg { width: 14px; height: 14px; }
.ble-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
/* Connection states */
.ble-conn-on .ble-dot { background: #34C759; box-shadow: 0 0 6px rgba(52,199,89,0.5); }
.ble-conn-on { color: #34C759; }
.ble-conn-searching .ble-dot {
    background: #FFD60A;
    animation: blePulse 1.2s ease-in-out infinite;
}
.ble-conn-searching { color: #FFD60A; }
.ble-conn-off .ble-dot { background: rgba(255,255,255,0.3); }
.ble-conn-off { color: rgba(255,255,255,0.4); }
/* Lock states */
.ble-lock-open { color: #30D158; }
.ble-lock-closed { color: #FF6B6B; }

@keyframes blePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Lock toggle button — glass morphism */
.ble-lock-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    border: 0.5px solid var(--glass-border-subtle);
    border-radius: var(--glass-radius-sm);
    background: linear-gradient(135deg,
        var(--glass-bg-thin) 0%,
        var(--glass-bg-medium) 100%);
    -webkit-backdrop-filter: blur(var(--glass-blur-light));
    backdrop-filter: blur(var(--glass-blur-light));
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--glass-transition);
    -webkit-tap-highlight-color: transparent;
}
.ble-lock-toggle:active {
    transform: scale(0.97);
    background: var(--glass-bg-light);
}
.ble-lock-toggle:disabled,
.ble-lock-toggle-sending {
    opacity: 0.5;
    pointer-events: none;
}
.ble-lock-toggle-icon {
    width: 18px; height: 18px;
    display: flex; align-items: center;
}
.ble-lock-toggle-icon svg { width: 18px; height: 18px; }

.ble-cycles {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* Disconnected info */
.ble-away-info {
    text-align: center;
    padding: 4px 0 2px;
}
.ble-away-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}
.ble-away-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* Lock open hint */
.ble-open-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-top: 8px;
    background: rgba(48, 209, 88, 0.1);
    border: 0.5px solid rgba(48, 209, 88, 0.2);
    border-radius: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}
.ble-open-hint-icon {
    width: 16px; height: 16px;
    flex-shrink: 0;
    color: #30D158;
    display: flex; align-items: center;
}
.ble-open-hint-icon svg { width: 16px; height: 16px; }

/* --- Quick Actions --- */
.quick-actions {
    display: flex;
    gap: var(--space-16);
    padding: 0 var(--space-20);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: var(--space-32);
    justify-content: center;
}
.quick-actions::-webkit-scrollbar { display: none; }
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    min-width: 72px;
    flex-shrink: 0;
}
.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--glass-radius-sm);
    background: var(--glass-bg-medium);
    backdrop-filter: blur(var(--glass-blur-subtle)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur-subtle)) saturate(160%);
    border: 0.5px solid var(--glass-border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--glass-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), var(--glass-shadow-inset);
}
.quick-action-icon svg { width: 24px; height: 24px; color: var(--text-primary); }
.quick-action:active .quick-action-icon { transform: scale(0.92); }
.quick-action-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

/* --- Location Cards (Horizontal Scroll) --- */
.location-scroll {
    display: flex;
    gap: var(--space-12);
    padding: 0 var(--space-20);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.location-scroll::-webkit-scrollbar { display: none; }

.location-card {
    flex-shrink: 0;
    width: 260px;
    background: var(--bg-primary);
    border: 1px solid var(--separator);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    transition: transform 0.2s ease;
}
.location-card:active { transform: scale(0.97); }
.location-card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: var(--bg-secondary);
}
.location-card-body {
    padding: var(--space-12) var(--space-16);
}
.location-card-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: var(--space-2);
}
.location-card-water {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}
.location-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.location-card-price {
    font-size: 17px;
    font-weight: 700;
}
.location-card-price span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* ============================================================
   MAP HOME — Full-Screen Google Maps Home Tab
   ============================================================ */

/* Map home mode: disable scroll, enable positioning context */
.screen-container.map-home-mode {
    overflow: hidden;
    position: relative;
}

/* Container — fills screen-container */
.map-home {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* Map container — full bleed */
.home-map {
    width: 100%;
    height: 100%;
}

/* --- Map Logo Overlay --- */
.map-logo-bar {
    position: absolute;
    top: max(var(--space-8), env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.map-logo {
    height: 104px;
    width: auto;
    pointer-events: auto;
    filter: drop-shadow(0 1px 3px rgba(255,255,255,0.8));
}
.map-locate-btn {
    position: absolute;
    top: max(var(--space-8), env(safe-area-inset-top, 0px));
    right: var(--space-16);
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    border: 0.5px solid var(--glass-border);
    box-shadow: var(--glass-shadow-outer);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007AFF;
    cursor: pointer;
}
.map-locate-btn:active { transform: scale(0.9); }
.map-locate-btn svg { width: 22px; height: 22px; }

/* --- Floating Quick Actions --- */
.map-quick-actions {
    position: absolute;
    top: calc(max(var(--space-12), env(safe-area-inset-top, 0px)) + 52px);
    left: var(--space-16);
    z-index: 10;
    display: flex;
    gap: var(--space-8);
    pointer-events: none;
}
.map-pill-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-8) var(--space-12);
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    border-radius: 100px;
    border: 0.5px solid var(--glass-border);
    box-shadow: var(--glass-shadow-outer);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}
.map-pill-btn .icon { width: 16px; height: 16px; }
.map-pill-btn:active { transform: scale(0.95); }

/* --- Mapbox GL JS Overrides --- */
.mapboxgl-map { font-family: var(--font); }
#home-map .mapboxgl-ctrl-attrib { font-size: 9px; opacity: 0.6; }

/* --- Custom Map Markers --- */
.map-marker {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.map-marker:active { transform: scale(0.85) !important; }
.map-marker.marker-selected { transform: scale(1.15); z-index: 10 !important; }

.map-marker-pin {
    width: 44px;
    height: 44px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.map-marker-pin svg {
    transform: rotate(45deg);
    color: #fff;
}
.marker-unavailable .map-marker-pin { background: #8E8E93; }
.marker-partial .map-marker-pin { background: #FF9500; }
.marker-full .map-marker-pin { background: #34C759; }
.marker-selected .map-marker-pin {
    background: #007AFF;
    border-color: #fff;
    box-shadow: 0 4px 20px rgba(0,122,255,0.4);
}

.map-marker-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #fff;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.marker-unavailable .map-marker-badge { background: #FF3B30; color: #fff; }

/* --- User Location Dot --- */
.map-user-dot {
    width: 24px;
    height: 24px;
    position: relative;
}
.map-user-dot-inner {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #007AFF;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,122,255,0.3);
    z-index: 2;
}
.map-user-dot-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,122,255,0.2);
    animation: userDotPulse 2s infinite ease-out;
}
@keyframes userDotPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3); opacity: 0; }
}

/* --- Map Location Sheet (Bottom Sheet) --- */
.map-location-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--glass-bg-light);
    backdrop-filter: blur(30px) saturate(1.8);
    -webkit-backdrop-filter: blur(30px) saturate(1.8);
    border-radius: 20px 20px 0 0;
    border-top: 0.5px solid var(--glass-border);
    padding: var(--space-8) 0 max(var(--space-16), env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(max(var(--space-16), env(safe-area-inset-bottom, 0px)) + 80px);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
    max-height: 55vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.map-location-sheet.open {
    transform: translateY(0);
}
.map-sheet-handle {
    width: 36px;
    height: 5px;
    border-radius: 100px;
    background: rgba(120,120,128,0.3);
    margin: 0 auto var(--space-12);
}

/* Sheet header */
.map-sheet-header {
    padding: 0 var(--space-20);
    margin-bottom: var(--space-12);
    text-align: center;
}
.map-sheet-info { }
.map-sheet-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.map-sheet-waterway {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.map-sheet-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-8);
    margin-top: var(--space-8);
}
.map-sheet-weather {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}
.map-sheet-weather svg { width: 14px; height: 14px; }
.map-sheet-avail {
    font-size: 13px;
    color: var(--text-secondary);
}
.map-sheet-more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}
.map-sheet-more .icon { width: 16px; height: 16px; }
.map-sheet-more:active { transform: scale(0.9); }
.map-sheet-empty {
    padding: var(--space-20);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* --- Kayak Carousel --- */
.kayak-carousel-wrap {
    position: relative;
    margin-bottom: var(--space-12);
}
.kayak-carousel {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--space-20);
    scrollbar-width: none;
}
.kayak-carousel::-webkit-scrollbar { display: none; }

.kayak-carousel-card {
    flex: 0 0 min(280px, 85%);
    scroll-snap-align: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 0.5px solid var(--separator);
    transition: transform 0.2s ease;
}
.kayak-carousel-card:active { transform: scale(0.97); }

.kc-img-wrap {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--bg-secondary);
}
.kc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.kc-body {
    padding: var(--space-12);
    text-align: center;
}
.kc-status { margin-bottom: var(--space-4); }
.kc-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}
.kc-type {
    font-size: 13px;
    color: var(--text-secondary);
}
.kc-rating { margin-top: 4px; }
.kc-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-8);
}
.kc-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}
.kc-price-unit {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
}
.kc-rent-btn {
    padding: var(--space-12) var(--space-16);
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    border: none;
    min-height: 36px;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.kc-rent-btn:active { transform: scale(0.95); }
.kc-reserve-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Carousel pagination dots */
.kc-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: var(--space-8) 0;
}
.kc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(120,120,128,0.3);
    transition: all 0.2s ease;
}
.kc-dot.active {
    width: 18px;
    border-radius: 3px;
    background: var(--text-primary);
}

/* Sheet action buttons */
.map-sheet-scan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - var(--space-20) * 2);
    margin: 16px auto 12px;
    padding: 16px;
    background: #34C759;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-text);
    letter-spacing: -0.01em;
    cursor: pointer;
    min-height: 52px;
    box-shadow: 0 4px 14px rgba(52, 199, 89, 0.4), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.map-sheet-scan-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
}
.map-sheet-scan-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}
.map-sheet-actions {
    display: flex;
    gap: var(--space-8);
    padding: 0 var(--space-20);
}
.map-sheet-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--space-12);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    border: none;
    min-height: 44px;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.map-sheet-action-btn .icon { width: 16px; height: 16px; }
.map-sheet-action-btn:active { transform: scale(0.95); }

/* Reservation banner floating on map */
.map-home .reservation-banner {
    position: absolute;
    top: calc(max(var(--space-12), env(safe-area-inset-top, 0px)) + 100px);
    left: var(--space-16);
    right: var(--space-16);
    z-index: 10;
    margin: 0;
    box-shadow: var(--glass-shadow-outer);
}

/* Directions button */
.btn-directions {
    display: flex; align-items: center; justify-content: center; gap: var(--space-8);
    width: 100%; padding: 14px var(--space-16);
    background: var(--bg-secondary); color: var(--text-primary);
    border: none; cursor: pointer;
    border-radius: var(--radius-md); font-size: 16px; font-weight: 600;
    font-family: var(--font-text);
    margin-top: var(--space-12); margin-bottom: var(--space-4);
    transition: transform var(--dur-fast) ease;
}
.btn-directions:active { transform: scale(0.98); }
.btn-directions .icon { width: 20px; height: 20px; }

/* Share button in sheet */
.sheet-share-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; flex-shrink: 0;
    background: var(--bg-secondary); color: var(--text-primary);
    border: none; cursor: pointer;
    transition: transform var(--dur-fast) ease;
}
.sheet-share-btn:active { transform: scale(0.88); }
.sheet-share-btn .icon { width: 20px; height: 20px; }

/* --- Kayak Grid --- */
.kayak-search {
    position: relative;
    margin: 0 var(--space-20) var(--space-16);
}
.kayak-search input {
    width: 100%;
    padding: var(--space-12) var(--space-16) var(--space-12) 40px;
    background: var(--glass-bg-thin);
    backdrop-filter: blur(var(--glass-blur-subtle)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur-subtle)) saturate(160%);
    border: 0.5px solid var(--glass-border-subtle);
    border-radius: var(--glass-radius-sm);
    font-size: 17px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: all var(--glass-transition);
}
.kayak-search input::placeholder { color: var(--text-tertiary); }
.kayak-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
}

.filter-chips {
    display: flex;
    gap: var(--space-8);
    padding: 0 var(--space-20);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: var(--space-16);
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
    flex-shrink: 0;
    padding: var(--space-8) var(--space-16);
    border-radius: var(--glass-radius-pill);
    font-size: 14px;
    font-weight: 600;
    background: var(--glass-bg-thin);
    backdrop-filter: blur(var(--glass-blur-subtle));
    -webkit-backdrop-filter: blur(var(--glass-blur-subtle));
    border: 0.5px solid var(--glass-border-subtle);
    color: var(--text-secondary);
    transition: all var(--glass-transition);
}
.filter-chip.active {
    background: var(--color-primary);
    color: var(--text-on-primary);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.filter-chip:active { transform: scale(0.95); }

.kayak-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
    padding: 0 var(--space-20);
}
.kayak-card {
    background: var(--glass-bg-medium);
    backdrop-filter: blur(var(--glass-blur-light)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur-light)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
    border: 0.5px solid var(--glass-border);
    border-radius: var(--glass-radius-md);
    overflow: hidden;
    box-shadow: var(--glass-shadow-outer), var(--glass-shadow-inset);
    transition: all var(--glass-transition);
}
.kayak-card:active { transform: scale(0.97); }
.kayak-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--bg-secondary);
}
.kayak-card-body { padding: var(--space-12); }
.kayak-card-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: var(--space-8);
}
.kayak-card-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-2);
}
.kayak-card-type {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}
.kayak-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kayak-card-price {
    font-size: 17px;
    font-weight: 700;
}

/* --- Kiosk Location Cards (Locations Tab) --- */

.loc-permission-banner {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-12) var(--space-16);
    margin: 0 0 var(--space-16);
    background: rgba(88, 86, 214, 0.08);
    border: 0.5px solid rgba(88, 86, 214, 0.2);
    border-radius: var(--glass-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: #5856D6;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.loc-permission-banner:active { transform: scale(0.98); opacity: 0.8; }
.loc-permission-banner .inline-icon { width: 18px; height: 18px; flex-shrink: 0; }

.kiosk-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.kiosk-card {
    background: var(--bg-primary);
    border: 1px solid var(--separator);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
    cursor: pointer;
}
.kiosk-card:active { transform: scale(0.98); }

.kiosk-card-main {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-16);
}

.kiosk-card-info {
    flex: 1;
    min-width: 0;
}

.kiosk-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    margin-bottom: var(--space-4);
}

.kiosk-name {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.kiosk-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}
.kiosk-badge-open {
    background: rgba(52,199,89,0.12);
    border: 0.5px solid rgba(52,199,89,0.2);
    color: #34C759;
}
.kiosk-badge-closed {
    background: rgba(255,59,48,0.12);
    border: 0.5px solid rgba(255,59,48,0.2);
    color: #FF3B30;
}

.kiosk-waterway {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 var(--space-8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kiosk-meta {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    font-size: 13px;
    color: var(--text-secondary);
}
.kiosk-meta .inline-icon { width: 14px; height: 14px; flex-shrink: 0; }

.kiosk-distance {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    font-weight: 600;
    color: var(--text-primary);
}

.kiosk-avail {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
}
.kiosk-avail-none { color: #FF3B30; }

.kiosk-next-open {
    display: block;
    font-size: 12px;
    color: #FF9500;
    margin-top: var(--space-4);
    font-weight: 500;
}

.kiosk-cta {
    flex-shrink: 0;
    width: auto !important;
    min-height: 0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    gap: var(--space-4);
}
.kiosk-cta .inline-icon { width: 16px; height: 16px; }

.kiosk-card-actions {
    display: flex;
    border-top: 0.5px solid var(--separator);
}

.kiosk-action-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-12) var(--space-8);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}
.kiosk-action-link:first-child { border-right: 0.5px solid var(--separator); }
.kiosk-action-link:active { background: var(--separator); }
.kiosk-action-link .inline-icon { width: 14px; height: 14px; }

.kiosk-pricing-summary {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-16) 0;
    margin-top: var(--space-8);
    font-size: 13px;
    color: var(--text-secondary);
}
.kiosk-pricing-summary .inline-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-tertiary); }

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}
.badge-available { background: rgba(52,199,89,0.12); border: 0.5px solid rgba(52,199,89,0.2); color: #34C759; }
.badge-in-use { background: rgba(255,59,48,0.12); border: 0.5px solid rgba(255,59,48,0.2); color: #FF3B30; }
.badge-reserved { background: rgba(255,149,0,0.12); border: 0.5px solid rgba(255,149,0,0.2); color: #FF9500; }
.badge-open { background: rgba(52,199,89,0.12); border: 0.5px solid rgba(52,199,89,0.2); color: #34C759; }
.badge-closed { background: rgba(255,59,48,0.12); border: 0.5px solid rgba(255,59,48,0.2); color: #FF3B30; }
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

/* Hours grid in location detail sheet */
.hours-grid { display: flex; flex-direction: column; gap: 4px; }
.hours-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 14px; }
.hours-day { font-weight: 600; color: var(--text-primary); min-width: 36px; }
.hours-time { color: var(--text-primary); opacity: 0.7; }
.hours-closed { color: var(--color-danger); font-weight: 500; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); opacity: 0.85; }
.btn:disabled, .btn[disabled] { opacity: 0.5; pointer-events: none; }

.btn-primary {
    background: var(--color-primary);
    color: var(--text-on-primary);
    border-radius: var(--glass-radius-sm);
    padding: var(--space-16) var(--space-24);
    font-size: 17px;
    width: 100%;
    min-height: 50px;
    position: relative;
    isolation: isolate;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.12);
    transition: all var(--glass-transition);
}
.btn-secondary {
    background: var(--glass-bg-medium);
    backdrop-filter: blur(var(--glass-blur-subtle)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur-subtle)) saturate(160%);
    border: 0.5px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--glass-radius-sm);
    padding: var(--space-12) var(--space-20);
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), var(--glass-shadow-inset);
    transition: all var(--glass-transition);
}
.btn-danger {
    background: rgba(255,59,48,0.12);
    color: var(--color-danger);
    border-radius: var(--radius-md);
    padding: var(--space-12) var(--space-20);
    font-size: 15px;
}
.btn-compact {
    border-radius: var(--glass-radius-pill);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    background: var(--color-primary);
    color: var(--text-on-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-ghost {
    background: transparent;
    color: var(--color-danger);
    font-size: 17px;
    padding: var(--space-16);
}
.btn-outline {
    background: transparent;
    color: var(--text-on-primary);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    padding: var(--space-12) var(--space-20);
    font-size: 15px;
    flex: 1;
}
.btn-white {
    background: #FFFFFF;
    color: #000000;
    border-radius: var(--radius-md);
    padding: var(--space-12) var(--space-20);
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}

/* --- Scanner Overlay (fullscreen) --- */
.scanner-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #000;
    display: flex;
    flex-direction: column;
}
.scanner-close-btn {
    position: absolute;
    top: env(safe-area-inset-top, 16px);
    right: 16px;
    z-index: 9001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding-top: 16px;
}

/* --- QR Scanner Screen --- */
.scan-screen {
    position: relative;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.scan-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.scan-frame {
    position: relative;
    width: 250px;
    height: 250px;
    z-index: 2;
}
.scan-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: #FFFFFF;
    border-style: solid;
    border-width: 0;
}
.scan-corner-tl { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 12px; }
.scan-corner-tr { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 12px; }
.scan-corner-bl { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 12px; }
.scan-corner-br { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 12px; }

.scan-line {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
    animation: scanLine 2.5s ease-in-out infinite;
    z-index: 3;
}
.scan-instruction {
    position: relative;
    z-index: 2;
    margin-top: var(--space-32);
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    padding: 0 var(--space-40);
}
.scan-actions {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--space-20);
    z-index: 2;
    padding: 0 var(--space-20);
}
.scan-simulate {
    background: #FFFFFF;
    color: #000000;
    padding: var(--space-16) var(--space-32);
    border-radius: var(--radius-full);
    font-size: 17px;
    font-weight: 600;
}

/* --- Segmented Control --- */
.segmented-control {
    display: flex;
    background: var(--glass-bg-thin);
    backdrop-filter: blur(var(--glass-blur-subtle)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur-subtle)) saturate(160%);
    border: 0.5px solid var(--glass-border-subtle);
    border-radius: var(--glass-radius-sm);
    padding: 2px;
    margin: 0 var(--space-20) var(--space-20);
    position: relative;
}
.segment {
    flex: 1;
    text-align: center;
    padding: 6px var(--space-12);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    z-index: 1;
    cursor: pointer;
    transition: color var(--dur-fast) ease;
    background: transparent;
    border: none;
    border-radius: 7px;
}
.segment.active {
    background: var(--glass-bg-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* --- iOS Settings List --- */
.list-group {
    background: var(--glass-bg-medium);
    backdrop-filter: blur(var(--glass-blur-light)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur-light)) saturate(160%);
    border: 0.5px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    margin: 0 var(--space-20) var(--space-16);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), var(--glass-shadow-inset);
}
.list-group-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: var(--space-24) var(--space-20) var(--space-8);
}
.list-row {
    display: flex;
    align-items: center;
    padding: 11px var(--space-16);
    min-height: 44px;
    gap: var(--space-12);
    position: relative;
    cursor: pointer;
    transition: background var(--dur-fast) ease;
}
.list-row:active { background: var(--separator); }
.list-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 56px;
    right: 0;
    height: 0.33px;
    background: var(--separator);
}
.list-row-icon {
    width: 29px;
    height: 29px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.list-row-icon svg { width: 17px; height: 17px; color: #FFFFFF; }
.list-row-icon.bg-black { background: #000000; }
.list-row-icon.bg-green { background: #34C759; }
.list-row-icon.bg-blue { background: #007AFF; }
.list-row-icon.bg-orange { background: #FF9500; }
.list-row-icon.bg-red { background: #FF3B30; }
.list-row-icon.bg-purple { background: #5856D6; }
.list-row-icon.bg-gray { background: #8E8E93; }
.list-row-label {
    flex: 1;
    font-size: 17px;
}
.list-row-value {
    font-size: 17px;
    color: var(--text-secondary);
    margin-right: var(--space-4);
}
.list-row-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* --- Rental History Row --- */
.history-row {
    display: flex;
    align-items: center;
    padding: var(--space-12) var(--space-20);
    gap: var(--space-12);
    cursor: pointer;
    transition: background var(--dur-fast) ease;
}
.history-row:active { background: var(--separator); }
.history-row:not(:last-child) {
    border-bottom: 0.33px solid var(--separator);
}
.history-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.history-icon svg { width: 22px; height: 22px; color: var(--text-secondary); }
.history-info { flex: 1; }
.history-name { font-size: 17px; font-weight: 600; }
.history-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.history-cost {
    font-size: 17px;
    font-weight: 600;
    text-align: right;
}

/* --- Profile Header --- */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-24) var(--space-20) var(--space-32);
}
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-12);
    overflow: hidden;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar svg { width: 40px; height: 40px; color: var(--text-tertiary); }
.profile-name { font-size: 22px; font-weight: 700; }
.profile-email { font-size: 15px; color: var(--text-secondary); margin-top: var(--space-4); }
.profile-edit {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: var(--space-8);
    padding: var(--space-8);
}

/* --- Empty State --- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-48) var(--space-20);
    text-align: center;
}
.empty-state svg { width: 80px; height: 80px; color: var(--text-tertiary); margin-bottom: var(--space-20); }
.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-8);
}
.empty-state-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--space-24);
    max-width: 280px;
}

/* --- Bottom Sheet --- */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturation));
    border-radius: var(--glass-radius-lg) var(--glass-radius-lg) 0 0;
    border-top: 0.5px solid var(--glass-border);
    padding: var(--space-8) var(--space-20) var(--space-32);
    padding-bottom: max(var(--space-32), calc(var(--safe-bottom) + var(--space-20)));
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-spring);
    z-index: 100;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15), var(--glass-shadow-inset);
}
.bottom-sheet.open { transform: translateY(0); }
.bottom-sheet-handle {
    width: 36px;
    height: 5px;
    border-radius: var(--radius-full);
    background: var(--separator-opaque);
    margin: 0 auto var(--space-16);
}
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 99;
    pointer-events: none;
}
.sheet-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Pre-unlock multi-step flow */
.preunlock-flow { overflow: hidden; }
.preunlock-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: var(--space-16);
}
.preunlock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--separator-opaque);
    transition: background 0.2s ease, transform 0.2s ease;
}
.preunlock-dot.active {
    background: var(--text-primary);
    transform: scale(1.3);
}
.preunlock-steps {
    display: flex;
    transition: transform 0.4s var(--ease-spring);
}
.preunlock-step {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 var(--space-4);
    box-sizing: border-box;
    text-align: center;
}
.preunlock-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    margin: var(--space-16) 0 var(--space-8);
    padding-left: 2px;
    text-align: left;
}
.preunlock-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);
    padding: var(--space-8) 0;
    font-size: 15px;
    text-align: left;
}
.preunlock-row-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}
.preunlock-row-icon svg { width: 18px; height: 18px; }
.preunlock-lock-svg {
    width: 100px;
    height: 122px;
    margin: 0 auto var(--space-16);
    display: block;
}
.preunlock-lock-svg svg {
    width: 100%;
    height: 100%;
}

/* Sheet Content */
.sheet-kayak-header {
    display: flex;
    align-items: center;
    gap: var(--space-16);
    margin-bottom: var(--space-20);
}
.sheet-kayak-img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--bg-secondary);
}
.sheet-kayak-name {
    font-size: 20px;
    font-weight: 600;
}
.sheet-kayak-meta {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.65;
    margin-top: var(--space-4);
}
.sheet-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-16) 0;
    border-top: 1px solid rgba(60, 60, 67, 0.15);
}
.sheet-price-label { font-size: 15px; color: var(--text-primary); opacity: 0.7; }
.sheet-price-value { font-size: 17px; font-weight: 700; color: var(--text-primary); }

/* --- Success Overlay --- */
.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--color-success);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.success-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.success-overlay svg {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-20);
}
.success-overlay .success-check path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}
.success-overlay.show .success-check path {
    animation: drawCheck 0.6s var(--ease-spring) 0.3s forwards;
}
.success-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-8);
}
.success-subtitle {
    font-size: 17px;
    opacity: 0.8;
}

/* --- Hero Banner --- */
/* --- Brand Hero (Logo Section) --- */
.brand-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-8) var(--space-20) var(--space-24);
}
.brand-logo {
    width: 180px;
    height: auto;
    mix-blend-mode: multiply;
    pointer-events: none;
    user-select: none;
}
.brand-tagline {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: var(--space-4);
}

/* --- Photo Hero Card --- */
.photo-hero {
    position: relative;
    margin: 0 var(--space-20) var(--space-24);
    border-radius: var(--glass-radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--glass-shadow-outer);
}
.photo-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-default);
}
.photo-hero:active img { transform: scale(1.02); }
.photo-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 40%, transparent 70%);
}
.photo-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-20);
    color: #FFFFFF;
}
.photo-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-12);
    background: var(--glass-bg-thin);
    backdrop-filter: blur(var(--glass-blur-light)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur-light)) saturate(160%);
    border-radius: var(--glass-radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-8);
    border: 0.5px solid var(--glass-border);
}
.photo-hero-pill svg { width: 14px; height: 14px; }
.photo-hero-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}
.photo-hero-sub {
    font-size: 14px;
    opacity: 0.75;
    margin-top: var(--space-4);
}

/* --- Header Logo (Nav) --- */
.header-logo {
    height: 28px;
    width: auto;
    mix-blend-mode: multiply;
}
/* --- Info Cards --- */
.info-cards {
    padding: 0 var(--space-20);
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}
.info-card {
    background: var(--glass-bg-medium);
    backdrop-filter: blur(var(--glass-blur-light)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur-light)) saturate(160%);
    border: 0.5px solid var(--glass-border);
    border-radius: var(--glass-radius-sm);
    padding: var(--space-16);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), var(--glass-shadow-inset);
    display: flex;
    align-items: center;
    gap: var(--space-12);
    cursor: pointer;
    transition: all var(--glass-transition);
}
.info-card:active { transform: scale(0.97); }
.info-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-card-icon svg { width: 22px; height: 22px; }
.info-card-content { flex: 1; }
.info-card-title { font-size: 17px; font-weight: 600; }
.info-card-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* --- Animations --- */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes scanLine {
    0%, 100% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { transform: translateY(248px); }
}

@keyframes drawCheck {
    0% { stroke-dashoffset: 48; }
    100% { stroke-dashoffset: 0; }
}

@keyframes fadeSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Stagger entrance */
.stagger > * {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeSlideUp var(--dur-normal) var(--ease-spring) forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 50ms; }
.stagger > *:nth-child(3) { animation-delay: 100ms; }
.stagger > *:nth-child(4) { animation-delay: 150ms; }
.stagger > *:nth-child(5) { animation-delay: 200ms; }
.stagger > *:nth-child(6) { animation-delay: 250ms; }
.stagger > *:nth-child(7) { animation-delay: 300ms; }
.stagger > *:nth-child(8) { animation-delay: 350ms; }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 60%; }
.skeleton-title { height: 20px; width: 50%; margin-bottom: 12px; }
.skeleton-avatar { width: 80px; height: 80px; border-radius: 50%; }
.skeleton-card {
    height: 180px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-12);
}
.skeleton-badge { height: 28px; width: 120px; border-radius: var(--radius-full); }
.skeleton-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);
    padding: var(--space-12) 0;
}
.skeleton-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.skeleton-lines { flex: 1; }

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--glass-radius-sm);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    border: 0.5px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), var(--glass-shadow-inset);
    pointer-events: auto;
    font-size: 15px;
    font-weight: 500;
    animation: toastIn 0.3s ease-out;
}
.toast.hide { animation: toastOut 0.2s ease-in forwards; }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }
.toast.success { background: rgba(52, 199, 89, 0.85); color: #fff; }
.toast.error { background: rgba(255, 59, 48, 0.85); color: #fff; }
.toast.info { background: rgba(88, 86, 214, 0.85); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-16px); } }

/* --- Button Loading Spinner --- */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    top: 50%; left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* --- Confirm Dialog (Bottom Sheet) --- */
.confirm-dialog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-8);
}
.confirm-dialog-message {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-24);
    white-space: pre-line;
}
.confirm-dialog-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* --- Field Validation --- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(5px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}
.shake { animation: shake 0.4s ease-in-out; }
.field-error {
    border-color: var(--color-danger) !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}
.field-error-msg {
    font-size: 13px;
    color: var(--color-danger);
    margin-top: var(--space-4);
    display: block;
}

/* --- Pull-to-Refresh --- */
.pull-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    transition: transform 0.3s ease;
    z-index: 5;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
}
.pull-indicator.pulling { opacity: 1; transition: none; }
.pull-indicator.refreshing { opacity: 1; transform: translateX(-50%) translateY(16px); }
.pull-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Focus-Visible --- */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* --- Offline Banner --- */
.offline-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--color-danger);
    color: #fff;
    text-align: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.offline-banner[hidden] { display: block; }
.offline-banner.visible {
    transform: translateY(0);
}

/* --- BLE Bluetooth Banner --- */
.ble-banner {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 0; right: 0;
    background: linear-gradient(135deg, #E65100, #F57C00);
    color: #fff;
    padding: 10px 16px;
    z-index: 9998;
    transform: translateY(calc(-100% - env(safe-area-inset-top, 0)));
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}
.ble-banner[hidden] { display: flex; }
.ble-banner.visible {
    transform: translateY(0);
}
.ble-banner-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.ble-banner-content svg {
    flex-shrink: 0;
    opacity: 0.9;
}
.ble-banner-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.ble-banner-btn:active {
    background: rgba(255,255,255,0.35);
}

/* --- App Install Banner (iOS Safari only) --- */
.app-install-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--separator);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    z-index: 9997;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100%);
    transition: transform 0.35s var(--ease-spring);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.app-install-banner.visible {
    transform: translateY(0);
}
.app-install-banner-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
}
.app-install-banner-text {
    flex: 1;
    min-width: 0;
}
.app-install-banner-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.app-install-banner-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 1px;
}
.app-install-banner-cta {
    background: #007AFF;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.app-install-banner-cta:active {
    opacity: 0.8;
}
.app-install-banner-close {
    position: absolute;
    top: 8px; right: 8px;
    width: 24px; height: 24px;
    background: var(--bg-grouped);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1;
    cursor: pointer;
    border: none;
}

/* --- Wallet Pay (Apple Pay / Google Pay) --- */
.wallet-pay-btn {
    margin-bottom: var(--space-16);
    min-height: 48px;
}
.payment-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-16);
    color: var(--text-tertiary);
    font-size: 13px;
}
.payment-divider::before,
.payment-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--divider-color);
}

/* --- Lock Wake-Up Coaching --- */
.lock-wake-coaching {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    padding: 4px 0;
}
.lock-wake-illustration {
    position: relative;
    width: 150px;
    height: 170px;
}
.lock-wake-illustration svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
/* Pulsing green ring around the lock button */
.lock-btn-ring {
    animation: lockBtnPulse 1.2s ease-in-out infinite;
}
@keyframes lockBtnPulse {
    0%, 100% { opacity: 0.3; stroke-width: 2; }
    50% { opacity: 1; stroke-width: 4; }
}
/* Countdown ring — below illustration */
.lock-wake-countdown-ring {
    position: relative;
    width: 40px;
    height: 40px;
}
.lock-wake-countdown-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.countdown-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: white;
}
@keyframes countdownDash {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: 125.66; }
}
/* "I Pressed It" skip button */
.lock-wake-skip {
    margin-top: var(--space-8);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 28px;
    background: #34C759;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

/* --- BLE Connect Button (fresh gesture) --- */
.lock-connect-btn {
    margin-top: var(--space-12);
    font-size: 17px;
    font-weight: 700;
    padding: 14px 36px;
    background: #34C759;
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    animation: lockConnectPulse 2s ease-in-out infinite;
}
@keyframes lockConnectPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(52, 199, 89, 0); }
}
.lock-connect-fallback {
    margin-top: var(--space-12);
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
}

/* --- BLE Diagnostics Panel --- */
.ble-diag-toggle {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 0;
    background: none;
    border: none;
}
.ble-diag-list {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 8px;
}
.ble-diag-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--divider-color);
}
.ble-diag-row:last-child { border-bottom: none; }
.ble-diag-label { color: var(--text-secondary); }
.ble-diag-value { font-weight: 600; }
.ble-diag-ok { color: var(--color-success); }
.ble-diag-warn { color: var(--color-danger); }

/* --- Express Rent Countdown --- */
/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Responsive --- */
@media (min-width: 390px) {
    .header-title { font-size: 34px; }
}

@media (min-width: 428px) {
    .quick-actions { gap: var(--space-20); }
    .location-card { width: 280px; }
}

@media (min-width: 744px) {
    .screen { padding: 0 var(--space-32) var(--space-32); max-width: 900px; margin: 0 auto; }
    .kayak-grid { grid-template-columns: repeat(3, 1fr); }
    .location-card { width: 300px; }
    .greeting { padding-left: var(--space-32); padding-right: var(--space-32); max-width: 900px; margin-left: auto; margin-right: auto; }
    .rental-hero { margin-left: var(--space-32); margin-right: var(--space-32); }
    .quick-actions { padding: 0 var(--space-32); }
    .location-scroll { padding: 0 var(--space-32); }
    .header-content { max-width: 900px; margin: 0 auto; }
    .info-cards { flex-direction: row; flex-wrap: wrap; padding: 0; }
    .info-card { flex: 1 1 calc(50% - 6px); min-width: 0; }
}

/* Tablet+: show thin scrollbar for mouse users */
@media (min-width: 744px) and (hover: hover) {
    .location-scroll {
        scrollbar-width: thin;
        scrollbar-color: var(--separator-opaque) transparent;
        padding-bottom: var(--space-8);
    }
    .location-scroll::-webkit-scrollbar { display: block; height: 6px; }
    .location-scroll::-webkit-scrollbar-track { background: transparent; }
    .location-scroll::-webkit-scrollbar-thumb { background: var(--separator-opaque); border-radius: 3px; }
    .location-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
}

@media (min-width: 1024px) {
    .screen { max-width: 1080px; }
    .greeting { max-width: 1080px; }
    .header-content { max-width: 1080px; }
    .kayak-grid { grid-template-columns: repeat(4, 1fr); }
    /* Location cards: grid layout instead of horizontal scroll */
    .location-scroll {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: var(--space-16);
        overflow: visible;
        scroll-snap-type: none;
        padding: 0;
        scrollbar-width: auto;
    }
    .location-scroll .location-card {
        width: auto;
        scroll-snap-align: none;
    }
    .location-scroll-wrap .scroll-arrow { display: none; }
    /* Tab bar: centered pill on desktop */
    .tab-bar {
        max-width: 480px;
        margin: 0 auto 12px;
    }
    .bottom-sheet {
        max-width: 500px;
        left: 50%;
        transform: translate(-50%, 100%);
        border-radius: var(--radius-lg);
        bottom: var(--space-20);
    }
    .bottom-sheet.open { transform: translate(-50%, 0); }
}

@media (min-width: 1280px) {
    .screen { max-width: 1200px; }
    .greeting { max-width: 1200px; }
    .header-content { max-width: 1200px; }
}

/* --- App Version --- */
.app-version {
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
    padding: var(--space-24) var(--space-20);
}

/* ============================================================
   TIER 1 — Visual Polish & Micro-Animations
   ============================================================ */

/* --- Splash Screen --- */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash.splash-out {
    opacity: 0;
    visibility: hidden;
}
.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.splash-logo {
    width: 180px;
    height: auto;
    mix-blend-mode: multiply;
    animation: splashLogoPop 0.8s var(--ease-bounce) both;
}
.splash-bar {
    width: 140px;
    height: 3px;
    background: var(--separator);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.3s 0.3s ease forwards;
}
.splash-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    animation: splashBarFill 1.4s 0.5s var(--ease-default) forwards;
}

@keyframes splashLogoPop {
    0% { opacity: 0; transform: scale(0.6) rotate(-3deg); }
    60% { transform: scale(1.05) rotate(0deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes splashBarFill {
    0% { width: 0%; }
    60% { width: 80%; }
    100% { width: 100%; }
}

/* --- App Hidden (until splash completes) --- */
#app {
    transition: opacity 0.6s ease;
}
.app-hidden {
    opacity: 0;
    pointer-events: none;
}
.app-visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- Brand Typography (Archivo Black) --- */
.header-title,
.greeting-text,
.section-title,
.photo-hero-title,
.brand-tagline,
.success-title,
.rental-hero-name,
.rental-hero-timer,
.rental-dash-name,
.rental-dash-timer,
.rental-dash-cost,
.empty-state-title,
.profile-name {
    font-family: var(--font-brand);
}

/* --- Screen Transitions --- */
.screen-container {
    transition: opacity 150ms ease;
}
.screen-container.screen-exit {
    opacity: 0;
}
.screen-transition {
    animation: screenSlideIn 0.35s var(--ease-spring) both;
}
@keyframes screenSlideIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Active rental card glow pulse */
.rental-hero:not(.rental-hero-glass) {
    animation: rentalGlow 3s ease-in-out infinite alternate;
}
@keyframes rentalGlow {
    0% { box-shadow: 0 4px 20px rgba(0,122,255,0.15); }
    100% { box-shadow: 0 4px 28px rgba(0,122,255,0.3); }
}
/* Liquid glass glow */
.rental-hero-glass {
    animation: glassGlow 4s ease-in-out infinite alternate;
}
@keyframes glassGlow {
    0% {
        box-shadow:
            0 8px 40px rgba(0, 0, 0, 0.25),
            0 1.5px 6px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.15),
            0 0 20px rgba(0, 122, 255, 0.08);
    }
    100% {
        box-shadow:
            0 8px 40px rgba(0, 0, 0, 0.25),
            0 1.5px 6px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.12),
            inset 0 -1px 0 rgba(0, 0, 0, 0.15),
            0 0 30px rgba(0, 122, 255, 0.15);
    }
}

/* Notification badge bounce */
@keyframes badgeBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.35); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.notification-dot.bounce {
    animation: badgeBounce 0.5s var(--ease-bounce);
}

/* Success flash overlay */
.success-flash {
    position: fixed;
    inset: 0;
    background: rgba(52,199,89,0.15);
    z-index: 999;
    pointer-events: none;
    animation: successFlash 0.6s ease-out forwards;
}
@keyframes successFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* --- Image Skeleton Loading --- */
.img-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}
.img-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    z-index: 1;
}
.img-skeleton.loaded::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.img-skeleton img {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.img-skeleton.loaded img {
    opacity: 1;
}

/* --- Parallax Hero --- */
.photo-hero {
    transform: translateZ(0);
    will-change: transform;
}
.photo-hero img {
    transition: transform 0.15s linear;
}

/* --- Microinteractions --- */

/* Tab bounce on tap */
.tab-bounce {
    animation: tabBounce 0.4s var(--ease-bounce);
}
@keyframes tabBounce {
    0% { transform: scale(1); }
    30% { transform: scale(0.82); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Card spring on tap + HOVER for desktop — Glass-aware */
.location-card,
.kayak-card,
.info-card,
.quick-action-icon {
    transition: all var(--glass-transition);
}
.location-card:active,
.kayak-card:active,
.info-card:active {
    transform: scale(0.96);
}
.quick-action:active .quick-action-icon {
    transform: scale(0.88);
}

/* Desktop hover lift effects — Glass-aware */
@media (hover: hover) {
    .location-card:hover {
        transform: translateY(-4px) scale(1.01);
        backdrop-filter: blur(16px) saturate(200%) brightness(1.08);
        -webkit-backdrop-filter: blur(16px) saturate(200%) brightness(1.08);
        box-shadow: 0 12px 40px rgba(0,0,0,0.15), var(--glass-shadow-inset);
    }
    .kayak-card:hover {
        transform: translateY(-4px) scale(1.01);
        backdrop-filter: blur(16px) saturate(200%) brightness(1.08);
        -webkit-backdrop-filter: blur(16px) saturate(200%) brightness(1.08);
        box-shadow: 0 12px 40px rgba(0,0,0,0.15), var(--glass-shadow-inset);
    }
    .info-card:hover {
        transform: translateY(-2px);
        backdrop-filter: blur(16px) saturate(200%) brightness(1.08);
        -webkit-backdrop-filter: blur(16px) saturate(200%) brightness(1.08);
        box-shadow: 0 8px 28px rgba(0,0,0,0.1), var(--glass-shadow-inset);
    }
    .quick-action:hover .quick-action-icon {
        transform: translateY(-3px) scale(1.05);
        backdrop-filter: blur(12px) saturate(200%) brightness(1.08);
        -webkit-backdrop-filter: blur(12px) saturate(200%) brightness(1.08);
        box-shadow: 0 6px 20px rgba(0,0,0,0.1), var(--glass-shadow-inset);
    }
    .list-row:hover {
        background: var(--glass-bg-thin);
    }
    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
    }
    .btn-secondary:hover {
        transform: translateY(-1px);
        backdrop-filter: blur(12px) saturate(200%) brightness(1.08);
        -webkit-backdrop-filter: blur(12px) saturate(200%) brightness(1.08);
        box-shadow: 0 4px 16px rgba(0,0,0,0.1), var(--glass-shadow-inset);
    }
    .filter-chip:hover:not(.active) {
        background: var(--glass-bg-medium);
        transform: translateY(-1px);
        border-color: var(--glass-border);
    }
    .photo-hero:hover img {
        transform: scale(1.04);
    }
    .tab:hover:not(.active) {
        color: var(--text-secondary);
        background: rgba(0, 0, 0, 0.03);
    }
    .tab-scan:hover .tab-scan-btn {
        transform: scale(1.06);
        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.35),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

/* Button press depth */
.btn-primary:active {
    transform: scale(0.97) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.25) !important;
    transition-duration: 0.1s;
}

/* Rental hero shimmer accent */
.rental-hero:not(.rental-hero-glass) {
    position: relative;
    overflow: hidden;
}
.rental-hero:not(.rental-hero-glass)::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: heroShimmer 4s ease-in-out infinite alternate;
}
@keyframes heroShimmer {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

/* Badge subtle scale on appear */
.badge {
    animation: badgePop 0.3s var(--ease-bounce) both;
}
@keyframes badgePop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Bottom sheet improved spring */
.bottom-sheet {
    transition: transform 0.45s var(--ease-spring);
}

/* Header scroll shadow */
.header.scrolled {
    box-shadow: 0 0.5px 0 0 var(--separator), 0 4px 16px rgba(0,0,0,0.08);
}

/* ============================================================
   TIER 1+ — Enhanced Web/Desktop Polish
   ============================================================ */

/* --- Photo Hero — Larger on desktop, gradient overlay enhancement --- */
.photo-hero {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.photo-hero-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.2) 35%,
        rgba(0,0,0,0.05) 55%,
        transparent 75%
    );
}

/* --- Brand Hero enhancement --- */
.brand-hero {
    padding: var(--space-16) var(--space-20) var(--space-32);
}
.brand-logo {
    width: 200px;
    transition: transform 0.4s var(--ease-spring);
}
@media (hover: hover) {
    .brand-logo:hover {
        transform: scale(1.05);
    }
}
.brand-tagline {
    font-size: 12px;
    letter-spacing: 0.14em;
    margin-top: var(--space-8);
    color: var(--text-tertiary);
}

/* --- Greeting Enhancement --- */
.greeting-text {
    font-size: 32px;
    letter-spacing: -0.02em;
}
.greeting-sub {
    font-size: 16px;
}

/* --- Weather Badge Glass Effect --- */
.weather-badge {
    backdrop-filter: blur(var(--glass-blur-subtle));
    -webkit-backdrop-filter: blur(var(--glass-blur-subtle));
    transition: all var(--glass-transition);
}
.weather-badge.weather-good {
    background: rgba(52, 199, 89, 0.08);
    border: 0.5px solid rgba(52, 199, 89, 0.15);
    color: var(--text-secondary);
}
.weather-badge.weather-good svg { color: #FF9500; }
.weather-badge.weather-caution {
    background: rgba(255, 149, 0, 0.1);
    border: 0.5px solid rgba(255, 149, 0, 0.2);
    color: #FF9500;
}
.weather-badge.weather-caution svg { color: #FF9500; }
.weather-badge.weather-danger {
    background: rgba(255, 59, 48, 0.1);
    border: 0.5px solid rgba(255, 59, 48, 0.2);
    color: #FF3B30;
}
.weather-badge.weather-danger svg { color: #FF3B30; }

/* Loading dots animation */
.weather-loading-dots::after {
    content: '';
    animation: loadingDots 1.5s steps(4, end) infinite;
}
@keyframes loadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* --- Quick Action Icon Enhancement --- */
.quick-action-icon {
    background: var(--bg-tertiary);
    border: 0.5px solid var(--separator);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* --- Location Cards Enhancement --- */
.location-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
}
.location-card-img {
    transition: transform 0.5s var(--ease-default);
}
@media (hover: hover) {
    .location-card:hover .location-card-img {
        transform: scale(1.06);
    }
}
.location-card-body {
    padding: var(--space-16);
}

/* --- Kayak Card Enhancement --- */
.kayak-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.kayak-card-img {
    transition: transform 0.5s var(--ease-default);
    overflow: hidden;
}
@media (hover: hover) {
    .kayak-card:hover .kayak-card-img {
        transform: scale(1.06);
    }
}

/* --- Info Card Glass Effect --- */
.info-card {
    background: var(--bg-tertiary);
    border: 0.5px solid var(--separator);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --- Section Title styling --- */
.section-title {
    font-size: 24px;
    letter-spacing: -0.01em;
}

/* --- Tab Bar Glass Enhancement --- */
/* (Handled inline in .tab-bar definition above) */

/* --- Header Glass Enhancement --- */
.header {
    background: var(--material-regular);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
}

/* --- Segmented Control Enhancement --- */
.segment.active {
    box-shadow: 0 1px 4px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.08);
}

/* --- Profile Avatar Enhancement --- */
.profile-avatar {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-grouped));
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ============================================================
   RENTAL DASHBOARD — Full Takeover
   ============================================================ */

.rental-dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
}

.rental-dash-glass {
    background: linear-gradient(165deg,
        rgba(40, 40, 48, 0.75) 0%,
        rgba(15, 15, 20, 0.88) 100%);
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
    backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturation)) brightness(var(--glass-brightness));
    border-radius: 0 0 var(--glass-radius-lg) var(--glass-radius-lg);
    border-bottom: 0.5px solid var(--glass-border-subtle);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: var(--space-24) var(--space-20) var(--space-32);
    position: relative;
    overflow: hidden;
    animation: glassGlow 4s ease-in-out infinite alternate;
}

.rental-dash-name {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: var(--space-4);
    position: relative;
}

.rental-dash-location {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-20);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}
.rental-dash-location .inline-icon {
    width: 14px;
    height: 14px;
}

/* Progress Ring */
.rental-dash-ring-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    margin: var(--space-8) auto var(--space-12);
}

.rental-dash-ring-svg {
    width: 200px;
    height: 200px;
    display: block;
}

.rental-dash-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 52px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    line-height: 1;
}

.rental-dash-countdown {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-8);
    position: relative;
}

.rental-dash-cost {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: var(--space-24);
    position: relative;
}

/* Lock Control */
.rental-dash-lock {
    margin-bottom: var(--space-20);
    position: relative;
}

.rental-dash-lock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    width: 100%;
    padding: var(--space-20) var(--space-24);
    border-radius: var(--glass-radius-md);
    border: 0.5px solid var(--glass-border-subtle);
    background: var(--glass-bg-thin);
    -webkit-backdrop-filter: blur(var(--glass-blur-light));
    backdrop-filter: blur(var(--glass-blur-light));
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all var(--glass-transition);
}

.rental-dash-lock-btn:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.12);
}

.rental-dash-lock-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rental-dash-lock-icon svg {
    width: 36px;
    height: 36px;
}

.rental-dash-lock-label {
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
}

.rental-dash-lock-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.rental-dash-lock-locked {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.08);
}
.rental-dash-lock-locked .rental-dash-lock-icon {
    color: #FF6B6B;
}

.rental-dash-lock-unlocked {
    border-color: rgba(48, 209, 88, 0.3);
    background: rgba(48, 209, 88, 0.08);
    cursor: default;
}
.rental-dash-lock-unlocked .rental-dash-lock-icon {
    color: #30D158;
}

.rental-dash-lock-away {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: default;
}
.rental-dash-lock-away .rental-dash-lock-icon {
    color: rgba(255, 255, 255, 0.3);
}

.rental-dash-lock-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 214, 10, 0.2);
    border-top-color: #FFD60A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Quick Actions Strip */
.rental-dash-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    margin-bottom: var(--space-8);
    position: relative;
}

.rental-dash-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 500;
    padding: var(--space-8);
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: 60px;
}
.rental-dash-action:active {
    background: rgba(255, 255, 255, 0.08);
}

.rental-dash-action-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rental-dash-action-icon svg {
    width: 22px;
    height: 22px;
}

/* Return Kayak Button */
.rental-dash-return {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - var(--space-40));
    margin: var(--space-20) auto 0;
    padding: var(--space-16) var(--space-24);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
}
.rental-dash-return:active {
    transform: scale(0.97);
    opacity: 0.85;
}

/* Rental Dashboard — Desktop */
@media (min-width: 744px) {
    .rental-dashboard { max-width: 500px; margin: 0 auto; }
    .rental-dash-ring-wrap { width: 240px; height: 240px; }
    .rental-dash-ring-svg { width: 240px; height: 240px; }
    .rental-dash-timer { font-size: 64px; }
}

/* --- Desktop Responsive — Wider & Better Spaced --- */
@media (min-width: 744px) {
    .greeting-text { font-size: 38px; }
    .section-title { font-size: 26px; }
    .photo-hero { aspect-ratio: 2.2 / 1; border-radius: var(--radius-xl); }
    .photo-hero-title { font-size: 28px; }
    .brand-logo { width: 220px; }
    .location-card { width: 300px; }
    .location-card-img { height: 170px; }
    .quick-action-icon { width: 64px; height: 64px; }
    .quick-action-icon svg { width: 28px; height: 28px; }
    .rental-hero { border-radius: var(--radius-xl); }
    /* Info cards: remove internal padding (parent handles it) */
    .info-cards { padding: 0; }
}

@media (min-width: 1024px) {
    .greeting-text { font-size: 42px; }
    .section-title { font-size: 28px; }
    .photo-hero { aspect-ratio: 2.5 / 1; }
    .photo-hero-title { font-size: 32px; }
    .brand-logo { width: 240px; }
    /* Location cards auto-size in grid (width set by grid columns) */
    .location-card-img { height: 180px; }
    .quick-action-icon { width: 72px; height: 72px; border-radius: var(--radius-xl); }
    .quick-action-icon svg { width: 30px; height: 30px; }
    .quick-action-label { font-size: 12px; }
    .rental-hero-timer { font-size: 56px; }
    /* Quick actions: more generous spacing */
    .quick-actions { gap: var(--space-32); max-width: 500px; margin-left: auto; margin-right: auto; margin-bottom: var(--space-32); }
}

/* --- Location Scroll Arrows (tablet range) --- */
.location-scroll-wrap {
    position: relative;
}
.scroll-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur-light)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur-light)) saturate(var(--glass-saturation));
    border: 0.5px solid var(--glass-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12), var(--glass-shadow-inset);
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
    opacity: 0;
    pointer-events: none;
}
.scroll-arrow svg { width: 20px; height: 20px; }
.scroll-arrow-left { left: 8px; }
.scroll-arrow-right { right: 8px; }
@media (min-width: 744px) and (hover: hover) {
    .scroll-arrow {
        display: flex;
    }
    .location-scroll-wrap:hover .scroll-arrow {
        opacity: 1;
        pointer-events: auto;
    }
    .scroll-arrow:hover {
        background: var(--glass-bg-medium);
        backdrop-filter: blur(var(--glass-blur)) saturate(200%) brightness(1.08);
        box-shadow: 0 4px 16px rgba(0,0,0,0.16), var(--glass-shadow-inset);
        transform: translateY(-50%) scale(1.08);
    }
    .scroll-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }
}
@media (min-width: 1024px) {
    .scroll-arrow { display: none !important; }
}

/* --- About Section — Desktop Layout --- */
@media (min-width: 744px) {
    .about-desktop-layout {
        flex-direction: row !important;
        align-items: center !important;
        gap: var(--space-24) !important;
    }
    .about-desktop-layout .about-avatar {
        width: 72px !important;
        height: 72px !important;
    }
    .about-desktop-layout .about-bio {
        max-width: 600px;
    }
}

/* --- Animated Scan Button Glow Pulse --- */
@keyframes scanGlow {
    0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.12); }
    50% { box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 20px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.15); }
}
.tab-scan.active .tab-scan-btn {
    animation: scanGlow 2.5s ease-in-out infinite;
}

/* --- Filter Chip Active Glow --- */
.filter-chip.active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* --- Bottom Sheet Backdrop Blur --- */
.sheet-backdrop {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* --- Success Overlay Enhancement --- */
.success-overlay {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* ============================================================
   TIER 2 — Real QR Scanner
   ============================================================ */

/* --- QR Video Feed --- */
#qr-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* --- Scan Frame Success Flash --- */
.scan-frame.scan-success .scan-corner {
    border-color: var(--color-success);
    transition: border-color 0.2s ease;
}
.scan-frame.scan-success .scan-line {
    background: linear-gradient(90deg, transparent, var(--color-success), transparent);
}

/* --- Live Scanner Instruction --- */
.scan-instruction-live {
    animation: instructionPulse 2s ease-in-out infinite;
}
@keyframes instructionPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* --- Camera Fallback UI --- */
.scan-fallback {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    padding: 0 var(--space-32);
    gap: var(--space-16);
}
.scan-fallback-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.scan-fallback-icon svg,
.scan-fallback-icon .icon {
    width: 32px;
    height: 32px;
    color: #FFFFFF;
}
.scan-fallback-title {
    font-family: var(--font-brand);
    font-size: 20px;
    font-weight: 700;
}
.scan-fallback-desc {
    font-size: 15px;
    opacity: 0.7;
    line-height: 1.5;
    max-width: 280px;
}

/* ============================================================
   QR Scan Result Animations — Kayak Accepted / Denied
   ============================================================ */

/* --- Shared Overlay --- */
.scan-result-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.scan-result-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* --- ACCEPTED Overlay --- */
.scan-result-overlay.accepted {
    background: linear-gradient(170deg, #0a3d1a 0%, #0d6b2e 30%, #15803d 60%, #166534 100%);
    overflow: hidden;
}

/* Water waves at bottom */
.scan-water {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    overflow: hidden;
}
.scan-water-wave {
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    fill: rgba(255,255,255,0.08);
}
.scan-water-wave:nth-child(1) {
    animation: waveFlow 3s ease-in-out infinite;
}
.scan-water-wave:nth-child(2) {
    fill: rgba(255,255,255,0.05);
    animation: waveFlow 4s ease-in-out infinite reverse;
    bottom: -10px;
}
.scan-water-wave:nth-child(3) {
    fill: rgba(255,255,255,0.03);
    animation: waveFlow 5s ease-in-out infinite;
    bottom: -20px;
}

@keyframes waveFlow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-3%); }
}

/* Kayak SVG (accepted) */
.scan-kayak-accepted {
    width: 200px;
    height: auto;
    color: #FFFFFF;
    margin-bottom: var(--space-24);
    animation: kayakAcceptedEntry 1s var(--ease-spring) both;
}
@keyframes kayakAcceptedEntry {
    0% {
        opacity: 0;
        transform: translateX(-120px) rotate(-8deg) scale(0.6);
    }
    40% {
        opacity: 1;
        transform: translateX(10px) rotate(2deg) scale(1.05);
    }
    60% {
        transform: translateX(-5px) rotate(-1deg) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
    }
}

/* Kayak bob animation after entry */
.scan-result-overlay.show .scan-kayak-accepted {
    animation: kayakAcceptedEntry 1s var(--ease-spring) both,
               kayakBob 2s ease-in-out 1s infinite;
}
@keyframes kayakBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(1.5deg); }
    75% { transform: translateY(4px) rotate(-1deg); }
}

/* Paddle splash particles */
.scan-splash {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    animation: splashDrop 1.2s var(--ease-spring) both;
}
.scan-splash:nth-child(1) { left: 35%; top: 48%; animation-delay: 0.3s; }
.scan-splash:nth-child(2) { left: 55%; top: 45%; animation-delay: 0.5s; width: 6px; height: 6px; }
.scan-splash:nth-child(3) { left: 40%; top: 52%; animation-delay: 0.7s; width: 5px; height: 5px; }
.scan-splash:nth-child(4) { right: 35%; top: 50%; animation-delay: 0.4s; width: 7px; height: 7px; }
.scan-splash:nth-child(5) { right: 40%; top: 46%; animation-delay: 0.6s; width: 4px; height: 4px; }

@keyframes splashDrop {
    0% { opacity: 0; transform: scale(0) translateY(0); }
    30% { opacity: 1; transform: scale(1.5) translateY(-20px); }
    100% { opacity: 0; transform: scale(0) translateY(40px); }
}

/* Checkmark circle */
.scan-check-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-20);
    animation: checkCirclePop 0.6s var(--ease-bounce) 0.4s both;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.scan-check-circle svg {
    width: 36px;
    height: 36px;
    color: #FFFFFF;
}
.scan-check-circle svg path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}
.scan-result-overlay.show .scan-check-circle svg path {
    animation: drawCheck 0.5s ease 0.8s forwards;
}
@keyframes checkCirclePop {
    0% { transform: scale(0) rotate(-45deg); }
    60% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Accepted text */
.scan-result-title {
    font-family: var(--font-brand);
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    animation: resultTextSlide 0.5s var(--ease-spring) 0.6s both;
}
.scan-result-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-top: var(--space-8);
    animation: resultTextSlide 0.5s var(--ease-spring) 0.75s both;
}
@keyframes resultTextSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Radial glow behind kayak */
.scan-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* --- DENIED Overlay --- */
.scan-result-overlay.denied {
    background: linear-gradient(170deg, #4a0e0e 0%, #7f1d1d 30%, #991b1b 60%, #7f1d1d 100%);
    overflow: hidden;
}

/* Kayak SVG (denied — capsized) */
.scan-kayak-denied {
    width: 200px;
    height: auto;
    color: #FFFFFF;
    margin-bottom: var(--space-24);
    animation: kayakDeniedEntry 0.8s var(--ease-spring) both;
}
@keyframes kayakDeniedEntry {
    0% {
        opacity: 0;
        transform: translateY(-40px) rotate(0deg) scale(0.7);
    }
    30% {
        opacity: 1;
        transform: translateY(10px) rotate(15deg) scale(1.05);
    }
    50% {
        transform: translateY(-5px) rotate(-10deg) scale(1);
    }
    70% {
        transform: translateY(3px) rotate(8deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(25deg) scale(1);
    }
}

/* Kayak rock/wobble after entry */
.scan-result-overlay.show .scan-kayak-denied {
    animation: kayakDeniedEntry 0.8s var(--ease-spring) both,
               kayakRock 1.5s ease-in-out 0.8s infinite;
}
@keyframes kayakRock {
    0%, 100% { transform: rotate(25deg); }
    30% { transform: rotate(30deg) translateY(-3px); }
    60% { transform: rotate(20deg) translateY(2px); }
}

/* X mark circle */
.scan-x-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-20);
    animation: xCircleShake 0.6s var(--ease-bounce) 0.4s both;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.scan-x-circle svg {
    width: 36px;
    height: 36px;
    color: #FFFFFF;
}
.scan-x-circle svg line {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
}
.scan-result-overlay.show .scan-x-circle svg line:first-child {
    animation: drawX 0.3s ease 0.7s forwards;
}
.scan-result-overlay.show .scan-x-circle svg line:last-child {
    animation: drawX 0.3s ease 0.85s forwards;
}
@keyframes drawX {
    from { stroke-dashoffset: 24; }
    to { stroke-dashoffset: 0; }
}
@keyframes xCircleShake {
    0% { transform: scale(0); }
    40% { transform: scale(1.15); }
    55% { transform: scale(1) translateX(-6px); }
    70% { transform: translateX(6px); }
    85% { transform: translateX(-3px); }
    100% { transform: scale(1) translateX(0); }
}

/* Denied ripple rings */
.scan-denied-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: deniedRing 2s ease-out infinite;
}
.scan-denied-ring:nth-child(1) { animation-delay: 0s; }
.scan-denied-ring:nth-child(2) { animation-delay: 0.5s; }
.scan-denied-ring:nth-child(3) { animation-delay: 1s; }
@keyframes deniedRing {
    0% { transform: scale(0.5); opacity: 0.6; }
    100% { transform: scale(3); opacity: 0; }
}

/* Denied water — choppy waves */
.scan-water-denied {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    overflow: hidden;
}
.scan-water-denied .scan-water-wave {
    fill: rgba(255,255,255,0.06);
}
.scan-water-denied .scan-water-wave:nth-child(1) {
    animation: waveChoppy 1.5s ease-in-out infinite;
}
.scan-water-denied .scan-water-wave:nth-child(2) {
    animation: waveChoppy 2s ease-in-out infinite reverse;
    bottom: -8px;
}
@keyframes waveChoppy {
    0%, 100% { transform: translateX(0) scaleY(1); }
    25% { transform: translateX(-2%) scaleY(1.3); }
    50% { transform: translateX(1%) scaleY(0.8); }
    75% { transform: translateX(-1%) scaleY(1.2); }
}

/* Scan frame shake (for denied while on scan screen) */
.scan-frame.scan-denied {
    animation: frameDeniedShake 0.5s var(--ease-spring);
}
.scan-frame.scan-denied .scan-corner {
    border-color: var(--color-danger);
    transition: border-color 0.2s ease;
}
.scan-frame.scan-denied .scan-line {
    background: linear-gradient(90deg, transparent, var(--color-danger), transparent);
}
@keyframes frameDeniedShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-12px) rotate(-1deg); }
    30% { transform: translateX(10px) rotate(1deg); }
    45% { transform: translateX(-8px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
}

/* ============================================================
   AUTH SCREENS
   ============================================================ */

/* Auth container */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-32) var(--space-20) var(--space-24);
    text-align: center;
}

.auth-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-16);
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
}
.auth-icon .icon {
    width: 32px;
    height: 32px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-8);
    color: var(--text-primary);
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 300px;
    margin-bottom: var(--space-24);
}

/* Auth form */
.auth-form {
    width: 100%;
    max-width: 340px;
    text-align: left;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-6);
}

/* Phone input row */
.auth-phone-input {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--glass-bg-thin);
    backdrop-filter: blur(var(--glass-blur-subtle));
    -webkit-backdrop-filter: blur(var(--glass-blur-subtle));
    border: 0.5px solid var(--glass-border-subtle);
    border-radius: var(--glass-radius-sm);
    overflow: hidden;
    transition: all var(--glass-transition);
}
.auth-phone-input:focus-within {
    border-color: var(--text-primary);
}

.auth-phone-prefix {
    padding: 14px 12px 14px 16px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg);
    border-right: 1px solid var(--border);
    user-select: none;
    flex-shrink: 0;
}

.auth-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px;
    font-size: 17px;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
}
.auth-input::placeholder {
    color: var(--text-tertiary);
}

/* Full-width standalone input */
.auth-input-full {
    width: 100%;
    background: var(--glass-bg-thin);
    backdrop-filter: blur(var(--glass-blur-subtle));
    -webkit-backdrop-filter: blur(var(--glass-blur-subtle));
    border: 0.5px solid var(--glass-border-subtle);
    border-radius: var(--glass-radius-sm);
    padding: 14px 16px;
    font-size: 16px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: all var(--glass-transition);
    -webkit-appearance: none;
    box-sizing: border-box;
}
.auth-input-full:focus {
    border-color: var(--text-primary);
}

/* Simple code input — iOS autofill friendly */
.auth-code-simple {
    width: 100%;
    max-width: 240px;
    margin: 0 auto var(--space-16);
    display: block;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 12px;
    padding: 12px 8px 12px 20px;
    border: 1.5px solid var(--glass-border-subtle);
    border-radius: var(--glass-radius-sm);
    background: var(--glass-bg-thin);
    color: var(--text-primary);
    font-family: 'SF Mono', 'Menlo', 'Courier New', monospace;
    caret-color: var(--text-primary);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: border-color 0.2s ease;
}
.auth-code-simple:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.auth-code-simple::placeholder {
    color: var(--text-tertiary);
    letter-spacing: 12px;
}

/* Auth error message */
.auth-error {
    color: var(--color-danger);
    font-size: 14px;
    margin: var(--space-8) 0;
    text-align: center;
}

/* Verifying indicator */
.auth-verifying {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-secondary);
    margin: var(--space-12) 0;
}

/* Spinner */
.auth-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: authSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes authSpin {
    to { transform: rotate(360deg); }
}

/* Resend link */
.auth-resend {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    padding: var(--space-12) 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.auth-resend:active {
    color: var(--text-primary);
}
.auth-resend-disabled {
    pointer-events: none;
    opacity: 0.5;
    text-decoration: none;
}

/* Code expiry hint */
.auth-code-hint {
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
    margin-bottom: var(--space-4);
}

/* Shake animation for wrong code */
@keyframes authCodeShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}
.auth-code-shake {
    animation: authCodeShake 0.4s ease-out;
}

/* Legal text */
.auth-legal {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: var(--space-24);
    max-width: 280px;
    line-height: 1.5;
}

/* Back button */
.auth-back {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    padding: var(--space-4) 0;
    margin-bottom: var(--space-16);
    align-self: flex-start;
    font-family: inherit;
}
.auth-back .icon {
    width: 18px;
    height: 18px;
}
.auth-back:active {
    color: var(--text-primary);
}

/* Auth button */
.auth-btn {
    width: 100%;
    margin-top: var(--space-16);
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
}
.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Profile header (logged in) */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-24) var(--space-20);
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--text-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-12);
}
.profile-avatar .icon {
    width: 36px;
    height: 36px;
    color: white;
}

.profile-avatar-initial {
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: var(--space-4);
}

.profile-email {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-12);
}

.profile-edit {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-20);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}
.profile-edit:active {
    background: var(--surface);
}

/* History icon in rental list */
.history-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: var(--space-12);
}
.history-icon .icon,
.history-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* --- Stripe Card Element --- */
.stripe-card-element {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: border-color 0.2s;
}
.stripe-card-element:focus-within {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

/* --- Waiver --- */
.waiver-text {
    max-height: 300px;
    overflow-y: auto;
    padding: var(--space-16);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.waiver-text p {
    margin-bottom: var(--space-8);
}
.waiver-text strong {
    color: var(--text-primary);
}
.waiver-text ul {
    padding-left: 20px;
    margin: var(--space-8) 0;
}
.waiver-text li {
    margin-bottom: var(--space-4);
}

/* --- Waiver Scroll Gate --- */
.waiver-scroll-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin-top: var(--space-8);
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: #CC7700;
    animation: waiverBounce 2s ease-in-out infinite;
}
@keyframes waiverBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* --- Signature Pad --- */
.signature-pad-wrap {
    margin-top: var(--space-16);
}
.signature-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-8);
}
.signature-canvas {
    width: 100%;
    height: 150px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    cursor: crosshair;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.signature-canvas:active {
    border-color: var(--text-primary);
}
.signature-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-8);
}
.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

/* --- Charging Spinner --- */
.charging-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: authSpin 0.8s linear infinite;
    margin: 0 auto;
}

/* --- Lock Progress UI --- */
.lock-progress {
    text-align: center;
    padding: var(--space-32) 0;
}
.lock-progress-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-20);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lock-progress-spinner {
    width: 56px;
    height: 56px;
    border: 3px solid var(--border);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: authSpin 0.8s linear infinite;
}
.lock-progress-success {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lockPop 0.3s ease-out;
}
.lock-progress-success .icon,
.lock-progress-success svg {
    width: 28px;
    height: 28px;
    color: #2e7d32;
}
.lock-progress-error {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffebee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lock-progress-error .icon,
.lock-progress-error svg {
    width: 28px;
    height: 28px;
    color: #c62828;
}
.lock-progress-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-8);
}
.lock-progress-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}
@keyframes lockPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Passkey Display --- */
.passkey-display {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 6px;
    padding: var(--space-16) var(--space-24);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: inline-block;
    color: var(--text-primary);
}

/* ============================================================
   CHAT (SMS Bridge)
   ============================================================ */

.chat-sheet {
    display: flex;
    flex-direction: column;
    height: 70vh;
    max-height: 70vh;
    margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-20)) calc(-1 * var(--space-32));
    padding: 0;
}

.chat-header {
    padding: var(--space-16) var(--space-20);
    border-bottom: 0.5px solid var(--separator);
    flex-shrink: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-12) var(--space-16);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.chat-bubble-row { display: flex; width: 100%; }
.chat-row-right { justify-content: flex-end; }
.chat-row-left { justify-content: flex-start; }

.chat-bubble {
    max-width: 78%;
    padding: var(--space-8) var(--space-12);
    border-radius: 16px;
    word-break: break-word;
}

.chat-bubble-user {
    background: var(--color-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble-admin {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-bubble-text { font-size: 15px; line-height: 1.4; }
.chat-bubble-time { font-size: 11px; margin-top: 2px; opacity: 0.6; }

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-8) var(--space-12);
    padding-bottom: max(var(--space-8), var(--safe-bottom));
    border-top: 0.5px solid var(--separator);
    background: var(--bg-primary);
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: var(--space-8) var(--space-12);
    border: 1px solid var(--separator-opaque);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    min-height: 36px;
}
.chat-input:focus { border-color: var(--color-primary); }

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.chat-send-btn:disabled { opacity: 0.3; cursor: default; }
.chat-send-btn svg { width: 18px; height: 18px; }

.chat-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #FF3B30;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Damage Report Form */
.damage-photo-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.damage-photo-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border-color);
}
.damage-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

/* --- Floating Help Button --- */
.help-fab {
    position: fixed;
    bottom: calc(var(--tab-bar-height) + 12px);
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--text-on-primary);
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1200;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-display);
}
.help-fab:active { transform: scale(0.9); }
.help-fab.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

/* --- Help Sheet FAQ --- */
.help-quick-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    margin-bottom: var(--space-20);
}
.help-quick-btn {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-12) var(--space-16);
    background: var(--glass-bg-thin);
    backdrop-filter: blur(var(--glass-blur-subtle));
    -webkit-backdrop-filter: blur(var(--glass-blur-subtle));
    border: 0.5px solid var(--glass-border-subtle);
    border-radius: var(--glass-radius-sm);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--glass-transition);
    width: 100%;
}
.help-quick-btn:active { background: var(--separator); }
.help-quick-btn .icon { width: 20px; height: 20px; flex-shrink: 0; }
.help-quick-btn-desc {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 2px;
}

.faq-list { margin-bottom: var(--space-16); }
.faq-item {
    border-bottom: 1px solid var(--separator);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-12) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    gap: var(--space-8);
}
.faq-question .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--text-secondary);
}
.faq-question.open .icon { transform: rotate(90deg); }
.faq-answer {
    display: none;
    padding: 0 0 var(--space-12);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.faq-answer.open { display: block; }

/* --- Glass Fallback (no backdrop-filter support) --- */
@supports not (backdrop-filter: blur(1px)) {
    .header { background: var(--material-thick); }
    .tab-bar { background: var(--material-thick); border-color: var(--separator); }
    .bottom-sheet { background: var(--bg-elevated); }
    .location-card, .kayak-card, .info-card { background: var(--bg-tertiary); }
    .list-group { background: var(--bg-tertiary); }
    .quick-action-icon { background: var(--bg-secondary); }
    .filter-chip { background: var(--bg-secondary); }
    .segmented-control { background: var(--bg-secondary); }
    .btn-secondary { background: var(--bg-secondary); }
    .scroll-arrow { background: var(--material-thick); }
    .help-quick-btn { background: var(--bg-secondary); }
    .weather-badge { background: var(--bg-secondary); }
    .ble-glass-panel { background: rgba(30, 30, 30, 0.95); }
    .ble-lock-toggle { background: rgba(255, 255, 255, 0.1); }
    .toast.success { background: #34C759; }
    .toast.error { background: #FF3B30; }
    .toast.info { background: #5856D6; }
}

/* --- Performance Hints --- */
.location-scroll, .kayak-grid, .info-cards {
    contain: layout style paint;
}
.location-card, .kayak-card {
    will-change: transform;
}

/* --- Reservation Banner --- */
.reservation-banner {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-12) var(--space-16);
    margin: 0 var(--space-20) var(--space-16);
    background: #e8f5e9;
    border-radius: var(--radius-lg);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
}
.reservation-banner:active { transform: scale(0.98); }
.reservation-banner-now { background: #fff3e0; }
.reservation-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.reservation-banner-icon svg { width: 18px; height: 18px; }
.reservation-banner-now .reservation-banner-icon { background: #e65100; }
.reservation-banner-text { flex: 1; min-width: 0; }
.reservation-banner-title { font-size: 15px; font-weight: 600; color: #1b5e20; }
.reservation-banner-now .reservation-banner-title { color: #bf360c; }
.reservation-banner-sub { font-size: 13px; color: #388e3c; margin-top: 1px; }
.reservation-banner-now .reservation-banner-sub { color: #e65100; }

/* --- Tab Badge --- */
.tab-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--color-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* --- Onboarding Welcome Overlay --- */
#onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
#onboarding-overlay.visible { opacity: 1; }
.onboarding-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-radius: 24px;
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    padding: 36px 28px 28px;
    max-width: 300px;
    width: calc(100% - 48px);
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.45s var(--ease-spring);
}
#onboarding-overlay.visible .onboarding-card {
    transform: scale(1) translateY(0);
}
.onboarding-emoji {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 12px;
}
.onboarding-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 22px;
    margin: 0 0 8px;
    color: var(--text-primary);
}
.onboarding-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px;
}
.onboarding-steps {
    text-align: left;
    margin: 0 0 20px;
}
.onboarding-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    padding: 6px 0;
}
.onboarding-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.onboarding-btn {
    width: 100%;
    font-size: 17px;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}
.onboarding-never {
    display: inline-block;
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: none;
    padding: 4px 0;
}
.onboarding-never:active { opacity: 0.5; }

/* --- Print Styles --- */
@media print {
    #splash, .header, .tab-bar, .sheet-backdrop, .bottom-sheet-handle,
    .offline-banner, .ble-banner, .toast-container, .btn-print, .help-fab,
    .confirm-dialog-actions { display: none !important; }
    body { overflow: visible; background: #fff !important; color: #000; }
    #app { display: block; height: auto; overflow: visible; }
    .bottom-sheet {
        position: static !important;
        transform: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 20px !important;
        overflow: visible !important;
    }
    #sheet-content { overflow: visible !important; }
    * { box-shadow: none !important; }
}
