/* ===================================================
   VIRALSHORTLINK - MASTER CLEAN SAAS / CARD DESIGN SYSTEM
   =================================================== */

:root {
    /* Background & Surfaces */
    --bg-primary: #f0f3f8;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-card-subtle: #f8fafc;
    --bg-input: #ffffff;
    
    /* Borders & Lines */
    --border-color: #cbd5e1;
    --border-subtle: #e2e8f0;
    --border-highlight: rgba(79, 70, 229, 0.5);
    
    /* Primary Accent & Brand */
    --accent-color: #4f46e5;
    --accent-hover: #4338ca;
    --accent-glow: #6366f1;
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    
    /* High Contrast Crystal Clear Typography */
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #475569;
    --text-light: #64748b;
    
    /* Status Colors */
    --success: #059669;
    --success-bg: #ecfdf5;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --info: #0284c7;
    --info-bg: #f0f9ff;
    
    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    
    /* Multi-Layer Soft Elevation Shadows */
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 8px 20px -3px rgba(15, 23, 42, 0.06), 0 3px 8px -2px rgba(15, 23, 42, 0.03);
    --shadow-card: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 6px 14px -2px rgba(15, 23, 42, 0.04);
    --shadow-card-hover: 0 22px 48px -6px rgba(15, 23, 42, 0.12), 0 8px 20px -2px rgba(15, 23, 42, 0.05);
    --shadow-button: 0 4px 14px rgba(79, 70, 229, 0.35);
    
    /* Font & Spacing */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================
   RESET & BASE
   =================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-5);
    position: relative;
    z-index: 1;
}

/* Ambient Subtle Background */
.glow-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-bg::before {
    content: '';
    position: absolute;
    top: -10%; left: 15%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    filter: blur(80px);
}

/* ===================================================
   ELEVATED WHITE CARD
   =================================================== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: var(--space-6);
    transition: box-shadow 0.25s var(--ease-standard), transform 0.25s var(--ease-standard);
}

/* ===================================================
   NAVBAR & HEADER
   =================================================== */
.main-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    margin-bottom: var(--space-5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    gap: var(--space-3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.brand-glow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.6);
}

.gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-growth-btn {
    background: #fdf4ff;
    border-color: #f0abfc;
    color: #9333ea;
    font-weight: 600;
}

.nav-growth-btn:hover {
    background: #fae8ff;
    border-color: #e879f9;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 30px;
    color: var(--accent-color);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Tab Switcher */
.nav-tabs {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    gap: 3px;
}

.nav-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 30px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-standard);
    font-family: inherit;
}

.nav-tab-btn:hover {
    color: var(--text-primary);
}

.nav-tab-btn.active {
    background: #ffffff;
    color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

.new-pill {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.2px;
}

@media (max-width: 860px) {
    .desktop-nav-actions {
        display: none !important;
    }
    .mobile-nav-controls {
        display: flex !important;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }
    .main-navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
    }
    .nav-brand {
        order: 1;
    }
    .mobile-nav-controls {
        order: 2;
    }
    .nav-tabs {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: stretch;
    }
    .nav-tab-btn {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
}

/* ===================================================
   MOBILE NAVIGATION DRAWER & TOPBAR CONTROLS
   =================================================== */

.mobile-nav-controls {
    display: none;
}

.mobile-menu-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle-btn:hover,
.mobile-menu-toggle-btn.active {
    border-color: var(--accent-color);
    background: #f8fafc;
    color: var(--accent-color);
}

.hamburger-box {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-lang-compact-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Mobile Slide-Out Drawer Navigation */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;
}

.mobile-nav-drawer.active {
    pointer-events: auto;
    visibility: visible;
}

.mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-drawer.active .mobile-drawer-backdrop {
    opacity: 1;
}

.mobile-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 86vw;
    height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active .mobile-drawer-content {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}

.mobile-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

/* User Card inside Drawer */
.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 16px 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.mobile-user-avatar.guest-avatar {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mobile-username {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-user-badge {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-color);
}

.mobile-user-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Mobile Nav Body & Links */
.mobile-nav-body {
    padding: 8px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.mobile-nav-group-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin: 14px 4px 6px;
}

.mobile-nav-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 14px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.mobile-nav-link-btn:hover {
    background: #f8fafc;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.mobile-nav-link-btn.active {
    background: #eef2ff;
    color: var(--accent-color);
    border-color: rgba(79, 70, 229, 0.3);
}

.mobile-nav-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-nav-icon.icon-indigo { background: rgba(79, 70, 229, 0.12); color: #4f46e5; }
.mobile-nav-icon.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }
.mobile-nav-icon.icon-sky { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.mobile-nav-icon.icon-rose { background: rgba(244, 63, 94, 0.12); color: #e11d48; }
.mobile-nav-icon.icon-danger { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.mobile-nav-icon.icon-purple { background: rgba(168, 85, 247, 0.12); color: #9333ea; }
.mobile-nav-icon.icon-cta { background: var(--accent-gradient); color: #ffffff; }

.mobile-item-pill {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.mobile-item-pill.pill-instant { background: #f1f5f9; color: var(--text-muted); border: 1px solid var(--border-color); }
.mobile-item-pill.pill-new { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; }
.mobile-item-pill.pill-admin { background: #fef2f2; color: #ef4444; border: 1px solid #fca5a5; }
.mobile-item-pill.pill-free { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

.mobile-admin-highlight {
    color: #ef4444 !important;
}

.mobile-logout-btn {
    color: #dc2626 !important;
}

.mobile-logout-btn:hover {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}

.mobile-cta-btn {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    margin-top: 4px;
}

.mobile-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

.mobile-cta-btn .mobile-item-pill {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border: none;
}

/* Language Switcher Chips in Drawer */
.mobile-lang-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 2px;
}

.mobile-lang-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.mobile-lang-chip:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: var(--text-primary);
}

.mobile-drawer-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
    text-align: center;
    padding: var(--space-2) 0 var(--space-6);
}

.badge-wrapper {
    display: inline-block;
    margin-bottom: var(--space-2);
}

.badge-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.badge-primary .mp4-tag {
    background: var(--accent-gradient);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.74rem;
}

.hero-title {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-2);
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.45;
}

/* Live Trust Bar */
.live-trust-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding: 8px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 40px;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.trust-pill strong {
    color: var(--text-primary);
    font-weight: 700;
}

.trust-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

.trust-divider {
    color: #cbd5e1;
    font-size: 0.8rem;
}

/* ===================================================
   SHORTENER BUILDER CONTAINER & FORMS
   =================================================== */
.shortener-wrapper {
    margin-bottom: var(--space-8);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.25s var(--ease-out) forwards;
}

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

.shorten-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Grid Rows */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.main-select {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #94a3b8;
    border-radius: var(--radius-md);
    padding: 13px 40px 13px 16px;
    color: var(--text-primary);
    font-size: 0.98rem;
    font-weight: 600;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.main-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

.select-arrow {
    position: absolute;
    right: 14px;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Input Group with Icon */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.main-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #94a3b8;
    border-radius: var(--radius-md);
    padding: 15px 16px 15px 48px;
    color: var(--text-primary);
    font-size: 1.02rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
}

.main-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

.main-input::placeholder {
    color: #64748b;
    font-weight: 500;
    opacity: 1;
}

/* Custom Slug Box */
.extra-options {
    margin-top: 4px;
}

.custom-slug-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #94a3b8;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    gap: 8px;
    transition: border-color 0.2s ease;
}

.custom-slug-box:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.custom-slug-box .prefix {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    user-select: none;
}

.custom-slug-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    padding: 6px 4px;
    outline: none;
}

.custom-slug-box input::placeholder {
    color: #64748b;
    font-weight: 500;
}

.custom-slug-box .suffix {
    background: rgba(79, 70, 229, 0.12);
    color: var(--accent-color);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(79, 70, 229, 0.25);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s var(--ease-standard);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

.btn-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1.5px solid #cbd5e1;
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.84rem;
    border-radius: var(--radius-sm);
}

.btn-icon {
    padding: 8px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ===================================================
   VIDEO BUILDER 2-COLUMN GRID & SECTIONS
   =================================================== */
.video-builder-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-6);
    align-items: start;
}

@media (max-width: 960px) {
    .video-builder-grid {
        grid-template-columns: 1fr;
    }
}

.form-section {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.input-group-sub {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sub-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sub-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #94a3b8;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sub-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

.sub-input::placeholder {
    color: #64748b;
    font-weight: 500;
}

/* Custom Checkbox */
.custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.custom-checkbox-label input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.checkbox-text strong {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
}

/* ===================================================
   LIVE PREVIEW PANEL (Video Builder)
   =================================================== */
.preview-panel {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.preview-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-color);
}

.preview-panel-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.preview-player-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.preview-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-color);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
}

.preview-video-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.preview-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f172a;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.preview-empty-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
    padding: 16px;
}

.preview-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.btn-cta-secondary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.3);
}

/* ===================================================
   RESULT CARD
   =================================================== */
.result-container {
    margin-top: var(--space-6);
    display: none;
}

.result-card {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: var(--radius-md);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.1);
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 240px;
}

.result-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.result-link {
    font-size: 1.25rem;
    font-weight: 800;
    color: #166534;
    text-decoration: none;
    word-break: break-all;
}

.result-link:hover {
    text-decoration: underline;
}

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

/* ===================================================
   ADMIN & DASHBOARD TABLES & METRICS
   =================================================== */
.admin-content, .dashboard-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.admin-header, .dashboard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
    gap: 12px;
}

.stats-grid-4, .stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

/* Monetization Banner */
.monetization-banner {
    padding: 24px;
    background: #ffffff;
    border: 1.5px solid #e0e7ff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.monetization-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.monetization-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.monetization-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.input-group-custom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.input-box, .input-select {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.input-box:focus, .input-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}

/* Switch */
.switch-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Section Cards & Tables */
.admin-section-card, .chart-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.admin-section-header, .chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-section-title, .chart-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.admin-table, .dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th, .dashboard-table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td, .dashboard-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.admin-table tr:hover td, .dashboard-table tr:hover td {
    background: #f8fafc;
}

.status-badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-active {
    background: var(--success-bg);
    color: var(--success);
}

.status-banned {
    background: var(--danger-bg);
    color: var(--danger);
}

.short-pill {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-color);
    font-weight: 700;
    font-family: monospace;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Analytics Chart Grids */
.analytics-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-4);
}

.canvas-container {
    position: relative;
    height: 220px;
    width: 100%;
}

/* ===================================================
   MODALS
   =================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.modal-overlay.active, .modal-overlay[style*="display: flex"] {
    display: flex !important;
    animation: modalIn 0.25s var(--ease-out) forwards;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.qr-box {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

/* Marketing Templates */
.marketing-templates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.marketing-template-card {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.template-textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    padding: 10px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.82rem;
    resize: none;
    height: 75px;
    outline: none;
}

/* Video 18+ Unlocker */
.video-unlock-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 20px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
}

.unlock-modal-box {
    max-width: 380px;
    width: 100%;
    padding: 24px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.unlock-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.unlock-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.unlock-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.btn-unlock {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #ef4444, #e11d48);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
}

.unlock-trust {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* ===================================================
   PLAYER LANDING PAGE SPECIFIC
   =================================================== */
.player-body {
    background-color: var(--bg-primary);
}

.player-page-container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-4) var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

.player-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.player-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.6);
}

.video-main-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.video-header-info {
    margin-bottom: 16px;
}

.views-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 20px;
}

.player-video-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 8px;
    letter-spacing: -0.3px;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f172a;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.custom-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.click-redirect-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 20;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease;
}

.overlay-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.6);
    transition: transform 0.2s ease;
}

.click-redirect-overlay:hover .overlay-play-btn {
    transform: scale(1.1);
}

.player-actions-section {
    margin-top: 18px;
}

.timer-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: var(--radius-sm);
    color: #b45309;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.spinner-icon {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(180, 83, 9, 0.3);
    border-top-color: #b45309;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

.buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buttons-grid.buttons-locked {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.8);
}

.btn-action {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    width: 100%;
}

.player-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 18px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.share-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-share {
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-share:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.ad-slot {
    background: #ffffff;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}

.ad-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.player-footer {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 12px;
}

.player-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    animation: toastSlideIn 0.3s ease forwards;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

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

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 24px 0 32px;
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
}

.site-footer strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ===================================================
   MULTI-LANGUAGE SWITCHER DROPDOWN (EN / BN / ID)
   =================================================== */
.lang-switcher-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 60;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.lang-switcher-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: #f8fafc;
}

.lang-switcher-dropdown.open .lang-switcher-btn {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.current-lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.current-lang-label {
    letter-spacing: 0.5px;
}

.lang-chevron {
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.lang-switcher-dropdown.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    min-width: 175px;
    display: none;
    flex-direction: column;
    padding: 6px;
    gap: 4px;
    z-index: 1000;
}

.lang-switcher-dropdown.open .lang-dropdown-menu {
    display: flex;
    animation: fadeInDropdown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    font-family: inherit;
}

.lang-option:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-color);
    font-weight: 700;
}

.lang-opt-flag {
    font-size: 1.15rem;
    line-height: 1;
}

.lang-opt-text {
    flex: 1;
}

.lang-opt-code {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 800;
}

/* ==========================================================================
   Homepage Features & Platform Transparency Section
   ========================================================================== */
.home-info-section {
    margin-top: 48px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-header-center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 28px auto;
}

.section-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.section-main-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-main-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.feature-box-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

.feature-box-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 16px 30px -10px rgba(79, 70, 229, 0.12);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.feature-icon-indigo { background: rgba(79, 70, 229, 0.1); color: #4f46e5; border: 1px solid rgba(79, 70, 229, 0.2); }
.feature-icon-emerald { background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.2); }
.feature-icon-sky { background: rgba(14, 165, 233, 0.1); color: #0284c7; border: 1px solid rgba(14, 165, 233, 0.2); }
.feature-icon-amber { background: rgba(245, 158, 11, 0.1); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.2); }
.feature-icon-purple { background: rgba(168, 85, 247, 0.1); color: #9333ea; border: 1px solid rgba(168, 85, 247, 0.2); }
.feature-icon-rose { background: rgba(244, 63, 94, 0.1); color: #e11d48; border: 1px solid rgba(244, 63, 94, 0.2); }

.feature-box-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-box-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Platform Transparency & Win-Win Card */
.transparency-banner-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    color: #ffffff;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.transparency-banner-card::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.transparency-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 32px auto;
    position: relative;
    z-index: 1;
}

.transparency-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.transparency-pillar-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.transparency-pillar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pillar-item-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pillar-item-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .transparency-banner-card {
        padding: 24px 18px;
    }
    .section-main-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   PHASE 8: DYNAMIC SOCIAL CARD & OG PREVIEW GENERATOR STYLES
   ========================================================================== */

/* Mode Switcher Tabs */
.preview-mode-switch-group {
    display: inline-flex;
    background: #0f172a;
    padding: 3px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 4px;
}

.preview-mode-tab {
    padding: 5px 12px;
    border-radius: 16px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.preview-mode-tab:hover {
    color: #ffffff;
}

.preview-mode-tab.active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.preview-mode-pane {
    animation: fadeIn 0.25s ease;
}

/* Preset Chips */
.preset-chips-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.preset-chip {
    padding: 4px 10px;
    border-radius: 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.preset-chip:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.preset-chip.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

/* Duration Quick Selectors */
.duration-pill-btn {
    padding: 3px 8px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.duration-pill-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.duration-pill-btn.active {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    color: #ef4444;
}

/* Social Platform Switcher */
.social-platform-nav {
    display: flex;
    gap: 6px;
    background: #0f172a;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.social-plat-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.social-plat-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.social-plat-btn.active {
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Social Mockup Wrapper */
.social-mockup-wrapper {
    position: relative;
    width: 100%;
}

.social-mockup-box {
    display: none;
    animation: fadeIn 0.2s ease;
}

.social-mockup-box.active {
    display: block;
}

.mockup-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-generated-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.25s ease;
}

/* Watermark Play Overlays */
.watermark-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.watermark-play-overlay.youtube_red {
    width: 68px;
    height: 48px;
    background: #ef4444;
    border-radius: 14px;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.watermark-play-overlay.glass_cyan {
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.55);
    border: 3px solid #22d3ee;
    border-radius: 50%;
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.7);
}

.watermark-play-overlay.crystal_white {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.watermark-play-overlay.neon_pulse {
    width: 60px;
    height: 60px;
    background: rgba(88, 28, 135, 0.6);
    border: 3px solid #c084fc;
    border-radius: 50%;
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 25px rgba(192, 132, 252, 0.8);
}

.watermark-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 12px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    z-index: 10;
    pointer-events: none;
}

/* 1. Facebook Mockup Card */
#mockupFacebook, #dashMockupFacebook {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fb-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.fb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
}

.fb-author-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    background: #1877f2;
    color: #fff;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 900;
}

.fb-post-time {
    font-size: 0.72rem;
    color: #64748b;
}

.fb-post-text {
    font-size: 0.84rem;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.fb-card-frame {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.fb-card-meta {
    padding: 10px 12px;
}

.fb-domain-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.fb-card-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-top: 3px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fb-card-desc {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.fb-actions-bar {
    display: flex;
    justify-content: space-around;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
}

/* 2. Twitter / X Mockup Card */
#mockupTwitter, #dashMockupTwitter {
    background: #000000;
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 12px;
    color: #f4f4f5;
}

.tw-post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.tw-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #18181b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.tw-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
}

.tw-handle {
    font-size: 0.74rem;
    color: #71717a;
}

.tw-post-text {
    font-size: 0.82rem;
    color: #e4e4e7;
    margin-bottom: 8px;
}

.tw-card-frame {
    border: 1px solid #27272a;
    border-radius: 12px;
    overflow: hidden;
    background: #09090b;
}

.tw-card-meta {
    padding: 10px 12px;
    position: relative;
}

.tw-domain-pill {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 8px;
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tw-card-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #f4f4f5;
    line-height: 1.35;
}

/* 3. Telegram Mockup Card */
#mockupTelegram, #dashMockupTelegram {
    background: #17212b;
    border-radius: 12px;
    padding: 8px;
    color: #f5f5f5;
    border: 1px solid #232e3c;
}

.tg-bubble {
    border-radius: 10px;
    overflow: hidden;
}

.tg-sender {
    font-size: 0.75rem;
    font-weight: 800;
    color: #5bb2ec;
    margin-bottom: 6px;
    padding-left: 4px;
}

.tg-media {
    border-radius: 8px;
    overflow: hidden;
}

.tg-caption {
    padding: 8px 4px 4px 4px;
}

.tg-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
}

.tg-desc {
    font-size: 0.74rem;
    color: #94a3b8;
    margin-top: 3px;
}

.tg-time {
    font-size: 0.65rem;
    color: #64748b;
    text-align: right;
    margin-top: 4px;
}

/* 4. WhatsApp Mockup Card */
#mockupWhatsapp, #dashMockupWhatsapp {
    background: #0b141a;
    border-radius: 12px;
    padding: 10px;
    color: #e9edef;
    border: 1px solid #1f2c34;
}

.wa-bubble {
    background: #202c33;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.wa-card {
    display: flex;
    gap: 8px;
    background: #111b21;
    border-radius: 6px;
    overflow: hidden;
    padding: 4px;
}

.wa-thumb {
    width: 80px !important;
    height: 80px !important;
    aspect-ratio: 1/1 !important;
    border-radius: 4px;
    flex-shrink: 0;
}

.wa-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px;
}

.wa-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e9edef;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wa-domain {
    font-size: 0.68rem;
    color: #8696a0;
    margin-top: 4px;
}

.wa-link-text {
    font-size: 0.76rem;
    color: #53bdeb;
    margin-top: 6px;
    word-break: break-all;
}

.wa-time {
    font-size: 0.62rem;
    color: #8696a0;
    text-align: right;
    margin-top: 2px;
}

/* ===================================================
   SOCIAL OG GENERATOR & TWITTER VALIDATOR SUITE CSS
   =================================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.form-group .form-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
    background: #ffffff;
}

.preset-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    user-select: none;
}

.preset-chip:hover {
    background: #e2e8f0;
    color: var(--text-primary);
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.preset-chip.active {
    background: #eef2ff;
    color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15);
}

.style-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 4px;
}

@media (max-width: 500px) {
    .style-options-grid {
        grid-template-columns: 1fr;
    }
}

.style-option-radio {
    position: relative;
    cursor: pointer;
    display: block;
    user-select: none;
}

.style-option-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.style-card-box {
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.style-option-radio:hover .style-card-box {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.style-option-radio input:checked + .style-card-box {
    border-color: var(--accent-color);
    background: #eef2ff;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.style-icon-preview {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #ffffff;
    flex-shrink: 0;
}

.style-card-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.theme-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.theme-switch-btns {
    display: inline-flex;
    background: #e2e8f0;
    border-radius: 20px;
    padding: 2px;
}

.theme-switch-btn {
    padding: 4px 12px;
    border-radius: 16px;
    border: none;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.theme-switch-btn.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.card-type-toggle {
    display: inline-flex;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 2px;
}

.card-type-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.card-type-btn.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.health-score-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    margin-bottom: 16px;
}

.health-score-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 900;
    flex-shrink: 0;
}

.health-score-info h4 {
    margin: 0 0 2px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #14532d;
}

.health-score-info p {
    margin: 0;
    font-size: 0.78rem;
    color: #166534;
}

.external-validator-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.ext-val-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.ext-val-btn:hover {
    background: #f1f5f9;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.code-snippet-box {
    background: #0f172a;
    color: #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.76rem;
    line-height: 1.45;
    overflow-x: auto;
    border: 1px solid #1e293b;
    margin: 8px 0 0;
}

/* ===================================================
   COMPREHENSIVE MOBILE RESPONSIVE SUITE (INDEX.PHP & PLATFORM)
   =================================================== */

/* Tablet & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .glass-card {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .hero-section {
        padding: 8px 0 20px;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.22;
        letter-spacing: -0.4px;
    }

    .hero-subtitle {
        font-size: 0.92rem;
        padding: 0 8px;
    }

    /* Live Trust Bar - Seamless Wrapping */
    .live-trust-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 14px;
        padding: 8px 16px;
        border-radius: 24px;
        max-width: 100%;
        width: 100%;
        margin-top: 12px;
    }

    .trust-divider {
        display: none;
    }

    .trust-pill {
        font-size: 0.78rem;
    }

    /* Input & Select touch sizing */
    .main-input, .main-select, .sub-input {
        font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    }

    /* Video Tab & Builder Grid */
    .video-builder-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-section {
        padding: 16px 14px;
    }

    /* Result Card */
    .result-card {
        padding: 18px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .result-info {
        width: 100%;
        min-width: 0;
    }

    .result-link {
        font-size: 1.1rem;
        word-break: break-all;
    }

    .result-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .result-actions .btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 110px;
        text-align: center;
        justify-content: center;
        padding: 11px 14px;
        font-size: 0.88rem;
    }

    .result-actions #copyResultBtn {
        flex: 1 1 100%;
    }

    /* Features Grid */
    .features-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }

    .feature-box-card {
        padding: 20px 16px;
    }

    /* Transparency Section */
    .transparency-banner-card {
        padding: 24px 18px;
        border-radius: var(--radius-lg);
    }

    .transparency-pillars-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .transparency-pillar-item {
        padding: 18px 16px;
    }
}

/* Small Screen Mobile Devices (<= 520px) */
@media (max-width: 520px) {
    .container {
        padding: 0 12px;
    }

    .main-navbar {
        padding: 8px 0;
        gap: 10px;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-user-actions {
        gap: 4px;
    }

    .nav-user-actions .btn-sm {
        padding: 6px 9px;
        font-size: 0.78rem;
    }

    .lang-switcher-btn {
        padding: 5px 9px;
        font-size: 0.76rem;
    }

    .nav-tab-btn {
        padding: 8px 10px;
        font-size: 0.78rem;
        gap: 4px;
    }

    .nav-tab-btn svg {
        width: 15px;
        height: 15px;
    }

    .hero-title {
        font-size: 1.55rem;
        letter-spacing: -0.3px;
    }

    .hero-subtitle {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .badge-primary {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .glass-card {
        padding: 14px 12px;
        border-radius: 16px;
    }

    /* Custom Slug Box - Responsive Wrap */
    .custom-slug-box {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 6px;
    }

    .custom-slug-box .prefix {
        font-size: 0.8rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--text-muted);
        border-bottom: 1px dashed var(--border-subtle);
        padding-bottom: 4px;
        margin-bottom: 2px;
    }

    .custom-slug-box input {
        width: 100%;
        min-width: 0;
        font-size: 0.92rem;
        padding: 4px 0;
    }

    .custom-slug-box .suffix {
        margin-left: auto;
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .btn-submit {
        padding: 14px 18px;
        font-size: 0.98rem;
    }

    /* Video builder form sections */
    .form-section {
        padding: 14px 10px;
        gap: 10px;
    }

    .form-section-title {
        font-size: 0.92rem;
    }

    .preset-chips-container {
        gap: 4px;
    }

    .preset-chip {
        padding: 4px 8px;
        font-size: 0.72rem;
    }

    .duration-quick-row {
        gap: 4px;
    }

    .duration-pill-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .preview-panel {
        padding: 10px 8px;
    }

    .preview-player-card {
        padding: 10px;
    }

    .preview-video-title {
        font-size: 0.95rem;
    }

    /* Result Card on Small Mobile */
    .result-card {
        padding: 14px 10px;
    }

    .result-link {
        font-size: 0.96rem;
    }

    .result-actions .btn {
        padding: 9px 10px;
        font-size: 0.82rem;
    }

    /* Features */
    .features-grid-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-box-card {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .feature-icon-wrapper {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .feature-box-title {
        font-size: 1.02rem;
    }

    .feature-box-desc {
        font-size: 0.82rem;
    }

    .section-main-title {
        font-size: 1.35rem;
    }

    .section-main-subtitle {
        font-size: 0.84rem;
    }

    /* Transparency Section */
    .transparency-banner-card {
        padding: 18px 12px;
    }

    .transparency-pillar-item {
        padding: 14px 12px;
    }

    .pillar-item-title {
        font-size: 0.96rem;
    }

    .pillar-item-desc {
        font-size: 0.8rem;
    }

    /* Modals */
    .modal-content {
        padding: 18px 12px;
        border-radius: 14px;
        max-height: 90vh;
    }

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

    .template-textarea {
        font-size: 0.78rem;
        height: 70px;
    }

    .site-footer {
        padding: 18px 0 26px;
        font-size: 0.76rem;
        line-height: 1.5;
    }
}

/* Extra Small Devices (<= 360px) */
@media (max-width: 360px) {
    .nav-tab-btn {
        padding: 7px 6px;
        font-size: 0.72rem;
    }

    .nav-tab-btn .new-pill {
        display: none;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .live-trust-bar {
        padding: 6px 10px;
        gap: 6px 10px;
    }

    .trust-pill {
        font-size: 0.72rem;
    }
}