/**
 * TempoMail Modern Design System Engine
 * Authoritative Tokens & Dark/Light Styling Engine for TempoMail
 * 
 * Themes:
 * - Obsidian Dark Theme: Canvas #000000, Card Surface #121214, Secondary #1c1c1e, Tertiary #2c2c2e, Hairline rgba(255,255,255,0.08)
 * - Cupertino Ceramic Light Theme: Canvas #f5f5f7, Card Surface #ffffff, Secondary #ffffff, Tertiary #f2f2f7, Hairline rgba(0,0,0,0.07)
 * - Tempo Cupertino Warm Amber/Orange Accent: #ff7700 with smooth glowing aura
 * - Squircles: 36px hero, 24px cards, 16px modals, 9999px pills
 * - Tactile Buttons: active scale(0.97) transform
 * - Zero White Leaks across Bootstrap & Select2
 */

/* ==========================================================================
   1. DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */

:root,
[data-theme="light"] {
    /* Typography Stacks */
    --tempo-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", Inter, system-ui, -apple-system-headline, sans-serif;
    --tempo-font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", Inter, system-ui, -apple-system-body, sans-serif;
    --tempo-font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* Tracking (Tempo SF Pro Spec) */
    --tempo-tracking-display: -0.035em;
    --tempo-tracking-headline: -0.025em;
    --tempo-tracking-body: -0.015em;
    --tempo-tracking-eyebrow: +0.06em;

    /* Cupertino Ceramic Light Palette */
    --tempo-canvas: #f5f5f7;
    --tempo-card-surface: #ffffff;
    --tempo-surface-secondary: #ffffff;
    --tempo-surface-tertiary: #f2f2f7;
    --tempo-surface-elevated: #ffffff;
    --tempo-surface-recessed: #e5e5ea;
    --tempo-hairline: rgba(0, 0, 0, 0.07);
    --tempo-hairline-strong: rgba(0, 0, 0, 0.14);
    --tempo-border: rgba(0, 0, 0, 0.08);

    /* Tempo Text Hierarchy (Light) */
    --tempo-text-primary: #1d1d1f;
    --tempo-text-secondary: #6e6e73;
    --tempo-text-tertiary: #86868b;
    --tempo-text-muted: #aeaeb2;

    /* Cupertino Signature Warm Amber/Orange Accent */
    --tempo-accent: #ff7700;
    --tempo-accent-hover: #e66b00;
    --tempo-accent-active: #cc5e00;
    --tempo-accent-contrast: #ffffff;
    --tempo-accent-subtle: rgba(255, 119, 0, 0.08);
    --tempo-accent-glow: rgba(255, 119, 0, 0.28);
    --tempo-accent-glow-subtle: rgba(255, 119, 0, 0.12);

    /* Tempo Squircles (Continuous Curve Radii) */
    --tempo-radius-hero: 36px;
    --tempo-radius-card: 24px;
    --tempo-radius-modal: 16px;
    --tempo-radius-input: 12px;
    --tempo-radius-button: 14px;
    --tempo-radius-chip: 8px;
    --tempo-radius-pill: 9999px;

    /* Tempo Depth & Inset Highlights */
    --tempo-shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
    --tempo-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    --tempo-shadow-modal: 0 20px 48px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    --tempo-shadow-glow: 0 0 24px rgba(255, 119, 0, 0.28), 0 0 48px rgba(255, 119, 0, 0.12);
    --tempo-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);

    /* Project Variable Compatibility */
    --primary_color: #ff7700;
    --primary_opacity: rgba(255, 119, 0, 0.12);
    --secondary_color: #e66b00;
    --background_color: #f5f5f7;
    --text_color: #1d1d1f;
    --text_muted: #6e6e73;
    --footer_background_color: #1c1c1e;
    --secondary_text_color: #ffffff;
}

/* Obsidian Dark Theme - Explicit Class & Attribute */
html[data-theme="dark"],
html.dark,
body[data-theme="dark"] {
    /* Obsidian Dark Palette */
    --tempo-canvas: #000000;
    --tempo-card-surface: #121214;
    --tempo-surface-secondary: #1c1c1e;
    --tempo-surface-tertiary: #2c2c2e;
    --tempo-surface-elevated: #1e1e22;
    --tempo-surface-recessed: #0a0a0c;
    --tempo-hairline: rgba(255, 255, 255, 0.08);
    --tempo-hairline-strong: rgba(255, 255, 255, 0.16);
    --tempo-border: rgba(255, 255, 255, 0.08);

    /* Tempo Text Hierarchy (Dark) */
    --tempo-text-primary: #f5f5f7;
    --tempo-text-secondary: #a1a1a6;
    --tempo-text-tertiary: #636366;
    --tempo-text-muted: #48484a;

    /* Cupertino Signature Warm Amber/Orange Accent (Dark OLED) */
    --tempo-accent: #ff7700;
    --tempo-accent-hover: #ff8c24;
    --tempo-accent-active: #e06900;
    --tempo-accent-contrast: #ffffff;
    --tempo-accent-subtle: rgba(255, 119, 0, 0.14);
    --tempo-accent-glow: rgba(255, 119, 0, 0.38);
    --tempo-accent-glow-subtle: rgba(255, 119, 0, 0.18);

    /* Tempo Dark Shadows & Inset Highlights */
    --tempo-shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.6);
    --tempo-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --tempo-shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --tempo-shadow-glow: 0 0 28px rgba(255, 119, 0, 0.40), 0 0 56px rgba(255, 119, 0, 0.18);
    --tempo-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);

    /* Project Variable Compatibility (Dark) */
    --primary_color: #ff7700;
    --primary_opacity: rgba(255, 119, 0, 0.16);
    --secondary_color: #ff8c24;
    --background_color: #000000;
    --text_color: #f5f5f7;
    --text_muted: #a1a1a6;
    --footer_background_color: #08080a;
    --secondary_text_color: #ffffff;
}

/* Auto Dark Scheme (if no explicit light theme set) */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]):not(.light) {
        --tempo-canvas: #000000;
        --tempo-card-surface: #121214;
        --tempo-surface-secondary: #1c1c1e;
        --tempo-surface-tertiary: #2c2c2e;
        --tempo-surface-elevated: #1e1e22;
        --tempo-surface-recessed: #0a0a0c;
        --tempo-hairline: rgba(255, 255, 255, 0.08);
        --tempo-hairline-strong: rgba(255, 255, 255, 0.16);
        --tempo-border: rgba(255, 255, 255, 0.08);
        --tempo-text-primary: #f5f5f7;
        --tempo-text-secondary: #a1a1a6;
        --tempo-text-tertiary: #636366;
        --tempo-text-muted: #48484a;
        --tempo-accent: #ff7700;
        --tempo-accent-hover: #ff8c24;
        --tempo-accent-active: #e06900;
        --tempo-accent-contrast: #ffffff;
        --tempo-accent-subtle: rgba(255, 119, 0, 0.14);
        --tempo-accent-glow: rgba(255, 119, 0, 0.38);
        --tempo-accent-glow-subtle: rgba(255, 119, 0, 0.18);
        --tempo-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        --tempo-shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        --tempo-shadow-glow: 0 0 28px rgba(255, 119, 0, 0.40), 0 0 56px rgba(255, 119, 0, 0.18);
        --tempo-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);

        --primary_color: #ff7700;
        --primary_opacity: rgba(255, 119, 0, 0.16);
        --secondary_color: #ff8c24;
        --background_color: #000000;
        --text_color: #f5f5f7;
        --text_muted: #a1a1a6;
        --footer_background_color: #08080a;
        --secondary_text_color: #ffffff;
    }
}

/* ==========================================================================
   2. GLOBAL TYPOGRAPHY & BODY SYSTEM
   ========================================================================== */

html {
    color-scheme: light;
    background-color: var(--tempo-canvas);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[data-theme="dark"],
html.dark {
    color-scheme: dark;
}

body {
    font-family: var(--tempo-font-body) !important;
    letter-spacing: var(--tempo-tracking-body);
    background-color: var(--tempo-canvas) !important;
    color: var(--tempo-text-primary) !important;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Display Headlines with tight tracking */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.hero-title, .section-title, .card-title {
    font-family: var(--tempo-font-display) !important;
    letter-spacing: var(--tempo-tracking-display) !important;
    font-weight: 700;
    color: var(--tempo-text-primary);
}

h4, h5, h6,
.h4, .h5, .h6 {
    letter-spacing: var(--tempo-tracking-headline) !important;
    font-weight: 600;
}

p, span, div, li {
    letter-spacing: var(--tempo-tracking-body);
}

/* Developer & Tool Monospace Standards */
code, pre, kbd, samp,
.font-monospace,
.email-address,
.otp-token,
.api-key,
.domain-pill,
.token-badge {
    font-family: var(--tempo-font-mono) !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Tabular Figures for Counters & Numbers */
.tabular-nums,
.counter,
.stats-number,
.timer,
.badge-count {
    font-variant-numeric: tabular-nums !important;
}

/* Micro-Labels & Eyebrows */
.eyebrow,
.micro-label,
.badge-eyebrow,
.text-eyebrow {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: var(--tempo-tracking-eyebrow) !important;
    font-weight: 700 !important;
    color: var(--tempo-text-secondary);
}

/* ==========================================================================
   3. Continuous Squircles & CONTINUOUS CURVES
   ========================================================================== */

/* Hero Container Squircles (36px) */
.hero,
.hero-section,
.hero-container,
.hero-card,
.squircle-hero {
    border-radius: var(--tempo-radius-hero) !important;
}

/* Card Surface Squircles (24px) */
.card,
.tempo-card,
.ios-card,
.panel,
.widget-box,
.mailbox-card,
.email-box,
.email-inbox,
.email-reader,
.squircle-card {
    border-radius: var(--tempo-radius-card) !important;
}

/* Modal & Dialog Squircles (16px) */
.modal-content,
.modal-dialog .modal-content,
.dropdown-menu,
.popover,
.squircle-modal {
    border-radius: var(--tempo-radius-modal) !important;
}

/* Form Input Squircles (12px) */
.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.squircle-input {
    border-radius: var(--tempo-radius-input) !important;
}

/* Button Squircles (14px) */
.btn,
.btn-tactile,
.nav-action-btn,
.squircle-button {
    border-radius: var(--tempo-radius-button) !important;
}

/* Pills & Badges (9999px continuous curves) */
.badge,
.pill,
.btn-pill,
.tag,
.rounded-pill,
.badge-pill,
.squircle-pill {
    border-radius: var(--tempo-radius-pill) !important;
}

/* ==========================================================================
   4. TACTILE BUTTONS & SPRING PHYSICS
   ========================================================================== */

.btn,
button.btn,
a.btn,
.btn-tactile,
.nav-action-btn,
.action-btn,
.copy-btn,
.refresh-btn,
.delete-btn,
.plan-switcher-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: -0.015em;
    transform: translateZ(0);
    transform-origin: center center;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.16s ease,
                border-color 0.16s ease,
                opacity 0.16s ease !important;
}

/* Tactile Active Spring Scale */
.btn:active,
button.btn:active,
a.btn:active,
.btn-tactile:active,
.nav-action-btn:active,
.action-btn:active,
.copy-btn:active,
.refresh-btn:active,
.delete-btn:active,
.plan-switcher-item:active {
    transform: scale(0.97) !important;
}

/* Tempo Primary Button with Cupertino Warm Amber/Orange */
.btn-primary,
.btn-accent,
.btn-theme {
    background-color: var(--tempo-accent) !important;
    background: var(--tempo-accent) !important;
    border: 1px solid var(--tempo-accent) !important;
    color: var(--tempo-accent-contrast) !important;
    box-shadow: 0 4px 16px var(--tempo-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.btn-primary:hover,
.btn-accent:hover,
.btn-theme:hover {
    background-color: var(--tempo-accent-hover) !important;
    background: var(--tempo-accent-hover) !important;
    border-color: var(--tempo-accent-hover) !important;
    color: var(--tempo-accent-contrast) !important;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 24px var(--tempo-accent-glow), 0 0 32px var(--tempo-accent-glow-subtle), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.btn-primary:active,
.btn-accent:active,
.btn-theme:active {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 8px var(--tempo-accent-glow) !important;
}

/* Secondary Button Tactile Glass Style */
.btn-secondary,
.btn-outline-secondary,
.btn-outline-light {
    background-color: var(--tempo-surface-tertiary) !important;
    border: 1px solid var(--tempo-hairline-strong) !important;
    color: var(--tempo-text-primary) !important;
    box-shadow: var(--tempo-shadow-subtle) !important;
}

.btn-secondary:hover,
.btn-outline-secondary:hover,
.btn-outline-light:hover {
    background-color: var(--tempo-surface-elevated) !important;
    color: var(--tempo-text-primary) !important;
    border-color: var(--tempo-hairline-strong) !important;
    transform: translateY(-1px);
}

.btn-secondary:active,
.btn-outline-secondary:active,
.btn-outline-light:active {
    transform: scale(0.97) !important;
}

/* ==========================================================================
   5. GLOWING AURA & AMBIENT ARCHITECTURE
   ========================================================================== */

.glow-aura,
.accent-glow {
    box-shadow: var(--tempo-shadow-glow) !important;
}

.glow-aura-border {
    position: relative;
}

.glow-aura-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 24px var(--tempo-accent-glow);
    opacity: 0.8;
    z-index: 0;
}

/* Tactile Focus Aura Rings */
.form-control:focus,
.form-select:focus,
.btn:focus-visible,
button:focus-visible,
.select2-container--focus .select2-selection {
    outline: none !important;
    border-color: var(--tempo-accent) !important;
    box-shadow: 0 0 0 3px var(--tempo-accent-subtle), 0 0 16px var(--tempo-accent-glow-subtle) !important;
}

/* Ambient Radial Canvas Lighting (Hero Background) */
.ambient-glow-canvas {
    position: relative;
    overflow: hidden;
}

.ambient-glow-canvas::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, var(--tempo-accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

/* ==========================================================================
   6. GLOBAL OBSIDIAN DARK MODE ENGINE (ZERO WHITE LEAKS)
   ========================================================================== */

/* Strict Dark Mode Body Canvas */
html[data-theme="dark"] body,
html.dark body {
    background-color: #000000 !important;
    background-image: 
        radial-gradient(900px circle at 50% -120px, rgba(255, 119, 0, 0.10), transparent 70%),
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) !important;
    background-size: 100% 100%, 28px 28px !important;
    color: #f5f5f7 !important;
}

/* Bootstrap .card & Surfaces (Obsidian #121214) */
html[data-theme="dark"] .card,
html.dark .card,
html[data-theme="dark"] .card-group .card,
html[data-theme="dark"] .box-item,
html[data-theme="dark"] .dashboard-card {
    background-color: #121214 !important;
    background: #121214 !important;
    color: #f5f5f7 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .card-header,
html.dark .card-header {
    background-color: #161618 !important;
    background: #161618 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f5f5f7 !important;
}

html[data-theme="dark"] .card-body,
html.dark .card-body {
    background-color: transparent !important;
    color: #f5f5f7 !important;
}

html[data-theme="dark"] .card-footer,
html.dark .card-footer {
    background-color: #161618 !important;
    background: #161618 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #a1a1a6 !important;
}

/* Bootstrap .table & Grid Overrides (Zero White Leak) */
html[data-theme="dark"] .table,
html.dark .table,
html[data-theme="dark"] table,
html.dark table {
    background-color: #121214 !important;
    color: #f5f5f7 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .table > :not(caption) > * > *,
html.dark .table > :not(caption) > * > * {
    background-color: transparent !important;
    color: #f5f5f7 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .table thead th,
html.dark .table thead th,
html[data-theme="dark"] table thead th {
    background-color: #1c1c1e !important;
    color: #a1a1a6 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .table tbody tr:hover > *,
html.dark .table tbody tr:hover > * {
    background-color: #1c1c1e !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *,
html.dark .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

html[data-theme="dark"] .table-bordered,
html[data-theme="dark"] .table-bordered td,
html[data-theme="dark"] .table-bordered th {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Bootstrap .modal-content Overrides (#1c1c1e Secondary) */
html[data-theme="dark"] .modal-content,
html.dark .modal-content {
    background-color: #1c1c1e !important;
    background: #1c1c1e !important;
    color: #f5f5f7 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--tempo-radius-modal) !important;
}

html[data-theme="dark"] .modal-header,
html.dark .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f5f5f7 !important;
}

html[data-theme="dark"] .modal-footer,
html.dark .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background-color: #161618 !important;
}

html[data-theme="dark"] .modal-backdrop.show,
html.dark .modal-backdrop.show {
    background-color: #000000 !important;
    opacity: 0.8 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

html[data-theme="dark"] .btn-close,
html.dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}

/* Bootstrap .dropdown-menu Overrides (#1c1c1e) */
html[data-theme="dark"] .dropdown-menu,
html.dark .dropdown-menu {
    background-color: #1c1c1e !important;
    background: #1c1c1e !important;
    color: #f5f5f7 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--tempo-radius-modal) !important;
    padding: 6px !important;
}

html[data-theme="dark"] .dropdown-item,
html.dark .dropdown-item {
    color: #f5f5f7 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    transition: background-color 0.12s ease, color 0.12s ease;
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus,
html.dark .dropdown-item:hover,
html.dark .dropdown-item:focus {
    background-color: #2c2c2e !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .dropdown-divider,
html.dark .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Bootstrap .form-control & Inputs Overrides (Zero White Leaks) */
html[data-theme="dark"] .form-control,
html.dark .form-control,
html[data-theme="dark"] .form-select,
html.dark .form-select,
html[data-theme="dark"] input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
html.dark input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] textarea,
html.dark textarea,
html[data-theme="dark"] select,
html.dark select {
    background-color: #0b0d13 !important;
    background: #0b0d13 !important;
    color: #f5f5f7 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--tempo-radius-input) !important;
}

html[data-theme="dark"] .form-control::placeholder,
html.dark .form-control::placeholder,
html[data-theme="dark"] input::placeholder,
html.dark input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html.dark textarea::placeholder {
    color: #636366 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .form-control:focus,
html.dark .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html.dark .form-select:focus,
html[data-theme="dark"] input:focus,
html.dark input:focus,
html[data-theme="dark"] textarea:focus,
html.dark textarea:focus {
    background-color: #121214 !important;
    border-color: var(--tempo-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.20), 0 0 16px rgba(255, 119, 0, 0.15) !important;
}

html[data-theme="dark"] .input-group-text,
html.dark .input-group-text {
    background-color: #1c1c1e !important;
    color: #a1a1a6 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .form-label,
html.dark .form-label {
    color: #a1a1a6 !important;
}

/* ==========================================================================
   7. SELECT2 CONTAINERS (ZERO WHITE LEAKS)
   ========================================================================== */

html[data-theme="dark"] .select2-container--default .select2-selection--single,
html.dark .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple,
html.dark .select2-container--default .select2-selection--multiple {
    background-color: #0b0d13 !important;
    background: #0b0d13 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--tempo-radius-input) !important;
    color: #f5f5f7 !important;
    height: auto !important;
    min-height: 42px !important;
    padding: 6px 12px !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
html.dark .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f5f5f7 !important;
    line-height: 28px !important;
    padding-left: 0 !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder,
html.dark .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #636366 !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b,
html.dark .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #a1a1a6 transparent transparent transparent !important;
}

html[data-theme="dark"] .select2-dropdown,
html.dark .select2-dropdown {
    background-color: #1c1c1e !important;
    background: #1c1c1e !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85) !important;
    border-radius: var(--tempo-radius-modal) !important;
    overflow: hidden !important;
}

html[data-theme="dark"] .select2-results__option,
html.dark .select2-results__option {
    color: #f5f5f7 !important;
    background-color: transparent !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
}

html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
html.dark .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--tempo-accent) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"],
html.dark .select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #2c2c2e !important;
    color: var(--tempo-accent) !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .select2-search--dropdown .select2-search__field,
html.dark .select2-search--dropdown .select2-search__field {
    background-color: #0b0d13 !important;
    color: #f5f5f7 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice,
html.dark .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #2c2c2e !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f5f5f7 !important;
    border-radius: 6px !important;
}

/* ==========================================================================
   8. NAVIGATION, BRAND LOGOS & EXTENDED COMPONENTS
   ========================================================================== */

/* Navbar & Sticky State */
.nav,
.navbar {
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

html[data-theme="dark"] .nav,
html.dark .nav {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .nav-sticky,
html.dark .nav-sticky {
    background-color: rgba(18, 18, 20, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Brand Logos Switching */
html[data-theme="dark"] .white-logo,
html.dark .white-logo {
    display: block !important;
}

html[data-theme="dark"] .dark-logo,
html.dark .dark-logo {
    display: none !important;
}

html[data-theme="dark"] .nav-sticky .white-logo,
html.dark .nav-sticky .white-logo {
    display: block !important;
}

html[data-theme="dark"] .nav-sticky .dark-logo,
html.dark .nav-sticky .dark-logo {
    display: none !important;
}

/* Navigation Links */
html[data-theme="dark"] .nav-link,
html.dark .nav-link {
    color: #a1a1a6 !important;
}

html[data-theme="dark"] .nav-link:hover,
html.dark .nav-link:hover,
html[data-theme="dark"] .nav-link.active,
html.dark .nav-link.active {
    color: #ffffff !important;
}

/* Accordion & Collapse */
html[data-theme="dark"] .accordion-item,
html.dark .accordion-item {
    background-color: #121214 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
}

html[data-theme="dark"] .accordion-button,
html.dark .accordion-button {
    background-color: #161618 !important;
    color: #f5f5f7 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .accordion-button:not(.collapsed),
html.dark .accordion-button:not(.collapsed) {
    background-color: #1c1c1e !important;
    color: var(--tempo-accent) !important;
}

html[data-theme="dark"] .accordion-body,
html.dark .accordion-body {
    background-color: #121214 !important;
    color: #a1a1a6 !important;
}

/* List Groups */
html[data-theme="dark"] .list-group-item,
html.dark .list-group-item {
    background-color: #121214 !important;
    color: #f5f5f7 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Pagination */
html[data-theme="dark"] .page-link,
html.dark .page-link {
    background-color: #121214 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f5f5f7 !important;
}

html[data-theme="dark"] .page-item.active .page-link,
html.dark .page-item.active .page-link {
    background-color: var(--tempo-accent) !important;
    border-color: var(--tempo-accent) !important;
    color: #ffffff !important;
}

/* Footer Dark Mode Override */
html[data-theme="dark"] .footer,
html.dark .footer {
    background-color: #08080a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #a1a1a6 !important;
}

/* Preloader Dark Mode Override */
html[data-theme="dark"] .preloader,
html.dark .preloader {
    background-color: #000000 !important;
}

/* Tempo Smooth Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.16);
    border-radius: 9999px;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb,
html.dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover,
html.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32) !important;
}

/* ==========================================================================
   9. TEMPOMAIL SPECIFIC MAILBOX & HERO UTILITY ENHANCEMENTS
   ========================================================================== */

/* Mailbox Hero Card Squircles & Tactile Depth */
.mailbox-card,
.email-box {
    border: 1px solid var(--tempo-hairline-strong) !important;
    box-shadow: var(--tempo-shadow-card) !important;
    position: relative;
    overflow: hidden;
}

/* Plan Switcher Continuous Curve Pill */
.plan-switcher {
    border-radius: var(--tempo-radius-pill) !important;
    padding: 4px !important;
}

html[data-theme="dark"] .plan-switcher,
html.dark .plan-switcher {
    background-color: #121214 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .plan-switcher .plan-switcher-item,
html.dark .plan-switcher .plan-switcher-item {
    color: #a1a1a6 !important;
    border-radius: var(--tempo-radius-pill) !important;
}

html[data-theme="dark"] .plan-switcher .plan-switcher-item.active,
html.dark .plan-switcher .plan-switcher-item.active {
    background-color: var(--tempo-accent) !important;
    color: #ffffff !important;
}


/* ==========================================================================
   EXTRACTED FROM frontend/themes/basic/sections/change.blade.php
   ========================================================================== */

/* ===================================================
   TempoMail Bottom-Sheet / Squircle Modal Design
   =================================================== */
.ios-sheet-dialog {
    max-width: 480px !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (max-width: 575.98px) {
    .ios-sheet-modal .modal-dialog {
        margin: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-width: 100% !important;
    }
    .ios-sheet-modal .modal-content {
        border-radius: 28px 28px 0 0 !important;
    }
}

.ios-sheet-content {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 28px !important;
    box-shadow: 
        0 25px 60px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    overflow: hidden;
    padding-bottom: 8px;
}

.ios-sheet-grabber-bar {
    display: flex;
    justify-content: center;
    padding: 12px 0 10px;
}

.ios-sheet-grabber {
    width: 40px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

.ios-sheet-grabber:hover {
    background: #94a3b8;
}

.ios-modal-badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(121, 62, 241, 0.1);
    color: var(--primary_color, #793ef1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ios-sheet-close {
    background-size: 0.8em !important;
    padding: 10px !important;
    border-radius: 50% !important;
    transition: background-color 0.15s ease !important;
}

.ios-sheet-close:hover {
    background-color: #f1f5f9 !important;
}

.ios-form-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.01em;
}

.ios-input-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ios-input-group:focus-within {
    border-color: var(--primary_color, #793ef1);
    box-shadow: 0 0 0 3px rgba(121, 62, 241, 0.15);
    background: #ffffff;
}

.ios-input-prefix {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    padding-left: 14px !important;
}

.ios-form-input {
    background: transparent !important;
    border: none !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    padding: 11px 12px !important;
    box-shadow: none !important;
}

.ios-random-btn {
    border-radius: 10px !important;
    margin: 4px 5px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border: 1px solid rgba(121, 62, 241, 0.25) !important;
    background: rgba(121, 62, 241, 0.06) !important;
    color: var(--primary_color, #793ef1) !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.ios-random-btn:hover {
    background: var(--primary_color, #793ef1) !important;
    color: #ffffff !important;
    transform: scale(1.02) !important;
}

.ios-random-btn:active {
    transform: scale(0.96) !important;
}

.ios-select-wrapper .select2-container--default .select2-selection--single {
    height: 48px !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
}

.ios-select-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

.ios-primary-action-btn {
    border-radius: 14px !important;
    padding: 13px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 4px 16px rgba(121, 62, 241, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.ios-primary-action-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(121, 62, 241, 0.45) !important;
}

.ios-primary-action-btn:active {
    transform: translateY(1px) scale(0.98) !important;
}


/* ==========================================================================
   EXTRACTED FROM frontend/themes/basic/sections/faqs.blade.php
   ========================================================================== */

.tempo-faqs-section {
            position: relative;
        }

        .tempo-accordion-item {
            background: var(--tempo-card-surface, #ffffff);
            border: 1px solid var(--tempo-hairline, rgba(0, 0, 0, 0.08));
            border-radius: 18px;
            overflow: hidden;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
        }

        html[data-theme="dark"] .tempo-accordion-item,
        html.dark .tempo-accordion-item {
            background: #121214;
            border-color: rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
        }

        .tempo-accordion-item:hover {
            border-color: rgba(255, 119, 0, 0.4);
        }

        .tempo-accordion-button {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 24px;
            background: transparent !important;
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
            cursor: pointer;
            width: 100%;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .tempo-accordion-button::after {
            display: none !important;
        }

        .tempo-faq-title {
            font-size: 1.0625rem;
            font-weight: 600;
            letter-spacing: -0.015em;
            color: var(--tempo-text-primary, #1d1d1f);
            line-height: 1.4;
        }

        html[data-theme="dark"] .tempo-faq-title,
        html.dark .tempo-faq-title {
            color: #f5f5f7;
        }

        .tempo-accordion-button:not(.collapsed) .tempo-faq-title {
            color: var(--tempo-accent, #ff7700);
        }

        .tempo-faq-icon-circle {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(0, 0, 0, 0.06);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--tempo-text-secondary, #6e6e73);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        html[data-theme="dark"] .tempo-faq-icon-circle,
        html.dark .tempo-faq-icon-circle {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.08);
            color: #a1a1a6;
        }

        .tempo-faq-chevron {
            font-size: 0.8125rem;
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .tempo-accordion-button:not(.collapsed) .tempo-faq-icon-circle {
            background: var(--tempo-accent, #ff7700);
            border-color: var(--tempo-accent, #ff7700);
            color: #ffffff;
        }

        .tempo-accordion-button:not(.collapsed) .tempo-faq-chevron {
            transform: rotate(180deg);
        }

        .tempo-accordion-body {
            border-top: 1px solid rgba(0, 0, 0, 0.04);
        }

        html[data-theme="dark"] .tempo-accordion-body,
        html.dark .tempo-accordion-body {
            border-top-color: rgba(255, 255, 255, 0.05);
        }

        .tempo-faq-content {
            font-size: 0.95rem;
            line-height: 1.65;
            color: var(--tempo-text-secondary, #6e6e73);
        }

        html[data-theme="dark"] .tempo-faq-content,
        html.dark .tempo-faq-content {
            color: #a1a1a6;
        }


/* ==========================================================================
   EXTRACTED FROM frontend/themes/basic/sections/features.blade.php
   ========================================================================== */

.tempo-features-section {
            position: relative;
            overflow: hidden;
        }

        .tempo-eyebrow-badge {
            display: inline-flex;
            align-items: center;
            padding: 6px 16px;
            font-size: 0.8125rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: var(--tempo-accent, #ff7700);
            background: rgba(255, 119, 0, 0.08);
            border: 1px solid rgba(255, 119, 0, 0.2);
            border-radius: 9999px;
        }

        .tempo-bento-card {
            background: var(--tempo-card-surface, #ffffff);
            border: 1px solid var(--tempo-hairline, rgba(0, 0, 0, 0.08));
            border-radius: 24px;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        }

        html[data-theme="dark"] .tempo-bento-card,
        html.dark .tempo-bento-card {
            background: #121214;
            border-color: rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
        }

        .tempo-bento-card:hover {
            transform: translateY(-5px);
            border-color: var(--tempo-accent, #ff7700);
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 0 20px rgba(255, 119, 0, 0.15);
        }

        html[data-theme="dark"] .tempo-bento-card:hover,
        html.dark .tempo-bento-card:hover {
            border-color: rgba(255, 119, 0, 0.5);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 119, 0, 0.2);
        }

        .tempo-bento-icon-wrapper {
            display: flex;
            align-items: center;
        }

        .tempo-bento-icon {
            width: 54px;
            height: 54px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 119, 0, 0.1);
            color: var(--tempo-accent, #ff7700);
            font-size: 1.5rem;
            border: 1px solid rgba(255, 119, 0, 0.2);
            transition: transform 0.3s ease;
        }

        .tempo-bento-icon svg,
        .tempo-bento-icon i {
            width: 26px;
            height: 26px;
            fill: currentColor;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .tempo-bento-card:hover .tempo-bento-icon {
            transform: scale(1.08);
            background: var(--tempo-accent, #ff7700);
            color: #ffffff;
        }

        .tempo-bento-title {
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--tempo-text-primary, #1d1d1f);
            line-height: 1.35;
        }

        html[data-theme="dark"] .tempo-bento-title,
        html.dark .tempo-bento-title {
            color: #f5f5f7;
        }

        .tempo-bento-text {
            font-size: 0.95rem;
            line-height: 1.6;
            color: var(--tempo-text-secondary, #6e6e73);
        }

        html[data-theme="dark"] .tempo-bento-text,
        html.dark .tempo-bento-text {
            color: #a1a1a6;
        }


/* ==========================================================================
   EXTRACTED FROM frontend/themes/basic/sections/get_in_touch.blade.php
   ========================================================================== */

.tempo-cta-box {
            background: #0d0d0f;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 32px;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
            background-image: 
                radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
                linear-gradient(180deg, #18181b 0%, #0d0d0f 100%);
            background-size: 24px 24px, 100% 100%;
        }

        .tempo-cta-glow {
            position: absolute;
            top: -40%;
            right: -10%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(255, 119, 0, 0.3) 0%, rgba(255, 119, 0, 0.05) 50%, transparent 70%);
            pointer-events: none;
            z-index: 1;
            filter: blur(40px);
        }

        .tempo-cta-heading {
            font-size: 2.25rem;
            letter-spacing: -0.025em;
            color: #ffffff;
            line-height: 1.25;
        }

        @media (min-width: 768px) {
            .tempo-cta-heading {
                font-size: 2.75rem;
            }
        }

        .tempo-cta-text {
            color: #a1a1a6;
            font-size: 1.125rem;
            line-height: 1.6;
        }

        .tempo-cta-btn {
            background: var(--tempo-accent, #ff7700);
            border: 1px solid var(--tempo-accent, #ff7700);
            color: #ffffff;
            font-size: 1.0625rem;
            font-weight: 700;
            border-radius: 16px;
            box-shadow: 0 6px 24px rgba(255, 119, 0, 0.4);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            display: inline-flex;
            align-items: center;
        }

        .tempo-cta-btn:hover {
            background: #e66b00;
            border-color: #e66b00;
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(255, 119, 0, 0.55);
        }

        .tempo-cta-btn:active {
            transform: scale(0.98);
        }


/* ==========================================================================
   EXTRACTED FROM frontend/themes/basic/sections/history.blade.php
   ========================================================================== */

/* ===================================================
   Grouped List Styling
   =================================================== */
.ios-sheet-dialog-lg {
    max-width: 720px !important;
}

/* Search Input */
.ios-search-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0 14px;
    transition: all 0.2s ease;
}

.ios-search-group:focus-within {
    background: #ffffff;
    border-color: var(--primary_color, #793ef1);
    box-shadow: 0 0 0 3px rgba(121, 62, 241, 0.15);
}

.ios-search-icon {
    color: #94a3b8;
    font-size: 14px;
    margin-right: 10px;
}

.ios-search-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
    font-size: 14px !important;
    color: #0f172a !important;
}

.ios-delete-action-btn {
    border-radius: 12px !important;
    padding: 10px 18px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    white-space: nowrap;
}

.ios-delete-action-btn:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35) !important;
}

.ios-delete-action-btn:active:not(:disabled) {
    transform: scale(0.96) !important;
}

/* History Grouped Cards */
.ios-history-grouped-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 4px;
    border-radius: 18px;
}

.mail-history-day {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.mail-history-day-header {
    background: #f8fafc !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 0.02em !important;
}

.mail-history-day-body {
    padding: 0;
}

.mail-history-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #f8fafc !important;
    transition: background 0.15s ease !important;
    gap: 12px !important;
}

.mail-history-item:hover {
    background: #f8fafc !important;
}

.mail-history-item:last-child {
    border-bottom: none !important;
}

.mail-history-item span {
    font-size: 12px !important;
    color: #94a3b8 !important;
    white-space: nowrap;
}

.mail-history-item label.email {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    margin: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    flex-grow: 1;
}

.history_choose_email {
    border-radius: 10px !important;
    padding: 5px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    background: var(--primary_color, #793ef1) !important;
    border: none !important;
    color: #ffffff !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(121, 62, 241, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.history_choose_email:hover {
    transform: scale(1.04) !important;
    box-shadow: 0 4px 12px rgba(121, 62, 241, 0.35) !important;
}

.label_bluer {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    border-radius: 9999px !important;
    padding: 3px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
}

.mail-history-empty {
    padding: 40px 16px;
    color: #94a3b8;
}

/* History Footer Counter */
.ios-history-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
}

.ios-history-counter-pill {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 6px 18px;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
}


/* ==========================================================================
   EXTRACTED FROM frontend/themes/basic/sections/mail.blade.php
   ========================================================================== */

/* ===================================================
   TempoMail Squircle Chassis & Dynamic Status Capsule Design Tokens
   =================================================== */
.ios18-mail-chassis {
    position: relative;
    max-width: 780px !important;
    width: 100% !important;
    background: rgba(18, 22, 38, 0.78) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 28px !important;
    padding: 28px 26px !important;
    box-shadow: 
        0 24px 64px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 1px 0 rgba(255, 255, 255, 0.25) inset !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (max-width: 767.98px) {
    .ios18-mail-chassis {
        padding: 20px 16px !important;
        border-radius: 22px !important;
    }
}

/* Dynamic Island Capsule */
.ios-dynamic-island-wrapper {
    margin-bottom: 20px;
}

.ios-dynamic-island {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(10, 13, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 6px 16px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-dynamic-island:hover {
    background: rgba(14, 18, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.ios-island-left {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

/* Pulsing Green Beacon */
.ios-beacon-ring {
    position: absolute;
    left: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.6);
    animation: iosBeaconPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ios-beacon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16, 185, 129, 0.6);
}

@keyframes iosBeaconPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    70% {
        transform: scale(2.6);
        opacity: 0;
    }
    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

.ios-island-label {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #e2e8f0;
    text-transform: uppercase;
}

/* 15s Sync Pill */
.ios-island-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    transition: all 0.2s ease;
}

.ios-sync-icon {
    stroke: #94a3b8;
    animation: iosRotateSync 8s linear infinite;
}

@keyframes iosRotateSync {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ios-sync-pulse-active {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
}

.ios-sync-pulse-active .ios-sync-icon {
    stroke: #10b981 !important;
}

/* Address Capsule with Monospace Typography */
.ios-address-capsule {
    background: rgba(8, 10, 18, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    padding: 6px 8px 6px 18px !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ios-address-capsule:hover {
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4), 0 0 20px rgba(121, 62, 241, 0.25) !important;
}

.ios-input-container {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.ios-input-leading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #a5b4fc;
    font-size: 15px;
    flex-shrink: 0;
}

.ios-monospace-input {
    flex: 1 1 auto !important;
    height: 52px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
    font-size: 1.22rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    padding: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

@media (max-width: 575.98px) {
    .ios-monospace-input {
        font-size: 1rem !important;
        height: 44px !important;
    }
}

/* 1-Click Tactile Copy Pill with Spring Feedback */
.ios-copy-pill {
    position: relative !important;
    height: 48px !important;
    padding: 0 20px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ff4d12 0%, #ff6b3d 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    box-shadow: 
        0 4px 14px rgba(255, 77, 18, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.ios-copy-pill:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.03) !important;
    box-shadow: 
        0 6px 20px rgba(255, 77, 18, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.ios-copy-pill:active:not(:disabled) {
    transform: translateY(1px) scale(0.95) !important;
    box-shadow: 0 2px 6px rgba(255, 77, 18, 0.35) !important;
}

@media (max-width: 575.98px) {
    .ios-copy-pill {
        height: 40px !important;
        padding: 0 14px !important;
        font-size: 13px !important;
    }
    .ios-copy-label {
        display: none;
    }
}

/* iOS Segmented Toolbar */
.ios-segmented-toolbar {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    margin-top: 20px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    padding: 6px !important;
}

@media (max-width: 575.98px) {
    .ios-segmented-toolbar {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 4px !important;
        padding: 4px !important;
    }
}

.ios-toolbar-item {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 8px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: #f1f5f9 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ios-toolbar-item:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.ios-toolbar-item:active:not(:disabled) {
    transform: scale(0.95) !important;
}

.ios-toolbar-danger {
    color: #fca5a5 !important;
}

.ios-toolbar-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #ffffff !important;
}

@media (max-width: 991.98px) {
    .ios-toolbar-item .mail-action-text {
        display: none !important;
    }
    .ios-toolbar-item {
        padding: 12px 6px !important;
        font-size: 16px !important;
    }
}

/* Header Counters (iOS Widget Style) */
.ios-widget-counter {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    padding: 22px 24px !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

.ios-widget-counter:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

.ios-widget-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ios-widget-icon i {
    font-size: 26px !important;
}


/* ==========================================================================
   EXTRACTED FROM frontend/themes/basic/sections/mailbox.blade.php
   ========================================================================== */

/* ===================================================
   TempoMail Notification Table & Cells
   =================================================== */
.ios18-mailbox-chassis {
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 
        0 12px 36px -4px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(0, 0, 0, 0.06) !important;
    border: none !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* Mailbox Table Header */
.ios-mailbox-header {
    background: linear-gradient(180deg, #1e2433 0%, #151924 100%) !important;
    color: #e2e8f0 !important;
    padding: 6px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ios-mailbox-header .mailbox-header-item {
    padding: 14px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #cbd5e1 !important;
}

/* Empty State Minimalist Radar */
.ios-empty-state {
    padding: 60px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 380px !important;
}

.ios-radar-stage {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ios-radar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid rgba(121, 62, 241, 0.35);
    background: radial-gradient(circle, rgba(121, 62, 241, 0.08) 0%, transparent 70%);
    animation: iosRadarWave 3s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.ios-radar-pulse.pulse-2 {
    animation-delay: 1s;
}

.ios-radar-pulse.pulse-3 {
    animation-delay: 2s;
}

@keyframes iosRadarWave {
    0% {
        transform: scale(0.3);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.ios-empty-orb {
    position: relative;
    z-index: 2;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, #793ef1 0%, #9055ff 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -4px rgba(121, 62, 241, 0.45);
}

.ios-empty-headline {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em !important;
}

.ios-empty-subtext {
    font-size: 14.5px !important;
    color: #64748b !important;
    max-width: 320px;
}

.ios-live-sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.ios-sync-beacon-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: iosDotBlink 1.5s ease-in-out infinite alternate;
}

@keyframes iosDotBlink {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Mailbox Stream & Notification Cards */
.ios-mailbox-stream {
    padding: 10px 10px 16px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mailbox-item {
    margin: 4px 6px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 
        0 3px 12px -2px rgba(15, 23, 42, 0.04),
        0 1px 2px rgba(15, 23, 42, 0.02) !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    position: relative !important;
}

.mailbox-item:hover {
    transform: translateY(-2px) !important;
    background: #ffffff !important;
    border-color: rgba(121, 62, 241, 0.22) !important;
    box-shadow: 
        0 12px 28px -4px rgba(121, 62, 241, 0.12),
        0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

.mailbox-item-col {
    padding: 0 10px !important;
}

/* Sender Column with Avatar */
.ios-sender-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
}

.ios-avatar-capsule {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.mailbox-item-col:first-child p {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 2px !important;
}

.mailbox-item-col:first-child p.small {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 400 !important;
}

/* Subject Link */
.mailbox-item-col:nth-child(2) a.link-primary {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    transition: color 0.15s ease !important;
    display: inline-block;
}

.mailbox-item:hover .mailbox-item-col:nth-child(2) a.link-primary {
    color: var(--primary_color, #793ef1) !important;
}

/* 1-Click OTP Radar Chip */
.ios-otp-radar-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    padding: 3px 12px;
    font-size: 12px;
    color: #1e40af;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ios-otp-radar-pill:hover {
    transform: translateY(-1px) scale(1.03);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.22);
}

.ios-otp-radar-pill:active {
    transform: scale(0.95);
}

.ios-otp-radar-beacon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    animation: iosOtpPing 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes iosOtpPing {
    0% { transform: scale(0.9); opacity: 0.8; }
    70% { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

.ios-otp-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #1d4ed8;
}

.ios-otp-copy-btn {
    background: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    margin-left: 2px;
}

.ios-otp-copied {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

/* Time Column Pill */
.ios-time-pill {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

/* Disclosure Chevron */
.ios-card-chevron {
    color: #94a3b8;
    font-size: 12px;
    padding-left: 8px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mailbox-item:hover .ios-card-chevron {
    color: var(--primary_color, #793ef1);
    transform: translateX(2px);
}

/* Unread Badge */
.is_seen_message {
    position: absolute !important;
    top: 10px !important;
    right: 14px !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 9999px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

/* Login Banner Card */
.ios-account-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ios-banner-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(121, 62, 241, 0.1);
    color: var(--primary_color, #793ef1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ios-banner-btn {
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(121, 62, 241, 0.3) !important;
    transition: all 0.2s ease !important;
}

.ios-banner-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(121, 62, 241, 0.4) !important;
}


/* ==========================================================================
   EXTRACTED FROM frontend/themes/basic/sections/posts.blade.php
   ========================================================================== */

.tempo-posts-section {
                position: relative;
            }

            .tempo-editorial-card {
                display: flex;
                flex-direction: column;
                background: var(--tempo-card-surface, #ffffff);
                border: 1px solid var(--tempo-hairline, rgba(0, 0, 0, 0.08));
                border-radius: 22px;
                overflow: hidden;
                text-decoration: none !important;
                color: inherit !important;
                transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
            }

            html[data-theme="dark"] .tempo-editorial-card,
            html.dark .tempo-editorial-card {
                background: #121214;
                border-color: rgba(255, 255, 255, 0.08);
                box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
            }

            .tempo-editorial-card:hover {
                transform: translateY(-5px);
                border-color: var(--tempo-accent, #ff7700);
                box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 0 20px rgba(255, 119, 0, 0.12);
            }

            html[data-theme="dark"] .tempo-editorial-card:hover,
            html.dark .tempo-editorial-card:hover {
                border-color: rgba(255, 119, 0, 0.45);
                box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 119, 0, 0.18);
            }

            .tempo-card-img-wrapper {
                position: relative;
                width: 100%;
                aspect-ratio: 16 / 9;
                overflow: hidden;
                background: rgba(0, 0, 0, 0.04);
            }

            .tempo-card-img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
            }

            .tempo-editorial-card:hover .tempo-card-img {
                transform: scale(1.05);
            }

            .tempo-card-meta {
                font-size: 0.8125rem;
                font-weight: 500;
                color: var(--tempo-text-tertiary, #86868b);
            }

            html[data-theme="dark"] .tempo-card-meta,
            html.dark .tempo-card-meta {
                color: #8e8e93;
            }

            .tempo-card-title {
                font-size: 1.15rem;
                font-weight: 700;
                line-height: 1.4;
                letter-spacing: -0.015em;
                color: var(--tempo-text-primary, #1d1d1f);
                transition: color 0.2s ease;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            html[data-theme="dark"] .tempo-card-title,
            html.dark .tempo-card-title {
                color: #f5f5f7;
            }

            .tempo-editorial-card:hover .tempo-card-title {
                color: var(--tempo-accent, #ff7700);
            }

            .tempo-card-excerpt {
                font-size: 0.9375rem;
                line-height: 1.6;
                color: var(--tempo-text-secondary, #6e6e73);
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            html[data-theme="dark"] .tempo-card-excerpt,
            html.dark .tempo-card-excerpt {
                color: #a1a1a6;
            }

            .tempo-read-more {
                font-size: 0.875rem;
                font-weight: 600;
                color: var(--tempo-accent, #ff7700);
                display: inline-flex;
                align-items: center;
            }

            .tempo-arrow {
                font-size: 0.75rem;
                transition: transform 0.25s ease;
            }

            .tempo-editorial-card:hover .tempo-arrow {
                transform: translateX(4px);
            }


/* ==========================================================================
   EXTRACTED FROM frontend/themes/basic/sections/qrcode.blade.php
   ========================================================================== */

/* QR Code iOS Chassis */
.ios-qr-chassis {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ios-qr-frame {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 14px 40px -6px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(121, 62, 241, 0.12);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-qr-frame:hover {
    transform: scale(1.02);
}

.ios-qr-frame img,
.ios-qr-frame canvas {
    border-radius: 12px;
    display: block !important;
}

.ios-scan-instruction-pill {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}


/* ==========================================================================
   EXTRACTED FROM frontend/themes/basic/sections/all_plans.blade.php
   ========================================================================== */

.tempo-plan-switcher {
        display: inline-flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid var(--tempo-hairline, rgba(0, 0, 0, 0.08));
        border-radius: 9999px;
        padding: 5px;
        gap: 4px;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    html[data-theme="dark"] .tempo-plan-switcher,
    html.dark .tempo-plan-switcher {
        background: #18181b;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .tempo-plan-switcher .plan-switcher-item {
        padding: 9px 24px;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--tempo-text-secondary, #6e6e73);
        border-radius: 9999px;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        user-select: none;
    }

    html[data-theme="dark"] .tempo-plan-switcher .plan-switcher-item,
    html.dark .tempo-plan-switcher .plan-switcher-item {
        color: #a1a1a6;
    }

    .tempo-plan-switcher .plan-switcher-item.active {
        background: var(--tempo-accent, #ff7700);
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(255, 119, 0, 0.35);
    }

    .plans-item {
        display: none;
    }

    .plans-item.active {
        display: block;
        animation: tempoFadeIn 0.35s ease forwards;
    }

    @keyframes tempoFadeIn {
        from {
            opacity: 0;
            transform: translateY(6px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .plan {
        background: var(--tempo-card-surface, #ffffff);
        border: 1px solid var(--tempo-hairline, rgba(0, 0, 0, 0.08));
        border-radius: 24px;
        padding: 40px 32px;
        display: flex;
        flex-direction: column;
        height: 100%;
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }

    html[data-theme="dark"] .plan,
    html.dark .plan {
        background: #121214;
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    }

    .plan:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    }

    html[data-theme="dark"] .plan:hover,
    html.dark .plan:hover {
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    }

    .plan.is-featured,
    .plan:has(.card__ribbon) {
        border-color: var(--tempo-accent, #ff7700);
        box-shadow: 0 8px 30px rgba(255, 119, 0, 0.15);
    }

    .plan-title {
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: -0.015em;
        color: var(--tempo-text-primary, #1d1d1f);
        margin-bottom: 12px;
    }

    html[data-theme="dark"] .plan-title,
    html.dark .plan-title {
        color: #f5f5f7;
    }

    .plan-price {
        font-size: 2.5rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        color: var(--tempo-text-primary, #1d1d1f);
        line-height: 1.1;
        margin-bottom: 8px;
    }

    html[data-theme="dark"] .plan-price,
    html.dark .plan-price {
        color: #ffffff;
    }

    .plan-price .fz-15 {
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--tempo-text-secondary, #6e6e73);
    }

    html[data-theme="dark"] .plan-price .fz-15,
    html.dark .plan-price .fz-15 {
        color: #a1a1a6;
    }

    .plan-text {
        font-size: 0.9375rem;
        color: var(--tempo-text-secondary, #6e6e73);
        margin-bottom: 24px;
        min-height: 48px;
    }

    html[data-theme="dark"] .plan-text,
    html.dark .plan-text {
        color: #a1a1a6;
    }

    .plan .btn {
        border-radius: 14px;
        font-weight: 600;
        padding: 13px 24px;
        font-size: 1rem;
        transition: all 0.25s ease;
    }

    .plan .btn-primary {
        background: var(--tempo-accent, #ff7700);
        border-color: var(--tempo-accent, #ff7700);
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(255, 119, 0, 0.35);
    }

    .plan .btn-primary:hover {
        background: #e66b00;
        border-color: #e66b00;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(255, 119, 0, 0.45);
    }

    .plan .btn-outline-primary {
        border-color: var(--tempo-hairline-strong, rgba(0, 0, 0, 0.15));
        color: var(--tempo-text-primary, #1d1d1f);
        background: transparent;
    }

    html[data-theme="dark"] .plan .btn-outline-primary,
    html.dark .plan .btn-outline-primary {
        border-color: rgba(255, 255, 255, 0.15);
        color: #f5f5f7;
    }

    .plan .btn-outline-primary:hover {
        background: var(--tempo-accent, #ff7700);
        border-color: var(--tempo-accent, #ff7700);
        color: #ffffff;
    }

    .plan-features {
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid var(--tempo-hairline, rgba(0, 0, 0, 0.08));
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    html[data-theme="dark"] .plan-features,
    html.dark .plan-features {
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    .plan-feat {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 0.9375rem;
        color: var(--tempo-text-primary, #1d1d1f);
    }

    html[data-theme="dark"] .plan-feat,
    html.dark .plan-feat {
        color: #d1d1d6;
    }

    .plan-feat-icon {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: rgba(40, 199, 111, 0.12);
        color: #28c76f;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        flex-shrink: 0;
    }

    .plan-feat-icon-v2 {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.05);
        color: var(--tempo-text-muted, #aeaeb2);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        flex-shrink: 0;
    }

    html[data-theme="dark"] .plan-feat-icon-v2,
    html.dark .plan-feat-icon-v2 {
        background: rgba(255, 255, 255, 0.06);
        color: #636366;
    }

    /* Popular Ribbon Badge */
    .card__ribbon {
        position: absolute;
        top: 16px;
        right: 16px;
        padding: 4px 12px;
        background: var(--tempo-accent, #ff7700);
        color: #ffffff;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-radius: 9999px;
        box-shadow: 0 2px 8px rgba(255, 119, 0, 0.35);
    }

    .card__ribbon::after {
        content: var(--ribbon-text, attr(data-ribbon));
    }


/* ==========================================================================
   EXTRACTED FROM frontend/themes/basic/layouts/app.blade.php
   ========================================================================== */


/* ==========================================================================
   TEMPOMAIL COMPLETE COMPONENT ENGINE (SYNCHRONIZED FROM VERIFIED SPEC)
   ========================================================================== */

/* ==========================================================================
           TEMPOMAIL MODERN DESIGN SYSTEM TOKENS
           Codester Commercial Precision Standard
           ========================================================================== */
        :root {
            /* Tempo Primary Amber Accent */
            --tempo-tint: #ff7700;
            --tempo-tint-hover: #ea6c00;
            --tempo-tint-active: #d66200;
            --tempo-tint-subtle: rgba(255, 119, 0, 0.12);
            --tempo-tint-glow: rgba(255, 119, 0, 0.32);
            --tempo-tint-border: rgba(255, 119, 0, 0.38);

            /* Tempo Obsidian Dark Palette */
            --canvas: #000000;
            --surface-primary: #121214;
            --surface-secondary: #1c1c1e;
            --surface-tertiary: #2c2c2e;
            --surface-quaternary: #3a3a3c;
            --surface-island: #000000;
            --surface-glass: rgba(28, 28, 30, 0.76);
            --surface-glass-heavy: rgba(18, 18, 20, 0.92);
            --surface-capsule: rgba(255, 255, 255, 0.05);

            /* Tempo Hairlines */
            --hairline: rgba(255, 255, 255, 0.08);
            --hairline-prominent: rgba(255, 255, 255, 0.16);
            --hairline-tint: rgba(255, 119, 0, 0.45);
            --hairline-glass: rgba(255, 255, 255, 0.12);

            /* Tempo Typography */
            --text-primary: #ffffff;
            --text-secondary: #8e8e93;
            --text-tertiary: #636366;
            --text-quaternary: #48484a;

            /* Tempo System Status Colors */
            --tempo-green: #34c759;
            --tempo-green-subtle: rgba(52, 199, 89, 0.15);
            --tempo-blue: #0071e3;
            --tempo-purple: #af52de;
            --tempo-red: #ff453a;

            /* iOS Elevation & Shadow Rhythms */
            --shadow-island: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.14);
            --shadow-card: 0 24px 64px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
            --shadow-modal: 0 40px 100px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.15);
            --shadow-glow: 0 18px 48px -8px rgba(255, 119, 0, 0.28);

            /* Tempo Squircle Geometry */
            --radius-xs: 8px;
            --radius-sm: 12px;
            --radius-md: 18px;
            --radius-lg: 26px;
            --radius-xl: 36px;
            --radius-full: 9999px;

            /* Tempo Font Stacks */
            --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Plus Jakarta Sans", system-ui, sans-serif;
            --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Plus Jakarta Sans", system-ui, sans-serif;
            --font-mono: "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
        }

        /* Tempo Ceramic Light Mode */
        [data-theme="light"] {
            --tempo-tint: #ff6a00;
            --tempo-tint-hover: #e65f00;
            --tempo-tint-active: #cc5400;
            --tempo-tint-subtle: rgba(255, 106, 0, 0.08);
            --tempo-tint-glow: rgba(255, 106, 0, 0.18);
            --tempo-tint-border: rgba(255, 106, 0, 0.3);

            --canvas: #f5f5f7;
            --surface-primary: #ffffff;
            --surface-secondary: #ffffff;
            --surface-tertiary: #f2f2f7;
            --surface-quaternary: #e5e5ea;
            --surface-island: #1c1c1e;
            --surface-glass: rgba(255, 255, 255, 0.85);
            --surface-glass-heavy: rgba(245, 245, 247, 0.94);
            --surface-capsule: #f2f2f7;

            --hairline: rgba(0, 0, 0, 0.07);
            --hairline-prominent: rgba(0, 0, 0, 0.12);
            --hairline-tint: rgba(255, 106, 0, 0.35);
            --hairline-glass: rgba(0, 0, 0, 0.08);

            --text-primary: #1d1d1f;
            --text-secondary: #6e6e73;
            --text-tertiary: #86868b;
            --text-quaternary: #aeaeb2;

            --shadow-island: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
            --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.06);
            --shadow-modal: 0 32px 80px -16px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
            --shadow-glow: 0 14px 36px -6px rgba(255, 106, 0, 0.16);
        }

        /* Reset & Universal Rules */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body {
            background-color: var(--canvas);
            color: var(--text-primary);
            font-family: var(--font-body);
            font-size: 16px;
            line-height: 1.5;
            letter-spacing: -0.015em;
            overflow-x: hidden;
            transition: background-color 0.35s ease, color 0.35s ease;
        }

        /* Ambient Lighting */
        .ambient-aurora {
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 1400px;
            height: 620px;
            background: radial-gradient(ellipse at 50% -10%, var(--tempo-tint-glow) 0%, transparent 68%);
            pointer-events: none;
            z-index: 0;
            opacity: 0.85;
        }

        .tempo-container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
            position: relative;
            z-index: 1;
        }

        /* ==========================================================================
           1. TEMPOMAIL FROSTED GLASS TOPBAR
           ========================================================================== */
        .tempo-topbar-wrap {
            position: sticky;
            top: 0;
            width: 100%;
            z-index: 999;
            backdrop-filter: blur(24px) saturate(190%);
            -webkit-backdrop-filter: blur(24px) saturate(190%);
            background: var(--surface-glass);
            border-bottom: 1px solid var(--hairline);
            transition: background 0.3s ease;
        }

        .tempo-topbar {
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .tempo-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: var(--text-primary);
        }

        .tempo-brand-symbol {
            width: 32px;
            height: 32px;
            border-radius: 9px;
            background: linear-gradient(135deg, var(--tempo-tint) 0%, #ff5500 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 14px;
            box-shadow: 0 4px 12px var(--tempo-tint-glow);
        }

        .tempo-brand-name {
            font-family: var(--font-display);
            font-weight: 600;
            font-size: 17.5px;
            letter-spacing: -0.03em;
        }

        .tempo-brand-badge {
            font-size: 11px;
            font-weight: 600;
            padding: 2.5px 8px;
            border-radius: var(--radius-full);
            background: var(--surface-tertiary);
            color: var(--text-secondary);
            border: 1px solid var(--hairline);
            font-family: var(--font-mono);
        }

        .tempo-nav-menu {
            display: flex;
            align-items: center;
            gap: 26px;
            list-style: none;
        }

        .tempo-nav-menu a {
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 13.5px;
            font-weight: 500;
            transition: color 0.15s ease;
        }

        .tempo-nav-menu a:hover {
            color: var(--text-primary);
        }

        .tempo-nav-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .tempo-icon-control {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: var(--surface-tertiary);
            border: 1px solid var(--hairline);
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s ease;
        }

        .tempo-icon-control:hover {
            color: var(--text-primary);
            background: var(--surface-quaternary);
            transform: scale(1.04);
        }

        .tempo-cta-pill {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 8px 18px;
            border-radius: var(--radius-full);
            font-size: 13.5px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            border: none;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .tempo-cta-tint {
            background: var(--tempo-tint);
            color: #ffffff;
            box-shadow: 0 4px 14px var(--tempo-tint-glow);
        }

        .tempo-cta-tint:hover {
            background: var(--tempo-tint-hover);
            transform: scale(1.02);
        }

        .tempo-cta-tint:active {
            transform: scale(0.97);
        }

        /* ==========================================================================
           2. TEMPOMAIL HERO & DYNAMIC STATUS CAPSULE
           ========================================================================== */
        .tempo-hero-zone {
            padding: 60px 0 35px;
            text-align: center;
        }

        .tempo-eyebrow-chip {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--tempo-tint);
            background: var(--tempo-tint-subtle);
            padding: 6px 16px;
            border-radius: var(--radius-full);
            border: 1px solid var(--hairline-tint);
            margin-bottom: 24px;
        }

        .tempo-eyebrow-chip .beacon-glow {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--tempo-tint);
            box-shadow: 0 0 10px var(--tempo-tint);
            animation: pulse-tempo 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
        }

        @keyframes pulse-tempo {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.35; transform: scale(0.8); }
        }

        .tempo-headline {
            font-family: var(--font-display);
            font-size: clamp(40px, 6.5vw, 68px);
            font-weight: 600;
            line-height: 1.05;
            letter-spacing: -0.04em;
            color: var(--text-primary);
            max-width: 860px;
            margin: 0 auto 20px;
        }

        .tempo-subheadline {
            font-size: clamp(17px, 2.2vw, 20px);
            color: var(--text-secondary);
            max-width: 660px;
            margin: 0 auto 42px;
            line-height: 1.48;
            letter-spacing: -0.02em;
        }

        /* ==========================================================================
           3. TEMPOMAIL DYNAMIC CAPSULE & SQUIRCLE MAILBOX
           ========================================================================== */
        .tempo-mailbox-chassis {
            max-width: 900px;
            margin: 0 auto 85px;
            background: var(--surface-primary);
            border: 1px solid var(--hairline-prominent);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-card);
            overflow: hidden;
            position: relative;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        /* TempoMail Dynamic Status Capsule Pill */
        .tempo-island-deck {
            padding: 18px 24px;
            background: var(--surface-secondary);
            border-bottom: 1px solid var(--hairline);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .tempo-dynamic-island {
            background: var(--surface-island);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: var(--radius-full);
            padding: 7px 18px;
            display: inline-flex;
            align-items: center;
            gap: 14px;
            box-shadow: var(--shadow-island);
            transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            user-select: none;
        }

        .tempo-dynamic-island:hover {
            transform: scale(1.02);
            border-color: var(--tempo-tint-border);
        }

        .tempo-island-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tempo-audio-wave {
            display: flex;
            align-items: center;
            gap: 2.5px;
            height: 14px;
        }

        .audio-bar {
            width: 2.5px;
            background: var(--tempo-tint);
            border-radius: 2px;
            animation: wave 1.2s infinite ease-in-out;
        }

        .audio-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
        .audio-bar:nth-child(2) { height: 12px; animation-delay: 0.25s; }
        .audio-bar:nth-child(3) { height: 8px; animation-delay: 0.4s; }

        @keyframes wave {
            0%, 100% { transform: scaleY(0.4); }
            50% { transform: scaleY(1.1); }
        }

        .tempo-island-title {
            font-size: 12.5px;
            font-weight: 600;
            color: #ffffff;
            letter-spacing: -0.01em;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .tempo-island-divider {
            width: 1px;
            height: 14px;
            background: rgba(255, 255, 255, 0.2);
        }

        .tempo-island-countdown {
            font-family: var(--font-mono);
            font-size: 11.5px;
            color: var(--tempo-tint);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .tempo-island-side-btn {
            position: absolute;
            right: 24px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--surface-tertiary);
            border: 1px solid var(--hairline);
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 500;
            padding: 5px 12px;
            border-radius: var(--radius-full);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
        }

        .tempo-island-side-btn:hover {
            color: var(--text-primary);
            background: var(--surface-quaternary);
        }

        /* Address Cockpit */
        .tempo-address-cockpit {
            padding: 34px 28px 28px;
            text-align: center;
            background: radial-gradient(circle at 50% 0%, var(--surface-secondary) 0%, var(--surface-primary) 70%);
            border-bottom: 1px solid var(--hairline);
        }

        .tempo-cockpit-label {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 600;
            color: var(--text-tertiary);
            margin-bottom: 14px;
        }

        /* Large Apple Address Capsule */
        .tempo-address-pod {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--surface-capsule);
            border: 1.5px solid var(--hairline-prominent);
            border-radius: var(--radius-full);
            padding: 8px 10px 8px 24px;
            max-width: 670px;
            margin: 0 auto 24px;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        [data-theme="light"] .tempo-address-pod {
            background: #ffffff;
            border-color: #d1d1d6;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .tempo-address-pod:focus-within {
            border-color: var(--tempo-tint);
            box-shadow: 0 0 0 3px var(--tempo-tint-subtle);
        }

        .tempo-email-readout {
            border: none;
            background: transparent;
            font-family: var(--font-mono);
            font-size: clamp(16px, 2.4vw, 20px);
            font-weight: 600;
            color: var(--text-primary);
            width: 100%;
            outline: none;
            letter-spacing: -0.02em;
        }

        .tempo-copy-capsule-btn {
            background: var(--tempo-tint);
            color: #ffffff;
            border: none;
            padding: 10px 22px;
            border-radius: var(--radius-full);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            white-space: nowrap;
            box-shadow: 0 4px 14px var(--tempo-tint-glow);
        }

        .tempo-copy-capsule-btn:hover {
            background: var(--tempo-tint-hover);
            transform: scale(1.02);
        }

        .tempo-copy-capsule-btn:active {
            transform: scale(0.96);
        }

        /* iOS Segmented Toolbar */
        .tempo-control-segments {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            flex-wrap: wrap;
        }

        .tempo-action-pill {
            background: var(--surface-secondary);
            border: 1px solid var(--hairline);
            color: var(--text-primary);
            font-size: 13.5px;
            font-weight: 500;
            padding: 8px 18px;
            border-radius: var(--radius-full);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .tempo-action-pill:hover {
            background: var(--surface-tertiary);
            border-color: var(--hairline-prominent);
            transform: translateY(-1px);
        }

        .tempo-action-pill:active {
            transform: scale(0.97);
        }

        .tempo-action-pill.simulator-highlight {
            background: var(--tempo-tint-subtle);
            color: var(--tempo-tint);
            border-color: var(--hairline-tint);
            font-weight: 600;
        }

        .tempo-action-pill.simulator-highlight:hover {
            background: var(--tempo-tint);
            color: #ffffff;
            box-shadow: 0 4px 16px var(--tempo-tint-glow);
        }

        /* Realtime iOS Mail Stream */
        .tempo-inbox-stage {
            padding: 26px 28px 32px;
        }

        .tempo-stage-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            padding: 0 4px;
        }

        .tempo-stage-title-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .tempo-stage-heading {
            font-size: 14px;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--text-secondary);
        }

        .tempo-counter-badge {
            background: var(--tempo-tint);
            color: #ffffff;
            font-size: 11.5px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: var(--radius-full);
        }

        .tempo-filter-strip {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .tempo-filter-chip {
            background: transparent;
            border: 1px solid var(--hairline);
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 500;
            padding: 4px 12px;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .tempo-filter-chip.active, .tempo-filter-chip:hover {
            background: var(--surface-tertiary);
            color: var(--text-primary);
            border-color: var(--hairline-prominent);
        }

        /* Apple Mail Cards */
        .tempo-inbox-deck {
            display: flex;
            flex-direction: column;
            gap: 9px;
        }

        .tempo-mail-row {
            background: var(--surface-secondary);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-md);
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            cursor: pointer;
            transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
        }

        .tempo-mail-row:hover {
            background: var(--surface-tertiary);
            border-color: var(--hairline-prominent);
            transform: translateY(-1.5px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        }

        .tempo-row-left {
            display: flex;
            align-items: center;
            gap: 15px;
            min-width: 0;
        }

        .tempo-sender-icon {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: #ffffff;
            flex-shrink: 0;
        }

        .bg-github { background: #24292e; }
        .bg-stripe { background: #635bff; }
        .bg-tempo-brand { background: linear-gradient(135deg, #333333 0%, #111111 100%); }
        .bg-linear { background: #5e6ad2; }
        .bg-tempo { background: linear-gradient(135deg, var(--tempo-tint) 0%, #ff5500 100%); }

        .tempo-row-content {
            min-width: 0;
        }

        .tempo-sender-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 2px;
        }

        .tempo-sender-text {
            font-size: 14.5px;
            font-weight: 600;
            color: var(--text-primary);
            letter-spacing: -0.01em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .tempo-time-tag {
            font-size: 12px;
            color: var(--text-tertiary);
            font-family: var(--font-mono);
        }

        .tempo-subject-preview {
            font-size: 13.5px;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .tempo-row-right {
            display: flex;
            align-items: center;
            gap: 14px;
            flex-shrink: 0;
        }

        .tempo-otp-pill {
            background: var(--tempo-tint-subtle);
            border: 1px solid var(--hairline-tint);
            color: var(--tempo-tint);
            font-family: var(--font-mono);
            font-size: 13.5px;
            font-weight: 700;
            padding: 5px 13px;
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .tempo-otp-pill:hover {
            background: var(--tempo-tint);
            color: #ffffff;
            transform: scale(1.05);
        }

        .tempo-otp-pill:active {
            transform: scale(0.96);
        }

        /* ==========================================================================
           4. TEMPOMAIL BENTO SHOWCASE (6 SPEC MODULES)
           ========================================================================== */
        .tempo-section-wrap {
            padding: 95px 0;
            border-top: 1px solid var(--hairline);
        }

        .tempo-section-header {
            text-align: center;
            max-width: 700px;
            margin: 0 auto 60px;
        }

        .tempo-section-tag {
            font-size: 12.5px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--tempo-tint);
            margin-bottom: 12px;
        }

        .tempo-section-h2 {
            font-family: var(--font-display);
            font-size: clamp(32px, 4.2vw, 46px);
            font-weight: 600;
            letter-spacing: -0.035em;
            line-height: 1.12;
            color: var(--text-primary);
            margin-bottom: 16px;
        }

        .tempo-section-sub {
            font-size: 17.5px;
            color: var(--text-secondary);
            line-height: 1.5;
            letter-spacing: -0.015em;
        }

        .tempo-bento-layout {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 22px;
        }

        .tempo-bento-tile {
            background: var(--surface-primary);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-lg);
            padding: 36px 32px;
            box-shadow: var(--shadow-card);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: transform 0.25s ease, border-color 0.25s ease;
        }

        .tempo-bento-tile:hover {
            border-color: var(--hairline-prominent);
            transform: translateY(-2px);
        }

        .tile-span-8 { grid-column: span 8; }
        .tile-span-4 { grid-column: span 4; }
        .tile-span-6 { grid-column: span 6; }
        .tile-span-12 { grid-column: span 12; }

        .tempo-tile-tag {
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--tempo-tint);
            margin-bottom: 12px;
        }

        .tempo-tile-h3 {
            font-family: var(--font-display);
            font-size: 24px;
            font-weight: 600;
            letter-spacing: -0.025em;
            color: var(--text-primary);
            margin-bottom: 10px;
            line-height: 1.25;
        }

        .tempo-tile-body {
            font-size: 15px;
            color: var(--text-secondary);
            line-height: 1.55;
            margin-bottom: 24px;
        }

        /* Bento Micro Visuals */
        .bento-hud-strip {
            background: var(--surface-secondary);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-sm);
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .hud-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 13px;
            padding: 8px 12px;
            background: var(--surface-tertiary);
            border-radius: var(--radius-xs);
        }

        /* ==========================================================================
           5. COMPARISON MATRIX (TEMPOMAIL TABULAR DENSITY)
           ========================================================================== */
        .tempo-matrix-card {
            background: var(--surface-primary);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow-card);
            margin-top: 30px;
        }

        .tempo-matrix-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 14.5px;
        }

        .tempo-matrix-table th {
            padding: 20px 24px;
            background: var(--surface-secondary);
            border-bottom: 1px solid var(--hairline);
            font-weight: 600;
            color: var(--text-primary);
            font-size: 13.5px;
            letter-spacing: -0.01em;
        }

        .tempo-matrix-table td {
            padding: 18px 24px;
            border-bottom: 1px solid var(--hairline);
            color: var(--text-secondary);
        }

        .tempo-matrix-table tr:last-child td {
            border-bottom: none;
        }

        .tempo-matrix-table tr:hover td {
            background: var(--surface-tertiary);
        }

        .col-highlight {
            color: var(--text-primary) !important;
            font-weight: 600;
            background: var(--surface-capsule);
        }

        /* ==========================================================================
           6. PRICING: SEGMENTED MONTHLY/ANNUAL TOGGLE
           ========================================================================== */
        .tempo-pricing-toggle-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 45px;
        }

        .tempo-price-segment {
            display: flex;
            background: var(--surface-secondary);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-full);
            padding: 4px;
            gap: 3px;
        }

        .price-toggle-btn {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 600;
            padding: 7px 18px;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .price-toggle-btn.active {
            background: var(--tempo-tint);
            color: #ffffff;
            box-shadow: 0 2px 10px var(--tempo-tint-glow);
        }

        .tempo-save-pill {
            font-size: 11.5px;
            font-weight: 700;
            color: #34c759;
            background: rgba(52, 199, 89, 0.14);
            padding: 4px 10px;
            border-radius: var(--radius-full);
            border: 1px solid rgba(52, 199, 89, 0.3);
        }

        .tempo-price-cards-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            max-width: 1040px;
            margin: 0 auto;
        }

        .tempo-plan-card {
            background: var(--surface-primary);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-xl);
            padding: 40px 32px;
            box-shadow: var(--shadow-card);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .tempo-plan-card.pro-hero {
            border-color: var(--tempo-tint);
            box-shadow: var(--shadow-card), 0 0 0 1px var(--tempo-tint);
        }

        .tempo-hero-badge {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--tempo-tint);
            color: #ffffff;
            font-size: 11.5px;
            font-weight: 700;
            padding: 4px 14px;
            border-radius: var(--radius-full);
            box-shadow: 0 4px 12px var(--tempo-tint-glow);
        }

        .tempo-plan-name {
            font-size: 19px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .tempo-plan-desc {
            font-size: 13.5px;
            color: var(--text-secondary);
            margin-bottom: 26px;
        }

        .tempo-price-num-row {
            display: flex;
            align-items: baseline;
            gap: 4px;
            margin-bottom: 26px;
        }

        .tempo-plan-currency {
            font-size: 24px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .tempo-plan-amount {
            font-family: var(--font-display);
            font-size: 48px;
            font-weight: 600;
            letter-spacing: -0.04em;
            color: var(--text-primary);
        }

        .tempo-plan-period {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .tempo-feature-checklist {
            list-style: none;
            margin-bottom: 34px;
            display: flex;
            flex-direction: column;
            gap: 13px;
        }

        .tempo-feature-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .tempo-feature-item i {
            color: #34c759;
            font-size: 12.5px;
        }

        /* ==========================================================================
           7. ACCORDION FAQ
           ========================================================================== */
        .tempo-faq-accordion {
            max-width: 780px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
        }

        .tempo-faq-item {
            border-bottom: 1px solid var(--hairline);
        }

        .tempo-faq-q {
            padding: 24px 6px;
            font-size: 17px;
            font-weight: 600;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            cursor: pointer;
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: color 0.15s ease;
        }

        .tempo-faq-q::-webkit-details-marker { display: none; }

        .tempo-faq-q:hover {
            color: var(--tempo-tint);
        }

        .tempo-faq-arrow {
            font-size: 14px;
            color: var(--text-tertiary);
            transition: transform 0.25s ease;
        }

        details[open] .tempo-faq-arrow {
            transform: rotate(45deg);
        }

        .tempo-faq-a {
            padding: 0 6px 24px;
            font-size: 15px;
            line-height: 1.6;
            color: var(--text-secondary);
        }

        /* ==========================================================================
           8. PRE-FOOTER CALLOUT
           ========================================================================== */
        .tempo-prefooter-box {
            background: linear-gradient(135deg, var(--surface-secondary) 0%, var(--surface-primary) 100%);
            border: 1px solid var(--hairline-prominent);
            border-radius: var(--radius-xl);
            padding: 68px 36px;
            text-align: center;
            box-shadow: var(--shadow-card);
            margin-bottom: 85px;
        }

        .tempo-prefooter-h2 {
            font-family: var(--font-display);
            font-size: clamp(28px, 4.2vw, 44px);
            font-weight: 600;
            letter-spacing: -0.035em;
            color: var(--text-primary);
            margin-bottom: 16px;
        }

        .tempo-prefooter-sub {
            font-size: 17px;
            color: var(--text-secondary);
            max-width: 560px;
            margin: 0 auto 32px;
        }

        /* ==========================================================================
           9. TEMPOMAIL FOOTER (MUSEUM DENSITY & DIRECT CONTACT)
           ========================================================================== */
        .tempo-footer-wrap {
            background: var(--surface-primary);
            border-top: 1px solid var(--hairline);
            padding: 56px 0 42px;
            font-size: 12.5px;
            color: var(--text-tertiary);
        }

        .tempo-footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 44px;
            margin-bottom: 44px;
        }

        .tempo-footer-block h5 {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--text-primary);
            margin-bottom: 16px;
            font-weight: 600;
        }

        .tempo-footer-block ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .tempo-footer-block a {
            text-decoration: none;
            color: var(--text-secondary);
            transition: color 0.15s ease;
        }

        .tempo-footer-block a:hover {
            color: var(--text-primary);
        }

        .tempo-author-link {
            color: var(--tempo-tint);
            font-weight: 600;
            text-decoration: none;
        }

        .tempo-footer-subrow {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 26px;
            border-top: 1px solid var(--hairline);
            flex-wrap: wrap;
            gap: 16px;
        }

        /* ==========================================================================
           10. INTERACTIVE MODAL (iOS Sheet Dialog)
           ========================================================================== */
        .tempo-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .tempo-modal-overlay.active {
            display: flex;
            opacity: 1;
        }

        .tempo-sheet-window {
            background: var(--surface-primary);
            border: 1px solid var(--hairline-prominent);
            border-radius: var(--radius-xl);
            width: min(640px, 92vw);
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: var(--shadow-modal);
            transform: scale(0.96) translateY(12px);
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .tempo-modal-overlay.active .tempo-sheet-window {
            transform: scale(1) translateY(0);
        }

        .tempo-sheet-grab-bar {
            width: 38px;
            height: 4.5px;
            border-radius: var(--radius-full);
            background: var(--surface-quaternary);
            margin: 12px auto 0;
        }

        .tempo-sheet-header-row {
            padding: 18px 26px;
            border-bottom: 1px solid var(--hairline);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .tempo-sheet-h3 {
            font-size: 16.5px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .tempo-sheet-close-btn {
            background: var(--surface-tertiary);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 13px;
        }

        .tempo-sheet-close-btn:hover {
            color: var(--text-primary);
            background: var(--surface-quaternary);
        }

        .tempo-sheet-content {
            padding: 26px;
        }

        /* iOS Push Notification Pill (Top Drop) */
        .tempo-toast-banner {
            position: fixed;
            top: 72px;
            left: 50%;
            transform: translateX(-50%) translateY(-40px);
            background: var(--surface-glass-heavy);
            backdrop-filter: blur(24px) saturate(190%);
            -webkit-backdrop-filter: blur(24px) saturate(190%);
            border: 1px solid var(--hairline-prominent);
            border-radius: var(--radius-full);
            padding: 11px 24px;
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
            display: flex;
            align-items: center;
            gap: 11px;
            font-size: 13.5px;
            font-weight: 600;
            color: var(--text-primary);
            z-index: 10001;
            opacity: 0;
            pointer-events: none;
            transition: all 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .tempo-toast-banner.active {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* Responsive Breakpoints */
        @media (max-width: 880px) {
            .tempo-bento-layout { grid-template-columns: 1fr; }
            .tile-span-8, .tile-span-4, .tile-span-6 { grid-column: span 1; }
            .tempo-price-cards-row { grid-template-columns: 1fr; }
            .tempo-footer-grid { grid-template-columns: 1fr 1fr; }
            .tempo-nav-menu { display: none; }
            .tempo-island-side-btn { display: none; }
        }


/* ==========================================================================
   TEMPOMAIL COMPLETE COMPONENT ENGINE (SYNCHRONIZED FROM VERIFIED SPEC)
   ========================================================================== */

/* ==========================================================================
           TEMPOMAIL MODERN DESIGN SYSTEM TOKENS
           Codester Commercial Precision Standard
           ========================================================================== */
        :root {
            /* Tempo Primary Amber Accent */
            --tempo-tint: #ff7700;
            --tempo-tint-hover: #ea6c00;
            --tempo-tint-active: #d66200;
            --tempo-tint-subtle: rgba(255, 119, 0, 0.12);
            --tempo-tint-glow: rgba(255, 119, 0, 0.32);
            --tempo-tint-border: rgba(255, 119, 0, 0.38);

            /* Tempo Obsidian Dark Palette */
            --canvas: #000000;
            --surface-primary: #121214;
            --surface-secondary: #1c1c1e;
            --surface-tertiary: #2c2c2e;
            --surface-quaternary: #3a3a3c;
            --surface-island: #000000;
            --surface-glass: rgba(28, 28, 30, 0.76);
            --surface-glass-heavy: rgba(18, 18, 20, 0.92);
            --surface-capsule: rgba(255, 255, 255, 0.05);

            /* Tempo Hairlines */
            --hairline: rgba(255, 255, 255, 0.08);
            --hairline-prominent: rgba(255, 255, 255, 0.16);
            --hairline-tint: rgba(255, 119, 0, 0.45);
            --hairline-glass: rgba(255, 255, 255, 0.12);

            /* Tempo Typography */
            --text-primary: #ffffff;
            --text-secondary: #8e8e93;
            --text-tertiary: #636366;
            --text-quaternary: #48484a;

            /* Tempo System Status Colors */
            --tempo-green: #34c759;
            --tempo-green-subtle: rgba(52, 199, 89, 0.15);
            --tempo-blue: #0071e3;
            --tempo-purple: #af52de;
            --tempo-red: #ff453a;

            /* iOS Elevation & Shadow Rhythms */
            --shadow-island: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.14);
            --shadow-card: 0 24px 64px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
            --shadow-modal: 0 40px 100px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.15);
            --shadow-glow: 0 18px 48px -8px rgba(255, 119, 0, 0.28);

            /* Tempo Squircle Geometry */
            --radius-xs: 8px;
            --radius-sm: 12px;
            --radius-md: 18px;
            --radius-lg: 26px;
            --radius-xl: 36px;
            --radius-full: 9999px;

            /* Tempo Font Stacks */
            --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Plus Jakarta Sans", system-ui, sans-serif;
            --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Plus Jakarta Sans", system-ui, sans-serif;
            --font-mono: "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
        }

        /* Tempo Ceramic Light Mode */
        [data-theme="light"] {
            --tempo-tint: #ff6a00;
            --tempo-tint-hover: #e65f00;
            --tempo-tint-active: #cc5400;
            --tempo-tint-subtle: rgba(255, 106, 0, 0.08);
            --tempo-tint-glow: rgba(255, 106, 0, 0.18);
            --tempo-tint-border: rgba(255, 106, 0, 0.3);

            --canvas: #f5f5f7;
            --surface-primary: #ffffff;
            --surface-secondary: #ffffff;
            --surface-tertiary: #f2f2f7;
            --surface-quaternary: #e5e5ea;
            --surface-island: #1c1c1e;
            --surface-glass: rgba(255, 255, 255, 0.85);
            --surface-glass-heavy: rgba(245, 245, 247, 0.94);
            --surface-capsule: #f2f2f7;

            --hairline: rgba(0, 0, 0, 0.07);
            --hairline-prominent: rgba(0, 0, 0, 0.12);
            --hairline-tint: rgba(255, 106, 0, 0.35);
            --hairline-glass: rgba(0, 0, 0, 0.08);

            --text-primary: #1d1d1f;
            --text-secondary: #6e6e73;
            --text-tertiary: #86868b;
            --text-quaternary: #aeaeb2;

            --shadow-island: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
            --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.06);
            --shadow-modal: 0 32px 80px -16px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
            --shadow-glow: 0 14px 36px -6px rgba(255, 106, 0, 0.16);
        }

        /* Reset & Universal Rules */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body {
            background-color: var(--canvas);
            color: var(--text-primary);
            font-family: var(--font-body);
            font-size: 16px;
            line-height: 1.5;
            letter-spacing: -0.015em;
            overflow-x: hidden;
            transition: background-color 0.35s ease, color 0.35s ease;
        }

        /* Ambient Lighting */
        .ambient-aurora {
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 1400px;
            height: 620px;
            background: radial-gradient(ellipse at 50% -10%, var(--tempo-tint-glow) 0%, transparent 68%);
            pointer-events: none;
            z-index: 0;
            opacity: 0.85;
        }

        .tempo-container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
            position: relative;
            z-index: 1;
        }

        /* ==========================================================================
           1. TEMPOMAIL FROSTED GLASS TOPBAR
           ========================================================================== */
        .tempo-topbar-wrap {
            position: sticky;
            top: 0;
            width: 100%;
            z-index: 999;
            backdrop-filter: blur(24px) saturate(190%);
            -webkit-backdrop-filter: blur(24px) saturate(190%);
            background: var(--surface-glass);
            border-bottom: 1px solid var(--hairline);
            transition: background 0.3s ease;
        }

        .tempo-topbar {
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .tempo-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: var(--text-primary);
        }

        .tempo-brand-symbol {
            width: 32px;
            height: 32px;
            border-radius: 9px;
            background: linear-gradient(135deg, var(--tempo-tint) 0%, #ff5500 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 14px;
            box-shadow: 0 4px 12px var(--tempo-tint-glow);
        }

        .tempo-brand-name {
            font-family: var(--font-display);
            font-weight: 600;
            font-size: 17.5px;
            letter-spacing: -0.03em;
        }

        .tempo-brand-badge {
            font-size: 11px;
            font-weight: 600;
            padding: 2.5px 8px;
            border-radius: var(--radius-full);
            background: var(--surface-tertiary);
            color: var(--text-secondary);
            border: 1px solid var(--hairline);
            font-family: var(--font-mono);
        }

        .tempo-nav-menu {
            display: flex;
            align-items: center;
            gap: 26px;
            list-style: none;
        }

        .tempo-nav-menu a {
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 13.5px;
            font-weight: 500;
            transition: color 0.15s ease;
        }

        .tempo-nav-menu a:hover {
            color: var(--text-primary);
        }

        .tempo-nav-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .tempo-icon-control {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: var(--surface-tertiary);
            border: 1px solid var(--hairline);
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s ease;
        }

        .tempo-icon-control:hover {
            color: var(--text-primary);
            background: var(--surface-quaternary);
            transform: scale(1.04);
        }

        .tempo-cta-pill {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 8px 18px;
            border-radius: var(--radius-full);
            font-size: 13.5px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            border: none;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .tempo-cta-tint {
            background: var(--tempo-tint);
            color: #ffffff;
            box-shadow: 0 4px 14px var(--tempo-tint-glow);
        }

        .tempo-cta-tint:hover {
            background: var(--tempo-tint-hover);
            transform: scale(1.02);
        }

        .tempo-cta-tint:active {
            transform: scale(0.97);
        }

        /* ==========================================================================
           2. TEMPOMAIL HERO & DYNAMIC STATUS CAPSULE
           ========================================================================== */
        .tempo-hero-zone {
            padding: 60px 0 35px;
            text-align: center;
        }

        .tempo-eyebrow-chip {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--tempo-tint);
            background: var(--tempo-tint-subtle);
            padding: 6px 16px;
            border-radius: var(--radius-full);
            border: 1px solid var(--hairline-tint);
            margin-bottom: 24px;
        }

        .tempo-eyebrow-chip .beacon-glow {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--tempo-tint);
            box-shadow: 0 0 10px var(--tempo-tint);
            animation: pulse-tempo 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
        }

        @keyframes pulse-tempo {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.35; transform: scale(0.8); }
        }

        .tempo-headline {
            font-family: var(--font-display);
            font-size: clamp(40px, 6.5vw, 68px);
            font-weight: 600;
            line-height: 1.05;
            letter-spacing: -0.04em;
            color: var(--text-primary);
            max-width: 860px;
            margin: 0 auto 20px;
        }

        .tempo-subheadline {
            font-size: clamp(17px, 2.2vw, 20px);
            color: var(--text-secondary);
            max-width: 660px;
            margin: 0 auto 42px;
            line-height: 1.48;
            letter-spacing: -0.02em;
        }

        /* ==========================================================================
           3. TEMPOMAIL DYNAMIC CAPSULE & SQUIRCLE MAILBOX
           ========================================================================== */
        .tempo-mailbox-chassis {
            max-width: 900px;
            margin: 0 auto 85px;
            background: var(--surface-primary);
            border: 1px solid var(--hairline-prominent);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-card);
            overflow: hidden;
            position: relative;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        /* TempoMail Dynamic Status Capsule Pill */
        .tempo-island-deck {
            padding: 18px 24px;
            background: var(--surface-secondary);
            border-bottom: 1px solid var(--hairline);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .tempo-dynamic-island {
            background: var(--surface-island);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: var(--radius-full);
            padding: 7px 18px;
            display: inline-flex;
            align-items: center;
            gap: 14px;
            box-shadow: var(--shadow-island);
            transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            user-select: none;
        }

        .tempo-dynamic-island:hover {
            transform: scale(1.02);
            border-color: var(--tempo-tint-border);
        }

        .tempo-island-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tempo-audio-wave {
            display: flex;
            align-items: center;
            gap: 2.5px;
            height: 14px;
        }

        .audio-bar {
            width: 2.5px;
            background: var(--tempo-tint);
            border-radius: 2px;
            animation: wave 1.2s infinite ease-in-out;
        }

        .audio-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
        .audio-bar:nth-child(2) { height: 12px; animation-delay: 0.25s; }
        .audio-bar:nth-child(3) { height: 8px; animation-delay: 0.4s; }

        @keyframes wave {
            0%, 100% { transform: scaleY(0.4); }
            50% { transform: scaleY(1.1); }
        }

        .tempo-island-title {
            font-size: 12.5px;
            font-weight: 600;
            color: #ffffff;
            letter-spacing: -0.01em;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .tempo-island-divider {
            width: 1px;
            height: 14px;
            background: rgba(255, 255, 255, 0.2);
        }

        .tempo-island-countdown {
            font-family: var(--font-mono);
            font-size: 11.5px;
            color: var(--tempo-tint);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .tempo-island-side-btn {
            position: absolute;
            right: 24px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--surface-tertiary);
            border: 1px solid var(--hairline);
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 500;
            padding: 5px 12px;
            border-radius: var(--radius-full);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
        }

        .tempo-island-side-btn:hover {
            color: var(--text-primary);
            background: var(--surface-quaternary);
        }

        /* Address Cockpit */
        .tempo-address-cockpit {
            padding: 34px 28px 28px;
            text-align: center;
            background: radial-gradient(circle at 50% 0%, var(--surface-secondary) 0%, var(--surface-primary) 70%);
            border-bottom: 1px solid var(--hairline);
        }

        .tempo-cockpit-label {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 600;
            color: var(--text-tertiary);
            margin-bottom: 14px;
        }

        /* Large Apple Address Capsule */
        .tempo-address-pod {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--surface-capsule);
            border: 1.5px solid var(--hairline-prominent);
            border-radius: var(--radius-full);
            padding: 8px 10px 8px 24px;
            max-width: 670px;
            margin: 0 auto 24px;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        [data-theme="light"] .tempo-address-pod {
            background: #ffffff;
            border-color: #d1d1d6;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .tempo-address-pod:focus-within {
            border-color: var(--tempo-tint);
            box-shadow: 0 0 0 3px var(--tempo-tint-subtle);
        }

        .tempo-email-readout {
            border: none;
            background: transparent;
            font-family: var(--font-mono);
            font-size: clamp(16px, 2.4vw, 20px);
            font-weight: 600;
            color: var(--text-primary);
            width: 100%;
            outline: none;
            letter-spacing: -0.02em;
        }

        .tempo-copy-capsule-btn {
            background: var(--tempo-tint);
            color: #ffffff;
            border: none;
            padding: 10px 22px;
            border-radius: var(--radius-full);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            white-space: nowrap;
            box-shadow: 0 4px 14px var(--tempo-tint-glow);
        }

        .tempo-copy-capsule-btn:hover {
            background: var(--tempo-tint-hover);
            transform: scale(1.02);
        }

        .tempo-copy-capsule-btn:active {
            transform: scale(0.96);
        }

        /* iOS Segmented Toolbar */
        .tempo-control-segments {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            flex-wrap: wrap;
        }

        .tempo-action-pill {
            background: var(--surface-secondary);
            border: 1px solid var(--hairline);
            color: var(--text-primary);
            font-size: 13.5px;
            font-weight: 500;
            padding: 8px 18px;
            border-radius: var(--radius-full);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .tempo-action-pill:hover {
            background: var(--surface-tertiary);
            border-color: var(--hairline-prominent);
            transform: translateY(-1px);
        }

        .tempo-action-pill:active {
            transform: scale(0.97);
        }

        .tempo-action-pill.simulator-highlight {
            background: var(--tempo-tint-subtle);
            color: var(--tempo-tint);
            border-color: var(--hairline-tint);
            font-weight: 600;
        }

        .tempo-action-pill.simulator-highlight:hover {
            background: var(--tempo-tint);
            color: #ffffff;
            box-shadow: 0 4px 16px var(--tempo-tint-glow);
        }

        /* Realtime iOS Mail Stream */
        .tempo-inbox-stage {
            padding: 26px 28px 32px;
        }

        .tempo-stage-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            padding: 0 4px;
        }

        .tempo-stage-title-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .tempo-stage-heading {
            font-size: 14px;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--text-secondary);
        }

        .tempo-counter-badge {
            background: var(--tempo-tint);
            color: #ffffff;
            font-size: 11.5px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: var(--radius-full);
        }

        .tempo-filter-strip {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .tempo-filter-chip {
            background: transparent;
            border: 1px solid var(--hairline);
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 500;
            padding: 4px 12px;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .tempo-filter-chip.active, .tempo-filter-chip:hover {
            background: var(--surface-tertiary);
            color: var(--text-primary);
            border-color: var(--hairline-prominent);
        }

        /* Apple Mail Cards */
        .tempo-inbox-deck {
            display: flex;
            flex-direction: column;
            gap: 9px;
        }

        .tempo-mail-row {
            background: var(--surface-secondary);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-md);
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            cursor: pointer;
            transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
        }

        .tempo-mail-row:hover {
            background: var(--surface-tertiary);
            border-color: var(--hairline-prominent);
            transform: translateY(-1.5px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        }

        .tempo-row-left {
            display: flex;
            align-items: center;
            gap: 15px;
            min-width: 0;
        }

        .tempo-sender-icon {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: #ffffff;
            flex-shrink: 0;
        }

        .bg-github { background: #24292e; }
        .bg-stripe { background: #635bff; }
        .bg-tempo-brand { background: linear-gradient(135deg, #333333 0%, #111111 100%); }
        .bg-linear { background: #5e6ad2; }
        .bg-tempo { background: linear-gradient(135deg, var(--tempo-tint) 0%, #ff5500 100%); }

        .tempo-row-content {
            min-width: 0;
        }

        .tempo-sender-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 2px;
        }

        .tempo-sender-text {
            font-size: 14.5px;
            font-weight: 600;
            color: var(--text-primary);
            letter-spacing: -0.01em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .tempo-time-tag {
            font-size: 12px;
            color: var(--text-tertiary);
            font-family: var(--font-mono);
        }

        .tempo-subject-preview {
            font-size: 13.5px;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .tempo-row-right {
            display: flex;
            align-items: center;
            gap: 14px;
            flex-shrink: 0;
        }

        .tempo-otp-pill {
            background: var(--tempo-tint-subtle);
            border: 1px solid var(--hairline-tint);
            color: var(--tempo-tint);
            font-family: var(--font-mono);
            font-size: 13.5px;
            font-weight: 700;
            padding: 5px 13px;
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .tempo-otp-pill:hover {
            background: var(--tempo-tint);
            color: #ffffff;
            transform: scale(1.05);
        }

        .tempo-otp-pill:active {
            transform: scale(0.96);
        }

        /* ==========================================================================
           4. TEMPOMAIL BENTO SHOWCASE (6 SPEC MODULES)
           ========================================================================== */
        .tempo-section-wrap {
            padding: 95px 0;
            border-top: 1px solid var(--hairline);
        }

        .tempo-section-header {
            text-align: center;
            max-width: 700px;
            margin: 0 auto 60px;
        }

        .tempo-section-tag {
            font-size: 12.5px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--tempo-tint);
            margin-bottom: 12px;
        }

        .tempo-section-h2 {
            font-family: var(--font-display);
            font-size: clamp(32px, 4.2vw, 46px);
            font-weight: 600;
            letter-spacing: -0.035em;
            line-height: 1.12;
            color: var(--text-primary);
            margin-bottom: 16px;
        }

        .tempo-section-sub {
            font-size: 17.5px;
            color: var(--text-secondary);
            line-height: 1.5;
            letter-spacing: -0.015em;
        }

        .tempo-bento-layout {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 22px;
        }

        .tempo-bento-tile {
            background: var(--surface-primary);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-lg);
            padding: 36px 32px;
            box-shadow: var(--shadow-card);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: transform 0.25s ease, border-color 0.25s ease;
        }

        .tempo-bento-tile:hover {
            border-color: var(--hairline-prominent);
            transform: translateY(-2px);
        }

        .tile-span-8 { grid-column: span 8; }
        .tile-span-4 { grid-column: span 4; }
        .tile-span-6 { grid-column: span 6; }
        .tile-span-12 { grid-column: span 12; }

        .tempo-tile-tag {
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--tempo-tint);
            margin-bottom: 12px;
        }

        .tempo-tile-h3 {
            font-family: var(--font-display);
            font-size: 24px;
            font-weight: 600;
            letter-spacing: -0.025em;
            color: var(--text-primary);
            margin-bottom: 10px;
            line-height: 1.25;
        }

        .tempo-tile-body {
            font-size: 15px;
            color: var(--text-secondary);
            line-height: 1.55;
            margin-bottom: 24px;
        }

        /* Bento Micro Visuals */
        .bento-hud-strip {
            background: var(--surface-secondary);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-sm);
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .hud-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 13px;
            padding: 8px 12px;
            background: var(--surface-tertiary);
            border-radius: var(--radius-xs);
        }

        /* ==========================================================================
           5. COMPARISON MATRIX (TEMPOMAIL TABULAR DENSITY)
           ========================================================================== */
        .tempo-matrix-card {
            background: var(--surface-primary);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow-card);
            margin-top: 30px;
        }

        .tempo-matrix-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 14.5px;
        }

        .tempo-matrix-table th {
            padding: 20px 24px;
            background: var(--surface-secondary);
            border-bottom: 1px solid var(--hairline);
            font-weight: 600;
            color: var(--text-primary);
            font-size: 13.5px;
            letter-spacing: -0.01em;
        }

        .tempo-matrix-table td {
            padding: 18px 24px;
            border-bottom: 1px solid var(--hairline);
            color: var(--text-secondary);
        }

        .tempo-matrix-table tr:last-child td {
            border-bottom: none;
        }

        .tempo-matrix-table tr:hover td {
            background: var(--surface-tertiary);
        }

        .col-highlight {
            color: var(--text-primary) !important;
            font-weight: 600;
            background: var(--surface-capsule);
        }

        /* ==========================================================================
           6. PRICING: SEGMENTED MONTHLY/ANNUAL TOGGLE
           ========================================================================== */
        .tempo-pricing-toggle-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 45px;
        }

        .tempo-price-segment {
            display: flex;
            background: var(--surface-secondary);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-full);
            padding: 4px;
            gap: 3px;
        }

        .price-toggle-btn {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 600;
            padding: 7px 18px;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .price-toggle-btn.active {
            background: var(--tempo-tint);
            color: #ffffff;
            box-shadow: 0 2px 10px var(--tempo-tint-glow);
        }

        .tempo-save-pill {
            font-size: 11.5px;
            font-weight: 700;
            color: #34c759;
            background: rgba(52, 199, 89, 0.14);
            padding: 4px 10px;
            border-radius: var(--radius-full);
            border: 1px solid rgba(52, 199, 89, 0.3);
        }

        .tempo-price-cards-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            max-width: 1040px;
            margin: 0 auto;
        }

        .tempo-plan-card {
            background: var(--surface-primary);
            border: 1px solid var(--hairline);
            border-radius: var(--radius-xl);
            padding: 40px 32px;
            box-shadow: var(--shadow-card);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .tempo-plan-card.pro-hero {
            border-color: var(--tempo-tint);
            box-shadow: var(--shadow-card), 0 0 0 1px var(--tempo-tint);
        }

        .tempo-hero-badge {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--tempo-tint);
            color: #ffffff;
            font-size: 11.5px;
            font-weight: 700;
            padding: 4px 14px;
            border-radius: var(--radius-full);
            box-shadow: 0 4px 12px var(--tempo-tint-glow);
        }

        .tempo-plan-name {
            font-size: 19px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .tempo-plan-desc {
            font-size: 13.5px;
            color: var(--text-secondary);
            margin-bottom: 26px;
        }

        .tempo-price-num-row {
            display: flex;
            align-items: baseline;
            gap: 4px;
            margin-bottom: 26px;
        }

        .tempo-plan-currency {
            font-size: 24px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .tempo-plan-amount {
            font-family: var(--font-display);
            font-size: 48px;
            font-weight: 600;
            letter-spacing: -0.04em;
            color: var(--text-primary);
        }

        .tempo-plan-period {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .tempo-feature-checklist {
            list-style: none;
            margin-bottom: 34px;
            display: flex;
            flex-direction: column;
            gap: 13px;
        }

        .tempo-feature-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .tempo-feature-item i {
            color: #34c759;
            font-size: 12.5px;
        }

        /* ==========================================================================
           7. ACCORDION FAQ
           ========================================================================== */
        .tempo-faq-accordion {
            max-width: 780px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
        }

        .tempo-faq-item {
            border-bottom: 1px solid var(--hairline);
        }

        .tempo-faq-q {
            padding: 24px 6px;
            font-size: 17px;
            font-weight: 600;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            cursor: pointer;
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: color 0.15s ease;
        }

        .tempo-faq-q::-webkit-details-marker { display: none; }

        .tempo-faq-q:hover {
            color: var(--tempo-tint);
        }

        .tempo-faq-arrow {
            font-size: 14px;
            color: var(--text-tertiary);
            transition: transform 0.25s ease;
        }

        details[open] .tempo-faq-arrow {
            transform: rotate(45deg);
        }

        .tempo-faq-a {
            padding: 0 6px 24px;
            font-size: 15px;
            line-height: 1.6;
            color: var(--text-secondary);
        }

        /* ==========================================================================
           8. PRE-FOOTER CALLOUT
           ========================================================================== */
        .tempo-prefooter-box {
            background: linear-gradient(135deg, var(--surface-secondary) 0%, var(--surface-primary) 100%);
            border: 1px solid var(--hairline-prominent);
            border-radius: var(--radius-xl);
            padding: 68px 36px;
            text-align: center;
            box-shadow: var(--shadow-card);
            margin-bottom: 85px;
        }

        .tempo-prefooter-h2 {
            font-family: var(--font-display);
            font-size: clamp(28px, 4.2vw, 44px);
            font-weight: 600;
            letter-spacing: -0.035em;
            color: var(--text-primary);
            margin-bottom: 16px;
        }

        .tempo-prefooter-sub {
            font-size: 17px;
            color: var(--text-secondary);
            max-width: 560px;
            margin: 0 auto 32px;
        }

        /* ==========================================================================
           9. TEMPOMAIL FOOTER (MUSEUM DENSITY & DIRECT CONTACT)
           ========================================================================== */
        .tempo-footer-wrap {
            background: var(--surface-primary);
            border-top: 1px solid var(--hairline);
            padding: 56px 0 42px;
            font-size: 12.5px;
            color: var(--text-tertiary);
        }

        .tempo-footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 44px;
            margin-bottom: 44px;
        }

        .tempo-footer-block h5 {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--text-primary);
            margin-bottom: 16px;
            font-weight: 600;
        }

        .tempo-footer-block ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .tempo-footer-block a {
            text-decoration: none;
            color: var(--text-secondary);
            transition: color 0.15s ease;
        }

        .tempo-footer-block a:hover {
            color: var(--text-primary);
        }

        .tempo-author-link {
            color: var(--tempo-tint);
            font-weight: 600;
            text-decoration: none;
        }

        .tempo-footer-subrow {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 26px;
            border-top: 1px solid var(--hairline);
            flex-wrap: wrap;
            gap: 16px;
        }

        /* ==========================================================================
           10. INTERACTIVE MODAL (iOS Sheet Dialog)
           ========================================================================== */
        .tempo-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .tempo-modal-overlay.active {
            display: flex;
            opacity: 1;
        }

        .tempo-sheet-window {
            background: var(--surface-primary);
            border: 1px solid var(--hairline-prominent);
            border-radius: var(--radius-xl);
            width: min(640px, 92vw);
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: var(--shadow-modal);
            transform: scale(0.96) translateY(12px);
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .tempo-modal-overlay.active .tempo-sheet-window {
            transform: scale(1) translateY(0);
        }

        .tempo-sheet-grab-bar {
            width: 38px;
            height: 4.5px;
            border-radius: var(--radius-full);
            background: var(--surface-quaternary);
            margin: 12px auto 0;
        }

        .tempo-sheet-header-row {
            padding: 18px 26px;
            border-bottom: 1px solid var(--hairline);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .tempo-sheet-h3 {
            font-size: 16.5px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .tempo-sheet-close-btn {
            background: var(--surface-tertiary);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 13px;
        }

        .tempo-sheet-close-btn:hover {
            color: var(--text-primary);
            background: var(--surface-quaternary);
        }

        .tempo-sheet-content {
            padding: 26px;
        }

        /* iOS Push Notification Pill (Top Drop) */
        .tempo-toast-banner {
            position: fixed;
            top: 72px;
            left: 50%;
            transform: translateX(-50%) translateY(-40px);
            background: var(--surface-glass-heavy);
            backdrop-filter: blur(24px) saturate(190%);
            -webkit-backdrop-filter: blur(24px) saturate(190%);
            border: 1px solid var(--hairline-prominent);
            border-radius: var(--radius-full);
            padding: 11px 24px;
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
            display: flex;
            align-items: center;
            gap: 11px;
            font-size: 13.5px;
            font-weight: 600;
            color: var(--text-primary);
            z-index: 10001;
            opacity: 0;
            pointer-events: none;
            transition: all 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .tempo-toast-banner.active {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* Responsive Breakpoints */
        @media (max-width: 880px) {
            .tempo-bento-layout { grid-template-columns: 1fr; }
            .tile-span-8, .tile-span-4, .tile-span-6 { grid-column: span 1; }
            .tempo-price-cards-row { grid-template-columns: 1fr; }
            .tempo-footer-grid { grid-template-columns: 1fr 1fr; }
            .tempo-nav-menu { display: none; }
            .tempo-island-side-btn { display: none; }
        }

/* ==========================================================================
   TEMPOMAIL SQUIRCLE MAILBOX & DYNAMIC STATUS CAPSULE COMPONENT SYSTEM
   ========================================================================== */

/* 1. Squircle Mailbox Chassis */
.tempo-mail-chassis,
.tempo-mailbox-chassis {
    max-width: 920px;
    margin: 0 auto;
    background: var(--tempo-card-surface, #121214);
    border: 1px solid var(--tempo-hairline-strong, rgba(255, 255, 255, 0.12));
    border-radius: var(--tempo-radius-hero, 32px);
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .tempo-mail-chassis,
[data-theme="light"] .tempo-mailbox-chassis {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 2. Dynamic Status Capsule (Top Deck) */
.tempo-dynamic-island-wrapper {
    padding: 16px 20px;
    background: var(--tempo-surface-secondary, #1c1c1e);
    border-bottom: 1px solid var(--tempo-hairline, rgba(255, 255, 255, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

[data-theme="light"] .tempo-dynamic-island-wrapper {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

.tempo-dynamic-island {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--tempo-radius-pill, 9999px);
    padding: 6px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    user-select: none;
}

[data-theme="light"] .tempo-dynamic-island {
    background: #1c1c1e;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tempo-island-left {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.tempo-beacon-ring {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--tempo-accent, #ff7700);
    top: 50%;
    left: 4px;
    transform: translate(-50%, -50%);
    animation: tempoBeaconPulse 2s infinite ease-out;
    pointer-events: none;
}

.tempo-beacon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tempo-accent, #ff7700);
    box-shadow: 0 0 10px var(--tempo-accent, #ff7700);
    display: inline-block;
    flex-shrink: 0;
}

@keyframes tempoBeaconPulse {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.tempo-island-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.tempo-island-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tempo-island-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 9px;
    border-radius: 9999px;
    font-family: var(--tempo-font-mono, monospace);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--tempo-accent, #ff7700);
}

.tempo-sync-icon {
    animation: tempoSpin 3s linear infinite;
}

@keyframes tempoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 3. Address Capsule / Cockpit */
.tempo-address-capsule {
    padding: 28px 24px 22px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(255, 119, 0, 0.04) 0%, transparent 70%);
}

.tempo-input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid var(--tempo-hairline-strong, rgba(255, 255, 255, 0.14));
    border-radius: var(--tempo-radius-pill, 9999px);
    padding: 6px 8px 6px 20px;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .tempo-input-container {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tempo-input-container:focus-within {
    border-color: var(--tempo-accent, #ff7700);
    box-shadow: 0 0 0 4px var(--tempo-accent-subtle, rgba(255, 119, 0, 0.15)), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tempo-input-leading-icon {
    color: var(--tempo-accent, #ff7700);
    font-size: 16px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tempo-monospace-input {
    border: none !important;
    background: transparent !important;
    font-family: var(--tempo-font-mono, 'JetBrains Mono', monospace) !important;
    font-size: clamp(15px, 2.2vw, 19px) !important;
    font-weight: 600 !important;
    color: var(--tempo-text-primary, #f5f5f7) !important;
    width: 100% !important;
    outline: none !important;
    letter-spacing: -0.02em !important;
    padding: 6px 0 !important;
    text-overflow: ellipsis;
}

[data-theme="light"] .tempo-monospace-input {
    color: #0f172a !important;
}

.tempo-copy-pill {
    background: var(--tempo-accent, #ff7700) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 9px 20px !important;
    border-radius: var(--tempo-radius-pill, 9999px) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px var(--tempo-accent-glow, rgba(255, 119, 0, 0.32)) !important;
    flex-shrink: 0 !important;
}

.tempo-copy-pill:hover {
    background: var(--tempo-accent-hover, #ea6c00) !important;
    transform: scale(1.03);
}

.tempo-copy-pill:active {
    transform: scale(0.96) !important;
}

/* 4. Segmented Action Toolbar */
.tempo-segmented-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 20px 24px;
}

.tempo-toolbar-item {
    background: var(--tempo-surface-secondary, #1c1c1e) !important;
    border: 1px solid var(--tempo-hairline, rgba(255, 255, 255, 0.09)) !important;
    color: var(--tempo-text-primary, #f5f5f7) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 8px 18px !important;
    border-radius: var(--tempo-radius-pill, 9999px) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="light"] .tempo-toolbar-item {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tempo-toolbar-item:hover {
    background: var(--tempo-surface-tertiary, #2c2c2e) !important;
    border-color: var(--tempo-hairline-strong, rgba(255, 255, 255, 0.16)) !important;
    transform: translateY(-1px);
    color: var(--tempo-accent, #ff7700) !important;
}

.tempo-toolbar-item:active {
    transform: scale(0.97) !important;
}

.tempo-toolbar-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #ef4444 !important;
}

/* 5. Mailbox List Header & Container */
.tempo-mailbox-header {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    padding: 14px 24px;
    background: var(--tempo-surface-secondary, #1c1c1e);
    border-bottom: 1px solid var(--tempo-hairline, rgba(255, 255, 255, 0.08));
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tempo-text-tertiary, #86868b);
}

[data-theme="light"] .tempo-mailbox-header {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
    color: #64748b;
}

.tempo-mailbox-body {
    min-height: 220px;
    padding: 12px 20px 20px;
    background: var(--tempo-card-surface, #121214);
}

[data-theme="light"] .tempo-mailbox-body {
    background: #ffffff;
}

/* 6. Minimalist Empty State with Radar Pulse */
.tempo-empty-state {
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tempo-radar-stage {
    width: 84px;
    height: 84px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tempo-radar-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 119, 0, 0.35);
    animation: tempoRadarExpand 3s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
}

.tempo-radar-pulse.pulse-2 {
    animation-delay: 1s;
}

.tempo-radar-pulse.pulse-3 {
    animation-delay: 2s;
}

@keyframes tempoRadarExpand {
    0% { transform: scale(0.3); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.tempo-empty-orb {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--tempo-surface-secondary, #1c1c1e);
    border: 1px solid var(--tempo-hairline-strong, rgba(255, 255, 255, 0.14));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tempo-accent, #ff7700);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

[data-theme="light"] .tempo-empty-orb {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
}

.tempo-empty-headline {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--tempo-text-primary, #f5f5f7);
}

[data-theme="light"] .tempo-empty-headline {
    color: #0f172a;
}

.tempo-empty-subtext {
    font-size: 13.5px;
    color: var(--tempo-text-secondary, #8e8e93);
    max-width: 380px;
}

.tempo-live-sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tempo-accent, #ff7700);
    background: rgba(255, 119, 0, 0.08);
    border: 1px solid rgba(255, 119, 0, 0.2);
    padding: 5px 14px;
    border-radius: 9999px;
}

.tempo-sync-beacon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tempo-accent, #ff7700);
    box-shadow: 0 0 8px var(--tempo-accent, #ff7700);
    animation: tempoBlink 1.5s infinite ease-in-out;
}

@keyframes tempoBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* 7. Live Incoming Message Cards (Notification-Style Rows) */
.tempo-mailbox-stream {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tempo-mail-card,
.tempo-mail-row {
    background: var(--tempo-surface-secondary, #1c1c1e);
    border: 1px solid var(--tempo-hairline, rgba(255, 255, 255, 0.08));
    border-radius: var(--tempo-radius-modal, 16px);
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

[data-theme="light"] .tempo-mail-card,
[data-theme="light"] .tempo-mail-row {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.tempo-mail-card:hover,
.tempo-mail-row:hover {
    background: var(--tempo-surface-tertiary, #2c2c2e);
    border-color: var(--tempo-hairline-strong, rgba(255, 255, 255, 0.16));
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .tempo-mail-card:hover,
[data-theme="light"] .tempo-mail-row:hover {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.tempo-avatar-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #ffffff;
    flex-shrink: 0;
    margin-right: 12px;
}

.tempo-mail-subject-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.tempo-otp-pill {
    background: rgba(255, 119, 0, 0.14);
    border: 1px solid rgba(255, 119, 0, 0.32);
    color: var(--tempo-accent, #ff7700);
    font-family: var(--tempo-font-mono, monospace);
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.tempo-otp-pill:hover {
    background: var(--tempo-accent, #ff7700);
    color: #ffffff;
    transform: scale(1.05);
}

.tempo-time-pill {
    font-family: var(--tempo-font-mono, monospace);
    font-size: 12px;
    color: var(--tempo-text-tertiary, #86868b);
    text-align: center;
}

/* 8. Conversion Banner Below Mailbox */
.tempo-account-banner {
    background: linear-gradient(135deg, rgba(255, 119, 0, 0.08) 0%, var(--tempo-card-surface, #121214) 100%);
    border: 1px solid rgba(255, 119, 0, 0.22);
    border-radius: var(--tempo-radius-card, 24px);
    padding: 20px 26px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .tempo-account-banner {
    background: linear-gradient(135deg, rgba(255, 119, 0, 0.06) 0%, #ffffff 100%);
    border-color: rgba(255, 119, 0, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tempo-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 119, 0, 0.12);
    border: 1px solid rgba(255, 119, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tempo-accent, #ff7700);
    font-size: 18px;
    flex-shrink: 0;
}

.tempo-banner-btn {
    background: var(--tempo-accent, #ff7700) !important;
    border: none !important;
    border-radius: var(--tempo-radius-pill, 9999px) !important;
    padding: 8px 22px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px var(--tempo-accent-glow, rgba(255, 119, 0, 0.35)) !important;
}

.tempo-banner-btn:hover {
    background: var(--tempo-accent-hover, #ea6c00) !important;
    transform: translateY(-1px);
}

/* 9. Modals (Squircle Bottom-Sheet / Dialogs) */
.tempo-modal-glass .modal-content {
    background: var(--tempo-card-surface, #121214) !important;
    border: 1px solid var(--tempo-hairline-strong, rgba(255, 255, 255, 0.14)) !important;
    border-radius: var(--tempo-radius-card, 24px) !important;
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.85) !important;
    overflow: hidden;
}

[data-theme="light"] .tempo-modal-glass .modal-content {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
}

.tempo-qr-frame {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

#tempo-sync-countdown, .tempo-sync-countdown { font-family: var(--tempo-font-mono, monospace); font-size: 11.5px; font-weight: 600; color: var(--tempo-accent, #ff7700); }

/* ==========================================================================
   TEMPOMAIL EMAIL READER (VIEW.BLADE.PHP) LUXURY COMPONENT STYLING
   ========================================================================== */

.tempo-reader-section {
    position: relative;
}

.tempo-reader-layout {
    gap: 24px;
}

.tempo-reader-card {
    background: var(--tempo-card-surface, #121214);
    border: 1px solid var(--tempo-hairline-strong, rgba(255, 255, 255, 0.12));
    border-radius: var(--tempo-radius-hero, 28px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-theme="light"] .tempo-reader-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tempo-reader-topbar {
    background: var(--tempo-surface-secondary, #1c1c1e);
    border-bottom: 1px solid var(--tempo-hairline, rgba(255, 255, 255, 0.08));
}

[data-theme="light"] .tempo-reader-topbar {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

.tempo-back-btn {
    background: var(--tempo-surface-tertiary, #2c2c2e);
    border: 1px solid var(--tempo-hairline, rgba(255, 255, 255, 0.09));
    color: var(--tempo-text-primary, #f5f5f7);
    padding: 8px 16px;
    border-radius: var(--tempo-radius-pill, 9999px);
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .tempo-back-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

.tempo-back-btn:hover {
    background: var(--tempo-accent, #ff7700);
    color: #ffffff;
    border-color: var(--tempo-accent, #ff7700);
    transform: translateX(-2px);
}

.tempo-recipient-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--tempo-hairline, rgba(255, 255, 255, 0.08));
    padding: 6px 14px;
    border-radius: var(--tempo-radius-pill, 9999px);
    font-size: 12.5px;
    font-family: var(--tempo-font-mono, monospace);
    color: var(--tempo-text-secondary, #8e8e93);
    max-width: 320px;
    display: inline-flex;
    align-items: center;
}

[data-theme="light"] .tempo-recipient-pill {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
    color: #475569;
}

.tempo-recipient-label {
    color: var(--tempo-text-tertiary, #636366);
    margin-right: 4px;
}

.tempo-action-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--tempo-radius-pill, 9999px);
    background: var(--tempo-surface-tertiary, #2c2c2e);
    border: 1px solid var(--tempo-hairline, rgba(255, 255, 255, 0.09));
    color: var(--tempo-text-secondary, #8e8e93);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .tempo-action-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #64748b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tempo-action-btn:hover {
    color: var(--tempo-text-primary, #ffffff);
    border-color: var(--tempo-hairline-strong, rgba(255, 255, 255, 0.2));
    transform: translateY(-1px);
}

.tempo-fav-btn.is-favorited,
.tempo-fav-btn:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.tempo-delete-btn:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.tempo-email-meta-panel {
    border-color: var(--tempo-hairline, rgba(255, 255, 255, 0.08)) !important;
}

[data-theme="light"] .tempo-email-meta-panel {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

.tempo-sender-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tempo-accent, #ff7700) 0%, #ff5500 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--tempo-accent-glow, rgba(255, 119, 0, 0.3));
    flex-shrink: 0;
}

.tempo-sender-name {
    font-size: 16px;
    color: var(--tempo-text-primary, #f5f5f7);
    letter-spacing: -0.015em;
}

[data-theme="light"] .tempo-sender-name {
    color: #0f172a;
}

.tempo-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--tempo-text-tertiary, #86868b);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--tempo-hairline, rgba(255, 255, 255, 0.06));
    padding: 6px 14px;
    border-radius: var(--tempo-radius-pill, 9999px);
}

[data-theme="light"] .tempo-date-pill {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.06);
    color: #64748b;
}

.tempo-email-subject {
    font-size: clamp(20px, 2.8vw, 26px);
    letter-spacing: -0.025em;
    color: var(--tempo-text-primary, #f5f5f7);
    line-height: 1.25;
}

[data-theme="light"] .tempo-email-subject {
    color: #0f172a;
}

.tempo-attachment-card {
    background: var(--tempo-surface-secondary, #1c1c1e) !important;
    border: 1px solid var(--tempo-hairline, rgba(255, 255, 255, 0.08)) !important;
    border-radius: var(--tempo-radius-md, 14px) !important;
    transition: all 0.2s ease;
}

[data-theme="light"] .tempo-attachment-card {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.tempo-attachment-card:hover {
    border-color: var(--tempo-accent, #ff7700) !important;
    transform: translateY(-2px);
}

.tempo-file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 119, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tempo-accent, #ff7700);
}

.tempo-iframe-wrapper {
    background: #ffffff;
    border: 1px solid var(--tempo-hairline, rgba(255, 255, 255, 0.1)) !important;
    border-radius: var(--tempo-radius-modal, 16px);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.tempo-sender-email { font-family: var(--tempo-font-mono, monospace); font-size: 13px; color: var(--tempo-text-tertiary, #86868b); }
