:root {
    --color-bg: #080808;
    --color-surface: #0f0f0f;
    --color-surface-2: #141414;
    --color-surface-offset: #1a1a1a;
    --color-border: rgba(255, 255, 255, 0.07);
    --color-text: #e8e8e8;
    --color-text-muted: #888888;
    --color-text-faint: #444444;
    --color-accent-1: #a78bfa;
    --color-accent-2: #38bdf8;
    --color-accent-3: #34d399;
    --color-gradient: linear-gradient(135deg, #a78bfa, #38bdf8, #34d399);
    --font-display: 'Orbitron', monospace;
    --font-body: 'Inter', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

@property --fill-width {
    syntax: '<length>';
    inherits: false;
    initial-value: 0px;
}

@property --gradient-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Loading Screen ── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-lula {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(5rem, 16vw, 10rem);
    color: white;
    text-shadow:
        0 0 20px rgba(167, 139, 250, 0.8),
        0 0 60px rgba(167, 139, 250, 0.5),
        0 0 120px rgba(56, 189, 248, 0.3);
    transform: scale(0.4);
    filter: blur(20px);
    animation: lulaEnter 1s var(--ease-out-expo) forwards;
    letter-spacing: 0.05em;
}

@keyframes lulaEnter {
    to {
        transform: scale(1);
        filter: blur(0);
    }
}

.loading-bar-container {
    width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    margin-top: 2rem;
    overflow: hidden;
}

@media (max-width: 640px) {
    .loading-bar-container {
        width: 220px;
    }
}

.loading-bar-fill {
    height: 100%;
    width: var(--fill-width);
    background: linear-gradient(90deg, #a78bfa, #38bdf8, #34d399);
    border-radius: 9999px;
    animation: fillBar 1.6s ease-in-out forwards;
}

@keyframes fillBar {
    0% {
        --fill-width: 0px;
    }

    100% {
        --fill-width: 280px;
    }
}

@media (max-width: 640px) {
    @keyframes fillBar {
        0% {
            --fill-width: 0px;
        }

        100% {
            --fill-width: 220px;
        }
    }
}

.loading-subtext {
    margin-top: 1rem;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ── Navigation ── */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s var(--ease-out-expo) 0.6s, transform 0.6s var(--ease-out-expo) 0.6s;
}

.nav-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-svg {
    width: 32px;
    height: 32px;
}

.logo-svg path {
    stroke: url(#logoGradient);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s var(--ease-out-expo);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    font-size: 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* ── Hero ── */
.hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(167, 139, 250, 0.04) 0%, transparent 70%),
        var(--color-bg);
    position: relative;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-lula {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(6rem, 20vw, 13rem);
    color: white;
    line-height: 1;
    letter-spacing: 0.05em;
    text-shadow:
        0 0 20px rgba(167, 139, 250, 0.8),
        0 0 60px rgba(167, 139, 250, 0.5),
        0 0 120px rgba(56, 189, 248, 0.3);
    opacity: 0;
    transform: translateY(60px);
    animation: slideUp 1s var(--ease-out-expo) forwards, breathe 3s ease-in-out infinite alternate;
}

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

@keyframes breathe {
    0% {
        text-shadow:
            0 0 20px rgba(167, 139, 250, 0.8),
            0 0 60px rgba(167, 139, 250, 0.5),
            0 0 120px rgba(56, 189, 248, 0.3);
    }

    100% {
        text-shadow:
            0 0 30px rgba(167, 139, 250, 0.9),
            0 0 80px rgba(167, 139, 250, 0.6),
            0 0 140px rgba(56, 189, 248, 0.4);
    }
}

.hero-tech {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s var(--ease-out-expo) 0.2s forwards;
}

.hero-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s var(--ease-out-expo) 0.4s forwards;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-2));
    margin: 2rem 0;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s var(--ease-out-expo) 0.8s forwards;
}

/* ── Buttons ── */
.btn {
    padding: 12px 32px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease-out-expo);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    color: white;
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.3);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 30px rgba(167, 139, 250, 0.5);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    position: relative;
    isolation: isolate;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    padding: 1px;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.btn-secondary:hover {
    transform: scale(1.03);
    background: rgba(167, 139, 250, 0.1);
}

.btn-secondary:active {
    transform: scale(0.97);
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .btn {
        width: 100%;
    }
}

/* ── About ── */
.about {
    padding: clamp(5rem, 8vw, 10rem) 1.5rem;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    font-size: 12px;
    color: var(--color-accent-1);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.section-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-body {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.75;
}

/* ── Scroll Reveal ── */
@supports (animation-timeline: view()) {
    .reveal {
        animation: revealAnimation linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 100%;
    }

    @keyframes revealAnimation {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@supports not (animation-timeline: view()) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Services ── */
.services {
    padding: 4rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.service-tag {
    border: 1px solid rgba(167, 139, 250, 0.25);
    color: var(--color-text-muted);
    background: rgba(167, 139, 250, 0.04);
    border-radius: 9999px;
    padding: 8px 20px;
    font-size: 14px;
    transition: all 0.2s var(--ease-out-expo);
    cursor: default;
    clip-path: inset(100% 0 0 0);
    animation: clipReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
}

@supports not (animation-timeline: view()) {
    .service-tag {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes clipReveal {
    to {
        clip-path: inset(0 0 0 0);
    }
}

.service-tag:hover {
    border-color: var(--color-accent-1);
    color: white;
    background: rgba(167, 139, 250, 0.08);
}

/* ── Contact ── */
.contact {
    background: var(--color-surface);
    padding: clamp(4rem, 8vw, 8rem) 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-subtext {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--color-surface-2);
    border-radius: 24px;
    position: relative;
    z-index: 1;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(var(--gradient-angle), var(--color-accent-1), var(--color-accent-2), var(--color-accent-3), var(--color-accent-1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateGradient 4s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotateGradient {
    to {
        --gradient-angle: 360deg;
    }
}

/* ── Footer ── */
.footer {
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer-text {
    font-size: 12px;
    color: var(--color-text-faint);
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--color-text-faint);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s var(--ease-out-expo);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.footer-link:hover {
    color: var(--color-accent-1);
}

/* ── Datenschutz Overlay ── */
.datenschutz-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.datenschutz-overlay.active {
    opacity: 1;
    visibility: visible;
}

.datenschutz-panel {
    background: var(--color-bg);
    padding: 32px;
    max-width: 720px;
    width: 90%;
    max-height: 90dvh;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    position: relative;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
}

.datenschutz-overlay.active .datenschutz-panel {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .datenschutz-panel {
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        position: absolute;
        bottom: 0;
        max-height: 85dvh;
    }

    .datenschutz-overlay.active .datenschutz-panel {
        transform: translateY(0);
    }
}

.datenschutz-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s var(--ease-out-expo);
}

.datenschutz-close:hover {
    color: var(--color-accent-1);
}

.datenschutz-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: white;
    margin-bottom: 2rem;
    padding-right: 3rem;
}

.datenschutz-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.datenschutz-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent-1);
    color: var(--color-bg);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .loading-overlay {
        display: none;
    }

    .nav-container {
        opacity: 1;
        transform: none;
    }
}

/* ── Touch devices ── */
@media (hover: none) {
    .btn:hover {
        transform: none;
    }

    .service-tag:hover {
        border-color: rgba(167, 139, 250, 0.25);
        color: var(--color-text-muted);
        background: rgba(167, 139, 250, 0.04);
    }
}

#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #a78bfa, #38bdf8);
    z-index: 99999;
    transition: width 0.2s ease;
}

/* ── Dark / Light Mode ── */
[data-theme="light"] {
    --color-bg: #f4f4f0;
    --color-surface: #ffffff;
    --color-surface-2: #f9f9f7;
    --color-surface-offset: #efefeb;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-text: #111111;
    --color-text-muted: #555555;
    --color-text-faint: #aaaaaa;
}

[data-theme="light"] .nav-container {
    background: rgba(244, 244, 240, 0.88);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .loading-overlay {
    background: #f4f4f0;
}

[data-theme="light"] .loading-lula,
[data-theme="light"] .hero-lula {
    color: #111;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.5), 0 0 60px rgba(167, 139, 250, 0.3);
}

[data-theme="light"] .mobile-nav {
    background: rgba(244, 244, 240, 0.98);
}

[data-theme="light"] .mobile-nav-link {
    color: #111;
}

[data-theme="light"] .hero {
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(167, 139, 250, 0.06) 0%, transparent 70%), var(--color-bg);
}

[data-theme="light"] .hero-tech {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .hero-tagline {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .section-heading {
    color: #111;
}

[data-theme="light"] .contact {
    background: var(--color-surface);
}

[data-theme="light"] .contact-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    border-radius: 8px;
    width: 36px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: rgba(167, 139, 250, 0.5);
    color: var(--color-text);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.12);
    color: #555;
}

/* ── Discord Card ── */
.discord-section {
    padding: clamp(3rem, 6vw, 6rem) 1.5rem;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.discord-section-label {
    font-size: 12px;
    color: var(--color-accent-1);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.discord-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    text-align: left;
    transition: border-color 0.2s;
}

[data-theme="light"] .discord-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.discord-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

.discord-banner {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px 12px 0 0;
    display: block;
}

.discord-banner-placeholder {
    width: 100%;
    height: 120px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(56, 189, 248, 0.4));
}

.discord-profile-row {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 0 1.25rem 0;
    margin-top: 0;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.discord-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    margin-top: -36px;
}

.discord-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 4px solid var(--color-surface);
    background: var(--color-surface-offset);
    display: block;
}

[data-theme="light"] .discord-avatar {
    border-color: #fff;
}

.discord-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--color-surface);
    background: #747f8d;
    transition: background 0.3s;
}

[data-theme="light"] .discord-status-dot {
    border-color: #fff;
}

.discord-status-dot.online {
    background: #23a55a;
}

.discord-status-dot.idle {
    background: #f0b232;
}

.discord-status-dot.dnd {
    background: #f23f43;
}

.discord-username {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1px;
    line-height: 1.2;
}

.discord-tag {
    font-size: 12px;
    color: var(--color-text-muted);
}

.discord-info {
    padding: 0 1.25rem 1.25rem;
}

.discord-activity {
    background: var(--color-surface-offset);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 0.5rem;
    font-size: 12px;
    color: var(--color-text-muted);
    display: none;
}

[data-theme="light"] .discord-activity {
    background: rgba(0, 0, 0, 0.04);
}

.discord-activity.visible {
    display: block;
}

.discord-activity-name {
    font-size: 11px;
    color: var(--color-accent-1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 3px;
}

.discord-activity-detail {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
}

.discord-activity-state {
    color: var(--color-text-muted);
    font-size: 12px;
}

.discord-spotify {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discord-spotify-art {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.discord-loading {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-faint);
    font-size: 13px;
}

/* ── Setup Cards ── */
.setup {
    padding: clamp(4rem, 8vw, 8rem) 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.setup-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--color-text);
    text-align: center;
    margin-bottom: 3rem;
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.setup-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.2s, background 0.2s;
}

[data-theme="light"] .setup-card {
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.setup-card:hover {
    border-color: rgba(167, 139, 250, 0.25);
    background: var(--color-surface-2);
}

.setup-card-icon {
    width: 36px;
    height: 36px;
    color: var(--color-accent-1);
    margin-bottom: 1rem;
}

.setup-card-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-1);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.setup-card-specs {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ── Setup Tabs ── */
.setup-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.setup-tab {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 6px 18px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 36px;
    text-transform: uppercase;
}

[data-theme="light"] .setup-tab {
    border-color: rgba(0, 0, 0, 0.1);
}

.setup-tab:hover {
    border-color: rgba(167, 139, 250, 0.4);
    color: var(--color-text);
}

.setup-tab.active {
    border-color: var(--color-accent-1);
    color: var(--color-accent-1);
    background: rgba(167, 139, 250, 0.08);
}

.setup-panel {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.setup-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Spec rows inside card ── */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.spec-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .spec-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.5;
}

.spec-table td:first-child {
    color: var(--color-text-faint);
    width: 36%;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-right: 8px;
}

.spec-table td:last-child {
    color: var(--color-text-muted);
}

.spec-card-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-card-title svg {
    color: var(--color-accent-1);
}

/* ── Homelab device list ── */
.homelab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.homelab-item {
    background: var(--color-surface-offset);
    border-radius: 10px;
    padding: 12px 14px;
}

[data-theme="light"] .homelab-item {
    background: rgba(0, 0, 0, 0.04);
}

.homelab-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.homelab-item-spec {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ── Discord Badges ── */
.discord-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.discord-badge {
    font-size: 16px;
    line-height: 1;
    cursor: default;
    position: relative;
}

.discord-badge[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 11px;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 10;
    pointer-events: none;
}

.discord-decoration {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 84px;
    height: 84px;
    pointer-events: none;
}

/* ── Discord Card FIXES ── */
/* profile-row override removed */
.discord-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.discord-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid var(--color-surface);
    background: var(--color-surface-offset);
    display: block;
    position: relative;
    z-index: 2;
}

[data-theme="light"] .discord-avatar {
    border-color: #fff;
}

.discord-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 104px;
    height: 72px;
    pointer-events: none;
    z-index: 3;
}

.discord-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--color-surface);
    background: #747f8d;
    z-index: 4;
}

[data-theme="light"] .discord-status-dot {
    border-color: #fff;
}

.discord-status-dot.online {
    background: #23a55a;
}

.discord-status-dot.idle {
    background: #f0b232;
}

.discord-status-dot.dnd {
    background: #f23f43;
}

.discord-status-dot.offline {
    background: #747f8d;
}

.discord-user-info {
    padding-top: 15px;
    padding-bottom: 10px;
    min-width: 0;
    flex: 1;
}

.discord-username {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 5px;
}

.discord-tag {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 3px;
}

.discord-custom-status {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.discord-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.discord-badge {
    font-size: 15px;
    line-height: 1;
    cursor: default;
    position: relative;
}

.discord-badge::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 11px;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.discord-badge:hover::after {
    opacity: 1;
}

/* ══════════════════════════════════════
   NIXIE TUBE — Divergence Meter Style
   (Steins;Gate inspired account age)
   ══════════════════════════════════════ */
.nixie-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 8px;
    cursor: default;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .nixie-wrap {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(200, 100, 0, 0.25);
}

/* subtle scanline overlay */
.nixie-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 2px,
            rgba(0, 0, 0, 0.08) 4px);
    pointer-events: none;
    z-index: 0;
}

.nixie-label {
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: rgba(255, 140, 0, 0.5);
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

[data-theme="light"] .nixie-label {
    color: rgba(180, 80, 0, 0.6);
}

.nixie-display {
    display: flex;
    align-items: center;
    gap: 3px;
    position: relative;
    z-index: 1;
}

.nixie-tube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #ff8c00;
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 160, 0, 0.18) 0%, rgba(0, 0, 0, 0.6) 70%);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 4px;
    text-shadow:
        0 0 6px #ff8c00,
        0 0 14px rgba(255, 140, 0, 0.7),
        0 0 30px rgba(255, 100, 0, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 200, 0, 0.08),
        0 0 8px rgba(255, 140, 0, 0.15);
    animation: nixie-flicker 4s ease-in-out infinite;
    position: relative;
}

/* each tube flickers at slightly different times */
.nixie-tube:nth-child(1) {
    animation-delay: 0s;
}

.nixie-tube:nth-child(2) {
    animation-delay: 0.3s;
}

.nixie-tube:nth-child(3) {
    animation-delay: 0.7s;
}

.nixie-tube:nth-child(5) {
    animation-delay: 0.15s;
}

.nixie-tube:nth-child(6) {
    animation-delay: 0.5s;
}

.nixie-tube:nth-child(7) {
    animation-delay: 0.9s;
}

.nixie-tube:nth-child(8) {
    animation-delay: 0.2s;
}

@keyframes nixie-flicker {

    0%,
    100% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    93% {
        opacity: 0.55;
    }

    94% {
        opacity: 1;
    }

    96% {
        opacity: 0.7;
    }

    97% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nixie-tube {
        animation: none;
    }
}

[data-theme="light"] .nixie-tube {
    color: #c85000;
    text-shadow: 0 0 4px #c85000, 0 0 10px rgba(200, 80, 0, 0.4);
    background: radial-gradient(ellipse at 50% 30%, rgba(200, 80, 0, 0.1) 0%, rgba(240, 230, 220, 0.5) 70%);
    border-color: rgba(200, 80, 0, 0.25);
}

.nixie-dot {
    font-family: 'Orbitron', monospace;
    font-size: 22px;
    font-weight: 900;
    color: #ff8c00;
    text-shadow: 0 0 8px #ff8c00, 0 0 20px rgba(255, 140, 0, 0.5);
    line-height: 1;
    padding: 0 1px;
    align-self: flex-end;
    padding-bottom: 4px;
    animation: nixie-flicker 4s ease-in-out 0.5s infinite;
}

[data-theme="light"] .nixie-dot {
    color: #c85000;
    text-shadow: 0 0 6px rgba(200, 80, 0, 0.5);
}

.nixie-sublabel {
    font-size: 9px;
    letter-spacing: 0.15em;
    color: rgba(255, 140, 0, 0.35);
    text-transform: uppercase;
    font-family: var(--font-display);
    position: relative;
    z-index: 1;
}

[data-theme="light"] .nixie-sublabel {
    color: rgba(180, 80, 0, 0.45);
}

/* Status label */
.discord-custom-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
    margin-bottom: 3px;
}

.discord-status-label {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    font-weight: 600;
    flex-shrink: 0;
}

/* Nixie below card */
.nixie-wrap {
    margin: 8px 1.25rem 0.75rem;
}