/* Larnaca Kids Explorer Map - Stylesheet */

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;
    --bg-sand: #fef3c7;
    --bg-sea: #e0f2fe;
    --text-dark: #1e293b;
    --card-bg: #ffffff;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Fredoka', 'Quicksand', 'Nunito', system-ui, sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 2.2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.app-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.app-subtitle {
    font-size: 0.8rem;
    color: #bae6fd;
    font-weight: 600;
}

.header-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 6px 0;
}

/* Structured Header Dropdown Navigation */
.header-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 6px 0;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.btn-nav-main {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 0px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: all 0.15s ease;
    user-select: none;
    color: #ffffff;
}

.btn-nav-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0px rgba(0, 0, 0, 0.35), 0 12px 20px rgba(0, 0, 0, 0.25);
    filter: brightness(1.08);
}

.btn-nav-main:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0px rgba(0, 0, 0, 0.4);
}

/* Category Colors */
.btn-highlight-today {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    border-color: #fde047;
    box-shadow: 0 5px 0 #991b1b, 0 0 15px rgba(239, 68, 68, 0.6);
    animation: pulse-glow-today 2s infinite;
}

@keyframes pulse-glow-today {
    0%, 100% { box-shadow: 0 5px 0 #991b1b, 0 0 10px rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 5px 0 #991b1b, 0 0 22px rgba(253, 224, 71, 0.8); }
}

.btn-purple {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border-color: #c084fc;
    box-shadow: 0 5px 0 #4c1d95;
}

.btn-indigo {
    background: linear-gradient(135deg, #6366f1, #4338ca);
    border-color: #a5b4fc;
    box-shadow: 0 5px 0 #312e81;
}

.btn-amber {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    border-color: #fde047;
    box-shadow: 0 5px 0 #78350f;
}

/* Dropdown Menu Container */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 290px;
    background: #0f172a;
    border: 2.5px solid #38bdf8;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 9999999;
}

.dropdown-menu.show {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
}

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

.dropdown-header {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #facc15;
    padding: 6px 12px 4px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

.dropdown-item {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-item * {
    pointer-events: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.dropdown-item.item-primary {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    border-color: #fde047;
    font-weight: 800;
}

.dropdown-item.item-vlog {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #ffffff;
}

.dropdown-item.item-new {
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff;
}

.btn-header {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 0px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.12s ease, filter 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Mouse Over / Hover 3D Lift Effect */
.btn-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0px rgba(0, 0, 0, 0.35), 0 14px 25px rgba(0, 0, 0, 0.25);
    filter: brightness(1.08);
}

/* Punch Down / Active Click 3D Press Effect */
.btn-header:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(0.95);
}

.btn-header.active {
    background: var(--accent-gold);
    color: #1e293b;
    border-color: var(--accent-gold);
}

.btn-header.btn-mission {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-color: #a78bfa;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
    animation: pulse-purple 2s infinite;
}

@keyframes pulse-purple {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
}

/* Main Layout */
.app-container {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Map Area */
.map-wrapper {
    flex: 1;
    position: relative;
    height: 100%;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Map Controls */
.map-controls-floating {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 500;
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.9);
    padding: 6px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
}

.floating-btn {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.82rem;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.floating-btn:hover {
    background: #f8fafc;
    border-color: var(--primary);
    transform: scale(1.02);
}

.floating-btn.active {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
}

/* Custom Marker Pins */
.custom-pin-wrapper {
    background: transparent;
    border: none;
}

.custom-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.custom-pin:hover {
    transform: scale(1.3) translateY(-6px);
    z-index: 1000 !important;
}

.pin-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
}

.pin-home {
    background: #fef08a;
    border-color: #eab308;
    animation: pulse-gold 2s infinite;
}

.pin-windmill {
    background: #ffedd5;
    border-color: #f97316;
}

.pin-castle {
    background: #f1f5f9;
    border-color: #475569;
}

.pin-mosque {
    background: #fef3c7;
    border-color: #d97706;
}

.pin-church {
    background: #ede9fe;
    border-color: #8b5cf6;
}

.pin-marina {
    background: #e0f2fe;
    border-color: #0284c7;
}

.pin-beach {
    background: #dcfce7;
    border-color: #10b981;
}

.pin-restaurant {
    background: #ffe4e6;
    border-color: #f43f5e;
}

.pin-nature {
    background: #fce7f3;
    border-color: #ec4899;
}

.pin-police {
    background: #dbeafe;
    border-color: #1e40af;
}

.pin-kiosk {
    background: #fef9c3;
    border-color: #ca8a04;
}

.pin-bakery {
    background: #fff7ed;
    border-color: #f97316;
}

.pin-hospital { background: #ffe4e6; border-color: #e11d48; }
.pin-barber { background: #fae8ff; border-color: #c026d3; }
.pin-bus { background: #ffedd5; border-color: #ea580c; }
.pin-fire { background: #fee2e2; border-color: #ef4444; }
.pin-border { background: #f3f4f6; border-color: #4b5563; }
.pin-tower { background: #e0e7ff; border-color: #4338ca; }
.pin-mountain { background: #ecfdf5; border-color: #059669; }
.pin-shop { background: #fef3c7; border-color: #b45309; }

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
    70% { box-shadow: 0 0 0 16px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

/* Sidebar Drawer */
.sidebar {
    width: 360px;
    background: white;
    border-left: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    z-index: 900;
    box-shadow: -5px 0 20px rgba(0,0,0,0.05);
}

.sidebar-header {
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quest-badge {
    background: #fef3c7;
    color: #b45309;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid #fde68a;
}

/* Progress bar */
.progress-box {
    margin-top: 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.progress-container {
    background: #e2e8f0;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6, #3b82f6, #10b981);
    background-size: 250% 100%;
    animation: gradient-shimmer 3s ease infinite;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gradient-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Modal Overlay & Glassmorphism */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    z-index: 99999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.25s ease-out;
}

.modal-overlay.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999999 !important;
}

.mission-modal {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    animation: slideUpScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(92vh - 80px);
}

@keyframes slideUpScale {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Landmark List */
.landmark-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.landmark-card {
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.landmark-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.2), 0 8px 10px -6px rgba(2, 132, 199, 0.1);
}

.landmark-card.active {
    border-color: var(--primary);
    background: #f0f9ff;
}

.landmark-card.completed {
    border-color: var(--accent-green);
    background: #f0fdf4;
}

.card-icon {
    font-size: 1.7rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
}

.card-tag {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.landmark-card.completed .card-check {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}

/* Detail Popup Drawer */
.info-drawer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 390px;
    background: white;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
    /* Keep the drawer controls above the fixed header when a photo/API alert
       returns focus to the open location drawer. */
    z-index: 1100;
    max-height: calc(100% - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    border: 3px solid #0284c7;
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from { transform: translateY(80px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

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

.drawer-icon {
    font-size: 2.2rem;
}

.drawer-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}

.drawer-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.btn-close {
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #dc2626;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-close:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.drawer-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
}

.drawer-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
}

.edu-plus-toggle {
    display: inline-flex;
    align-items: center;
    margin-top: 9px;
    padding: 6px 10px;
    border: 1.5px solid #0284c7;
    border-radius: 10px;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.edu-plus-toggle:hover,
.edu-plus-toggle:focus-visible {
    background: #bae6fd;
    outline: 3px solid rgba(14, 165, 233, 0.25);
    outline-offset: 2px;
}

.edu-extra-content {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    border-left: 4px solid #0ea5e9;
    border-radius: 8px;
    background: #f0f9ff;
    color: #164e63;
    font-size: 0.84rem;
    line-height: 1.55;
}

.edu-extra-content[hidden],
.edu-plus-toggle[hidden] {
    display: none;
}

.route-stats {
    background: #f0f9ff;
    border: 2px solid #bae6fd;
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-val {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0284c7;
}

.stat-lbl {
    font-size: 0.68rem;
    color: #0369a1;
    font-weight: 700;
    text-transform: uppercase;
}

.action-bar {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.btn-action {
    padding: 9px 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-speak {
    background: #8b5cf6;
    color: white;
}

.btn-speak:hover {
    background: #7c3aed;
}

.btn-route {
    background: #0284c7;
    color: white;
}

.btn-route:hover {
    background: #0369a1;
}

.btn-check-item {
    background: #10b981;
    color: white;
}

.btn-check-item:hover {
    background: #059669;
}

/* Compass widget */
.compass-box {
    position: absolute;
    bottom: 25px;
    right: 390px;
    z-index: 500;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
}

.compass-dial {
    font-size: 1.8rem;
    transition: transform 0.5s ease;
}

/* Modal Overlay Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mission-modal {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 760px;
    max-height: 92vh;
    overflow-y: auto;
    border: 4px solid #8b5cf6;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.mission-modal-header {
    background: linear-gradient(135deg, #4c1d95, #6d28d9);
    color: white;
    padding: 18px 24px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mission-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
}

.mission-modal-sub {
    font-size: 0.85rem;
    color: #ddd6fe;
}

.mission-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mission-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.mission-card.done {
    background: #f0fdf4;
    border-color: #10b981;
}

.mission-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.mission-icon {
    font-size: 2rem;
}

.mission-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #1e293b;
}

.mission-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.4;
}

/* Restaurant Dilemma & Scary Menu */
.restaurant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
}

.restaurant-card-opt {
    background: white;
    border: 2.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.restaurant-card-opt.scary {
    border-color: #f87171;
    background: #fff5f5;
}

.restaurant-card-opt.unlocked {
    border-color: #10b981;
    background: #f0fdf4;
}

.menu-highlight-box {
    background: #fee2e2;
    border: 1.5px dashed #ef4444;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.8rem;
    color: #991b1b;
    font-weight: 700;
}

.menu-highlight-item {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    padding: 3px 6px;
    margin-top: 4px;
    font-weight: 800;
}

/* School Quiz Box */
.school-quiz-box {
    background: #f0f9ff;
    border: 2px solid #7dd3fc;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.quiz-question {
    font-weight: 800;
    font-size: 0.9rem;
    color: #0369a1;
}

.quiz-input {
    padding: 8px 12px;
    border: 2px solid #bae6fd;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    width: 100%;
}

.photo-preview-box {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-thumb-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.photo-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #10b981;
}

.ai-feedback-badge {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.84rem;
    color: #166534;
    line-height: 1.4;
}

.btn-upload-photo {
    background: #8b5cf6;
    color: white;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-upload-photo:hover {
    background: #7c3aed;
}

/* Avatar Selector Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.avatar-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-option:hover {
    border-color: #8b5cf6;
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: #8b5cf6;
    background: #f3e8ff;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.avatar-emoji {
    font-size: 2.2rem;
}

.avatar-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin-top: 4px;
}

/* Greek Alphabet Puzzle */
.greek-box {
    background: #fefce8;
    border: 2px solid #fef08a;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.greek-letters-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.greek-card {
    background: white;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.greek-card:hover {
    transform: scale(1.1);
}

.greek-symbol {
    font-size: 2rem;
    font-weight: 900;
    color: #b45309;
}

.greek-sound {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0284c7;
}

/* Sea Orientation Diagram */
.sea-orientation-box {
    background: #f0f9ff;
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sea-img-wrapper {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #0284c7;
}

.sea-img {
    width: 100%;
    height: auto;
    display: block;
}

.horizon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.horizon-card {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.horizon-icon {
    font-size: 1.8rem;
}

.horizon-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: #0f172a;
}

.horizon-text {
    font-size: 0.78rem;
    color: #64748b;
}

/* Fitness device rows */
.fitness-guide-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(210px, .65fr);
    gap: 14px;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    border: 1.5px solid #7dd3fc;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.fitness-guide-card img {
    width: 100%;
    display: block;
    border-radius: 12px;
    border: 1px solid #93c5fd;
}

.fitness-guide-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #164e63;
    line-height: 1.45;
    font-size: .9rem;
}

.fitness-guide-copy b {
    color: #075985;
    font-size: 1rem;
}

.workout-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    background: #eff6ff;
    padding: 14px;
    border-radius: 14px;
    border: 1.5px solid #bfdbfe;
}

.fitness-device-row {
    background: white;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.fitness-device-row small {
    display: block;
    margin-top: 3px;
    color: #475569;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.35;
}

.fitness-timer-btn {
    border: 1.5px solid #38bdf8;
    background: #e0f2fe;
    color: #075985;
    border-radius: 9px;
    padding: 7px 9px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.fitness-timer-btn:active {
    transform: scale(.97);
}

@media (max-width: 680px) {
    .fitness-guide-card {
        grid-template-columns: 1fr;
    }

    .fitness-device-row {
        align-items: stretch;
    }

    .fitness-device-row .workout-item {
        flex-basis: 100%;
    }
}

.workout-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e3a8a;
    cursor: pointer;
    flex: 1;
}

.workout-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #0284c7;
}

/* Flying Buttress Box */
.buttress-box {
    background: #fffbeb;
    border: 2px solid #fde68a;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: #92400e;
    line-height: 1.5;
}

/* School Lab Styles */
.school-quiz-box {
    padding: 14px;
    border-radius: 14px;
    border: 2px solid #bae6fd;
    background: #f0f9ff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-school-opt {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-school-opt:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-1px);
}

.mission-card.done {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Touch & Micro-Interactions */
button, .landmark-card, .avatar-option, .horizon-card, .btn-school-opt {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

button:active, .btn-action:active, .btn-header:active, .btn-school-opt:active {
    transform: scale(0.96) !important;
}

:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

/* Confetti */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999999;
}

/* Responsive */
@media (max-width: 600px) {
    .app-header {
        padding: 10px 12px;
    }
    
    .brand-title {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Sunlight Mode for Beach Outdoor View */
body.sunlight-mode {
    background-color: #ffffff !important;
    color: #000000 !important;
}

body.sunlight-mode .app-header {
    background: #000000 !important;
    color: #ffffff !important;
    border-bottom: 4px solid #facc15 !important;
}

body.sunlight-mode .btn-header,
body.sunlight-mode .btn-action {
    border: 2.5px solid #000000 !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 0 #000000 !important;
}

body.sunlight-mode .mission-card,
body.sunlight-mode .mission-modal {
    border: 3px solid #000000 !important;
    box-shadow: 0 8px 0 #000000 !important;
}

/* ==========================================
   🎨 GRAPHIC MASTERPIECE EDITION (VERSIE 4.5)
   ========================================== */

/* 1. Gold Shimmer Animation */
@keyframes goldShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-gold {
    background: linear-gradient(90deg, #f59e0b 0%, #fef08a 50%, #f59e0b 100%);
    background-size: 200% 100%;
    animation: goldShimmer 3s infinite linear;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 2. Spring Physics Micro-Animations */
.btn-header, .btn-action, .mission-card, .avatar-option, .greek-card {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-header:hover, .btn-action:hover {
    transform: translateY(-2.5px) scale(1.03) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22) !important;
}

.btn-header:active, .btn-action:active {
    transform: translateY(1px) scale(0.97) !important;
}

/* 3. Pulsing Animated Wave Rings for Map Pins */
@keyframes pulseRing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 14px rgba(2, 132, 199, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.custom-pin {
    animation: pulseRing 2.2s infinite ease-in-out;
}

/* 4. Custom Stylized Gradient Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    border-radius: 10px;
    border: 2px solid #ffffff;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
}

/* 5. Modal Backdrop Ambient Radial Glow */
.modal-overlay {
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.25) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
}

@media (max-width: 850px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 14px;
    }
    .header-controls {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .btn-header {
        flex-shrink: 0;
    }
    .sidebar {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        max-width: 320px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .info-drawer {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    .compass-box {
        bottom: 180px;
        right: 15px;
    }
    .restaurant-grid {
        grid-template-columns: 1fr;
    }
}

/* Category Filter Tabs & Section Headers in Sidebar & Modals */
.category-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.cat-tab {
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
}
.cat-tab:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}
.cat-tab.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}
.category-header-title {
    font-size: 0.9rem;
    font-weight: 900;
    color: #0f172a;
    padding: 6px 10px;
    margin-top: 10px;
    margin-bottom: 6px;
    background: #f8fafc;
    border-left: 4px solid #0284c7;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cat-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
    margin-left: 4px;
}
.cat-tag-larnaca { background: #e0f2fe; color: #0369a1; }
.cat-tag-nicosia { background: #fef3c7; color: #b45309; }
.cat-tag-paphos { background: #fce7f3; color: #be185d; }

/* Mobile Accessibility & Touch Target Optimizations */
button, .btn-action, .dropdown-item, .category-tab {
    min-height: 40px;
    touch-action: manipulation;
}

/* Ensure Leaflet controls stay above map layers */
.leaflet-top, .leaflet-bottom {
    z-index: 999 !important;
}

/* Smooth modal transitions */
.modal-overlay {
    transition: opacity 0.25s ease-in-out;
}

/* Mats' Infotheek */
.infographic-modal-shell {
    width: min(1120px, 96vw);
    max-width: 1120px;
    max-height: 94vh;
    overflow: hidden;
    border: 3px solid #10b981;
    box-shadow: 0 24px 70px rgba(6, 78, 59, 0.35);
}
.infographic-library-header {
    background: linear-gradient(135deg, #064e3b, #059669 58%, #0ea5e9);
    color: #fff;
}
.infographic-topic-header {
    background: linear-gradient(135deg, #0f172a, #0369a1 58%, #059669);
    color: #fff;
}
.infographic-library-body,
.infographic-topic-body {
    background: linear-gradient(180deg, #f0fdf4, #f8fafc 45%, #eff6ff);
    overflow-y: auto;
}
.infographic-library-intro {
    max-width: 820px;
    margin: 0 auto 18px;
    padding: 15px 18px;
    border-left: 5px solid #10b981;
    border-radius: 12px;
    background: #fff;
    color: #164e63;
    line-height: 1.55;
}
.infographic-library-intro p { margin: 5px 0 0; }
.infographic-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.infographic-library-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    border: 2px solid var(--info-accent);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.infographic-library-card:hover,
.infographic-library-card:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2); }
.infographic-library-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e2e8f0; }
.infographic-library-card-copy { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; color: #0f172a; }
.infographic-library-card-copy b { font-size: 1rem; }
.infographic-library-card-copy small { color: #475569; line-height: 1.35; }
.infographic-library-card-copy em { color: var(--info-accent); font-style: normal; font-weight: 800; font-size: 0.82rem; }
.infographic-level-switch { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.infographic-level-switch button { min-height: 42px; padding: 8px 14px; border: 2px solid #bae6fd; border-radius: 999px; background: #fff; color: #075985; font-weight: 850; cursor: pointer; }
.infographic-level-switch button.active { background: #0369a1; border-color: #0369a1; color: #fff; box-shadow: 0 4px 12px rgba(3,105,161,.22); }
.infographic-topic-image { position: relative; padding: 10px; border: 3px solid #0ea5e9; border-radius: 16px; background: #0f172a; text-align: center; }
.infographic-topic-image img { display: block; width: 100%; max-height: 570px; object-fit: contain; border-radius: 10px; }
.infographic-topic-image button { position: absolute; right: 18px; bottom: 18px; min-height: 40px; padding: 7px 12px; border: 1px solid #bae6fd; border-radius: 18px; background: rgba(15,23,42,0.88); color: #e0f2fe; font-weight: 800; cursor: pointer; }
.infographic-supporting-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 12px; }
.infographic-supporting-images figure { position: relative; margin: 0; padding: 7px; border-radius: 12px; background: #0f172a; }
.infographic-supporting-images img { display: block; width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; }
.infographic-supporting-images button { display: block; width: 100%; margin-top: 6px; min-height: 36px; border: 1px solid #bae6fd; border-radius: 12px; background: #164e63; color: #e0f2fe; font-weight: 800; cursor: pointer; }
.infographic-topic-intro { margin-top: 16px; padding: 16px 18px; border: 2px solid #38bdf8; border-radius: 14px; background: #fff; color: #0f172a; line-height: 1.55; }
.infographic-topic-intro p { margin: 6px 0 10px; }
.infographic-explanation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 13px; margin-top: 16px; }
.infographic-explanation-grid article { padding: 14px 16px; border-left: 5px solid #10b981; border-radius: 10px; background: rgba(255,255,255,0.94); box-shadow: 0 3px 10px rgba(15,23,42,0.06); }
.infographic-explanation-grid h3 { margin: 0 0 7px; color: #075985; font-size: 1rem; }
.infographic-explanation-grid p { margin: 0; color: #1e293b; line-height: 1.58; font-size: 0.93rem; }
.infographic-quiz { margin-top: 20px; padding: 18px; border: 3px solid #7c3aed; border-radius: 16px; background: #faf5ff; }
.infographic-quiz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.infographic-quiz h3 { margin: 0; color: #581c87; }
.infographic-quiz-head p { margin: 5px 0 0; color: #6b21a8; line-height: 1.4; }
.infographic-quiz-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.infographic-quiz-modes button, .infographic-reveal { min-height: 40px; padding: 7px 10px; border: 1.5px solid #c4b5fd; border-radius: 10px; background: #fff; color: #6d28d9; font-weight: 800; cursor: pointer; }
.infographic-quiz-modes button.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.infographic-question-list { display: grid; gap: 12px; margin-top: 14px; }
.infographic-question { padding: 13px; border: 1.5px solid #ddd6fe; border-radius: 11px; background: #fff; color: #312e81; }
.infographic-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 7px; margin-top: 9px; }
.infographic-options button { min-height: 44px; padding: 10px 14px; border: 2px solid #cbd5e1; border-radius: 12px; background: #f8fafc; color: #334155; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; font-weight: 700; transition: all 0.15s ease; }
.infographic-options button:hover, .infographic-options button:focus-visible { border-color: #8b5cf6; background: #f5f3ff; }
.infographic-options button.correct-choice { border-color: #10b981 !important; background: #dcfce7 !important; color: #065f46 !important; font-weight: 900 !important; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25); }
.infographic-options button.wrong-choice { border-color: #ef4444 !important; background: #fef2f2 !important; color: #991b1b !important; font-weight: 800 !important; }
.infographic-feedback { margin-top: 10px; padding: 10px 14px; border-radius: 10px; line-height: 1.5; font-size: 0.9rem; font-weight: 700; }
.infographic-feedback.good { background: #dcfce7; color: #166534; border: 1.5px solid #86efac; }
.infographic-feedback.try { background: #fef2f2; color: #991b1b; border: 1.5px solid #fca5a5; }
.infographic-reveal { margin-top: 9px; }
.infographic-quiz-summary { margin-top: 14px; color: #581c87; font-weight: 800; }
.infographic-round-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; padding: 10px; border-radius: 12px; background: #ede9fe; }
.infographic-round-tabs button { min-width: 46px; min-height: 40px; border: 1.5px solid #c4b5fd; border-radius: 10px; background: #fff; color: #5b21b6; font-weight: 850; cursor: pointer; }
.infographic-round-tabs button.active { background: #6d28d9; border-color: #6d28d9; color: #fff; }
.infographic-round-tabs button:disabled { opacity: .45; cursor: not-allowed; }
.infographic-next-round { display: block; margin: 14px auto 0; min-height: 44px; padding: 9px 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg,#7c3aed,#4f46e5); color: #fff; font-weight: 850; cursor: pointer; }
.flemish-level-panel { margin-bottom: 14px; padding: 12px; border: 2px solid #c4b5fd; border-radius: 14px; background: linear-gradient(135deg,#faf5ff,#eff6ff); }
.flemish-level-heading { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: #4c1d95; font-size: .9rem; }
.flemish-level-heading span { font-weight: 750; color: #64748b; }
.flemish-level-buttons { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.flemish-level-button { min-height: 40px; min-width: 48px; padding: 7px 10px; border: 1.5px solid #c4b5fd; border-radius: 10px; background: #fff; color: #5b21b6; font-weight: 850; cursor: pointer; }
.flemish-level-button.active { background: #6d28d9; border-color: #6d28d9; color: #fff; box-shadow: 0 3px 10px rgba(109,40,217,.22); }
.flemish-level-button:disabled { opacity: .4; cursor: not-allowed; }
.brain-token-status { margin-top: 9px; padding: 7px 10px; border-radius: 9px; background: #fff; color: #6d28d9; font-weight: 850; font-size: .84rem; }
.infographic-source-note { margin-top: 16px; padding: 10px 12px; border-radius: 9px; background: #e2e8f0; color: #475569; font-size: 0.78rem; line-height: 1.45; }
.infographic-footer-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; padding: 12px 18px 16px; background: #fff; border-top: 1px solid #cbd5e1; }
@media (max-width: 600px) {
    .infographic-modal-shell { width: 98vw; max-height: 96vh; border-radius: 14px; }
    .infographic-topic-image button { position: static; margin-top: 9px; width: 100%; }
    .infographic-explanation-grid { grid-template-columns: 1fr; }
    .infographic-options { grid-template-columns: 1fr; }
    .infographic-footer-actions .btn-action { width: 100%; }
}
