/* SLC-Development – Unikt dark tech design */
:root {
    --bg-deep: #06080c;
    --bg-mid: #0a0d12;
    --bg-card: #0e1118;
    --bg-elevated: #141922;
    --border: #1e2530;
    --border-subtle: #161b24;
    --text: #e8ecf1;
    --text-muted: #7d8794;
    --accent-cyan: #00d4ff;
    --accent-green: #00ff9d;
    --accent-cyan-dim: #00a8cc;
    --glow-cyan: rgba(0, 212, 255, 0.4);
    --glow-green: rgba(0, 255, 157, 0.3);
    --danger: #ff4757;
    --radius: 8px;
    --radius-lg: 12px;
    --font-sans: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-glow: 0 0 40px -10px var(--glow-cyan);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-deep);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    /* Subtil gradient + grid-følelse */
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(0, 255, 157, 0.03) 0%, transparent 45%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
}

/* Typografi */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    margin-top: 0;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.25rem; }

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
a:hover {
    color: var(--accent-green);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Header ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 8, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    transition: color 0.2s var(--ease-out);
}
.logo-link:hover {
    color: var(--accent-cyan);
}
.logo-link img {
    height: 44px;
    width: auto;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
}
.nav-list a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s var(--ease-out);
}
.nav-list a:hover {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.06);
}
.nav-list a.active {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
}

@media (max-width: 700px) {
    .nav-list { gap: 0; }
    .nav-list a { padding: 0.5rem 0.65rem; font-size: 0.9rem; }
}

/* ========== Hero ========== */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
}
.hero::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 1.75rem auto 0;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    border-radius: 2px;
    opacity: 0.9;
}
.hero h1 {
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}
.hero .tagline {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 540px;
    margin: 0 auto 2rem;
}
.hero .btn {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

/* ========== Forside – forbedret hero ========== */
.hero-home {
    padding: 5rem 0 5.5rem;
    position: relative;
}
.hero-home .wrap {
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.35);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 24px -4px rgba(0, 212, 255, 0.15);
}
.hero-home h1 {
    font-size: clamp(2.4rem, 6.5vw, 3.75rem);
    margin-bottom: 1.15rem;
    letter-spacing: -0.035em;
}
.hero-tagline {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 540px;
    margin: 0 auto 2.5rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}
.btn-hero {
    padding: 0.95rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}
.btn-hero.btn-primary {
    box-shadow: 0 4px 20px -4px rgba(0, 212, 255, 0.35);
}
.btn-hero.btn-primary:hover {
    box-shadow: 0 6px 28px -4px var(--glow-cyan);
}

/* ========== Forside – features-strip ========== */
.home-features {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(14, 17, 24, 0.5);
}
.features-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    text-align: center;
}
@media (max-width: 700px) {
    .features-strip { grid-template-columns: 1fr; gap: 1.25rem; }
}
.features-strip li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.5rem 1rem;
    background: rgba(20, 25, 34, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.features-strip li:hover {
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: 0 4px 20px -8px rgba(0, 212, 255, 0.15);
}
.features-icon {
    font-size: 1.85rem;
    margin-bottom: 0.2rem;
}
.features-strip strong {
    color: var(--text);
    font-size: 1.02rem;
}
.features-strip span:last-child {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* ========== Forside – steps ========== */
.home-steps {
    padding: 4rem 0 4.5rem;
}
.home-steps .section-head p {
    font-size: 1.08rem;
}
.steps-grid-home .step-card {
    padding: 2rem 1.75rem;
}
.steps-grid-home .step-card .step-num {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

/* ========== Forside – udvalgte scripts ========== */
.home-shop {
    padding: 2.5rem 0 4.5rem;
    background: rgba(10, 13, 18, 0.5);
}
.home-shop .section-head {
    margin-bottom: 2.75rem;
}
.script-grid-home {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}
.script-grid-home .script-card-body {
    padding: 1.5rem;
}
.script-card-image-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}
.home-shop-link {
    text-align: center;
    margin: 0;
}
.home-shop-link .btn {
    padding: 0.8rem 1.6rem;
}

/* ========== Forside – CTA boks ========== */
.home-cta {
    padding: 3.5rem 0 5rem;
}
.cta-box {
    text-align: center;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.25rem;
    max-width: 540px;
    margin: 0 auto;
    box-shadow: 0 8px 40px -16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.06);
}
.cta-box h2 {
    margin-bottom: 0.6rem;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}
.cta-box p {
    color: var(--text-muted);
    margin: 0 0 1.75rem;
    font-size: 1.02rem;
    line-height: 1.6;
}
.cta-box .btn {
    padding: 0.9rem 1.9rem;
    font-weight: 600;
}

/* ========== Knapper ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dim));
    color: var(--bg-deep);
}
.btn-primary:hover {
    box-shadow: var(--shadow-glow);
}
.btn-ghost {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 212, 255, 0.5);
}
.btn-ghost:hover {
    background: rgba(0, 212, 255, 0.12);
    color: var(--text);
    border-color: var(--accent-cyan);
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    filter: brightness(1.1);
}

/* ========== Sektion – Sådan fungerer det ========== */
.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-head h2 {
    margin-bottom: 0.5rem;
}
.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 0 3rem;
}
@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; }
}
.step-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.step-card:hover {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.4);
}
.step-card .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius);
}
.step-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}
.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* ========== Shop grid & kort ========== */
.script-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
    padding: 2rem 0 3rem;
}

.script-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.script-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 12px 40px -12px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.script-card-image {
    aspect-ratio: 16/10;
    background: var(--bg-elevated);
    object-fit: cover;
}
.script-card-body {
    padding: 1.35rem;
}
.script-card-title {
    margin: 0 0 0.4rem;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}
.script-card-title a {
    color: inherit;
}
.script-card-title a:hover {
    color: var(--accent-cyan);
}
.script-card-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.script-card-price {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-green);
    margin-bottom: 1rem;
}
.script-card-actions {
    display: flex;
    gap: 0.5rem;
}

/* ========== Script detail ========== */
.script-detail {
    padding: 2.5rem 0 4rem;
}
.script-detail-header {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .script-detail-header { grid-template-columns: 1fr; }
}
.script-detail-image {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}
.script-detail-info h1 {
    margin-bottom: 0.5rem;
}
.script-detail-meta {
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.script-detail-price {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}
.script-detail-desc {
    color: var(--text-muted);
    white-space: pre-wrap;
    margin-top: 1.5rem;
    line-height: 1.65;
}

/* ========== Formularer ========== */
.form-group {
    margin-bottom: 1.15rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--glow-cyan);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========== Alerts ========== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.alert-success {
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.35);
    color: var(--accent-green);
}
.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.35);
    color: #ff6b7a;
}
.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: var(--accent-cyan);
}

/* ========== Footer ========== */
.site-footer {
    margin-top: 4rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-mid);
}
.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.site-footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.site-footer a {
    color: var(--text-muted);
}
.site-footer a:hover {
    color: var(--accent-cyan);
}

/* ========== Admin ========== */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 72px);
}
.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
}
.admin-sidebar nav ul { list-style: none; margin: 0; padding: 0; }
.admin-sidebar nav a {
    display: block;
    padding: 0.65rem 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
}
.admin-main { padding: 1.5rem 2rem; max-width: 1100px; }
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.admin-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.admin-stat strong {
    display: block;
    font-size: 1.6rem;
    color: var(--accent-cyan);
}
.admin-stat span { font-size: 0.9rem; color: var(--text-muted); }
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.admin-page .wrap { max-width: 900px; }
.discord-invite-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.discord-invite-box h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.discord-invite-box .btn { margin-top: 0.5rem; }
.admin-section { margin-top: 1.5rem; }
.admin-section h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ========== Licens ========== */
.license-list { display: flex; flex-direction: column; gap: 1rem; }
.license-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.license-box h3 { margin: 0 0 0.5rem; }
.license-key {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: var(--bg-elevated);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius);
    word-break: break-all;
    margin: 0.5rem 0;
    border: 1px solid var(--border);
}
.license-meta { color: var(--text-muted); font-size: 0.9rem; }

/* Skift IP-form: felt + knap på en linje */
.change-ip-form .form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 1rem;
}
.change-ip-form .form-inline label { margin-bottom: 0; margin-right: 0.25rem; }
.change-ip-form .form-inline input { flex: 0 1 auto; }

/* ========== Dashboard (Min side) ========== */
.dashboard-section-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.dashboard-empty {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.dashboard-purchases {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s var(--ease-out);
}
.dashboard-card:hover {
    border-color: rgba(0, 212, 255, 0.35);
}
.dashboard-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.dashboard-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}
.dashboard-card-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}
.dashboard-card-body {
    padding: 1.25rem;
}
.dashboard-card-ip {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.dashboard-card-actions {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ========== Betaling (MobilePay) ========== */
.payment-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}
.payment-box h3 { margin: 0 0 1rem; }
.payment-steps {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}
.payment-steps li { margin-bottom: 0.5rem; }
.payment-reference {
    font-size: 1.25rem;
    margin: 1rem 0;
}
.payment-reference code {
    font-family: var(--font-mono);
    background: var(--bg-elevated);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-green);
    display: inline-block;
}
.license-forms .form-group { margin-bottom: 0.75rem; }

/* ========== Admin badges & knapper ========== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}
.badge-success { background: rgba(0, 255, 157, 0.2); color: var(--accent-green); }
.badge-warning { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.badge-ghost { background: var(--bg-elevated); color: var(--text-muted); }
.order-ref { font-family: var(--font-mono); font-size: 0.95rem; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.mt-2 { margin-top: 1.5rem; }

/* ========== Utility ========== */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
