:root {
    --bg-canvas: #0a0a0d;
    --bg-card: #131317;
    --bg-alt: #16161b;
    --bg-deep: #050506;
    --text-main: #f2f2f5;
    --text-soft: #9497a3;
    --text-on-dark: #ffffff;
    --line: #242429;
    --primary: #8b5cf6;
    --primary-strong: #7c3aed;
    --accent: #c084fc;
    --cyan: #38bdf8;
    --cyan-strong: #0ea5e9;
    --success: #22c55e;
    --warning: #f59e0b;
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    color: var(--text-main);
    background: var(--bg-canvas);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

code {
    font-family: "IBM Plex Mono", Consolas, monospace;
}

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: var(--bg-canvas);
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(120px);
    opacity: 0.22;
    animation: float 26s ease-in-out infinite;
}

.orb-one {
    width: 560px;
    height: 560px;
    top: -180px;
    left: -160px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.5) 0%, rgba(139, 92, 246, 0) 70%);
    animation-duration: 24s;
}

.orb-two {
    width: 500px;
    height: 500px;
    right: -120px;
    bottom: -120px;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.35) 0%, rgba(56, 189, 248, 0) 70%);
    animation-duration: 30s;
}

.grid-overlay {
    display: none;
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 13, 0.88);
    border-bottom: 1px solid var(--line);
    height: 72px;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 1.3rem;
}

.brand-logo {
    display: block;
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    object-fit: cover;
    background: transparent;
    box-shadow: 0 0 0 1px var(--line);
    transition: box-shadow 0.2s ease;
}

.brand:hover .brand-logo {
    box-shadow: 0 0 0 1px var(--primary);
}

.brand-name {
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-btn-gray {
    background: var(--bg-card);
    border-color: var(--line);
    color: var(--text-soft);
}

.nav-btn-gray:hover {
    color: var(--text-main);
    border-color: #38383f;
}

.nav-btn-gray.active {
    background: var(--bg-alt);
    border-color: #38383f;
    color: #ffffff;
}

.nav-discord-wrap {
    position: relative;
}

.nav-btn-discord {
    background: rgba(88, 101, 242, 0.14);
    border-color: rgba(88, 101, 242, 0.4);
    color: #b5bcfa;
    font-family: inherit;
}

.nav-btn-discord:hover {
    background: rgba(88, 101, 242, 0.22);
    border-color: rgba(88, 101, 242, 0.65);
    color: #dbdfff;
}

.nav-arrow {
    transition: transform 0.18s ease;
}

.nav-discord-wrap.open .nav-arrow {
    transform: rotate(180deg);
}

.discord-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 30;
}

.nav-discord-wrap.open .discord-dropdown {
    display: flex;
}

.discord-dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 10px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.15s ease;
}

.discord-dropdown-item:hover {
    background: var(--bg-alt);
}

.discord-dropdown-item strong {
    font-size: 0.88rem;
    font-weight: 700;
}

.discord-dropdown-item span {
    font-size: 0.76rem;
    color: var(--text-soft);
}

.section-spacing {
    padding: 86px 0;
}

.hero {
    padding-top: 74px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 14px;
    color: var(--text-soft);
}

.hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(3rem, 8vw, 5.2rem);
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.lede {
    margin-top: 18px;
    max-width: 62ch;
    color: var(--text-soft);
    font-size: 1.06rem;
}

.tag-list {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span {
    background: var(--bg-card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hint {
    margin-top: 13px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.hint code {
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 500;
}

.join-panel {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.join-panel h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-main);
}

.meta-list {
    margin-top: 16px;
    list-style: none;
    border-top: 1px solid var(--line);
}

.meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.meta-list span {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.meta-list strong {
    text-align: right;
    color: var(--text-main);
    font-size: 0.9rem;
}

.connect-status {
    margin-top: 15px;
    min-height: 44px;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    color: var(--text-main);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.panel-btn {
    width: 100%;
    margin-top: 10px;
}

.section-head {
    margin-bottom: 24px;
}

.section-head h2 {
    margin-top: 12px;
    font-size: clamp(2.1rem, 5vw, 4rem);
    color: var(--text-main);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--text-main);
}

.card p {
    margin-top: 10px;
    color: var(--text-soft);
}

.card-btn-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.card-btn-row .btn {
    flex: 1 1 auto;
}

.section-alt {
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.section-copy {
    margin-top: 14px;
    color: var(--text-soft);
    max-width: 64ch;
}

.check-list {
    margin-top: 16px;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 22px;
    margin: 8px 0;
    color: var(--text-main);
    font-weight: 600;
}

.check-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 800;
}

.framework-panel {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    color: var(--text-on-dark);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow-md);
}

.framework-panel h3 {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.metric {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.metric span {
    display: block;
    color: var(--text-soft);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
}

.steps-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.94rem;
}

.step h3 {
    margin-top: 10px;
    font-size: clamp(1.55rem, 3vw, 2rem);
    color: var(--text-main);
}

.step p {
    margin-top: 8px;
    color: var(--text-soft);
}

.command-box {
    margin-top: 18px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}

.command-box p {
    color: var(--text-soft);
    text-align: center;
}

.command-row {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.command-pair {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.command-row code {
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
}

.site-footer {
    padding: 64px 0 44px;
    border-top: 1px solid var(--line);
    background: var(--bg-deep);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 26px;
    align-items: stretch;
}

.footer-staff,
.footer-links {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.footer-section-head h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.footer-section-head p {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.footer-links .footer-section-head {
    text-align: center;
}

.team-banner {
    margin-top: 16px;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    display: block;
}

.staff-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.staff-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    gap: 10px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.staff-card img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--bg-alt);
}

.staff-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.staff-meta strong {
    font-size: 1rem;
}

.staff-rank {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.staff-quote {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.footer-links ul {
    margin-top: 16px;
    list-style: none;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 600;
    border-top: 1px solid var(--line);
}

.btn {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    padding: 12px 22px;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--primary-strong);
}

.btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -30%;
    width: 30%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-120%);
}

.btn-primary:hover::after {
    animation: shimmer 1.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-main);
    padding: 12px 20px;
}

.btn-ghost:hover {
    background: var(--bg-card);
    border-color: var(--text-soft);
    color: #ffffff;
}

.discord-cta {
    background: linear-gradient(135deg, #5865f2 0%, #6d77f7 45%, #8ea1ff 100%);
    border: 1px solid rgba(174, 186, 255, 0.65);
    color: #f4f7ff;
    box-shadow: 0 10px 24px rgba(88, 101, 242, 0.4);
}

.discord-cta:hover {
    box-shadow: 0 12px 30px rgba(114, 137, 218, 0.46);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-main);
    padding: 11px 18px;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--bg-card);
    color: #ffffff;
    border-color: var(--cyan);
}

.btn-small {
    padding: 9px 12px;
    font-size: 0.86rem;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.16s;
}

.delay-3 {
    transition-delay: 0.24s;
}

@keyframes float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, -22px, 0) scale(1.03);
    }
}

@keyframes drift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 140px 120px;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-150%) skewX(-15deg);
    }
    100% {
        transform: translateX(450%) skewX(-15deg);
    }
}

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .hero-grid,
    .split-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .section-spacing {
        padding: 62px 0;
    }

    .site-header {
        position: static;
    }

    .card-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .command-row,
    .command-pair {
        flex-direction: column;
        align-items: stretch;
    }

    .command-row {
        gap: 16px;
    }

    .hero-actions .btn,
    .command-row .btn,
    .command-row code {
        width: 100%;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Event Schedule & Custom Styles */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.event-img-container {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-img {
    transform: scale(1.05);
}

.event-placeholder-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.event-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(10, 10, 13, 0.85);
    border: 1px solid var(--line);
    color: var(--text-main);
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.event-badge.tbd {
    border-color: var(--cyan);
    color: #ffffff;
}

.event-badge.live {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    color: #34d399;
}

.event-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-info h3 {
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    line-height: 1.15;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.event-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    font-weight: 700;
}

.event-date-label {
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    color: var(--text-soft);
}

.event-date-value {
    color: #ffffff;
    font-family: "IBM Plex Mono", monospace;
}

.event-date-value.tbd {
    color: var(--cyan);
}

.event-desc {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.event-desc p {
    margin: 0;
}

.event-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.event-actions .btn {
    padding-left: 8px;
    padding-right: 8px;
}

.events-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.events-toolbar-info {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 500;
}

.events-toolbar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    flex: 0 0 auto;
}

.events-toolbar-dot.offline {
    background: var(--text-soft);
    box-shadow: 0 0 0 3px rgba(148, 151, 163, 0.15);
}

.events-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.events-toolbar-msg {
    color: var(--text-soft);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.events-loader,
.events-empty,
.events-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.events-empty p:first-child,
.events-error p:first-child {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.events-empty p:last-child,
.events-error p:last-child {
    color: var(--text-soft);
    font-size: 0.92rem;
    margin-top: 8px;
}

.events-error p:first-child {
    color: var(--cyan);
}

/* Status Page */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 20px;
    transition: border-color 0.2s ease;
}

.status-card.offline {
    border-color: rgba(239, 68, 68, 0.35);
}

.status-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}

.status-info {
    flex: 1 1 auto;
    min-width: 0;
}

.status-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-name-row strong {
    font-size: 1rem;
    color: var(--text-main);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--line);
}

.status-pill.online {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.status-pill.offline {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.status-pill.checking {
    background: var(--bg-alt);
    color: var(--text-soft);
}

.status-desc {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.status-meta {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.8rem;
    font-family: "IBM Plex Mono", monospace;
}

/* Event Details Modal */
.event-card {
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 1, 16, 0.72);
    backdrop-filter: blur(6px);
}

.modal-overlay.open {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.modal-box {
    position: relative;
    width: min(560px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.18s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(10, 10, 13, 0.75);
    color: var(--text-main);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.modal-close:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
}

.modal-media {
    width: 100%;
    height: 200px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-media img.modal-media-placeholder {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: 12px;
}

.modal-body {
    padding: 24px;
}

.modal-body h2 {
    margin-top: 12px;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    color: #ffffff;
    letter-spacing: -0.01em;
}

.modal-meta-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.92rem;
}

.modal-meta-label {
    flex: 0 0 auto;
    width: 62px;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--text-soft);
}

.modal-meta-value {
    color: var(--text-main);
    font-weight: 600;
}

.modal-desc {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.6;
}

.modal-calendar {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.modal-calendar-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.modal-calendar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-calendar-note {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.88rem;
    display: none;
}

.modal-actions {
    margin-top: 20px;
}

.modal-actions .btn {
    width: 100%;
}

@media (max-width: 560px) {
    .modal-meta-row {
        flex-direction: column;
        gap: 2px;
    }

    .modal-meta-label {
        width: auto;
    }
}
