/* ==========================================================================
   Global Network — User Control Panel (v4)
   Hibrid dizájn: Global Network Launcher színek + SeeMTA v4 UCP elrendezés
   ========================================================================== */

:root {
    --bg-canvas: #14161a;
    --bg-banner: #0c0e11;
    --bg-surface: #181b20;
    --bg-surface-2: #1e2228;
    --bg-surface-hover: #242931;
    --bg-input: #101216;

    --border-subtle: #252932;
    --border-strong: #323742;

    --brand: #20c97f;
    --brand-hover: #25dc8c;
    --brand-dim: rgba(32, 201, 127, 0.12);
    --brand-border: rgba(32, 201, 127, 0.32);

    --gold: #eab308;
    --gold-bright: #facc15;
    --gold-bg: rgba(234, 179, 8, 0.16);
    --sky: #38bdf8;
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.14);

    --text-primary: #f1f3f5;
    --text-secondary: #a1a8b3;
    --text-muted: #707885;

    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;

    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --container-max: 100%;
}

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

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-canvas);
    background-image: radial-gradient(ellipse 75% 420px at 50% 0%, rgba(32, 201, 127, 0.045), transparent 72%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
.mono { font-family: var(--font-mono); }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #101216; }
::-webkit-scrollbar-thumb { background: #2a2e37; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #3a3f4b; }

/* ==========================================================================
   Polygonal Dark Geometric Top Banner (SeeMTA v4 stílusú fejléc)
   ========================================================================== */
.ucp-banner-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background-color: rgba(12, 14, 17, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    background-image:
        radial-gradient(ellipse 55% 110% at 15% 0%, rgba(32, 201, 127, 0.14), transparent 70%),
        radial-gradient(ellipse 40% 90% at 85% 10%, rgba(234, 179, 8, 0.08), transparent 70%),
        linear-gradient(125deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.03) 26%, transparent 26.2%),
        linear-gradient(235deg, rgba(255,255,255,0.022) 0%, rgba(255,255,255,0.022) 34%, transparent 34.2%);
    min-height: 74px;
    display: flex;
    align-items: center;
}

.ucp-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

.banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 20px;
    padding: 14px 0;
}

.banner-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

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

.banner-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(32, 201, 127, 0.34));
}

.ucp-footer {
    background: var(--bg-banner);
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0;
    margin-top: 24px;
}

.ucp-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.ucp-footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.ucp-footer-brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.ucp-footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.ucp-footer-links a:hover {
    color: #ffffff;
}

.banner-brand-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.1;
}

.banner-brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.banner-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.banner-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: background-color 0.14s ease, color 0.14s ease;
    cursor: pointer;
    background: transparent;
    border: none;
}

.banner-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.banner-link.accent-sky { color: #38bdf8; }
.banner-link.accent-gold { color: #facc15; }
.banner-link.accent-brand { color: var(--brand); }

.banner-link.pill-surface {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

/* ==========================================================================
   Centered 2-Column Layout (Public News + Login AND Authenticated UCP)
   ========================================================================== */
.ucp-page-wrap {
    padding: 28px 0 56px;
}

.portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 24px;
    align-items: start;
    max-width: 1480px;
    margin: 0 auto;
}

.ucp-app-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.portal-grid > *,
.ucp-app-grid > *,
.grid > * {
    min-width: 0;
}

/* Centered Sidebar Card (Launcher nav stílus) */
.ucp-side-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 14px;
    position: sticky;
    top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.nav-section-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 10px 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    margin-bottom: 2px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.14s ease;
}

.nav-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(32, 201, 127, 0.14) 0%, rgba(32, 201, 127, 0.03) 100%);
    color: #ffffff;
    border-color: rgba(32, 201, 127, 0.28);
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--brand);
}

.nav-item.active svg {
    color: var(--brand);
}

.nav-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
    background: var(--gold-bg);
    color: #facc15;
}

/* ==========================================================================
   Cards, News Feed, Grids, Badges, Buttons
   ========================================================================== */
.section-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 20px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.card-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

/* News Card (SeeMTA v4 Hírek kártya stílus) */
.news-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px 26px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.news-card:hover {
    border-color: var(--border-strong);
}

.news-watermark {
    position: absolute;
    right: -18px;
    top: -10px;
    bottom: -10px;
    width: 44%;
    pointer-events: none;
    background:
        radial-gradient(circle at 80% 35%, rgba(32, 201, 127, 0.06), transparent 65%),
        linear-gradient(135deg, transparent 35%, rgba(255, 255, 255, 0.02) 35.5%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 26px;
    opacity: 0.22;
    user-select: none;
}

.news-watermark-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.02;
    text-align: right;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.news-content {
    position: relative;
    z-index: 2;
}

.news-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px;
}

.news-date {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.news-h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
    margin: 14px 0 6px;
}

/* Grids */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-main-side { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); }

/* Stat KPI Card */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.stat-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.ucp-two-col {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.ucp-col-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.ucp-page-title {
    margin: 0 0 18px;
}

.ucp-page-title h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.ucp-page-title p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* SeeMTA v4 stílusú két tónusú adat-kapszulák */
.kv-pill-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.kv-pill {
    display: inline-flex;
    align-items: stretch;
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 11.5px;
    font-weight: 600;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.kv-key {
    background: #232730;
    color: #d1d5db;
    padding: 4px 9px;
    white-space: nowrap;
}

.kv-val {
    padding: 4px 9px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kv-val.is-time {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

.kv-val.is-sky { background: #1d9bf0; color: #ffffff; }
.kv-val.is-green { background: #1e9e63; color: #ffffff; }
.kv-val.is-gold { background: #d4a72c; color: #161204; }
.kv-val.is-neutral { background: #2d323d; color: #f1f3f5; }

.plate-chip {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 4px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.plate-chip-color {
    width: 12px;
    align-self: stretch;
    display: inline-block;
}

.plate-chip-text {
    padding: 2px 8px;
    letter-spacing: 0.04em;
}

.empty-state-row {
    padding: 18px 10px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.banner-link.is-active {
    background: rgba(32, 201, 127, 0.14);
    color: var(--brand);
}

@media (max-width: 900px) {
    .ucp-two-col { grid-template-columns: 1fr; }
}
.data-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(16, 18, 22, 0.9) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.data-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.data-card.accent-danger { border-left: 3px solid var(--danger); }
.data-card.accent-warning { border-left: 3px solid var(--gold); }
.data-card.accent-brand { border-left: 3px solid var(--brand); }

.data-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.data-card-foot {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
}

.stat-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(16px, 1.25vw, 20px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    white-space: nowrap;
}

.stat-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Hero Banner (Authenticated Dashboard) */
.launcher-hero {
    background:
        radial-gradient(ellipse 55% 85% at 92% 15%, rgba(32, 201, 127, 0.09), transparent 70%),
        var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.launcher-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-char-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.skin-badge {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-strong);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.skin-badge span.skin-id { font-size: 10px; font-weight: 600; color: var(--text-muted); margin-top: 2px; }

.online-ring {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    background: var(--brand);
}

.online-ring.offline { background: var(--text-muted); }

.hero-bars {
    display: grid;
    grid-template-columns: repeat(2, 145px);
    gap: 9px 16px;
}

.mini-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.progress-track {
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: #101216;
    overflow: hidden;
}

.progress-fill { height: 100%; border-radius: 99px; background: var(--brand); }
.progress-fill.red { background: #ef4444; }
.progress-fill.blue { background: #38bdf8; }
.progress-fill.amber { background: #eab308; }

.launcher-status-strip {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.status-kv { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.status-kv strong { color: var(--text-primary); }
.status-sep { color: #2d323c; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-success { background: var(--brand-dim); color: var(--brand); }
.badge-solid-green { background: #1e9e63; color: #ffffff; }
.badge-solid-gold { background: #d4a72c; color: #161204; }
.badge-warning { background: var(--gold-bg); color: #facc15; }
.badge-danger  { background: var(--danger-bg); color: #f87171; }
.badge-info    { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.badge-neutral { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.12s ease;
    white-space: nowrap;
}

.btn:active { transform: translateY(0); }
.btn-sm { padding: 6px 11px; font-size: 12px; }

.btn-primary {
    background: var(--brand);
    color: #05160e;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--brand-hover);
    box-shadow: 0 4px 18px rgba(32, 201, 127, 0.28);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-surface-2);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.btn-secondary:hover { background: var(--bg-surface-hover); }

.btn-danger {
    background: var(--danger-bg);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-surface-2); color: #ffffff; }

/* Forms & SeeMTA-style Icon Input Group */
.form-group { margin-bottom: 13px; }

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-dim);
}
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.input-icon-group {
    display: flex;
    align-items: stretch;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: var(--bg-input);
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.input-icon-group:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-dim);
}

.input-icon-addon {
    width: 40px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.input-icon-field {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px 12px;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
}

.input-icon-field::placeholder { color: var(--text-muted); }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; }

.list-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.list-pagination-status {
    min-width: 48px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

table.ucp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ucp-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 9px 10px;
    border-bottom: 1px solid var(--border-subtle);
}
table.ucp-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}
table.ucp-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
table.ucp-table tbody tr:last-child td { border-bottom: none; }

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 7px 14px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.14s ease;
}

.tab-btn:hover { color: #ffffff; background: var(--bg-surface-2); }
.tab-btn.active {
    background: var(--brand-dim);
    border-color: var(--brand-border);
    color: var(--brand);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Dropdown, Modal, Toast */
.dropdown-wrap { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65);
    display: none;
    z-index: 80;
    overflow: hidden;
}
.dropdown-menu.open { display: block; }
.notif-item { padding: 11px 13px; border-bottom: 1px solid var(--border-subtle); }
.notif-item.unread { border-left: 2px solid var(--brand); background: rgba(32, 201, 127, 0.04); }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 8, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 120;
}
.toast {
    min-width: 260px;
    max-width: 380px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.toast.success { border-color: var(--brand-border); }
.toast.error   { border-color: rgba(239, 68, 68, 0.4); }

/* Season Pass & Tickets */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 12px; }
.sp-tier { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 13px; display: flex; flex-direction: column; gap: 9px; }
.sp-tier.unlocked { border-color: var(--border-strong); }
.sp-slot { padding: 9px; border-radius: var(--radius-sm); background: var(--bg-input); border: 1px solid var(--border-subtle); }
.sp-slot.premium { border-color: rgba(234, 179, 8, 0.25); background: rgba(234, 179, 8, 0.03); }

.ticket-thread { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; padding-right: 4px; }
.chat-bubble { padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-surface-2); border: 1px solid var(--border-subtle); }
.chat-bubble.admin { border-color: var(--brand-border); background: rgba(32, 201, 127, 0.05); }

.mobile-menu-btn {
    display: none;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: var(--text-primary);
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .portal-grid { grid-template-columns: 1fr; }
    .ucp-app-grid { grid-template-columns: 1fr; }
    .ucp-side-card { display: none; position: static; }
    .ucp-side-card.open { display: block; }
    .mobile-menu-btn { display: inline-flex; }
    .grid-main-side { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .ucp-container { padding: 0 14px; }
    .banner-inner { flex-direction: column; align-items: flex-start; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-bars { grid-template-columns: 1fr 1fr; width: 100%; }
    .news-watermark { display: none; }
}
