/* ==========================================================================
   APEX DUELOS - TOURNAMENT FRONTEND VIEWER
   Compatible with Kinetic Seven (Obsidian Surfaces & Kinetic Red)
   ========================================================================== */

.apex-tournament-view {
    --at-primary: #990000;
    --at-primary-hover: #b82014;
    --at-neon-red: #ff2e24;
    --at-gold: #f59e0b;
    --at-silver: #94a3b8;
    --at-surface-0: #0a0a0a;
    --at-surface-1: #121212;
    --at-surface-2: #1a1a1a;
    --at-surface-3: #262626;
    --at-border: rgba(255, 255, 255, 0.08);
    --at-text-high: #ffffff;
    --at-text-med: #e5e2e1;
    --at-text-low: #aeabaa;
    --at-radius: 12px;
    --at-transition: all 0.22s ease-in-out;

    font-family: 'Lexend', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--at-text-med);
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.apex-tournament-view * {
    box-sizing: border-box;
}

/* Header */
.apex-tv-header {
    background: var(--at-surface-1);
    border: 1px solid var(--at-border);
    border-radius: var(--at-radius);
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.apex-tv-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--at-primary), var(--at-neon-red), var(--at-primary));
}

.apex-tv-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(153, 0, 0, 0.2);
    border: 1px solid rgba(255, 46, 36, 0.35);
    color: var(--at-neon-red);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.apex-tv-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--at-text-high);
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.apex-tv-meta {
    font-size: 0.88rem;
    color: var(--at-text-low);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.apex-tv-dot {
    color: var(--at-primary);
}

/* Tabs */
.apex-tv-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    background: var(--at-surface-1);
    padding: 6px;
    border-radius: var(--at-radius);
    border: 1px solid var(--at-border);
    overflow-x: auto;
}

.apex-tv-tab-btn {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--at-text-low);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--at-transition);
}

.apex-tv-tab-btn:hover {
    color: var(--at-text-high);
    background: var(--at-surface-2);
}

.apex-tv-tab-btn.active {
    background: var(--at-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(153, 0, 0, 0.4);
}

/* Tab Content Visibility */
.apex-tv-tab-content {
    display: none;
}

.apex-tv-tab-content.active {
    display: block;
}

.apex-tv-empty {
    background: var(--at-surface-1);
    border: 1px solid var(--at-border);
    border-radius: var(--at-radius);
    padding: 36px 20px;
    text-align: center;
    color: var(--at-text-low);
}

/* ==========================================================================
   TAB 1: STANDINGS TABLE
   ========================================================================== */
.apex-standings-card {
    background: var(--at-surface-1);
    border: 1px solid var(--at-border);
    border-radius: var(--at-radius);
    margin-bottom: 24px;
    overflow: hidden;
}

.apex-standings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    background: var(--at-surface-2);
    border-bottom: 1px solid var(--at-border);
    flex-wrap: wrap;
    gap: 10px;
}

.apex-standings-header h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--at-text-high);
}

.apex-standings-legend {
    font-size: 0.78rem;
    color: var(--at-text-low);
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.gold { background: var(--at-gold); }
.legend-dot.silver { background: var(--at-silver); }

.apex-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.apex-tv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: center;
}

.apex-tv-table th,
.apex-tv-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--at-border);
}

.apex-tv-table th {
    background: var(--at-surface-0);
    color: var(--at-text-low);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apex-tv-table .th-pos,
.apex-tv-table .td-pos {
    width: 44px;
}

.apex-tv-table .th-team,
.apex-tv-table .td-team {
    text-align: left;
    min-width: 200px;
}

.team-info-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.team-info-row .team-name {
    font-weight: 700;
    color: var(--at-text-high);
    font-size: 0.95rem;
}

.team-info-row .team-players {
    font-size: 0.78rem;
    color: var(--at-text-low);
}

.pos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--at-surface-3);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--at-text-high);
}

.is-qualify-gold .pos-badge {
    background: rgba(245, 158, 11, 0.2);
    color: var(--at-gold);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.is-qualify-silver .pos-badge {
    background: rgba(148, 163, 184, 0.2);
    color: var(--at-silver);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.td-dif {
    font-family: monospace;
    font-weight: 600;
}

.td-pts {
    color: var(--at-neon-red);
    font-size: 1.05rem;
    background: rgba(153, 0, 0, 0.07);
}

/* ==========================================================================
   TAB 2: FIXTURE
   ========================================================================== */
.apex-fixture-round-box {
    margin-bottom: 26px;
}

.apex-round-title-bar {
    background: var(--at-surface-2);
    padding: 10px 18px;
    border-radius: 8px;
    border-left: 3px solid var(--at-neon-red);
    margin-bottom: 14px;
}

.apex-round-title-bar h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--at-text-high);
}

.apex-fixture-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.apex-match-card {
    background: var(--at-surface-1);
    border: 1px solid var(--at-border);
    border-radius: var(--at-radius);
    padding: 18px;
    position: relative;
    transition: var(--at-transition);
}

.apex-match-card:hover {
    border-color: rgba(255, 46, 36, 0.4);
    transform: translateY(-2px);
}

.apex-card-group-tag {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--at-neon-red);
    background: rgba(153, 0, 0, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.apex-mc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.apex-mc-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apex-mc-team.team-1 {
    justify-content: flex-start;
}

.apex-mc-team.team-2 {
    justify-content: flex-end;
    text-align: right;
}

.apex-mc-team .team-text {
    display: flex;
    flex-direction: column;
}

.apex-mc-team .t-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--at-text-high);
}

.apex-mc-team .t-sub {
    font-size: 0.72rem;
    color: var(--at-text-low);
}

.apex-mc-team .team-score {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--at-text-high);
    min-width: 24px;
    text-align: center;
}

.apex-mc-team.is-winner .t-name {
    color: #10b981;
}

.apex-mc-team.is-winner .team-score {
    color: #10b981;
}

.apex-mc-divider {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--at-text-low);
    opacity: 0.6;
}

.apex-mc-footer {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--at-border);
    padding-top: 8px;
}

.match-badge-fin {
    font-size: 0.72rem;
    color: #10b981;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-badge-pen {
    font-size: 0.72rem;
    color: var(--at-text-low);
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   TAB 3: PLAYOFF BRACKET
   ========================================================================== */
.apex-tv-subtabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.apex-tv-subtab-btn {
    padding: 8px 18px;
    background: var(--at-surface-1);
    border: 1px solid var(--at-border);
    border-radius: 9999px;
    color: var(--at-text-low);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--at-transition);
}

.apex-tv-subtab-btn:hover {
    color: var(--at-text-high);
    border-color: var(--at-neon-red);
}

.apex-tv-subtab-btn.active {
    background: var(--at-primary);
    border-color: var(--at-neon-red);
    color: #fff;
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.4);
}

.apex-bracket-cup-view {
    display: none;
}

.apex-bracket-cup-view.active {
    display: block;
}

.apex-bracket-scroll-container {
    overflow-x: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.apex-bracket-tree {
    display: flex;
    gap: 36px;
    min-width: 680px;
    align-items: stretch;
}

.apex-bracket-round {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.apex-round-header {
    text-align: center;
    padding: 8px 12px;
    background: var(--at-surface-2);
    border: 1px solid var(--at-border);
    border-radius: 8px;
    margin-bottom: 20px;
}

.apex-round-header h4 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--at-text-high);
}

.apex-round-matches {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    gap: 20px;
}

.apex-bracket-match {
    background: var(--at-surface-1);
    border: 1px solid var(--at-border);
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    transition: var(--at-transition);
}

.apex-bracket-match:hover {
    border-color: var(--at-neon-red);
}

.bm-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
}

.bm-team:last-child {
    border-bottom: none;
}

.bm-name {
    color: var(--at-text-med);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.bm-score {
    font-weight: 800;
    color: var(--at-text-high);
    font-size: 1rem;
    padding-left: 8px;
}

.bm-team.is-winner .bm-name,
.bm-team.is-winner .bm-score {
    color: #10b981;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .apex-tv-title {
        font-size: 1.45rem;
    }
    .apex-tv-tabs {
        padding: 4px;
    }
    .apex-tv-tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-width: 110px;
    }
    .apex-fixture-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Outcome Badges (Gana / Pierde / Empata) */
.badge-outcome {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-outcome.badge-win {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.badge-outcome.badge-loss {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.badge-outcome.badge-draw {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

.badge-outcome.badge-pending {
    color: var(--at-text-low);
    font-size: 0.9rem;
}

.bm-outcome {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.bm-outcome.bm-win {
    background: rgba(16, 185, 129, 0.25);
    color: #10b981;
}

.bm-outcome.bm-loss {
    background: rgba(255, 255, 255, 0.05);
    color: var(--at-text-low);
}

.bm-outcome.bm-champ {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.45));
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
    white-space: nowrap;
}

.badge-outcome.bm-champ {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.45));
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.apex-bracket-match.is-final-match {
    border-color: rgba(245, 158, 11, 0.4);
}

.apex-bracket-match.has-champion {
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
    background: linear-gradient(180deg, var(--at-surface-1), rgba(245, 158, 11, 0.08));
}

.bm-team.is-winner.is-champion .bm-name,
.bm-team.is-winner.is-champion .bm-score {
    color: #fde047 !important;
    font-weight: 800;
}

/* ==========================================================================
   LLAVE DE 3 (TRIANGULAR) - BRACKET & STANDINGS STYLES
   ========================================================================== */
.apex-standings-triangular {
    border-color: rgba(245, 158, 11, 0.35) !important;
    position: relative;
}

.apex-standings-triangular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #ff2e24);
    border-radius: 12px 12px 0 0;
}

.apex-bracket-tri-card {
    background: var(--at-surface-1);
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    min-width: 220px;
    transition: var(--at-transition);
}

.apex-bracket-tri-card:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}

.apex-bracket-tri-card.status-finished {
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.bm-tri-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.bm-tri-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bm-tri-rule {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--at-text-low);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bm-tri-teams-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bm-tri-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.84rem;
    transition: all 0.2s ease;
}

.bm-tri-item.is-winner {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}

.bm-tri-rank {
    font-weight: 800;
    font-size: 0.76rem;
    color: var(--at-text-low);
    width: 20px;
    flex-shrink: 0;
}

.bm-tri-item.is-winner .bm-tri-rank {
    color: #10b981;
}

.bm-tri-team-name {
    font-weight: 600;
    color: var(--at-text-high);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0 8px;
}

.bm-tri-item.is-winner .bm-tri-team-name {
    color: #10b981;
    font-weight: 700;
}

.bm-tri-pts {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--at-text-med);
    flex-shrink: 0;
}

.bm-tri-badge-adv {
    font-size: 0.65rem;
    font-weight: 800;
    background: #10b981;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 6px;
    flex-shrink: 0;
}

.apex-tri-rule-note {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--at-text-med);
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
    line-height: 1.4;
}

/* ==========================================================================
   MULTI-INSTANCE TOURNAMENT SWITCHER
   ========================================================================== */
.apex-tv-instance-switcher {
    margin-bottom: 16px;
    background: var(--at-surface-1);
    border: 1px solid var(--at-border);
    border-radius: var(--at-radius);
    padding: 10px 16px;
}

.switcher-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.switcher-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--at-text-med);
}

.apex-instance-select {
    background: var(--at-surface-2) !important;
    border: 1px solid var(--at-border) !important;
    color: var(--at-text-high) !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: var(--at-transition) !important;
    min-width: 260px;
}

.apex-instance-select:hover,
.apex-instance-select:focus {
    border-color: var(--at-neon-red) !important;
    box-shadow: 0 0 12px rgba(255, 46, 36, 0.25) !important;
}

/* ==========================================================================
   APEX DUELOS HUB / LOBBY OF TOURNAMENTS
   ========================================================================== */
.apex-hub-root {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Lexend', 'Space Grotesk', sans-serif;
    color: var(--at-text-med);
    box-sizing: border-box;
}

.apex-hub-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 24px 20px;
    background: var(--at-surface-1);
    border: 1px solid var(--at-border);
    border-radius: var(--at-radius);
}

.apex-hub-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 46, 36, 0.15);
    border: 1px solid rgba(255, 46, 36, 0.4);
    color: var(--at-neon-red);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 9999px;
    margin-bottom: 10px;
}

.apex-hub-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.apex-hub-header p {
    color: var(--at-text-low);
    font-size: 0.95rem;
    margin: 0 auto;
    max-width: 600px;
}

.apex-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.apex-hub-card {
    background: var(--at-surface-1);
    border: 1px solid var(--at-border);
    border-radius: var(--at-radius);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: var(--at-transition);
}

.apex-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.apex-hub-card.hub-status-live {
    border-color: rgba(255, 46, 36, 0.5);
    box-shadow: 0 0 20px rgba(255, 46, 36, 0.15);
}

.apex-hub-card.hub-status-open {
    border-color: rgba(245, 158, 11, 0.5);
}

.apex-hub-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.hub-card-status {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
}

.hub-card-status.hub-status-live {
    background: rgba(255, 46, 36, 0.2);
    color: #ff2e24;
}

.hub-card-status.hub-status-open {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.hub-card-status.hub-status-ready {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.hub-card-status.hub-status-default {
    background: rgba(255, 255, 255, 0.08);
    color: var(--at-text-low);
}

.hub-card-teams {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--at-text-low);
}

.apex-hub-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.apex-hub-card-fmt {
    font-size: 0.84rem;
    color: var(--at-text-low);
    margin-bottom: 18px;
}

.apex-hub-card-fmt strong {
    color: var(--at-text-high);
}

.apex-hub-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.apex-hub-btn {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--at-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.apex-hub-btn-view {
    background: var(--at-surface-2);
    border: 1px solid var(--at-border);
    color: var(--at-text-high);
}

.apex-hub-btn-view:hover {
    background: var(--at-surface-3);
    border-color: var(--at-neon-red);
    color: #ffffff;
}

.apex-hub-btn-reg {
    background: linear-gradient(135deg, var(--at-primary) 0%, var(--at-primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(153, 0, 0, 0.4);
}

.apex-hub-btn-reg:hover {
    background: linear-gradient(135deg, var(--at-primary-hover) 0%, var(--at-neon-red) 100%);
    box-shadow: 0 6px 18px rgba(255, 46, 36, 0.5);
    color: #ffffff;
}


