:root {
    --bg: #040712;
    --bg-2: #070b18;
    --bg-3: #0b1326;
    --card: rgba(12, 22, 42, 0.72);
    --card-strong: rgba(14, 27, 51, 0.94);
    --line: rgba(194, 225, 255, 0.11);
    --line-strong: rgba(0, 229, 255, 0.38);
    --text: #f8fbff;
    --muted: rgba(226, 237, 255, 0.68);
    --blue: #1677ff;
    --cyan: #00e5ff;
    --purple: #7c3aed;
    --red: #ff3b3b;
    --orange: #ff7a1a;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --font-heading: "Teko", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-display: "Rajdhani", "Inter", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

.pce-bg {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.pce-bg::before {
    background:
        radial-gradient(circle at 16% 10%, rgba(22, 119, 255, 0.22), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(124, 58, 237, 0.18), transparent 28%),
        radial-gradient(circle at 50% 90%, rgba(0, 229, 255, 0.08), transparent 32%),
        linear-gradient(180deg, #040712 0%, #070b18 48%, #0b1326 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.glow {
    border-radius: 999px;
    filter: blur(36px);
    opacity: 0.36;
    position: absolute;
}

.glow-blue {
    animation: drift 13s ease-in-out infinite;
    background: var(--blue);
    height: 240px;
    left: 10%;
    top: 18%;
    width: 240px;
}

.glow-purple {
    animation: drift 16s ease-in-out infinite reverse;
    background: var(--purple);
    height: 210px;
    right: 9%;
    top: 16%;
    width: 210px;
}

.glow-cyan {
    animation: drift 18s ease-in-out infinite;
    background: var(--cyan);
    bottom: 8%;
    height: 170px;
    left: 46%;
    width: 170px;
}

.grid-layer {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    inset: 0;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    opacity: 0.76;
    position: absolute;
}

.pce-nav {
    backdrop-filter: blur(20px);
    background: rgba(4, 7, 18, 0.78);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.pce-brand {
    align-items: center;
    color: var(--text);
    display: flex;
    gap: 12px;
}

.pce-logo {
    align-items: center;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 4px 14px 4px 14px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 28px rgba(0, 229, 255, 0.22);
    color: white;
    display: inline-flex;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 900;
    height: 46px;
    justify-content: center;
    width: 56px;
}

.pce-brand strong,
.pce-brand small {
    display: block;
}

.pce-brand strong {
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0.015em;
    line-height: 1.05;
    text-transform: uppercase;
}

.pce-brand small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.navbar-toggler {
    border-color: var(--line);
}

.navbar .nav-link {
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 0.58rem 0.9rem;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    transform: translateY(-1px);
}

.page-shell {
    min-height: calc(100vh - 118px);
    padding: 86px 0 56px;
}

.message-stack {
    padding-top: 92px;
}

.pce-alert {
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    color: var(--text);
    margin-bottom: 12px;
    padding: 14px 16px;
}

.pce-alert-success {
    border-color: rgba(0, 229, 255, 0.32);
}

.pce-alert-error {
    border-color: rgba(255, 59, 59, 0.45);
    color: #ffd6d6;
}

.hero-section {
    align-items: center;
    display: flex;
    min-height: calc(100vh - 86px);
    padding: 54px 0 70px;
}

.home-hero {
    align-items: center;
    display: flex;
    min-height: calc(100vh - 86px);
    padding: 42px 0 54px;
}

.home-title {
    font-family: var(--font-heading);
    font-size: clamp(3.4rem, 7.5vw, 7rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.92;
    max-width: 820px;
    text-transform: uppercase;
}

.home-copy {
    color: rgba(226, 237, 255, 0.74);
    font-size: clamp(1rem, 1.55vw, 1.25rem);
    line-height: 1.6;
    margin-top: 22px;
    max-width: 620px;
}

.format-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.format-strip span {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 4px 14px 4px 14px;
    color: #dff8ff;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.04em;
    min-width: 86px;
    padding: 8px 14px;
    text-align: center;
    text-transform: uppercase;
}

.player-console {
    background:
        linear-gradient(145deg, rgba(13, 25, 49, 0.96), rgba(7, 12, 25, 0.82)),
        linear-gradient(135deg, rgba(0, 229, 255, 0.14), transparent 40%, rgba(255, 122, 26, 0.10));
    border: 1px solid rgba(194, 225, 255, 0.14);
    border-radius: 8px 34px 8px 34px;
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.36), 0 0 60px rgba(22, 119, 255, 0.12);
    min-height: 500px;
    overflow: hidden;
    padding: 26px;
    position: relative;
}

.player-console::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 36px 36px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to bottom, black, transparent 76%);
    opacity: 0.5;
    position: absolute;
}

.console-top,
.console-grid,
.console-line,
.console-emblem {
    position: relative;
    z-index: 1;
}

.console-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.console-top span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.console-top strong {
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.rank-panel {
    background:
        linear-gradient(135deg, rgba(22, 119, 255, 0.18), rgba(0, 229, 255, 0.05)),
        rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(0, 229, 255, 0.24);
    border-radius: 6px 28px 6px 28px;
    margin: 34px 0 24px;
    overflow: hidden;
    padding: 28px;
    position: relative;
    z-index: 1;
}

.rank-panel::after {
    background: linear-gradient(90deg, var(--cyan), transparent);
    bottom: 0;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    width: 72%;
}

.rank-kicker {
    color: var(--cyan);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rank-panel strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 6vw, 5.6rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.85;
    margin-top: 10px;
    text-transform: uppercase;
}

.rank-bars {
    display: grid;
    gap: 8px;
    grid-template-columns: 1.4fr 0.85fr 1.1fr 0.55fr;
    margin-top: 24px;
}

.rank-bars i {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    border-radius: 999px;
    display: block;
    height: 7px;
}

.console-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.console-grid div {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
    border-radius: 4px 16px 4px 16px;
    padding: 14px;
}

.console-grid span,
.console-grid strong {
    display: block;
}

.console-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.console-grid strong {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.console-line {
    align-items: center;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 4px 16px 4px 16px;
    color: #dff8ff;
    display: flex;
    font-weight: 800;
    gap: 10px;
    margin-top: 16px;
    padding: 13px 14px;
}

.home-section {
    padding: 52px 0;
}

.quick-path {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.path-card {
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid var(--line);
    border-radius: 6px 24px 6px 24px;
    box-shadow: var(--shadow);
    padding: 22px;
    position: relative;
    transition: border-color 180ms ease, transform 180ms ease;
}

.path-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.path-card b {
    color: var(--cyan);
    display: block;
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1;
}

.path-card span {
    color: var(--text);
    display: block;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    margin-top: 12px;
    text-transform: uppercase;
}

.event-board-feature {
    border-radius: 28px;
}

.board-heading {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 18px;
}

.board-heading span {
    color: var(--cyan);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.board-heading h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.compact-empty {
    box-shadow: none;
}

.final-card-sharp {
    background:
        linear-gradient(135deg, rgba(22, 119, 255, 0.18), transparent 42%, rgba(255, 122, 26, 0.12)),
        rgba(15, 23, 42, 0.78);
}

.pce-badge {
    align-items: center;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 999px;
    color: #bdf7ff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 8px;
    letter-spacing: 0.08em;
    padding: 9px 12px;
    text-transform: uppercase;
}

.hero-title,
.auth-title,
.app-hero h1,
.page-title h1,
.final-card h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0;
}

.hero-title {
    font-size: clamp(3.15rem, 7vw, 6.4rem);
    line-height: 0.92;
    max-width: 860px;
    text-transform: uppercase;
}

.hero-copy,
.auth-copy,
.app-hero p,
.page-title p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 680px;
}

.btn {
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: box-shadow 180ms ease, transform 180ms ease, filter 180ms ease;
}

.btn-pce {
    background: linear-gradient(135deg, #125fff 0%, var(--blue) 42%, var(--cyan) 100%);
    border: 0;
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.22), 0 16px 38px rgba(22, 119, 255, 0.30);
    color: white;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.btn-pce:hover {
    color: white;
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.btn-ghost,
.btn-soft {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--text);
}

.btn-ghost:hover,
.btn-soft:hover {
    background: rgba(0, 229, 255, 0.10);
    border-color: var(--line-strong);
    color: var(--text);
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 620px;
}

.hero-stats div,
.platform-panel,
.feature-card,
.step-card,
.event-board,
.integrity-panel,
.final-card,
.auth-card,
.app-hero,
.profile-card,
.stat-card,
.panel-card,
.team-card,
.tournament-card,
.empty-premium {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: relative;
}

.hero-stats div::before,
.platform-panel::before,
.feature-card::before,
.step-card::before,
.event-board::before,
.integrity-panel::before,
.final-card::before,
.auth-card::before,
.app-hero::before,
.profile-card::before,
.stat-card::before,
.panel-card::before,
.team-card::before,
.tournament-card::before,
.empty-premium::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%, rgba(0, 229, 255, 0.08));
    border-radius: inherit;
    content: "";
    inset: 0;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
    position: absolute;
}

.hero-stats div {
    padding: 16px;
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    font-family: var(--font-heading);
    font-size: 18px;
}

.hero-stats span {
    color: var(--muted);
    font-size: 13px;
}

.platform-panel {
    backdrop-filter: blur(18px);
    min-height: 560px;
    overflow: hidden;
    padding: 26px;
    position: relative;
}

.panel-orbit {
    animation: spin 18s linear infinite;
    border: 1px solid rgba(0, 229, 255, 0.16);
    border-radius: 999px;
    height: 330px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 330px;
}

.panel-orbit::before {
    background: var(--cyan);
    border-radius: 999px;
    box-shadow: 0 0 26px var(--cyan);
    content: "";
    height: 10px;
    left: 50%;
    position: absolute;
    top: -5px;
    width: 10px;
}

.platform-card {
    align-items: center;
    background: rgba(8, 17, 34, 0.84);
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding: 15px;
    position: relative;
    transition: border-color 180ms ease, transform 180ms ease;
    z-index: 1;
}

.platform-card:hover,
.platform-card.active {
    border-color: var(--line-strong);
    transform: translateX(4px);
}

.platform-card i {
    color: var(--cyan);
    font-size: 22px;
}

.platform-card span {
    font-weight: 800;
}

.section-pad {
    padding: 78px 0;
}

.section-heading {
    margin-bottom: 28px;
    max-width: 760px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading.compact {
    margin-bottom: 18px;
}

.section-heading span {
    color: var(--cyan);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.step-card,
.feature-card,
.auth-card,
.panel-card,
.team-card,
.tournament-card {
    backdrop-filter: blur(18px);
    overflow: hidden;
    padding: 24px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.step-card:hover,
.feature-card:hover,
.panel-card:hover,
.team-card:hover,
.tournament-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 30px 90px rgba(0, 229, 255, 0.12);
    transform: translateY(-4px);
}

.step-card b {
    color: var(--cyan);
    font-family: var(--font-heading);
    font-size: 24px;
}

.step-card h3,
.feature-card h3 {
    font-size: 20px;
    font-weight: 900;
    margin: 16px 0 10px;
}

.step-card p,
.feature-card p {
    color: var(--muted);
    margin: 0;
}

.feature-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card i {
    color: var(--cyan);
    font-size: 28px;
}

.event-board,
.integrity-panel,
.final-card {
    backdrop-filter: blur(18px);
    padding: 30px;
}

.event-row {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 0;
}

.event-row:first-of-type {
    border-top: 0;
}

.event-row strong,
.event-row span {
    display: block;
}

.event-row span,
.event-row small {
    color: var(--muted);
}

.empty-premium,
.empty-inline {
    text-align: center;
}

.empty-premium {
    padding: 42px 20px;
}

.empty-premium i {
    color: var(--cyan);
    display: block;
    font-size: 42px;
    margin-bottom: 14px;
}

.empty-premium h3 {
    font-weight: 900;
}

.empty-premium p,
.empty-inline {
    color: var(--muted);
}

.integrity-panel {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.integrity-panel h2 {
    font-family: var(--font-heading);
    font-weight: 900;
}

.integrity-panel p {
    color: var(--muted);
    max-width: 680px;
}

.integrity-list {
    display: grid;
    gap: 12px;
}

.integrity-list span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 16px;
    font-weight: 800;
    padding: 13px 14px;
}

.integrity-list i {
    color: var(--cyan);
    margin-right: 8px;
}

.final-cta {
    padding: 0 0 76px;
}

.final-card {
    text-align: center;
}

.final-card h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.final-card p {
    color: var(--muted);
}

.auth-page,
.form-page,
.app-page {
    padding: 54px 0 76px;
}

.auth-title {
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1;
    text-transform: uppercase;
}

.auth-copy {
    margin-top: 18px;
}

.auth-showcase {
    background:
        linear-gradient(135deg, rgba(22, 119, 255, 0.16), transparent 45%),
        rgba(5, 13, 29, 0.66);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 10px;
    margin-top: 30px;
    max-width: 430px;
    padding: 16px;
    position: relative;
}

.auth-showcase::before {
    background: linear-gradient(90deg, var(--cyan), var(--primary), var(--purple));
    border-radius: 999px;
    content: "";
    height: 3px;
    left: 18px;
    position: absolute;
    right: 18px;
    top: -2px;
}

.auth-showcase-row {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    padding: 13px 14px;
}

.auth-showcase-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.auth-showcase-row strong {
    color: var(--cyan);
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
}

.auth-points {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.auth-points span,
.mini-info span {
    color: var(--muted);
    font-weight: 800;
}

.auth-points i,
.mini-info i {
    color: var(--cyan);
    margin-right: 8px;
}

.form-head {
    margin-bottom: 22px;
}

.form-head span {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form-head h2 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-head p {
    color: var(--muted);
    margin: 0;
}

.auth-card-premium {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 229, 255, 0.13), transparent 34%),
        radial-gradient(circle at 94% 10%, rgba(124, 58, 237, 0.14), transparent 34%),
        rgba(7, 14, 31, 0.84);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(0, 229, 255, 0.04);
}

.login-card {
    padding: 30px;
}

.auth-card label {
    color: rgba(248, 251, 255, 0.9);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.auth-card .form-control,
.auth-card .form-select,
.auth-card input,
.auth-card select,
.auth-card textarea {
    background: rgba(5, 13, 29, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    color: var(--text);
    font-weight: 700;
    min-height: 52px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.auth-card textarea {
    min-height: 126px;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus,
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    background: rgba(7, 20, 40, 0.96);
    border-color: var(--cyan);
    box-shadow: 0 0 0 0.25rem rgba(0, 229, 255, 0.14), 0 0 26px rgba(0, 229, 255, 0.10);
    color: var(--text);
}

.auth-card .form-control::placeholder,
.auth-card input::placeholder,
.auth-card textarea::placeholder {
    color: rgba(199, 213, 255, 0.44);
    font-weight: 700;
}

.input-wrap {
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    display: flex;
    min-height: 54px;
    overflow: hidden;
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.input-wrap::after {
    background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.22), transparent);
    content: "";
    height: 54%;
    left: 48px;
    opacity: 0.7;
    position: absolute;
    top: 23%;
    width: 1px;
}

.input-wrap i {
    color: rgba(0, 229, 255, 0.76);
    flex: 0 0 48px;
    font-size: 18px;
    text-align: center;
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.34);
}

.auth-card .input-wrap .form-control,
.auth-card .input-wrap .form-select,
.auth-card .input-wrap input,
.auth-card .input-wrap select {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    flex: 1 1 auto;
    min-height: 54px;
    padding-left: 14px;
}

.auth-card .input-wrap .form-control:focus,
.auth-card .input-wrap .form-select:focus,
.auth-card .input-wrap input:focus,
.auth-card .input-wrap select:focus {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    outline: 0;
}

.input-wrap:focus-within {
    background: rgba(9, 24, 48, 0.96);
    border-color: rgba(0, 229, 255, 0.72);
    box-shadow: 0 0 0 0.22rem rgba(0, 229, 255, 0.12), 0 0 30px rgba(0, 229, 255, 0.13);
    transform: translateY(-1px);
}

.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    box-shadow: 0 0 0 1000px rgba(7, 20, 40, 0.96) inset;
    transition: background-color 9999s ease-out;
}

.auth-card option {
    color: #0b1020;
}

.auth-card ul,
.field ul {
    color: #ffb4b4;
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.auth-card ul li,
.field ul li {
    background: rgba(255, 59, 59, 0.10);
    border: 1px solid rgba(255, 59, 59, 0.18);
    border-radius: 12px;
    color: #ffd3d3;
    font-size: 12px;
    font-weight: 800;
    margin-top: 6px;
    padding: 8px 10px;
}

.auth-card .helptext {
    color: rgba(199, 213, 255, 0.62);
    display: block;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 8px;
}

.form-note {
    color: var(--muted);
    margin: 18px 0 0;
    text-align: center;
}

.form-note a {
    color: var(--cyan);
    font-weight: 900;
}

.signup-card {
    display: grid;
    gap: 18px;
}

.signup-strip {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px;
}

.signup-strip span {
    align-items: center;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 13px;
    color: rgba(248, 251, 255, 0.88);
    display: inline-flex;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 38px;
    text-transform: uppercase;
}

.signup-strip i {
    color: var(--cyan);
}

.form-section {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 18px;
}

.form-section:last-of-type {
    padding-bottom: 18px;
}

.form-section-title {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.form-section-title i {
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(22, 119, 255, 0.09));
    border: 1px solid rgba(0, 229, 255, 0.20);
    border-radius: 16px;
    color: var(--cyan);
    display: inline-flex;
    font-size: 22px;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.form-section-title span {
    display: block;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
}

.form-section-title p {
    color: var(--muted);
    margin: 0;
}

.wallet-strip {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px;
}

.credits-hero {
    align-items: stretch;
    background:
        radial-gradient(circle at 16% 0%, rgba(0, 229, 255, 0.18), transparent 32rem),
        radial-gradient(circle at 90% 8%, rgba(124, 58, 237, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(7, 14, 31, 0.88), rgba(10, 20, 45, 0.76));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 340px;
    margin-bottom: 24px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.credits-hero::before {
    background:
        linear-gradient(90deg, rgba(0, 229, 255, 0.16) 1px, transparent 1px),
        linear-gradient(rgba(0, 229, 255, 0.10) 1px, transparent 1px);
    background-size: 38px 38px;
    content: "";
    inset: 0;
    opacity: 0.26;
    pointer-events: none;
    position: absolute;
}

.credits-hero::after {
    background: linear-gradient(90deg, var(--primary), var(--cyan), var(--purple));
    bottom: 0;
    content: "";
    height: 3px;
    left: 24px;
    position: absolute;
    right: 24px;
}

.credits-hero-copy,
.credits-balance-panel {
    position: relative;
    z-index: 1;
}

.credits-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 8vw, 6.7rem);
    font-weight: 800;
    line-height: 0.98;
    margin: 0;
    text-transform: uppercase;
}

.credits-hero p {
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
    margin: 18px 0 0;
    max-width: 640px;
}

.credits-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.credits-balance-panel {
    align-content: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.18), transparent 70%),
        rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 24px;
    box-shadow: 0 0 48px rgba(0, 229, 255, 0.10);
    display: grid;
    justify-items: center;
    min-height: 230px;
    padding: 22px;
    text-align: center;
}

.credits-balance-panel span,
.credits-balance-panel small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.credits-balance-panel strong {
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 8.4rem);
    font-weight: 900;
    line-height: 0.82;
    text-shadow: 0 0 34px rgba(0, 229, 255, 0.26);
}

.wallet-strip span,
.wallet-kicker {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.wallet-strip strong,
.wallet-balance {
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.wallet-strip strong {
    font-size: 2rem;
    line-height: 0.9;
}

.wallet-note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 14px 0 0;
}

.wallet-card {
    justify-content: center;
    text-align: left;
}

.wallet-balance {
    color: var(--cyan);
    display: block;
    font-size: clamp(4rem, 12vw, 7.5rem);
    line-height: 0.82;
    margin: 18px 0 4px;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.22);
}

.wallet-steps,
.credit-flow {
    display: grid;
    gap: 12px;
}

.wallet-steps {
    margin-top: 22px;
}

.wallet-steps span,
.credit-flow div {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 13px 14px;
}

.wallet-steps i {
    color: var(--cyan);
    margin-right: 8px;
}

.credit-flow div {
    display: grid;
    gap: 4px;
}

.refill-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ticket-identity {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 13px 14px;
}

.ticket-identity span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ticket-identity strong {
    color: var(--text);
    display: block;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.discord-ticket-box {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(88, 101, 242, 0.20), rgba(0, 229, 255, 0.07)),
        rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(88, 101, 242, 0.34);
    border-radius: 18px;
    display: flex;
    gap: 14px;
    margin-top: auto;
    padding: 16px;
}

.discord-ticket-box i {
    align-items: center;
    background: rgba(88, 101, 242, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #b8c0ff;
    display: inline-flex;
    flex: 0 0 48px;
    font-size: 26px;
    height: 48px;
    justify-content: center;
}

.discord-ticket-box strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.discord-ticket-box span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
}

.credit-flow-premium {
    grid-template-columns: repeat(3, 1fr);
}

.credit-flow-premium .credit-step {
    min-height: 174px;
    position: relative;
}

.credit-step i {
    color: var(--cyan);
    font-size: 24px;
    position: absolute;
    right: 16px;
    top: 16px;
}

.credit-pack-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
}

.credit-pack {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 15px;
    text-align: center;
}

.credit-pack.featured {
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.20), rgba(0, 229, 255, 0.08));
    border-color: rgba(0, 229, 255, 0.32);
    box-shadow: 0 0 34px rgba(0, 229, 255, 0.10);
}

.credit-pack span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.credit-pack strong {
    color: var(--text);
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 0.95;
    margin-top: 6px;
}

.credit-pack small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.credit-warning {
    align-items: center;
    display: flex;
    gap: 10px;
}

.credit-warning i {
    color: var(--cyan);
    font-size: 20px;
}

.credit-ledger .panel-head {
    align-items: flex-start;
}

.credit-ledger .panel-head p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 4px 0 0;
}

.ledger-row {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    display: grid;
    gap: 14px;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    margin-top: 12px;
    padding: 14px;
}

.ledger-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    display: inline-flex;
    font-size: 21px;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.ledger-main strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.ledger-main span,
.ledger-main small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 3px;
}

.credit-flow b {
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: 24px;
}

.credit-flow strong {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.credit-flow span {
    color: var(--muted);
    font-weight: 700;
}

.credit-amount {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    min-width: 92px;
    text-align: right;
}

.credit-amount small {
    color: var(--muted);
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.credit-plus {
    color: var(--cyan);
}

.credit-minus {
    color: #ff9f7a;
}

.app-hero,
.page-title {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 26px;
    padding: 28px;
}

.page-title {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.app-hero h1,
.page-title h1 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    text-transform: uppercase;
}

.stat-card {
    min-height: 156px;
    overflow: hidden;
    padding: 24px;
    position: relative;
}

.profile-card {
    backdrop-filter: blur(18px);
    height: 100%;
    padding: 26px;
    text-align: center;
}

.profile-card h2 {
    font-weight: 900;
    margin: 14px 0 4px;
}

.profile-card p {
    color: var(--muted);
    margin: 0;
}

.profile-ring {
    align-items: center;
    background:
        radial-gradient(circle at center, rgba(15, 23, 42, 0.95) 58%, transparent 60%),
        conic-gradient(var(--cyan) var(--value), rgba(255, 255, 255, 0.08) 0);
    border-radius: 999px;
    display: inline-flex;
    height: 116px;
    justify-content: center;
    width: 116px;
}

.profile-ring span {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
}

.profile-lines {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    text-align: left;
}

.profile-lines span {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    font-weight: 700;
    padding: 11px 12px;
}

.profile-lines i {
    color: var(--cyan);
    margin-right: 8px;
}

.stat-card span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 44px;
    margin-top: 8px;
}

.stat-card small {
    color: var(--muted);
    display: block;
    font-weight: 700;
}

.stat-card i {
    bottom: -14px;
    color: rgba(0, 229, 255, 0.10);
    font-size: 86px;
    position: absolute;
    right: 16px;
}

.panel-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 16px;
}

.panel-head h2 {
    font-size: 20px;
    font-weight: 900;
    margin: 0;
}

.panel-head a {
    color: var(--cyan);
    font-weight: 900;
}

.team-top,
.tournament-status {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.team-top h2,
.tournament-card h2 {
    font-size: 22px;
    font-weight: 900;
    margin: 0;
}

.team-top span,
.team-meta,
.tournament-meta {
    color: var(--muted);
}

.team-top b,
.tournament-status span {
    background: rgba(0, 229, 255, 0.09);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 999px;
    color: #bdf7ff;
    font-size: 12px;
    padding: 6px 10px;
    white-space: nowrap;
}

.status-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
    white-space: nowrap;
}

.status-verified,
.status-confirmed,
.status-open,
.status-clean,
.status-paid {
    background: rgba(0, 229, 255, 0.10);
    border-color: rgba(0, 229, 255, 0.28);
    color: #bdf7ff;
}

.status-pending,
.status-payment_pending,
.status-draft,
.status-upcoming {
    background: rgba(124, 58, 237, 0.14);
    border-color: rgba(124, 58, 237, 0.34);
    color: #d9ccff;
}

.status-rejected,
.status-banned,
.status-closed,
.status-cancelled {
    background: rgba(255, 59, 59, 0.12);
    border-color: rgba(255, 59, 59, 0.34);
    color: #ffd1d1;
}

.status-watchlist {
    background: rgba(255, 122, 26, 0.12);
    border-color: rgba(255, 122, 26, 0.34);
    color: #ffd9bd;
}

.team-meta,
.tournament-meta,
.mini-info {
    display: grid;
    gap: 10px;
}

.team-meta i,
.tournament-meta i {
    color: var(--cyan);
    margin-right: 8px;
}

.join-code {
    background: rgba(0, 229, 255, 0.07);
    border: 1px dashed rgba(0, 229, 255, 0.32);
    border-radius: 16px;
    margin-top: 18px;
    padding: 13px 14px;
}

.join-code span,
.join-code strong {
    display: block;
}

.requirement-box {
    align-items: flex-start;
    background: rgba(255, 122, 26, 0.08);
    border: 1px solid rgba(255, 122, 26, 0.24);
    border-radius: 18px;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
}

.requirement-box i {
    color: var(--orange);
    font-size: 20px;
}

.requirement-box p,
.muted-copy,
.action-empty p {
    color: var(--muted);
    margin: 0;
}

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

.join-code span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.join-code strong {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 0.08em;
}

.pce-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 24px 0;
}

.pce-footer strong,
.pce-footer span {
    display: block;
}

.pce-footer strong {
    color: var(--text);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.animate-in {
    animation: fadeUp 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 {
    animation-delay: 90ms;
}

.delay-2 {
    animation-delay: 180ms;
}

.delay-3 {
    animation-delay: 270ms;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(20px, -18px, 0) scale(1.08);
    }
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 991px) {
    .navbar-nav {
        align-items: stretch !important;
        padding: 16px 0 8px;
    }

    .hero-section {
        min-height: auto;
    }

    .platform-panel {
        min-height: auto;
    }

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

    .integrity-panel {
        grid-template-columns: 1fr;
    }

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

    .app-hero,
    .page-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .page-shell {
        padding-top: 78px;
    }

    .hero-stats,
    .feature-grid,
    .quick-path,
    .console-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: auto;
        padding-top: 28px;
    }

    .home-title {
        font-size: 3.25rem;
    }

    .player-console {
        border-radius: 24px;
        min-height: auto;
        padding: 20px;
    }

    .rank-panel {
        margin: 24px 0 18px;
        padding: 22px;
    }

    .rank-panel strong {
        font-size: 3.2rem;
    }

    .auth-page,
    .form-page {
        padding: 34px 0 58px;
    }

    .auth-title {
        font-size: 2.9rem;
    }

    .credits-hero {
        border-radius: 22px;
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .credits-balance-panel {
        min-height: 190px;
    }

    .credit-flow-premium,
    .credit-pack-grid {
        grid-template-columns: 1fr;
    }

    .ledger-row {
        align-items: flex-start;
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .ledger-icon {
        height: 44px;
        width: 44px;
    }

    .ledger-row .credit-amount {
        grid-column: 1 / -1;
    }

    .auth-showcase,
    .login-card {
        max-width: none;
    }

    .signup-strip {
        grid-template-columns: 1fr;
    }

    .wallet-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .credit-amount {
        min-width: 0;
        text-align: left;
    }

    .form-section {
        padding: 15px;
    }

    .input-wrap i {
        flex-basis: 44px;
    }

    .input-wrap::after {
        left: 44px;
    }

    .event-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-card,
    .event-board,
    .integrity-panel,
    .final-card,
    .app-hero,
    .panel-card,
    .team-card,
    .tournament-card {
        border-radius: 20px;
        padding: 20px;
    }

    .pce-brand strong {
        font-size: 14px;
    }

    .pce-brand small {
        display: none;
    }
}

/* Product flow polish */
.hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-lobby {
    align-items: stretch;
}

.profile-tag {
    background: rgba(35, 216, 255, 0.10);
    border: 1px solid rgba(35, 216, 255, 0.22);
    border-radius: 8px;
    color: #d9f8ff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding: 6px 9px;
    text-transform: uppercase;
}

.event-focus-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.event-focus-strip span {
    align-items: center;
    background: rgba(4, 17, 45, 0.62);
    border: 1px solid rgba(146, 202, 255, 0.14);
    border-radius: 12px;
    color: rgba(225, 238, 255, 0.86);
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
    min-height: 48px;
    padding: 12px 13px;
}

.event-focus-strip i {
    color: var(--cyan);
}

.tournament-card {
    min-height: 100%;
}

.tournament-card h2 a,
.team-card h2 a {
    color: #ffffff;
}

.tournament-meta,
.team-meta,
.mini-info {
    background: rgba(4, 17, 45, 0.34);
    border: 1px solid rgba(146, 202, 255, 0.10);
    border-radius: 12px;
    padding: 13px;
}

.panel-head {
    gap: 12px;
}

.panel-head > div p {
    color: var(--muted);
    margin: 4px 0 0;
}

.action-empty {
    background: rgba(4, 17, 45, 0.38);
    border: 1px solid rgba(146, 202, 255, 0.12);
    border-radius: 12px;
    padding: 18px;
    text-align: left;
}

.status-badge {
    align-items: center;
    min-height: 30px;
}

.btn[disabled],
button[disabled] {
    cursor: not-allowed;
    opacity: 0.62;
}

.input-wrap {
    border-radius: 12px;
}

.signup-strip span {
    border-radius: 10px;
}

.form-section {
    border-radius: 14px;
}

.credits-hero {
    gap: 18px;
}

.credits-balance-panel strong {
    line-height: 0.9;
}

.credit-flow-premium .credit-step {
    min-height: 160px;
}

@media (max-width: 991px) {
    .event-focus-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .hero-actions,
    .hero-actions .btn,
    .page-title > .btn,
    .app-hero > .btn {
        width: 100%;
    }

    .event-focus-strip {
        grid-template-columns: 1fr;
    }

    .event-focus-strip span {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* AtlasFN button system v2 */
.btn,
button.btn,
a.btn,
.auth-card .btn,
.form-card .btn {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    letter-spacing: 0.05em;
    line-height: 1;
    min-height: 44px;
    padding: 0 18px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateY(0);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease, filter 160ms ease;
    white-space: nowrap;
}

.btn::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    content: "";
    height: 100%;
    left: -130%;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    transition: left 420ms ease;
    width: 58%;
}

.btn:hover::after,
.btn:focus-visible::after {
    left: 135%;
}

.btn i {
    font-size: 1rem;
    line-height: 1;
}

.btn-lg {
    font-size: 14px;
    min-height: 54px;
    padding: 0 24px;
}

.btn-sm {
    font-size: 11px;
    min-height: 36px;
    padding: 0 12px;
}

.btn-pce,
a.btn-pce,
button.btn-pce {
    background: linear-gradient(180deg, #fff26d 0%, #ffc414 52%, #f59e0b 100%);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 9px 0 rgba(102, 63, 0, 0.72), 0 22px 42px rgba(255, 176, 0, 0.22);
    color: #061229;
    text-shadow: none;
}

.btn-pce:hover,
.btn-pce:focus,
.btn-pce:focus-visible {
    background: linear-gradient(180deg, #fff8a5 0%, #ffd138 54%, #f8aa10 100%);
    border-color: rgba(255, 255, 255, 0.52);
    box-shadow: 0 6px 0 rgba(102, 63, 0, 0.76), 0 26px 52px rgba(255, 196, 20, 0.30);
    color: #061229;
    filter: saturate(1.08);
    transform: translateY(-3px);
}

.btn-pce:active {
    box-shadow: 0 3px 0 rgba(102, 63, 0, 0.82), 0 14px 28px rgba(255, 196, 20, 0.18);
    transform: translateY(2px);
}

.btn-ghost,
a.btn-ghost,
button.btn-ghost {
    background: rgba(2, 12, 33, 0.62);
    border: 1px solid rgba(35, 216, 255, 0.48);
    box-shadow: inset 0 0 0 1px rgba(35, 216, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.12);
    color: #d9f8ff;
}

.btn-ghost:hover,
.btn-ghost:focus,
.btn-ghost:focus-visible {
    background: rgba(35, 216, 255, 0.13);
    border-color: rgba(35, 216, 255, 0.82);
    box-shadow: 0 18px 38px rgba(35, 216, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-soft,
a.btn-soft,
button.btn-soft {
    background: linear-gradient(180deg, rgba(16, 119, 255, 0.95), rgba(8, 52, 132, 0.96));
    border: 1px solid rgba(146, 202, 255, 0.30);
    box-shadow: 0 16px 34px rgba(11, 109, 255, 0.18);
    color: #f7fbff;
}

.btn-soft:hover,
.btn-soft:focus,
.btn-soft:focus-visible {
    background: linear-gradient(180deg, rgba(35, 216, 255, 0.92), rgba(11, 109, 255, 0.95));
    border-color: rgba(203, 239, 255, 0.56);
    box-shadow: 0 22px 44px rgba(35, 216, 255, 0.20);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn[disabled],
.btn.disabled,
button[disabled],
button:disabled,
input[type="submit"]:disabled {
    box-shadow: none;
    cursor: not-allowed;
    filter: grayscale(0.28);
    opacity: 0.52;
    pointer-events: none;
    transform: none;
}

.navbar .btn {
    min-height: 36px;
}

.hero-actions .btn,
.credits-actions .btn,
.page-title > .btn,
.app-hero > .btn,
.auth-card .btn-pce,
.form-card .btn-pce {
    min-width: 164px;
}

.event-row .btn,
.tournament-card .btn {
    min-width: 112px;
}

.panel-head > a:not(.btn),
.hero-copy > a:not(.btn) {
    align-items: center;
    border: 1px solid rgba(35, 216, 255, 0.32);
    border-radius: 999px;
    color: #d9f8ff;
    display: inline-flex;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 900;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.panel-head > a:not(.btn):hover,
.hero-copy > a:not(.btn):hover {
    background: rgba(35, 216, 255, 0.10);
    border-color: rgba(35, 216, 255, 0.62);
    transform: translateY(-2px);
}

.auth-card button,
.form-card button,
.auth-card input[type="submit"],
.form-card input[type="submit"] {
    width: 100%;
}

@media (max-width: 700px) {
    .hero-actions,
    .credits-actions,
    .page-title,
    .form-actions {
        align-items: stretch;
    }

    .hero-actions .btn,
    .credits-actions .btn,
    .page-title > .btn,
    .form-actions .btn,
    .auth-card .btn,
    .form-card .btn {
        width: 100%;
    }

    .navbar .btn {
        justify-content: center;
        width: 100%;
    }
}

/* Stable Fortnite-inspired polish */
.home-title,
.auth-title,
.credits-hero h1,
.app-hero h1,
.page-title h1,
.final-card h2 {
    letter-spacing: 0;
    line-height: 0.95;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
}

.home-title {
    font-size: clamp(3.4rem, 7.2vw, 7.2rem);
}

.pce-logo {
    border-radius: 6px 16px 6px 16px;
    font-size: 21px;
}

.btn-pce {
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.credits-balance-panel strong,
.wallet-balance,
.credit-pack strong,
.credit-amount,
.stat-card strong {
    font-family: var(--font-display);
    font-weight: 700;
}

/* Typography reset across all public pages */
.pce-brand strong,
.home-title,
.auth-title,
.hero-title,
.credits-hero h1,
.app-hero h1,
.page-title h1,
.final-card h2,
.board-heading h2,
.section-heading h2,
.panel-head h2,
.form-head h2,
.form-section-title span,
.path-card span,
.step-card h3,
.feature-card h3,
.team-card h2,
.tournament-card h2,
.empty-premium h3,
.credit-flow strong,
.discord-ticket-box strong,
.ledger-main strong,
.profile-card h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.02;
}

.home-title {
    font-size: clamp(3.3rem, 7vw, 7rem);
    line-height: 0.88;
}

.auth-title,
.credits-hero h1 {
    font-size: clamp(2.9rem, 5.6vw, 5.2rem);
    line-height: 0.94;
}

.app-hero h1,
.page-title h1,
.final-card h2 {
    font-size: clamp(2.6rem, 4.8vw, 4.5rem);
}

.panel-head h2,
.form-head h2,
.board-heading h2,
.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.team-card h2,
.tournament-card h2,
.empty-premium h3,
.profile-card h2 {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.pce-brand strong {
    font-size: 22px;
}

.pce-badge,
.navbar .nav-link,
.auth-card label,
.form-section-title p,
.ticket-identity span,
.credit-pack span,
.ledger-main span,
.ledger-main small {
    font-family: var(--font-body);
}

.pce-logo,
.format-strip span,
.rank-panel strong,
.console-grid strong,
.path-card b,
.credits-balance-panel strong,
.wallet-balance,
.credit-pack strong,
.credit-amount,
.stat-card strong {
    font-family: var(--font-display);
}

/* AtlasFN clean Fortnite-style interface */
:root {
    --bg: #061229;
    --bg-2: #071a3d;
    --bg-3: #0a255a;
    --card: rgba(7, 22, 52, 0.86);
    --card-strong: rgba(8, 31, 75, 0.96);
    --line: rgba(146, 202, 255, 0.18);
    --line-strong: rgba(42, 214, 255, 0.54);
    --text: #f7fbff;
    --muted: rgba(215, 231, 255, 0.72);
    --blue: #0b6dff;
    --cyan: #23d8ff;
    --purple: #7557ff;
    --orange: #ffb000;
    --shadow: 0 22px 55px rgba(0, 8, 28, 0.35);
}

body {
    background:
        radial-gradient(circle at 18% 8%, rgba(35, 216, 255, 0.18), transparent 26rem),
        radial-gradient(circle at 86% 12%, rgba(117, 87, 255, 0.16), transparent 28rem),
        linear-gradient(180deg, #050b1c 0%, #06152f 46%, #071a3d 100%);
}

.pce-bg::before {
    background:
        linear-gradient(180deg, rgba(2, 10, 28, 0.28), rgba(2, 8, 24, 0.88)),
        radial-gradient(circle at 16% 10%, rgba(35, 216, 255, 0.20), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(11, 109, 255, 0.20), transparent 30%),
        linear-gradient(180deg, #050b1c 0%, #06152f 50%, #071a3d 100%);
}

.grid-layer {
    background-size: 52px 52px;
    opacity: 0.42;
}

.glow {
    opacity: 0.22;
}

.pce-nav {
    background: rgba(4, 13, 33, 0.92);
    border-bottom-color: rgba(35, 216, 255, 0.22);
}

.pce-logo {
    background: linear-gradient(135deg, #0b6dff, #23d8ff);
    border-radius: 10px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 16px 34px rgba(11, 109, 255, 0.28);
    font-size: 22px;
    height: 44px;
    width: 58px;
}

.pce-brand strong {
    color: #ffffff;
    font-size: 24px;
    letter-spacing: 0.03em;
}

.pce-brand small,
.navbar .nav-link {
    color: rgba(215, 231, 255, 0.76);
}

.navbar .nav-link {
    border-radius: 10px;
    padding: 0.62rem 0.86rem;
}

.navbar .nav-link:hover {
    background: rgba(35, 216, 255, 0.10);
}

.home-hero {
    min-height: calc(100vh - 104px);
}

.home-title {
    color: #ffffff;
    font-size: clamp(4.2rem, 9vw, 8.8rem);
    line-height: 0.82;
    max-width: 760px;
    text-shadow: 0 5px 0 rgba(0, 0, 0, 0.24), 0 0 36px rgba(35, 216, 255, 0.12);
}

.home-copy,
.hero-copy,
.auth-copy,
.app-hero p,
.page-title p {
    color: rgba(225, 238, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.65;
}

.pce-badge {
    background: rgba(35, 216, 255, 0.10);
    border-color: rgba(35, 216, 255, 0.34);
    border-radius: 10px;
    color: #c9f6ff;
    letter-spacing: 0.06em;
}

.btn {
    border-radius: 12px;
    min-height: 42px;
}

.btn-pce {
    background: linear-gradient(180deg, #23d8ff 0%, #0b6dff 72%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 34px rgba(11, 109, 255, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-ghost,
.btn-soft {
    background: rgba(12, 35, 79, 0.82);
    border-color: rgba(146, 202, 255, 0.18);
}

.auth-card,
.event-board,
.integrity-panel,
.final-card,
.app-hero,
.profile-card,
.stat-card,
.panel-card,
.team-card,
.tournament-card,
.empty-premium,
.player-console,
.credits-hero {
    background:
        linear-gradient(180deg, rgba(12, 38, 88, 0.90), rgba(5, 17, 42, 0.92)),
        radial-gradient(circle at 0 0, rgba(35, 216, 255, 0.10), transparent 28rem);
    border: 1px solid rgba(146, 202, 255, 0.16);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.auth-card::before,
.event-board::before,
.integrity-panel::before,
.final-card::before,
.app-hero::before,
.profile-card::before,
.stat-card::before,
.panel-card::before,
.team-card::before,
.tournament-card::before,
.empty-premium::before {
    display: none;
}

.player-console {
    min-height: 470px;
}

.rank-panel,
.console-grid div,
.console-line,
.path-card,
.wallet-strip,
.ticket-identity,
.discord-ticket-box,
.credit-pack,
.ledger-row,
.requirement-box,
.profile-lines span {
    background: rgba(4, 17, 45, 0.62);
    border-color: rgba(146, 202, 255, 0.16);
    border-radius: 12px;
}

.rank-panel {
    border-color: rgba(35, 216, 255, 0.28);
}

.rank-panel strong {
    color: #ffffff;
    font-size: clamp(3.1rem, 5.2vw, 5rem);
}

.console-grid strong,
.format-strip span,
.path-card b {
    color: #ffffff;
}

.format-strip span {
    background: rgba(35, 216, 255, 0.10);
    border-color: rgba(35, 216, 255, 0.28);
    border-radius: 10px;
}

.quick-path {
    gap: 12px;
}

.path-card {
    padding: 20px;
}

.atlas-section-head {
    max-width: 760px;
    margin-bottom: 18px;
}

.atlas-section-head span {
    color: var(--cyan);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.atlas-section-head h2 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 600;
    line-height: 0.95;
    margin: 0;
    text-transform: uppercase;
}

.ecosystem-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecosystem-card {
    background:
        linear-gradient(180deg, rgba(12, 38, 88, 0.82), rgba(5, 17, 42, 0.88)),
        radial-gradient(circle at 20% 0, rgba(35, 216, 255, 0.10), transparent 18rem);
    border: 1px solid rgba(146, 202, 255, 0.16);
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-height: 190px;
    padding: 22px;
}

.ecosystem-card i {
    color: var(--cyan);
    font-size: 28px;
}

.ecosystem-card strong {
    color: #ffffff;
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    margin: 18px 0 8px;
    text-transform: uppercase;
}

.ecosystem-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* AtlasFN final brand pass: clean blue Fortnite ecosystem */
:root {
    --primary: #1677ff;
    --blue: #1677ff;
    --cyan: #19d7ff;
    --purple: #6c5cff;
    --orange: #ff7a1a;
    --bg: #050914;
    --bg-2: #081225;
    --card: rgba(8, 18, 38, 0.82);
    --line: rgba(130, 190, 255, 0.16);
    --line-strong: rgba(25, 215, 255, 0.42);
    --text: #f4f8ff;
    --muted: rgba(220, 234, 255, 0.70);
}

body {
    background:
        radial-gradient(circle at 18% 8%, rgba(22, 119, 255, 0.20), transparent 30rem),
        radial-gradient(circle at 78% 0%, rgba(25, 215, 255, 0.11), transparent 28rem),
        linear-gradient(180deg, #050914 0%, #07101f 48%, #050914 100%);
}

.pce-nav {
    background: rgba(5, 9, 20, 0.78);
    border-bottom: 1px solid rgba(130, 190, 255, 0.14);
    box-shadow: 0 14px 42px rgba(0, 6, 24, 0.34);
}

.pce-logo {
    background: linear-gradient(135deg, #1677ff 0%, #19d7ff 100%);
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 28px rgba(25, 215, 255, 0.22);
}

.home-title,
.page-title h1,
.app-hero h1,
.auth-title,
.section-heading h2,
.atlas-section-head h2 {
    letter-spacing: 0;
}

.panel,
.auth-card,
.form-card,
.team-card,
.tournament-card,
.profile-card,
.stat-card,
.panel-card,
.ecosystem-card,
.page-title,
.app-hero,
.credits-hero {
    background:
        linear-gradient(180deg, rgba(10, 23, 49, 0.86), rgba(5, 12, 28, 0.90)),
        radial-gradient(circle at 12% 0%, rgba(25, 215, 255, 0.08), transparent 22rem);
    border: 1px solid rgba(130, 190, 255, 0.15);
    box-shadow: 0 18px 48px rgba(0, 7, 28, 0.32);
}

.panel:hover,
.auth-card:hover,
.form-card:hover,
.team-card:hover,
.tournament-card:hover,
.profile-card:hover,
.stat-card:hover,
.panel-card:hover,
.ecosystem-card:hover {
    border-color: rgba(25, 215, 255, 0.30);
    box-shadow: 0 22px 54px rgba(0, 7, 28, 0.38);
}

.btn::after,
button.btn::after,
a.btn::after {
    display: none !important;
}

.btn,
button.btn,
a.btn,
.auth-card .btn,
.form-card .btn {
    border-radius: 9px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    min-height: 44px;
    overflow: hidden;
    padding: 0 18px;
    text-transform: uppercase;
}

.btn-lg {
    min-height: 52px;
    padding-inline: 24px;
}

.btn-sm {
    min-height: 36px;
    padding-inline: 13px;
}

.btn-pce,
a.btn-pce,
button.btn-pce {
    background: linear-gradient(180deg, #20d8ff 0%, #1677ff 56%, #0a47c8 100%);
    border: 1px solid rgba(179, 230, 255, 0.30);
    box-shadow: 0 0 0 1px rgba(25, 215, 255, 0.10), 0 14px 30px rgba(22, 119, 255, 0.28);
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.btn-pce:hover,
.btn-pce:focus,
.btn-pce:focus-visible {
    background: linear-gradient(180deg, #4ae4ff 0%, #2284ff 58%, #0e52d9 100%);
    border-color: rgba(207, 243, 255, 0.52);
    box-shadow: 0 0 0 1px rgba(25, 215, 255, 0.20), 0 18px 36px rgba(22, 119, 255, 0.34);
    color: #ffffff;
    filter: none;
    transform: translateY(-2px);
}

.btn-pce:active {
    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.20);
    transform: translateY(0);
}

.btn-ghost,
a.btn-ghost,
button.btn-ghost,
.btn-soft,
a.btn-soft,
button.btn-soft {
    background: rgba(7, 20, 46, 0.72);
    border: 1px solid rgba(130, 190, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    color: #dceeff;
}

.btn-ghost:hover,
.btn-ghost:focus,
.btn-ghost:focus-visible,
.btn-soft:hover,
.btn-soft:focus,
.btn-soft:focus-visible {
    background: rgba(22, 119, 255, 0.16);
    border-color: rgba(25, 215, 255, 0.54);
    box-shadow: 0 14px 30px rgba(25, 215, 255, 0.12);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn[disabled],
.btn.disabled,
button[disabled],
button:disabled {
    background: rgba(80, 105, 140, 0.22) !important;
    border-color: rgba(180, 205, 235, 0.16) !important;
    box-shadow: none !important;
    color: rgba(230, 240, 255, 0.46) !important;
    cursor: not-allowed;
    transform: none;
}

.nav-link {
    border-radius: 8px;
}

.nav-link:hover {
    background: rgba(25, 215, 255, 0.08);
}

.status-badge,
.badge {
    border-radius: 7px;
}

.auth-card input,
.auth-card select,
.auth-card textarea,
.field input,
.field select,
.field textarea {
    border-radius: 10px;
}

@media (max-width: 700px) {
    .btn,
    button.btn,
    a.btn {
        min-height: 46px;
    }
}

.event-row {
    border-top-color: rgba(146, 202, 255, 0.14);
}

.event-row strong,
.panel-head h2,
.team-top h2,
.tournament-card h2,
.profile-card h2 {
    color: #ffffff;
}

.status-badge {
    border-radius: 8px;
}

.credits-balance-panel {
    border-radius: 14px;
}

@media (max-width: 991px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .home-title {
        font-size: 4rem;
    }

    .ecosystem-card {
        min-height: auto;
    }
}

/* Site-wide AtlasFN UI cleanup */
.page-shell {
    padding-bottom: 72px;
}

.container {
    --bs-gutter-x: 1.25rem;
}

.app-page,
.form-page,
.auth-page {
    padding-top: 46px;
}

.page-title,
.app-hero {
    background:
        linear-gradient(180deg, rgba(12, 38, 88, 0.76), rgba(5, 17, 42, 0.78)),
        radial-gradient(circle at 0 0, rgba(35, 216, 255, 0.10), transparent 22rem);
    border: 1px solid rgba(146, 202, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(0, 8, 28, 0.24);
    margin-bottom: 22px;
    padding: 22px;
}

.page-title h1,
.app-hero h1,
.auth-title {
    color: #ffffff;
}

.page-title .btn,
.app-hero .btn {
    flex: 0 0 auto;
}

.panel,
.table-wrap {
    width: 100%;
}

.panel {
    background:
        linear-gradient(180deg, rgba(12, 38, 88, 0.90), rgba(5, 17, 42, 0.92)),
        radial-gradient(circle at 0 0, rgba(35, 216, 255, 0.10), transparent 24rem);
    border: 1px solid rgba(146, 202, 255, 0.16);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin: 0 auto;
    max-width: 1180px;
    overflow: hidden;
    padding: 22px;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap table,
.panel table {
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text);
    min-width: 760px;
    width: 100%;
}

.table-wrap thead th,
.panel thead th {
    background: rgba(35, 216, 255, 0.08);
    border-bottom: 1px solid rgba(146, 202, 255, 0.16);
    color: rgba(225, 238, 255, 0.82);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 13px 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-wrap tbody td,
.panel tbody td {
    background: rgba(4, 17, 45, 0.36);
    border-bottom: 1px solid rgba(146, 202, 255, 0.10);
    color: rgba(247, 251, 255, 0.90);
    font-size: 14px;
    font-weight: 700;
    padding: 14px;
    vertical-align: middle;
}

.table-wrap tbody tr:hover td,
.panel tbody tr:hover td {
    background: rgba(35, 216, 255, 0.07);
}

.table-wrap a,
.panel a {
    color: #d9f8ff;
    font-weight: 900;
}

.empty,
.panel .empty {
    color: var(--muted);
    padding: 28px !important;
    text-align: center;
}

.badge {
    background: rgba(35, 216, 255, 0.10);
    border: 1px solid rgba(35, 216, 255, 0.22);
    border-radius: 8px;
    color: #d9f8ff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 9px;
}

.auth-card .row {
    position: relative;
    z-index: 1;
}

.field label,
.auth-card label {
    color: rgba(225, 238, 255, 0.84);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-card .form-control,
.auth-card .form-select,
.auth-card input,
.auth-card select,
.auth-card textarea,
.field .form-control,
.field .form-select,
.field input,
.field select,
.field textarea {
    background: rgba(4, 17, 45, 0.72);
    border: 1px solid rgba(146, 202, 255, 0.16);
    border-radius: 12px;
    color: var(--text);
    min-height: 48px;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus,
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus,
.field .form-control:focus,
.field .form-select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    background: rgba(6, 25, 63, 0.92);
    border-color: rgba(35, 216, 255, 0.70);
    box-shadow: 0 0 0 0.22rem rgba(35, 216, 255, 0.12);
    color: var(--text);
}

.team-card,
.tournament-card,
.panel-card,
.profile-card,
.stat-card,
.auth-card,
.empty-premium {
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.team-card:hover,
.tournament-card:hover,
.panel-card:hover,
.profile-card:hover,
.stat-card:hover {
    border-color: rgba(35, 216, 255, 0.34);
    box-shadow: 0 20px 52px rgba(35, 216, 255, 0.08), var(--shadow);
    transform: translateY(-2px);
}

.team-meta span,
.tournament-meta span,
.mini-info span,
.profile-lines span {
    line-height: 1.45;
}

.event-row {
    min-height: 72px;
}

.event-row .btn,
.event-row .status-badge {
    flex: 0 0 auto;
}

.empty-premium {
    min-height: 250px;
    display: grid;
    place-items: center;
}

.empty-premium > * {
    max-width: 520px;
}

.empty-premium .btn {
    margin-top: 2px;
}

.credits-hero,
.app-hero,
.page-title,
.auth-card,
.panel-card,
.team-card,
.tournament-card,
.profile-card,
.stat-card,
.panel,
.ecosystem-card {
    background-clip: padding-box;
}

.pce-footer {
    background: rgba(4, 13, 33, 0.74);
}

@media (max-width: 991px) {
    .page-title,
    .app-hero {
        align-items: stretch;
    }

    .page-title .d-flex,
    .app-hero .d-flex {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .page-title,
    .app-hero,
    .panel,
    .auth-card,
    .panel-card,
    .team-card,
    .tournament-card {
        border-radius: 14px;
        padding: 18px;
    }

    .home-title {
        font-size: 3.6rem;
    }

    .page-title h1,
    .app-hero h1,
    .auth-title {
        font-size: 2.7rem;
    }

    .event-row {
        gap: 10px;
        min-height: auto;
    }

    .event-row .btn,
    .event-row .status-badge {
        width: 100%;
        justify-content: center;
    }
}

/* AtlasFN final button correction: no white bottom line, no misplaced top glow */
.btn,
button.btn,
a.btn,
.auth-card .btn,
.form-card .btn {
    background-clip: border-box !important;
    border-bottom-width: 1px !important;
    box-shadow: none !important;
    isolation: isolate;
    outline: 0 !important;
    overflow: hidden;
    position: relative;
}

.btn::before,
.btn::after,
button.btn::before,
button.btn::after,
a.btn::before,
a.btn::after {
    content: none !important;
    display: none !important;
}

.btn-pce,
a.btn-pce,
button.btn-pce {
    background: linear-gradient(180deg, #1b7cff 0%, #0d5ee8 100%) !important;
    border: 1px solid rgba(55, 150, 255, 0.62) !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

.btn-pce:hover,
.btn-pce:focus,
.btn-pce:focus-visible {
    background: linear-gradient(180deg, #218dff 0%, #106bff 100%) !important;
    border-color: rgba(83, 203, 255, 0.72) !important;
    box-shadow: 0 10px 24px rgba(13, 94, 232, 0.24) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-pce:active {
    background: #0d5ee8 !important;
    box-shadow: none !important;
    transform: translateY(0);
}

.btn-ghost,
a.btn-ghost,
button.btn-ghost,
.btn-soft,
a.btn-soft,
button.btn-soft {
    background: rgba(7, 18, 40, 0.82) !important;
    border: 1px solid rgba(92, 162, 255, 0.32) !important;
    box-shadow: none !important;
    color: #dceeff !important;
}

.btn-ghost:hover,
.btn-ghost:focus,
.btn-ghost:focus-visible,
.btn-soft:hover,
.btn-soft:focus,
.btn-soft:focus-visible {
    background: rgba(16, 107, 255, 0.18) !important;
    border-color: rgba(83, 203, 255, 0.56) !important;
    box-shadow: 0 10px 22px rgba(13, 94, 232, 0.14) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn[disabled],
.btn.disabled,
button[disabled],
button:disabled {
    box-shadow: none !important;
    transform: none !important;
}

/* AtlasFN premium flow polish */
:root {
    --arena-blue: #1677ff;
    --arena-cyan: #20d8ff;
    --arena-ink: #050914;
    --arena-panel: rgba(7, 18, 40, 0.80);
    --arena-panel-strong: rgba(9, 24, 54, 0.92);
    --arena-border: rgba(129, 194, 255, 0.18);
    --arena-border-hot: rgba(32, 216, 255, 0.48);
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(32, 216, 255, 0.28);
    color: #ffffff;
}

body {
    color-scheme: dark;
}

.pce-bg::after {
    animation: atlasGridFlow 18s linear infinite;
    background:
        linear-gradient(90deg, rgba(32, 216, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(32, 216, 255, 0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    inset: -20%;
    mask-image: radial-gradient(circle at 50% 18%, black, transparent 72%);
    opacity: 0.22;
    position: absolute;
    transform: rotate(-4deg);
}

.page-shell {
    animation: atlasPageIn 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pce-nav {
    backdrop-filter: blur(22px) saturate(1.25);
}

.pce-brand {
    transition: transform 180ms ease;
}

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

.pce-logo {
    position: relative;
}

.pce-logo::after {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    content: "";
    height: 4px;
    opacity: 0.76;
    position: absolute;
    right: 7px;
    top: 7px;
    width: 4px;
}

.nav-link {
    font-weight: 800;
    letter-spacing: 0.01em;
    padding-inline: 0.72rem !important;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.home-hero {
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.home-hero::before {
    background:
        linear-gradient(115deg, rgba(32, 216, 255, 0.16), transparent 32%),
        linear-gradient(295deg, rgba(22, 119, 255, 0.14), transparent 30%);
    content: "";
    inset: 12% -8% auto -8%;
    height: 62%;
    opacity: 0.75;
    pointer-events: none;
    position: absolute;
    transform: skewY(-5deg);
    z-index: -1;
}

.home-title {
    background: linear-gradient(180deg, #ffffff 0%, #e6f5ff 42%, #71dfff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    filter: drop-shadow(0 18px 38px rgba(0, 8, 28, 0.42));
}

.home-copy,
.auth-copy,
.app-hero p,
.page-title p,
.credits-hero p {
    color: rgba(225, 238, 255, 0.78);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.68;
}

.pce-badge {
    background: linear-gradient(180deg, rgba(20, 45, 92, 0.84), rgba(8, 18, 40, 0.82));
    border-color: rgba(32, 216, 255, 0.32);
    box-shadow: 0 12px 30px rgba(0, 8, 28, 0.22);
}

.hero-actions,
.credits-actions,
.form-actions {
    align-items: center;
}

.btn,
button.btn,
a.btn {
    transform-origin: center;
    transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease, color 170ms ease !important;
}

.btn-pce,
a.btn-pce,
button.btn-pce {
    background: linear-gradient(180deg, #27dcff 0%, #1677ff 64%, #105bd4 100%) !important;
    border-color: rgba(100, 207, 255, 0.52) !important;
    box-shadow: 0 12px 28px rgba(22, 119, 255, 0.20) !important;
}

.btn-pce:hover,
.btn-pce:focus,
.btn-pce:focus-visible {
    box-shadow: 0 16px 34px rgba(32, 216, 255, 0.18), 0 0 0 3px rgba(32, 216, 255, 0.07) !important;
    transform: translateY(-2px);
}

.btn-ghost,
.btn-soft,
a.btn-ghost,
a.btn-soft,
button.btn-ghost,
button.btn-soft {
    background: rgba(8, 22, 50, 0.72) !important;
    border-color: rgba(129, 194, 255, 0.24) !important;
}

.btn-ghost:hover,
.btn-soft:hover,
.btn-ghost:focus-visible,
.btn-soft:focus-visible {
    background: rgba(16, 107, 255, 0.18) !important;
    box-shadow: 0 14px 30px rgba(16, 107, 255, 0.13) !important;
}

.player-console {
    animation: consoleFloat 6s ease-in-out infinite;
    border-radius: 24px;
    transform-style: preserve-3d;
}

.player-console::after {
    background:
        linear-gradient(90deg, transparent, rgba(32, 216, 255, 0.26), transparent);
    content: "";
    height: 1px;
    left: 26px;
    position: absolute;
    right: 26px;
    top: 76px;
}

.console-status-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.console-status-strip span {
    align-items: center;
    background: rgba(11, 36, 82, 0.64);
    border: 1px solid rgba(129, 194, 255, 0.16);
    border-radius: 10px;
    color: rgba(232, 245, 255, 0.88);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 7px;
    justify-content: center;
    min-height: 38px;
    text-transform: uppercase;
}

.format-strip {
    background: rgba(5, 14, 34, 0.58);
    border: 1px solid rgba(129, 194, 255, 0.14);
    border-radius: 14px;
    padding: 8px;
}

.format-strip span {
    background: rgba(12, 38, 88, 0.54);
    border: 1px solid rgba(32, 216, 255, 0.16);
    border-radius: 10px;
    color: #eff8ff;
}

.quick-path {
    perspective: 900px;
}

.path-card {
    border-radius: 16px;
    min-height: 142px;
    overflow: hidden;
    position: relative;
}

.path-card::after {
    background: linear-gradient(90deg, var(--arena-cyan), transparent);
    bottom: 0;
    content: "";
    height: 2px;
    left: 18px;
    opacity: 0.72;
    position: absolute;
    right: 18px;
}

.path-card:hover {
    transform: translateY(-4px) rotateX(2deg);
}

.app-hero,
.page-title,
.credits-hero,
.auth-card,
.panel-card,
.profile-card,
.stat-card,
.team-card,
.tournament-card,
.ecosystem-card,
.event-board,
.final-card {
    border-color: var(--arena-border);
    position: relative;
}

.app-hero::after,
.page-title::after,
.credits-hero::after,
.auth-card::after,
.panel-card::after,
.profile-card::after,
.stat-card::after,
.team-card::after,
.tournament-card::after,
.ecosystem-card::after,
.event-board::after,
.final-card::after {
    background: linear-gradient(90deg, transparent, rgba(32, 216, 255, 0.30), transparent);
    content: "";
    height: 1px;
    left: 18px;
    opacity: 0.55;
    pointer-events: none;
    position: absolute;
    right: 18px;
    top: 0;
}

.app-hero,
.page-title,
.credits-hero {
    padding: clamp(22px, 3vw, 34px);
}

.dashboard-lobby {
    align-items: stretch;
}

.profile-card,
.stat-card,
.panel-card,
.team-card,
.tournament-card,
.ecosystem-card {
    transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease, background 190ms ease;
}

.profile-card:hover,
.stat-card:hover,
.panel-card:hover,
.team-card:hover,
.tournament-card:hover,
.ecosystem-card:hover {
    border-color: var(--arena-border-hot);
    box-shadow: 0 18px 42px rgba(0, 8, 28, 0.34), 0 0 0 1px rgba(32, 216, 255, 0.06);
    transform: translateY(-3px);
}

.stat-card {
    background:
        radial-gradient(circle at 84% 18%, rgba(32, 216, 255, 0.12), transparent 8rem),
        linear-gradient(180deg, rgba(10, 27, 62, 0.88), rgba(5, 13, 31, 0.92));
}

.stat-card i {
    opacity: 0.95;
}

.profile-ring {
    box-shadow: 0 0 36px rgba(32, 216, 255, 0.12);
}

.panel-head {
    gap: 16px;
}

.panel-head h2,
.event-board h2,
.form-head h2 {
    letter-spacing: 0.01em;
}

.event-row,
.ledger-row {
    border-radius: 12px;
    margin-top: 8px;
    padding-inline: 14px;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.event-row:hover,
.ledger-row:hover {
    background: rgba(32, 216, 255, 0.055);
    transform: translateX(2px);
}

.tournament-card {
    display: flex;
    flex-direction: column;
}

.tournament-card .mt-4 {
    margin-top: auto !important;
    padding-top: 18px;
}

.tournament-status {
    margin-bottom: 16px;
}

.tournament-meta {
    display: grid;
    gap: 9px;
}

.status-badge,
.badge {
    backdrop-filter: blur(10px);
    letter-spacing: 0.04em;
}

.auth-page,
.form-page {
    min-height: calc(100vh - 178px);
}

.auth-card {
    overflow: hidden;
}

.input-wrap {
    transition: border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.input-wrap:focus-within {
    box-shadow: 0 0 0 3px rgba(32, 216, 255, 0.08), 0 14px 30px rgba(0, 8, 28, 0.20);
    transform: translateY(-1px);
}

.signup-strip {
    background: rgba(5, 14, 34, 0.62);
    border-radius: 14px;
}

.form-section {
    background: rgba(5, 15, 36, 0.46);
    border-color: rgba(129, 194, 255, 0.13);
}

.credit-pack,
.credit-step,
.ticket-identity,
.discord-ticket-box {
    transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.credit-pack:hover,
.credit-step:hover,
.ticket-identity:hover,
.discord-ticket-box:hover {
    border-color: rgba(32, 216, 255, 0.32);
    transform: translateY(-2px);
}

.final-card {
    overflow: hidden;
}

.final-card::before {
    animation: atlasSweep 7s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(32, 216, 255, 0.12), transparent);
    content: "";
    height: 100%;
    left: -50%;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    width: 42%;
}

.animate-in {
    animation-duration: 760ms;
}

.delay-1 {
    animation-delay: 120ms;
}

.delay-2 {
    animation-delay: 220ms;
}

.delay-3 {
    animation-delay: 320ms;
}

@keyframes atlasPageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes atlasGridFlow {
    from {
        transform: rotate(-4deg) translate3d(0, 0, 0);
    }
    to {
        transform: rotate(-4deg) translate3d(72px, 72px, 0);
    }
}

@keyframes consoleFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes atlasSweep {
    0%,
    38% {
        left: -55%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    72%,
    100% {
        left: 112%;
        opacity: 0;
    }
}

@media (max-width: 991px) {
    .player-console {
        animation: none;
    }
}

@media (max-width: 700px) {
    .console-status-strip {
        grid-template-columns: 1fr;
    }

    .home-hero::before {
        height: 45%;
        top: 14%;
    }

    .event-row:hover,
    .ledger-row:hover {
        transform: none;
    }
}
