:root {
    /* Core Blues (Primary Backgrounds) */
    --navy: #002244;
    --oxford: #002147;
    --midnight: #191970;
    --sapphire: #082567;
    --prussian: #003153;
    --charcoal: #1f2328;

    /* Core Greens (Primary Accents) */
    --action-green: #4dff00;
    --forest: #228b22;
    --racing: #004225;
    --hunter: #355e3b;
    --sacramento: #043927;
    --jungle: #1a2421;

    /* UI Tokens */
    --vibe-color: #4dff00;
    --glass: rgba(0, 34, 68, 0.75);
    --glass-border: rgba(77, 255, 0, 0.15);
    --text-primary: rgba(77, 255, 0, 0.95);
    --text-secondary: rgba(77, 255, 0, 0.6);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);

    /* Dark mode native form controls */
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top right, var(--oxford), var(--navy), #000);
    min-height: 100vh;
    color: var(--text-primary);
    padding: 40px 20px;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Ambient Glows */
.container::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--action-green);
    filter: blur(150px);
    opacity: 0.1;
    z-index: -1;
}

header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s cubic-bezier(0.23, 1, 0.32, 1);
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, var(--action-green), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--action-green);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    opacity: 0.9;
}

/* ============================================
   MODE SWITCHER
   ============================================ */
.mode-switcher {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 100px;
    width: fit-content;
    margin: 0 auto 30px;
    border: 1px solid var(--glass-border);
}

.mode-btn {
    padding: 10px 25px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-btn.active {
    background: #4dff00;
    color: #002244 !important;
    box-shadow: 0 5px 15px rgba(77, 255, 0, 0.2);
}

.mode-btn.active i {
    color: #002244 !important;
}

/* ============================================
   MAIN CARD + GLASS
   ============================================ */
.main-card {
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(77, 255, 0, 0.05);
    overflow: hidden;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(1px)) {
    .main-card {
        background: rgba(0, 34, 68, 0.92);
    }
}

.upload-section {
    padding: 80px 40px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-bottom: 1px solid rgba(77, 255, 0, 0.1);
}

.upload-btn {
    display: inline-block;
    padding: 18px 48px;
    background: #4dff00;
    color: #002244 !important;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(77, 255, 0, 0.3);
    font-family: 'Outfit', sans-serif;
    border: none;
}

.upload-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 40px rgba(77, 255, 0, 0.5);
    background: var(--sapphire);
    color: var(--action-green) !important;
}

/* URL Import */
.url-import-row {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.url-import-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 34, 68, 0.5);
    border: 1px solid rgba(77, 255, 0, 0.15);
    border-radius: 100px;
    color: var(--action-green);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.url-import-input::placeholder {
    color: rgba(77, 255, 0, 0.35);
}

.url-import-input:focus {
    outline: none;
    border-color: var(--action-green);
    background: rgba(77, 255, 0, 0.08);
}

.url-load-btn {
    padding: 12px 24px;
    background: var(--sapphire);
    color: var(--action-green);
    border: 1px solid rgba(77, 255, 0, 0.2);
    border-radius: 100px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    white-space: nowrap;
}

.url-load-btn:hover {
    background: rgba(77, 255, 0, 0.1);
    border-color: var(--action-green);
}

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

.url-help-details {
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: left;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.url-help-details summary {
    cursor: pointer;
    color: var(--action-green);
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.url-help-details[open] summary::before {
    content: '▾';
}

.url-help-details summary::before {
    content: '▸';
}

.url-help-details p {
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(77, 255, 0, 0.05);
    border-left: 3px solid var(--action-green);
    border-radius: 6px;
    line-height: 1.6;
}

input[type='file'] {
    display: none;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
    display: none;
    padding: 30px;
    background: var(--charcoal);
    position: relative;
}

.video-section.active {
    display: block;
}

video {
    width: 100%;
    max-height: 500px;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(77, 255, 0, 0.15);
}

/* ============================================
   CONTROLS PANEL
   ============================================ */
.controls-panel {
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
}

.time-controls {
    margin-bottom: 40px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-display span span {
    color: var(--action-green);
    font-weight: 700;
}

.range-container {
    position: relative;
    height: 48px;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    border: 1px solid rgba(77, 255, 0, 0.1);
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(77, 255, 0, 0.15);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.range-selected {
    position: absolute;
    height: 4px;
    background: var(--action-green);
    box-shadow: 0 0 15px var(--action-green);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

input[type='range'] {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    top: 0;
    margin: 0;
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--action-green);
    border: 4px solid var(--navy);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

input[type='range']::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--vibe-color);
    box-shadow: 0 0 30px var(--action-green);
}

input[type='range']::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--action-green);
    border: 4px solid var(--navy);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

input[type='range']::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--vibe-color);
    box-shadow: 0 0 30px var(--action-green);
}

input[type='range']::-ms-thumb {
    width: 24px;
    height: 24px;
    background: var(--action-green);
    border: 4px solid var(--navy);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

input[type='range']::-ms-thumb:hover {
    background: var(--vibe-color);
}

input[type='range']::-webkit-slider-runnable-track {
    background: transparent;
}

input[type='range']::-moz-range-track {
    background: transparent;
}

input[type='range']::-ms-track {
    background: transparent;
    border-color: transparent;
    color: transparent;
}

/* ============================================
   SETTINGS GRID
   ============================================ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.setting-input {
    padding: 14px;
    background: rgba(0, 34, 68, 0.4);
    border: 1px solid rgba(77, 255, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--action-green);
    transition: var(--transition);
}

.setting-input:focus {
    outline: none;
    border-color: var(--action-green);
    background: rgba(77, 255, 0, 0.15);
    box-shadow: 0 0 20px rgba(77, 255, 0, 0.1);
}

/* ============================================
   SLIDESHOW GRID
   ============================================ */
.slideshow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

.img-preview {
    aspect-ratio: 1;
    background: rgba(0, 34, 68, 0.4);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
}

.img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-mode-section {
    display: none;
}

.image-mode-section.active {
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    margin-top: 80px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

footer a {
    color: var(--action-green);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

footer a:hover {
    opacity: 0.8;
    text-shadow: 0 0 10px var(--action-green);
}

[data-lucide] {
    stroke-width: 2px;
}

/* ============================================
   FEATURE TABS
   ============================================ */
.feature-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 100px;
    border: 1px solid rgba(77, 255, 0, 0.1);
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 80px;
}

.tab-btn.active {
    background: #4dff00;
    color: #002244 !important;
    box-shadow: 0 5px 15px rgba(77, 255, 0, 0.2);
}

.tab-btn.active i {
    color: #002244 !important;
}

.advanced-panel {
    display: none;
    margin-top: 30px;
    animation: fadeIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.advanced-panel.active {
    display: block;
}

/* ============================================
   FILTER GRID
   ============================================ */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

.filter-card {
    background: rgba(0, 34, 68, 0.4);
    border: 1px solid rgba(77, 255, 0, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    /* button reset */
    font-family: inherit;
    color: var(--text-primary);
    width: 100%;
}

.filter-card:hover {
    background: rgba(0, 34, 68, 0.6);
    transform: translateY(-2px);
}

.filter-card.active {
    border-color: var(--action-green);
    background: rgba(77, 255, 0, 0.05);
    box-shadow: inset 0 0 10px rgba(77, 255, 0, 0.1);
}

.filter-label {
    display: block;
    margin-top: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   SIZE PREDICTOR
   ============================================ */
.size-predictor {
    margin-top: 20px;
    padding: 15px;
    background: rgba(77, 255, 0, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--action-green);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.size-val {
    font-weight: 800;
    color: var(--action-green);
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.action-section {
    padding: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.btn {
    padding: 16px 40px;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin: 10px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.btn-primary {
    background: #4dff00;
    color: #002244 !important;
    box-shadow: 0 10px 30px rgba(77, 255, 0, 0.2);
}

.btn i {
    color: inherit !important;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(77, 255, 0, 0.4);
    background: var(--action-green);
    filter: brightness(1.1);
}

.btn-primary:disabled {
    opacity: 0.3;
    filter: grayscale(1);
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(0, 34, 68, 0.4);
    color: var(--action-green);
    border: 1px solid rgba(77, 255, 0, 0.15);
}

.btn-secondary:hover {
    background: rgba(77, 255, 0, 0.1);
    border-color: var(--action-green);
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-container {
    margin-top: 40px;
    display: none;
}

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

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 33, 71, 0.5);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--action-green);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px var(--action-green);
}

/* ============================================
   PREVIEW SECTION
   ============================================ */
.preview-section {
    display: none;
    padding: 50px 40px;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    border-top: 1px solid rgba(77, 255, 0, 0.1);
}

.preview-section.active {
    display: block;
    animation: fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.preview-image {
    max-width: 100%;
    border-radius: 20px;
    border: 2px solid var(--action-green);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

/* ============================================
   VIDEO INFO
   ============================================ */
.video-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--action-green);
    color: var(--navy);
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.trim-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 12px;
    font-weight: 500;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRO CROPPER UI
   ============================================ */
.video-container {
    position: relative;
    cursor: crosshair;
    overflow: hidden;
    border-radius: 20px;
}

.cropper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10;
    pointer-events: none;
}

.cropper-overlay.active {
    display: block;
}

.cropper-box {
    position: absolute;
    border: 2px solid var(--action-green);
    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, 0.5),
        0 0 20px var(--action-green);
    pointer-events: none;
}

.cropper-box::after {
    content: 'CROP AREA';
    position: absolute;
    top: -25px;
    left: 0;
    background: var(--action-green);
    color: var(--navy);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ============================================
   FRAME EDITOR
   ============================================ */
.frame-editor-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.frame-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.frame-strip-scroll {
    overflow-x: auto;
    padding-bottom: 10px;
    border: 1px solid rgba(77, 255, 0, 0.1);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
}

.frame-strip {
    display: flex;
    gap: 12px;
    min-height: 140px;
}

.frame-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(0, 34, 68, 0.4);
    border: 1px solid rgba(77, 255, 0, 0.1);
    border-radius: 10px;
    padding: 8px;
    transition: var(--transition);
}

.frame-card:hover {
    border-color: var(--action-green);
    background: rgba(77, 255, 0, 0.05);
}

.frame-thumb {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.frame-delay-input {
    width: 80px;
    padding: 6px 10px;
    background: rgba(0, 34, 68, 0.6);
    border: 1px solid rgba(77, 255, 0, 0.15);
    border-radius: 8px;
    color: var(--action-green);
    font-size: 0.8rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.frame-delay-input:focus {
    outline: none;
    border-color: var(--action-green);
}

.frame-delay-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.frame-global-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.frame-global-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.frame-global-input {
    width: 90px;
    padding: 8px 12px;
    background: rgba(0, 34, 68, 0.4);
    border: 1px solid rgba(77, 255, 0, 0.15);
    border-radius: 10px;
    color: var(--action-green);
    font-size: 0.9rem;
    text-align: center;
}

.frame-global-input:focus {
    outline: none;
    border-color: var(--action-green);
}

.frame-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================
   FOCUS-VISIBLE (Keyboard Navigation)
   ============================================ */
:focus-visible {
    outline: 2px solid var(--action-green);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
.filter-card:focus-visible,
.tab-btn:focus-visible,
.mode-btn:focus-visible {
    outline: 2px solid var(--action-green);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(77, 255, 0, 0.2);
}

input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--action-green);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        margin: 5px;
        width: 100%;
        justify-content: center;
    }
}

/* Sticker / Emoji Interactor Fix */
#stickerEmoji {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    position: relative;
    z-index: 20;
    cursor: text;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
    margin-bottom: 8px;
}

.quick-emoji-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px;
}

.emoji-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(77, 255, 0, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.emoji-btn:hover {
    background: rgba(77, 255, 0, 0.2);
    border-color: var(--action-green);
    transform: translateY(-2px);
}

.emoji-btn:active {
    transform: scale(0.95);
}

/* ============================================
   PREMIUM FOOTER
   ============================================ */
.app-footer {
    width: 100%;
    margin-top: 40px;
    padding: 30px 20px;
    background: rgba(0, 15, 30, 0.4);
    border-top: 1px solid rgba(75, 146, 219, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo-container {
    width: 280px;
    max-width: 100%;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo-container:hover {
    transform: scale(1.02);
}

.footer-logo-container img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links a:hover {
    color: var(--accent-glow);
    background: rgba(105, 190, 40, 0.1);
    border-color: rgba(105, 190, 40, 0.3);
    transform: translateY(-3px) scale(1.1);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(105, 190, 40, 0.2);
}

.footer-links i {
    width: 22px;
    height: 22px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-logo-container {
        width: 240px;
    }
}

/* ============================================
   PREMIUM HEADER
   ============================================ */
.main-header {
    margin-bottom: 30px;
}

.logo-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.header-logo {
    width: 90px;
    height: 90px;
    background-image: url('../icons/Sumo Sized Ginger.svg');
    background-size: 290px 90px;
    /* Scale based on banner aspect ratio */
    background-position: 12px center;
    /* Shifted right for perfect mascot centering */
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 30px rgba(105, 190, 40, 0.4));
    flex-shrink: 0;
    border-radius: 20px;
    background-color: #001428;
    /* Matches the SVG deep navy for a seamless badge look */
    border: 1px solid rgba(77, 255, 0, 0.1);
    /* Subtle glow border */
}

.brand-text {
    text-align: left;
}

.brand-text h1 {
    margin: 0;
    line-height: 1;
}

.brand-text .subtitle {
    margin-top: 4px;
}
