/* ===== BODY (index-spesifikt) ===== */
body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===== SITE HEADER ===== */
.site-header {
    height: 52px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #0f0c29 0%, #302b63 60%, #24243e 100%);
    border-bottom: 2px solid #ff00ff;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: 1.25rem;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(255,0,255,0.4);
}

.site-logo {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-program {
    position: relative;
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(255,0,255,0.5);
    border-radius: 4px;
    color: #ff00ff;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255,0,255,0.6);
    transition: all 0.2s;
}

.nav-btn:hover {
    background: rgba(255,0,255,0.12);
    border-color: #ff00ff;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10,5,20,0.98);
    border: 1px solid rgba(255,0,255,0.35);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 0.4rem;
    min-width: 220px;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.7);
}

.nav-program:hover .nav-dropdown,
.nav-program.open .nav-dropdown {
    display: flex;
}

.nav-program:hover .nav-btn,
.nav-program.open .nav-btn {
    background: rgba(255,0,255,0.12);
    border-color: #ff00ff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.nav-dropdown button {
    background: transparent;
    border: none;
    color: #d0d0d0;
    padding: 0.45rem 0.75rem;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.84rem;
    transition: background 0.15s;
}

.nav-dropdown button:hover {
    background: rgba(255,0,255,0.18);
    color: #ff00ff;
}

.nav-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0.2rem 0;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    background: linear-gradient(135deg, #00f5ff 0%, #0080ff 100%);
    color: #0a0a0a;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.4);
    border: 2px solid #00f5ff;
}

.file-input-label:hover {
    background: linear-gradient(135deg, #00ffff 0%, #00aaff 100%);
    box-shadow: 0 6px 20px rgba(0, 245, 255, 0.6);
    transform: translateY(-2px);
}

.btn {
    background: linear-gradient(135deg, #ff00ff 0%, #ff0080 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border: 2px solid #ff00ff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.4);
}

.btn:hover {
    background: linear-gradient(135deg, #ff00ff 0%, #ff00aa 100%);
    box-shadow: 0 6px 20px rgba(255, 0, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #302b63 0%, #24243e 100%);
    border-color: #00f5ff;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3d3768 0%, #2e2e4a 100%);
    box-shadow: 0 6px 20px rgba(0, 245, 255, 0.5);
}

/* ===== HEADER BUTTONS GRID ===== */
.header-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
    position: relative;
    z-index: 1;
}

.header-btns .btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
}

/* ===== SIDEBAR UPLOAD ===== */
.sidebar-upload {
    margin-top: 1rem;
    width: 100%;
}

.sidebar-upload .file-input-label {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* ===== MAIN LAYOUT ===== */
/* ===== MAIN AREA ===== */
.site-main {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#map {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: background-color 0.3s;
}

#map.light-background {
    background: #f8f8f8;
}

/* ===== LEFT PANEL ===== */
.panel-left {
    background: rgba(8,4,18,0.92);
    border: 1px solid rgba(255,0,255,0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.55);
}

.single-day-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    background: rgba(255,0,255,0.06);
}

.single-day-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #ff00ff;
    text-shadow: 0 0 8px rgba(255,0,255,0.45);
    flex: 1;
}

.single-day-stats {
    font-size: 0.72rem;
    color: #999;
    width: 100%;
    margin-top: 0.1rem;
}

.single-day-slots {
    padding: 0.7rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.slot-label {
    font-size: 0.67rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
    margin-bottom: 0.2rem;
}

.day-slot {
    border-radius: 5px;
    padding: 0.55rem 0.75rem;
}

.day-slot.empty {
    border: 1.5px dashed rgba(255,255,255,0.25);
    color: #aaa;
    font-size: 0.78rem;
    text-align: center;
    padding: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.day-slot.empty:hover {
    border-color: rgba(255,0,255,0.5);
    color: #ff00ff;
}

.day-slot.filled {
    background: rgba(255,255,255,0.04);
}

.slot-name {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.slot-stats {
    font-size: 0.7rem;
    color: #bbb;
}

/* Alle Dager */
.alle-day {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.alle-day:last-child { border-bottom: none; }

.alle-day-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.3rem;
}

.alle-day-title {
    font-weight: 700;
    font-size: 0.8rem;
    color: #ff00ff;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alle-day-stats {
    font-size: 0.68rem;
    color: #bbb;
    margin-bottom: 0.3rem;
}

.alle-day-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.day-slot-compact {
    border-radius: 4px;
    padding: 0.35rem 0.45rem;
}

.day-slot-compact.empty {
    border: 1px dashed rgba(255,255,255,0.22);
    color: #999;
    text-align: center;
    font-size: 0.7rem;
    padding: 0.5rem;
    cursor: pointer;
}
.day-slot-compact.empty:hover {
    border-color: rgba(255,0,255,0.5);
    color: #ff00ff;
}

.day-slot-compact.filled {
    background: rgba(255,255,255,0.04);
}

.day-slot-compact .slot-name {
    font-size: 0.69rem;
    color: #fff;
}

.day-slot-compact .slot-stats {
    font-size: 0.63rem;
    color: #bbb;
}

/* Small buttons */
.btn-sm {
    background: rgba(255,0,255,0.15);
    border: 1px solid rgba(255,0,255,0.4);
    border-radius: 4px;
    color: #ff00ff;
    padding: 0.18rem 0.45rem;
    font-size: 0.7rem;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-sm.btn-secondary {
    background: rgba(0,245,255,0.08);
    border-color: rgba(0,245,255,0.3);
    color: #00f5ff;
}

.btn-sm:hover { background: rgba(255,0,255,0.3); }
.btn-sm.btn-secondary:hover { background: rgba(0,245,255,0.2); }

/* ===== DAY INFO PANEL ===== */
@keyframes flipDown {
    0%   { transform: rotateX(-90deg); opacity: 0.5; }
    52%  { transform: rotateX(7deg);   opacity: 1;   }
    68%  { transform: rotateX(-3.5deg); opacity: 1;  }
    82%  { transform: rotateX(1.5deg);  opacity: 1;  }
    100% { transform: rotateX(0deg);    opacity: 1;  }
}
@keyframes flipUp {
    0%   { transform: rotateX(0deg);  opacity: 1; }
    100% { transform: rotateX(-90deg); opacity: 0; }
}

.panel-left-group {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 320px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    perspective: 700px;
    perspective-origin: top center;
}

.day-info-panel {
    background: rgba(245, 243, 255, 0.96);
    border: 1px solid rgba(180, 170, 220, 0.5);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 0.85rem 1rem 0.9rem;
    transform-origin: top center;
    transform: rotateX(-90deg);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 32px rgba(0,0,0,0.45);
    position: relative;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    padding: 0;
}
.day-info-panel.visible {
    visibility: visible;
    height: auto;
    overflow: visible;
    padding: 0.85rem 1rem 0.9rem;
    animation: flipDown 0.55s ease-out forwards;
    pointer-events: all;
}
.day-info-panel.hiding {
    display: block;
    animation: flipUp 0.28s ease-in forwards;
    pointer-events: none;
}

.day-info-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #888;
    font-size: 0.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}
.day-info-close:hover { color: #333; }

.day-info-inner { max-height: 55vh; overflow-y: auto; }
.day-info-emoji { font-size: 1.3rem; margin-bottom: 0.15rem; }
.day-info-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d1b6e;
    margin-bottom: 0.4rem;
}
.day-info-desc {
    font-size: 0.71rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 0.45rem;
}
.day-info-route-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #4466bb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.5rem;
    margin-bottom: 0.1rem;
}
.day-info-tip {
    font-size: 0.65rem;
    color: #c47000;
    border-top: 1px solid rgba(150,100,0,0.2);
    padding-top: 0.35rem;
}

/* ===== WEATHER STRIP ===== */
.weather-strip {
    position: absolute;
    top: 12px;
    left: 344px;
    right: 264px;
    z-index: 400;
    background: rgba(10,20,35,0.82);
    border: 1px solid rgba(100,150,200,0.22);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    align-items: center;
}
#weatherHours {
    display: flex;
    gap: 4px;
    padding: 5px 8px;
    min-height: 62px;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
#weatherHours::-webkit-scrollbar { display: none; }

/* ===== RIGHT PANEL CONTAINER ===== */
.panel-right-container {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 240px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== RIGHT PANEL ===== */
.panel-right {
    background: rgba(8,4,18,0.92);
    border: 1px solid rgba(0,245,255,0.3);
    border-radius: 8px;
    padding: 0.9rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* ===== UPLOAD PANEL ===== */
.panel-upload {
    background: rgba(220, 225, 240, 0.9);
    border: 2px dashed rgba(100, 110, 160, 0.5);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    text-align: center;
    color: #555;
    font-size: 0.7rem;
    line-height: 1.5;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}
.panel-upload:hover {
    background: rgba(230, 234, 248, 0.95);
    border-color: rgba(100, 110, 160, 0.8);
    color: #333;
}
.panel-upload .upload-icon { font-size: 1.1rem; display: block; margin-bottom: 2px; }
.panel-upload .upload-label { font-weight: 700; color: #333; font-size: 0.72rem; }

/* ===== UPLOAD TOAST ===== */
.upload-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: rgba(0,255,136,0.12);
    border: 1px solid #00ff88;
    color: #00ff88;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: 'Courier New', monospace;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.upload-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.right-brand .right-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ff00ff;
    text-shadow: 0 0 8px rgba(255,0,255,0.5);
    margin-bottom: 0.3rem;
    line-height: 1.35;
}

.right-brand .right-subtitle {
    font-size: 0.63rem;
    color: #aaa;
    line-height: 1.45;
}

.right-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.right-actions .btn {
    font-size: 0.76rem;
    padding: 0.38rem 0.65rem;
    width: 100%;
    text-align: left;
}

.right-divider {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0.1rem 0;
}


/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: all 0.8s ease-in-out;
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.splash-logo {
    max-width: 80%;
    width: 600px;
    height: auto;
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.8s ease-in-out;
}

.splash-progress {
    width: 400px;
    max-width: 80%;
    margin-top: 3rem;
}

.splash-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.splash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f5ff 0%, #ff00ff 50%, #ffaa00 100%);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.splash-text {
    color: #00f5ff;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* ===== ELEVATION PROFILE ===== */
.elevation-profile {
    position: fixed;
    bottom: 10px;
    right: 240px;
    width: 750px;
    height: 200px;
    background: rgba(20, 20, 40, 0.95);
    border: 2px solid #00f5ff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: none;
}

.elevation-profile.visible {
    display: block;
}

.elevation-profile-header {
    color: #00f5ff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elevation-profile-close {
    cursor: pointer;
    color: #ff0080;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 5px;
}

.elevation-profile-close:hover {
    color: #ff00ff;
}

.elevation-profile-canvas {
    width: 100%;
    height: 160px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    cursor: none;
}

.elevation-tooltip {
    position: fixed;
    background: rgba(0, 245, 255, 0.95);
    color: #0a0a0a;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10002;
}

.elevation-cyclist {
    position: fixed;
    width: 40px;
    height: 40px;
    background: rgba(0, 245, 255, 0.3);
    border: 2px solid #00f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    pointer-events: none;
    z-index: 10001;
    display: none;
    transform: scaleX(-1);
}

/* ===== MAP LAYER SELECTOR ===== */
.map-layer-selector {
    position: absolute;
    top: 10px;
    left: 50px;
    z-index: 1000;
    background: white;
    padding: 0.8rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.map-layer-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.map-layer-selector input[type="radio"] {
    margin-right: 0.5rem;
}

/* ===== ROUTE SELECTOR MODAL (index-spesifikt) ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 600px;
}

.route-section-header {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ff00ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0 0.2rem;
    border-bottom: 1px solid rgba(255,0,255,0.25);
    margin-bottom: 0.3rem;
    margin-top: 0.5rem;
}
.route-section-header:first-child { margin-top: 0; }
.route-section-header.user-section {
    color: #888;
    border-bottom-color: rgba(160,160,160,0.25);
}

/* User-uploaded routes get a light background */
.route-option[data-type="user"] {
    background: rgba(220, 225, 240, 0.12);
    border-color: rgba(180,185,210,0.25);
}
.route-option[data-type="user"].selected {
    background: rgba(220, 225, 240, 0.28);
    border-color: rgba(180,185,210,0.7);
    box-shadow: 0 0 10px rgba(180,185,210,0.3);
}
.route-option[data-type="user"] .route-name { color: #ccc; }



/* Download button */
.btn-download {
    background: rgba(0,200,100,0.15);
    border: 1px solid rgba(0,200,100,0.4);
    color: #00c864;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-download:hover {
    background: rgba(0,200,100,0.3);
    border-color: #00c864;
}

.route-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #00f5ff;
    margin-bottom: 2px;
}

.route-details {
    font-size: 0.75rem;
    color: #ffaa00;
}

.route-badge {
    top: 5px;
    right: -5px;
}

/* ===== CONFETTI ===== */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 10005;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.9;
    border-radius: 2px;
    animation: explode 3s forwards;
}

@keyframes explode {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) rotate(720deg);
        opacity: 0;
    }
}

/* ===== AD BANNER ===== */
@keyframes adSlideIn {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);   opacity: 1; }
}

#adBanner {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, calc(100vw - 48px));
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    z-index: 10100;
    overflow: hidden;
    cursor: pointer;
    animation: adSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: none;
}

#adBanner .ad-label {
    font-size: 9px;
    color: #70757a;
    padding: 3px 10px 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

#adBanner .ad-label::before {
    content: 'G';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    font-size: 9px;
    font-weight: 900;
    color: #1a73e8;
    border: 1px solid #dadce0;
    border-radius: 2px;
    line-height: 1;
}

#adBanner .ad-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    color: #70757a;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}

#adBanner .ad-close:hover { color: #202124; }

#adBanner .ad-image {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, #f8f9fa, #e8eaed);
    overflow: hidden;
    align-self: stretch;
}

#adBanner .ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.ad-popup-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center 10%;
    border-radius: 4px;
    margin-bottom: 8px;
}

#adBanner .ad-body {
    flex: 1;
    padding: 8px 36px 8px 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

#adBanner .ad-body-text { flex: 1; }

#adBanner .ad-brand {
    font-size: 10px;
    color: #1a73e8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1px;
}

#adBanner .ad-headline {
    font-size: 13px;
    color: #202124;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}

#adBanner .ad-copy {
    font-size: 11px;
    color: #5f6368;
    line-height: 1.3;
}

#adBanner .ad-cta {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

#adBanner .ad-url {
    font-size: 10px;
    color: #188038;
    margin-top: 2px;
}

#adPopup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10200;
    align-items: center;
    justify-content: center;
}

#adPopup.open { display: flex; }

#adPopupInner {
    background: #fff;
    border-radius: 12px;
    width: 420px;
    max-width: 92vw;
    font-family: Arial, sans-serif;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: adSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#adPopupHeader {
    padding: 20px 20px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

#adPopupEmoji { font-size: 52px; line-height: 1; }

#adPopupClose {
    background: none;
    border: none;
    font-size: 22px;
    color: #70757a;
    cursor: pointer;
    margin-top: -4px;
}

#adPopupClose:hover { color: #202124; }

#adPopupBody { padding: 12px 20px 24px; }

#adPopupBrand {
    font-size: 10px;
    color: #1a73e8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 4px;
}

#adPopupName {
    font-size: 22px;
    font-weight: 900;
    color: #202124;
    margin-bottom: 6px;
}

#adPopupTagline {
    font-size: 13px;
    color: #5f6368;
    font-style: italic;
    margin-bottom: 14px;
}

#adPopupFeatures {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

#adPopupFeatures li {
    font-size: 13px;
    color: #3c4043;
    padding: 4px 0;
}

#adPopupFeatures li::before {
    content: '✓ ';
    color: #188038;
    font-weight: 700;
}

#adPopupReview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #5f6368;
    font-style: italic;
}

#adPopupReview .stars { color: #fbbc04; font-style: normal; }

#adPopupPrice {
    font-size: 20px;
    font-weight: 900;
    color: #202124;
    margin-bottom: 14px;
}

#adPopupCTA {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    cursor: pointer;
    text-align: center;
}

#adPopupCTA:hover { background: #1557b0; }
