/* ==========================================================================
   TEMPOMAIL - LUXURY APPLE iOS 18 SQUIRCLE DESIGN SYSTEM
   Author: TempoMail Core Team
   Stack: Laravel 11 + PHP 8.2 | Pure Proprietary Architecture
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
    --tempo-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    --tempo-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    /* Dark Obsidian Palette (Default) */
    --tempo-bg: #000000;
    --tempo-bg-subtle: #08080a;
    --tempo-card-bg: rgba(18, 18, 24, 0.78);
    --tempo-card-elevated: rgba(26, 26, 36, 0.88);
    --tempo-card-border: rgba(255, 255, 255, 0.09);
    --tempo-card-inner: rgba(255, 255, 255, 0.03);
    --tempo-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 90px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);

    --tempo-text-primary: #f8fafc;
    --tempo-text-secondary: #cbd5e1;
    --tempo-text-muted: #94a3b8;

    --tempo-input-bg: rgba(9, 10, 15, 0.65);
    --tempo-input-border: rgba(255, 255, 255, 0.12);
    --tempo-input-focus-border: #f59e0b;
    --tempo-input-focus-glow: rgba(245, 158, 11, 0.22);
    --tempo-input-color: #f8fafc;

    --tempo-amber: #f59e0b;
    --tempo-amber-hover: #d97706;
    --tempo-amber-glow: rgba(245, 158, 11, 0.35);
    --tempo-green: #34c759;
    --tempo-green-hover: #2db34f;
    --tempo-green-glow: rgba(52, 199, 89, 0.35);
    --tempo-red: #ff453a;
    --tempo-red-hover: #e0382e;
    --tempo-red-glow: rgba(255, 69, 58, 0.25);

    --tempo-glass-bg: rgba(255, 255, 255, 0.05);
    --tempo-glass-border: rgba(255, 255, 255, 0.10);
    --tempo-glass-hover: rgba(255, 255, 255, 0.09);

    --tempo-radius-sm: 12px;
    --tempo-radius-md: 18px;
    --tempo-radius-lg: 24px;
    --tempo-radius-xl: 32px;
    --tempo-radius-pill: 9999px;
}

html.light, [data-theme="light"] {
    --tempo-bg: #f5f5f7;
    --tempo-bg-subtle: #ffffff;
    --tempo-card-bg: rgba(255, 255, 255, 0.90);
    --tempo-card-elevated: #ffffff;
    --tempo-card-border: rgba(0, 0, 0, 0.08);
    --tempo-card-inner: rgba(0, 0, 0, 0.015);
    --tempo-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 20px 60px -15px rgba(0, 0, 0, 0.08);

    --tempo-text-primary: #0f172a;
    --tempo-text-secondary: #475569;
    --tempo-text-muted: #94a3b8;

    --tempo-input-bg: #ffffff;
    --tempo-input-border: #cbd5e1;
    --tempo-input-focus-border: #d97706;
    --tempo-input-focus-glow: rgba(217, 119, 6, 0.20);
    --tempo-input-color: #0f172a;

    --tempo-amber: #d97706;
    --tempo-amber-hover: #b45309;
    --tempo-glass-bg: rgba(0, 0, 0, 0.03);
    --tempo-glass-border: rgba(0, 0, 0, 0.08);
    --tempo-glass-hover: rgba(0, 0, 0, 0.06);
}

/* Base resets & typography */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--tempo-bg);
    color: var(--tempo-text-primary);
    font-family: var(--tempo-font-sans);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global High-Contrast Text Utility Overrides */
.text-muted, [data-theme="dark"] .text-muted, html.dark .text-muted {
    color: var(--tempo-text-secondary) !important;
}

.text-secondary, [data-theme="dark"] .text-secondary, html.dark .text-secondary {
    color: var(--tempo-text-secondary) !important;
}

.tempo-status-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tempo-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tempo-refresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tempo-text-secondary);
}

/* Ambient Radial Glow Canvas */
.tempo-ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(1000px circle at 50% -120px, rgba(245, 158, 11, 0.09), transparent 70%),
                radial-gradient(800px circle at 80% 300px, rgba(52, 199, 89, 0.04), transparent 60%),
                radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
}

html.light .tempo-ambient-glow {
    background: radial-gradient(1000px circle at 50% -120px, rgba(245, 158, 11, 0.06), transparent 70%),
                radial-gradient(800px circle at 80% 300px, rgba(52, 199, 89, 0.05), transparent 60%),
                radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
}

/* ==========================================================================
   NAVIGATION BAR (FLOATING GLASS ISLAND)
   ========================================================================== */

.tempo-navbar-wrap {
    position: sticky !important;
    top: 16px !important;
    z-index: 1040 !important;
    padding: 0 20px;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

.tempo-navbar-wrap.tempo-nav-hidden {
    transform: translateY(-130%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.tempo-navbar-wrap.tempo-nav-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.tempo-navbar-wrap.tempo-nav-scrolled .tempo-navbar {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--tempo-card-border) !important;
    background: rgba(10, 12, 18, 0.85) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
}

html.light .tempo-navbar-wrap.tempo-nav-scrolled .tempo-navbar {
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.88) !important;
}

.tempo-navbar {
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    backdrop-filter: blur(36px) saturate(190%);
    -webkit-backdrop-filter: blur(36px) saturate(190%);
    border-radius: var(--tempo-radius-pill);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.tempo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--tempo-text-primary);
}

.tempo-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 4px 14px var(--tempo-amber-glow);
}

.tempo-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.light .tempo-brand-name {
    background: linear-gradient(135deg, #0f172a 40%, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tempo-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tempo-nav-link {
    color: var(--tempo-text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--tempo-radius-pill);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tempo-nav-link:hover, .tempo-nav-link.active {
    color: var(--tempo-text-primary);
    background: var(--tempo-glass-hover);
}

/* Navigation Dropdowns */
.tempo-nav-dropdown-wrap {
    position: relative;
}

.tempo-dropdown-chevron {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.tempo-nav-dropdown-wrap:hover .tempo-dropdown-chevron,
.tempo-nav-dropdown-wrap.show .tempo-dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

@media (min-width: 992px) {
    .tempo-nav-dropdown-wrap:hover > .tempo-dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.tempo-nav-dropdown-wrap.show > .tempo-dropdown-menu,
.tempo-dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.tempo-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: rgba(15, 18, 26, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1050;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    transform: translateY(6px);
}

/* Hover Bridge: prevents dropdown from closing when moving across 8px gap */
.tempo-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

html.light .tempo-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.tempo-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--tempo-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.tempo-dropdown-item i {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    color: var(--tempo-amber);
    transition: transform 0.15s ease;
}

.tempo-dropdown-item:hover {
    color: var(--tempo-text-primary);
    background: var(--tempo-glass-hover);
    transform: translateX(3px);
}

.tempo-dropdown-item:hover i {
    transform: scale(1.15);
}

html.light .tempo-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tempo-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tempo-theme-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--tempo-glass-bg);
    border: 1px solid var(--tempo-glass-border);
    color: var(--tempo-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tempo-theme-btn:hover {
    color: var(--tempo-text-primary);
    background: var(--tempo-glass-hover);
    transform: scale(1.05);
}

/* ==========================================================================
   BUTTONS (TACTILE APPLE SQUIRCLE)
   ========================================================================== */

.btn-tempo-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--tempo-radius-md);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px var(--tempo-amber-glow);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-tempo-primary:hover {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--tempo-amber-glow);
    color: #ffffff;
}

.btn-tempo-primary:active {
    transform: scale(0.97);
}

.btn-tempo-glass {
    background: var(--tempo-glass-bg);
    color: var(--tempo-text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 11px 20px;
    border-radius: var(--tempo-radius-md);
    border: 1px solid var(--tempo-glass-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-tempo-glass:hover {
    background: var(--tempo-glass-hover);
    color: var(--tempo-text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-tempo-glass:active {
    transform: scale(0.97);
}

.btn-tempo-danger-glass {
    background: rgba(255, 69, 58, 0.12);
    color: #ff453a;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 11px 20px;
    border-radius: var(--tempo-radius-md);
    border: 1px solid rgba(255, 69, 58, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-tempo-danger-glass:hover {
    background: rgba(255, 69, 58, 0.22);
    color: #ffffff;
    border-color: rgba(255, 69, 58, 0.45);
}

.btn-tempo-danger-glass:active {
    transform: scale(0.97);
}

/* ==========================================================================
   HERO FLOATING MAILBOX ISLAND
   ========================================================================== */

.tempo-hero-section {
    padding: 60px 20px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.tempo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--tempo-radius-pill);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--tempo-amber);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.tempo-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin-bottom: 16px;
}

.tempo-hero-title span {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tempo-hero-subtitle {
    font-size: 1.15rem;
    color: var(--tempo-text-secondary);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* The Master Mailbox Card */
.tempo-mailbox-card {
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    backdrop-filter: blur(36px) saturate(190%);
    -webkit-backdrop-filter: blur(36px) saturate(190%);
    border-radius: var(--tempo-radius-xl);
    padding: 36px;
    box-shadow: var(--tempo-card-shadow);
    max-width: 920px;
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
}

.tempo-mailbox-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.tempo-email-capsule {
    background: var(--tempo-input-bg);
    border: 1.5px solid var(--tempo-input-border);
    border-radius: var(--tempo-radius-lg);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.tempo-email-capsule:focus-within {
    border-color: var(--tempo-input-focus-border);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 4px var(--tempo-input-focus-glow);
}

.tempo-email-text-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    overflow: hidden;
}

.tempo-email-icon {
    color: var(--tempo-amber);
    font-size: 1.4rem;
}

.tempo-email-address,
#mainEmail {
    font-family: var(--tempo-font-mono);
    font-size: clamp(1.1rem, 2.8vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--tempo-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: all;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
}

.tempo-email-address:focus,
#mainEmail:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.tempo-email-address::selection,
#mainEmail::selection {
    background: transparent !important;
    color: inherit !important;
}

.tempo-email-address::-moz-selection,
#mainEmail::-moz-selection {
    background: transparent !important;
    color: inherit !important;
}

.tempo-btn-copy-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border: none;
    border-radius: var(--tempo-radius-md);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px var(--tempo-amber-glow);
    white-space: nowrap;
}

.tempo-btn-copy-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--tempo-amber-glow);
}

.tempo-email-capsule.copied-glow {
    border-color: #34c759 !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(52, 199, 89, 0.28) !important;
}

.tempo-btn-copy-badge.copied {
    background: linear-gradient(135deg, #34c759, #2db34f) !important;
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.45) !important;
    transform: scale(1.04);
}

/* Mailbox Action Bar */
.tempo-action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   LIVE INBOX COMPONENT (APPLE iOS MAIL STREAM)
   ========================================================================== */

.tempo-inbox-section {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 20px;
    width: 100%;
}

/* Elongated Unified Mailbox Card */
.tempo-inbox-card {
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    backdrop-filter: blur(36px);
    border-radius: var(--tempo-radius-xl);
    box-shadow: var(--tempo-card-shadow);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tempo-inbox-card-header,
.tempo-inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--tempo-card-border);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 0;
}

.tempo-inbox-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    min-height: 340px;
    justify-content: flex-start;
}

.tempo-inbox-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tempo-inbox-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--tempo-text-primary);
}

.tempo-radar-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(52, 199, 89, 0.12);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: var(--tempo-green);
    padding: 4px 12px;
    border-radius: var(--tempo-radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tempo-radar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tempo-green);
    box-shadow: 0 0 8px var(--tempo-green);
    animation: tempoPulse 1.8s infinite;
}

@keyframes tempoPulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--tempo-green); }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.tempo-inbox-counter {
    font-size: 0.88rem;
    color: var(--tempo-text-muted);
    font-weight: 600;
}

/* Empty State Container (Seamless inside Card Body) */
.tempo-inbox-empty {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 48px 20px;
    text-align: center;
    margin: auto 0;
    width: 100%;
}

.mailbox:not(.empty) .tempo-inbox-empty {
    display: none !important;
}

.mailbox.empty .tempo-messages-list {
    display: none !important;
}

.mailbox:not(.empty) .tempo-messages-list {
    display: flex !important;
}

.tempo-empty-radar-icon {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--tempo-amber);
    font-size: 28px;
    animation: tempoFloating 3s ease-in-out infinite;
}

@keyframes tempoFloating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.tempo-empty-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--tempo-text-primary);
}

.tempo-empty-desc {
    color: var(--tempo-text-secondary);
    font-size: 0.95rem;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Incoming Email Card List */
.tempo-messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.tempo-msg-card {
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    border-radius: var(--tempo-radius-lg);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.tempo-msg-card:hover {
    background: var(--tempo-card-elevated);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.tempo-msg-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    overflow: hidden;
}

.tempo-msg-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--tempo-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tempo-msg-info {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tempo-msg-sender {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--tempo-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tempo-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tempo-amber);
    box-shadow: 0 0 6px var(--tempo-amber);
}

.tempo-msg-subject {
    font-size: 0.92rem;
    color: var(--tempo-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tempo-msg-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.tempo-msg-time {
    font-size: 0.8rem;
    color: var(--tempo-text-muted);
    font-weight: 600;
    background: var(--tempo-glass-bg);
    border: 1px solid var(--tempo-glass-border);
    padding: 4px 10px;
    border-radius: var(--tempo-radius-pill);
}

/* ==========================================================================
   EMAIL MESSAGE READER VIEW
   ========================================================================== */

.tempo-reader-wrap {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 20px;
    width: 100%;
}

.tempo-reader-header-card {
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    backdrop-filter: blur(36px);
    border-radius: var(--tempo-radius-xl);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--tempo-card-shadow);
}

.tempo-reader-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tempo-reader-subject {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.3;
}

.tempo-reader-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--tempo-card-inner);
}

.tempo-reader-sender-pill {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tempo-reader-body-card {
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    backdrop-filter: blur(36px);
    border-radius: var(--tempo-radius-xl);
    padding: 36px;
    box-shadow: var(--tempo-card-shadow);
    color: var(--tempo-text-primary);
    line-height: 1.7;
    font-size: 1rem;
    overflow-x: auto;
}

.tempo-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--tempo-radius-pill);
    background: var(--tempo-glass-bg);
    border: 1px solid var(--tempo-glass-border);
    color: var(--tempo-text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tempo-attachment-chip:hover {
    background: var(--tempo-glass-hover);
    border-color: var(--tempo-amber);
    color: var(--tempo-amber);
}

/* ==========================================================================
   MODALS (APPLE SQUIRCLE SHEET)
   ========================================================================== */

.tempo-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.tempo-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.tempo-modal-card {
    background: var(--tempo-card-elevated);
    border: 1px solid var(--tempo-card-border);
    border-radius: var(--tempo-radius-xl);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tempo-modal-backdrop.active .tempo-modal-card {
    transform: scale(1);
}

.tempo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.tempo-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
}

.tempo-modal-close {
    background: var(--tempo-glass-bg);
    border: 1px solid var(--tempo-glass-border);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--tempo-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tempo-modal-close:hover {
    color: var(--tempo-text-primary);
}

/* ==========================================================================
   FEATURES, PLANS, FAQS & FOOTER
   ========================================================================== */

.tempo-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.tempo-feature-card {
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    backdrop-filter: blur(36px);
    border-radius: var(--tempo-radius-lg);
    padding: 32px 24px;
    transition: all 0.25s ease;
}

.tempo-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.3);
}

.tempo-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--tempo-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.tempo-feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tempo-feature-desc {
    color: var(--tempo-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}



/* ==========================================================================
   SUB-PAGES & BLOG LUXURY SYSTEM
   ========================================================================== */

.tempo-inner-hero {
    padding: 60px 20px 40px;
    background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-bottom: 1px solid var(--tempo-card-border);
}

.tempo-inner-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: var(--tempo-radius-pill);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--tempo-amber);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tempo-inner-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 10px 0 6px;
    color: var(--tempo-text-primary);
}

.tempo-inner-subtitle {
    color: var(--tempo-text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Rich Content Card (Pages, Articles) */
.tempo-rich-content-card, .tempo-contact-card, .tempo-sidebar-widget {
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    backdrop-filter: blur(36px);
    border-radius: var(--tempo-radius-xl);
    padding: 36px;
    box-shadow: var(--tempo-card-shadow);
}

.tempo-rich-body {
    color: var(--tempo-text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.tempo-rich-body h1, .tempo-rich-body h2, .tempo-rich-body h3, .tempo-rich-body h4 {
    color: var(--tempo-text-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

.tempo-rich-body a {
    color: var(--tempo-amber);
    text-decoration: underline;
}

/* Form Styling */
.tempo-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--tempo-text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tempo-input {
    width: 100%;
    background: var(--tempo-input-bg);
    border: 1px solid var(--tempo-input-border);
    border-radius: var(--tempo-radius-md);
    padding: 12px 16px;
    color: var(--tempo-input-color);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.tempo-input:focus {
    border-color: var(--tempo-input-focus-border);
    box-shadow: 0 0 0 4px var(--tempo-input-focus-glow);
}

.tempo-contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--tempo-amber);
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Blog Cards */
.tempo-blog-card {
    display: block;
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    backdrop-filter: blur(28px);
    border-radius: var(--tempo-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tempo-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    color: inherit;
}

.tempo-blog-thumb-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.tempo-blog-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tempo-blog-card:hover .tempo-blog-thumb {
    transform: scale(1.05);
}

.tempo-blog-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 4px 10px;
    border-radius: var(--tempo-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.tempo-blog-body {
    padding: 22px;
}

.tempo-blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--tempo-text-primary);
    line-height: 1.4;
}

.tempo-blog-excerpt {
    color: var(--tempo-text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

.tempo-blog-readmore {
    color: var(--tempo-amber);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}

/* Sidebar Elements */
.tempo-sidebar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.tempo-sidebar-search-input {
    width: 100%;
    background: var(--tempo-input-bg);
    border: 1px solid var(--tempo-input-border);
    border-radius: var(--tempo-radius-md);
    padding: 12px 42px 12px 38px;
    color: var(--tempo-input-color);
    outline: none;
    font-size: 0.92rem;
}

.tempo-search-icon {
    position: absolute;
    left: 14px;
    color: var(--tempo-text-muted);
}

.tempo-sidebar-search-btn {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--tempo-amber);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tempo-widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--tempo-text-primary);
}

.tempo-popular-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
    border-bottom: 1px solid var(--tempo-card-border);
    transition: transform 0.2s ease;
}

.tempo-popular-item:last-child {
    border-bottom: none;
}

.tempo-popular-item:hover {
    transform: translateX(4px);
    color: inherit;
}

.tempo-popular-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.tempo-popular-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.35;
    color: var(--tempo-text-primary);
}

.tempo-popular-time {
    font-size: 0.78rem;
    color: var(--tempo-text-muted);
}

.tempo-cat-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tempo-cat-pill {
    padding: 6px 14px;
    border-radius: var(--tempo-radius-pill);
    background: var(--tempo-glass-bg);
    border: 1px solid var(--tempo-glass-border);
    color: var(--tempo-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tempo-cat-pill:hover {
    background: var(--tempo-amber);
    color: #ffffff;
    border-color: var(--tempo-amber);
}

.tempo-cat-count {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 9999px;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--tempo-text-muted);
    margin-left: 6px;
}

/* Category Filter Bar */
.tempo-blog-nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--tempo-radius-pill);
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    color: var(--tempo-text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tempo-blog-nav-pill:hover,
.tempo-blog-nav-pill.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    border-color: var(--tempo-amber);
    color: var(--tempo-amber);
    box-shadow: 0 4px 16px var(--tempo-amber-glow);
}

/* Featured Hero Article */
.tempo-blog-featured-card {
    display: block;
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    border-radius: var(--tempo-radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--tempo-card-shadow);
}

.tempo-blog-featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color: inherit;
}

.tempo-featured-thumb-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.tempo-featured-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tempo-blog-featured-card:hover .tempo-featured-thumb {
    transform: scale(1.04);
}

.tempo-featured-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

.tempo-featured-badge-group {
    position: absolute;
    bottom: 16px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.tempo-featured-cat-chip {
    background: var(--tempo-amber);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: var(--tempo-radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.tempo-featured-read-time {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 5px 12px;
    border-radius: var(--tempo-radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
}

.tempo-featured-body {
    padding: 28px 32px 32px;
}

.tempo-featured-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tempo-text-primary);
    line-height: 1.35;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.tempo-blog-featured-card:hover .tempo-featured-title {
    color: var(--tempo-amber);
}

.tempo-featured-excerpt {
    color: var(--tempo-text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.tempo-blog-card-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--tempo-amber);
    padding: 3px 10px;
    border-radius: var(--tempo-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
}

.tempo-popular-rank {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tempo-amber);
    opacity: 0.85;
    min-width: 26px;
    font-family: var(--tempo-font-mono);
}

.tempo-tips-widget {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.tempo-tag-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--tempo-radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--tempo-text-secondary);
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 6px;
}

.tempo-post-hero-img-wrap {
    width: 100%;
    max-height: 420px;
    border-radius: var(--tempo-radius-lg);
    overflow: hidden;
}

.tempo-post-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tempo-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tempo-glass-bg);
    border: 1px solid var(--tempo-glass-border);
    padding: 4px 12px;
    border-radius: var(--tempo-radius-pill);
    font-size: 0.82rem;
    color: var(--tempo-text-secondary);
    text-decoration: none;
    margin-right: 8px;
}

.tempo-msg-badge-unread {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--tempo-amber);
    padding: 2px 8px;
    border-radius: var(--tempo-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   POPULAR PRICING CARD (DARK & LIGHT MODE SYNCHRONIZED)
   ========================================================================== */

.tempo-pricing-popular {
    background: rgba(26, 20, 14, 0.88) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.55) !important;
    box-shadow: 0 16px 50px -10px rgba(245, 158, 11, 0.28), 0 0 0 1px rgba(245, 158, 11, 0.2) !important;
}

html.light .tempo-pricing-popular, [data-theme="light"] .tempo-pricing-popular {
    background: #ffffff !important;
    border: 2px solid var(--tempo-amber) !important;
    box-shadow: 0 20px 50px -10px rgba(245, 158, 11, 0.25), 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

html.light .tempo-pricing-popular .tempo-feature-title {
    color: #b45309 !important;
}

/* Ambient Radial Glow Intensity Boost */
.tempo-ambient-glow {
    background: radial-gradient(1100px circle at 50% -100px, rgba(245, 158, 11, 0.14), transparent 70%),
                radial-gradient(900px circle at 85% 320px, rgba(52, 199, 89, 0.06), transparent 60%),
                radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 28px 28px !important;
}

html.light .tempo-ambient-glow {
    background: radial-gradient(1100px circle at 50% -100px, rgba(245, 158, 11, 0.10), transparent 70%),
                radial-gradient(900px circle at 85% 320px, rgba(52, 199, 89, 0.06), transparent 60%),
                radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 28px 28px !important;
}

/* Mailbox Card Extra Glow & Highlight */
.tempo-mailbox-card {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 35px 100px -20px rgba(0, 0, 0, 0.9), 0 0 60px -15px rgba(245, 158, 11, 0.12) !important;
}

html.light .tempo-mailbox-card {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 25px 70px -15px rgba(0, 0, 0, 0.10), 0 0 50px -15px rgba(245, 158, 11, 0.10) !important;
}

/* ==========================================================================
   BLOG AUTO TABLE OF CONTENTS (TOC) & AUTHOR BOX LUXURY SYSTEM
   ========================================================================== */

.tempo-toc-card {
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    backdrop-filter: blur(36px);
    border-radius: var(--tempo-radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tempo-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    margin-bottom: 14px;
}

.tempo-toc-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--tempo-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tempo-toc-title i {
    color: var(--tempo-amber);
}

.tempo-toc-toggle-icon {
    font-size: 0.8rem;
    color: var(--tempo-text-muted);
    transition: transform 0.2s ease;
}

.tempo-toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tempo-toc-item {
    font-size: 0.92rem;
    line-height: 1.45;
}

.tempo-toc-item.level-3 {
    padding-left: 18px;
    font-size: 0.86rem;
    opacity: 0.85;
}

.tempo-toc-link {
    color: var(--tempo-text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.tempo-toc-link:hover, .tempo-toc-link.active {
    color: var(--tempo-amber);
    transform: translateX(4px);
}

.tempo-toc-link::before {
    content: "—";
    color: var(--tempo-amber);
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Blog Luxury Author Box */
.tempo-author-card {
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    backdrop-filter: blur(36px);
    border-radius: var(--tempo-radius-xl);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 36px 0;
    box-shadow: var(--tempo-card-shadow);
}

@media (max-width: 576px) {
    .tempo-author-card {
        flex-direction: column;
        text-align: center;
    }
}

.tempo-author-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.tempo-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid var(--tempo-amber);
    box-shadow: 0 6px 20px var(--tempo-amber-glow);
}

.tempo-author-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #34c759;
    color: #ffffff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--tempo-bg);
}

.tempo-author-info {
    flex: 1;
}

.tempo-author-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.tempo-author-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tempo-text-primary);
    margin: 0;
}

.tempo-author-role {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 10px;
    border-radius: var(--tempo-radius-pill);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--tempo-amber);
}

.tempo-author-bio {
    color: var(--tempo-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.tempo-author-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tempo-author-link {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--tempo-glass-bg);
    border: 1px solid var(--tempo-glass-border);
    color: var(--tempo-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tempo-author-link:hover {
    background: var(--tempo-amber);
    color: #ffffff;
    border-color: var(--tempo-amber);
    transform: translateY(-2px);
}

/* ==========================================================================
   FAQ UNIFIED APPLE SQUIRCLE CARD (INSTALLER HARMONIZED)
   ========================================================================== */

.tempo-faq-card {
    max-width: 840px;
    margin: 0 auto;
    background: var(--tempo-card-bg);
    border: 1px solid var(--tempo-card-border);
    backdrop-filter: blur(36px) saturate(190%);
    -webkit-backdrop-filter: blur(36px) saturate(190%);
    border-radius: var(--tempo-radius-xl);
    padding: 12px 32px;
    box-shadow: var(--tempo-card-shadow);
}

html.light .tempo-faq-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 20px 60px -10px rgba(0, 0, 0, 0.08);
}

.tempo-faq-row {
    border-bottom: 1px solid var(--tempo-card-border);
    padding: 22px 0;
    transition: all 0.2s ease;
}

.tempo-faq-row:last-child {
    border-bottom: none;
}

.tempo-faq-button {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    color: var(--tempo-text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tempo-faq-button:hover {
    color: var(--tempo-amber);
}

.tempo-faq-chevron {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tempo-glass-bg);
    border: 1px solid var(--tempo-glass-border);
    color: var(--tempo-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, color 0.2s;
}

.tempo-faq-button:not(.collapsed) .tempo-faq-chevron {
    transform: rotate(180deg);
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--tempo-amber);
}

.tempo-faq-answer {
    color: var(--tempo-text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
    padding-top: 14px;
    padding-right: 44px;
    margin: 0;
}

/* ==========================================================================
   MULTI-COLUMN ORGANIZED FOOTER
   ========================================================================== */

.tempo-footer {
    background: var(--tempo-card-bg);
    border-top: 1px solid var(--tempo-card-border);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.tempo-footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.8fr) repeat(auto-fit, minmax(170px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.tempo-footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tempo-footer-desc {
    color: var(--tempo-text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 360px;
    margin-bottom: 18px;
}

.tempo-footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: var(--tempo-radius-pill);
    background: rgba(52, 199, 89, 0.10);
    border: 1px solid rgba(52, 199, 89, 0.25);
    color: var(--tempo-green);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.tempo-footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--social-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--social-color, #cbd5e1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.tempo-footer-social-btn:hover {
    transform: translateY(-2px);
    border-color: var(--social-color);
    box-shadow: 0 6px 18px -3px var(--social-bg);
    color: #ffffff;
}

html.light .tempo-footer-social-btn {
    border-color: rgba(0, 0, 0, 0.08);
    background: var(--social-bg, rgba(0, 0, 0, 0.04));
}

.tempo-footer-col {
    display: flex;
    flex-direction: column;
}

.tempo-footer-col-title {
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tempo-text-primary);
    margin-bottom: 20px;
}

.tempo-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tempo-footer-link {
    color: var(--tempo-text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.tempo-footer-link:hover {
    color: var(--tempo-amber);
    transform: translateX(4px);
}

.tempo-footer-bottom {
    border-top: 1px solid var(--tempo-card-border);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--tempo-text-muted);
    font-size: 0.88rem;
}

.tempo-footer-copy strong {
    color: var(--tempo-text-primary);
}

.tempo-author-highlight {
    color: var(--tempo-amber);
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
}

.tempo-author-highlight:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* ==========================================================================
   FULL RESPONSIVE SYSTEM (MOBILE, TABLET, DESKTOP)
   ========================================================================== */

@media (max-width: 991px) {
    .tempo-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .tempo-grid-3 {
        grid-template-columns: 1fr;
    }

    .tempo-hero-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .tempo-navbar {
        padding: 8px 16px;
        border-radius: 20px;
    }

    .tempo-hero-section {
        padding: 40px 16px 30px;
    }

    .tempo-hero-title {
        font-size: 2.2rem;
    }

    .tempo-hero-subtitle {
        font-size: 0.95rem;
    }

    .tempo-mailbox-card {
        padding: 24px 16px;
        border-radius: 24px;
    }

    .tempo-email-capsule {
        padding: 8px 12px;
        gap: 8px;
    }

    .tempo-email-address {
        font-size: 1rem !important;
    }

    .tempo-action-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .tempo-action-bar button {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .tempo-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tempo-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .tempo-faq-card {
        padding: 8px 20px;
        border-radius: 20px;
    }

    .tempo-faq-button {
        font-size: 0.98rem;
    }

    .tempo-faq-answer {
        padding-right: 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tempo-navbar-wrap {
        padding: 0 10px;
        top: 10px;
    }

    .tempo-navbar {
        padding: 8px 14px;
    }

    .tempo-brand-name {
        font-size: 1.05rem;
    }

    .tempo-brand-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .tempo-email-capsule {
        padding: 10px 12px;
        gap: 8px;
    }

    .tempo-email-icon {
        font-size: 1.1rem;
    }

    .tempo-btn-copy-badge {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .tempo-action-bar {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .tempo-action-bar button {
        padding: 9px 8px;
        font-size: 0.8rem;
    }

    .tempo-hero-title {
        font-size: 1.75rem;
    }

    .tempo-hero-badge {
        font-size: 0.72rem;
        padding: 4px 12px;
    }
}

/* ==========================================================================
   TEMPO LUXURY TOAST NOTIFICATION ENGINE
   ========================================================================== */
.tempo-toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 40px);
}

.tempo-toast {
    pointer-events: auto;
    background: var(--tempo-card-bg);
    backdrop-filter: blur(36px) saturate(190%);
    -webkit-backdrop-filter: blur(36px) saturate(190%);
    border: 1px solid var(--tempo-card-border);
    border-radius: var(--tempo-radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 20px 50px -10px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(0, 0, 0, 0.4);
    color: var(--tempo-text-primary);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tempo-toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.tempo-toast-icon-wrap {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 12px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.tempo-toast-icon-wrap i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
}

.tempo-toast-success .tempo-toast-icon-wrap {
    background: rgba(52, 199, 89, 0.15);
    border: 1px solid rgba(52, 199, 89, 0.35);
    color: var(--tempo-green);
    box-shadow: 0 0 16px rgba(52, 199, 89, 0.3);
}

.tempo-toast-warning .tempo-toast-icon-wrap {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--tempo-amber);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.tempo-toast-error .tempo-toast-icon-wrap {
    background: rgba(255, 69, 58, 0.15);
    border: 1px solid rgba(255, 69, 58, 0.35);
    color: var(--tempo-red);
    box-shadow: 0 0 16px rgba(255, 69, 58, 0.3);
}

.tempo-toast-info .tempo-toast-icon-wrap {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
}

.tempo-toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tempo-toast-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tempo-text-primary);
    margin: 0;
    line-height: 1.3;
}

.tempo-toast-desc {
    font-size: 0.82rem;
    color: var(--tempo-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.tempo-toast-close {
    background: transparent;
    border: none;
    color: var(--tempo-text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    border-radius: 8px;
}

.tempo-toast-close:hover {
    color: var(--tempo-text-primary);
}

html.light .tempo-toast {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 
        inset 0 1px 0 #ffffff,
        0 20px 45px -10px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

@media (max-width: 576px) {
    .tempo-toast-container {
        bottom: 18px;
        right: 14px;
        left: 14px;
        width: auto;
        max-width: 100%;
    }
}

/* ==========================================================================
   TEMPOMAIL - MASTER RESPONSIVE & AD PROTECTION ENGINE
   ========================================================================== */

/* Strict Ad Slot Container Isolation */
.tempo-ad-slot,
.tempo-ad-wrapper,
.sticky-ad-tempo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.tempo-ad-slot img,
.tempo-ad-wrapper img,
.sticky-ad-tempo img,
.tempo-ad-slot iframe,
.tempo-ad-wrapper iframe,
.sticky-ad-tempo iframe {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 14px;
}

/* Sticky Bottom Ad */
.sticky-ad-tempo {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1040 !important;
    background: rgba(15, 18, 26, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px 16px !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5) !important;
}

html.light .sticky-ad-tempo {
    background: rgba(255, 255, 255, 0.94) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08) !important;
}

.sticky-ad-tempo-close {
    position: absolute !important;
    top: 6px !important;
    right: 12px !important;
    width: 26px !important;
    height: 26px !important;
    display: grid !important;
    place-items: center !important;
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    color: var(--tempo-text-secondary) !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

.sticky-ad-tempo-close:hover {
    background: var(--tempo-red) !important;
    color: #ffffff !important;
}

/* Skyscraper side ads */
.tempo-ad-skyscraper {
    width: 200px !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 90px !important;
}

/* Global Viewport Overflow Guard (Preserves position: sticky) */
html {
    max-width: 100%;
}
body {
    max-width: 100%;
    overflow-x: clip;
    position: relative;
}

.tempo-main-content,
.tempo-hero-section,
.tempo-inbox-section,
.container-fluid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
}

.container,
.tempo-footer .container {
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* Responsive Breakpoint Adaptations */
@media (max-width: 991.98px) {
    .tempo-ad-skyscraper {
        display: none !important;
    }

    .tempo-hero-card,
    .tempo-inbox-section,
    .tempo-rich-content-card,
    .tempo-contact-card {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tempo-inbox-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    .tempo-actions-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .tempo-action-btn-danger {
        grid-column: span 2 !important;
    }

    .tempo-address-box {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px !important;
        gap: 10px !important;
    }

    .tempo-copy-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .tempo-ad-slot img,
    .tempo-ad-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .tempo-actions-grid {
        grid-template-columns: 1fr !important;
    }

    .tempo-action-btn-danger {
        grid-column: span 1 !important;
    }

    .tempo-hero-title {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
    }
}

/* ==========================================================================
   BUTTON DISABLED STATES & TACTILE CONTROLS
   ========================================================================== */
.btn-tempo-primary:disabled,
.btn-tempo-glass:disabled,
.btn-tempo-danger-glass:disabled,
.tempo-btn-copy-badge:disabled,
.btn-tempo-primary[disabled],
.btn-tempo-glass[disabled],
.btn-tempo-danger-glass[disabled],
.tempo-btn-copy-badge[disabled],
.disable-button:disabled {
    opacity: 0.42 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(0.25) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   STICKY AD CLOSE BUTTON HIT AREA & Z-INDEX
   ========================================================================== */
.sticky-ad-tempo-close {
    z-index: 9999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* ==========================================================================
   LUXURY TOASTR / FLASHER FLOATING PILL NOTIFICATION
   ========================================================================== */
.fl-main-container {
    position: fixed !important;
    top: 24px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    z-index: 999999 !important;
    width: auto !important;
    max-width: 90vw !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    pointer-events: none !important;
}

.fl-main-container .fl-container {
    pointer-events: auto !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: translateY(-30px) scale(0.96) !important;
    opacity: 0 !important;
    width: auto !important;
    margin: 0 auto !important;
}

.fl-main-container .fl-container.fl-show {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
}

.fl-main-container .fl-container,
.fl-main-container .fl-container.fl-flasher,
.fl-main-container .fl-container.fl-flasher.fl-success,
.fl-main-container .fl-container.fl-flasher.fl-error,
.fl-main-container .fl-container.fl-flasher.fl-warning,
.fl-main-container .fl-container.fl-flasher.fl-info,
.fl-main-container .fl-container.fl-flasher:not(.fl-rtl),
.fl-main-container .fl-container.fl-flasher.fl-success:not(.fl-rtl),
.fl-main-container .fl-container.fl-flasher.fl-error:not(.fl-rtl),
.fl-main-container .fl-container.fl-flasher.fl-warning:not(.fl-rtl),
.fl-main-container .fl-container.fl-flasher.fl-info:not(.fl-rtl) {
    background: rgba(18, 20, 29, 0.94) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 9999px !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.75), 0 0 24px rgba(245, 158, 11, 0.12) !important;
    padding: 8px 22px 8px 16px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #f8fafc !important;
}

html.light .fl-main-container .fl-container,
html.light .fl-main-container .fl-container.fl-flasher,
html.light .fl-main-container .fl-container.fl-flasher.fl-success,
html.light .fl-main-container .fl-container.fl-flasher.fl-error,
html.light .fl-main-container .fl-container.fl-flasher:not(.fl-rtl),
html.light .fl-main-container .fl-container.fl-flasher.fl-success:not(.fl-rtl),
html.light .fl-main-container .fl-container.fl-flasher.fl-error:not(.fl-rtl) {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12), 0 0 20px rgba(0, 0, 0, 0.05) !important;
}

.fl-main-container .fl-container .fl-progress-bar {
    display: none !important;
}

.fl-main-container .fl-container .fl-content {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
}

.fl-main-container .fl-container .fl-icon {
    font-size: 1rem !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border-radius: 50% !important;
    display: inline-grid !important;
    place-items: center !important;
}

.fl-main-container .fl-container.fl-success .fl-icon {
  background: rgba(16, 185, 129, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center center / 18px 18px !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
}

.fl-main-container .fl-container.fl-error .fl-icon {
  background: rgba(239, 68, 68, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") no-repeat center center / 18px 18px !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2) !important;
}

.fl-main-container .fl-container.fl-warning .fl-icon {
  background: rgba(245, 158, 11, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E") no-repeat center center / 18px 18px !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2) !important;
}

.fl-main-container .fl-container.fl-info .fl-icon {
  background: rgba(59, 130, 246, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E") no-repeat center center / 18px 18px !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2) !important;
}

.fl-main-container .fl-container .fl-title {
    display: none !important;
}

.fl-main-container .fl-container .fl-message {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    color: inherit !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

.fl-main-container .fl-container .fl-progress-bar {
    display: none !important;
}

/* ==========================================================================
   MOBILE STICKY NAVBAR & OFFCANVAS DRAWER
   ========================================================================== */
@media (max-width: 991px) {
    .tempo-navbar-wrap {
        position: sticky !important;
        top: 12px !important;
        z-index: 1030 !important;
        padding: 0 14px !important;
    }

    .tempo-navbar {
        background: rgba(18, 20, 29, 0.92) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    }

    html.light .tempo-navbar {
        background: rgba(255, 255, 255, 0.92) !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
    }
}

.tempo-drawer-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--tempo-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tempo-drawer-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    color: var(--tempo-amber);
    border-color: rgba(245, 158, 11, 0.3);
}

.tempo-offcanvas {
    background: rgba(14, 16, 22, 0.98) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--tempo-text-primary) !important;
    width: 320px !important;
    max-width: 85vw !important;
}

html.light .tempo-offcanvas {
    background: rgba(255, 255, 255, 0.98) !important;
    border-left-color: rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
}

.tempo-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--tempo-text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tempo-drawer-link:hover,
.tempo-drawer-link.active {
    background: rgba(245, 158, 11, 0.1);
    color: var(--tempo-amber);
}

/* ==========================================================================
   CUSTOM OBSIDIAN SELECT DROPDOWN STANDARDIZATION
   ========================================================================== */
.tempo-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f59e0b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 10px 38px 10px 16px !important;
    color: var(--tempo-text-primary) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

html.light .tempo-select {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
}

.tempo-select:focus {
    border-color: var(--tempo-amber) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

.tempo-select option {
    background-color: #12151e !important;
    color: #f8fafc !important;
    padding: 10px !important;
}

html.light .tempo-select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* ==========================================================================
   TEMPOMAIL LUXURY MODAL & BOTTOM SHEET SYSTEM
   ========================================================================== */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 1050 !important;
}

.modal {
    z-index: 1055 !important;
}

.tempo-sheet-modal .modal-content,
.modal-content {
    background: var(--tempo-card-bg) !important;
    border: 1px solid var(--tempo-card-border) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    color: var(--tempo-text-primary) !important;
    overflow: visible !important;
}

html.light .tempo-sheet-modal .modal-content,
html.light .modal-content {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
}

.tempo-sheet-grabber-bar {
    padding-top: 10px;
    display: flex;
    justify-content: center;
}

.tempo-sheet-grabber {
    width: 38px;
    height: 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
}

html.light .tempo-sheet-grabber {
    background: rgba(0, 0, 0, 0.15);
}

.tempo-modal-badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 17px;
    flex-shrink: 0;
}

.tempo-modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--tempo-card-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--tempo-text-secondary);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    margin-left: auto;
}

html.light .tempo-modal-close-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #64748b;
}

.tempo-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--tempo-text-primary);
    transform: scale(1.08);
}

html.light .tempo-modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.tempo-form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tempo-text-secondary);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.tempo-input-group {
    background: rgba(18, 20, 29, 0.8);
    border: 1px solid var(--tempo-card-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

html.light .tempo-input-group {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.1);
}

.tempo-input-group:focus-within {
    border-color: var(--tempo-amber);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.tempo-input-prefix {
    background: transparent !important;
    border: none !important;
    color: var(--tempo-text-secondary);
    padding-left: 14px;
    padding-right: 8px;
    font-size: 14px;
}

.tempo-form-input {
    background: transparent !important;
    border: none !important;
    color: var(--tempo-text-primary) !important;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 12px 14px;
    outline: none !important;
    box-shadow: none !important;
}

html.light .tempo-form-input {
    color: #0f172a !important;
}

.tempo-form-select {
    background: rgba(18, 20, 29, 0.8) !important;
    border: 1px solid var(--tempo-card-border) !important;
    color: var(--tempo-text-primary) !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    outline: none !important;
}

html.light .tempo-form-select {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}

.tempo-qr-chassis {
    display: inline-block;
    padding: 12px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--tempo-card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

html.light .tempo-qr-chassis {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tempo-qr-frame {
    background: #ffffff !important;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tempo-qr-frame canvas,
.tempo-qr-frame img {
    max-width: 100%;
    height: auto;
    display: block;
}

.tempo-scan-instruction-pill {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--tempo-amber);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.tempo-search-group {
    position: relative;
    width: 100%;
}

.tempo-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tempo-text-secondary);
    font-size: 13px;
    pointer-events: none;
}

.tempo-search-input {
    padding-left: 38px !important;
    background: rgba(18, 20, 29, 0.8) !important;
    border: 1px solid var(--tempo-card-border) !important;
    color: var(--tempo-text-primary) !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
}

html.light .tempo-search-input {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}

.tempo-history-grouped-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tempo-history-counter-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--tempo-card-border);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    color: var(--tempo-text-secondary);
}

html.light .tempo-history-counter-pill {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
    color: #64748b;
}

/* ==========================================================================
   PHP-FLASHER LUXURY GLASS OVERRIDE (FRONTEND TEMPO-LUXURY)
   ========================================================================== */
.fl-main-container {
  z-index: 99999 !important;
  width: auto !important;
  max-width: 440px !important;
  padding: 12px !important;
}

.fl-main-container .fl-container {
  transform: translateY(-20px) scale(0.96) !important;
  opacity: 0 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fl-main-container .fl-container.fl-show {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}

.fl-main-container .fl-container.fl-flasher {
  background: rgba(18, 18, 24, 0.94) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  border-left: none !important;
  border-right: none !important;
  overflow: hidden !important;
}

html.light .fl-main-container .fl-container.fl-flasher {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.05) !important;
}

.fl-main-container .fl-container.fl-flasher .fl-content {
  padding: 14px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.fl-main-container .fl-container .fl-icon:before,
.fl-main-container .fl-container .fl-icon:after {
  display: none !important;
  content: none !important;
}

.fl-main-container .fl-container.fl-flasher .fl-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.fl-main-container .fl-container.fl-success .fl-icon {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.fl-main-container .fl-container.fl-error .fl-icon {
  background: rgba(239, 68, 68, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") no-repeat center center / 18px 18px !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2) !important;
}

.fl-main-container .fl-container.fl-warning .fl-icon {
  background: rgba(245, 158, 11, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E") no-repeat center center / 18px 18px !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2) !important;
}

.fl-main-container .fl-container.fl-info .fl-icon {
  background: rgba(59, 130, 246, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E") no-repeat center center / 18px 18px !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2) !important;
}

.fl-main-container .fl-container.fl-flasher .fl-title {
  color: #f8fafc !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin: 0 !important;
}

html.light .fl-main-container .fl-container.fl-flasher .fl-title {
  color: #0f172a !important;
}

.fl-main-container .fl-container.fl-flasher .fl-message {
  color: #94a3b8 !important;
  font-size: 13px !important;
  margin: 2px 0 0 0 !important;
}

html.light .fl-main-container .fl-container.fl-flasher .fl-message {
  color: #64748b !important;
}

.fl-main-container .fl-container .fl-progress-bar {
  background: transparent !important;
  height: 2px !important;
}

.fl-main-container .fl-container.fl-success .fl-progress-bar .fl-progress {
  background: #10b981 !important;
}

/* ==========================================================================
   SELECT2 LUXURY GLASSMORPHIC CONTROLS
   ========================================================================== */
.select2-container {
    width: 100% !important;
    z-index: 1055;
}

.select2-container .select2-selection--single {
    height: 48px !important;
    background: var(--tempo-input-bg) !important;
    border: 1px solid var(--tempo-card-border) !important;
    border-radius: var(--tempo-radius-md) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
    transition: var(--tempo-spring) !important;
}

html.light .select2-container .select2-selection--single {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--tempo-text-primary) !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    padding: 0 !important;
    line-height: normal !important;
}

html.light .select2-container .select2-selection--single .select2-selection__rendered {
    color: #0f172a !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--tempo-text-muted) transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
}

.select2-container--open .select2-selection--single {
    border-color: var(--tempo-amber) !important;
    box-shadow: 0 0 0 3px var(--tempo-amber-glow) !important;
}

.select2-container--open,
.select2-container--open .select2-dropdown,
.modal .select2-container--open,
.modal .select2-dropdown,
.select2-dropdown {
    background: var(--tempo-card-bg) !important;
    border: 1px solid var(--tempo-card-border) !important;
    border-radius: var(--tempo-radius-md) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6) !important;
    padding: 6px !important;
    z-index: 9999999 !important;
}

.tempo-sheet-modal .modal-content,
#changeEmail .modal-content,
.tempo-sheet-modal .modal-body,
#changeEmail .modal-body {
    overflow: visible !important;
}

.tempo-select-wrapper {
    position: relative;
    z-index: 20;
}

html.light .select2-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
}

.select2-results__option {
    padding: 10px 14px !important;
    border-radius: var(--tempo-radius-sm) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: var(--tempo-text-primary) !important;
    transition: var(--tempo-spring) !important;
}

html.light .select2-results__option {
    color: #1e293b !important;
}

.select2-results__option--highlighted {
    background: var(--tempo-amber-subtle, rgba(245, 158, 11, 0.12)) !important;
    color: var(--tempo-amber) !important;
}

.select2-results__group {
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--tempo-text-muted) !important;
}

/* ==========================================================================
   UNIVERSAL MODAL STACKING CONTEXT & BACKDROP DEFENSE
   ========================================================================== */
.modal-backdrop {
    z-index: 1050 !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.modal {
    z-index: 1060 !important;
}

.modal-dialog {
    z-index: 1065 !important;
    position: relative !important;
}

/* ==========================================================================
   TEMPO FORM CONTROLS & FIELD STYLING (FRONTEND LUXURY INPUTS & TEXTAREAS)
   ========================================================================== */
.tempo-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--tempo-radius-md, 12px) !important;
    color: var(--tempo-text-primary, #ffffff) !important;
    padding: 12px 16px !important;
    font-size: 0.92rem !important;
    font-family: inherit !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    display: block;
}

.tempo-field:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--tempo-amber, #f59e0b) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
    color: var(--tempo-text-primary, #ffffff) !important;
}

.tempo-field::placeholder {
    color: var(--tempo-text-muted, #71717a) !important;
    opacity: 0.7;
}

html.light .tempo-field {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.14) !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

html.light .tempo-field:focus {
    background: #ffffff !important;
    border-color: var(--tempo-amber, #f59e0b) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
    color: #0f172a !important;
}

html.light .tempo-field::placeholder {
    color: #94a3b8 !important;
}

/* ==========================================================================
   TEMPO BUTTON SYSTEM (FRONTEND LUXURY BUTTONS & PILLS)
   ========================================================================== */
.tempo-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    padding: 10px 22px !important;
    border-radius: var(--tempo-radius-pill, 9999px) !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.tempo-btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 4px 16px var(--tempo-amber-glow, rgba(245, 158, 11, 0.35)) !important;
}

.tempo-btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24, #d97706) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px var(--tempo-amber-glow, rgba(245, 158, 11, 0.45)) !important;
    color: #ffffff !important;
}

.tempo-btn-primary:active {
    transform: scale(0.97) !important;
}

.tempo-btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--tempo-text-primary, #ffffff) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(12px) !important;
}

.tempo-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

html.light .tempo-btn-secondary {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #1e293b !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html.light .tempo-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
}

.tempo-btn-ghost {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--tempo-text-secondary, #a1a1aa) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.tempo-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--tempo-text-primary, #ffffff) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

html.light .tempo-btn-ghost {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #64748b !important;
}

html.light .tempo-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}

.tempo-btn-sm {
    padding: 7px 16px !important;
    font-size: 0.82rem !important;
}

.tempo-btn-icon {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--tempo-text-secondary, #a1a1aa) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.tempo-btn-icon:hover {
    background: rgba(245, 158, 11, 0.14) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: var(--tempo-amber, #f59e0b) !important;
    transform: scale(1.08) !important;
}

html.light .tempo-btn-icon {
    background: var(--tempo-amber-subtle, rgba(245, 158, 11, 0.12)) !important;
    color: var(--tempo-amber) !important;
}

.select2-results__group {
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--tempo-text-muted) !important;
}

/* ==========================================================================
   UNIVERSAL MODAL STACKING CONTEXT & BACKDROP DEFENSE
   ========================================================================== */
.modal-backdrop {
    z-index: 1050 !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.modal {
    z-index: 1060 !important;
}

.modal-dialog {
    z-index: 1065 !important;
    position: relative !important;
}

/* ==========================================================================
   TEMPO FORM CONTROLS & FIELD STYLING (FRONTEND LUXURY INPUTS & TEXTAREAS)
   ========================================================================== */
.tempo-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--tempo-radius-md, 12px) !important;
    color: var(--tempo-text-primary, #ffffff) !important;
    padding: 12px 16px !important;
    font-size: 0.92rem !important;
    font-family: inherit !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    display: block;
}

.tempo-field:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--tempo-amber, #f59e0b) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
    color: var(--tempo-text-primary, #ffffff) !important;
}

.tempo-field::placeholder {
    color: var(--tempo-text-muted, #71717a) !important;
    opacity: 0.7;
}

html.light .tempo-field {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.14) !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

html.light .tempo-field:focus {
    background: #ffffff !important;
    border-color: var(--tempo-amber, #f59e0b) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
    color: #0f172a !important;
}

html.light .tempo-field::placeholder {
    color: #94a3b8 !important;
}

/* ==========================================================================
   TEMPO BUTTON SYSTEM (FRONTEND LUXURY BUTTONS & PILLS)
   ========================================================================== */
.tempo-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    padding: 10px 22px !important;
    border-radius: var(--tempo-radius-pill, 9999px) !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.tempo-btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 4px 16px var(--tempo-amber-glow, rgba(245, 158, 11, 0.35)) !important;
}

.tempo-btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24, #d97706) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px var(--tempo-amber-glow, rgba(245, 158, 11, 0.45)) !important;
    color: #ffffff !important;
}

.tempo-btn-primary:active {
    transform: scale(0.97) !important;
}

.tempo-btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--tempo-text-primary, #ffffff) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(12px) !important;
}

.tempo-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

html.light .tempo-btn-secondary {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #1e293b !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html.light .tempo-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
}

.tempo-btn-ghost {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--tempo-text-secondary, #a1a1aa) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.tempo-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--tempo-text-primary, #ffffff) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

html.light .tempo-btn-ghost {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #64748b !important;
}

html.light .tempo-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}

.tempo-btn-sm {
    padding: 7px 16px !important;
    font-size: 0.82rem !important;
}

.tempo-btn-icon {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--tempo-text-secondary, #a1a1aa) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.tempo-btn-icon:hover {
    background: rgba(245, 158, 11, 0.14) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: var(--tempo-amber, #f59e0b) !important;
    transform: scale(1.08) !important;
}

html.light .tempo-btn-icon {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #64748b !important;
}

html.light .tempo-btn-icon:hover {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #d97706 !important;
}

/* ==========================================================================
   BLOG COMMENTS LUXURY POLISH
   ========================================================================== */
.tempo-comments-section {
    position: relative;
}
.tempo-comments-list .tempo-card {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.tempo-comments-list .tempo-card:hover {
    border-color: rgba(245, 158, 11, 0.25) !important;
}
.tempo-replies-wrap {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 10px;
    padding: 12px 16px;
}
html.light .tempo-replies-wrap {
    background: rgba(0, 0, 0, 0.02);
}
