/* ====== THEME TOKENS ====== */
:root {
    --bg-0: #040815;
    --bg-1: #070d1f;
    --surface-0: #0b1226;
    --surface-1: #0f1a33;
    --surface-2: #132140;

    --text-primary: #ecf3ff;
    --text-secondary: #a7b4d0;
    --text-muted: #7f8ca8;

    --line: #1f2d4f;
    --line-soft: #1a2440;

    --primary-neon: #00f58b;
    --primary-neon-strong: #00ff9f;
    --primary-purple: #8f6bff;
    --danger: #ff4b64;
    --warning: #f7b83d;

    --gradient-neon: linear-gradient(135deg, #00f58b 0%, #00c2ff 100%);
    --gradient-purple: linear-gradient(135deg, #8f6bff 0%, #df5eff 100%);

    /* Compatibilidad con estilos inline existentes */
    --primary-dark: var(--bg-0);
    --surface-dark: var(--surface-0);
    --surface-card: var(--surface-1);
    --border-color: var(--line);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.35);
    --shadow-neon:
        0 0 0 1px rgba(0, 245, 139, 0.15), 0 0 30px rgba(0, 245, 139, 0.15);
}

/* ====== RESET ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(0, 245, 139, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 5%,
            rgba(143, 107, 255, 0.12),
            transparent 32%
        ),
        linear-gradient(180deg, #040815 0%, #050b1a 100%);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(
        rgba(179, 204, 255, 0.2) 1px,
        transparent 1px
    );
    background-size: 130px 130px;
    opacity: 0.2;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(4, 8, 21, 0) 0%,
        rgba(4, 8, 21, 0.65) 70%,
        rgba(4, 8, 21, 0.95) 100%
    );
    z-index: -1;
}

/* ====== TYPOGRAPHY ====== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Sora", "Inter", sans-serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(1.8rem, 2.8vw, 3.25rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.3rem, 1.8vw, 2rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.05rem, 1.3vw, 1.3rem);
    margin-bottom: 0.5rem;
}

p,
li {
    color: var(--text-secondary);
}

a {
    color: inherit;
}

/* ====== LAYOUT ====== */
.main-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 2rem 1.2rem 3rem;
    min-height: calc(100vh - 176px);
}

/* ====== NAVBAR ====== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 13, 31, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.navbar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.navbar-brand {
    flex-shrink: 0;
}

.flex {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.inline-flex {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.navbar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 99;
}

.mb-05 {
    margin-bottom: 0.5rem;
}
.navbar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #dce9ff;
    border-radius: 999px;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.navbar-collapse {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.62rem 0.8rem;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 245, 139, 0.1);
}

.admin-badge {
    color: #c4b2ff;
    background: rgba(143, 107, 255, 0.18);
}

.navbar-actions {
    margin-left: auto;
    flex-shrink: 0;
}

.logout-form {
    display: inline-block;
}

/* ====== BUTTONS ====== */
.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 11px;
    padding: 0.78rem 1.35rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: "Inter", sans-serif;
    transition:
        transform 0.2s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

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

.btn-primary {
    color: #042315;
    background: var(--gradient-neon);
    box-shadow: 0 8px 24px rgba(0, 245, 139, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 12px 26px rgba(0, 245, 139, 0.45);
}

.btn-secondary {
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--surface-1), var(--surface-0));
    border: 1px solid var(--line);
}

.btn-secondary:hover {
    color: var(--primary-neon);
    border-color: rgba(0, 245, 139, 0.42);
    box-shadow: var(--shadow-neon);
}

.btn-lg {
    padding: 0.95rem 1.6rem;
    font-size: 0.85rem;
}

button {
    font-family: "Inter", sans-serif;
}

/* ====== ALERTS ====== */
.alert {
    margin-bottom: 1.25rem;
    border-radius: var(--radius-sm);
    padding: 0.95rem 1rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.alert-success {
    background: rgba(0, 245, 139, 0.11);
    border-color: rgba(0, 245, 139, 0.34);
    color: #9dffd2;
}

.alert-error {
    background: rgba(255, 75, 100, 0.12);
    border-color: rgba(255, 75, 100, 0.38);
    color: #ffb8c3;
}

.alert-icon {
    font-weight: 800;
}

/* ====== HERO (HOME) ====== */
.hero {
    background: linear-gradient(
        165deg,
        rgba(8, 16, 38, 0.95),
        rgba(6, 11, 27, 0.9)
    );
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(1.2rem, 3vw, 2.2rem);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    top: -100px;
    background: radial-gradient(
        circle,
        rgba(0, 245, 139, 0.2),
        transparent 65%
    );
    pointer-events: none;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.1rem;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 245, 139, 0.38);
    color: var(--primary-neon);
    border-radius: 999px;
    padding: 0.36rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.95rem;
    background: rgba(0, 245, 139, 0.09);
}

.hero-title {
    margin-bottom: 0.8rem;
    font-size: clamp(1.7rem, 4vw, 3.1rem);
    line-height: 1.05;
}

.hero-title span {
    color: var(--primary-neon);
}

.hero-copy p {
    max-width: 62ch;
}

.hero-actions {
    margin-top: 1.4rem;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    border: 1px solid var(--line);
    background: rgba(11, 18, 38, 0.8);
    border-radius: 14px;
    padding: 0.95rem;
    min-height: 100%;
}

.feature-card h4 {
    font-family: "Inter", sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0;
    margin: 0 0 0.35rem;
}

.feature-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.55rem;
    font-size: 1rem;
    background: rgba(0, 245, 139, 0.12);
    color: var(--primary-neon);
    border: 1px solid rgba(0, 245, 139, 0.25);
}

/* ====== HOW IT WORKS ====== */
.how-it-works {
    margin-top: 2.7rem;
}

.how-head {
    text-align: center;
    margin-bottom: 1.2rem;
}

.how-kicker {
    color: var(--primary-neon);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.how-head h2 {
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

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

.step-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        rgba(12, 18, 38, 0.95),
        rgba(8, 12, 27, 0.95)
    );
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
}

.step-number {
    position: absolute;
    right: 1rem;
    top: 0.3rem;
    font-size: 3.8rem;
    font-weight: 900;
    color: rgba(143, 107, 255, 0.18);
    line-height: 1;
}

.step-card h3 {
    margin: 0.5rem 0 0.55rem;
}

.step-card p {
    min-height: 52px;
}

.step-card .step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    border: 1px solid rgba(0, 245, 139, 0.25);
    background: rgba(0, 245, 139, 0.1);
}

.step-tags {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.step-tag {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: #c6d2ef;
    border-radius: 8px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.step-card-purple .step-number {
    color: rgba(165, 110, 255, 0.25);
}

.step-card-purple .step-icon {
    border-color: rgba(143, 107, 255, 0.35);
    background: rgba(143, 107, 255, 0.16);
}

/* ====== LEAGUES SECTION ====== */
.leagues-section {
    margin-top: 3rem;
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.9rem;
}

.league-card {
    border: 1px solid rgba(0, 245, 139, 0.45);
    border-radius: 16px;
    background: linear-gradient(
        180deg,
        rgba(6, 18, 28, 0.9),
        rgba(5, 13, 22, 0.9)
    );
    padding: 1.1rem;
}

.league-card h3 {
    margin: 0.6rem 0 0.25rem;
}

.league-card p {
    color: #95a6c8;
}

.league-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    font-size: 1.25rem;
}

.private-league-card {
    margin-top: 1.35rem;
    border: 1px solid rgba(143, 107, 255, 0.35);
    border-radius: 20px;
    background: linear-gradient(
        130deg,
        rgba(15, 12, 50, 0.85),
        rgba(4, 24, 40, 0.85)
    );
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.private-league-card h2 span {
    color: var(--primary-neon);
}

/* ====== CARDS / GRID ====== */
.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
    border: 1px solid var(--line);
    background: linear-gradient(
        180deg,
        rgba(15, 26, 51, 0.86),
        rgba(11, 18, 38, 0.86)
    );
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 245, 139, 0.45);
    box-shadow: var(--shadow-neon);
}

.card-highlight {
    font-weight: 900;
    font-size: 1.6rem;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== TABLES ====== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(11, 18, 38, 0.85);
}

thead {
    background: rgba(19, 33, 64, 0.8);
}

th,
td {
    padding: 0.86rem 0.95rem;
    border-bottom: 1px solid var(--line-soft);
}

th {
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    font-weight: 800;
}

td {
    color: var(--text-secondary);
}

tbody tr:hover {
    background: rgba(0, 245, 139, 0.07);
}

tbody tr:last-child td {
    border-bottom: 0;
}

/* ====== FORMS ====== */
label {
    color: var(--text-primary);
}

input,
select,
textarea {
    width: 100%;
    max-width: 420px;
    padding: 0.75rem 0.95rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(8, 14, 30, 0.9);
    color: var(--text-primary);
    font-size: 0.96rem;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(0, 245, 139, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 245, 139, 0.14);
    background: rgba(10, 18, 38, 0.95);
}

input::placeholder,
textarea::placeholder {
    color: #73809c;
}

/* ====== BADGES ====== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-success {
    color: #8bffd1;
    border: 1px solid rgba(0, 245, 139, 0.35);
    background: rgba(0, 245, 139, 0.11);
}

.badge-warning {
    color: #ffdca5;
    border: 1px solid rgba(247, 184, 61, 0.35);
    background: rgba(247, 184, 61, 0.1);
}

.badge-danger {
    color: #ffb6c1;
    border: 1px solid rgba(255, 75, 100, 0.35);
    background: rgba(255, 75, 100, 0.12);
}

/* ====== LISTS ====== */
ul {
    margin-left: 1.1rem;
}

ul li {
    margin-bottom: 0.45rem;
}

/* ====== CONTACT PAGE ====== */
.contact-page {
    max-width: 860px;
    margin: 0 auto;
}

.contact-head {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-panel {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(
        180deg,
        rgba(8, 14, 30, 0.95),
        rgba(6, 10, 24, 0.95)
    );
    padding: 1.25rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.contact-help {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.contact-error {
    display: inline-block;
    margin-top: 0.35rem;
    color: #ff9cab;
    font-size: 0.85rem;
}

.contact-actions {
    margin-top: 0.2rem;
}

/* ====== TERMS PAGE ====== */
.terms-page {
    max-width: 980px;
    margin: 0 auto;
}

.terms-head {
    text-align: center;
    margin-bottom: 1.1rem;
}

.terms-head p {
    max-width: 62ch;
    margin: 0.3rem auto 0;
}

.terms-panel {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(
        180deg,
        rgba(8, 14, 30, 0.95),
        rgba(6, 10, 24, 0.95)
    );
    padding: 1.3rem;
}

.terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.terms-list {
    margin-left: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.terms-list li {
    margin: 0;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 0.7rem 0.75rem;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.65rem;
    align-items: start;
}

.terms-index {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-neon);
    border: 1px solid rgba(0, 245, 139, 0.4);
    background: rgba(0, 245, 139, 0.12);
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

.terms-list li p {
    margin: 0;
}

.terms-note {
    margin-top: 1rem;
    border: 1px solid rgba(0, 245, 139, 0.3);
    background: rgba(0, 245, 139, 0.08);
    color: #d6ffe9;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}

/* ====== RULES PAGE ====== */
.rules-page {
    max-width: 980px;
    margin: 0 auto;
}

.rules-head {
    text-align: center;
    margin-bottom: 1.1rem;
}

.rules-panel {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(
        180deg,
        rgba(8, 14, 30, 0.95),
        rgba(6, 10, 24, 0.95)
    );
    padding: 1.3rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.rules-list {
    margin-left: 0;
    list-style: none;
}

.rules-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid var(--line-soft);
    padding: 0.55rem 0;
}

.rules-list li strong {
    color: var(--primary-neon);
}

.rules-table-wrap {
    margin-top: 0.5rem;
}

/* ====== FOOTER ====== */
.footer {
    border-top: 1px solid var(--line-soft);
    background: rgba(6, 10, 24, 0.92);
    margin-top: 1rem;
}

.footer-content {
    max-width: 1250px;
    margin: 0 auto;
    padding: 1rem 1.2rem 1.2rem;
}

.footer-badge {
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
    padding: 0.6rem;
    color: #c8d5ef;
    background: rgba(15, 24, 44, 0.8);
    margin-bottom: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 1rem;
}

.footer-logo {
    width: 140px;
    height: auto;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.footer-social {
    display: flex;
    gap: 0.45rem;
}

.footer-social span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: #d6e0f7;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
}

.footer-grid h4 {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    margin-bottom: 0.55rem;
}

.footer-grid a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.footer-grid a:hover {
    color: var(--primary-neon);
}

.footer-bottom {
    margin-top: 1rem;
    border-top: 1px solid var(--line-soft);
    padding-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ====== WHATSAPP FLOAT ====== */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 1200;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* ====== UTILITIES ====== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

/* ====== ACCESSIBILITY ====== */
*:focus-visible {
    outline: 2px solid rgba(0, 245, 139, 0.8);
    outline-offset: 2px;
}

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

/* ====== RESPONSIVE ====== */
@media (max-width: 1000px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .leagues-grid {
        grid-template-columns: 1fr;
    }

    .private-league-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-grid,
    .terms-grid,
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 880px) {
    .navbar-container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.7rem;
    }

    .navbar-toggle {
        display: inline-flex;
    }

    .navbar-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .navbar-collapse {
        display: none;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line-soft);
        border-radius: 14px;
        background: rgba(8, 14, 30, 0.95);
        padding: 0.65rem;
        position: absolute;
        right: 0px;
        top: 0px;
    }

    .navbar-collapse.open {
        display: flex;
    }

    .navbar-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .nav-link {
        width: 100%;
        border-radius: 10px;
    }

    .navbar-actions {
        margin-left: 0;
        width: 100%;
        text-align: left;
        margin-top: 0.3rem;
    }

    .navbar-actions .btn,
    .logout-form,
    .logout-form .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .main-container {
        padding: 1.2rem 0.85rem 2rem;
    }

    .navbar-menu {
        justify-content: center;
    }

    .feature-card p {
        font-size: 0.83rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .step-card p {
        min-height: auto;
    }
}
