/* ══════════════════════════════════════════════
   KazBilliards — Design System
   ══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --primary:      #00AFCA;
  --primary-dark: #0E7C8C;
  --primary-light:#E6F7FA;
  --gold:         #FEC50C;
  --gold-dark:    #D4A500;
  --dark:         #1A1A1A;
  --dark2:        #2D3A42;
  --text:         #1A1A1A;
  --text-2:       #5A6B7B;
  --border:       #D4EDF4;
  --bg:           #F4FBFD;
  --white:        #FFFFFF;
  --radius:       16px;
  --radius-sm:    8px;
  --shadow:       0 2px 16px rgba(0,175,202,0.12);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h:        64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* ── Typography ── */
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p  { line-height: 1.65; color: var(--text-2); }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark2);
  height: var(--nav-h);
  display: flex; align-items: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.navbar .container { display: flex; align-items: center; gap: 24px; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-svg { width: 40px; height: 40px; }
.nav-logo-text { font-size: 1.25rem; font-weight: 800; color: var(--white); letter-spacing: -0.5px; }
.nav-logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { color: rgba(255,255,255,0.7); padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 500; transition: all .18s; white-space: nowrap; }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link--active { color: var(--gold) !important; }
.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: 16px; flex-shrink: 0; }
.nav-user { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; font-size: .92rem; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; }
.nav-burger { display: none; background: none; border: none; padding: 8px; color: white; font-size: 1.4rem; margin-left: auto; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.nav-links--open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--dark2); padding: 8px 0 16px; border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 99; }
  .nav-auth { display: none; }
  .nav-burger { display: flex; }
  .nav-auth-mobile { display: flex; gap: 8px; padding: 12px 16px 4px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 8px; }
}
@media (min-width: 769px) {
  .nav-auth-mobile { display: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  border: 2px solid transparent; transition: all .18s; white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(254,197,12,0.4); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.5); color: white; }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.w-full { width: 100%; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-lg { font-size: .82rem; padding: 5px 14px; }
.badge-upcoming  { background: rgba(90,107,123,0.15); color: #5A6B7B; }
.badge-reg       { background: rgba(0,175,202,0.15); color: var(--primary-dark); }
.badge-active    { background: rgba(46,196,90,0.15); color: #1a7a37; animation: pulse-badge 2s infinite; }
.badge-done      { background: rgba(254,197,12,0.15); color: #9A7600; }
.badge-news      { background: var(--primary-light); color: var(--primary-dark); }
@keyframes pulse-badge { 0%,100%{opacity:1} 50%{opacity:.7} }

/* ── Cards grid ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ── Card ── */
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-poster { height: 140px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.card-poster::after { content:''; position:absolute; inset:0; background: linear-gradient(to bottom,transparent 60%,rgba(0,0,0,0.3)); }
.card-poster .badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.card-poster-icon { font-size: 4rem; opacity: .5; }

.card--done .card-poster { filter: brightness(.85); }
.card-winner-banner {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative; z-index: 1;
}
.card-winner-trophy { font-size: 1.4rem; line-height: 1; }
.card-winner-av {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,215,0,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.card-winner-name {
  font-size: .78rem; font-weight: 700; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  text-align: center; max-width: 140px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-body { padding: 16px; }
.card-meta { font-size: .75rem; color: var(--primary-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.card-info { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--text-2); margin-bottom: 8px; }
.card-club { font-size: .78rem; color: var(--text-2); display:flex; align-items:center; gap:4px; }
.card-club-logo { width:14px; height:14px; object-fit:cover; border-radius:3px; flex-shrink:0; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.card-participants { font-size: .78rem; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.card-prize { font-size: .82rem; font-weight: 700; color: var(--gold-dark); }
.card-desc { font-size: .82rem; color: var(--text-2); margin-top: 8px; display: -webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; width: 100%; max-width: 120px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 2px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark2) 0%, #0a2e38 100%);
  position: relative; overflow: hidden;
  padding: 60px 0 48px;
}
.hero-ornament {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 20% 80%, rgba(0,175,202,0.12) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(254,197,12,0.08) 0%, transparent 50%);
}
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; position: relative; }
@media (min-width: 768px) { .hero-inner { grid-template-columns: 1fr 1fr; } }
.hero-text { color: white; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(254,197,12,0.15); color: var(--gold); padding: 6px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600; margin-bottom: 16px; border: 1px solid rgba(254,197,12,0.3); }
.hero-title { font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 900; letter-spacing: -1px; line-height: 1; margin-bottom: 16px; background: linear-gradient(135deg, #fff 0%, var(--gold) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.05rem; line-height: 1.65; color: rgba(255,255,255,0.75); margin-bottom: 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.hero-stat span { font-size: .78rem; color: rgba(255,255,255,0.6); }
.hero-visual { display: flex; justify-content: center; }
.hero-ball-svg { width: 100%; max-width: 240px; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ── Sections ── */
.section { padding: 56px 0; }
.section--alt { background: var(--white); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 1.4rem; font-weight: 700; }
.section-link { color: var(--primary); font-weight: 600; font-size: .9rem; }
.section-link:hover { color: var(--primary-dark); }
.text-center { text-align: center; }

/* ── Features ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; }
.feature-card { background: var(--bg); border-radius: var(--radius); padding: 28px 20px; text-align: center; border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.feature-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 8px; }

/* ── Leaderboard mini ── */
.leaderboard-mini { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.mini-row:last-child { border-bottom: none; }
.mini-row:hover { background: var(--bg); }
.mini-rank { width: 28px; text-align: center; font-weight: 700; font-size: .9rem; color: var(--text-2); }
.mini-rank--medal { font-size: 1.2rem; }
.mini-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.mini-name { flex: 1; font-weight: 600; font-size: .92rem; }
.mini-city { font-size: .78rem; color: var(--text-2); }
.mini-rating { font-weight: 800; color: var(--primary-dark); font-size: .95rem; }

/* ── News cards ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.news-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); cursor: pointer; transition: transform .18s, box-shadow .18s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.news-date { font-size: .78rem; color: var(--text-2); }
.news-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.news-card-preview { font-size: .85rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.news-list { display: flex; flex-direction: column; gap: 1px; }
.news-item { background: var(--white); padding: 24px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .15s; }
.news-item:last-child { border-bottom:none; border-radius: 0 0 var(--radius) var(--radius); }
.news-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.news-item:hover { background: var(--bg); }
.news-item-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.news-item-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.article { max-width: 760px; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; margin-top: 24px; }
.article-title { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; margin-bottom: 24px; line-height: 1.3; }
.article-body p { margin-bottom: 16px; color: var(--text); font-size: 1.02rem; line-height: 1.75; }

/* ── Page layout ── */
.page-top { padding-top: 32px; padding-bottom: 56px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-title { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.75); font-size: .9rem; font-weight: 500; margin-bottom: 16px; transition: color .15s; }
.back-link:hover { color: white; }
.back-link.dark { color: var(--text-2); }
.back-link.dark:hover { color: var(--primary); }
.empty-state { color: var(--text-2); text-align: center; padding: 40px; }
.text-muted { color: var(--text-2); }

/* ── Filters ── */
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-select { padding: 8px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--white); color: var(--text); font-size: .85rem; outline: none; cursor: pointer; transition: border-color .15s; }
.filter-select:focus { border-color: var(--primary); }

/* ── Tournament hero ── */
.tournament-hero { padding: 40px 0 32px; }
.t-hero-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.t-hero-title { font-size: clamp(1.5rem, 5vw, 2.4rem); font-weight: 800; color: white; margin: 12px 0; }
.t-hero-meta { display: flex; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,0.8); font-size: .88rem; margin-bottom: 20px; }
.t-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.t-hero-stats { display: flex; flex-wrap: wrap; gap: 20px; background: rgba(0,0,0,0.2); backdrop-filter: blur(8px); border-radius: var(--radius); padding: 20px 24px; border: 1px solid rgba(255,255,255,0.15); }
.t-stat { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.t-stat strong { font-size: 1.3rem; font-weight: 800; color: white; }
.t-stat span { font-size: .72rem; color: rgba(255,255,255,0.65); text-align: center; margin-top: 2px; }

/* ── Tabs ── */
.page-tabs { padding-top: 0; padding-bottom: 56px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 28px; overflow-x: auto; }
.tab { background: none; border: none; padding: 12px 18px; font-size: .9rem; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all .15s; }
.tab--active { color: var(--primary); border-bottom-color: var(--primary); }
.tab:hover:not(.tab--active) { color: var(--text); }
.tab-pane { animation: fadeIn .2s; }
@keyframes fadeIn { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }

/* ═══════════════════════════════════════════════
   BRACKET — bill4you style, dark theme
   ═══════════════════════════════════════════════ */

/* ── Arena shell ── */
.bracket-arena {
  background: linear-gradient(160deg,#071624 0%,#0b1e30 55%,#060e18 100%);
  border-radius: 16px;
  padding: 20px 20px 28px;
  margin: 4px 0;
  position: relative;
  overflow: hidden;
}
.bracket-arena::before {
  content:'';
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse 60% 40% at 15% 25%, rgba(0,175,202,.07) 0%,transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 75%, rgba(254,197,12,.04) 0%,transparent 60%);
}

/* ── Bracket flex row ── */
.bk-wrap { overflow-x: auto; padding: 12px 0 20px; }
.bk {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 44px;
  min-width: max-content;
}

/* ── Column ── */
.bk-col {
  display: flex; flex-direction: column;
  width: 220px; min-width: 220px; flex-shrink: 0;
}
.bk-col-title {
  text-align: center; font-size: .64rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(255,255,255,.3); padding: 0 4px 10px;
  white-space: nowrap;
}
.bk-col--champ .bk-col-title { color: rgba(255,215,0,.7); }

/* ── Slot ── */
.bk-slot {
  display: flex; align-items: center; justify-content: center;
  width: 220px; position: relative; box-sizing: border-box; flex-shrink: 0;
}

/* ── Connector elbows (gap = 44px, each side 22px) ── */
.bk-slot--odd::after {
  content:''; position:absolute; left:100%; top:50%;
  width:22px; height:50%;
  border-top:  1.5px solid rgba(0,175,202,.45);
  border-right:1.5px solid rgba(0,175,202,.45);
  border-radius:0 5px 0 0;
}
.bk-slot--even::after {
  content:''; position:absolute; left:100%; top:0;
  width:22px; height:50%;
  border-bottom:1.5px solid rgba(0,175,202,.45);
  border-right: 1.5px solid rgba(0,175,202,.45);
  border-radius:0 0 5px 0;
}
.bk-col:not(:first-child) .bk-slot--odd::before,
.bk-col:not(:first-child) .bk-slot--even::before,
.bk-col:not(:first-child) .bk-slot--last::before {
  content:''; position:absolute; right:100%; top:50%;
  width:22px; height:0;
  border-top:1.5px solid rgba(0,175,202,.45);
}
.bk-slot--last::after { display:none; }
.bk-col--champ .bk-slot--last::before { border-top-color:rgba(255,215,0,.6); }

/* LB: flat slots – no elbows */
.bk-slot--flat::before,.bk-slot--flat::after { display:none; }
.bk--lb .bk-col-title { color:rgba(255,100,100,.6); }

/* ── Match card (3-D glass) ── */
.bm {
  display: flex; flex-direction: column;
  background: linear-gradient(150deg,rgba(255,255,255,.07) 0%,rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 6px 20px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.25);
  transform: perspective(700px) rotateX(0deg) translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  will-change: transform;
}
.bm:hover {
  transform: perspective(700px) rotateX(-4deg) translateY(-5px) translateZ(10px);
  box-shadow:
    0 18px 44px rgba(0,0,0,.65),
    0 0 0 1px rgba(0,175,202,.4),
    inset 0 1px 0 rgba(255,255,255,.12);
  border-color: rgba(0,175,202,.5);
}

/* Active – cyan glow pulse */
.bm--active {
  border-color: rgba(0,212,255,.75) !important;
  animation: bm-pulse-cyan 2.4s ease-in-out infinite;
}
@keyframes bm-pulse-cyan {
  0%,100%{ box-shadow:0 0 0 2px rgba(0,212,255,.18),0 0 22px rgba(0,212,255,.28),0 6px 20px rgba(0,0,0,.55); }
  50%    { box-shadow:0 0 0 3px rgba(0,212,255,.35),0 0 44px rgba(0,212,255,.52),0 8px 24px rgba(0,0,0,.6);  }
}

/* Ready to start – gold glow float */
.bm--ready {
  border-color: rgba(254,197,12,.65) !important;
  animation: bm-pulse-gold 2s ease-in-out infinite, bm-float 3.2s ease-in-out infinite;
}
@keyframes bm-pulse-gold {
  0%,100%{ box-shadow:0 0 0 2px rgba(254,197,12,.15),0 0 16px rgba(254,197,12,.22),0 6px 20px rgba(0,0,0,.55); }
  50%    { box-shadow:0 0 0 3px rgba(254,197,12,.3), 0 0 36px rgba(254,197,12,.45),0 8px 24px rgba(0,0,0,.6);  }
}
@keyframes bm-float {
  0%,100%{ transform:perspective(700px) translateY(0)    rotateX(0);   }
  50%    { transform:perspective(700px) translateY(-4px) rotateX(-1deg); }
}

/* Done – subtle fade */
.bm--done { opacity:.82; }

/* Grand Final – golden animated border */
.bm--gf {
  border-color: rgba(255,215,0,.85) !important;
  animation: bm-gf-glow 2s ease-in-out infinite;
}
@keyframes bm-gf-glow {
  0%,100%{ box-shadow:0 0 0 3px rgba(255,215,0,.2),0 0 40px rgba(255,215,0,.35),0 8px 32px rgba(0,0,0,.6); }
  50%    { box-shadow:0 0 0 5px rgba(255,215,0,.35),0 0 72px rgba(255,215,0,.6), 0 8px 32px rgba(0,0,0,.6); }
}

/* ── Card header ── */
.bm-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:5px 10px;
  background:rgba(0,0,0,.35);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.bm-wb-badge { font-size:.6rem; font-weight:900; letter-spacing:1px; background:rgba(0,175,202,.25); color:#00d4ff; padding:2px 8px; border-radius:20px; }
.bm-lb-badge { font-size:.6rem; font-weight:900; letter-spacing:1px; background:rgba(231,76,60,.3); color:#ff8585; padding:2px 8px; border-radius:20px; }
.bm-gf-badge { font-size:.6rem; font-weight:900; letter-spacing:1px; background:rgba(255,215,0,.22); color:#ffd700; padding:2px 8px; border-radius:20px; }
.bm-table-badge { font-size:.6rem; font-weight:800; background:rgba(0,175,202,.3); color:#00d4ff; padding:2px 7px; border-radius:20px; }

/* ── Player rows ── */
.bm-slot {
  display:flex; align-items:center; gap:7px;
  padding:8px 10px;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.bm-slot:last-of-type { border-bottom:none; }
.bm-slot--w { background:linear-gradient(90deg,rgba(255,215,0,.13) 0%,rgba(255,215,0,.04) 100%); }
.bm-av {
  width:26px; height:26px; border-radius:50%;
  background:linear-gradient(135deg,#00afca,#004f60);
  color:white; display:flex; align-items:center; justify-content:center;
  font-size:.62rem; font-weight:800; flex-shrink:0;
  box-shadow:0 0 8px rgba(0,175,202,.5);
}
.bm-av--lg { width:48px; height:48px; font-size:.88rem; margin:0 auto 8px; box-shadow:0 0 20px rgba(0,175,202,.6); }
.bm-name { flex:1; font-size:.79rem; font-weight:600; color:rgba(255,255,255,.88); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bm-score-inp {
  width:40px; border:1.5px solid rgba(0,212,255,.5); border-radius:6px;
  padding:3px 4px; font-size:.85rem; font-weight:800;
  text-align:center; background:rgba(0,0,0,.4); color:white;
}
.bm-score-lbl { font-size:.88rem; font-weight:800; color:rgba(255,255,255,.28); min-width:22px; text-align:right; }
.bm-score-lbl--w { color:#ffd700; text-shadow:0 0 8px rgba(255,215,0,.6); }

/* ── Action buttons ── */
.bm-btn {
  display:block; width:100%; padding:7px;
  border:none; font-size:.76rem; font-weight:800; cursor:pointer;
  letter-spacing:.4px;
}
.bm-btn--save { background:linear-gradient(90deg,#00afca,#007d94); color:white; }
.bm-btn--save:hover { background:linear-gradient(90deg,#00c5e0,#009ab5); }
.bm-btn--start { background:linear-gradient(90deg,#FEC50C,#e0a900); color:#0a1628; }
.bm-btn--start:hover { background:linear-gradient(90deg,#ffe040,#FEC50C); }
.bm-btn--cancel { background:rgba(255,255,255,.08); color:rgba(255,255,255,.55); font-size:.72rem; }
.bm-btn--cancel:hover { background:rgba(255,80,80,.15); color:#ff8080; }
.bm-bye-row { display:flex; align-items:center; justify-content:space-between; padding:6px 8px; border-top:1px solid rgba(255,255,255,.06); gap:8px; }
.bm--bye { visibility:hidden; min-height:80px; }
.bm-start-row {
  display:flex; gap:5px; padding:6px 8px;
  background:rgba(254,197,12,.07); border-top:1px solid rgba(255,255,255,.05);
}
.bm-table-sel {
  flex:1; padding:5px 6px; font-size:.75rem; font-weight:600;
  border:1px solid rgba(255,255,255,.15); border-radius:6px;
  background:rgba(0,0,0,.45); color:rgba(255,255,255,.85);
}
.bm-table-sel option { background:#0d2137; }
.bm-result { padding:6px 10px; font-size:.73rem; color:#00d4ff; background:rgba(0,175,202,.1); text-align:center; font-weight:700; }

/* ── Champion card ── */
.bm-champion-card {
  text-align:center;
  background:linear-gradient(135deg,rgba(255,215,0,.18),rgba(255,140,0,.1));
  border:2px solid rgba(255,215,0,.5);
  border-radius:14px; padding:18px 18px;
  animation:bm-champ-glow 3s ease-in-out infinite;
}
@keyframes bm-champ-glow {
  0%,100%{ box-shadow:0 0 20px rgba(255,215,0,.25); }
  50%    { box-shadow:0 0 44px rgba(255,215,0,.55); }
}
.bm-champion-trophy { font-size:2.2rem; margin-bottom:6px; animation:trophy-bounce 1.5s ease-in-out infinite; }
@keyframes trophy-bounce {
  0%,100%{ transform:translateY(0) scale(1);   }
  50%    { transform:translateY(-5px) scale(1.08); }
}
.bm-champion-name { font-size:.8rem; font-weight:800; color:#ffd700; text-shadow:0 0 12px rgba(255,215,0,.6); margin-top:6px; }

/* ── DE section labels ── */
.de-section-label {
  display:flex; align-items:center; gap:10px;
  font-size:.7rem; font-weight:900; letter-spacing:1.8px;
  text-transform:uppercase; padding:18px 0 6px;
}
.de-section-label::after { content:''; flex:1; height:1px; }
.de-section-label .de-hint { font-size:.62rem; font-weight:500; letter-spacing:.5px; opacity:.65; text-transform:none; }
.de-section-label--wb { color:#00d4ff; text-shadow:0 0 10px rgba(0,212,255,.5); }
.de-section-label--wb::after { background:linear-gradient(90deg,rgba(0,212,255,.35),transparent); }
.de-section-label--lb { color:#ff7070; text-shadow:0 0 10px rgba(255,100,100,.4); }
.de-section-label--lb::after { background:linear-gradient(90deg,rgba(255,100,100,.3),transparent); }
.de-section-label--gf { color:#ffd700; text-shadow:0 0 14px rgba(255,215,0,.7); font-size:.76rem; }
.de-section-label--gf::after { background:linear-gradient(90deg,rgba(255,215,0,.4),transparent); }

/* ── GF area ── */
.de-gf-area { padding:12px 0 20px; display:flex; align-items:flex-start; gap:20px; flex-wrap:wrap; }
.de-gf-arrows { display:flex; flex-direction:column; gap:8px; justify-content:center; padding-top:8px; }
.de-gf-arrow { font-size:.7rem; font-weight:700; padding:5px 12px; border-radius:20px; letter-spacing:.4px; }
.de-gf-arrow--wb { background:rgba(0,175,202,.15); color:#00d4ff; border:1px solid rgba(0,212,255,.25); }
.de-gf-arrow--lb { background:rgba(255,100,100,.12); color:#ff8585; border:1px solid rgba(255,100,100,.22); }
.de-gf-card-wrap { position:relative; }
.de-champion-banner {
  display:inline-flex; align-items:center; gap:10px; margin-top:10px;
  background:linear-gradient(135deg,rgba(255,215,0,.18),rgba(255,140,0,.1));
  border:1.5px solid rgba(255,215,0,.4); border-radius:10px;
  padding:10px 16px; color:#ffd700; font-weight:700; font-size:.85rem;
  text-shadow:0 0 10px rgba(255,215,0,.4);
  animation:bm-champ-glow 3s ease-in-out infinite;
}
.de-champion-trophy-anim { font-size:1.4rem; animation:trophy-bounce 1.5s ease-in-out infinite; }

/* ── Empty state in arena ── */
.bracket-arena .bracket-empty { color:rgba(255,255,255,.45); }
.bracket-arena .bracket-empty-icon { filter:drop-shadow(0 0 16px rgba(0,175,202,.5)); }
.bracket-arena .bracket-empty .btn-gold { margin-top:12px; }

/* ── Bracket zoom controls ── */
.bk-zoom-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 12px;
  flex-wrap: wrap;
}
.bk-zoom-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1.4;
  min-width: 32px;
}
.bk-zoom-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.bk-zoom-preset--on {
  background: rgba(0,175,202,.25) !important;
  border-color: #00afca !important;
  color: #00d4ff !important;
}
.bk-zoom-fit {
  margin-left: 6px;
  font-size: .9rem;
  padding: 3px 9px;
}

/* ── New bracket column header ── */
.bk-scroll { overflow: auto; padding: 12px 0 20px; cursor: grab; user-select: none; }
.bk-scroll:active { cursor: grabbing; }
.bk-col-hdr {
  padding: 0 4px 10px;
  text-align: center;
}
.bk-col-section {
  font-size: .58rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 2px;
}
.bk-col--lb .bk-col-section { color: rgba(255,100,100,.5); }
.bk-col--wb .bk-col-section { color: rgba(0,212,255,.4); }
.bk-col--gf .bk-col-section { color: rgba(255,215,0,.5); }
.bk-col-round {
  font-size: .72rem; font-weight: 900; letter-spacing: .6px;
  text-transform: uppercase; color: rgba(255,255,255,.8); white-space: nowrap;
}
.bk-col--lb .bk-col-round { color: #ff8585; }
.bk-col--wb .bk-col-round { color: #fff; }
.bk-col--gf .bk-col-round { color: #ffd700; font-size: .76rem; }
.bk-col--champ .bk-col-section { color: rgba(255,215,0,.5); }
.bk-col--champ .bk-col-round  { color: #ffd700; }

/* LB slot — no connectors */
.bk-slot--lb::before, .bk-slot--lb::after { display: none !important; }

/* DE divider */
.de-divider {
  width: 2px; flex-shrink: 0; align-self: stretch;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.12) 20%, rgba(255,255,255,.12) 80%, transparent);
  margin: 0 4px;
}

/* ── Match card header ── */
.bm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 5px 8px;
  background: rgba(0,0,0,.4);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.bm-num { font-size: .62rem; font-weight: 700; color: rgba(255,255,255,.3); }
.bm-tbl { font-size: .62rem; font-weight: 700; color: #00d4ff; background: rgba(0,212,255,.12); padding: 1px 6px; border-radius: 10px; }
.bm-gf-tag { font-size: .58rem; font-weight: 900; color: #ffd700; background: rgba(255,215,0,.15); padding: 1px 6px; border-radius: 10px; letter-spacing: .5px; }

/* ── Player rows ── */
.bm-slot {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.bm-slot:last-of-type { border-bottom: none; }
.bm-slot--w { background: linear-gradient(90deg, rgba(255,215,0,.12) 0%, rgba(255,215,0,.03) 100%); }
.bm-slot--l { opacity: .6; }
.bm-score {
  font-size: .88rem; font-weight: 800; color: rgba(255,255,255,.25);
  min-width: 20px; text-align: right;
}
.bm-score--w { color: #4cd964; text-shadow: 0 0 8px rgba(76,217,100,.5); }
.bm-score--l { color: #ff6b6b; }

/* ── Actions ── */
.bm-btn {
  display: block; width: 100%; padding: 7px;
  border: none; font-size: .74rem; font-weight: 800; cursor: pointer;
  letter-spacing: .3px;
}
.bm-btn--save { background: linear-gradient(90deg,#00afca,#007d94); color: white; }
.bm-btn--save:hover { background: linear-gradient(90deg,#00c5e0,#009ab5); }
.bm-btn--start { background: linear-gradient(90deg,#FEC50C,#e0a900); color: #0a1628; }
.bm-btn--start:hover { background: linear-gradient(90deg,#ffe040,#FEC50C); }
.bm-start-row {
  display: flex; gap: 4px; padding: 6px 8px;
  background: rgba(254,197,12,.07); border-top: 1px solid rgba(255,255,255,.05);
}
.bm-table-sel {
  flex: 1; padding: 4px 6px; font-size: .72rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.15); border-radius: 6px;
  background: rgba(0,0,0,.45); color: rgba(255,255,255,.85);
}
.bm-table-sel option { background: #0d2137; }
.bm-result {
  padding: 5px 10px; font-size: .72rem; color: #00d4ff;
  background: rgba(0,175,202,.1); text-align: center; font-weight: 700;
}

/* ── Champion card ── */
.bm-champion-card {
  text-align: center;
  background: linear-gradient(135deg,rgba(255,215,0,.18),rgba(255,140,0,.1));
  border: 2px solid rgba(255,215,0,.5); border-radius: 14px;
  padding: 18px 16px;
  animation: bm-champ-glow 3s ease-in-out infinite;
}
@keyframes bm-champ-glow {
  0%,100%{ box-shadow: 0 0 20px rgba(255,215,0,.25); }
  50%    { box-shadow: 0 0 44px rgba(255,215,0,.55); }
}
.bm-trophy-anim { font-size: 2rem; margin-bottom: 6px; animation: trophy-bounce 1.5s ease-in-out infinite; }
@keyframes trophy-bounce {
  0%,100%{ transform: translateY(0) scale(1); }
  50%    { transform: translateY(-5px) scale(1.08); }
}
.bm-champion-name { font-size: .78rem; font-weight: 800; color: #ffd700; text-shadow: 0 0 12px rgba(255,215,0,.6); margin-top: 4px; }

/* Empty state */
.bracket-empty { text-align: center; padding: 60px 20px; color: rgba(255,255,255,.4); }
.bracket-empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* Round-robin table */
.rr-wrap { overflow-x: auto; }
.rr-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rr-table th { background: var(--primary); color: white; padding: 10px 14px; text-align: left; font-size: .82rem; }
.rr-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: .88rem; }
.rr-leader td { background: rgba(254,197,12,0.08); font-weight: 700; }
.rr-pts { font-weight: 800; color: var(--primary-dark); }

/* ── Participants list ── */
.participants-list { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.participant-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.participant-row:last-child { border-bottom: none; }
.participant-row:hover { background: var(--bg); }
.p-rank { width: 24px; text-align: center; font-size: .82rem; color: var(--text-2); font-weight: 700; }
.p-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-dark)); color: white; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.p-info { flex: 1; display: flex; flex-direction: column; }
.p-name { font-weight: 600; font-size: .9rem; }
.p-city { font-size: .78rem; color: var(--text-2); }
.p-rating { font-weight: 800; color: var(--primary-dark); font-size: .9rem; }
.btn-remove { background: none; border: none; color: var(--text-2); font-size: 1rem; padding: 4px 8px; border-radius: 6px; cursor: pointer; transition: color .15s, background .15s; }
.btn-remove:hover { color: #c0392b; background: #fdecea; }

/* ── Schedule ── */
.schedule-section { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-2); margin: 20px 0 10px; }
.schedule-match { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--white); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.schedule-match--active { border-left: 3px solid var(--primary); }
.schedule-match--done { opacity: .75; }
.sch-round { font-size: .72rem; font-weight: 700; background: var(--primary-light); color: var(--primary-dark); padding: 3px 8px; border-radius: 20px; flex-shrink: 0; }
.sch-players { flex: 1; display: flex; align-items: center; gap: 10px; font-size: .88rem; min-width: 0; }
.sch-vs { color: var(--text-2); font-size: .75rem; }
.sch-winner { font-weight: 700; color: var(--primary-dark); }
.sch-score { font-weight: 800; font-size: .95rem; color: var(--dark); flex-shrink: 0; }
.sch-score--live { color: var(--primary-dark); }
.sch-admin { display: flex; align-items: center; gap: 6px; flex-basis: 100%; padding-top: 6px; border-top: 1px solid var(--border); margin-top: 2px; }
.sch-inp { width: 52px; padding: 5px 8px; border: 1.5px solid var(--border); border-radius: 6px; text-align: center; font-size: .9rem; font-weight: 700; }
.sch-tbl-sel { padding: 5px 8px; border: 1.5px solid var(--border); border-radius: 6px; font-size: .85rem; }
.sch-cancel-btn { background: none; border: none; cursor: pointer; color: var(--text-2); font-size: .85rem; padding: 2px 4px; flex-shrink: 0; }
.sch-cancel-btn:hover { color: #e55; }

/* ── Info tab ── */
.info-tab { max-width: 680px; }
.info-block { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.info-block h3 { margin-bottom: 10px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.info-item { background: var(--white); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.info-item span { display: block; font-size: .75rem; color: var(--text-2); margin-bottom: 4px; }
.info-item strong { font-size: .95rem; }

/* ── Ratings table ── */
.ratings-table-wrap { overflow-x: auto; }
.ratings-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ratings-table thead tr { background: linear-gradient(135deg,var(--dark2),#3D4F5C); }
.ratings-table th { color: rgba(255,255,255,0.85); padding: 13px 16px; text-align: left; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.ratings-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .88rem; }
.rating-row { cursor: pointer; transition: background .15s; }
.rating-row:hover { background: var(--bg); }
.rating-row--top td:first-child { font-size: 1.2rem; }
.rank-cell { font-weight: 700; text-align: center; width: 50px; }
.rating-cell { font-weight: 800; color: var(--primary-dark); font-size: .95rem; }
.table-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-dark)); color: white; display: inline-flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; margin-right: 8px; vertical-align: middle; }

/* ── Clubs ── */
.club-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.club-hero-icon { font-size: 3rem; }
.club-desc { color: var(--text-2); margin-bottom: 32px; line-height: 1.65; }

/* ── Club logo ── */
.club-logo-img { object-fit:cover; flex-shrink:0; display:block; }
.club-logo-placeholder { display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#00AFCA,#0E7C8C); border-radius:12px; flex-shrink:0; }
.club-card-poster { position:relative; overflow:hidden; background:linear-gradient(135deg,#00AFCA,#0E7C8C); }
.club-card-logo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }

/* ── Club form modal ── */
.club-logo-upload { cursor:pointer; margin-bottom:16px; }
.club-logo-preview {
  width:100%; height:140px; border:2px dashed var(--border); border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  color:var(--text-2); font-size:.9rem; text-align:center; line-height:1.4;
  overflow:hidden; background:var(--bg); transition:border-color .2s; position:relative;
}
.club-logo-preview img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:10px; display:block; }
.club-logo-upload:hover .club-logo-preview { border-color:var(--primary); }

/* ── Profile ── */
.profile-hero { background: linear-gradient(135deg,var(--dark2),#1a3a48); padding: 40px 0; }
.profile-inner { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.profile-avatar-lg { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-dark)); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; border: 3px solid var(--gold); flex-shrink: 0; }
.profile-name { font-size: clamp(1.3rem,4vw,1.8rem); font-weight: 800; color: white; margin-bottom: 8px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,0.7); font-size: .88rem; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 20px; }
.p-stat { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 14px 20px; text-align: center; border: 1px solid rgba(255,255,255,0.12); min-width: 80px; }
.p-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.p-stat span { font-size: .75rem; color: rgba(255,255,255,0.65); }

/* ── Wizard ── */
.wizard-container { max-width: 680px; }
.wizard-steps { display: flex; gap: 0; margin-bottom: 16px; overflow-x: auto; }
.wizard-step { display: flex; align-items: center; gap: 8px; flex: 1; padding: 10px 8px; opacity: .45; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.wizard-step--done, .wizard-step--active { opacity: 1; }
.wizard-step--active .wizard-step-dot { background: var(--primary); color: white; }
.wizard-step--done .wizard-step-dot { background: var(--gold); color: var(--dark); }
.wizard-step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; flex-shrink: 0; }
.wizard-progress { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 28px; }
.wizard-progress-fill { height: 100%; background: linear-gradient(90deg,var(--primary),var(--gold)); border-radius: 2px; transition: width .4s; }
.wizard-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.wizard-card-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 24px; }
.wizard-section { margin-bottom: 24px; }
.wizard-label { display: block; font-size: .82rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); margin-top: 24px; }
.wizard-form { display: flex; flex-direction: column; gap: 0; }
.wizard-success { text-align: center; padding: 20px 0; }
.wizard-success .success-icon { font-size: 4rem; margin-bottom: 16px; }
.wizard-success h2 { margin-bottom: 8px; }
.wizard-success p { margin-bottom: 24px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* type/disc/format cards */
.type-grid, .disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.type-card { border: 2px solid var(--border); border-radius: 12px; padding: 16px 12px; text-align: center; cursor: pointer; transition: all .15s; position: relative; }
.type-card:hover { border-color: var(--primary); }
.type-card--active { border-color: var(--primary); background: var(--primary-light); }
.type-icon { font-size: 2rem; display: block; margin-bottom: 6px; }
.coming-soon { position: absolute; top: 6px; right: 6px; font-size: .6rem; background: var(--text-2); color: white; padding: 2px 6px; border-radius: 20px; }
.disc-card { border: 2px solid var(--border); border-radius: 10px; padding: 10px 12px; text-align: center; cursor: pointer; font-size: .82rem; font-weight: 600; transition: all .15s; }
.disc-card:hover { border-color: var(--primary); }
.disc-card--active { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.format-list { display: flex; flex-direction: column; gap: 10px; }
.format-item { border: 2px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: all .15s; }
.format-item:hover { border-color: var(--primary); }
.format-item--active { border-color: var(--primary); background: var(--primary-light); }
.format-icon { font-size: 1.5rem; flex-shrink: 0; }
.format-item div { flex: 1; display: flex; flex-direction: column; }
.format-item strong { font-size: .92rem; }
.format-item span { font-size: .78rem; color: var(--text-2); }
.format-check { font-size: 1.1rem; color: var(--primary); font-weight: 700; }
.param-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.param-field { display: flex; flex-direction: column; gap: 6px; }
.param-field .wizard-label { margin-bottom: 0; }
.param-hint { font-size: .72rem; color: var(--text-2); }
.color-grid { display: flex; gap: 10px; }
.color-swatch { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: transform .15s; }
.color-swatch--active { border-color: var(--dark); transform: scale(1.15); }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.form-control { padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .92rem; color: var(--text); background: var(--bg); outline: none; transition: border-color .15s; }
.form-control:focus { border-color: var(--primary); background: var(--white); }
textarea.form-control { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ── Auth wall ── */
.auth-wall { text-align: center; padding: 80px 20px; max-width: 400px; margin: 0 auto; }
.auth-wall-icon { font-size: 4rem; margin-bottom: 16px; }
.auth-wall h2 { margin-bottom: 8px; }
.auth-wall p { margin-bottom: 24px; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); animation: fadeIn .2s; }
@media (min-width: 600px) { .modal-overlay { align-items: center; } }
.modal { background: var(--white); border-radius: var(--radius) var(--radius) 0 0; padding: 28px 20px 40px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; position: relative; }
@media (min-width: 600px) { .modal { border-radius: var(--radius); padding: 32px; max-height: 80vh; } }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--bg); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 1rem; color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--border); }
.modal-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.modal-sub { font-size: .85rem; color: var(--text-2); margin-bottom: 20px; }
.modal-form { display: flex; flex-direction: column; gap: 0; }
.user-list { display: flex; flex-direction: column; gap: 8px; }
.user-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; cursor: pointer; border: 1.5px solid var(--border); transition: all .15s; }
.user-item:hover { border-color: var(--primary); background: var(--primary-light); }
.modal-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-dark)); color: white; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; flex-shrink: 0; }
.user-item span { font-size: .8rem; color: var(--text-2); }

/* ── Add player modal ── */
.modal-notice { background: rgba(254,197,12,.12); border: 1px solid rgba(254,197,12,.3); border-radius: 8px; padding: 10px 14px; font-size: .83rem; color: #c89a00; margin-bottom: 14px; }
.new-player-box {
  background: var(--primary-light); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px; border: 1.5px solid var(--border);
}
.new-player-title { font-size: .85rem; font-weight: 700; margin-bottom: 10px; color: var(--primary-dark); }
.new-player-form { display: flex; flex-direction: column; gap: 8px; }
.modal-divider {
  text-align: center; color: var(--text-2); font-size: .78rem;
  margin: 4px 0 12px; position: relative;
}
.modal-divider::before, .modal-divider::after {
  content: ''; position: absolute; top: 50%; width: 38%; height: 1px;
  background: var(--border);
}
.modal-divider::before { left: 0; }
.modal-divider::after  { right: 0; }

/* ── Org menu ── */
.org-menu { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.org-menu-btn { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; width: 100%; }
.org-menu-btn:hover { border-color: var(--primary); background: rgba(0,175,202,.06); }
.org-menu-btn--danger { border-color: rgba(192,57,43,.3); }
.org-menu-btn--danger:hover { border-color: #c0392b; background: rgba(192,57,43,.06); }
.org-menu-icon { font-size: 1.5rem; flex-shrink: 0; width: 36px; text-align: center; }
.org-menu-btn strong { display: block; font-size: .95rem; color: var(--dark); }
.org-menu-btn p { margin: 2px 0 0; font-size: .78rem; color: var(--text-2); line-height: 1.4; }
.btn-danger { background: #c0392b; color: white; border: none; }
.btn-danger:hover { background: #a93226; }
.replace-label { font-size: .82rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.user-item--remove { border: 1.5px solid transparent; border-radius: 10px; transition: border-color .15s; }
.user-item--remove:hover { border-color: #c0392b; background: rgba(192,57,43,.05); }
.replace-arrow { margin-left: auto; font-size: 1.1rem; color: var(--text-2); }

/* ── OTP / Email auth ── */
.auth-switch { font-size: .82rem; color: var(--text-2); text-align: center; margin-top: 14px; }
.auth-switch a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 4px 0 20px; }
.otp-digit {
  width: 48px; height: 56px;
  text-align: center; font-size: 1.5rem; font-weight: 800;
  border: 2px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--dark);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.otp-digit:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,175,202,.15); }
.otp-digit:not(:placeholder-shown) { border-color: var(--primary-dark); }

/* ── Toast ── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--dark); color: white; padding: 12px 24px; border-radius: 30px; font-size: .9rem; font-weight: 600; z-index: 2000; opacity: 0; transition: all .3s; box-shadow: var(--shadow-lg); white-space: nowrap; }
.toast--success { background: #1a7a37; }
.toast--error { background: #c0392b; }
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Footer ── */
footer { background: var(--dark2); color: rgba(255,255,255,0.65); padding: 40px 0; margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-text { font-weight: 800; color: white; }
.footer-brand-text span { color: var(--gold); }
.footer-desc { font-size: .82rem; line-height: 1.6; }
.footer-col h4 { color: white; font-size: .88rem; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .82rem; transition: color .15s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .78rem; }
.footer-flag { display: flex; align-items: center; gap: 6px; }

/* ── Ornament pattern (subtle background) ── */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background-image: repeating-linear-gradient(45deg, rgba(254,197,12,0.03) 0px, rgba(254,197,12,0.03) 1px, transparent 1px, transparent 8px),
                    repeating-linear-gradient(-45deg, rgba(254,197,12,0.03) 0px, rgba(254,197,12,0.03) 1px, transparent 1px, transparent 8px);
  pointer-events: none;
}

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

/* ── Live-табло (OBS) ─────────────────────────── */
body.live-mode .navbar, body.live-mode footer { display: none; }
body.live-mode { background: #0b1418; }

.live-arena {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px;
  background: transparent;
}
.live-back {
  position: fixed; top: 16px; left: 16px;
  color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem;
}
.live-back:hover { color: #fff; }

.live-plaque {
  background: linear-gradient(135deg, #10222b 0%, #16323e 100%);
  border: 1px solid rgba(254,197,12,.35);
  border-radius: 14px;
  padding: 14px 26px 18px;
  min-width: 640px; max-width: 92vw;
  box-shadow: 0 8px 40px rgba(0,0,0,.55);
  color: #fff;
  margin-bottom: 4vh;
}
.live-tournament {
  text-align: center; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: #FEC50C; margin-bottom: 10px; opacity: .9;
}
.live-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.live-player { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.live-player--r { justify-content: flex-end; }
.live-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; flex-shrink: 0;
}
.live-name { font-size: 1.25rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-score { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.live-games {
  font-size: 2.6rem; font-weight: 900; color: #FEC50C;
  min-width: 52px; text-align: center; line-height: 1;
}
.live-balls {
  background: rgba(0,175,202,.18);
  border: 1px solid rgba(0,175,202,.5);
  border-radius: 10px; padding: 6px 14px;
  font-size: 1.5rem; font-weight: 800; color: #7FE3F5;
  display: inline-flex; align-items: center; gap: 3px;
}
.live-balls em { font-style: normal; opacity: .55; }
.live-sub { text-align: center; margin-top: 10px; font-size: .82rem; color: rgba(255,255,255,.55); }
.live-sub b { color: #fff; }
.live-done { text-align: center; margin-top: 12px; color: #FEC50C; font-weight: 700; }

.live-ctrl-row { display: flex; justify-content: space-between; margin-top: 16px; gap: 20px; }
.live-ctrl { display: flex; gap: 6px; }
.live-btn {
  background: var(--primary); color: #fff; border: 0; border-radius: 8px;
  padding: 8px 14px; font-weight: 700; cursor: pointer; font-size: .85rem;
}
.live-btn:hover { filter: brightness(1.15); }
.live-btn--minus { background: rgba(255,255,255,.14); }
.live-btn--game { background: #FEC50C; color: #10222b; }

/* ── Вкладка Трансляция ── */
.stream-embed {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: 12px; overflow: hidden; background: #000;
}
.stream-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-match {
  background: #10222b; border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; color: #fff;
}
.stream-match-players { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.stream-p { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream-p--r { text-align: right; }
.stream-score { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.stream-score b { font-size: 1.5rem; color: #FEC50C; }
.stream-score small {
  background: rgba(0,175,202,.18); border-radius: 6px; padding: 3px 9px;
  color: #7FE3F5; font-weight: 700; font-size: .95rem;
}
.stream-match-meta { margin-top: 8px; font-size: .8rem; color: rgba(255,255,255,.55); display: flex; align-items: center; }

/* Кнопка табло на карточке матча */
.bm-live-link {
  font-size: .68rem; text-decoration: none; color: #7FE3F5;
  background: rgba(0,175,202,.18); border-radius: 5px; padding: 1px 6px;
}
.bm-live-link:hover { background: rgba(0,175,202,.4); }

/* Видео на странице табло */
.live-arena--video { justify-content: flex-start; padding-top: 12px; }
.live-video {
  width: min(1100px, 94vw); aspect-ratio: 16/9;
  border-radius: 12px; overflow: hidden; background: #000;
  margin-bottom: 16px; flex-shrink: 0;
}
.live-video iframe { width: 100%; height: 100%; border: 0; }

/* Поле ссылки стрима у матча (вкладка Трансляция) */
.stream-url-row { display: flex; gap: 8px; margin-top: 10px; }
.stream-url-row .form-control { flex: 1; font-size: .85rem; }

/* ── Плашка-скоборд в стиле ТВ-трансляции ────── */
.live-plaque { background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
.sb {
  position: relative;
  width: min(1000px, 92vw);
  margin: 56px auto 0;
  filter: drop-shadow(0 10px 34px rgba(0,0,0,.6));
}
.sb-emblem {
  position: absolute; top: -52px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 104px; border-radius: 50%;
  background: #f5f2ea; border: 3px solid #FEC50C;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; z-index: 3;
  box-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.sb-emblem img { width: 100%; height: 100%; object-fit: cover; }
.sb-emblem-default { font-size: 3rem; }
.sb-live {
  position: absolute; top: -14px; right: 10px; z-index: 3;
  background: #d21f2c; color: #fff; font-weight: 800; font-size: .72rem;
  padding: 3px 10px; border-radius: 4px; letter-spacing: .06em;
  animation: sb-pulse 1.6s ease-in-out infinite;
}
@keyframes sb-pulse { 50% { opacity: .55; } }

.sb-top {
  display: grid; grid-template-columns: 72px 1fr 1fr 72px;
  align-items: stretch;
  background: linear-gradient(180deg, #0E7C8C 0%, #063540 100%);
  border: 1.5px solid #FEC50C; border-bottom: 0;
  border-radius: 12px 12px 0 0;
  color: #fff; overflow: hidden;
}
.sb-round {
  background: rgba(0,0,0,.45); font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid rgba(254,197,12,.5); padding: 9px 6px;
}
.sb-disc {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.02rem; font-weight: 600; padding: 9px 10px;
}
.sb-time {
  background: rgba(0,0,0,.45); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid rgba(254,197,12,.5); padding: 9px 6px;
  color: #FEC50C;
}
.sb-main {
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, #0A5A68 0%, #052730 100%);
  border: 1.5px solid #FEC50C; color: #fff;
}
.sb-player {
  flex: 1; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; min-width: 0;
}
.sb-player--r { justify-content: flex-end; }
.sb-av {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #00AFCA, #005F73);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.sb-name { font-size: 1.35rem; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-rating {
  flex-shrink: 0; text-align: center;
  background: #111; border: 1.5px solid #FEC50C; border-radius: 7px;
  padding: 4px 10px; font-weight: 800; font-size: 1.02rem; line-height: 1.1;
  color: #fff; display: inline-flex; flex-direction: column;
}
.sb-rating i { font-style: normal; font-size: .58rem; color: #FEC50C; letter-spacing: .08em; }
.sb-cells { display: flex; align-items: stretch; flex-shrink: 0; }
.sb-cell {
  display: flex; align-items: center; justify-content: center;
  background: #0d0d0d; font-weight: 900; color: #fff;
  border-left: 1.5px solid #FEC50C; border-right: 1.5px solid #FEC50C;
}
.sb-cell--games { font-size: 2.3rem; min-width: 70px; }
.sb-cell--balls {
  font-size: 2.7rem; min-width: 150px; gap: 5px;
  background: #000; margin: 0 -1.5px; position: relative; z-index: 1;
  border: 1.5px solid #FEC50C; border-top: 0; border-bottom: 0;
  box-shadow: inset 0 0 24px rgba(254,197,12,.14);
}
.sb-cell--balls em { font-style: normal; font-size: 2.2rem; opacity: .85; }
.sb-bottom {
  width: max-content; max-width: 86%;
  margin: 0 auto;
  background: linear-gradient(180deg, #0E7C8C 0%, #063540 100%);
  border: 1.5px solid #FEC50C; border-top: 0;
  border-radius: 0 0 14px 14px;
  color: #fff; text-align: center;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: .95rem; padding: 8px 34px;
}

@media (max-width: 900px) {
  .sb-name { font-size: .85rem; }
  .sb-name b { font-size: 1.02rem; }
  .sb-cell--games { font-size: 1.7rem; min-width: 52px; }
  .sb-cell--balls { font-size: 2rem; min-width: 118px; }
  .sb-cell--balls em { font-size: 1.7rem; }
  .sb-rating, .sb-av { display: none; }
  .sb-emblem { width: 72px; height: 72px; top: -36px; }
  .sb-disc { font-size: .8rem; }
  .sb-player { padding: 10px 12px; }
}

/* Имя игрока в две строки на скоборде */
.sb-name { white-space: normal; font-size: 1.08rem; font-weight: 500; }
.sb-name b { display: block; font-size: 1.28rem; font-weight: 800; }
.sb-player--r .sb-name { text-align: right; }

/* ── Флаги стран и фото-аватары ──────────────── */
.u-flag { margin-right: 4px; font-size: .95em; }
.sb-flag {
  font-size: 2rem; line-height: 1; flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.av-photo { overflow: hidden; padding: 0 !important; }
.av-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* Загрузка фото в регистрации */
.reg-avatar-upload {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; margin-bottom: 14px;
}
.reg-avatar-preview {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-light, #E6F7FA);
  border: 2px dashed var(--primary, #00AFCA);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; overflow: hidden; flex-shrink: 0;
}
.reg-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.reg-avatar-hint { font-size: .85rem; color: var(--text-2); }

/* ── Мобильная адаптация сетки ───────────────── */
@media (max-width: 768px) {
  .bracket-arena { padding: 10px 8px 16px; border-radius: 12px; }
  /* Крупные тач-кнопки зума */
  .bk-zoom-bar { position: sticky; left: 0; z-index: 4; flex-wrap: wrap; gap: 6px; }
  .bk-zoom-btn { min-width: 42px; min-height: 40px; font-size: .95rem; }
  /* Прокрутка пальцем без drag-курсоров */
  .bk-scroll { cursor: default; -webkit-overflow-scrolling: touch; }
  /* Табы турнира — прокручиваемые, не сжимаются */
  .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tabs .tab { flex-shrink: 0; }
  /* Кнопки в шапке турнира в столбик */
  .t-hero-actions { flex-wrap: wrap; }
  .t-hero-actions .btn { flex: 1 1 45%; min-width: 0; }
}

/* ── Переключатель языка ─────────────────────── */
.lang-switch { position: relative; margin-left: auto; margin-right: 10px; }
.lang-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer;
  font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,.16); }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: #22303a; border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; overflow: hidden; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); min-width: 140px;
}
.lang-menu--open { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; color: #fff; cursor: pointer;
  padding: 10px 14px; font-size: .9rem;
}
.lang-menu button:hover { background: rgba(0,175,202,.25); }
@media (max-width: 768px) {
  .lang-switch { margin-left: 0; }
}

/* Изменение рейтинга Эло за матч */
.bm-elo {
  font-size: .78em; font-weight: 800;
  color: #4ade80; margin-left: 4px;
}

/* Бейдж версии в новостях об обновлениях */
.news-version {
  background: rgba(0,175,202,.14); color: var(--primary, #00AFCA);
  border: 1px solid rgba(0,175,202,.35); border-radius: 6px;
  padding: 1px 8px; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
}
.news-item-meta { display: flex; align-items: center; gap: 8px; }

/* ── Голосовое управление ────────────────────── */
.voice-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(140deg, #0E7C8C, #063540);
  border: 2px solid rgba(254,197,12,.55);
  color: #fff; font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.voice-btn:hover { transform: translateY(-2px); }
.voice-btn--on {
  background: linear-gradient(140deg, #d21f2c, #7a1119);
  border-color: rgba(255,255,255,.7);
  animation: voice-pulse 1.6s ease-in-out infinite;
}
@keyframes voice-pulse {
  0%,100% { box-shadow: 0 6px 22px rgba(0,0,0,.45), 0 0 0 0 rgba(210,31,44,.55); }
  50%     { box-shadow: 0 6px 22px rgba(0,0,0,.45), 0 0 0 14px rgba(210,31,44,0); }
}

.voice-panel {
  position: fixed; right: 18px; bottom: 84px; z-index: 300;
  max-width: min(360px, 88vw);
  background: #10222b; color: #fff;
  border: 1px solid rgba(254,197,12,.35); border-radius: 12px;
  padding: 12px 14px; font-size: .9rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.voice-panel--show { opacity: 1; transform: translateY(0); }
.voice-heard { color: rgba(255,255,255,.6); font-size: .82rem; margin-bottom: 4px; }
.voice-result { font-weight: 700; }
.voice-ok  { color: #4ade80; }
.voice-err { color: #fca5a5; }

.voice-help { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.voice-help div { display: flex; flex-direction: column; gap: 2px; }
.voice-help b { color: var(--primary, #00AFCA); font-size: .95rem; }
.voice-help span { color: var(--text-2); font-size: .82rem; }

@media (max-width: 768px) {
  .voice-btn { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .voice-panel { right: 14px; bottom: 76px; }
}
