:root {
    --primary: #0284c7;
    --primary-bright: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.65);
    --primary-shadow: rgba(2, 132, 199, 0.35);
    --secondary: #d4af37;
    --glass-bg: rgba(4, 16, 35, 0.88);
    --bg-void: #010308;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --edge-gold: #f0d488;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-void);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    -webkit-tap-highlight-color: transparent;
}

.transition-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Top Navigation */
.top-bar {
    position: fixed;
    top: 10px;
    left: 15px;
    right: 15px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.top-bar__group {
    display: flex;
    gap: 1px;
}

.hud-group {
    display: flex;
    gap: 4px;
    background: rgba(4, 9, 20, 0.85);
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid var(--primary);
    backdrop-filter: blur(16px);
    box-shadow: 0 0 10px var(--primary-shadow);
}

.hud-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    text-decoration: none;
}

.hud-btn.active, .hud-btn:hover {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.hud-btn--cta {
    background: linear-gradient(135deg, var(--secondary) 0%, #f0d488 100%) !important;
    color: #010308 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6) !important;
}

.hud-btn--cta:hover {
    transform: scale(1.04);
    box-shadow: 0 0 18px rgba(240, 212, 136, 0.9) !important;
}

/* Sprogvælger med flag (badge + dropdown-menu) */
.lang-switcher {
    position: relative;
}

.lang-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(4, 9, 20, 0.85);
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 5px 8px;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 10px var(--primary-shadow);
    cursor: pointer;
    color: var(--text-main);
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.lang-badge:hover {
    border-color: var(--primary-bright);
    box-shadow: 0 0 14px var(--primary-glow);
}

.lang-badge img {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.lang-badge .chevron {
    width: 9px;
    height: 9px;
    fill: var(--primary-bright);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.lang-switcher.open .lang-badge .chevron {
    transform: rotate(180deg);
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(4, 9, 20, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary);
    border-top: 2px solid var(--edge-gold);
    border-radius: 6px;
    padding: 4px;
    min-width: 128px;
    z-index: 150;
    box-shadow: 0 14px 30px rgba(0,0,0,0.7);
}

.lang-switcher.open .lang-menu {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 7px 8px;
    cursor: pointer;
    border-radius: 4px;
    text-align: left;
}

.lang-option img {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.lang-option:hover {
    background: var(--primary);
    color: #ffffff;
}

.lang-option.active {
    color: var(--primary-bright);
    background: rgba(56, 189, 248, 0.12);
}

/* Layout & Panel */
.app-world {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 60px 15px 14px;
    background:
        radial-gradient(circle at 50% 30%, var(--primary-shadow) 0%, transparent 65%),
        linear-gradient(to bottom, #010308, #050b16);
    position: relative;
}

.particle-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--primary-bright);
    box-shadow: 0 0 6px 1px var(--primary-glow);
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { opacity: 0; transform: translateY(100vh) scale(0.5); }
    50% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1.2); }
}

.app-panel {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 106px);
    min-height: 0;
    flex-shrink: 1;
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 18px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 40px var(--primary-shadow), 0 20px 40px rgba(0,0,0,0.8);
}

.app-panel.panel-expanded {
    max-height: calc(100vh - 66px);
}

.status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 1px;
    color: var(--primary);
    opacity: 0.85;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-bright);
    margin-right: 6px;
    box-shadow: 0 0 6px var(--primary-glow);
}

.brand-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-bright) 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 8px;
}

.scene-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.05rem, 3.6vw, 1.4rem);
    font-weight: 700;
    color: var(--primary-bright);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 8px;
}


.subtitle {
    margin-top: 1.0rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.5;
}

.subtitle-other-sector{
    margin-top: 1.0rem;
    margin-left:10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
    margin-bottom: 10px;
    line-height: 1.5;
}

.scene {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.scene.active { 
    display: flex; 
    opacity: 1;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
}

.btn-block {
    font-family: 'Cinzel', serif;
    padding: 11px 20px;
    background: linear-gradient(160deg, rgba(14, 24, 42, 0.92) 0%, rgba(4, 8, 18, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-bottom: 2px solid var(--edge-gold);
    color: var(--primary-bright);
    letter-spacing: 1.1px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    display: block;
    transition: all 0.25s ease;
}

.btn-block:hover {
    color: #ffffff;
    border-color: var(--primary-bright);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-block--accent {
    border-color: rgba(129, 140, 248, 0.55);
    color: #ffffff;
    background: linear-gradient(160deg, rgba(30, 27, 60, 0.92) 0%, rgba(8, 6, 20, 0.96) 100%);
}

.click-spark-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.click-spark {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--spark-color, var(--primary-bright));
    box-shadow: 0 0 10px 2px var(--spark-color, var(--primary-glow));
    opacity: 1;
    animation: sparkBurst 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sparkBurst {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--spark-x), var(--spark-y)) scale(0.15);
        opacity: 0;
    }
}

.click-spark-ring {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--spark-color, var(--primary-bright));
    transform: translate(-50%, -50%);
    opacity: 0.9;
    animation: sparkRing 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sparkRing {
    0% { width: 6px; height: 6px; opacity: 0.9; }
    100% { width: 60px; height: 60px; opacity: 0; }
}

.phone-container {
    width: 180px;
    height: 330px;
    background: #000;
    border: 2px solid var(--primary);
    border-radius: 20px;
    overflow: hidden;
    margin: 6px auto 10px;
    box-shadow: 0 0 15px var(--primary-shadow);
}

.phone-screen { width: 100%; height: 100%; object-fit: cover; }

.slide-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}

.arrow-btn {
    background: rgba(8, 14, 28, 0.9);
    border: 1px solid var(--primary);
    color: var(--primary-bright);
    width: 34px; 
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.arrow-btn:hover { background: var(--primary); color: #fff; }

.card-box {
    background: rgba(4, 8, 18, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 10px;
    padding: 14px;
    width: 100%;
    margin-bottom: 10px;
}

.price-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 6px 0; }
.price-tag { color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; font-family: 'Space Mono', monospace; }
.new-price { color: var(--primary-bright); font-size: 1.8rem; font-weight: 900; font-family: 'Cinzel', serif; }

.pkg-slider { position: relative; width: 100%; margin-top: 6px; }
.pkg-slide-frame { overflow: hidden; position: relative; min-height: 300px; }

.pkg-slide { display: none; opacity: 0; transition: opacity 0.3s ease; }
.pkg-slide.active { display: block; opacity: 1; }

.pkg-slide-img {
    width: 100%;
    background: rgba(2, 6, 16, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.pkg-slide-img svg { width: 80px; height: 80px; margin-bottom: 4px; }
.pkg-img-label { display: block; font-size: 0.62rem; color: var(--text-muted); font-family: 'Space Mono', monospace; margin-bottom: 6px; }
.pkg-slide-caption { text-align: left; font-size: 0.76rem; line-height: 1.45; }
.pkg-slide-caption ul { list-style: none; margin-top: 4px; }
.pkg-slide-caption li { margin-bottom: 6px; color: var(--text-muted); }
.pkg-li-title { color: var(--text-main); display: block; margin-bottom: 2px; }

.pkg-slide-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 6px;
}

.pkg-dots { display: flex; gap: 6px; }
.pkg-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.2s ease;
}

.pkg-dot.active {
    background: var(--primary-bright);
    box-shadow: 0 0 6px var(--primary-glow);
}

.pkg-demo-link {
    font-size: 0.72rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 2px;
}

.hosting-box {
    background: rgba(2, 6, 16, 0.9);
    border: 1px solid var(--primary-shadow);
    border-radius: 8px;
    padding: 10px;
}

.hosting-title { font-family: 'Cinzel', serif; font-size: 0.75rem; color: var(--primary-bright); margin-bottom: 6px; }
.hosting-tabs { display: flex; gap: 6px; margin-bottom: 8px; }

.hosting-tab {
    flex: 1;
    padding: 6px 4px;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.hosting-tab.active {
    background: var(--primary);
    border-color: var(--primary-bright);
    color: #fff;
    box-shadow: 0 0 8px var(--primary-shadow);
}

.hosting-panel { display: none; text-align: left; font-size: 0.72rem; }
.hosting-panel.active { display: block; }
.hosting-price-row { display: flex; justify-content: space-between; font-weight: bold; color: var(--text-main); }
.hosting-note { font-size: 0.65rem; color: var(--text-muted); margin-top: 3px; line-height: 1.3; }
.hosting-ownership { margin-top: 8px; font-size: 0.68rem; border-top: 1px dashed rgba(255, 255, 255, 0.1); padding-top: 6px; color: var(--edge-gold); text-align: left; }

.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0;
    width: 100%;
}

.sector-item {
    background: rgba(4, 9, 20, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 10px 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-main);
}

.form-group { margin-bottom: 10px; text-align: left; width: 100%; }
.form-label {
    display: block;
    font-size: 0.68rem;
    color: var(--primary-bright);
    font-family: 'Space Mono', monospace;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.form-input, .form-select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(1, 3, 8, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 6px;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus {
    border-color: var(--primary-bright);
    box-shadow: 0 0 8px var(--primary-glow);
}

.panel-footer-nav {
    width: 100%;
    max-width: 480px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.65rem;
    position: relative;
    z-index: 30;
}

.panel-footer-nav a { color: var(--text-muted); text-decoration: none; }
.panel-footer-nav a:hover { color: var(--primary-bright); }

.cookie-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 24px;
    width: auto;
    max-width: 520px;
    margin: 0 auto;
    z-index: 999;
    background: rgba(2, 6, 16, 0.98);
    border: 2px solid var(--primary);
    border-radius: 14px;
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-main);
    /* Det store skygge-spread dæmper resten af siden, så banneret ikke kan overses */
    box-shadow: 0 0 0 100vmax rgba(1, 3, 8, 0.72), 0 0 30px var(--primary-shadow);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* Accepter og Afvis er med vilje præcis lige store og ens i udseende */
.cookie-banner .hud-btn {
    flex: 1;
    min-height: 52px;
    padding: 14px 10px;
    font-size: 0.85rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary);
}

.cookie-banner .hud-btn:hover,
.cookie-banner .hud-btn:focus-visible {
    color: #ffffff;
    background: var(--primary);
}

.cookie-banner.hidden { display: none; }

#explosionCanvas,
#sparkCanvas {
    pointer-events: none; /* Lader alle touch- og museklik gå direkte igennem til sliderne */
}
/* Sørg for at alle slidere ligger øverst og tillader vandret træk */
input[type="range"] {
    position: relative;
    z-index: 20; /* Lægger slideren over canvas og overlays */
    touch-action: pan-x; /* Fortæller mobilen, at fingeren må trække vandret uden at scrolle siden */
    height: 40px; /* Gør touch-arealet større og lettere at ramme på mobil */
}
