/* ==========================================================================
   PRIVACY GATEWAY WEB - CORE DESIGN SYSTEM
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-space: #07070c;
    --bg-midnight: #0d0d18;
    --bg-card: rgba(18, 18, 29, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-focus: rgba(99, 102, 241, 0.3);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-purple: #6366f1;
    --accent-purple-glow: rgba(99, 102, 241, 0.35);
    --accent-cyan: #0ea5e9;
    --accent-cyan-glow: rgba(14, 165, 233, 0.35);
    
    --color-clean: #10b981;
    --color-clean-glow: rgba(16, 185, 129, 0.2);
    --color-low: #10b981;
    --color-moderate: #f59e0b;
    --color-high: #f97316;
    --color-critical: #ef4444;
    --color-critical-glow: rgba(239, 68, 68, 0.2);
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

body {
    background: linear-gradient(135deg, var(--bg-space) 0%, var(--bg-midnight) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Layout Container */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Security & Offline Banner */
.security-banner {
    background: rgba(16, 185, 129, 0.12);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-clean);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.pulse-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.secure-indicator {
    background-color: var(--color-clean);
    box-shadow: 0 0 10px var(--color-clean);
    animation: pulse 1.8s infinite alternate;
}

.offline-indicator {
    background-color: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
    animation: pulse 1.8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 8px var(--accent-purple-glow));
}

.logo-text h1 {
    font-size: 1.8rem;
    line-height: 1.1;
    font-weight: 800;
}

.logo-text .tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-action,
.btn-share-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(14, 165, 233, 0.15));
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e0f2fe;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-header-action:hover,
.btn-share-header:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(14, 165, 233, 0.3));
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-cyan-glow);
}

.action-icon,
.share-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-cyan);
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.badge-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-cyan);
}

/* ==========================================================================
   GLASSMORPHIC CARD STYLING
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   GRID WORKSPACE
   ========================================================================== */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Column Panel */
.control-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Right Column Panel */
.visualizer-panel {
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

/* ==========================================================================
   IMPORT / DROP ZONE
   ========================================================================== */
.dropzone-card {
    overflow: hidden;
}

.drop-zone {
    width: 100%;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    margin: 8px;
    width: calc(100% - 16px);
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.01);
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent-purple);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.drop-zone:hover .upload-icon {
    color: var(--accent-cyan);
    transform: translateY(-4px);
}

.drop-zone h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.drop-zone p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.browse-link {
    color: var(--accent-purple);
    font-weight: 600;
    text-decoration: underline;
}

.file-limits {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ANONYMIZATION SETTINGS CARD
   ========================================================================== */
.settings-card {
    padding: 2rem;
}

.section-title {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.title-icon {
    width: 22px;
    height: 22px;
    color: var(--accent-purple);
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
}

.settings-group h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

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

/* Premium iOS Switch Controls */
.toggle-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
}

.toggle-label {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.toggle-label .primary-lbl {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.toggle-label .sub-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.toggle-control input {
    display: none;
}

.toggle-switch {
    width: 46px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.toggle-control input:checked + .toggle-switch {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
}

.toggle-control input:checked + .toggle-switch::after {
    left: 22px;
}

/* Settings Sliders & Drawers */
.slider-drawer {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 0.75rem;
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slider-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.slider-header span:last-child {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

/* Custom Styled Input Range */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

input[type=range]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fast);
}

input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.2);
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan-glow);
}

/* Text Inputs & Selects */
.input-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.input-control input[type=text], .input-control select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.input-control input[type=text]:focus, .input-control select:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.08);
}

.input-row {
    display: flex;
    gap: 1rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.interactive-tip {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* ==========================================================================
   RIGHT COLUMN - WELCOME STATE & DASHBOARD
   ========================================================================== */
.welcome-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 580px;
}

.welcome-container {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.radar-scan {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.secure-icon-glow {
    width: 56px;
    height: 56px;
    z-index: 10;
    color: var(--accent-purple);
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
}

.radar-ring {
    position: absolute;
    border: 1.5px solid rgba(14, 165, 233, 0.15);
    border-radius: 50%;
    animation: ripple 3s infinite linear;
}

.ring1 { width: 80px; height: 80px; animation-delay: 0s; }
.ring2 { width: 120px; height: 120px; animation-delay: 1s; }
.ring3 { width: 160px; height: 160px; animation-delay: 2s; }

@keyframes ripple {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
        border-color: rgba(99, 102, 241, 0.01);
    }
}

.welcome-container h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.welcome-container p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--accent-purple-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger-link {
    background: transparent;
    color: var(--color-critical);
    font-size: 0.85rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.btn-danger-link:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   WORKSPACE - COMPARISON VIEWPORT
   ========================================================================== */
.analysis-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.workspace-comparisons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .workspace-comparisons {
        grid-template-columns: 1fr;
    }
}

.image-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding: 1rem;
}

.card-indicator {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.red-glow {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--color-critical);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.green-glow {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--color-clean);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #040408;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-display {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Face blur canvas workspace crosshair cursor */
.blur-target-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: crosshair;
}

.score-card-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.compact-score-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.text-red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-critical);
}

.text-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-clean);
}

.file-meta-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 12, 0.85);
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.05);
    border-top: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   ANALYTICS CARD & GAUGES
   ========================================================================== */
.analytics-card {
    padding: 2rem;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.analytics-header .section-title {
    margin-bottom: 0;
}

.text-cyan {
    color: var(--accent-cyan);
}

.score-delta {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-clean);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
}

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

/* SVG Gauge Panels */
.gauge-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-glass);
}

.gauge-comparison {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    justify-content: space-around;
}

.gauge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.svg-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.score-svg {
    width: 100%;
    height: 100%;
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
}

.ring-val {
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-red { stroke: var(--color-critical); filter: drop-shadow(0 0 4px var(--color-critical-glow)); }
.score-green { stroke: var(--color-clean); filter: drop-shadow(0 0 4px var(--color-clean-glow)); }

.gauge-label-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.gauge-score-num {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-sans);
}

.gauge-sub {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

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

.gauge-arrow {
    width: 24px;
    height: 24px;
}

/* Accordion Metadata Lists */
.metadata-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-fast);
}

.accordion-item.active {
    border-color: rgba(255, 255, 255, 0.15);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.25rem;
    cursor: pointer;
    user-select: none;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cat-icon {
    width: 16px;
    height: 16px;
}

.item-alert {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
}

.badge-red { background: rgba(239, 68, 68, 0.15); color: var(--color-critical); }
.badge-yellow { background: rgba(245, 158, 11, 0.15); color: var(--color-moderate); }
.badge-orange { background: rgba(249, 115, 22, 0.15); color: var(--color-high); }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-green { background: rgba(16, 185, 129, 0.15); color: var(--color-clean); }

.accordion-content {
    padding: 0 1.25rem 1rem 1.25rem;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.15);
}

.accordion-item.active .accordion-content {
    display: block;
}

/* Tag Pill Layout for EXIF values */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 0.75rem;
}

.meta-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    display: flex;
    gap: 6px;
}

.meta-tag span:first-child {
    color: var(--text-secondary);
}

.meta-tag span:last-child {
    font-weight: 600;
    color: var(--accent-cyan);
}

/* Action Footer controls */
.action-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 480px) {
    .action-footer {
        flex-direction: column-reverse;
    }
    .action-footer button {
        width: 100%;
    }
}

/* ==========================================================================
   PROCESSED LIBRARY / HISTORY GALLERY
   ========================================================================== */
.gallery-section {
    padding: 2rem;
    margin-top: 1rem;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.title-with-desc h2 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-with-desc p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.gallery-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    color: var(--text-secondary);
}

.gallery-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    gap: 1rem;
    color: var(--text-muted);
}

.empty-icon {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.gallery-empty-state p {
    font-size: 0.9rem;
}

/* Gallery Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-fast);
}

.gallery-item:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.gallery-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    background: #040408;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-score-float {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.gallery-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-filename {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.gallery-size {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.gallery-actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    margin-top: 4px;
}

.btn-icon-link {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    border-radius: 4px;
}

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

.btn-icon-link.text-red:hover {
    color: var(--color-critical);
    background: rgba(239, 68, 68, 0.1);
}

.btn-icon-link.text-cyan:hover {
    color: var(--accent-cyan);
    background: rgba(14, 165, 233, 0.1);
}

/* ==========================================================================
   APP FOOTER
   ========================================================================== */
.app-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-glass);
}

/* ==========================================================================
   SEO EDUCATIONAL & FAQ SECTION
   ========================================================================== */
.seo-info-section {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1rem;
}

.seo-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.seo-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(14, 165, 233, 0.3);
    margin-bottom: 12px;
}

.seo-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.seo-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.75rem;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    border-color: var(--border-glass-focus);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pillar-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent-cyan);
}

.pillar-icon-box svg {
    width: 22px;
    height: 22px;
}

.pillar-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Styles */
.faq-container {
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
}

.faq-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.25rem;
}

.faq-q {
    font-size: 0.98rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.faq-a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0d1527;
    border: 1px solid var(--accent-cyan);
    color: #f0fdf4;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-cyan-glow);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-icon {
    width: 18px;
    height: 18px;
    color: var(--color-clean);
}

/* ==========================================================================
   MOBILE APPS ANNOUNCEMENT BANNER
   ========================================================================== */
.apps-coming-soon-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.banner-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-sparkle {
    font-size: 1.1rem;
}

.badge-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e0e7ff;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    padding: 3px 10px;
    border-radius: 999px;
}

.banner-body {
    flex: 1;
    min-width: 260px;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.banner-body strong {
    color: #ffffff;
}

.platform-chips {
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: default;
    transition: var(--transition-fast);
}

.platform-chip:hover {
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.2);
}

.chip-icon {
    width: 14px;
    height: 14px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.footer-apps-note {
    font-size: 0.78rem;
    color: var(--accent-cyan);
}

/* ==========================================================================
   FEEDBACK MODAL DIALOG
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 100%;
    max-width: 520px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.modal-icon-badge svg {
    width: 20px;
    height: 20px;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.category-pill {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.category-pill.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--accent-cyan);
    color: #e0f2fe;
}

.category-pill:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.form-textarea {
    width: 100%;
    background: rgba(10, 15, 26, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.85rem;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: var(--transition-fast);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #94a3b8;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.lock-icon {
    width: 14px;
    height: 14px;
    color: var(--color-clean);
    flex-shrink: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
