@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;600&display=swap");

:root {
    --bg: #060814;
    --panel: rgba(16, 19, 36, 0.92);
    --muted: #b7bfdc;
    --bright: #f7f7ff;
    --border: rgba(255, 255, 255, 0.08);
    --card-glow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --accent: #ff6fa8;
    --accent-2: #5ee6ff;
    --accent-3: #ffa45a;
    --glass: rgba(255, 255, 255, 0.04);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Manrope", system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 18% 18%, rgba(255, 111, 168, 0.14), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(94, 230, 255, 0.15), transparent 30%),
        radial-gradient(circle at 70% 76%, rgba(255, 164, 90, 0.12), transparent 32%),
        var(--bg);
    color: var(--bright);
    min-height: 100vh;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 18px 60px;
    position: relative;
    z-index: 1;
}

.bg-blur {
    position: fixed;
    filter: blur(60px);
    opacity: 0.35;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    z-index: 0;
}

.bg-blur.one {
    background: #ff6fa8;
    top: 30px;
    right: 8%;
}

.bg-blur.two {
    background: #5ee6ff;
    bottom: 40px;
    left: 6%;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--card-glow);
    position: sticky;
    top: 12px;
    backdrop-filter: blur(12px);
}

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

.brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: url("/images/DanceReg_NorthAmerica_logo_transparent_2x1.png")
        center center / contain no-repeat;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: conic-gradient(from 160deg, var(--accent), var(--accent-3), var(--accent-2), var(--accent));
    box-shadow: 0 12px 30px rgba(255, 111, 168, 0.35);
    position: relative;
    overflow: hidden;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 12px;
    background: var(--bg);
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

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

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--bright);
    font-size: 12px;
}

.link {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
}

.link.strong {
    font-size: 16px;
}

#portalLayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
    margin-top: 16px;
}

#portalContent {
    min-width: 0;
}

.side-panel {
    position: sticky;
    top: 86px;
    height: fit-content;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--card-glow);
}

.desktop-right-only {
    display: none;
}

.card {
    background: var(--panel);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--card-glow);
    padding: 18px 18px 20px;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 40%);
}

.hero {
    padding: 22px;
}

.hero h1 {
    margin: 6px 0 10px 0;
    font-size: clamp(28px, 4vw, 40px);
}

.muted {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.field {
    flex: 1 1 320px;
    min-width: 260px;
    display: grid;
    gap: 6px;
}

label {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.4px;
}

input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--bright);
    font-size: 14px;
    outline: none;
}

input:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(94, 230, 255, 0.2);
}

.btn {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--bright);
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 14px 30px rgba(255, 111, 168, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-ghost,
.btn.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--bright);
    box-shadow: none;
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.05);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.section-head h3 {
    margin: 6px 0 0 0;
}

.badge {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--bright);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.chip {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    color: var(--bright);
}

.chip.pink {
    background: rgba(255, 111, 168, 0.16);
    border-color: rgba(255, 111, 168, 0.32);
}

.chip.blue {
    background: rgba(94, 230, 255, 0.16);
    border-color: rgba(94, 230, 255, 0.32);
}

.chip.orange {
    background: rgba(255, 164, 90, 0.18);
    border-color: rgba(255, 164, 90, 0.34);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.pill-btn {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: all 0.12s ease;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.pill-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}
.pill-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
}
.pill-usa {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.45);
}
.pill-canada {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
}
.meta-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tcard.card {
    padding: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.06));
}

.tcard h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.tcard .muted {
    font-size: 13px;
}

.line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sponsor-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 10px auto;
    max-width: min(100%, 1000px);
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
}
.sponsor-slot img {
    display: block;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    object-fit: contain;
}

.site-footer {
    margin-top: 18px;
    padding: 10px 6px;
    color: var(--muted);
    font-size: 13px;
    display: grid;
    gap: 4px;
}

@media (max-width: 960px) {
    #portalLayout {
        grid-template-columns: 1fr;
    }

    .desktop-right-only {
        display: none !important;
    }

    .topbar {
        position: static;
    }
}

@media (min-width: 961px) {
    .desktop-right-only {
        display: block;
    }
}
