/* SendUrFile Elite Styling System */

/* Global Custom CSS Variables & Tokens */
:root {
    --bg-dark: #070913;
    --bg-card: rgba(13, 18, 38, 0.55);
    --bg-card-nested: rgba(8, 12, 28, 0.7);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(168, 85, 247, 0.25);
    
    /* Core Neon Hues */
    --purple: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.45);
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.45);
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.35);
    --rose: #f43f5e;
    --rose-glow: rgba(244, 63, 94, 0.35);
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--purple), var(--cyan));
    --grad-glow: linear-gradient(135deg, var(--purple-glow), var(--cyan-glow));
    --grad-success: linear-gradient(135deg, #059669, #10b981);
    
    /* Font stacks */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.15);
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    /* Record row variables */
    --bg-record-row: rgba(255, 255, 255, 0.02);
    --border-record-row: rgba(255, 255, 255, 0.04);
    --text-record-plan: #ffffff;
    --text-record-amount: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-dark);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--purple);
}

/* Particle Canvas Overlay */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Common Utilities */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.glass-card-nested {
    background: var(--bg-card-nested);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

/* Dynamic Glowing Text Effects */
.animate-glow {
    background: linear-gradient(to right, #ffffff 30%, #c084fc 60%, #22d3ee 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow-text-shift 6s linear infinite;
}

@keyframes glow-text-shift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Glass Header Styling */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 19, 0.65);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Branding Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-logo {
    height: 38px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-logo.light-logo {
    display: none;
}

body.light-theme .main-logo.dark-logo {
    display: none;
}

body.light-theme .main-logo.light-logo {
    display: block;
}

.main-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

.logo-text span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

/* Navigation buttons styling */
.nav-links {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 4px;
}

.nav-btn {
    background: transparent;
    border: none;
    outline: none;
    color: #94a3b8;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.nav-icon {
    width: 16px;
    height: 16px;
}

.nav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.nav-btn.active {
    color: #ffffff;
    background: var(--grad-primary);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* System Status Dot */
.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald);
    animation: pulse-emerald 2s infinite;
}

.status-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #34d399;
    white-space: nowrap;
}

@keyframes pulse-emerald {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Main Layout View Panels Container */
.main-container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 120px 24px 80px 24px;
    min-height: calc(100vh - 100px);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
}

.page-content-wrapper {
    flex: 1;
    min-width: 0;
}

.view-panel {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-stats {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-title span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-lbl {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CONVERTER PANEL CARD */
.converter-box {
    min-height: 400px;
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* Upload zone styles */
.dropzone-area {
    border: 2px dashed rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(168, 85, 247, 0.01);
}

.dropzone-area:hover, .dropzone-area.drag-over {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.04);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.dropzone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(168, 85, 247, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.dropzone-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-icon-container {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.dropzone-area:hover .upload-icon-container {
    transform: translateY(-4px);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.upload-icon {
    width: 28px;
    height: 28px;
    color: #cbd5e1;
    transition: var(--transition-smooth);
}

.dropzone-area:hover .upload-icon {
    color: var(--cyan);
}

.dropzone-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.upload-limit {
    font-size: 0.9rem;
    color: #64748b;
    max-width: 500px;
}

.upload-action-group {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.or-divider {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Button Classes */
.action-btn {
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.primary-glow-btn {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.primary-glow-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(168, 85, 247, 0.55);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.secondary-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.success-btn {
    background: var(--grad-success);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.action-btn.disabled, .action-btn:disabled {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}

/* Dropdown trigger icon spin */
.btn-spinner {
    width: 18px;
    height: 18px;
    animation: rotate-loading 1s linear infinite;
}

@keyframes rotate-loading {
    100% { transform: rotate(360deg); }
}

/* QUEUE AREA SYSTEM */
.queue-area-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.queue-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.queue-size-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
}

.queue-actions {
    display: flex;
    gap: 14px;
}

.icon-text-btn {
    background: transparent;
    border: none;
    outline: none;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.icon-text-btn svg {
    width: 14px;
    height: 14px;
}

.icon-text-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.danger-text-btn:hover {
    color: var(--rose) !important;
    background: rgba(244, 63, 94, 0.08) !important;
}

/* Queue items scrolling container */
.file-list-scroll {
    max-height: 480px;
    min-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
    padding-bottom: 100px; /* Provides scrollable space to avoid clipping open dropdowns */
}

/* QUEUE SORTING TOOLBAR */
.queue-sort-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    gap: 12px;
}
.toolbar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.toolbar-actions {
    display: flex;
    gap: 8px;
}
.toolbar-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}
.toolbar-btn svg {
    width: 14px;
    height: 14px;
}
.toolbar-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.toolbar-btn.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.15));
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--cyan);
}

/* REORDER CONTROLS */
.reorder-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-right: -4px;
}
.drag-handle {
    cursor: grab;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}
.drag-handle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.drag-handle:active {
    cursor: grabbing;
}
.reorder-arrow {
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: transparent;
    border: none;
    padding: 0;
    transition: var(--transition-smooth);
}
.reorder-arrow:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.reorder-arrow:disabled {
    color: rgba(255, 255, 255, 0.1) !important;
    cursor: not-allowed;
    background: transparent !important;
}

/* DRAGGING STATES */
.file-item-card.dragging {
    opacity: 0.4;
    border: 2px dashed rgba(168, 85, 247, 0.4) !important;
}
.file-item-card.drag-over {
    border: 2px dashed rgba(6, 182, 212, 0.4) !important;
    background: rgba(6, 182, 212, 0.04) !important;
}

/* QUEUE ITEM CARD */
.file-item-card {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: auto auto 1fr auto auto auto;
    align-items: center;
    gap: 20px;
}

.file-type-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
}

.file-type-icon.img { border-color: rgba(6, 182, 212, 0.3); color: var(--cyan); background: rgba(6, 182, 212, 0.04); }
.file-type-icon.doc { border-color: rgba(168, 85, 247, 0.3); color: var(--purple); background: rgba(168, 85, 247, 0.04); }
.file-type-icon.data { border-color: rgba(251, 191, 36, 0.3); color: #f59e0b; background: rgba(251, 191, 36, 0.04); }
.file-type-icon.media { border-color: rgba(244, 63, 94, 0.3); color: var(--rose); background: rgba(244, 63, 94, 0.04); }

.file-meta-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.file-name {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #ffffff;
}

.file-size {
    font-size: 0.8rem;
    color: #64748b;
}

/* Individual Selector Dropdown */
.item-conversion-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Custom Dropdown Styling */
.custom-dropdown {
    position: relative;
    width: 140px;
}

.dropdown-trigger {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.dropdown-trigger:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-trigger svg {
    width: 12px;
    height: 12px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.custom-dropdown.open .dropdown-trigger svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #0f1326;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 50;
    display: none;
    padding: 8px;
    max-height: 250px;
    overflow-y: auto;
}

#global-format-dropdown .dropdown-menu {
    bottom: calc(100% + 8px);
    top: auto;
}

.custom-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.dropdown-group:last-child {
    margin-bottom: 0;
}

.group-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    padding: 4px 8px;
    letter-spacing: 0.5px;
}

.group-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.group-options button {
    background: transparent;
    border: none;
    outline: none;
    color: #cbd5e1;
    padding: 6px 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.group-options button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.group-options button.selected {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    font-weight: 600;
}

/* Global Select Box styling */
#global-format-dropdown {
    width: 170px;
}

/* Individual File Config button */
.config-trigger-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.config-trigger-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.config-trigger-btn svg {
    width: 14px;
    height: 14px;
}

/* Item Action Area (Download, Progress loader, Delete) */
.item-status-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
    min-width: 160px;
}

/* Inline progress loader indicator */
.progress-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    width: 100%;
}

.progress-bar-container {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--grad-primary);
    border-radius: 10px;
    transition: width 0.1s ease;
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan);
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.queued { background: rgba(255, 255, 255, 0.04); color: #94a3b8; border: 1px solid rgba(255, 255, 255, 0.06); }
.status-badge.success { background: rgba(16, 185, 129, 0.08); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.15); }
.status-badge.failed { background: rgba(244, 63, 94, 0.08); color: var(--rose); border: 1px solid rgba(244, 63, 94, 0.15); }

/* Download Single File */
.download-item-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.download-item-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.download-item-btn svg {
    width: 14px;
    height: 14px;
}

/* Delete single file */
.delete-item-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.delete-item-btn:hover {
    color: var(--rose);
    background: rgba(244, 63, 94, 0.06);
}

.delete-item-btn svg {
    width: 14px;
    height: 14px;
}

/* REAL-TIME TERMINAL LOG MODULE (INJECTED PER FILE PROCESSING) */
.file-terminal-log {
    grid-column: 1 / -1;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0 0 12px 12px;
    padding: 12px 16px;
    margin-top: -12px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 120px;
    overflow-y: auto;
}

.log-line {
    display: flex;
    gap: 12px;
}

.log-timestamp {
    color: #64748b;
}

.log-msg {
    color: #cbd5e1;
}

.log-msg.highlight {
    color: var(--cyan);
}

/* Queue Footer & Actions Box */
.queue-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    margin-top: 16px;
}

.global-convert-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-action-buttons {
    display: flex;
    gap: 14px;
}

/* FEATURES HOME GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-item {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-icon.secure { background: rgba(16, 185, 129, 0.08); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.2); }
.feature-icon.config { background: rgba(168, 85, 247, 0.08); color: var(--purple); border: 1px solid rgba(168, 85, 247, 0.2); }
.feature-icon.speed { background: rgba(6, 182, 212, 0.08); color: var(--cyan); border: 1px solid rgba(6, 182, 212, 0.2); }

.feature-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.feature-item p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* VIEW 2: FORMATS SYSTEM PAGE */
.view-title-container {
    text-align: center;
    margin-bottom: 40px;
}

.view-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.view-desc {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.formats-search-bar {
    padding: 16px 24px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper svg {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #64748b;
}

.search-input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    padding: 12px 16px 12px 48px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
    border-color: var(--purple);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.format-category-filters {
    display: flex;
    gap: 8px;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-chip:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.filter-chip.active {
    background: rgba(168, 85, 247, 0.12);
    border-color: var(--purple);
    color: #d8b4fe;
}

.formats-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.format-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.format-card-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    box-sizing: border-box;
}

.format-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.format-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.format-card-desc {
    font-size: 0.8rem;
    color: #64748b;
}

/* VIEW 3: SAAS PRICING MATRIX */
.pricing-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.pricing-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.pricing-card.featured-plan {
    transform: scale(1.03);
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(13, 18, 38, 0.7);
    box-shadow: 0 15px 45px rgba(168, 85, 247, 0.15);
}

.glowing-border-active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, var(--purple), var(--cyan)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.plan-badge {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.plan-badge-featured {
    background: var(--grad-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(168,85,247,0.3);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.price-val, .billing-type {
    transition: opacity 0.15s ease-in-out;
}

.plan-price span {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.plan-desc {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 30px;
    min-height: 45px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-bottom: 40px;
}

.plan-features li {
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
    text-align: left;
}

.plan-features svg {
    width: 14px;
    height: 14px;
    color: var(--emerald);
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-btn {
    width: 100%;
    padding: 14px 20px;
}

/* VIEW 4: DEVELOPER WORKSPACE API DOCS */
.api-workspace-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    margin-top: 40px;
}

.api-control-pane {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.api-control-pane h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.section-sub {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.key-gen-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.key-gen-box label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
}

.key-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.key-input-wrapper input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    outline: none;
    text-align: center;
}

.api-status-matrix {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    margin-top: 10px;
}

.status-indicator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.status-indicator-item span {
    color: #64748b;
    font-weight: 500;
}

.api-green-pill {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.status-indicator-item code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--purple);
}

/* API Code Pane block frame styling */
.api-code-pane {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 420px;
}

.code-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-tabs {
    display: flex;
    gap: 4px;
}

.code-tab {
    background: transparent;
    border: none;
    outline: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.code-tab:hover {
    color: #ffffff;
}

.code-tab.active {
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.06);
}

.code-body {
    flex: 1;
    background: #04050b;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

.code-pre {
    display: none;
    margin: 0;
}

.code-pre.active {
    display: block;
}

.code-pre code {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.7;
    color: #e2e8f0;
}

/* Code highlight syntax elements */
.code-pre .api-token-placeholder {
    color: var(--cyan);
    font-weight: bold;
}

/* SETTINGS MODAL INTERFACE */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 5, 11, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 520px;
    max-width: 90%;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close-icon {
    background: transparent;
    border: none;
    outline: none;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-icon:hover {
    color: #ffffff;
}

.modal-close-icon svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 24px;
    max-height: 75vh;
    overflow-y: auto;
}

/* Settings Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
}

.form-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: -4px;
}

.form-group input[type="text"], .form-group input[type="number"], .form-group select {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input[type="text"]:focus, .form-group input[type="number"]:focus, .form-group select:focus {
    border-color: var(--purple);
}

/* Styling Range Sliders */
.range-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.range-wrapper input[type="range"] {
    flex: 1;
    accent-color: var(--purple);
}

.range-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
    min-width: 32px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* TOAST ALERT NOTIFICATIONS */
.toast-container-area {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-alert {
    background: rgba(13, 17, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 14px 20px;
    width: 320px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide-in {
    100% { transform: translateX(0); opacity: 1; }
}

.toast-alert.fade-out {
    animation: toast-fade-out 0.4s ease forwards;
}

@keyframes toast-fade-out {
    100% { transform: translateY(10px); opacity: 0; }
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-alert.success { border-left: 4px solid var(--emerald); }
.toast-alert.success .toast-icon { color: var(--emerald); }

.toast-alert.error { border-left: 4px solid var(--rose); }
.toast-alert.error .toast-icon { color: var(--rose); }

.toast-content {
    font-size: 0.88rem;
    font-weight: 500;
    color: #cbd5e1;
}

.hidden {
    display: none !important;
}

/* RESPONSIVE MEDIA BREAKPOINTS */
@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .stats-grid {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pricing-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pricing-card.featured-plan {
        transform: none;
    }
    
    .api-workspace-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
        padding: 12px;
    }
    
    .main-container {
        padding-top: 180px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-around;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .file-item-card {
        grid-template-columns: auto auto 1fr auto;
        gap: 12px;
    }
    
    .item-conversion-control, .delete-item-btn {
        grid-column: span 1;
    }
    
    .item-status-wrapper {
        grid-column: 1 / -1;
        justify-content: space-between;
    }
    
    .pricing-cards-container {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .formats-search-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Premium Sample Image Gallery */
.sample-gallery-wrapper {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    z-index: 10;
}

.sample-gallery-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sample-gallery {
    display: flex;
    justify-content: center;
    gap: 18px;
    width: 100%;
    flex-wrap: wrap;
}

.sample-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: default;
    transition: var(--transition-smooth);
    width: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sample-item-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--purple-glow);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

.sample-img-container {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d1226;
    transition: var(--transition-smooth);
}

.sample-item-card:hover .sample-img-container {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.sample-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sample-item-card:hover .sample-img-container img {
    transform: scale(1.1);
}

.sample-item-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    transition: var(--transition-smooth);
}

.sample-item-card:hover .sample-item-label {
    color: #ffffff;
}

@media (max-width: 480px) {
    .sample-gallery {
        gap: 10px;
    }
    .sample-item-card {
        width: 80px;
        padding: 8px;
    }
    .sample-img-container {
        width: 48px;
        height: 48px;
    }
}

/* Premium Payment Checkout Modal & Account Badge */
.payment-modal-card {
    max-width: 480px !important;
    width: 95% !important;
    border-color: rgba(168, 85, 247, 0.2) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.1) !important;
}

.checkout-summary {
    background: var(--bg-card-nested) !important;
}

.pay-tab {
    transition: var(--transition-smooth);
}

.pay-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

/* System Active Account Badge States */
.system-status.starter-active {
    background: rgba(6, 182, 212, 0.1) !important;
    border: 1px solid rgba(6, 182, 212, 0.4) !important;
}

.system-status.starter-active .status-dot {
    background-color: var(--cyan) !important;
    box-shadow: 0 0 10px var(--cyan) !important;
    animation: pulse-cyan 2s infinite !important;
}

.system-status.starter-active .status-text {
    color: #22d3ee !important;
}

.system-status.pro-active {
    background: rgba(168, 85, 247, 0.1) !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
}

.system-status.pro-active .status-dot {
    background-color: var(--purple) !important;
    box-shadow: 0 0 10px var(--purple) !important;
    animation: pulse-purple 2s infinite !important;
}

.system-status.pro-active .status-text {
    color: #c084fc !important;
}

.system-status.enterprise-active {
    background: rgba(244, 63, 94, 0.1) !important;
    border: 1px solid rgba(244, 63, 94, 0.4) !important;
}

.system-status.enterprise-active .status-dot {
    background-color: #f43f5e !important;
    box-shadow: 0 0 10px #f43f5e !important;
    animation: pulse-rose 2s infinite !important;
}

.system-status.enterprise-active .status-text {
    color: #fb7185 !important;
}

@keyframes pulse-rose {
    0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

@keyframes pulse-purple {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

@keyframes pulse-cyan {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* Success Checkmark Pop Animation */
.success-icon-wrapper {
    animation: scale-up-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scale-up-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Premium Header IP Tracker & File Queue Limit Badge */
.ip-usage-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.ip-usage-badge:hover {
    border-color: var(--purple-glow);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.ip-usage-badge .ip-text {
    display: none;
    font-family: var(--font-mono);
    color: var(--cyan);
    font-weight: 500;
}

.ip-usage-badge .divider-line {
    display: none;
    color: rgba(255, 255, 255, 0.1);
    font-weight: 300;
}

.ip-usage-badge .usage-text {
    color: #cbd5e1;
}

.ip-usage-badge.starter-active-badge {
    border-color: var(--cyan-glow);
}
.ip-usage-badge.starter-active-badge .usage-text {
    color: #22d3ee;
}

.ip-usage-badge.pro-active-badge {
    border-color: var(--purple-glow);
}
.ip-usage-badge.pro-active-badge .usage-text {
    color: #c084fc;
}

.ip-usage-badge.enterprise-active-badge {
    border-color: rgba(244, 63, 94, 0.5);
}
.ip-usage-badge.enterprise-active-badge .usage-text {
    color: #fb7185;
}

@media (max-width: 1200px) {
    .system-status {
        display: none !important; /* Hide decorative status pill to preserve layout spacing */
    }
    .header-container {
        padding: 12px 16px;
    }
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.82rem;
    }
    .logo-text {
        font-size: 1.15rem;
    }
}

@media (max-width: 1024px) {
    .ip-usage-badge {
        display: none !important; /* Hide in header on tablet/phone viewports to preserve space */
    }
}

/* ==========================================
   FILE SHARING WORKSPACE STYLES
   ========================================== */
.share-workspace-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    margin-top: 24px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .share-workspace-layout {
        grid-template-columns: 1fr;
    }
}

.share-pane-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.share-control-pane {
    padding: 24px;
}

.share-display-pane {
    padding: 24px;
    position: relative;
    overflow: hidden;
    background: rgba(10, 14, 30, 0.65) !important;
}

/* Dropzone for link share */
.share-dropzone-area {
    border: 2px dashed rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    background: rgba(6, 182, 212, 0.01);
    transition: var(--transition-smooth);
}

.share-dropzone-area:hover, .share-dropzone-area.drag-over {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.04);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.08);
}

.share-dropzone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, rgba(6, 182, 212, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.share-dropzone-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.share-upload-icon {
    width: 44px;
    height: 44px;
    color: #94a3b8;
    transition: var(--transition-smooth);
}

.share-dropzone-area:hover .share-upload-icon {
    color: var(--cyan);
    transform: translateY(-2px);
}

#share-dropzone-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.share-dropzone-desc {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* File Selected Items Queue inside Uploader */
.share-selected-files-list {
    margin-top: 15px;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px;
}

.share-selected-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.share-selected-file-item:hover {
    background: rgba(255,255,255,0.04);
}

.share-file-meta-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.share-file-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.65rem;
    color: #fff;
    text-transform: uppercase;
}

.share-file-name-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.share-file-size-badge {
    font-size: 0.72rem;
    color: #64748b;
    font-family: var(--font-mono);
}

.share-remove-file-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    padding: 4px;
    border-radius: 40px;
}

.share-remove-file-btn:hover {
    color: var(--rose);
    background: rgba(244, 63, 94, 0.1);
}

/* Glassmorphic input modifiers */
.glass-input, .glass-textarea, .glass-select {
    transition: var(--transition-smooth) !important;
}

.glass-input:focus, .glass-textarea:focus, .glass-select:focus {
    border-color: rgba(6, 182, 212, 0.4) !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1) !important;
}

/* CSS slider switch */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: #cbd5e1;
    transition: .3s;
}

input:checked + .slider {
    background-color: rgba(6, 182, 212, 0.2);
    border-color: var(--cyan);
}

input:checked + .slider:before {
    transform: translateX(16px);
    background-color: var(--cyan);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Float illustration keyframe */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Glowing Success Checkmark animation */
.success-checkmark-glow {
    animation: success-pulse-ring 2s infinite ease-in-out;
}

@keyframes success-pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Color Coding for Console Terminal */
.t-green { color: var(--emerald); }
.t-cyan { color: var(--cyan); }
.t-purple { color: #c084fc; }
.t-gray { color: #64748b; }
.t-yellow { color: #f59e0b; }
.t-red { color: #ef4444; }

/* Scrollbar styling for console terminal box */
.terminal-body::-webkit-scrollbar {
    width: 4px;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

/* Glass uploader card items colors */
.bg-image { background: rgba(168, 85, 247, 0.15) !important; color: #c084fc !important; border: 1px solid rgba(168, 85, 247, 0.3) !important; }
.bg-document { background: rgba(6, 182, 212, 0.15) !important; color: #22d3ee !important; border: 1px solid rgba(6, 182, 212, 0.3) !important; }
.bg-data { background: rgba(16, 185, 129, 0.15) !important; color: #34d399 !important; border: 1px solid rgba(16, 185, 129, 0.3) !important; }
.bg-media { background: rgba(244, 63, 94, 0.15) !important; color: #fb7185 !important; border: 1px solid rgba(244, 63, 94, 0.3) !important; }

/* Global sidebar ad spacing and layout styling */

.adsense-sidebar-ad {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 200px;
    min-width: 200px;
    height: 640px;
    padding: 16px 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 12, 28, 0.45);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-sizing: border-box;
    position: sticky;
    top: 100px;
    z-index: 10;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.adsense-sidebar-ad.share-left-ad, .adsense-sidebar-ad.page-left-ad {
    flex-direction: row;
}

.adsense-sidebar-ad.share-right-ad, .adsense-sidebar-ad.page-right-ad {
    flex-direction: row-reverse;
}

.adsense-sidebar-ad:hover {
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.08), 0 0 30px rgba(168, 85, 247, 0.05);
    transform: translateY(-2px);
}

.adsense-sidebar-ad .ad-label {
    font-size: 0.62rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
}

.adsense-sidebar-ad.share-left-ad .ad-label, .adsense-sidebar-ad.page-left-ad .ad-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.adsense-sidebar-ad.share-right-ad .ad-label, .adsense-sidebar-ad.page-right-ad .ad-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.ad-content-wrapper {
    width: 160px;
    height: 600px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Fallback Mock Ads */
.mock-ad-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 12px;
    box-sizing: border-box;
    z-index: 2;
    text-align: center;
    overflow: hidden;
}

.mock-ad-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.mock-pro-ad .mock-ad-glow {
    background: var(--cyan);
    top: -20px;
    animation: mock-pulse-cyan 4s infinite alternate;
}

.mock-secure-ad .mock-ad-glow {
    background: var(--purple);
    bottom: -20px;
    animation: mock-pulse-purple 4s infinite alternate;
}

@keyframes mock-pulse-purple {
    0% { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(1.3); opacity: 0.25; }
}

@keyframes mock-pulse-cyan {
    0% { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(1.3); opacity: 0.25; }
}

.mock-ad-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.mock-pro-ad .mock-ad-icon-box {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.mock-secure-ad .mock-ad-icon-box {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.mock-ad-icon-box svg {
    width: 24px;
    height: 24px;
    animation: mock-icon-float 3s ease-in-out infinite;
}

@keyframes mock-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.mock-ad-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 4px 0;
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.mock-ad-title span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.mock-ad-subtitle {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mock-ad-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.mock-ad-features li {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-family: var(--font-sans);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 6px;
}

.mock-ad-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-sans);
}

.mock-pro-ad .mock-ad-btn {
    background: var(--grad-primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.mock-pro-ad .mock-ad-btn:hover {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
    transform: translateY(-1px);
}

.mock-secure-ad .mock-ad-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mock-secure-ad .mock-ad-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Hide fallback if Google AdSense loads content */
.adsbygoogle:not(:empty) ~ .mock-ad-fallback {
    display: none !important;
}

/* Responsive CSS rules for layout adaptation */
@media (max-width: 1500px) {
    .adsense-sidebar-ad {
        width: 180px;
        min-width: 180px;
    }
    .ad-content-wrapper {
        width: 140px;
    }
    .adsense-sidebar-ad .adsbygoogle {
        transform: scale(0.88);
        transform-origin: top center;
    }
}

@media (max-width: 1450px) {
    .share-right-ad, .page-right-ad {
        display: none !important;
    }
}

@media (max-width: 1300px) {
    .pricing-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .pricing-card.featured-plan {
        transform: none;
    }
}

@media (max-width: 1200px) {
    .share-left-ad, .page-left-ad {
        display: none !important;
    }
    .share-page-container {
        gap: 0;
    }
}

/* ==========================================
   NEURAL IMAGE ENHANCER TAB VIEW STYLES
   ========================================== */
.enhancer-workspace-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 968px) {
    .enhancer-workspace-layout {
        grid-template-columns: 1fr;
    }
}

.enhancer-studio-pane {
    padding: 30px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.enhancer-dropzone-area {
    border: 2px dashed rgba(6, 182, 212, 0.25);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(6, 182, 212, 0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.enhancer-dropzone-area:hover, .enhancer-dropzone-area.drag-over {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.04);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

/* Before / After Comparison Slider Container */
.comparison-container {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #090c1a;
    border: 1px solid var(--border-light);
}

.image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    transition: transform 0.05s ease-out;
}

.image-after-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: polygon(var(--x, 50%) 0, 100% 0, 100% 100%, var(--x, 50%) 100%);
    pointer-events: none;
}

.image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    transition: transform 0.05s ease-out;
}

/* Zoomed 1:1 state rules */
.comparison-container.zoomed .image-before,
.comparison-container.zoomed .image-after {
    width: var(--img-w) !important;
    height: var(--img-h) !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: fill !important;
    transform: translate(var(--pan-x, 0px), var(--pan-y, 0px));
}

.comparison-container.zoomed {
    cursor: grab;
}

.comparison-container.zoomed:active {
    cursor: grabbing;
}

.enhancer-zoom-btn.active {
    background: var(--cyan) !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: var(--x, 50%);
    width: 2px;
    height: 100%;
    background: var(--cyan);
    z-index: 3;
    pointer-events: none;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--cyan);
}

.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cyan);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5), 0 0 15px var(--cyan);
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: col-resize;
    z-index: 4;
}

/* Enhancer Control Panel styles */
.enhancer-control-pane {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

/* Enhancer Presets Grid */
.enhancer-preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
    text-align: center;
}

.preset-btn svg {
    stroke-width: 2px;
    color: #64748b;
    transition: var(--transition-smooth);
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.preset-btn:hover svg {
    color: #cbd5e1;
}

.preset-btn.active {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.preset-btn.active svg {
    color: var(--cyan);
}

/* Enhancer Presets Grid Adaptability */
@media (max-width: 1200px) {
    .enhancer-preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Light Theme Enhancer Presets Override */
body.light-theme .preset-btn {
    background: rgba(15, 23, 42, 0.02) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
}

body.light-theme .preset-btn svg {
    color: #94a3b8 !important;
}

body.light-theme .preset-btn:hover {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
}

body.light-theme .preset-btn.active {
    background: rgba(6, 182, 212, 0.06) !important;
    border-color: var(--cyan) !important;
    color: #0891b2 !important;
}

body.light-theme .preset-btn.active svg {
    color: #0891b2 !important;
}

.enhancer-pane-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.enhancer-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.enhancer-remove-btn {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--rose);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.enhancer-remove-btn:hover {
    background: rgba(244, 63, 94, 0.15);
    color: #fff;
}

/* Pricing Billing Toggle Switch */
.toggle-switch input:checked + .toggle-slider {
    background-color: var(--purple);
    box-shadow: 0 0 10px var(--purple-glow);
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Pricing Comparison Table Base Styles */
.comparison-table-wrapper tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: background 0.3s ease !important;
}
.comparison-table-wrapper tr:last-child {
    border-bottom: none !important;
}
.comparison-table-wrapper tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.01) !important;
}
.comparison-table-wrapper tbody tr:nth-child(even) {
    background: transparent !important;
}
.comparison-table-wrapper tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}
.comparison-table-wrapper thead tr {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.comp-muted {
    opacity: 0.65;
}

/* ==========================================
   LIGHT THEME OVERRIDES
   ========================================== */
body.light-theme {
    --bg-dark: #f3f4f6; /* Slate 100 */
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-nested: rgba(243, 244, 246, 0.95);
    --border-light: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(168, 85, 247, 0.2);
    --purple-glow: rgba(168, 85, 247, 0.25);
    --cyan-glow: rgba(6, 182, 212, 0.25);
    --shadow-glow: 0 4px 20px rgba(168, 85, 247, 0.08);
    
    color: #334155; /* Slate 700 */

    /* Record row variables in light mode */
    --bg-record-row: rgba(15, 23, 42, 0.02);
    --border-record-row: rgba(15, 23, 42, 0.05);
    --text-record-plan: #0f172a;
    --text-record-amount: #0f172a;
}

/* Scrollbar in Light Theme */
body.light-theme::-webkit-scrollbar-track {
    background: #f3f4f6;
}
body.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
}

/* Headings in Light Theme */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4 {
    color: #0f172a; /* Slate 900 */
}

/* Specific component text color corrections */
body.light-theme .logo-text {
    color: #0f172a;
}
body.light-theme .hero-subtitle {
    color: #475569;
}
body.light-theme .stat-card .stat-val {
    background: linear-gradient(135deg, #0f172a, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-theme .animate-glow {
    background: linear-gradient(to right, #0f172a 30%, #7c3aed 70%, #0891b2 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-theme .stat-card .stat-lbl {
    color: #64748b;
}
body.light-theme .feature-item p {
    color: #475569;
}
body.light-theme .sample-gallery-title {
    color: #475569;
}
body.light-theme .sample-item-label {
    color: #475569;
}
body.light-theme .sample-item-card {
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
body.light-theme .sample-item-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.1);
}
body.light-theme .sample-item-card:hover .sample-item-label {
    color: #000;
}

/* Dropzone text colors */
body.light-theme .dropzone-area h2,
body.light-theme .share-dropzone-area h4,
body.light-theme #share-dropzone-title,
body.light-theme .enhancer-dropzone-area h2 {
    color: #0f172a !important;
}
body.light-theme .dropzone-area p,
body.light-theme .share-dropzone-area .share-dropzone-desc,
body.light-theme #share-size-limit-badge,
body.light-theme .enhancer-dropzone-area .upload-limit,
body.light-theme .upload-limit {
    color: #475569 !important;
}

body.light-theme .share-dropzone-area,
body.light-theme .enhancer-dropzone-area {
    border-color: rgba(15, 23, 42, 0.12) !important;
    background: rgba(15, 23, 42, 0.01) !important;
}
body.light-theme .share-dropzone-area:hover,
body.light-theme .share-dropzone-area.drag-over,
body.light-theme .enhancer-dropzone-area:hover,
body.light-theme .enhancer-dropzone-area.drag-over {
    border-color: var(--cyan) !important;
    background: rgba(6, 182, 212, 0.03) !important;
}

/* Queue details styles */
body.light-theme .queue-info h3 {
    color: #1e293b;
}
body.light-theme .queue-size-badge {
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
}
body.light-theme .queue-footer span {
    color: #334155;
}

/* Nav links in light mode */
body.light-theme .nav-btn {
    color: #475569;
}
body.light-theme .nav-btn:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
}
body.light-theme .nav-btn.active {
    color: var(--purple);
    background: rgba(168, 85, 247, 0.06);
}

/* Modal text overrides */
body.light-theme .modal-card h3 {
    color: #0f172a;
}
body.light-theme .modal-body {
    color: #334155;
}
body.light-theme .modal-close-icon {
    color: #64748b;
}
body.light-theme .modal-close-icon:hover {
    color: #000;
}

/* Pricing Section Details */
body.light-theme .pricing-card {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
body.light-theme .plan-badge {
    background: rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
}
body.light-theme .plan-name {
    color: #0f172a !important;
}
body.light-theme .plan-price {
    color: #0f172a !important;
}
body.light-theme .plan-desc {
    color: #475569 !important;
}
body.light-theme .plan-features li {
    color: #334155 !important;
}
body.light-theme .plans-comparison-section h3 {
    color: #0f172a !important;
}
body.light-theme .plans-comparison-section p {
    color: #475569 !important;
}
body.light-theme .comparison-table-wrapper {
    background: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}
body.light-theme .comparison-table-wrapper th {
    color: #0f172a !important;
}
body.light-theme .comparison-table-wrapper td {
    color: #334155;
}
body.light-theme .comparison-table-wrapper td:not([style*="color"]) {
    color: #334155 !important;
}
body.light-theme .comp-muted {
    color: #64748b !important;
    opacity: 0.8 !important;
}

/* Light Theme Comparison Table Overrides */
body.light-theme .comparison-table-wrapper tr {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}
body.light-theme .comparison-table-wrapper tr:last-child {
    border-bottom: none !important;
}
body.light-theme .comparison-table-wrapper tbody tr:nth-child(odd) {
    background: rgba(15, 23, 42, 0.01) !important;
}
body.light-theme .comparison-table-wrapper tbody tr:nth-child(even) {
    background: transparent !important;
}
body.light-theme .comparison-table-wrapper tbody tr:hover {
    background: rgba(15, 23, 42, 0.02) !important;
}
body.light-theme .comparison-table-wrapper thead tr {
    border-bottom: 2px solid rgba(15, 23, 42, 0.12) !important;
}

/* File items in Queue */
body.light-theme .file-item-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.05);
}
body.light-theme .file-item-card:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
body.light-theme .item-name {
    color: #1e293b;
}
body.light-theme .item-size {
    color: #64748b;
}
body.light-theme .item-conversion-control span {
    color: #475569;
}

/* Share Display / File Share UI & Enhancer Workspaces */
body.light-theme .share-control-pane, 
body.light-theme .share-display-pane,
body.light-theme .enhancer-studio-pane {
    background: rgba(255, 255, 255, 0.8) !important;
}
body.light-theme .share-pane-title,
body.light-theme .enhancer-pane-title {
    color: #0f172a !important;
}
body.light-theme .share-file-name-text {
    color: #1e293b !important;
}

/* Light Theme Workspace Text Contrast Corrections (Share & Enhancer) */
body.light-theme .share-workspace-layout label,
body.light-theme .share-workspace-layout h3,
body.light-theme .share-workspace-layout h4,
body.light-theme .share-workspace-layout p,
body.light-theme .share-workspace-layout span:not([style*="cyan"]):not([style*="purple"]):not([style*="emerald"]):not([style*="rose"]):not([style*="ef4444"]):not(.comp-price-val),
body.light-theme .enhancer-workspace-layout label,
body.light-theme .enhancer-workspace-layout h3,
body.light-theme .enhancer-workspace-layout h4,
body.light-theme .enhancer-workspace-layout p,
body.light-theme .enhancer-workspace-layout span:not([style*="cyan"]):not([style*="purple"]):not([style*="emerald"]):not([style*="rose"]):not([style*="ef4444"]):not(.comp-price-val),
body.light-theme .enhancer-workspace-layout select,
body.light-theme .share-workspace-layout select {
    color: #475569 !important;
}

body.light-theme .share-workspace-layout h3,
body.light-theme .share-workspace-layout h4,
body.light-theme .enhancer-workspace-layout h2,
body.light-theme .enhancer-workspace-layout h3,
body.light-theme .enhancer-workspace-layout h4,
body.light-theme .enhancer-pane-title {
    color: #0f172a !important;
}
body.light-theme .terminal-console {
    background: #0f172a !important;
}
body.light-theme .terminal-header {
    background: #0b0f19 !important;
}

/* Formats Search and Grid */
body.light-theme .formats-search-bar {
    background: rgba(255, 255, 255, 0.75);
}
body.light-theme #format-search-input {
    color: #0f172a;
}
body.light-theme #format-search-input::placeholder {
    color: #94a3b8;
}
body.light-theme .filter-chip {
    background: rgba(15, 23, 42, 0.04);
    color: #475569;
}
body.light-theme .filter-chip:hover {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}
body.light-theme .filter-chip.active {
    background: var(--purple);
    color: #ffffff;
}
body.light-theme .format-card {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(15, 23, 42, 0.05);
}
body.light-theme .format-card:hover {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
body.light-theme .format-card-title {
    color: #0f172a !important;
}
body.light-theme .format-card-desc {
    color: #475569 !important;
}

/* Light Theme File Type Icons */
body.light-theme .file-type-icon {
    background: rgba(15, 23, 42, 0.04) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #334155 !important;
}
body.light-theme .file-type-icon.img {
    background: rgba(6, 182, 212, 0.1) !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
    color: #0891b2 !important;
}
body.light-theme .file-type-icon.doc {
    background: rgba(168, 85, 247, 0.1) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    color: #7c3aed !important;
}
body.light-theme .file-type-icon.data {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #d97706 !important;
}
body.light-theme .file-type-icon.media {
    background: rgba(244, 63, 94, 0.1) !important;
    border-color: rgba(244, 63, 94, 0.4) !important;
    color: #e11d48 !important;
}

/* Status active items */
body.light-theme .system-status {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}
body.light-theme .system-status .status-text {
    color: #475569;
}
body.light-theme .status-dot {
    background-color: var(--emerald);
}

/* Inputs & select lists */
body.light-theme .glass-input,
body.light-theme .glass-textarea,
body.light-theme .glass-select {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}
body.light-theme .glass-select option {
    background: #ffffff !important;
    color: #0f172a !important;
}
body.light-theme .glass-input:focus,
body.light-theme .glass-textarea:focus,
body.light-theme .glass-select:focus {
    border-color: var(--cyan) !important;
}
body.light-theme .custom-dropdown .dropdown-trigger {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}
body.light-theme .custom-dropdown .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
body.light-theme .dropdown-menu .group-title {
    color: #64748b;
}
body.light-theme .dropdown-menu button {
    color: #334155;
}
body.light-theme .dropdown-menu button:hover {
    background: rgba(15, 23, 42, 0.04);
    color: #000;
}
body.light-theme .dropdown-trigger svg {
    color: #475569;
}

/* Toggle buttons and custom switches */
body.light-theme .pricing-toggle-container .toggle-label {
    color: #64748b;
}
body.light-theme .pricing-toggle-container .toggle-label.active {
    color: #0f172a;
}

/* Secondary button contrast correction */
body.light-theme .secondary-btn {
    background: rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #334155 !important;
}
body.light-theme .secondary-btn:hover:not(:disabled) {
    background: rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(15, 23, 42, 0.18) !important;
    color: #0f172a !important;
}

body.light-theme .toggle-slider {
    background-color: rgba(15, 23, 42, 0.08) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

body.light-theme .toggle-switch input:checked + .toggle-slider {
    background-color: var(--purple) !important;
    border-color: var(--purple) !important;
}

/* Secondary / Auth items */
body.light-theme .ip-usage-badge {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(15, 23, 42, 0.06);
    color: #475569;
}
body.light-theme .ip-usage-badge:hover {
    background: rgba(255, 255, 255, 0.9);
}
body.light-theme .ip-usage-badge .usage-text {
    color: #0f172a;
}

/* Light Theme Footer overrides */
body.light-theme .app-footer {
    background: rgba(255, 255, 255, 0.65) !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .footer-brand,
body.light-theme .footer-designer {
    color: #0f172a !important;
}

body.light-theme .footer-link {
    color: #64748b !important;
}

body.light-theme .footer-link:hover {
    color: #0f172a !important;
}

body.light-theme .footer-divider {
    color: rgba(15, 23, 42, 0.15) !important;
}

/* Theme toggle color correction */
body.light-theme #theme-toggle-btn {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
}
body.light-theme #theme-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}

/* Sidebar ad overrides in Light Theme */
body.light-theme .adsense-sidebar-ad {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .adsense-sidebar-ad:hover {
    border-color: rgba(168, 85, 247, 0.25) !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06), 0 0 30px rgba(168, 85, 247, 0.03) !important;
}

body.light-theme .adsense-sidebar-ad .ad-label {
    color: #64748b !important;
}

body.light-theme .ad-content-wrapper {
    background: rgba(15, 23, 42, 0.02) !important;
    border-color: rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .mock-ad-title {
    color: #0f172a !important;
}

body.light-theme .mock-ad-subtitle {
    color: #475569 !important;
}

body.light-theme .mock-ad-features li {
    color: #334155 !important;
    border-bottom-color: rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .mock-secure-ad .mock-ad-btn {
    background: rgba(15, 23, 42, 0.05) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: #334155 !important;
}

body.light-theme .mock-secure-ad .mock-ad-btn:hover {
    background: rgba(15, 23, 42, 0.1) !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
}

body.light-theme .mock-pro-ad .mock-ad-icon-box {
    background: rgba(6, 182, 212, 0.08) !important;
    border-color: rgba(6, 182, 212, 0.2) !important;
}

body.light-theme .mock-secure-ad .mock-ad-icon-box {
    background: rgba(168, 85, 247, 0.08) !important;
    border-color: rgba(168, 85, 247, 0.2) !important;
}

/* Light Theme Header & Badges Refinements */
body.light-theme .glass-header {
    background: rgba(255, 255, 255, 0.65) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .ip-usage-badge .divider-line {
    color: rgba(15, 23, 42, 0.15) !important;
}

/* Light Theme Authentication Modal Refinements */
body.light-theme .auth-tabs {
    background: rgba(15, 23, 42, 0.03) !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
}

body.light-theme .google-auth-btn {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #334155 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .google-auth-btn:hover {
    background: #fff !important;
    border-color: rgba(15, 23, 42, 0.22) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .auth-divider {
    color: #64748b !important;
}

body.light-theme .auth-divider-line {
    background: rgba(15, 23, 42, 0.1) !important;
}

body.light-theme .auth-label {
    color: #334155 !important;
}

body.light-theme .auth-input {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
}

/* Light Theme Modals & Overlay Refinements */
body.light-theme .modal-overlay {
    background: rgba(15, 23, 42, 0.3) !important;
}

body.light-theme .modal-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.18), 0 0 20px rgba(168, 85, 247, 0.05) !important;
    border-radius: 20px !important;
}

/* Light Theme Specific Modal Text Contrast Overrides */
body.light-theme .modal-card h3,
body.light-theme .modal-card h4,
body.light-theme .modal-card label,
body.light-theme .modal-body {
    color: #334155 !important;
}
body.light-theme .modal-card h3 {
    color: #0f172a !important;
}
body.light-theme #profile-email-display {
    color: #475569 !important;
}
body.light-theme .success-features-list {
    color: #334155 !important;
    background: rgba(168, 85, 247, 0.04) !important;
    border-color: rgba(168, 85, 247, 0.15) !important;
}
body.light-theme .profile-meta-item:first-child {
    background: rgba(168, 85, 247, 0.06) !important;
    border-color: rgba(168, 85, 247, 0.25) !important;
}
body.light-theme .profile-meta-item:last-child {
    background: rgba(6, 182, 212, 0.06) !important;
    border-color: rgba(6, 182, 212, 0.25) !important;
}
body.light-theme #profile-tier-badge {
    color: #7c3aed !important;
}
body.light-theme #profile-quota-badge {
    color: #0891b2 !important;
}

body.light-theme .modal-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.light-theme .modal-close-icon {
    color: #64748b !important;
}

body.light-theme .modal-close-icon:hover {
    color: #0f172a !important;
}

body.light-theme .auth-input:focus {
    border-color: rgba(6, 182, 212, 0.4) !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15) !important;
    background: #fff !important;
}

body.light-theme .auth-input::placeholder {
    color: #94a3b8 !important;
}

/* Page Footer Symmetrical Base Styles */
.app-footer {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 20px;
    text-align: center;
    background: rgba(7, 9, 19, 0.4);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    margin-top: 60px;
    z-index: 10;
    position: relative;
}

.footer-copyright {
    margin: 0 0 10px 0;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: var(--font-outfit);
}

.footer-brand, .footer-designer {
    color: #fff;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.footer-seo-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.78rem;
    font-family: var(--font-outfit);
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: #fff;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.1);
}

/* Authentication Modal Base Styles */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
}

.google-auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 4px;
}

.google-auth-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.auth-divider span {
    padding: 0 10px;
}

.auth-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 4px;
    display: block;
}

.auth-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.auth-input:focus {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

/* Hide secure log terminals from frontend UI */
.secure-terminal-box {
    display: none !important;
}

/* 3-Way Pricing Segment Switcher Styles */
.pricing-segment-container button {
    outline: none;
}

.pricing-segment-btn {
    background: transparent;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    color: #94a3b8 !important;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pricing-segment-btn:hover:not(.active) {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
}

.pricing-segment-btn.active {
    background: var(--grad-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.2);
}

.save-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.pricing-segment-btn.active .save-badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Resources Dropdown Styles */
.resources-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.resources-dropdown-panel {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 480px;
    background: rgba(13, 18, 38, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.resources-dropdown-panel.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-18px);
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    text-align: left;
}

.resources-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resources-col .col-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--cyan) !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: var(--font-sans);
}

.resources-col .col-item {
    font-size: 0.8rem;
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 500;
    font-family: var(--font-sans);
}

.resources-col .col-item:hover {
    color: #fff !important;
    transform: translateX(3px);
}

/* Light Theme overrides for Resources Dropdown */
body.light-theme .resources-dropdown-panel {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.1) !important;
}

body.light-theme .resources-col .col-item {
    color: #475569 !important;
}

body.light-theme .resources-col .col-item:hover {
    color: #0f172a !important;
}

/* ==========================================
   LIGHT THEME OVERRIDES FOR WORKSPACE PANELS
   ========================================== */
body.light-theme #branding-view .glass-card,
body.light-theme #team-admin-view .glass-card,
body.light-theme #storage-view .glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.06) !important;
}

body.light-theme #branding-view label,
body.light-theme #team-admin-view label,
body.light-theme #storage-view label,
body.light-theme #team-admin-view h3,
body.light-theme #storage-view h3 {
    color: #0f172a !important;
}

body.light-theme #branding-view p,
body.light-theme #team-admin-view p,
body.light-theme #storage-view p {
    color: #475569 !important;
}

body.light-theme #branding-view input,
body.light-theme #branding-view select,
body.light-theme #branding-view textarea,
body.light-theme #team-admin-view input,
body.light-theme #storage-view input {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}

body.light-theme #branding-view input:focus,
body.light-theme #branding-view select:focus,
body.light-theme #branding-view textarea:focus,
body.light-theme #team-admin-view input:focus,
body.light-theme #storage-view input:focus {
    border-color: var(--cyan) !important;
}

body.light-theme #team-admin-view table th {
    color: var(--purple) !important;
}

body.light-theme #team-admin-view table td {
    color: #334155 !important;
}

body.light-theme #team-admin-view table td[style*="color: #fff"],
body.light-theme #team-admin-view table td[style*="color: #cbd5e1"] {
    color: #0f172a !important;
}

/* Header profile pill styling */
#header-profile-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 6px;
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid rgba(168, 85, 247, 0.15);
    background: rgba(8, 12, 28, 0.7);
    transition: var(--transition-smooth);
    height: 34px;
}
#header-profile-pill:hover {
    border-color: rgba(168, 85, 247, 0.4) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}
body.light-theme #header-profile-pill {
    background: rgba(15, 23, 42, 0.02) !important;
    border-color: rgba(168, 85, 247, 0.15) !important;
}
body.light-theme #header-profile-pill:hover {
    background: rgba(15, 23, 42, 0.06) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
}
.user-profile-name {
    color: #fff;
}
body.light-theme .user-profile-name {
    color: #0f172a !important;
}

/* Profile Modal Payment History theme styling */
#payment-records-container {
    background: rgba(8, 12, 28, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}
body.light-theme #payment-records-container {
    background: rgba(15, 23, 42, 0.02) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

/* Custom scrollbar for transaction records container */
#payment-records-container::-webkit-scrollbar {
    width: 4px;
}
#payment-records-container::-webkit-scrollbar-track {
    background: transparent;
}
#payment-records-container::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.2);
    border-radius: 2px;
}
#payment-records-container::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.4);
}
body.light-theme #payment-records-container::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
}
body.light-theme #payment-records-container::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.2);
}

.payment-record-row {
    border-bottom: none !important;
    margin-bottom: 4px;
}
.payment-record-row:last-child {
    margin-bottom: 0;
}
.payment-record-row:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    transform: translateX(2px);
}
body.light-theme .payment-record-row:hover {
    background: rgba(15, 23, 42, 0.04) !important;
}

/* Responsive Two-Column Grid for Profile Modal */
.profile-grid-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 28px;
    width: 100%;
    align-items: stretch;
}

.profile-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme .profile-left-column {
    border-right-color: rgba(15, 23, 42, 0.06);
}

.profile-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .profile-grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .profile-left-column {
        padding-right: 0;
        border-right: none;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    body.light-theme .profile-left-column {
        border-bottom-color: rgba(15, 23, 42, 0.06);
    }
}


