/*
 * RMS Review Raffle Management System
 * Custom Premium Glassmorphic CSS Stylesheet
 */

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

:root {
    --bg-main: #06060c;
    --bg-card: rgba(18, 18, 30, 0.45);
    --bg-card-hover: rgba(26, 26, 42, 0.6);
    --bg-header: rgba(10, 10, 18, 0.6);
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-focused: rgba(191, 90, 242, 0.4);
    
    --primary: #BF5AF2; /* Neon Violet */
    --primary-glow: rgba(191, 90, 242, 0.35);
    --accent: #0A84FF;  /* Neon Blue */
    --accent-glow: rgba(10, 132, 255, 0.3);
    
    --success: #30D158; /* Emerald */
    --warning: #FF9F0A; /* Orange */
    --danger: #FF453A;  /* Crimson */
    
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --text-muted: #48484A;
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 20px rgba(191, 90, 242, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 10% 20%, rgba(191, 90, 242, 0.1) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(10, 132, 255, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    display: inline-block;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid transparent;
}

.sidebar-item a:hover,
.sidebar-item.active a {
    color: var(--text-primary);
    background: var(--bg-card);
    border-color: var(--border-glass);
    box-shadow: var(--shadow-glow);
}

.sidebar-item.active a {
    border-color: rgba(191, 90, 242, 0.25);
    background: linear-gradient(90deg, rgba(191, 90, 242, 0.08) 0%, rgba(10, 132, 255, 0.02) 100%);
}

.sidebar-item a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: var(--transition-smooth);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2.5rem;
    min-height: 100vh;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--bg-card-hover);
}

/* Header Banner */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
}

.plan-pill {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.plan-pill.free { background: rgba(142, 142, 147, 0.2); color: var(--text-secondary); }
.plan-pill.professional { background: rgba(10, 132, 255, 0.2); color: var(--accent); }
.plan-pill.enterprise { background: rgba(191, 90, 242, 0.2); color: var(--primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(191, 90, 242, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 90, 242, 0.45);
    color: #FFF;
}

.btn-secondary {
    background: var(--bg-card);
    border-color: var(--border-glass);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(255, 69, 58, 0.15);
    color: var(--danger);
    border-color: rgba(255, 69, 58, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 69, 58, 0.3);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Metric Cards Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.metric-card.purple::before { background: var(--primary); }
.metric-card.success::before { background: var(--success); }
.metric-card.danger::before { background: var(--danger); }

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Custom Guided Wizard (Campaign Builder) */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3rem;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-glass);
    z-index: 1;
    transform: translateY(-50%);
}

.wizard-step {
    position: relative;
    z-index: 2;
    background: var(--bg-main);
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wizard-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.wizard-step.active .wizard-node {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFF;
    box-shadow: 0 0 15px var(--primary-glow);
}

.wizard-step.completed .wizard-node {
    background: var(--success);
    border-color: var(--success);
    color: #FFF;
}

.wizard-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.wizard-step.active .wizard-label {
    color: var(--primary);
}

/* Dynamic Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(191, 90, 242, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Custom Select Dropdowns & Option styling to prevent invisible white-on-white text in browsers */
select, option, select.form-control {
    color-scheme: dark !important;
}

select.form-control {
    background-color: #12121E !important;
    color: #FFFFFF !important;
    color-scheme: dark !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.2em !important;
    padding-right: 2.5rem !important;
}

select.form-control option, select option, option {
    background-color: #12121E !important;
    color: #FFFFFF !important;
    color-scheme: dark !important;
    padding: 0.8rem;
}

/* Autofill overrides for dark mode */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px #12121e inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

textarea.form-control {
    resize: vertical;
}

/* Custom checkbox / radio */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label, .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.radio-label:hover, .checkbox-label:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

/* File Upload Visual Customizer */
.file-upload-box {
    position: relative;
    width: 100%;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-visual {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--border-glass);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.file-upload-box:hover .file-upload-visual {
    border-color: var(--primary);
    background: rgba(191, 90, 242, 0.04);
}

.file-upload-visual svg {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.file-upload-box:hover .file-upload-visual svg {
    color: var(--primary);
    transform: translateY(-3px);
}

.file-prompt {
    font-weight: 600;
}

.file-selected-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(18, 18, 30, 0.2);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.premium-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
}

.premium-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.95rem;
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.premium-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-badge.pending { background: rgba(255, 159, 10, 0.15); color: var(--warning); }
.status-badge.approved { background: rgba(48, 209, 88, 0.15); color: var(--success); }
.status-badge.rejected { background: rgba(255, 69, 58, 0.15); color: var(--danger); }

/* Banners / Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(48, 209, 88, 0.1);
    border-color: rgba(48, 209, 88, 0.25);
    color: #81E694;
}

.alert-danger {
    background: rgba(255, 69, 58, 0.1);
    border-color: rgba(255, 69, 58, 0.25);
    color: #FF8F89;
}

/* Authentication Page layout (Glass Lockscreen style) */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Public Submission Campaign Page Custom Style */
.public-portal {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 1.5rem;
}

.brand-banner {
    width: 100%;
    height: 160px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.brand-banner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.brand-banner-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #FFF;
    border: 4px solid var(--bg-card);
    position: absolute;
    top: 115px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-banner-logo img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.public-header-section {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 2rem;
}

.live-badge {
    background: rgba(48, 209, 88, 0.15);
    color: var(--success);
    border: 1px solid rgba(48, 209, 88, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1rem;
}

.live-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px var(--success); }
    100% { transform: scale(0.9); opacity: 0.5; }
}

/* Custom interactive Form Builder Grid style */
.builder-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.field-designer-item {
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modal and utility classes */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.margin-bottom {
    margin-bottom: 1.5rem;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive details */
@media (max-width: 992px) {
    .sidebar {
        width: 80px;
        padding: 2rem 0.5rem;
    }
    .brand-title {
        font-size: 0;
        justify-content: center;
    }
    .brand-logo-dot {
        width: 16px;
        height: 16px;
    }
    .sidebar-item a span, .sidebar-footer {
        display: none;
    }
    .main-content {
        margin-left: 80px;
    }
    .builder-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PHASE 4: ADVANCED PREMIUM COMPONENT UX & TELEMETRY STYLING
   ========================================================================== */

/* Sleek custom scrollbars for dashboard panels and sidebar nav */
.sidebar nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.sidebar nav::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Global Marketing Layout Elements */
.section-container {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #FFFFFF 30%, #BF5AF2 70%, #0A84FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.8;
    font-weight: 400;
    text-align: center;
}

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

/* Global Landing Page Header & Footer Styles */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(6, 6, 12, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.landing-footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 5%;
    text-align: center;
    background: #030306;
    color: var(--text-secondary);
}

/* Native CapJS Math CAPTCHA Glass Styling */
.capjs-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.capjs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.capjs-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.capjs-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.15);
    color: #bf5af2;
    font-family: monospace;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.capjs-prompt {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.capjs-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.capjs-challenge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(10, 132, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 90px;
    height: 42px;
    color: #fff;
    user-select: none;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.capjs-equals {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.capjs-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    outline: none;
    text-align: center;
    font-family: monospace;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.2s ease-in-out;
}

.capjs-input:focus {
    border-color: #bf5af2;
    box-shadow: 0 0 10px rgba(191, 90, 242, 0.25);
}

/* Mobile responsive optimizations for CAPTCHA, Auth Cards, and Brand Logos */
@media (max-width: 768px) {
    .capjs-container {
        padding: 0.75rem !important;
        margin: 1rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .capjs-body {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .capjs-challenge {
        width: 100% !important;
        height: 42px !important;
        box-sizing: border-box !important;
    }
    .capjs-equals {
        display: none !important; /* Hide equals on mobile stacks so it looks extremely clean and premium */
    }
    .capjs-input {
        width: 100% !important;
        height: 42px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    /* Optimize card paddings on mobile viewports to prevent overflow */
    .auth-card {
        padding: 2rem 1.25rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .glass-card {
        padding: 1.25rem !important;
        box-sizing: border-box !important;
    }

    /* Mobile Brand Banner & Centering adjustments */
    .brand-banner {
        height: 120px !important;
    }
    .brand-banner h1 {
        font-size: 1.3rem !important;
        padding: 0 1.25rem !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }
    .brand-banner-logo {
        width: 70px !important;
        height: 70px !important;
        top: 85px !important; /* straddles 120px banner perfectly! (120 - 70/2 = 85px) */
        border-width: 3px !important;
    }
    .public-header-section {
        margin-top: 45px !important;
    }
    .live-badge {
        font-size: 0.75rem !important;
        padding: 3px 10px !important;
    }
    .public-header-section h2 {
        font-size: 1.4rem !important;
        padding: 0 1rem !important;
    }
}

