.tournament-signup-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.signup-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b0f18;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
}

.signup-hero-backdrop {
    position: absolute;
    inset: 0;
}

.signup-hero-backdrop img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.signup-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, rgba(6, 9, 15, 0.95) 0%, rgba(8, 12, 20, 0.88) 46%, rgba(8, 12, 20, 0.74) 100%),
        radial-gradient(circle at top right, rgba(209, 3, 184, 0.24), transparent 34%),
        radial-gradient(circle at bottom left, rgba(38, 222, 129, 0.14), transparent 32%);
}

.signup-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.82fr);
    gap: 20px;
    padding: 28px;
}

.signup-hero-main,
.signup-roster-shell,
.signup-panel {
    display: flex;
    flex-direction: column;
}

.signup-hero-main {
    gap: 16px;
}

.signup-hero-topline,
.captain-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-kicker,
.status-badge,
.section-kicker {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-kicker,
.section-kicker {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d2daec;
}

.subtle-kicker {
    background: rgba(96, 255, 184, 0.08);
    border-color: rgba(96, 255, 184, 0.14);
    color: #b4f7d4;
}

.status-badge {
    color: #ffffff;
}

.status-open {
    background: linear-gradient(135deg, #30d18c, #6ce9ba);
}

.status-closed {
    background: linear-gradient(135deg, #5d7cff, #8ea9ff);
}

.signup-hero h1 {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 0.94;
    text-transform: uppercase;
}

.hero-copy {
    margin: 0;
    max-width: 780px;
    color: #a4b0c5;
    line-height: 1.75;
}

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

.hero-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.62rem 1.05rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #b12cff 0%, #5d7cff 100%);
    color: #f7fbff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.hero-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(105, 84, 255, 0.28);
}

.hero-action-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.16);
    color: #dfe8ff;
}

.hero-action-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
}

.hero-meta-grid,
.hero-side-stats,
.signup-main,
.tournament-details,
.field-grid.two-up,
.team-roster-grid {
    display: grid;
    gap: 14px;
}

.hero-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.accent-shell,
.hero-side-panel,
.signup-panel,
.roster-table-card,
.details-block,
.signup-stats-card,
.captain-card,
.team-roster-shell,
.hero-meta-card,
.mini-stat {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(16, 20, 31, 0.92), rgba(12, 15, 24, 0.97));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.accent-shell::before,
.hero-side-panel::before,
.signup-panel::before,
.roster-table-card::before,
.details-block::before,
.signup-stats-card::before,
.captain-card::before,
.team-roster-shell::before,
.hero-meta-card::before,
.mini-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3cac 0%, #784ba0 34%, #5d7cff 68%, #2bc990 100%);
    box-shadow: 0 0 18px rgba(255, 60, 172, 0.28);
}

.hero-meta-card,
.mini-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 16px 14px 14px;
    border-radius: 16px;
}

.hero-meta-card span,
.mini-stat span,
.stat-row span,
.panel-label {
    color: #93a2ba;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-meta-card strong,
.mini-stat strong,
.stat-row strong {
    color: #f7fbff;
    font-size: 0.94rem;
    line-height: 1.4;
}

.hero-side-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px 20px;
    border-radius: 18px;
}

.hero-side-panel > strong {
    color: #f8fbff;
    font-size: 1.1rem;
    line-height: 1.35;
}

.hero-side-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signup-hero-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 520px;
    margin-top: 6px;
    padding: 14px 16px 16px;
    border-radius: 14px;
}

.signup-hero-progress > strong {
    color: #f8fbff;
    font-size: 1rem;
    line-height: 1.35;
}

.progress-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #d103b8, #5d7cff 48%, #2bc990);
    box-shadow: 0 0 18px rgba(93, 124, 255, 0.35);
    transition: width 0.3s ease;
}

.signup-main {
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.84fr);
    align-items: start;
}

.signup-roster-shell,
.signup-panel {
    gap: 16px;
}

.signup-panel,
.details-block {
    padding: 22px;
    border-radius: 20px;
}

.section-header,
.stat-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.section-header h2,
.panel-head h2,
.details-block h2,
.captain-title-row h3 {
    margin: 0.38rem 0 0;
    color: #f7fbff;
}

.section-title-copy {
    margin: 0.45rem 0 0;
    color: #f7fbff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.panel-head p,
.section-header p,
.signup-helper-note,
.signup-alt,
.signup-closed-card p,
.details-block p,
.queue-intel-card span {
    margin: 0;
    color: #93a2ba;
    line-height: 1.65;
}

.roster-table-card {
    overflow: hidden;
    border-radius: 18px;
}

.table-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 420px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

th {
    position: sticky;
    top: 0;
    background: rgba(9, 13, 20, 0.98);
    color: #8e9ab0;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
}

td {
    color: #e8edf7;
    font-size: 0.9rem;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.signup-form,
.team-signup-form,
.captain-title-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field-group label {
    color: #d7dfef;
    font-size: 0.84rem;
    font-weight: 700;
}

.signup-form input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 19, 0.9);
    color: #f6f9ff;
    font-size: 0.92rem;
}

.signup-form input[type="text"]:focus {
    outline: none;
    border-color: rgba(93, 124, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(93, 124, 255, 0.12);
}

.field-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    color: #dbe3f2;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.035);
}

.checkbox-row input {
    margin-top: 3px;
}

.team-roster-shell,
.signup-stats-card,
.captain-card,
.signup-helper-note,
.signup-alt,
.signup-closed-card,
.queue-intel-card {
    padding: 16px;
    border-radius: 18px;
}

.team-roster-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.team-roster-head strong,
.queue-intel-card strong,
.signup-closed-card strong {
    color: #f7fbff;
}

.team-roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-button,
.draft-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff3cac, #5d7cff 52%, #2bc990);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(93, 124, 255, 0.2);
}

.signup-button:hover,
.draft-button:hover {
    filter: brightness(1.03);
}

.guest-signup-button {
    background: linear-gradient(135deg, #5d7cff, #2bc990, #24d7ff);
}

.signup-alt a {
    color: #d8e4ff;
}

.signup-stats-card,
.captain-card,
.queue-intel-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.captain-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(93, 124, 255, 0.28);
    background: rgba(93, 124, 255, 0.12);
    color: #dbe5ff;
    font-size: 0.82rem;
    font-weight: 700;
}

.no-captains {
    color: #7f8ca1;
    font-size: 0.88rem;
}

.overdraft-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pending-shell .section-kicker {
    background: rgba(93, 124, 255, 0.12);
    border-color: rgba(93, 124, 255, 0.24);
}

.queue-intel-flag {
    color: #cfe7ff;
}

.tournament-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.details-scroll-shell {
    display: flex;
    flex-direction: column;
    max-height: 320px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.details-strip {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    padding: 14px 16px 12px;
    background:
        linear-gradient(180deg, rgba(17, 22, 34, 0.98), rgba(15, 19, 30, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.details-strip h2 {
    margin: 0;
    color: #f7fbff;
    font-size: 1.02rem;
}

.details-scroll-body {
    overflow-y: auto;
    padding: 14px 16px 16px;
}

.details-scroll-body p {
    margin: 0;
    white-space: normal;
}

.details-block p {
    color: #b3bfd2;
}

@media (max-width: 1180px) {
    .signup-hero-content,
    .signup-main,
    .hero-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hero-actions {
        width: 100%;
    }

    .hero-action-btn {
        width: 100%;
    }

    .field-grid.two-up,
    .team-roster-grid,
    .hero-side-stats,
    .tournament-details {
        grid-template-columns: 1fr;
    }

    .section-header,
    .team-roster-head,
    .stat-row {
        flex-direction: column;
        align-items: stretch;
    }
}
