:root {
    --bg: #05070d;
    --bg-soft: #08101c;
    --panel: rgba(10, 17, 29, 0.9);
    --panel-strong: rgba(13, 24, 40, 0.98);
    --panel-light: rgba(255, 255, 255, 0.05);
    --border: rgba(0, 204, 255, 0.24);
    --border-soft: rgba(255, 255, 255, 0.09);
    --blue: #00c8ff;
    --blue-strong: #0088ff;
    --blue-soft: rgba(0, 200, 255, 0.13);
    --text: #f4f8ff;
    --muted: #93a3bb;
    --success: #25e58f;
    --warning: #ffd166;
    --danger: #ff4f6d;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --blue-shadow: 0 0 60px rgba(0, 200, 255, 0.20);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100%;
    margin: 0;
    font-family: Inter, Segoe UI, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 200, 255, 0.18), transparent 31%),
        radial-gradient(circle at 86% 12%, rgba(0, 90, 255, 0.14), transparent 33%),
        radial-gradient(circle at 60% 92%, rgba(0, 200, 255, 0.10), transparent 30%),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.ambient {
    position: fixed;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.8;
    z-index: 0;
}

.ambient-one {
    width: 280px;
    height: 280px;
    top: -110px;
    left: 260px;
    background: rgba(0, 200, 255, 0.13);
}

.ambient-two {
    width: 360px;
    height: 360px;
    right: -140px;
    bottom: 140px;
    background: rgba(0, 100, 255, 0.12);
}

.ambient-three {
    width: 220px;
    height: 220px;
    left: 40%;
    bottom: -120px;
    background: rgba(37, 229, 143, 0.08);
}

.app-shell {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 302px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(5, 8, 14, 0.98), rgba(7, 12, 21, 0.94));
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 26px;
    box-shadow: 24px 0 80px rgba(0,0,0,0.22);
}

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

.brand-logo,
.brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 19px;
    flex: 0 0 auto;
}

.brand-logo {
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(0, 200, 255, 0.36));
}

.brand-mark {
    display: grid;
    place-items: center;
    color: var(--blue);
    font-weight: 950;
    letter-spacing: -1px;
    font-size: 23px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(0, 200, 255, 0.17), rgba(255,255,255,0.03));
    box-shadow: var(--blue-shadow);
}

.brand-title {
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -0.4px;
}

.brand-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 15px;
    transition: 0.16s ease;
}

.nav-link span { width: 22px; text-align: center; }

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    border-color: var(--border);
    background: var(--blue-soft);
    box-shadow: 0 0 32px rgba(0, 200, 255, 0.07);
}

.nav-link.disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.license-panel {
    margin-top: auto;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(0,200,255,0.11), rgba(255,255,255,0.035));
}

.license-label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.license-name {
    margin-top: 8px;
    color: var(--blue);
    font-size: 20px;
    font-weight: 900;
}

.license-note {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.main {
    flex: 1;
    padding: 30px;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    font-weight: 900;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
    margin-bottom: 10px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.97;
    letter-spacing: -2.8px;
}

h2 {
    margin-bottom: 10px;
    font-size: 26px;
    letter-spacing: -0.8px;
}

h3 {
    margin-bottom: 7px;
    font-size: 18px;
}

.topline,
.muted {
    color: var(--muted);
    line-height: 1.55;
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.primary-btn,
.ghost-btn,
.tiny-link {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 17px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    color: var(--text);
    transition: 0.16s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--blue), var(--blue-strong));
    border-color: transparent;
    box-shadow: var(--blue-shadow);
}

.ghost-btn,
.tiny-link {
    background: rgba(255,255,255,0.04);
}

.tiny-link {
    padding: 9px 12px;
    color: var(--blue);
    font-size: 12px;
}

.primary-btn:hover,
.ghost-btn:hover,
.tiny-link:hover,
.module-card:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.8fr);
    gap: 22px;
    margin-bottom: 26px;
}

.hero-card,
.quick-card,
.panel,
.bundle-card,
.module-card {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(13, 24, 40, 0.93), rgba(6, 10, 18, 0.94));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 26px;
    overflow: hidden;
}

.glow-card {
    box-shadow: var(--shadow), var(--blue-shadow);
}

.step-pill,
.status-chip,
.small-status,
.module-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 12px;
    font-weight: 850;
}

.hero-content h2 {
    margin-top: 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -2px;
}

.ident-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.ident-strip div,
.stat-grid div {
    padding: 14px;
    border: 1px solid var(--border-soft);
    border-radius: 17px;
    background: rgba(255,255,255,0.045);
}

.ident-strip span,
.stat-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.ident-strip strong,
.stat-grid strong {
    display: block;
    color: var(--text);
    font-size: 19px;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
}

.gauge-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.gauge-ring {
    width: 174px;
    height: 174px;
    border-radius: 999px;
    background:
        conic-gradient(from 220deg, var(--blue), rgba(0, 120, 255, 0.95), rgba(255,255,255,0.08), var(--blue));
    padding: 10px;
    box-shadow: 0 0 50px rgba(0,200,255,0.20);
}

.gauge-ring.gauge-warn {
    background: conic-gradient(from 220deg, var(--warning), rgba(0, 200, 255, 0.55), rgba(255,255,255,0.08), var(--warning));
}

.gauge-inner {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #07101c;
    display: grid;
    place-items: center;
    align-content: center;
    border: 1px solid var(--border-soft);
}

.gauge-inner span {
    color: var(--muted);
    font-size: 13px;
}

.gauge-inner strong {
    font-size: 42px;
    letter-spacing: -2px;
    color: var(--success);
}

.gauge-warn .gauge-inner strong { color: var(--warning); }

.gauge-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.gauge-meta span,
.bundle-stack span,
.license-tiers span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    border: 1px solid var(--border-soft);
    color: var(--muted);
    font-size: 12px;
}

.quick-card {
    padding: 22px;
}

.quick-head,
.section-head,
.panel-head,
.module-topline,
.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.status-chip.ok {
    color: var(--success);
    border-color: rgba(37,229,143,0.34);
    background: rgba(37,229,143,0.11);
}

.status-chip.warn {
    color: var(--warning);
    border-color: rgba(255,209,102,0.34);
    background: rgba(255,209,102,0.11);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.stat-grid.compact strong {
    font-size: 26px;
    color: var(--blue);
}

.section-head {
    margin: 10px 0 16px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.module-card {
    display: flex;
    gap: 15px;
    padding: 18px;
    border-radius: var(--radius-lg);
    transition: 0.16s ease;
}

.module-card.is-disabled {
    opacity: 0.55;
}

.module-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--blue-soft);
    border: 1px solid var(--border);
    font-size: 22px;
    flex: 0 0 auto;
}

.module-body {
    min-width: 0;
    flex: 1;
}

.module-body p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.module-link {
    color: var(--blue);
    font-weight: 850;
    font-size: 13px;
    text-decoration: none;
}

.muted-link {
    color: var(--muted);
}

.tag-ready {
    color: var(--success);
    border-color: rgba(37,229,143,0.34);
    background: rgba(37,229,143,0.10);
}

.tag-locked {
    color: var(--muted);
    background: rgba(255,255,255,0.05);
}

.dashboard-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.dashboard-columns.wide-left {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
}

.panel {
    padding: 22px;
}

.history-table {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.history-row,
.check-row,
.tier-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 15px;
    background: rgba(255,255,255,0.04);
}

.history-row strong,
.tier-row strong {
    display: block;
    color: var(--text);
}

.history-row small,
.tier-row small,
.check-row small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
    font-size: 12px;
}

.history-row > div:last-child {
    text-align: right;
    color: var(--blue);
    flex: 0 0 auto;
}

.empty-state {
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed var(--border);
    color: var(--muted);
    background: rgba(255,255,255,0.035);
}

.check-list,
.timeline,
.tier-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-row {
    justify-content: flex-start;
}

.check-state {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    flex: 0 0 auto;
}

.check-state.ok {
    color: var(--success);
    background: rgba(37,229,143,0.11);
    border: 1px solid rgba(37,229,143,0.34);
}

.check-state.warn {
    color: var(--warning);
    background: rgba(255,209,102,0.11);
    border: 1px solid rgba(255,209,102,0.34);
}

.mini-terminal {
    margin-top: 16px;
    padding: 14px;
    min-height: 118px;
    max-height: 210px;
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(0,200,255,0.16);
    background: rgba(0,0,0,0.30);
    color: #b8f2ff;
    font-family: Consolas, Cascadia Mono, monospace;
    font-size: 12px;
    line-height: 1.6;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(37,229,143,0.5);
    animation: pulse 1.7s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,229,143,0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37,229,143,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,229,143,0); }
}

.timeline-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border-radius: 999px;
    border: 2px solid var(--border);
    background: var(--bg-soft);
}

.timeline-item.status-fertig .timeline-dot {
    background: var(--success);
    border-color: var(--success);
}

.timeline-item.status-jetzt .timeline-dot {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 24px rgba(0,200,255,0.45);
}

.timeline-item.status-danach .timeline-dot {
    background: var(--warning);
    border-color: var(--warning);
}

.timeline-item span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.timeline-item h3 {
    margin: 3px 0 4px;
}

.timeline-item p {
    color: var(--muted);
    margin: 0;
    line-height: 1.45;
}

.bundle-panel {
    min-height: 100%;
}

.tier-row span {
    color: var(--blue);
    font-weight: 950;
    white-space: nowrap;
}

.bundle-card {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
    margin-bottom: 24px;
}

.bundle-card p {
    color: var(--muted);
    max-width: 800px;
    line-height: 1.55;
}

.bundle-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.footer {
    color: var(--muted);
    font-size: 13px;
    padding: 0 2px 8px;
}

@media (max-width: 1180px) {
    .hero-grid,
    .dashboard-columns,
    .dashboard-columns.wide-left {
        grid-template-columns: 1fr;
    }

    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; }
    .main { padding: 18px; }
    .topbar,
    .hero-card,
    .bundle-card,
    .section-head,
    .panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-card { grid-template-columns: 1fr; }
    .ident-strip,
    .module-grid,
    .stat-grid { grid-template-columns: 1fr; }
    h1 { font-size: 40px; }
}
