/* ==========================================================================
   FX Downloader - Modern Dark Design System
   Full Desktop & Mobile Responsive Layout
   ========================================================================== */

:root {
    --fx-bg: #080B10;
    --fx-card: #0D121D;
    --fx-surface: #0D121D;
    --fx-surface-hover: #161D2B;
    --fx-border: #1C2433;
    --fx-border-bright: #2A364F;
    --fx-primary: #3b82f6;
    --fx-primary-hover: #2563eb;
    --fx-primary-glow: rgba(59, 130, 246, 0.35);
    --fx-text: #FFFFFF;
    --fx-text-sub: #94A3B8;
    --fx-text-muted: #64748B;
    --fx-success: #22c55e;
    --fx-radius-pill: 9999px;
    --fx-radius-card: 22px;
    --fx-radius-sm: 12px;
}

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

html, body {
    background-color: #080B10 !important;
    background-image: none !important;
    background: #080B10 !important;
    color: var(--fx-text);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.page {
    width: 100% !important;
    min-height: 100vh;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background-color: #080B10 !important;
    background-image: none !important;
    background: #080B10 !important;
}

.wrapper {
    width: 100% !important;
    max-width: 1260px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: transparent !important;
    flex: 1 0 auto !important;
}

.main {
    width: 100% !important;
    max-width: 1260px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: transparent !important;
}

/* ==========================================================================
   Top Header Bar (Full Width with Container)
   ========================================================================== */
.site-top-header {
    width: 100%;
    background: rgba(8, 11, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--fx-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
}

.brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: contain;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
    display: block;
}

.brand-title-text {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* Desktop Navigation Menu */
.desktop-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.desktop-nav-link {
    color: var(--fx-text-sub);
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    padding: 0.45rem 0.95rem;
    border-radius: var(--fx-radius-pill);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.desktop-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.desktop-nav-link.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Header Action Right */
.header-actions-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-quota-badge {
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-pill);
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #E2E8F0;
    white-space: nowrap;
}

.header-auth-btn {
    padding: 0.45rem 1.15rem;
    border-radius: var(--fx-radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-ghost-signin {
    color: var(--fx-text-sub);
    border: 1px solid var(--fx-border);
    background: transparent;
}

.btn-ghost-signin:hover {
    color: #ffffff;
    border-color: var(--fx-border-bright);
    background: rgba(255, 255, 255, 0.04);
}

.btn-primary-signup {
    background: var(--fx-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--fx-primary-glow);
}

.btn-primary-signup:hover {
    background: var(--fx-primary-hover);
    transform: scale(1.02);
}

.btn-header-admin {
    background: rgba(168, 85, 247, 0.14) !important;
    color: #d8b4fe !important;
    border: 1px solid rgba(168, 85, 247, 0.45) !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.btn-header-admin:hover {
    background: rgba(168, 85, 247, 0.28) !important;
    color: #ffffff !important;
    border-color: rgba(168, 85, 247, 0.75) !important;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

/* Responsive header adjustments */
@media (max-width: 768px) {
    .desktop-nav-menu {
        display: none !important;
    }
    .header-auth-buttons {
        display: flex !important;
        gap: 0.35rem;
    }
    .header-auth-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.78rem;
    }
    .app-quota-badge {
        display: none;
    }
    .site-header-inner {
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   Main Content Layout (Generous Desktop + Compact Mobile)
   ========================================================================== */
.main-content-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 6.5rem 1.5rem;
    flex: 1;
}

@media (max-width: 768px) {
    .main-content-wrap {
        max-width: 500px;
        padding: 1.5rem 1rem 6.5rem 1rem;
    }
}

/* Hero Section */
.app-hero-section {
    text-align: center;
    margin-bottom: 2.25rem;
}

.app-hero-heading {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin: 0 0 1rem 0;
}

.app-hero-subheading {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--fx-text-sub);
    max-width: 620px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .app-hero-heading {
        font-size: 2.35rem;
        text-align: left;
    }
    .app-hero-subheading {
        font-size: 0.95rem;
        text-align: left;
    }
    .app-hero-section {
        text-align: left;
        margin-bottom: 1.5rem;
    }
}

/* Search Input Pill */
.app-search-form {
    max-width: 720px;
    margin: 0 auto 1rem auto;
    width: 100%;
}

.app-search-pill {
    display: flex;
    align-items: center;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-pill);
    padding: 0.35rem 0.4rem 0.35rem 1.25rem;
    min-height: 56px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.app-search-pill:focus-within {
    border-color: var(--fx-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.app-search-icon {
    display: flex;
    align-items: center;
    color: var(--fx-text-muted);
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.app-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    padding: 0.55rem 0;
    min-width: 0;
}

.app-search-input::placeholder {
    color: #475569;
}

.app-search-btn {
    background: var(--fx-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--fx-radius-pill);
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 14px var(--fx-primary-glow);
    white-space: nowrap;
}

.app-search-btn:hover {
    background: var(--fx-primary-hover);
    transform: scale(1.02);
}

/* Toggle Pill Bar */
.app-toggle-bar {
    max-width: 720px;
    margin: 0.85rem auto 1.5rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.app-pill-toggle-group {
    display: inline-flex;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-pill);
    padding: 3px;
}

.app-pill-toggle {
    background: transparent;
    border: none;
    color: var(--fx-text-sub);
    padding: 0.45rem 1.25rem;
    border-radius: var(--fx-radius-pill);
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-pill-toggle.active {
    background: var(--fx-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.app-clipboard-btn {
    background: transparent;
    border: none;
    color: var(--fx-text-muted);
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease;
    padding: 0.4rem 0.2rem;
}

.app-clipboard-btn:hover {
    color: var(--fx-text-sub);
}

/* Quota Progress Bar */
.app-quota-container {
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
    width: 100%;
}

.app-quota-track {
    height: 4px;
    background: #141A26;
    border-radius: var(--fx-radius-pill);
    overflow: hidden;
    width: 100%;
}

.app-quota-fill {
    height: 100%;
    background: var(--fx-primary);
    border-radius: var(--fx-radius-pill);
    transition: width 0.3s ease;
}

.app-quota-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--fx-text-sub);
    margin-top: 0.6rem;
}

.app-upgrade-link {
    color: var(--fx-primary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}

.app-upgrade-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* Sites Chips Section */
.app-sites-block {
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
    width: 100%;
    text-align: center;
}

.app-sites-header {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--fx-text-muted);
    margin-bottom: 0.85rem;
}

.app-sites-chips {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    flex-wrap: wrap;
}

.app-site-chip {
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    color: #F1F5F9;
    border-radius: var(--fx-radius-pill);
    padding: 0.48rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
    cursor: default;
}

.app-site-chip:hover {
    border-color: var(--fx-primary);
    color: #ffffff;
}

/* Feature Cards Grid (4 Columns on Desktop, 2 on Mobile) */
.app-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    max-width: 880px;
    margin: 0 auto 3rem auto;
    width: 100%;
}

@media (max-width: 768px) {
    .app-features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.app-feature-card {
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: 16px;
    padding: 1.2rem;
    text-align: left;
    transition: all 0.2s;
}

.app-feature-card:hover {
    border-color: var(--fx-border-bright);
    transform: translateY(-2px);
}

.app-feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(59, 130, 246, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fx-primary);
    margin-bottom: 0.85rem;
}

.app-feature-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.app-feature-desc {
    font-size: 0.8rem;
    color: var(--fx-text-muted);
    line-height: 1.35;
}

/* How It Works Section (Fills Desktop Elegantly) */
.app-how-it-works {
    max-width: 880px;
    margin: 3.5rem auto 2rem auto;
    text-align: center;
    border-top: 1px solid var(--fx-border);
    padding-top: 3rem;
}

.how-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.how-subtitle {
    font-size: 0.92rem;
    color: var(--fx-text-sub);
    margin-bottom: 2rem;
}

.how-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .how-steps-grid {
        grid-template-columns: 1fr;
    }
}

.how-step-card {
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    text-align: left;
}

.how-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: var(--fx-primary);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.how-step-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.how-step-desc {
    font-size: 0.85rem;
    color: var(--fx-text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   Bottom Navigation Dock (Mobile Only)
   ========================================================================== */
.app-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 11, 16, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid #141A26;
    padding: 0.65rem 1rem;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

@media (min-width: 769px) {
    .app-bottom-dock {
        display: none !important;
    }
}

.app-dock-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 440px;
}

.app-dock-item {
    color: var(--fx-text-sub);
    padding: 0.55rem 1.1rem;
    border-radius: var(--fx-radius-pill);
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    transition: all 0.2s;
}

.app-dock-item:hover {
    color: #ffffff;
}

.app-dock-item.active {
    background: var(--fx-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px var(--fx-primary-glow);
}

/* ==========================================================================
   Desktop Footer
   ========================================================================== */
.site-desktop-footer {
    width: 100%;
    border-top: 1px solid var(--fx-border);
    background: #06080C;
    padding: 2.5rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-copy-text {
    font-size: 0.85rem;
    color: var(--fx-text-muted);
}

.footer-nav-links {
    display: flex;
    gap: 1.25rem;
}

.footer-nav-link {
    color: var(--fx-text-sub);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-nav-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   Auth Pages Layout (Login & Signup)
   ========================================================================== */
.auth-page-wrap {
    width: 100%;
    max-width: 440px;
    margin: 2rem auto;
    padding: 1.25rem 1.15rem 4rem 1.15rem;
    display: flex;
    flex-direction: column;
}

.auth-nav-bar {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 1.5rem;
    height: 44px;
}

.auth-back-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.15s ease;
}

.auth-back-btn:hover {
    background: var(--fx-surface-hover);
    border-color: var(--fx-border-bright);
}

.auth-logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #ffffff;
}

.auth-card {
    background: var(--fx-card);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-card);
    padding: 2.2rem 1.85rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.auth-title {
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
}

.auth-sub {
    font-size: 0.92rem;
    color: var(--fx-text-muted);
    margin: 0 0 1.5rem 0;
}

.auth-benefits-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.auth-benefit-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--fx-text-sub);
}

.auth-google-btn {
    width: 100%;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: 14px;
    padding: 0.85rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-google-btn:hover {
    background: var(--fx-surface-hover);
    border-color: var(--fx-border-bright);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--fx-text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fx-border);
}

.auth-divider span {
    padding: 0 0.75rem;
}

.auth-field-group {
    margin-bottom: 1.25rem;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
}

.auth-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 0.45rem;
}

.auth-label-row .auth-label {
    margin-bottom: 0;
}

.auth-forgot-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fx-primary);
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-input-wrap {
    position: relative;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: 14px;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-input-wrap:focus-within {
    border-color: var(--fx-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.auth-field-icon {
    color: var(--fx-text-muted);
    flex-shrink: 0;
}

.auth-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover, 
.auth-input:-webkit-autofill:focus, 
.auth-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #111622 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-input::placeholder {
    color: #475569;
}

.auth-eye-btn {
    background: transparent;
    border: none;
    color: var(--fx-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.15s;
}

.auth-eye-btn:hover {
    color: #ffffff;
}

/* Password Strength Indicator */
.auth-strength-meter {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.auth-strength-bar {
    height: 3px;
    flex: 1;
    background: #1C2433;
    border-radius: 2px;
    transition: background 0.25s ease;
}

.auth-strength-bar.active {
    background: var(--fx-primary);
}

.auth-submit-btn {
    width: 100%;
    background: var(--fx-primary);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 0.95rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px var(--fx-primary-glow);
    transition: all 0.2s;
}

.auth-submit-btn:hover {
    background: var(--fx-primary-hover);
    transform: scale(1.01);
}

.auth-disclaimer {
    font-size: 0.78rem;
    color: var(--fx-text-muted);
    text-align: center;
    margin-top: 0.85rem;
}

.auth-footer-text {
    font-size: 0.9rem;
    color: var(--fx-text-sub);
    text-align: center;
    margin-top: 1.35rem;
}

.auth-footer-link {
    color: var(--fx-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-link:hover {
    text-decoration: underline;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Media Preview Card (Dark Styled)
   ========================================================================== */
.media-preview-card {
    background: var(--fx-card);
    border: 1px solid var(--fx-border);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 720px;
    margin: 1.5rem auto;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.preview-thumbnail-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #000;
}

.preview-thumbnail-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.preview-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}

.preview-uploader {
    font-size: 0.85rem;
    color: var(--fx-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.format-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: 12px;
    margin-bottom: 0.55rem;
}

.format-meta-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quality-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: #1E293B;
    color: #94A3B8;
    white-space: nowrap;
}

.quality-badge-4k { background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25)); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.quality-badge-2k { background: rgba(139, 92, 246, 0.2); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.quality-badge-fhd { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.quality-badge-hd { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.quality-badge-sd { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.quality-badge-low { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.quality-badge-audio { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.quality-badge-mp3 { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.quality-badge-m4a { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.quality-badge-wav { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.quality-badge-opus { background: rgba(139, 92, 246, 0.2); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }
.quality-badge-orig { background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(16, 185, 129, 0.25)); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

.preview-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.7);
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid var(--fx-border);
    margin-bottom: 1.25rem;
}

.preview-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--fx-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.preview-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.preview-tab-btn.active {
    background: var(--fx-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.preview-tab-count {
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.72rem;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    font-weight: 700;
}

.format-ext-pill {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--fx-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-right: 0.35rem;
}

.format-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
}

.format-size-tag {
    font-size: 0.78rem;
    color: var(--fx-text-muted);
}

.format-action-btn {
    background: var(--fx-primary);
    color: #ffffff;
    border: none;
    border-radius: 9px;
    padding: 0.5rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.15s ease;
}

.format-action-btn:hover {
    background: var(--fx-primary-hover);
}

.format-action-btn.btn-loading {
    opacity: 0.8;
    pointer-events: none;
}

.format-action-btn.btn-success {
    background: #10b981 !important;
}

.queue-status-alert {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    padding: 0.85rem 1.15rem;
    border-radius: 12px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.queue-quick-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--fx-primary);
    text-decoration: none;
}

/* Spinner */
@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Pricing Page Modern Dark Layout (Matches Home Page Aesthetics)
   ========================================================================== */
.pricing-page-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem 1.5rem;
    width: 100%;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 3.5rem;
}

.hero-badge-pill {
    background: var(--fx-surface) !important;
    border: 1px solid var(--fx-border) !important;
    border-radius: var(--fx-radius-pill) !important;
    padding: 0.4rem 1.1rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #38bdf8 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-badge-pill .badge-dot {
    width: 7px;
    height: 7px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8;
}

.pricing-main-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 3.2rem !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    color: #ffffff !important;
    margin: 1.25rem 0 1rem 0 !important;
}

.pricing-subtitle {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
    color: var(--fx-text-sub) !important;
    max-width: 640px !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   Pricing Page Modern Dark System (Matches Home Page Aesthetics)
   ========================================================================== */
.pricing-page-container {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem 5rem 1.5rem !important;
    width: 100% !important;
    background: transparent !important;
}

.pricing-hero {
    text-align: center !important;
    margin-bottom: 3.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.pricing-hero .hero-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.35rem 0.95rem !important;
    background: #0D121D !important;
    border: 1px solid #1C2433 !important;
    border-radius: 9999px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #3b82f6 !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 1.25rem !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.pricing-hero .badge-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #3b82f6 !important;
    box-shadow: 0 0 8px #3b82f6 !important;
}

.pricing-main-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(2.2rem, 5vw, 3.25rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #FFFFFF !important;
    background: none !important;
    -webkit-text-fill-color: #FFFFFF !important;
    margin: 0 0 0.85rem !important;
    letter-spacing: -0.03em !important;
    max-width: 820px !important;
}

.pricing-subtitle {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(0.95rem, 2vw, 1.12rem) !important;
    color: #94A3B8 !important;
    max-width: 620px !important;
    line-height: 1.6 !important;
    margin: 0 auto !important;
}

.pricing-cards-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
    width: 100% !important;
    align-items: stretch !important;
}

@media (max-width: 1080px) {
    .pricing-cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .pricing-cards-container {
        grid-template-columns: 1fr !important;
    }
    .pricing-hero {
        text-align: left !important;
        align-items: flex-start !important;
        margin-bottom: 2rem !important;
    }
    .pricing-main-title {
        font-size: 2.2rem !important;
        text-align: left !important;
    }
    .pricing-subtitle {
        text-align: left !important;
    }
}

.pricing-card-modern {
    background: #0D121D !important;
    border: 1px solid #1C2433 !important;
    border-radius: 22px !important;
    padding: 2.2rem 1.6rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.pricing-card-modern:hover {
    transform: translateY(-4px) !important;
    border-color: #2A364F !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

.pricing-card-modern.featured {
    background: #0F1624 !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(59, 130, 246, 0.15) !important;
}

.pricing-card-modern.featured:hover {
    transform: translateY(-6px) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(59, 130, 246, 0.25) !important;
}

.featured-badge-modern {
    position: absolute !important;
    top: -13px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 0.3rem 0.85rem !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4) !important;
    z-index: 2 !important;
    white-space: nowrap !important;
}

.plan-type-chip {
    display: inline-block !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 0.25rem 0.7rem !important;
    border-radius: 9999px !important;
    margin-bottom: 0.75rem !important;
}

.plan-type-free {
    background: #161D2B !important;
    color: #94A3B8 !important;
    border: 1px solid #1C2433 !important;
}

.plan-type-starter {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
}

.plan-type-professional {
    background: rgba(168, 85, 247, 0.12) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
}

.plan-type-enterprise {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.plan-name {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 0.5rem 0 !important;
}

.price-container {
    display: flex !important;
    align-items: baseline !important;
    gap: 0.2rem !important;
    margin-bottom: 0.4rem !important;
}

.price-container .currency {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.price-container .price {
    font-family: 'Outfit', sans-serif !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.03em !important;
    line-height: 1 !important;
}

.price-container .period {
    font-size: 0.9rem !important;
    color: #64748B !important;
    margin-left: 0.25rem !important;
}

.local-currency {
    font-size: 0.8rem !important;
    color: #64748B !important;
    margin-top: 0.25rem !important;
}

.currency-tag.tag-free {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    background: rgba(34, 197, 94, 0.1) !important;
    border: 1px solid rgba(34, 197, 94, 0.22) !important;
    color: #22c55e !important;
    padding: 0.15rem 0.55rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

.card-divider {
    border: 0 !important;
    border-top: 1px solid #1C2433 !important;
    margin: 1.25rem 0 !important;
}

.benefit-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
}

.benefit-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    font-size: 0.88rem !important;
    color: #cbd5e1 !important;
    line-height: 1.4 !important;
}

.feature-icon-wrap {
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 1px !important;
}

.feature-icon-wrap.icon-success {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #22c55e !important;
}

.text-accent-api {
    color: #38bdf8 !important;
    font-weight: 700 !important;
}

.pricing-card-modern .button-primary {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 0.8rem 1.4rem !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
    text-align: center !important;
    display: block !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.pricing-card-modern .button-primary:hover {
    background: #2563eb !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-1px) !important;
}

.pricing-card-modern .button-secondary {
    background: #161D2B !important;
    color: #ffffff !important;
    border: 1px solid #1C2433 !important;
    border-radius: 9999px !important;
    padding: 0.8rem 1.4rem !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.pricing-card-modern .button-secondary:hover {
    background: #1E283A !important;
    border-color: #2A364F !important;
}

/* ==========================================================================
   Documentation Modern Dark Layout (Matches Home Page Aesthetics)
   ========================================================================== */
.docs-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 1.5rem 1.5rem 4rem 1.5rem !important;
    width: 100% !important;
    background: transparent !important;
}

.docs-hero {
    background: #0D121D !important;
    border: 1px solid #1C2433 !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    padding: 2.5rem !important;
    margin-bottom: 2rem !important;
    position: relative !important;
}

.docs-hero::before {
    display: none !important;
}

.docs-hero-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 2.45rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    margin: 0 0 0.85rem 0 !important;
}

.docs-hero-sub {
    color: #94A3B8 !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    max-width: 820px !important;
    margin: 0 0 1.6rem 0 !important;
}

.docs-pill {
    background: #080B10 !important;
    color: #3b82f6 !important;
    border: 1px solid #1C2433 !important;
    border-radius: 9999px !important;
    padding: 0.35rem 0.85rem !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.btn-docs-primary, a[href*="playground"].btn-docs-primary {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 0.7rem 1.4rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.btn-docs-primary:hover {
    background: #2563eb !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

.btn-docs-secondary, a[href*="profile"].btn-docs-secondary, a[href*="signup"].btn-docs-secondary {
    background: #161D2B !important;
    border: 1px solid #1C2433 !important;
    border-radius: 9999px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 0.7rem 1.3rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.btn-docs-secondary:hover {
    background: #1E283A !important;
    border-color: #2A364F !important;
    color: #ffffff !important;
}

.docs-key-banner {
    background: #0D121D !important;
    border: 1px solid #1C2433 !important;
    border-radius: 14px !important;
    padding: 0.85rem 1.25rem !important;
    margin-bottom: 2rem !important;
    backdrop-filter: none !important;
}

.docs-key-code {
    background: #080B10 !important;
    border: 1px solid #1C2433 !important;
    color: #38bdf8 !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 6px !important;
    font-family: 'JetBrains Mono', monospace !important;
}

.docs-sidebar {
    background: #0D121D !important;
    border: 1px solid #1C2433 !important;
    border-radius: 18px !important;
    padding: 1.25rem 1rem !important;
}

.docs-nav-link {
    color: #94A3B8 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

.docs-nav-link:hover {
    color: #ffffff !important;
    background: #161D2B !important;
}

.docs-nav-link.active {
    background: #161D2B !important;
    border: 1px solid #1C2433 !important;
    color: #3b82f6 !important;
    font-weight: 600 !important;
}

.docs-content-card, .docs-section {
    background: #0D121D !important;
    border: 1px solid #1C2433 !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    padding: 2.2rem !important;
    margin-bottom: 2rem !important;
    backdrop-filter: none !important;
}

.docs-section-header {
    border-bottom: 1px solid #1C2433 !important;
    padding-bottom: 1.25rem !important;
    margin-bottom: 1.6rem !important;
}

.docs-section h2, .docs-section-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 0.5rem 0 !important;
}

.docs-section-desc {
    color: #94A3B8 !important;
    font-size: 0.96rem !important;
    line-height: 1.6 !important;
}

.endpoint-bar {
    background: #080B10 !important;
    border: 1px solid #1C2433 !important;
    border-radius: 10px !important;
    padding: 0.75rem 1.1rem !important;
    margin: 1.25rem 0 1.5rem 0 !important;
}

.endpoint-path {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.95rem !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.endpoint-try-btn {
    background: #161D2B !important;
    border: 1px solid #1C2433 !important;
    color: #38bdf8 !important;
    border-radius: 6px !important;
    padding: 0.35rem 0.75rem !important;
}

.endpoint-try-btn:hover {
    background: #1E283A !important;
    color: #ffffff !important;
    border-color: #2A364F !important;
}

.docs-table-wrapper {
    border: 1px solid #1C2433 !important;
    border-radius: 12px !important;
    overflow-x: auto !important;
}

.docs-table th {
    background: #080B10 !important;
    color: #94A3B8 !important;
    font-weight: 700 !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.76rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid #1C2433 !important;
}

.docs-table td {
    background: #0D121D !important;
    padding: 0.85rem 1rem !important;
    border-bottom: 1px solid #1C2433 !important;
    color: #cbd5e1 !important;
    line-height: 1.5 !important;
}

.code-box {
    background: #080B10 !important;
    border: 1px solid #1C2433 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 1.25rem 0 !important;
}

.code-box-header {
    background: #0B0F17 !important;
    border-bottom: 1px solid #1C2433 !important;
    padding: 0.35rem 0.8rem !important;
}

.code-tab.active {
    background: #161D2B !important;
    border: 1px solid #1C2433 !important;
    color: #3b82f6 !important;
}

.code-copy-btn {
    background: #161D2B !important;
    border: 1px solid #1C2433 !important;
    color: #94A3B8 !important;
}

.code-copy-btn:hover {
    background: #1E283A !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Profile & Dashboard Page - Modern Dark Glassmorphic Design System
   ========================================================================== */
.profile-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem 1.5rem;
    box-sizing: border-box;
}

/* Strict SVG Safety Rule to prevent any SVG from expanding full screen */
.profile-container svg {
    max-width: 100%;
    flex-shrink: 0;
}

/* Stats Cards Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
    width: 100%;
}

.stat-card {
    background: #0D121D;
    border: 1px solid #1C2433;
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
    border-color: #2A364F;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Stat Icons - Fixed Constrained Dimensions */
.stat-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 12px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    overflow: hidden;
}

.stat-icon svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.profile-avatar-img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(59, 130, 246, 0.4);
    flex-shrink: 0 !important;
}

/* Stat Color Themes */
.stat-icon-blue    { background: rgba(56, 189, 248, 0.12) !important; color: #38bdf8 !important; border: 1px solid rgba(56, 189, 248, 0.25) !important; }
.stat-icon-green   { background: rgba(52, 211, 153, 0.12) !important; color: #34d399 !important; border: 1px solid rgba(52, 211, 153, 0.25) !important; }
.stat-icon-purple  { background: rgba(167, 139, 250, 0.12) !important; color: #a78bfa !important; border: 1px solid rgba(167, 139, 250, 0.25) !important; }
.stat-icon-orange  { background: rgba(251, 146, 60, 0.12) !important; color: #fb923c !important; border: 1px solid rgba(251, 146, 60, 0.25) !important; }
.stat-icon-cyan    { background: rgba(34, 211, 238, 0.12) !important; color: #22d3ee !important; border: 1px solid rgba(34, 211, 238, 0.25) !important; }
.stat-icon-red     { background: rgba(248, 113, 113, 0.12) !important; color: #f87171 !important; border: 1px solid rgba(248, 113, 113, 0.25) !important; }

.stat-body {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Profile Tab Navigation Bar */
.site-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #94A3B8;
    background: #0D121D;
    border: 1px solid #1C2433;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.site-nav-tab svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

.site-nav-tab:hover {
    color: #ffffff;
    border-color: #2A364F;
    background: #161D2B;
}

.site-nav-tab.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    margin-left: 0.25rem;
}

/* Modern Content Cards */
.modern-card {
    background: #0D121D;
    border: 1px solid #1C2433;
    border-radius: 18px;
    padding: 1.6rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    width: 100%;
    box-sizing: border-box;
}

.modern-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.modern-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.modern-card-title svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

/* Badges */
.media-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.media-badge-video {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.media-badge-audio {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.media-badge-other {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

/* Glass Tables */
.glass-table-wrapper {
    border: 1px solid #1C2433;
    border-radius: 14px;
    overflow-x: auto;
    background: #080B10;
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.glass-table th {
    background: #0B0F17;
    color: #94A3B8;
    font-weight: 700;
    padding: 0.85rem 1.15rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #1C2433;
}

.glass-table td {
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid rgba(28, 36, 51, 0.7);
    color: #cbd5e1;
}

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

.glass-table tr:hover td {
    background: rgba(22, 29, 43, 0.4);
}

/* Compact Inputs & Buttons */
.compact-field-input {
    width: 100%;
    background: #080B10;
    border: 1px solid #1C2433;
    border-radius: 10px;
    color: #ffffff;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.compact-field-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-action-download {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-action-download svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

.btn-action-download:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.btn-action-delete {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-action-delete svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

.btn-action-delete:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.btn-kill-all {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-kill-all svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

.btn-kill-all:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Code Viewer */
.code-viewer-container {
    background: #080B10;
    border: 1px solid #1C2433;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
}

.code-viewer-header {
    background: #0B0F17;
    border-bottom: 1px solid #1C2433;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-viewer-pre {
    padding: 1rem;
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    color: #cbd5e1;
    max-height: 480px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Stack Form in Settings */
.stack-form {
    display: flex;
    flex-direction: column;
}

.stack-form .field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94A3B8;
    margin-bottom: 0.4rem;
}

.stack-form .input {
    width: 100%;
    background: #080B10;
    border: 1px solid #1C2433;
    border-radius: 10px;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.stack-form .input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.stack-form .button-primary {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.stack-form .button-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

