/* ==========================================================================
   YUVA BHARAT - EVENTS STUDIO & MANAGEMENT CONSOLE
   Ultra-Modern SaaS Enterprise Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand & Accent Colors */
    --brand-navy: #000080;
    --brand-navy-dark: #00005C;
    --brand-navy-light: #1e3a8a;
    --brand-saffron: #ff9933;
    --brand-saffron-dark: #e67300;
    --brand-saffron-light: #fff7ed;
    --brand-green: #10b981;
    --brand-green-dark: #059669;

    /* Theme Tokens */
    --saas-primary: #1e40af;
    --saas-primary-hover: #1d4ed8;
    --saas-primary-light: #eff6ff;
    --saas-primary-border: #bfdbfe;
    --saas-primary-ring: rgba(30, 64, 175, 0.15);

    /* Surfaces & Layout */
    --saas-bg: #f8fafc;
    --saas-bg-elevated: #ffffff;
    --saas-bg-subtle: #f1f5f9;
    --saas-border: #e2e8f0;
    --saas-border-strong: #cbd5e1;

    /* Typography */
    --saas-text-primary: #0f172a;
    --saas-text-secondary: #475569;
    --saas-text-muted: #64748b;
    --saas-text-light: #94a3b8;

    /* Status Colors */
    --saas-success: #10b981;
    --saas-success-bg: #ecfdf5;
    --saas-success-border: #a7f3d0;
    --saas-warning: #f59e0b;
    --saas-warning-bg: #fffbeb;
    --saas-warning-border: #fde68a;
    --saas-danger: #ef4444;
    --saas-danger-bg: #fef2f2;
    --saas-danger-border: #fecaca;

    /* Shadows & Radii */
    --saas-radius-sm: 8px;
    --saas-radius-md: 12px;
    --saas-radius-lg: 16px;
    --saas-radius-xl: 22px;
    --saas-radius-full: 9999px;

    --saas-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --saas-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.07), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
    --saas-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --saas-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --saas-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

    --saas-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
    min-height: 100%;
    background-color: var(--saas-bg);
    color: var(--saas-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--saas-bg);
    color: var(--saas-text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Subtle SaaS Mesh Grid Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 380px;
    background: radial-gradient(circle 800px at 50% -100px, rgba(0, 0, 128, 0.06), transparent 85%),
                radial-gradient(circle 600px at 90% 10%, rgba(255, 153, 51, 0.05), transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* Base Page Container */
.page-container {
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   SAAS APPLICATION TOP NAVIGATION BAR (Docked at top: 0, Zero Gap)
   ========================================================================== */

.saas-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--saas-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: var(--saas-transition);
}

.saas-navbar-inner {
    max-width: 1560px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.saas-main-container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 24px 24px 60px 24px;
    width: 100%;
}

.saas-navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--saas-text-primary);
}

.saas-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 128, 0.15);
}

.saas-brand-title-wrap {
    display: flex;
    flex-direction: column;
}

.saas-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand-navy);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.saas-brand-pill {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.15), rgba(255, 153, 51, 0.3));
    color: var(--brand-saffron-dark);
    padding: 2px 7px;
    border-radius: var(--saas-radius-full);
    border: 1px solid rgba(255, 153, 51, 0.3);
}

.saas-brand-subtitle {
    font-size: 0.76rem;
    color: var(--saas-text-muted);
    font-weight: 500;
}

/* Static Inspirational Youth Quote Banner in Center */
.saas-nav-quote-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.06) 0%, rgba(0, 0, 128, 0.04) 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--saas-radius-full);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    max-width: 580px;
    user-select: none;
    transition: all 0.3s ease;
}

.saas-nav-quote-banner:hover {
    border-color: rgba(255, 153, 51, 0.35);
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1) 0%, rgba(0, 0, 128, 0.06) 100%);
}

.quote-mark-icon {
    font-size: 0.75rem;
    color: var(--brand-saffron);
    flex-shrink: 0;
    opacity: 0.85;
}

.quote-text {
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    transition: opacity 0.4s ease;
}

.quote-divider {
    color: #cbd5e1;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.quote-author {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--brand-navy);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
    transition: opacity 0.4s ease;
}

/* ==========================================================================
   NAV USER ACCOUNT DROPDOWN (SaaS Pattern)
   ========================================================================== */

.saas-nav-user-area {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Backward Security Session Timer Pill */
.session-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    background: #f8fafc;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    user-select: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.session-timer-pill .timer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.session-timer-pill .timer-icon {
    font-size: 0.76rem;
    color: #64748b;
}

.session-timer-pill .timer-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.session-timer-pill .timer-countdown {
    font-family: 'Plus Jakarta Sans', var(--saas-font-mono), sans-serif;
    font-weight: 800;
    color: #0f172a;
}

/* Warning state (<= 5 minutes) */
.session-timer-pill.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.15);
}

.session-timer-pill.warning .timer-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.session-timer-pill.warning .timer-icon,
.session-timer-pill.warning .timer-label {
    color: #d97706;
}

.session-timer-pill.warning .timer-countdown {
    color: #b45309;
}

/* Critical state (<= 1 minute) */
.session-timer-pill.critical {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
    animation: pulseCriticalTimer 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

.session-timer-pill.critical .timer-dot {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.session-timer-pill.critical .timer-icon,
.session-timer-pill.critical .timer-label {
    color: #dc2626;
}

.session-timer-pill.critical .timer-countdown {
    color: #b91c1c;
}

@keyframes pulseCriticalTimer {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
        transform: scale(1.02);
    }
}

.saas-user-dropdown-wrap {
    position: relative;
    display: inline-block;
}

/* Dropdown Trigger Button */
.user-profile-card.user-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    background: #f8fafc;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-full);
    box-shadow: var(--saas-shadow-xs);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    max-width: 100%;
}

.user-profile-card.user-dropdown-trigger:hover,
.saas-user-dropdown-wrap.open .user-profile-card.user-dropdown-trigger {
    border-color: var(--brand-navy);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--saas-primary-ring), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #1e1b4b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 128, 0.2);
}

.user-details-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.user-primary-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--saas-text-primary);
    line-height: 1.2;
}

.user-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff7ed;
    color: var(--brand-saffron-dark);
    border: 1px solid #ffedd5;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: var(--saas-radius-full);
}

.user-dropdown-caret {
    font-size: 0.72rem;
    color: var(--saas-text-muted);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    margin-left: 2px;
}

.saas-user-dropdown-wrap.open .user-dropdown-caret {
    transform: rotate(180deg);
    color: var(--brand-navy);
}

/* User Account Dropdown Popover Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 275px;
    background: #ffffff;
    border: 1px solid var(--saas-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.04);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.saas-user-dropdown-wrap.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown-header {
    padding: 10px 10px 8px 10px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 4px;
}

.user-dropdown-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.user-dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #1e1b4b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 128, 0.25);
    flex-shrink: 0;
}

.user-dropdown-header-info {
    min-width: 0;
    flex: 1;
}

.user-dropdown-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--saas-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.user-dropdown-role {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand-saffron-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 1px;
}

.user-dropdown-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.74rem;
    color: var(--saas-text-muted);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 6px;
    margin-top: 4px;
}

.dropdown-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-meta-item i {
    font-size: 0.76rem;
    color: var(--saas-text-light);
    width: 14px;
    text-align: center;
}

/* Dropdown Session Countdown Badge */
.dropdown-session-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding: 6px 9px;
    background: #ffffff;
    border: 1px solid var(--saas-border);
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--saas-text-muted);
    font-variant-numeric: tabular-nums;
    transition: all 0.2s ease;
}

.dropdown-session-badge i {
    color: #6366f1;
    font-size: 0.76rem;
}

.dropdown-session-badge strong {
    font-weight: 800;
    color: var(--saas-text-primary);
}

.dropdown-session-badge.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.dropdown-session-badge.warning i {
    color: #f59e0b;
}

.dropdown-session-badge.warning strong {
    color: #b45309;
}

.dropdown-session-badge.critical {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.dropdown-session-badge.critical i {
    color: #ef4444;
}

.dropdown-session-badge.critical strong {
    color: #b91c1c;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--saas-border);
    margin: 6px 0;
}

.user-dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--saas-text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.user-dropdown-item:hover {
    background: #f1f5f9;
    color: var(--brand-navy);
}

.user-dropdown-item i:first-child {
    font-size: 0.86rem;
    width: 16px;
    text-align: center;
    color: var(--saas-text-muted);
}

.item-external-icon {
    margin-left: auto;
    font-size: 0.68rem;
    color: var(--saas-text-light);
}

.user-dropdown-footer {
    padding-top: 2px;
}

.user-dropdown-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #ffe4e6;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.user-dropdown-logout-btn:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
    transform: translateY(-1px);
}

/* ==========================================================================
   METRIC STATS STRIP (SaaS Dashboard KPI Cards)
   ========================================================================== */

.saas-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.saas-stat-card {
    background: var(--saas-bg-elevated);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--saas-shadow-sm);
    transition: var(--saas-transition);
}

.saas-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--saas-shadow-md);
    border-color: var(--saas-border-strong);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--saas-text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--saas-text-primary);
    line-height: 1.1;
}

.stat-subtext {
    font-size: 0.72rem;
    color: var(--saas-text-light);
    margin-top: 4px;
}

.stat-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon-wrap.navy {
    background: rgba(0, 0, 128, 0.08);
    color: var(--brand-navy);
}

.stat-icon-wrap.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand-green);
}

.stat-icon-wrap.saffron {
    background: rgba(255, 153, 51, 0.12);
    color: var(--brand-saffron-dark);
}

.stat-icon-wrap.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* ==========================================================================
   WORKSPACE SPLIT LAYOUT (SaaS 2-Column Responsive Workspace - Reversed Direction)
   ========================================================================== */

/* Mobile Workspace Quick-Jump Strip (Strictly Hidden on Desktop) */
.mobile-workspace-nav {
    display: none !important;
}

.upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 24px;
    align-items: start;
}

#eventFormSection {
    order: 2;
}

.saas-sidebar-col {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 76px;
}

/* Upload Section Card Base */
.upload-section {
    background: var(--saas-bg-elevated);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-lg);
    box-shadow: var(--saas-shadow-sm);
    overflow: hidden;
    transition: var(--saas-transition);
}

.section-header {
    padding: 16px 22px;
    background: #ffffff;
    border-bottom: 1px solid var(--saas-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header-left i {
    font-size: 1.15rem;
    color: var(--brand-navy);
}

.section-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--saas-text-primary);
    margin: 0;
}

.section-badge-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--saas-radius-full);
    background: rgba(0, 0, 128, 0.08);
    color: var(--brand-navy);
}

.section-body {
    padding: 22px;
}

/* ==========================================================================
   FORM SECTION CARDS & GRID ARCHITECTURE
   ========================================================================== */

.modern-event-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section-card {
    background: #ffffff;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    padding: 20px;
    box-shadow: var(--saas-shadow-xs);
    transition: var(--saas-transition);
}

.form-section-card:hover {
    border-color: var(--saas-border-strong);
    box-shadow: var(--saas-shadow-sm);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--saas-border);
}

.section-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 0, 128, 0.08);
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.section-icon-pill.icon-blue {
    background: rgba(30, 64, 175, 0.1);
    color: var(--saas-primary);
}

.section-icon-pill.icon-purple {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.form-section-header h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--saas-text-primary);
    margin-bottom: 2px;
}

.form-section-header p {
    font-size: 0.8rem;
    color: var(--saas-text-muted);
    margin: 0;
}

.form-grid-inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px 18px;
}

.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-7 { grid-column: span 7; }
.col-span-6 { grid-column: span 6; }
.col-span-5 { grid-column: span 5; }
.col-span-4 { grid-column: span 4; }
.col-span-3 { grid-column: span 3; }

/* Form Group & Input Styling */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    position: relative;
    text-align: left;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
}

.form-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--saas-text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.required-indicator {
    color: var(--saas-danger);
    font-weight: 700;
}

.char-hint {
    font-size: 0.74rem;
    color: var(--saas-text-light);
    font-weight: 500;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-icon > i {
    position: absolute;
    left: 14px;
    color: var(--saas-text-light);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    height: 44px;
    padding: 8px 14px 8px 40px;
    background: #f8fafc;
    border: 1.5px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    font-size: 0.9rem;
    color: var(--saas-text-primary);
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
}

.input-with-icon input:focus,
.input-with-icon select:focus,
.modern-event-form textarea:focus {
    background: #ffffff;
    border-color: var(--brand-navy);
    box-shadow: 0 0 0 4px var(--saas-primary-ring);
    outline: none;
}

.input-with-icon:focus-within > i {
    color: var(--brand-navy);
}

.modern-event-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1.5px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    font-size: 0.9rem;
    color: var(--saas-text-primary);
    font-family: inherit;
    font-weight: 500;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s ease;
}

.validation-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    pointer-events: none;
    display: none;
}

.validation-icon.valid {
    color: var(--saas-success);
}

.validation-icon.invalid {
    color: var(--saas-danger);
}

.form-error {
    font-size: 0.76rem;
    color: var(--saas-danger);
    font-weight: 600;
    margin-top: 5px;
    display: none;
}

.form-error.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* ==========================================================================
   CUSTOM DROPDOWN COMPONENT (Category & Mode)
   ========================================================================== */

.custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-dropdown .dropdown-trigger {
    width: 100%;
    height: 44px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1.5px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    font-size: 0.9rem;
    color: var(--saas-text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 10px;
}

.custom-dropdown .dropdown-trigger:hover {
    border-color: var(--saas-border-strong);
    background: #ffffff;
}

.custom-dropdown.active .dropdown-trigger,
.custom-dropdown.open .dropdown-trigger {
    background: #ffffff;
    border-color: var(--brand-navy);
    box-shadow: 0 0 0 4px var(--saas-primary-ring);
}

.custom-dropdown .dropdown-leading-icon {
    font-size: 0.95rem;
    color: var(--saas-text-light);
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    transition: color 0.2s ease;
}

.custom-dropdown.active .dropdown-leading-icon,
.custom-dropdown.open .dropdown-leading-icon {
    color: var(--brand-navy);
}

.custom-dropdown .selected-value {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    color: var(--saas-text-primary);
}

.custom-dropdown .selected-value.placeholder {
    color: var(--saas-text-light);
}

.custom-dropdown .dropdown-arrow {
    font-size: 0.75rem;
    color: var(--saas-text-light);
    transition: transform 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
}

.custom-dropdown.active .dropdown-arrow,
.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--brand-navy);
}

.custom-dropdown .dropdown-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #ffffff;
    border: 1.5px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    box-shadow: var(--saas-shadow-xl);
    z-index: 9999;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.custom-dropdown .dropdown-menu.drop-up {
    top: auto;
    bottom: calc(100% + 6px);
    transform: translateY(6px);
}

.custom-dropdown.active .dropdown-menu,
.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown .dropdown-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-dropdown .dropdown-option-item {
    padding: 9px 12px;
    border-radius: var(--saas-radius-sm);
    font-size: 0.88rem;
    color: var(--saas-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.custom-dropdown .dropdown-option-item:hover {
    background: var(--saas-bg-subtle);
    color: var(--brand-navy);
}

.custom-dropdown .dropdown-option-item.selected {
    background: rgba(0, 0, 128, 0.08);
    color: var(--brand-navy);
    font-weight: 600;
}

.custom-dropdown .dropdown-option-item.selected::after {
    content: '✓';
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--brand-navy);
}

/* ==========================================================================
   MEDIA UPLOAD ZONE & PREVIEW
   ========================================================================== */

.file-upload-area.modern-upload-area {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px dashed var(--saas-border-strong);
    border-radius: var(--saas-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.file-upload-area.modern-upload-area:hover {
    background: #ffffff;
    border-color: var(--brand-navy);
    box-shadow: 0 0 0 4px var(--saas-primary-ring);
}

.file-upload-area.modern-upload-area.has-file {
    background: var(--saas-success-bg);
    border-color: var(--saas-success);
    border-style: solid;
}

.upload-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--saas-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--brand-navy);
    flex-shrink: 0;
    box-shadow: var(--saas-shadow-xs);
}

.upload-text-wrap {
    display: flex;
    flex-direction: column;
}

.upload-primary-text {
    font-size: 0.88rem;
    color: var(--saas-text-primary);
    margin: 0;
}

.upload-sub-text {
    font-size: 0.74rem;
    color: var(--saas-text-light);
    margin-top: 2px;
}

.preview-wrap {
    margin-top: 12px;
    border-radius: var(--saas-radius-md);
    overflow: hidden;
    border: 1px solid var(--saas-border);
    background: #ffffff;
    box-shadow: var(--saas-shadow-xs);
}

.preview-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.banner-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-top: 1px solid var(--saas-border);
}

.banner-footer-btn {
    background: #ffffff;
    color: var(--saas-text-secondary);
    border: 1px solid var(--saas-border-strong);
    border-radius: var(--saas-radius-sm);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--saas-transition);
}

.banner-footer-btn:hover {
    background: var(--saas-bg-subtle);
    color: var(--brand-navy);
}

.banner-footer-btn.btn-remove {
    color: var(--saas-danger);
    border-color: var(--saas-danger-border);
    background: var(--saas-danger-bg);
}

.banner-footer-btn.btn-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Modern Toggle Cards (Home Showcase & Upcoming Page) */
.display-toggle-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modern-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1.5px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.modern-toggle-card:hover {
    border-color: var(--saas-border-strong);
    background: #ffffff;
}

.modern-toggle-card:has(input:checked) {
    background: rgba(0, 0, 128, 0.04);
    border-color: var(--brand-navy);
}

.toggle-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-card-left > i {
    font-size: 1rem;
    color: var(--brand-navy);
}

.toggle-title {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--saas-text-primary);
}

.toggle-desc {
    display: block;
    font-size: 0.74rem;
    color: var(--saas-text-muted);
}

.modern-toggle-card input[type="checkbox"] {
    display: none;
}

.custom-toggle-indicator {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid var(--saas-border-strong);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modern-toggle-card input:checked + .custom-toggle-indicator {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
}

.modern-toggle-card input:checked + .custom-toggle-indicator::after {
    content: '';
    display: block;
    width: 4px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* ==========================================================================
   FORM ACTION BAR (Submit & Cancel Buttons)
   ========================================================================== */

.form-submit-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 6px;
}

.btn-cancel-edit {
    background: #f1f5f9;
    color: var(--saas-text-secondary);
    border: 1.5px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--saas-transition);
}

.btn-cancel-edit:hover {
    background: var(--saas-border);
    color: var(--saas-text-primary);
}

.btn-modern-submit {
    background: linear-gradient(135deg, var(--brand-navy) 0%, #1e1b4b 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--saas-radius-md);
    padding: 13px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 128, 0.25);
    transition: var(--saas-transition);
}

.btn-modern-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 128, 0.35);
}

.btn-modern-submit:active {
    transform: translateY(0);
}

.btn-modern-submit:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    border: 1px solid #cbd5e1 !important;
    opacity: 1 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-modern-submit:disabled i {
    color: #94a3b8 !important;
}

/* ==========================================================================
   LEFT COLUMN: LIVE PREVIEW & EVENTS DIRECTORY
   ========================================================================== */

/* Live Event Preview Card */
.saas-preview-card {
    background: #ffffff;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-lg);
    box-shadow: var(--saas-shadow-sm);
    overflow: hidden;
}

.preview-card-header {
    padding: 12px 18px;
    background: #fafaf9;
    border-bottom: 1px solid var(--saas-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-card-header h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--saas-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-live-badge {
    font-size: 0.68rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.15);
    color: var(--brand-green);
    padding: 2px 7px;
    border-radius: var(--saas-radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.preview-live-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-green);
    display: inline-block;
    animation: pulse 1.8s infinite;
}

.preview-card-mockup {
    padding: 16px;
    background: #f8fafc;
}

.mockup-event-box {
    background: #ffffff;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    overflow: hidden;
    box-shadow: var(--saas-shadow-xs);
    transition: var(--saas-transition);
}

.mockup-banner-img {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #000080 0%, #1e1b4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 2rem;
    overflow: hidden;
    position: relative;
}

.mockup-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-category-tag {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #eff6ff;
    color: var(--saas-primary);
    padding: 2px 8px;
    border-radius: 4px;
}

.mockup-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--saas-text-primary);
    line-height: 1.3;
}

.mockup-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--saas-text-muted);
}

.mockup-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockup-meta i {
    width: 14px;
    color: var(--saas-text-light);
}

/* ==========================================================================
   EVENTS DIRECTORY LISTING
   ========================================================================== */

.events-directory-card {
    background: var(--saas-bg-elevated);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-lg);
    box-shadow: var(--saas-shadow-sm);
    overflow: hidden;
}

.directory-toolbar {
    padding: 12px 18px;
    background: #fafaf9;
    border-bottom: 1px solid var(--saas-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.directory-search-input {
    width: 100%;
    height: 38px;
    padding: 6px 12px 6px 34px;
    background: #ffffff;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    font-size: 0.85rem;
    color: var(--saas-text-primary);
    font-family: inherit;
    transition: var(--saas-transition);
}

.directory-search-input:focus {
    border-color: var(--brand-navy);
    box-shadow: 0 0 0 3px var(--saas-primary-ring);
    outline: none;
}

.directory-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
}

.filter-tab-pill {
    padding: 4px 12px;
    border-radius: var(--saas-radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    background: #ffffff;
    color: var(--saas-text-secondary);
    border: 1px solid var(--saas-border);
    cursor: pointer;
    transition: var(--saas-transition);
    white-space: nowrap;
}

.filter-tab-pill:hover {
    background: var(--saas-bg-subtle);
    color: var(--brand-navy);
}

.filter-tab-pill.active {
    background: var(--brand-navy);
    color: #ffffff;
    border-color: var(--brand-navy);
}

.events-list-container {
    padding: 14px;
    max-height: 650px;
    overflow-y: auto;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Event Item inside Directory */
.event-item {
    background: #ffffff;
    border-radius: var(--saas-radius-md);
    padding: 14px;
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--saas-border);
    box-shadow: var(--saas-shadow-xs);
    transition: var(--saas-transition);
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--saas-shadow-md);
    border-color: var(--saas-border-strong);
}

.event-thumb-wrapper {
    width: 84px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-info {
    min-width: 0;
}

.event-info h3 {
    color: var(--saas-text-primary);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-meta {
    display: flex;
    gap: 12px;
    color: var(--saas-text-muted);
    font-size: 0.78rem;
    flex-wrap: wrap;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.badge {
    padding: 3px 10px;
    border-radius: var(--saas-radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

.badge.upcoming {
    background: var(--saas-success-bg);
    color: var(--brand-green-dark);
    border: 1px solid var(--saas-success-border);
}

.badge.past {
    background: var(--saas-bg-subtle);
    color: var(--saas-text-muted);
    border: 1px solid var(--saas-border);
}

.btn-edit-event {
    padding: 5px 10px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: var(--saas-radius-sm);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--saas-transition);
}

.btn-edit-event:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.btn-delete-event {
    padding: 5px 9px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #ffe4e6;
    border-radius: var(--saas-radius-sm);
    cursor: pointer;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--saas-transition);
}

.btn-delete-event:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--saas-text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 12px;
    color: var(--saas-border-strong);
}

.empty-state p {
    font-size: 0.92rem;
    font-weight: 600;
}

/* ==========================================================================
   AUTHENTICATION & VERIFICATION SCREENS (#verificationWrapper)
   Ultra-Modern SaaS Login Card & Experience
   ========================================================================= */

.verification-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 92vh;
    width: 100%;
    padding: 40px 16px;
    position: relative;
    background: radial-gradient(circle 700px at 50% 20%, rgba(0, 0, 128, 0.05) 0%, transparent 70%),
                radial-gradient(circle 500px at 80% 80%, rgba(255, 153, 51, 0.05) 0%, transparent 60%);
}

.verification-container {
    width: 100%;
    max-width: 470px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.02),
                0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* SaaS Auth Card Header */
.verification-header {
    background: #ffffff;
    padding: 38px 34px 18px 34px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.saas-auth-emblem-wrap {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 128, 0.15), 0 2px 6px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: transform 0.25s ease;
}

.saas-auth-emblem-wrap:hover {
    transform: translateY(-2px) scale(1.02);
}

.saas-auth-emblem-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
}

.verification-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--saas-radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--brand-navy);
    margin-bottom: 12px;
}

.verification-brand-badge i {
    color: var(--brand-saffron);
}

.verification-header h2 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--saas-text-primary);
    margin-bottom: 6px;
    line-height: 1.25;
}

.verification-header p {
    font-size: 0.88rem;
    color: var(--saas-text-muted);
    line-height: 1.45;
    margin: 0 auto;
    max-width: 360px;
}

/* SaaS Auth Card Body */
.verification-body {
    padding: 28px 34px 34px 34px;
}

.verification-body .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.verification-body .form-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--saas-text-secondary);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verification-body .input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.verification-body .input-with-icon > i {
    position: absolute;
    left: 15px;
    color: var(--saas-text-light);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.verification-body .input-with-icon input {
    width: 100%;
    height: 50px;
    padding: 10px 16px 10px 44px;
    background: #f8fafc;
    border: 1.5px solid var(--saas-border);
    border-radius: 12px;
    font-size: 0.94rem;
    color: var(--saas-text-primary);
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.verification-body .input-with-icon input:focus {
    background: #ffffff;
    border-color: var(--brand-navy);
    box-shadow: 0 0 0 4px var(--saas-primary-ring), 0 2px 8px rgba(0, 0, 128, 0.08);
    outline: none;
}

.verification-body .input-with-icon:focus-within > i {
    color: var(--brand-navy);
}

/* Large Monospace OTP Input Box */
#verificationCode {
    letter-spacing: 0.45em !important;
    text-align: center !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    height: 54px !important;
    color: var(--brand-navy) !important;
}

/* SaaS Timer Pill */
#verificationTimer {
    text-align: center;
    margin: 14px 0 18px 0;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 10px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#verificationTimer::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    display: inline-block;
    animation: pulse 1.6s infinite;
}

/* Primary SaaS Auth Button */
.btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #1e1b4b 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.94rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(0, 0, 128, 0.25);
    transition: var(--saas-transition);
    letter-spacing: -0.01em;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 128, 0.35);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--brand-saffron) 0%, var(--brand-saffron-dark) 100%) !important;
    box-shadow: 0 4px 14px rgba(255, 153, 51, 0.3) !important;
}

.btn-secondary:hover:not(:disabled) {
    box-shadow: 0 8px 22px rgba(255, 153, 51, 0.4) !important;
}

.btn-ghost {
    background: #f8fafc !important;
    color: var(--saas-text-secondary) !important;
    border: 1.5px solid var(--saas-border) !important;
    box-shadow: none !important;
}

.btn-ghost:hover {
    background: #f1f5f9 !important;
    color: var(--saas-text-primary) !important;
    border-color: var(--saas-border-strong) !important;
}

/* SaaS Auth Trust Strip */
.saas-auth-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.saas-auth-trust-item {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--saas-text-light);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.saas-auth-trust-item i {
    color: #10b981;
    font-size: 0.78rem;
}

/* Return to Home footer link */
.saas-auth-footer-link {
    margin-top: 18px;
    text-align: center;
}

.saas-auth-footer-link a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--saas-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.saas-auth-footer-link a:hover {
    color: var(--brand-navy);
}

/* ==========================================================================
   SAAS LOGIN SUCCESS ANIMATION
   ========================================================================== */

.saas-auth-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 34px 20px 28px 20px;
    animation: saasSuccessFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes saasSuccessFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.saas-success-ring-wrap {
    width: 82px;
    height: 82px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.saas-success-ring-wrap::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    animation: saasRingPulse 1.8s ease-out infinite;
}

@keyframes saasRingPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(0.85);
        opacity: 0;
    }
}

.saas-success-svg {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: block;
    stroke-width: 2.8;
    stroke: #10b981;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #10b981;
    animation: saasFill .4s ease-in-out .4s forwards, saasScale .3s ease-in-out .9s both;
}

.saas-success-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2.8;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: saasStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.saas-success-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #10b981;
    stroke-width: 3.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: saasStroke 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

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

@keyframes saasScale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.12, 1.12, 1);
    }
}

@keyframes saasFill {
    100% {
        box-shadow: inset 0px 0px 0px 38px rgba(16, 185, 129, 0.08);
    }
}

.saas-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--saas-radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #065f46;
    margin-top: 10px;
}

.saas-success-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--saas-text-primary);
    margin: 8px 0 4px 0;
}

.saas-success-msg {
    font-size: 0.92rem;
    color: var(--saas-text-secondary);
    line-height: 1.45;
    margin: 0;
}

.saas-success-progress-wrap {
    width: 200px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 18px;
    position: relative;
}

.saas-success-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #000080 100%);
    border-radius: 999px;
    animation: saasProgressFill 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes saasProgressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

.saas-success-subtext {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--saas-text-light);
    margin-top: 8px;
}

/* Dashboard Entrance Animation */
@keyframes saasDashboardEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.upload-section-enter {
    animation: saasDashboardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   FEEDBACK MESSAGES & CUSTOM MODALS
   ========================================================================== */

.message {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: var(--saas-radius-md);
    display: none;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: var(--saas-shadow-sm);
    animation: fadeIn 0.25s ease;
}

.message.show {
    display: block;
}

.message.error {
    background: var(--saas-danger-bg);
    color: #b91c1c;
    border-left: 4px solid var(--saas-danger);
}

.message.success {
    background: var(--saas-success-bg);
    color: #065f46;
    border-left: 4px solid var(--saas-success);
}

.message.info {
    background: #f0f9ff;
    color: #0369a1;
    border-left: 4px solid var(--saas-primary);
}

/* SaaS Session Expiry Flash Banner Toast */
.saas-flash-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    animation: flashSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    text-align: left;
}

@keyframes flashSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.saas-flash-toast.danger {
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border-color: #fecaca;
    color: #991b1b;
}

.saas-flash-toast .flash-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.saas-flash-toast .flash-toast-body {
    flex: 1;
    min-width: 0;
}

.saas-flash-toast .flash-toast-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.saas-flash-toast .flash-toast-desc {
    font-size: 0.82rem;
    color: #b91c1c;
    line-height: 1.45;
    margin: 0;
}

.saas-flash-toast .flash-toast-close {
    background: none;
    border: none;
    color: #991b1b;
    opacity: 0.6;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.saas-flash-toast .flash-toast-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Custom Modal Backdrop */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.custom-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-card {
    background: #ffffff;
    border-radius: var(--saas-radius-xl);
    width: 100%;
    max-width: 420px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--saas-shadow-xl);
    border: 1px solid var(--saas-border);
    transform: scale(0.94);
    transition: all 0.25s ease;
}

.custom-modal-backdrop.active .custom-modal-card {
    transform: scale(1);
}

.custom-modal-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.custom-modal-icon-wrap.danger {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.custom-modal-icon-wrap.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.custom-modal-icon-wrap.success {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

.custom-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--saas-text-primary);
    margin-bottom: 6px;
}

.custom-modal-message {
    font-size: 0.88rem;
    color: var(--saas-text-secondary);
    line-height: 1.5;
    margin-bottom: 22px;
}

.custom-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-modal-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--saas-radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--saas-transition);
}

.custom-modal-btn.btn-cancel {
    background: #f1f5f9;
    color: var(--saas-text-secondary);
    border: 1px solid var(--saas-border);
}

.custom-modal-btn.btn-cancel:hover {
    background: var(--saas-border);
}

.custom-modal-btn.btn-confirm.danger {
    background: #ef4444;
    color: #ffffff;
}

.custom-modal-btn.btn-confirm.danger:hover {
    background: #dc2626;
}

.custom-modal-btn.btn-confirm.primary {
    background: var(--brand-navy);
    color: #ffffff;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

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

@keyframes slideUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (All Devices)
   ========================================================================== */

/* ==========================================================================
   MOBILE & TABLET SAAS RESPONSIVE SYSTEM
   Strict Enterprise Mobile Experience (320px - 1200px)
   ========================================================================== */

/* 1. TABLET & SMALL DESKTOP (<= 1200px) */
@media (max-width: 1200px) {
    .upload-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #eventFormSection {
        order: 1;
    }

    .saas-sidebar-col {
        order: 2;
        position: static;
        top: auto;
    }

    .saas-stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* 2. MOBILE LANDSCAPE & PHONES (<= 768px) */
@media (max-width: 768px) {
    /* Critical iOS Safari auto-zoom prevention: Input font-size must be at least 16px */
    input,
    select,
    textarea,
    .modern-event-form input,
    .modern-event-form textarea,
    .verification-body input {
        font-size: 16px !important;
    }

    /* Refined Compact Mobile Placeholder Size */
    input::placeholder,
    textarea::placeholder,
    .modern-event-form input::placeholder,
    .modern-event-form textarea::placeholder,
    .directory-search-input::placeholder,
    .verification-body input::placeholder {
        font-size: 0.82rem !important;
        font-weight: 400 !important;
        color: #94a3b8 !important;
        line-height: 1.4 !important;
    }

    input::-webkit-input-placeholder,
    textarea::-webkit-input-placeholder,
    .modern-event-form input::-webkit-input-placeholder,
    .modern-event-form textarea::-webkit-input-placeholder,
    .directory-search-input::-webkit-input-placeholder {
        font-size: 0.82rem !important;
        font-weight: 400 !important;
        color: #94a3b8 !important;
        line-height: 1.4 !important;
    }

    input::-moz-placeholder,
    textarea::-moz-placeholder,
    .modern-event-form input::-moz-placeholder,
    .modern-event-form textarea::-moz-placeholder,
    .directory-search-input::-moz-placeholder {
        font-size: 0.82rem !important;
        font-weight: 400 !important;
        color: #94a3b8 !important;
        line-height: 1.4 !important;
    }

    /* Custom Dropdown Trigger & Placeholder */
    .custom-dropdown .dropdown-trigger {
        font-size: 0.88rem !important;
    }

    .custom-dropdown .selected-value {
        font-size: 0.88rem !important;
    }

    .custom-dropdown .selected-value.placeholder {
        font-size: 0.82rem !important;
        color: #94a3b8 !important;
    }

    /* Datetime-local native edit field placeholder */
    input[type="datetime-local"]::-webkit-datetime-edit {
        font-size: 0.84rem !important;
        color: #64748b;
    }

    /* Page container flush gutters */
    .page-container {
        padding: 0;
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* Smooth anchor jump offset */
    #eventFormSection,
    #saasPreviewCard,
    #eventsDirectoryCard {
        scroll-margin-top: 135px;
    }

    /* SaaS Navigation Bar - Mobile Clean Single Row (Zero Clutter) */
    .saas-navbar {
        top: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
    }

    .saas-navbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 12px;
    }

    .saas-navbar-brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        min-width: 0;
        flex: 0 1 auto;
    }

    .saas-brand-logo {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .saas-brand-title-wrap {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .saas-brand-title {
        font-size: 0.9rem;
        font-weight: 800;
        letter-spacing: -0.015em;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .saas-brand-pill {
        font-size: 0.6rem;
        padding: 1px 5px;
    }

    .saas-brand-subtitle {
        display: none !important;
    }

    /* Hide quote banner on mobile to keep topbar single-row and clean */
    .saas-nav-quote-banner {
        display: none !important;
    }

    .saas-nav-user-area {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0 0 0 auto;
        min-width: 0;
        flex: 0 1 auto;
    }

    /* In mobile: Hide timer from top header, keep only in Account dropdown popover */
    .session-timer-pill {
        display: none !important;
    }

    .user-profile-card.user-dropdown-trigger {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 3px 8px 3px 4px;
        border-radius: 20px;
        background: #f8fafc;
        border: 1px solid var(--saas-border);
        min-width: 0;
        max-width: 130px;
        overflow: hidden;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    .user-details-col {
        min-width: 0;
        overflow: hidden;
    }

    .user-primary-row {
        display: flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
    }

    .user-name {
        font-size: 0.74rem;
        font-weight: 700;
        max-width: 65px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-role-badge {
        display: none !important;
    }

    .user-dropdown-menu {
        width: 260px;
        max-width: calc(100vw - 24px);
        right: 0;
    }

    /* Main Dashboard Container Padding */
    .saas-main-container {
        padding: 10px 10px 48px 10px;
    }

    /* Mobile Workspace Quick-Jump Strip */
    .mobile-workspace-nav {
        display: flex !important;
        align-items: center;
        gap: 6px;
        padding: 5px 6px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid var(--saas-border);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
        margin-bottom: 12px;
        position: sticky;
        top: 76px;
        z-index: 50;
    }

    .mobile-nav-chip {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 7px 6px;
        font-size: 0.76rem;
        font-weight: 700;
        color: var(--saas-text-muted);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
    }

    .mobile-nav-chip i {
        font-size: 0.8rem;
    }

    .mobile-nav-chip.active {
        background: var(--brand-navy);
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(0, 0, 128, 0.2);
    }

    .mobile-nav-chip.active i {
        color: var(--brand-saffron);
    }

    /* Mobile SaaS Metric Cards: 2x2 Clean Compact Grid */
    .saas-stats-strip {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        margin-bottom: 12px;
    }

    .saas-stat-card {
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    }

    .stat-label {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #64748b;
        margin-bottom: 2px;
    }

    .stat-value {
        font-size: 1.35rem;
        font-weight: 800;
        color: #0f172a;
    }

    .stat-subtext {
        display: none !important;
    }

    .stat-icon-wrap {
        width: 32px;
        height: 32px;
        font-size: 0.88rem;
        border-radius: 8px;
    }

    /* Form Section Cards on Mobile - Remove Nested Border Fatigue */
    .upload-section {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0;
    }

    .upload-section > .section-header {
        background: transparent !important;
        border: none !important;
        padding: 2px 2px 10px 2px !important;
    }

    .upload-section > .section-header h2 {
        font-size: 1.05rem;
        font-weight: 800;
        color: #0f172a;
    }

    .upload-section > .section-body {
        padding: 0 !important;
    }

    .form-section-card {
        background: #ffffff;
        padding: 14px 12px;
        border-radius: 14px;
        border: 1px solid var(--saas-border);
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
        margin-bottom: 12px;
    }

    .form-section-header {
        padding-bottom: 8px;
        margin-bottom: 12px;
        gap: 8px;
    }

    .section-icon-pill {
        width: 30px;
        height: 30px;
        font-size: 0.88rem;
        border-radius: 8px;
    }

    .form-section-header h3 {
        font-size: 0.9rem;
        font-weight: 700;
    }

    .form-section-header p {
        font-size: 0.72rem;
        line-height: 1.35;
        color: #64748b;
    }

    /* 12-Column Grid collapsing smoothly to single column on mobile */
    .form-grid-inner {
        gap: 12px;
    }

    .col-span-12,
    .col-span-8,
    .col-span-7,
    .col-span-6,
    .col-span-5,
    .col-span-4,
    .col-span-3 {
        grid-column: span 12 !important;
    }

    /* Touch-friendly Form Controls */
    .input-with-icon input,
    .input-with-icon select,
    .custom-dropdown .dropdown-trigger {
        height: 46px !important;
        border-radius: 10px;
    }

    /* Textareas on Mobile - Eliminate Ugly Native Desktop Arrows & Premature Scrollbars */
    .modern-event-form textarea {
        border-radius: 10px;
        padding: 9px 12px;
        font-size: 16px !important;
        line-height: 1.45;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
    }

    .modern-event-form textarea::-webkit-scrollbar {
        width: 4px;
    }

    .modern-event-form textarea::-webkit-scrollbar-button {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .modern-event-form textarea::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.3);
        border-radius: 4px;
    }

    .modern-event-form textarea::-webkit-scrollbar-track {
        background: transparent;
    }

    #eventShortSummary {
        min-height: 76px;
    }

    #eventDetailedDescription {
        min-height: 110px;
    }

    .label-row {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }

    /* Modern Toggle Destination Cards */
    .modern-toggle-card {
        padding: 10px 12px;
        border-radius: 11px;
        border: 1px solid var(--saas-border);
        background: #f8fafc;
        margin-bottom: 8px;
    }

    .toggle-card-left > i {
        font-size: 0.92rem;
    }

    .toggle-title {
        font-size: 0.82rem;
        font-weight: 700;
    }

    .toggle-desc {
        font-size: 0.7rem;
        color: #64748b;
    }

    .custom-toggle-indicator {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        border: 1.5px solid #cbd5e1;
        background: #ffffff;
    }

    .modern-toggle-card input:checked + .custom-toggle-indicator {
        background: var(--brand-navy);
        border-color: var(--brand-navy);
    }

    .modern-toggle-card input:checked + .custom-toggle-indicator::after {
        content: '';
        display: block;
        width: 4px;
        height: 9px;
        border: solid #ffffff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        margin-bottom: 2px;
    }

    /* File dropzone on mobile */
    .file-upload-area.modern-upload-area {
        padding: 14px 12px;
        border-radius: 12px;
        gap: 10px;
    }

    .upload-icon-circle {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .upload-primary-text {
        font-size: 0.82rem;
    }

    .upload-sub-text {
        font-size: 0.7rem;
    }

    .banner-preview-footer {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .banner-footer-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
    }

    /* Action Bar on Mobile */
    .form-submit-bar {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        padding-top: 4px;
    }

    .btn-modern-submit,
    .btn-cancel-edit {
        width: 100%;
        height: 48px;
        justify-content: center;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    /* Live Preview Mockup on Mobile */
    .saas-preview-card {
        border-radius: 14px;
        border: 1px solid var(--saas-border);
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
        margin-bottom: 14px;
    }

    .preview-card-header {
        padding: 12px 14px;
    }

    .preview-card-header h4 {
        font-size: 0.88rem;
    }

    .preview-card-mockup {
        padding: 12px;
    }

    .mockup-event-box {
        border-radius: 12px;
    }

    .mockup-banner-img {
        height: 110px;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e1b4b 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 1.3rem;
        position: relative;
    }

    .mockup-banner-img::after {
        content: 'POSTER PREVIEW';
        font-size: 0.65rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.5);
        letter-spacing: 0.05em;
    }

    .mockup-body {
        padding: 12px;
        gap: 6px;
    }

    .mockup-title {
        font-size: 0.94rem;
        line-height: 1.3;
    }

    .mockup-meta {
        font-size: 0.72rem;
        gap: 4px;
    }

    /* Directory Card & Events List on Mobile */
    .events-directory-card {
        border-radius: 14px;
        border: 1px solid var(--saas-border);
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    }

    .events-directory-card > .section-header {
        padding: 12px 14px;
    }

    .events-directory-card > .section-header h2 {
        font-size: 0.94rem;
    }

    .directory-toolbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .directory-search-input {
        height: 40px;
        font-size: 16px !important;
        border-radius: 9px;
    }

    .directory-filter-tabs {
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .filter-tab-pill {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .events-list-container {
        padding: 10px;
        max-height: 520px;
    }

    .event-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        padding: 12px;
        border-radius: 12px;
    }

    .event-thumb-wrapper {
        width: 100%;
        height: 130px;
        border-radius: 8px;
    }

    .event-info h3 {
        font-size: 0.95rem;
        white-space: normal;
        margin-bottom: 4px;
    }

    .event-meta {
        flex-direction: column;
        gap: 4px;
        font-size: 0.74rem;
    }

    .event-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid var(--saas-border);
        margin-top: 4px;
    }

    .btn-edit-event,
    .btn-delete-event {
        min-height: 36px;
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .empty-state {
        padding: 28px 14px;
    }

    .empty-state i {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #f1f5f9;
        color: #94a3b8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .empty-state p {
        font-size: 0.85rem;
        font-weight: 600;
        color: #64748b;
    }
}

/* 3. EXTRA SMALL SMARTPHONES (<= 480px) */
@media (max-width: 480px) {
    /* Authentication Screen Viewport */
    .verification-wrapper {
        padding: 16px 10px;
        min-height: 100vh;
    }

    .verification-container {
        border-radius: 20px;
        width: 100%;
        box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
    }

    .verification-header {
        padding: 24px 18px 12px 18px;
    }

    .saas-auth-emblem-wrap {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        margin-bottom: 12px;
    }

    .saas-auth-emblem-img {
        width: 30px;
        height: 30px;
    }

    .verification-brand-badge {
        font-size: 0.68rem;
        padding: 3px 10px;
    }

    .verification-header h2 {
        font-size: 1.35rem;
    }

    .verification-header p {
        font-size: 0.82rem;
    }

    .verification-body {
        padding: 18px 14px 22px 14px;
    }

    .verification-body .form-group {
        margin-bottom: 16px;
    }

    .verification-body .input-with-icon input {
        height: 48px;
        font-size: 16px !important;
        border-radius: 10px;
    }

    #verificationCode {
        font-size: 1.35rem !important;
        letter-spacing: 0.35em !important;
        height: 50px !important;
    }

    .btn {
        height: 48px;
        font-size: 16px !important;
        border-radius: 10px;
    }

    .saas-auth-trust-strip {
        gap: 6px 12px;
        margin-top: 18px;
        padding-top: 14px;
    }

    .saas-auth-trust-item {
        font-size: 0.7rem;
    }

    /* Success Stage on Small Screen */
    .saas-auth-success {
        padding: 24px 14px 20px 14px;
    }

    .saas-success-ring-wrap {
        width: 68px;
        height: 68px;
    }

    .saas-success-svg {
        width: 64px;
        height: 64px;
    }

    .saas-success-title {
        font-size: 1.3rem;
    }

    .saas-success-msg {
        font-size: 0.85rem;
    }

    .saas-success-progress-wrap {
        width: 170px;
    }

    /* Modal dialog on small screen */
    .custom-modal-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .custom-modal-title {
        font-size: 1.1rem;
    }

    .custom-modal-message {
        font-size: 0.84rem;
        margin-bottom: 18px;
    }

    .custom-modal-actions {
        flex-direction: column;
        gap: 8px;
    }

    .custom-modal-btn {
        width: 100%;
        height: 44px;
    }
}

/* 4. ULTRA COMPACT DEVICES (<= 360px: iPhone SE 1st gen, etc.) */
@media (max-width: 360px) {
    .saas-navbar-inner {
        padding: 8px 10px;
    }

    .user-name {
        max-width: 90px;
    }

    .user-meta-item {
        max-width: 95px;
    }

    .saas-stat-card {
        padding: 10px 12px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .saas-stats-strip {
        grid-template-columns: 1fr !important;
    }
}

