/*
Theme Name: ZLeague
Theme URI: https://zleague.gg
Author: ZLeague
Author URI: https://zleague.gg
Description: Professional dark esports tournament management theme with group stages, bracket visualization, player profiles, and global rankings.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zleague-theme
Tags: dark, esports, tournaments, gaming, sports, responsive
*/

/* ============================================================
   BASE RESET & VARIABLES
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color palette */
    --bg:           #0a0a0f;
    --bg2:          #0d1117;
    --card:         #161b22;
    --card2:        #1c2128;
    --sidebar:      #16213e;
    --border:       #30363d;
    --primary:      #58a6ff;
    --primary-dark: #1f6feb;
    --accent:       #ff6b6b;
    --green:        #3fb950;
    --yellow:       #d29922;
    --purple:       #bc8cff;
    --text:         #e6edf3;
    --text2:        #c9d1d9;
    --muted:        #8b949e;
    --white:        #ffffff;

    /* Typography */
    --font-head: 'Rajdhani', 'Barlow Condensed', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  40px;
    --space-xxl: 64px;

    /* Layout */
    --max-width: 1280px;
    --radius:    8px;
    --radius-lg: 16px;

    /* Transitions */
    --trans: .2s ease;
    --trans-slow: .4s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
    --glow-primary: 0 0 20px rgba(88,166,255,.2);
    --glow-accent:  0 0 20px rgba(255,107,107,.2);
}

/* ============================================================
   BASE ELEMENTS
   ============================================================ */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--trans);
}
a:hover { color: #79baff; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}
h1 { font-size: clamp(28px, 5vw, 52px); }
h2 { font-size: clamp(22px, 3.5vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

p { margin-bottom: var(--space-md); color: var(--text2); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: var(--space-lg); }
li { margin-bottom: var(--space-xs); color: var(--text2); }

strong, b { font-weight: 700; color: var(--text); }
em, i     { font-style: italic; }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-xl) 0;
}

code {
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: .875em;
    color: var(--purple);
}

pre {
    background: var(--card);
    border: 1px solid var(--border);
    padding: var(--space-md);
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: var(--space-md);
}
pre code { background: none; border: none; padding: 0; }

blockquote {
    border-left: 3px solid var(--primary);
    padding: var(--space-md) var(--space-lg);
    background: rgba(88,166,255,.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: var(--space-md);
}

table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
}
th {
    background: var(--card2);
    font-weight: 700;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

input, select, textarea {
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: var(--space-sm) var(--space-md);
    width: 100%;
    transition: border-color var(--trans), box-shadow var(--trans);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88,166,255,.15);
}

button, .button, .btn {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all var(--trans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-decoration: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.zl-main-content {
    flex: 1;
    padding: var(--space-xl) 0;
}

.zl-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}
.zl-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.zl-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
.zl-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-xl);
    align-items: start;
}

@media (max-width: 1100px) {
    .zl-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .zl-with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .container { padding: 0 var(--space-md); }
    .zl-grid-2,
    .zl-grid-3,
    .zl-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   HEADER
   ============================================================ */
.zl-header {
    background: rgba(13,17,23,.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.zl-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    height: 64px;
}

.zl-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    flex-shrink: 0;
}
.zl-logo__mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: #fff;
    font-family: var(--font-head);
}
.zl-logo__text {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.zl-logo__text span { color: var(--primary); }

.zl-nav {
    flex: 1;
}
.zl-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}
.zl-nav li { margin: 0; }
.zl-nav a {
    display: block;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border-radius: var(--radius);
    transition: all var(--trans);
    white-space: nowrap;
}
.zl-nav a:hover,
.zl-nav .current-menu-item a,
.zl-nav .current-page-ancestor a {
    color: var(--text);
    background: rgba(88,166,255,.08);
}

.zl-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* Mobile Nav Toggle */
.zl-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-sm);
    color: var(--text);
    cursor: pointer;
}
.zl-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 4px 0;
    transition: all var(--trans);
}

@media (max-width: 768px) {
    .zl-nav-toggle { display: block; }
    .zl-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(13,17,23,.98);
        border-bottom: 1px solid var(--border);
        padding: var(--space-md);
    }
    .zl-nav.open { display: block; }
    .zl-nav ul { flex-direction: column; gap: var(--space-xs); }
    .zl-nav a { padding: 10px 16px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.zl-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: auto;
}

.zl-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.zl-footer__brand p {
    margin-top: var(--space-sm);
    color: var(--muted);
    font-size: 14px;
    max-width: 320px;
}

.zl-footer__col h5 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted);
    margin-bottom: var(--space-md);
}
.zl-footer__col ul {
    list-style: none;
    padding: 0;
}
.zl-footer__col li { margin-bottom: var(--space-sm); }
.zl-footer__col a { color: var(--muted); font-size: 14px; }
.zl-footer__col a:hover { color: var(--text); }

.zl-footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 768px) {
    .zl-footer__grid { grid-template-columns: 1fr; }
    .zl-footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background: var(--primary);
    color: #000;
    font-weight: 700;
    padding: 10px 20px;
    font-size: 14px;
}
.btn-primary:hover {
    background: #79baff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(88,166,255,.3);
    color: #000;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 10px 20px;
    font-size: 14px;
}
.btn-accent:hover {
    background: #ff8585;
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 20px;
    font-size: 14px;
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ============================================================
   CARDS
   ============================================================ */
.zl-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.zl-card-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.zl-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.zl-card-body { padding: var(--space-lg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.zl-hero {
    position: relative;
    background: linear-gradient(135deg, #0d1117 0%, #0f3460 50%, #16213e 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.zl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(88,166,255,.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,107,107,.08) 0%, transparent 40%);
    pointer-events: none;
}
.zl-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xxl) 0;
    min-height: 460px;
}
.zl-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(88,166,255,.1);
    border: 1px solid rgba(88,166,255,.2);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: var(--space-md);
}
.zl-hero__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.3); }
}
.zl-hero__title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}
.zl-hero__title .highlight {
    background: linear-gradient(135deg, var(--primary), #a5d6f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.zl-hero__desc {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: var(--space-lg);
    max-width: 480px;
    line-height: 1.7;
}
.zl-hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.zl-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zl-hero__featured-card {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 440px;
    width: 100%;
}
.zl-hero__featured-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.zl-hero__featured-info {
    padding: var(--space-md);
}
.zl-hero__featured-info h3 {
    font-size: 18px;
    margin-bottom: var(--space-sm);
}
.zl-hero__featured-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .zl-hero__inner { grid-template-columns: 1fr; padding: var(--space-xl) 0; }
    .zl-hero__visual { display: none; }
}

/* ============================================================
   TOURNAMENT GRID
   ============================================================ */
.zl-torneos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* Torneo Card */
.zl-torneo-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.zl-torneo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(88,166,255,.12);
    border-color: rgba(88,166,255,.3);
}
.zl-torneo-card__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.zl-torneo-card__thumb-ph {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0f3460, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: var(--primary);
    opacity: .4;
}
.zl-torneo-card__body {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.zl-torneo-card__badge { align-self: flex-start; }
.zl-torneo-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.zl-torneo-card__title a { color: var(--text); text-decoration: none; }
.zl-torneo-card__title a:hover { color: var(--primary); }
.zl-torneo-card__meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.zl-torneo-card__footer {
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================================
   STATUS BADGE
   ============================================================ */
.zl-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap;
}
.zl-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.zl-badge-inscripciones { background: rgba(88,166,255,.12);  color: var(--primary); }
.zl-badge-grupos        { background: rgba(63,185,80,.12);   color: var(--green); }
.zl-badge-brackets      { background: rgba(210,153,34,.12);  color: var(--yellow); }
.zl-badge-finalizado    { background: rgba(255,107,107,.12); color: var(--accent); }

/* ============================================================
   TOURNAMENT SINGLE PAGE
   ============================================================ */
.zl-torneo-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xl);
}
.zl-torneo-header__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    align-items: center;
}
.zl-torneo-header__thumb {
    width: 200px;
    height: 112px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.zl-torneo-header__info { }
.zl-torneo-header__title { font-size: clamp(24px, 4vw, 40px); margin-bottom: var(--space-sm); }
.zl-torneo-header__meta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
    align-items: center;
}
.zl-torneo-header__meta strong { color: var(--text); }

@media (max-width: 768px) {
    .zl-torneo-header__inner { grid-template-columns: 1fr; }
    .zl-torneo-header__thumb { width: 100%; height: auto; max-height: 200px; }
}

/* Tabs */
.zl-tabs-container { }
.zl-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
    scrollbar-width: none;
}
.zl-tabs::-webkit-scrollbar { display: none; }
.zl-tab-btn {
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--trans), border-color var(--trans);
    letter-spacing: .2px;
}
.zl-tab-btn:hover   { color: var(--text); }
.zl-tab-btn.active  { color: var(--primary); border-bottom-color: var(--primary); }
.zl-tab-panel       { display: none; }
.zl-tab-panel.active { display: block; }

/* ============================================================
   GROUP TABLES
   ============================================================ */
.zl-grupos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
}
.zl-grupo-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.zl-grupo-card__header {
    background: rgba(88,166,255,.06);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.zl-grupo-card__header h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0;
}
.zl-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.zl-standings-table {
    width: 100%;
    min-width: 520px; /* ensures all 10 cols are visible before scrolling */
    border-collapse: collapse;
    font-size: 13px;
}
.zl-standings-table thead th {
    background: rgba(255,255,255,.02);
    padding: 7px 10px;
    text-align: center;
    color: var(--muted);
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--border);
}
.zl-standings-table thead th:first-child,
.zl-standings-table thead th:nth-child(2) { text-align: left; }
.zl-standings-table tbody td {
    padding: 9px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(48,54,61,.4);
    color: var(--text2);
}
.zl-standings-table tbody td:first-child { color: var(--muted); font-weight: 600; }
.zl-standings-table tbody td:nth-child(2) { text-align: left; font-weight: 600; color: var(--text); }
.zl-standings-table tbody tr:last-child td { border-bottom: none; }
.zl-standings-table tbody tr:hover { background: rgba(88,166,255,.04); }
.zl-row-clasifica td:first-child { color: var(--green) !important; }
.zl-pts-cell { font-weight: 700 !important; color: var(--primary) !important; }
.zl-match-player-link:hover { text-decoration: underline !important; }

/* ============================================================
   BRACKET TREE
   ============================================================ */
.zl-bracket-scroll {
    overflow-x: auto;
    padding-bottom: var(--space-md);
}
.zl-bracket-scroll::-webkit-scrollbar { height: 4px; }
.zl-bracket-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.zl-bracket-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.zl-bracket-wrapper {
    display: flex;
    align-items: stretch;
    min-width: max-content;
    gap: 0;
}
.zl-bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-width: 210px;
    padding: 0 20px;
    position: relative;
}
.zl-bracket-round + .zl-bracket-round::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: var(--border);
}
.zl-bracket-round-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: .8px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.zl-bracket-match {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 8px 0;
    transition: border-color var(--trans);
}
.zl-bracket-match:hover { border-color: rgba(88,166,255,.3); }
.zl-bracket-player {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    border-bottom: 1px solid var(--border);
    transition: background var(--trans);
    min-height: 42px;
}
.zl-bracket-player:last-child { border-bottom: none; }
.zl-bracket-player.winner {
    background: rgba(63,185,80,.08);
    color: var(--green);
}
.zl-bracket-player.loser { color: var(--muted); }
.zl-bp-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--trans);
}
.zl-bp-name:hover {
    color: var(--primary);
    text-decoration: underline;
}
.zl-bracket-player.winner .zl-bp-name { color: var(--green); }
.zl-bracket-player.winner .zl-bp-name:hover { color: var(--green); filter: brightness(1.2); }
.zl-bracket-player.loser  .zl-bp-name { color: var(--muted); }
.zl-bp-score    { font-weight: 800; font-size: 15px; min-width: 20px; text-align: right; }
.zl-bracket-tbd { color: var(--muted); font-style: italic; font-weight: 400; }

/* ============================================================
   PLAYER PROFILE
   ============================================================ */
.zl-jugador-header {
    background: linear-gradient(135deg, var(--card) 0%, var(--sidebar) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}
.zl-jugador-header::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(88,166,255,.08) 0%, transparent 70%);
    pointer-events: none;
}
.zl-jugador-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    flex-shrink: 0;
}
.zl-jugador-avatar-ph {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), #0f3460);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-head);
    flex-shrink: 0;
}
.zl-jugador-info { flex: 1; }
.zl-jugador-name {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -1px;
}
.zl-jugador-gametag { font-size: 18px; color: var(--primary); margin-bottom: var(--space-sm); }
.zl-jugador-meta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 600px) {
    .zl-jugador-header { flex-direction: column; text-align: center; }
    .zl-jugador-meta   { justify-content: center; }
}

/* Stats Grid */
.zl-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-md);
}
.zl-stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    text-align: center;
}
.zl-stat-box__val {
    font-size: 32px;
    font-weight: 900;
    font-family: var(--font-head);
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}
.zl-stat-box__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
}

/* Palmarés */
.zl-palmar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
}
.zl-palmar-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--trans);
}
.zl-palmar-item:hover { border-color: var(--yellow); box-shadow: 0 4px 16px rgba(210,153,34,.15); }
.zl-palmar-item__trophy { font-size: 36px; margin-bottom: var(--space-sm); }
.zl-palmar-item__puesto { font-size: 18px; font-weight: 800; color: var(--yellow); }
.zl-palmar-item__torneo { font-size: 13px; color: var(--text2); margin-top: 4px; }
.zl-palmar-item__fecha  { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   RANKINGS PAGE
   ============================================================ */
.zl-rankings-page { }
.zl-rankings-filter {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    align-items: center;
}
.zl-rankings-filter input { max-width: 260px; }
.zl-rankings-filter select { max-width: 180px; }

.zl-rankings-table-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.zl-rankings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.zl-rankings-table thead th {
    background: var(--card2);
    padding: 12px 14px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.zl-rankings-table thead th:nth-child(2) { text-align: left; }
.zl-rankings-table tbody td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
}
.zl-rankings-table tbody td:nth-child(2) { text-align: left; }
.zl-rankings-table tbody tr:last-child td { border-bottom: none; }
.zl-rankings-table tbody tr:hover { background: rgba(88,166,255,.04); }

.zl-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 13px;
}
.zl-rank-badge.rank-1 { background: #d29922; color: #000; }
.zl-rank-badge.rank-2 { background: #8b949e; color: #000; }
.zl-rank-badge.rank-3 { background: #cf6820; color: #fff; }
.zl-rank-badge.rank-n { background: var(--card2); color: var(--muted); }

.zl-player-mini {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text);
}
.zl-player-mini:hover { color: var(--primary); }
.zl-player-mini img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.zl-player-mini__ph {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sidebar);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    flex-shrink: 0;
}
.zl-player-mini__name  { font-weight: 600; font-size: 14px; }
.zl-player-mini__tag   { font-size: 12px; color: var(--muted); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.zl-page-hero {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xl);
}
.zl-page-hero h1 { font-size: clamp(26px, 4vw, 42px); margin-bottom: var(--space-sm); }
.zl-page-hero p  { color: var(--muted); font-size: 16px; margin: 0; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.zl-sidebar-widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}
.zl-sidebar-widget__title {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
}
.zl-sidebar-widget__body { padding: var(--space-md); }

/* Top 10 Mini Ranking */
.zl-mini-ranking { list-style: none; padding: 0; margin: 0; }
.zl-mini-ranking li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 0;
    border-bottom: 1px solid rgba(48,54,61,.5);
    font-size: 13px;
    color: var(--text2);
}
.zl-mini-ranking li:last-child { border-bottom: none; }
.zl-mini-rank-pos {
    width: 22px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--muted);
    flex-shrink: 0;
}
.zl-mini-rank-pos.gold   { color: var(--yellow); }
.zl-mini-rank-pos.silver { color: var(--muted); }
.zl-mini-rank-pos.bronze { color: #cf6820; }
.zl-mini-ranking a { color: var(--text); font-weight: 600; flex: 1; }
.zl-mini-ranking a:hover { color: var(--primary); }
.zl-mini-ranking .pts { color: var(--primary); font-weight: 700; }

/* ============================================================
   PAGINATOR
   ============================================================ */
.zl-pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}
.zl-pagination a,
.zl-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-md);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: all var(--trans);
}
.zl-pagination a:hover { border-color: var(--primary); color: var(--primary); }
.zl-pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-green   { color: var(--green); }
.text-yellow  { color: var(--yellow); }
.mt-0         { margin-top: 0; }
.mb-0         { margin-bottom: 0; }
.mb-sm        { margin-bottom: var(--space-sm); }
.mb-md        { margin-bottom: var(--space-md); }
.mb-lg        { margin-bottom: var(--space-lg); }
.mb-xl        { margin-bottom: var(--space-xl); }
.hidden       { display: none; }
.sr-only      { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.zl-section { margin-bottom: var(--space-xl); }
.zl-section-title {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.zl-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.zl-section-title a {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-left: var(--space-md);
}

/* Loading & Empty states */
.zl-loading-state {
    text-align: center;
    padding: var(--space-xl);
    color: var(--muted);
    font-size: 14px;
}
.zl-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: zl-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: var(--space-sm);
}
@keyframes zl-spin { to { transform: rotate(360deg); } }

.zl-empty-state {
    text-align: center;
    padding: var(--space-xxl) var(--space-lg);
    color: var(--muted);
}
.zl-empty-state__icon { font-size: 56px; margin-bottom: var(--space-md); opacity: .4; }
.zl-empty-state__text { font-size: 16px; }

/* WordPress Alignment Classes */
.alignleft  { float: left; margin: 0 var(--space-md) var(--space-md) 0; }
.alignright { float: right; margin: 0 0 var(--space-md) var(--space-md); }
.aligncenter { display: block; margin: var(--space-md) auto; }

/* WordPress Screen Reader Text */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -9999px;
    left: var(--space-md);
    background: var(--primary);
    color: #000;
    padding: var(--space-sm) var(--space-md);
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 700;
    z-index: 9999;
}

/* ── Payment Button ────────────────────────────────────────────────────────── */
.zl-btn-pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(247,151,30,.35);
}
.zl-btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247,151,30,.5);
    color: #1a1a2e;
    text-decoration: none;
}

/* ── Participant card (clickable, no WhatsApp — WA is on player profile) ───── */
.zl-player-mini {
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    transition: transform .2s, box-shadow .2s;
}
.zl-player-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.4);
    color: var(--primary);
}

/* ── Reglamento Button ─────────────────────────────────────────────────────── */
.zl-btn-reglamento {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3a86ff, #5e60ce);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(58,134,255,.35);
}
.zl-btn-reglamento:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58,134,255,.5);
    color: #fff;
    text-decoration: none;
}

/* ── WhatsApp button on player profile ────────────────────────────────────── */
.zl-wa-btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform .15s, background .15s;
    box-shadow: 0 4px 14px rgba(37,211,102,.35);
}
.zl-wa-btn-profile:hover {
    background: #1da851;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   CTA Header Button
═══════════════════════════════════════════════════════════════════════════ */

@keyframes zl-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}
@keyframes zl-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,160,40,.55), 0 4px 14px rgba(0,0,0,.35); }
    50%       { box-shadow: 0 0 0 7px rgba(255,160,40,0),  0 4px 14px rgba(0,0,0,.35); }
}

.zl-cta-header-btn {
    position: relative;
    background: linear-gradient(90deg, #f97316 0%, #f7c948 40%, #ff6b35 70%, #f97316 100%);
    background-size: 250% 100%;
    animation: zl-shimmer 3.5s linear infinite, zl-pulse-glow 2.4s ease-in-out infinite;
    color: #0a0a0f;
    font-weight: 800;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .9px;
    border: none;
    cursor: pointer;
    padding: 9px 18px;
    border-radius: 24px;
    transition: transform .18s, box-shadow .18s;
    white-space: nowrap;
    outline: none;
}
.zl-cta-header-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 28px rgba(249,115,22,.7), 0 6px 20px rgba(0,0,0,.4) !important;
    animation-play-state: paused;
    color: #0a0a0f;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Modal: Activar Establecimiento
═══════════════════════════════════════════════════════════════════════════ */

.zl-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.zl-modal[hidden] { display: none; }

.zl-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,5,10,.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .28s;
}
.zl-modal.is-open .zl-modal__overlay { opacity: 1; }

.zl-modal__box {
    position: relative;
    background: #10141c;
    border: 1px solid rgba(88,166,255,.2);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(32px) scale(.95);
    opacity: 0;
    transition: transform .3s cubic-bezier(.34,1.28,.64,1), opacity .25s;
    box-shadow: 0 32px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
}
.zl-modal.is-open .zl-modal__box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Accent top stripe — real element, see header.php */
.zl-modal__stripe {
    height: 5px;
    flex-shrink: 0;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #f97316 0%, #f7c948 30%, #58a6ff 65%, #a855f7 100%);
}

.zl-modal__inner {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px 28px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(88,166,255,.3) transparent;
}
.zl-modal__inner::-webkit-scrollbar { width: 4px; }
.zl-modal__inner::-webkit-scrollbar-track { background: transparent; }
.zl-modal__inner::-webkit-scrollbar-thumb { background: rgba(88,166,255,.3); border-radius: 2px; }

.zl-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: #8b949e;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s, border-color .15s;
    line-height: 1;
    z-index: 2;
}
.zl-modal__close:hover {
    background: rgba(248,81,73,.2);
    border-color: #f85149;
    color: #f85149;
}

/* Header */
.zl-modal__header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.zl-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(249,115,22,.12);
    border: 1px solid rgba(249,115,22,.3);
    color: #f97316;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.zl-modal__header h2 {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 900;
    color: #f0f6fc;
    margin-bottom: 6px;
    line-height: 1.2;
    letter-spacing: -.3px;
}
.zl-modal__header p {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.55;
}

/* Two-column row */
.zl-lead-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 480px) {
    .zl-lead-row { grid-template-columns: 1fr; }
}

/* Form fields */
.zl-lead-field {
    margin-bottom: 16px;
}
.zl-lead-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #8b949e;
    margin-bottom: 7px;
    letter-spacing: .6px;
    text-transform: uppercase;
}
.zl-lead-field input,
.zl-lead-field select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: #f0f6fc;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.zl-lead-field input::placeholder { color: #4a5568; }
.zl-lead-field input:focus,
.zl-lead-field select:focus {
    background: rgba(88,166,255,.06);
    border-color: rgba(88,166,255,.5);
    box-shadow: 0 0 0 3px rgba(88,166,255,.12);
}
.zl-lead-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
.zl-lead-field select option { background: #10141c; color: #f0f6fc; }

/* Submit button */
@keyframes zl-btn-shine {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.zl-lead-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 24px;
    border-radius: 14px;
    background: linear-gradient(90deg, #f97316 0%, #fbbf24 40%, #f97316 70%, #ea580c 100%);
    background-size: 250% 100%;
    color: #0a0a0f;
    border: none;
    cursor: pointer;
    animation: zl-btn-shine 3s linear infinite;
    transition: transform .18s, box-shadow .18s, opacity .18s;
    box-shadow: 0 4px 24px rgba(249,115,22,.45), inset 0 1px 0 rgba(255,255,255,.25);
    position: relative;
    overflow: hidden;
}
.zl-lead-submit::after {
    content: '→';
    font-size: 18px;
    transition: transform .18s;
    line-height: 1;
}
.zl-lead-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(249,115,22,.6), inset 0 1px 0 rgba(255,255,255,.25);
    animation-play-state: paused;
}
.zl-lead-submit:hover:not(:disabled)::after { transform: translateX(4px); }
.zl-lead-submit:active:not(:disabled) { transform: translateY(-1px); }
.zl-lead-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
    animation: none;
    background: #374151;
    color: #6b7280;
    box-shadow: none;
}
.zl-lead-submit:disabled::after { display: none; }

/* Message */
.zl-lead-msg {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
    font-weight: 600;
}
.zl-lead-msg--error {
    background: rgba(248,81,73,.1);
    border: 1px solid rgba(248,81,73,.3);
    color: #f85149;
}

/* Success state */
.zl-lead-success {
    text-align: center;
    padding: 32px 16px 16px;
}
.zl-lead-success__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(63,185,80,.2), rgba(63,185,80,.06));
    border: 2px solid rgba(63,185,80,.4);
    color: #3fb950;
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.zl-lead-success h3 {
    font-family: var(--font-head);
    font-size: 20px;
    color: #f0f6fc;
    margin-bottom: 8px;
}
.zl-lead-success p {
    font-size: 14px;
    color: #8b949e;
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Shared: fancy section heading
═══════════════════════════════════════════════════════════════════════════ */

.zl-fancy-heading {
    text-align: center;
    margin-bottom: 44px;
}
.zl-fancy-heading__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary);
    margin-bottom: 10px;
}
.zl-fancy-heading__label::before,
.zl-fancy-heading__label::after {
    content: '';
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary));
}
.zl-fancy-heading__label::after {
    background: linear-gradient(90deg, var(--primary), transparent);
}
.zl-fancy-heading h2 {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -.5px;
    margin-bottom: 10px;
}
.zl-fancy-heading p {
    font-size: 14px;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}
.zl-fancy-heading__footer {
    margin-top: 14px;
}
.zl-fancy-heading__footer a {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border: 1px solid rgba(88,166,255,.3);
    padding: 5px 16px;
    border-radius: 20px;
    transition: background .15s, color .15s;
}
.zl-fancy-heading__footer a:hover {
    background: rgba(88,166,255,.1);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Noticias Section
═══════════════════════════════════════════════════════════════════════════ */

.zl-noticias-section {
    padding: 72px 0 64px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.zl-noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .zl-noticias-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .zl-noticias-grid { grid-template-columns: 1fr; }
}

.zl-noticia-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.zl-noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
    border-color: var(--primary);
}

.zl-noticia-card__thumb-link {
    display: block;
    overflow: hidden;
    height: 180px;
    background: var(--sidebar);
    flex-shrink: 0;
}
.zl-noticia-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
    display: block;
}
.zl-noticia-card:hover .zl-noticia-card__img { transform: scale(1.04); }

.zl-noticia-card__img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--muted);
}

.zl-noticia-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.zl-noticia-card__date {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 8px;
    display: block;
}
.zl-noticia-card__title {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}
.zl-noticia-card__title a {
    color: var(--text);
    text-decoration: none;
    transition: color .15s;
}
.zl-noticia-card__title a:hover { color: var(--primary); }

.zl-noticia-card__excerpt {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}
.zl-noticia-card__readmore {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: color .15s;
}
.zl-noticia-card__readmore:hover { color: var(--primary-hover); }

/* ═══════════════════════════════════════════════════════════════════════════
   Sponsors Section
═══════════════════════════════════════════════════════════════════════════ */

@keyframes zl-spin-border {
    to { transform: rotate(360deg); }
}

.zl-sponsors-section {
    padding: 72px 0 64px;
    background: linear-gradient(180deg, var(--card) 0%, #0d1117 100%);
    border-top: 1px solid var(--border);
}

.zl-sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
}

/* Each sponsor card */
.zl-sponsor-item {
    position: relative;
    width: 192px;
    border-radius: 16px;
    overflow: visible;
    z-index: 0;
    transition: transform .28s cubic-bezier(.34,1.3,.64,1);
}
.zl-sponsor-item:hover { transform: translateY(-8px); }

/* Spinning gradient border on hover */
.zl-sponsor-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: conic-gradient(from 0deg, #58a6ff, #a855f7, #f97316, #f7c948, #3fb950, #58a6ff);
    z-index: -1;
    opacity: 0;
    transition: opacity .3s;
}
.zl-sponsor-item:hover::before {
    opacity: 1;
    animation: zl-spin-border 3s linear infinite;
}

.zl-sponsor-inner {
    background: #10141c;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color .3s, box-shadow .3s;
}
.zl-sponsor-item:hover .zl-sponsor-inner {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

/* Logo area */
.zl-sponsor-logo-area {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255,255,255,.02);
    position: relative;
    overflow: hidden;
}
.zl-sponsor-logo-area::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(88,166,255,.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .3s;
}
.zl-sponsor-item:hover .zl-sponsor-logo-area::after { opacity: 1; }

.zl-sponsor-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

.zl-sponsor-img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(75%) brightness(.85);
    transition: filter .32s, transform .32s;
    margin: 0 auto;
}
.zl-sponsor-item:hover .zl-sponsor-img {
    filter: grayscale(0%) brightness(1.05);
    transform: scale(1.1);
}

/* Name area */
.zl-sponsor-name-area {
    padding: 12px 14px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(88,166,255,.05) 100%);
    border-top: 1px solid rgba(255,255,255,.06);
    text-align: center;
    position: relative;
}
.zl-sponsor-name-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88,166,255,.4), transparent);
    transition: opacity .3s;
    opacity: 0;
}
.zl-sponsor-item:hover .zl-sponsor-name-area::before { opacity: 1; }

.zl-sponsor-name {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: transparent;
    background: linear-gradient(135deg, #4a5568, #6b7280);
    -webkit-background-clip: text;
    background-clip: text;
    transition: background .3s;
    display: block;
}
.zl-sponsor-item:hover .zl-sponsor-name {
    background: linear-gradient(135deg, #93c5fd, #e2e8f0, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Fallback when no image */
.zl-sponsor-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 900;
    color: rgba(88,166,255,.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 520px) {
    .zl-sponsor-item { width: 150px; }
    .zl-sponsor-logo-area { height: 90px; }
}
