@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Grotesk:wght@400;600&display=swap');

:root {
    --bg: #050611;
    --panel: #0f1224;
    --accent: #44ffb2;
    --accent-2: #7af0ff;
    --text: #f6fbff;
    --muted: #c7d5f2;
    --warning: #ffc857;
    --danger: #ff6b6b;
    --grid: rgba(255, 255, 255, 0.08);
    --route-color: #ff3b30;
    
    /* Responsive UI variables (005-ui-overhaul) */
    --touch-target-min: 44px;
    --spacing-base: 16px;
    --spacing-compact: 12px;
}

* { box-sizing: border-box; }

/* Utility Classes */
.hidden {
    display: none !important;
}

body {
    margin: 0;
    font-family: 'Press Start 2P', 'Space Grotesk', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.6;
    font-size: 13px;
    background: radial-gradient(circle at 20% 20%, rgba(122, 240, 255, 0.12), transparent 25%),
                radial-gradient(circle at 80% 10%, rgba(68, 255, 178, 0.12), transparent 22%),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(68, 255, 178, 0.16), rgba(122, 240, 255, 0.12));
    border: 1px solid rgba(122, 240, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.eyebrow {
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--accent-2);
    margin-bottom: 8px;
}

.banner h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.subtitle {
    margin: 0;
    color: var(--muted);
}

.metric {
    background: rgba(3, 6, 18, 0.8);
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid rgba(122, 240, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(68, 255, 178, 0.12), 0 3px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.metric-label { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.metric-value { font-family: 'Press Start 2P', cursive; font-size: 10px; margin-top: 2px; line-height: 1.3; }

.rank-card {
    padding: 3px 6px;
    border: 1px solid rgba(255, 213, 79, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 213, 79, 0.18), 0 2px 8px rgba(255, 138, 101, 0.15);
    background: radial-gradient(circle at 20% 20%, rgba(255, 213, 79, 0.15), transparent 55%),
                rgba(8, 8, 18, 0.7);
}

.rank-card--active {
    border-color: rgba(122, 240, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(122, 240, 255, 0.4), 0 4px 14px rgba(122, 240, 255, 0.15);
}


.rank-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 2px 0 1px;
    line-height: 1.3;
}

.rank-range {
    font-size: 8px;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 1px;
}

.rank-name.is-placeholder,
.rank-range.is-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.rank-range--hidden {
    display: none;
}

.stats-deck {
    margin: 10px auto;
    padding: 4px 6px;
    border-radius: 10px;
    border: 1px solid rgba(122, 240, 255, 0.22);
    background:
        radial-gradient(circle at 20% 20%, rgba(68, 255, 178, 0.16), transparent 60%),
        radial-gradient(circle at 80% 10%, rgba(122, 240, 255, 0.12), transparent 65%),
        rgba(2, 6, 18, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 4px;
    max-width: 480px;
}

.stats-deck .metric {
    flex: 1 1 auto;
    min-width: 80px;
    padding: 3px 6px;
    background: rgba(3, 6, 18, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(122, 240, 255, 0.15);
}

.stats-deck .metric-label {
    font-size: 7px;
    letter-spacing: 0.06em;
}

.stats-deck .metric-value {
    font-size: 10px;
    margin-top: 2px;
    line-height: 1.2;
}

.stats-deck .rank-card {
    padding: 3px 6px;
}

.stats-deck .rank-name {
    font-size: 9px;
    margin: 2px 0 1px;
    line-height: 1.2;
}

.stats-deck .rank-range {
    font-size: 7px;
    margin-top: 1px;
}

.layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    margin-top: 24px;
}

.inputs {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.map-selector {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-selector-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.map-selector select {
    flex: 1;
    background: rgba(0,0,0,0.35);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 15px;
}

.ghost.small {
    padding: 10px 12px;
    font-size: 13px;
}

.panel {
    background: var(--panel);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    padding: 18px;
}

.inputs textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.35);
    color: var(--text);
    border-radius: 10px;
    padding: 12px;
    font-family: 'Space Grotesk', monospace;
    resize: vertical;
}

.inputs .hint {
    color: var(--muted);
    margin-top: 0;
}
.inputs .hint.compact { margin-bottom: 6px; }

.file-label {
    display: block;
    margin-top: 12px;
    padding: 12px 14px;
    min-height: var(--touch-target-min, 44px);
    border: 1px dashed rgba(122, 240, 255, 0.35);
    border-radius: 10px;
    color: var(--accent-2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: rgba(122, 240, 255, 0.05);
}

.file-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.file-label.compact { margin: 0; }

.ai-hero-card {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(122, 240, 255, 0.25);
    background: linear-gradient(135deg, rgba(5, 8, 26, 0.95), rgba(9, 14, 32, 0.9));
    box-shadow: inset 0 0 0 1px rgba(68, 255, 178, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    max-width: 420px;
}

.hero-upload-card {
    margin-top: 6px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(122, 240, 255, 0.25);
    background: linear-gradient(135deg, rgba(4, 10, 28, 0.85), rgba(9, 16, 34, 0.9));
    box-shadow: inset 0 0 0 1px rgba(68, 255, 178, 0.08);
    max-width: 420px;
}

.hero-upload-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--text);
}

.hero-upload-card__hint {
    margin-bottom: 12px;
}

.hero-upload-card__file {
    margin: 0;
    background: rgba(122, 240, 255, 0.08);
}

.hero-preview-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.hero-orientation-controls {
    display: grid;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.hero-orientation-toggle {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-orientation-toggle button {
    flex: 1 1 150px;
    justify-content: center;
}

.hero-orientation-toggle .is-selected {
    border-color: rgba(122, 240, 255, 0.7);
    box-shadow: 0 0 0 1px rgba(122, 240, 255, 0.35);
}

.hero-orientation-hint {
    margin: 6px 0 0;
}

.hero-preview-tile,
.hero-flight-preview {
    border-radius: 12px;
    border: 1px solid rgba(122, 240, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(68, 255, 178, 0.06);
}

.hero-preview-label {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.hero-preview-stage {
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px dashed rgba(122, 240, 255, 0.25);
    padding: 10px;
    background: radial-gradient(circle at 30% 30%, rgba(122, 240, 255, 0.04), transparent 35%), #060816;
    min-height: 140px;
}

.hero-preview-stage img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    image-rendering: auto;
}

.hero-flight-preview__stage {
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px dashed rgba(122, 240, 255, 0.25);
    background: radial-gradient(circle at 40% 35%, rgba(68, 255, 178, 0.12), transparent 45%),
                linear-gradient(180deg, rgba(5, 8, 26, 0.95), rgba(8, 12, 28, 0.9));
    min-height: 100px;
    padding: 10px;
}

.hero-flight-preview__plane {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.hero-preview-stage img.is-flipped {
    transform: scaleX(-1);
}

#hero-flip-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.ai-hero-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-hero-card__status {
    margin: 4px 0 0;
    color: var(--accent-2);
    font-size: 13px;
}

.ai-hero-primary-actions {
    display: grid;
    gap: 6px;
    align-items: center;
    margin: 10px 0 6px;
}

.ai-hero-primary-actions .hint {
    margin: 0;
}

.ai-hero-card__body .ai-hero-primary-actions {
    margin: 0;
    align-self: stretch;
}

.ai-hero-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-hero-cropper {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(122, 240, 255, 0.25);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ai-hero-cropper canvas {
    width: 100%;
    border-radius: 10px;
    border: 1px dashed rgba(122, 240, 255, 0.25);
    background: radial-gradient(circle at 30% 30%, rgba(122, 240, 255, 0.04), transparent 35%), #070b1d;
    touch-action: none;
    user-select: none;
    cursor: grab;
}

.ai-hero-cropper__controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-hero-cropper__buttons {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.ai-hero-cropper__buttons button {
    flex: 1;
}

.ai-hero-preview {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(122, 240, 255, 0.25);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.ai-hero-preview__image {
    min-height: 260px;
    border-radius: 10px;
    border: 1px dashed rgba(122, 240, 255, 0.25);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 12px;
    color: var(--muted);
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 10px, transparent 10px, transparent 20px), #060816;
}

.ai-hero-preview__image img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 10px;
    image-rendering: pixelated;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.ai-hero-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(122, 240, 255, 0.35);
    border-top-color: var(--accent-2);
    animation: ai-spin 0.9s linear infinite;
    margin: 6px auto 0;
}

.ai-hero-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
}

.ai-hero-progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(122, 240, 255, 0.25);
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.ai-hero-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #44ffb2, #7af0ff, #ff8a65);
    background-size: 200% 100%;
    border-radius: inherit;
    transition: width 0.2s ease-out;
    animation: ai-progress-shimmer 2s ease-in-out infinite;
}

.ai-hero-progress-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: var(--accent-2);
    margin: 0;
    text-shadow: 0 0 10px rgba(122, 240, 255, 0.5);
}

@keyframes ai-progress-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ai-hero-hint {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: 8px 0 0;
}

.ai-hero-hint.error {
    color: var(--danger);
}

.ai-hero-fun-message {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin: 12px 0 0;
    padding: 8px 12px;
    background: rgba(68, 255, 178, 0.08);
    border-radius: 8px;
    border: 1px dashed rgba(68, 255, 178, 0.3);
    font-style: italic;
    transition: opacity 0.3s ease;
}

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

.ai-hero-preview__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.cta-use-hero {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #4caf50, #6dd66d);
    border: none;
    color: #04101c;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(77, 204, 120, 0.35);
}

.cta-use-hero:disabled {
    opacity: 0.6;
    box-shadow: none;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.export-progress {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(122, 240, 255, 0.25);
    border-radius: 12px;
    background: rgba(4, 8, 22, 0.7);
    box-shadow: inset 0 0 0 1px rgba(68, 255, 178, 0.08);
}

.export-progress.active {
    display: block;
}

.export-progress__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    color: var(--muted);
    gap: 12px;
}

.export-progress__header span:first-child {
    font-weight: 600;
    color: var(--text);
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar__fill {
    position: absolute;
    inset: 0;
    width: 0;
    background: linear-gradient(90deg, #44ffb2, #ff8a65);
    border-radius: inherit;
    transition: width 0.2s ease;
}

.export-progress__log {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    max-height: 132px;
    overflow-y: auto;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.export-progress__log li {
    display: flex;
    gap: 8px;
    align-items: center;
}

.export-progress__log .log-time {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    min-width: 78px;
}

/* Video Download Panel */
.video-download-panel {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(68, 255, 178, 0.35);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(4, 12, 28, 0.95), rgba(8, 18, 36, 0.9));
    box-shadow: 0 4px 16px rgba(68, 255, 178, 0.12), inset 0 0 0 1px rgba(68, 255, 178, 0.1);
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.video-download-panel.active {
    display: block;
    animation: slideInDown 0.3s ease-out;
}

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

.video-download-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.video-download-panel__header h4 {
    margin: 0;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

/* New unified download panel content */
.video-download-panel__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-download-previews {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
}

.video-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, rgba(122, 240, 255, 0.08), transparent 45%), #050812;
    border: 1px solid rgba(122, 240, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-preview-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.video-preview-badge {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--accent-2);
    border-radius: 3px;
}

#video-card-main .video-preview-badge {
    color: var(--accent);
}

#video-card-closeup .video-preview-badge {
    color: #ff8a65;
}

#video-card-closeup-4x5 .video-preview-badge {
    color: #e040fb;
}

.video-download-panel__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(122, 240, 255, 0.2);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card--compact {
    align-items: center;
    text-align: center;
}

.video-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(68, 255, 178, 0.15);
}

.video-card__preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 30% 30%, rgba(122, 240, 255, 0.08), transparent 45%), #050812;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 70px;
    max-height: 70px;
}

.video-card__preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.video-card__badge {
    position: absolute;
    top: 3px;
    right: 3px;
    padding: 2px 4px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, rgba(68, 255, 178, 0.9), rgba(122, 240, 255, 0.9));
    color: #021016;
    border-radius: 3px;
}

#video-card-closeup .video-card__badge {
    background: linear-gradient(135deg, rgba(255, 138, 101, 0.9), rgba(255, 213, 79, 0.9));
}

#video-card-closeup-4x5 .video-card__badge {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.9), rgba(233, 30, 99, 0.9));
}

.video-card--compact .video-card__preview {
    aspect-ratio: 1 / 1;
}

.video-card--compact button {
    font-size: 10px;
    padding: 4px 8px;
    width: 100%;
}

.video-card__buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
}

.video-card__button-group {
    width: 100%;
    display: flex;
}

.video-card__button-group--share {
    flex-direction: column;
}

.video-card__buttons button {
    flex: 1 1 auto;
    padding: 7px 10px;
    font-size: 11px;
    border-radius: 8px;
}

.video-card__buttons button[data-download-type="pc"] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(122, 240, 255, 0.3);
    color: #eaf7ff;
}
    aspect-ratio: 9 / 14;
}

.video-card__info {
    display: none;
}

.video-card__title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

.video-card__desc {
    font-size: 9px;
    color: var(--muted);
}

.video-card button.primary.small {
    padding: 6px 10px;
    font-size: 11px;
    width: 100%;
}

button {
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

button:active { transform: translateY(1px); }

button.primary {
    background: linear-gradient(135deg, #44ffb2, #7af0ff);
    color: #021016;
    box-shadow: 0 8px 25px rgba(68, 255, 178, 0.35);
}

button.success, .success {
    background: linear-gradient(135deg, #6bdc7a, #3ccf5f);
    color: #04101c;
    border: none;
    box-shadow: 0 10px 24px rgba(76, 204, 117, 0.45);
    font-weight: 800;
}

button.ghost {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(122, 240, 255, 0.3);
    color: var(--text);
}

.errors { margin-top: 14px; color: var(--warning); font-size: 14px; line-height: 1.4; }
.errors p { margin: 6px 0; }

.legend { margin-top: 12px; color: var(--muted); font-size: 13px; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend .dot { color: var(--accent); }
.legend .line { width: 28px; height: 2px; background: linear-gradient(90deg, var(--route-color), var(--route-color)); display: inline-block; }

.advanced-panel {
    margin-top: 20px;
    border-radius: 14px;
    border: 1px solid rgba(122, 240, 255, 0.25);
    background: linear-gradient(135deg, rgba(4, 8, 22, 0.9), rgba(8, 12, 28, 0.9));
    box-shadow: inset 0 0 0 1px rgba(68, 255, 178, 0.08);
    padding: 0 0 8px;
}

.advanced-panel summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--accent-2);
    list-style: none;
    padding: 12px 16px;
}

.advanced-panel summary::-webkit-details-marker {
    display: none;
}

.advanced-panel__body {
    padding: 0 16px 16px;
    margin-top: 6px;
}

.canvas-panel {
    position: relative;
}

.canvas-wrapper {
    background: radial-gradient(circle at 40% 35%, rgba(68, 255, 178, 0.12), transparent 45%),
                radial-gradient(circle at 70% 60%, rgba(122, 240, 255, 0.12), transparent 50%),
                #050812;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    position: relative;
}

.map-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid rgba(122, 240, 255, 0.6);
    background: rgba(5, 8, 18, 0.75);
    color: #7af0ff;
    font-size: 32px;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.map-play-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

.map-play-btn:hover {
    transform: scale(1.05);
    border-color: #7af0ff;
    background: rgba(5, 8, 18, 0.9);
}

.map-play-btn:active {
    transform: scale(0.97);
}

.post-preview-actions {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(122, 240, 255, 0.18);
    background: rgba(8, 12, 24, 0.75);
    display: grid;
    gap: 8px;
}

.render-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.render-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    color: var(--muted);
}

.render-option select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #1f2233;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    min-width: 180px;
}

.canvas-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

#worldCanvas {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

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

.mobile-post-preview {
    margin-top: 10px;
}

.status { color: var(--muted); font-size: 13px; }


.warning {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 200, 87, 0.4);
    background: rgba(255, 200, 87, 0.1);
    color: #ffe2a7;
}

.warning-title { margin: 0; font-weight: 700; }

@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .banner { flex-direction: column; }
    .page { padding: 16px; }
}

@media (max-width: 540px) {
    button { width: 100%; }
    .button-row { flex-direction: column; }
    .ai-hero-card__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.speed-label {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.speed-control input[type="range"] {
    flex: 1;
}

.control-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.color-label,
.slider-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.color-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.color-label input[type="color"] {
    width: 48px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.slider-control input[type="range"] {
    flex: 1;
}

.slider-control span {
    min-width: 56px;
    text-align: right;
    color: var(--text);
    font-weight: 600;
}

.line-thickness-preview {
    display: inline-block;
    width: 56px;
    height: 6px;
    background: var(--route-color, #ff3b30);
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

.toggle-control {
    position: relative;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-control input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-switch {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.toggle-control input:checked + .toggle-switch {
    background: linear-gradient(135deg, #ff8a65, #ffd54f);
}

.toggle-control input:checked + .toggle-switch::after {
    transform: translateX(22px);
}

.reference-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.reference-overlay.hidden {
    display: none;
}

.reference-panel {
    width: min(380px, 90vw);
    background: var(--panel);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    padding: 20px;
}

.reference-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.reference-status {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px;
    max-height: 200px;
    overflow-y: auto;
}

.reference-status li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
}

.reference-status li span {
    color: var(--muted);
}

.reference-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.icon-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text);
    border-radius: 50%;
    width: var(--touch-target-min, 44px);
    height: var(--touch-target-min, 44px);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tuning-panel {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(122, 240, 255, 0.24);
    padding: 10px 12px;
}

.tuning-panel summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--accent-2);
}

.tuning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.tuning-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}

.tuning-field input,
.tuning-field select {
    background: rgba(0,0,0,0.35);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    min-height: var(--touch-target-min, 44px);
}

/* ============================================================================
   Profile Page Styles
   ============================================================================ */

.profile-page .banner {
    margin-bottom: 24px;
}

.title-block-link {
    text-decoration: none;
    color: inherit;
}

.title-block-link:hover .title-block h1 {
    color: var(--accent);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--accent-2);
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover {
    border-color: var(--accent-2);
    background: rgba(122, 240, 255, 0.1);
}

.nav-link.active {
    background: rgba(122, 240, 255, 0.2);
    border-color: var(--accent-2);
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.profile-section {
    background: var(--panel);
    border: 1px solid rgba(122, 240, 255, 0.24);
    border-radius: 16px;
    padding: 24px;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--accent-2);
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

/* Account Info Card */
.account-info-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.info-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.info-value {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    font-weight: 600;
}

.consent-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--muted);
    margin: 0 0 12px 0;
}

.version-badge {
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    background: rgba(68, 255, 178, 0.2);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

.accepted-date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: var(--muted);
}

/* Video Grid */
.video-count-badge,
.hero-count-badge {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 16px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(122, 240, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

/* Video card header with date and badges */
.video-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(122, 240, 255, 0.1);
}

.video-card-header .video-card-date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-2);
}

.video-card-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.video-card-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, rgba(68, 255, 178, 0.1), rgba(122, 240, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-card-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.video-card-thumbnail img.video-card-hero {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(122, 240, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.video-card-thumbnail .no-thumbnail {
    font-size: 48px;
    opacity: 0.5;
}

/* Video delete button */
.video-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
    z-index: 5;
}

.video-card:hover .video-delete-btn {
    opacity: 1;
}

.video-delete-btn:hover {
    background: var(--danger);
    transform: scale(1.1);
}

.video-delete-btn .delete-icon {
    font-size: 14px;
    line-height: 1;
}

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
    pointer-events: none;
}

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

.toast-notification.success {
    background: linear-gradient(135deg, rgba(68, 255, 178, 0.95), rgba(68, 255, 178, 0.85));
    color: #050611;
    box-shadow: 0 4px 20px rgba(68, 255, 178, 0.4);
}

.video-card-content {
    padding: 12px 16px 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.flight-count-badge {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    background: rgba(68, 255, 178, 0.2);
    color: var(--accent);
    padding: 6px 10px;
    border-radius: 4px;
}

.video-card-date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: var(--muted);
}

.video-card-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 22px;
}

.video-card-status {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}

.video-card-status.processing {
    background: rgba(255, 200, 87, 0.2);
    color: var(--warning);
}

.video-card-status.expired {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger);
}

/* Deletion date badge (007-profile-presets) */
.video-deletion-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 200, 87, 0.15);
    color: var(--warning);
    white-space: nowrap;
}

/* Video card actions container (007-profile-presets) */
.video-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Video Edit button (007-profile-presets) */
.video-edit-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(122, 240, 255, 0.8), rgba(68, 255, 178, 0.8));
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.video-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 255, 178, 0.3);
    background: linear-gradient(135deg, rgba(122, 240, 255, 1), rgba(68, 255, 178, 1));
}

.video-edit-btn:active {
    transform: translateY(0);
}

/* Video download options */
.video-download-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-formats {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(122, 240, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.format-btn:hover {
    background: rgba(68, 255, 178, 0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.format-preview {
    background: linear-gradient(135deg, rgba(68, 255, 178, 0.3), rgba(122, 240, 255, 0.3));
    border: 1px solid rgba(122, 240, 255, 0.5);
    border-radius: 3px;
}

.format-preview.format-16-9 {
    width: 48px;
    height: 27px;
}

.format-preview.format-9-16 {
    width: 27px;
    height: 48px;
}

.format-preview.format-4-5 {
    width: 38px;
    height: 48px;
}

.format-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-2);
}

/* Keep old button styles for fallback */
.download-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.download-buttons .download-btn {
    flex: 1;
    min-width: 50px;
    padding: 8px 12px;
    font-size: 11px;
}

.download-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.download-btn:hover {
    opacity: 0.9;
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Share button row */
.video-share-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(122, 240, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-formats {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.share-format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(122, 240, 255, 0.25);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.share-format-btn:hover {
    background: rgba(122, 240, 255, 0.12);
    border-color: var(--accent-2);
    transform: translateY(-1px);
}

.share-format-btn .share-icon {
    font-size: 16px;
}

.share-format-btn .format-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-2);
}

/* Keep old single share button for backwards compatibility */
.share-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(122, 240, 255, 0.3);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: rgba(122, 240, 255, 0.15);
    border-color: var(--accent-2);
    transform: translateY(-1px);
}

.share-btn .share-icon {
    font-size: 16px;
}

.share-btn .share-text {
    letter-spacing: 0.3px;
}

/* Hero Gallery */
.hero-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.hero-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(122, 240, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.hero-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.hero-card-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(68, 255, 178, 0.1), rgba(122, 240, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-content {
    padding: 12px;
}

.hero-card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: var(--text);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-card-date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    color: var(--muted);
}

.hero-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.hero-card-actions button {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
    white-space: nowrap;
}

.hero-use-btn {
    background: rgba(68, 255, 178, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.hero-use-btn:hover {
    background: rgba(68, 255, 178, 0.35);
}

.hero-delete-btn {
    background: transparent;
    color: var(--danger);
    border: 1px solid transparent;
    opacity: 0.6;
    padding: 4px 6px;
}

.hero-delete-btn:hover {
    opacity: 1;
    border-color: var(--danger);
}

/* Empty States */
.empty-state {
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
    padding: 48px 24px;
    color: var(--muted);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    margin: 0 0 16px 0;
}

.primary-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.primary-btn:hover {
    opacity: 0.9;
}

/* Loading States */
.loading-placeholder {
    display: contents;
}

.skeleton-card {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 12px;
    height: 280px;
}

.skeleton-card.hero-skeleton {
    height: 200px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Load More Button */
.load-more-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 24px auto 0;
    padding: 14px 24px;
    background: transparent;
    color: var(--accent-2);
    border: 2px solid var(--accent-2);
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: rgba(122, 240, 255, 0.1);
}

/* Danger Zone */
.danger-zone-section {
    border-color: rgba(255, 107, 107, 0.4);
}

.danger-title {
    color: var(--danger);
}

.danger-zone-card {
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.danger-warning {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--muted);
    margin: 0 0 16px 0;
}

.danger-btn {
    padding: 12px 24px;
    background: transparent;
    color: var(--danger);
    border: 2px solid var(--danger);
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.danger-btn:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Delete Account Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--panel);
    border: 1px solid rgba(122, 240, 255, 0.24);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.danger-modal {
    border-color: rgba(255, 107, 107, 0.4);
}

.danger-modal h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--danger);
    margin: 0 0 16px 0;
}

.modal-warning {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--muted);
    margin: 0 0 16px 0;
}

.modal-instruction {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    margin: 0 0 12px 0;
}

.confirmation-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 24px;
}

.confirmation-input:focus {
    outline: none;
    border-color: var(--danger);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.secondary-btn {
    padding: 12px 24px;
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Recent Videos Section (for main page) */
.recent-videos-section {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(122, 240, 255, 0.2);
    padding: 24px;
    margin-top: 32px;
}

.video-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.video-card-mini {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(122, 240, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.video-card-mini .video-card-thumbnail {
    height: 100px;
}

.video-card-mini .video-card-content {
    padding: 10px;
}

.video-card-mini .video-card-title {
    font-size: 11px;
    margin-bottom: 6px;
}

.video-card-mini .download-btn {
    padding: 8px 12px;
    font-size: 8px;
}
