/* ==========================================================================
   LIMEBET — shared design system
   Palette, typography and component geometry reproduced from the live site.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: u+0301, u+0400-045f, u+0490-0491, u+04b0-04b1, u+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: u+00??, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+0304, u+0308, u+0329,
    u+2000-206f, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd;
}

:root {
  --bg-body: #0a0a0a;
  --bg-primary: #121314;
  --bg-secondary: #1a1c1d;
  --bg-card: #202224;
  --bg-card-hover: #26282a;
  --bg-input: #161819;
  --bg-header: #121314;
  --accent: #c6ff00;
  --accent-hover: #b4e600;
  --accent-dark: rgba(198, 255, 0, 0.1);
  --text-primary: #fff;
  --text-secondary: #8e9297;
  --text-muted: #5a5d61;
  --border: #2a2c2f;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
}
button,
input {
  font-family: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
}
ul {
  list-style: none;
}

/* ---------- buttons ---------- */
.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  font-size: 14px;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 15px rgba(198, 255, 0, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  font-size: 14px;
}
.btn-outline:hover {
  background: var(--accent-dark);
}

/* ---------- header ---------- */
.header-container {
  height: 72px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.header-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 0 12px rgba(198, 255, 0, 0.4);
  flex-shrink: 0;
}
.header-logo-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0;
}
.header-logo-text .lime {
  color: var(--accent);
}
.header-logo-text .bet {
  color: #fff;
}
.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.header-actions .btn-outline {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 6px;
}
.header-actions .btn-primary {
  padding: 7px 16px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 800;
}
.header-balance {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
}
.header-balance-label {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}
.header-balance-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #16191f;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 8px rgba(198, 255, 0, 0.15);
}
.header-logout {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
}
.header-logout:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ---------- 3-column shell ---------- */
.layout-container {
  display: flex;
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 72px);
}
.nav-panel {
  width: 260px;
  flex-shrink: 0;
}
.main-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}
.betslip-panel {
  width: 340px;
  flex-shrink: 0;
}

/* ---------- sidebar ---------- */
.sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow-y: auto;
  padding: 0 8px;
}
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.search-bar input {
  background: none;
  border: none;
  color: #fff;
  outline: none;
  width: 100%;
  font-size: 13px;
}
.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.search-results {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: #181a1d;
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  padding: 6px;
}
.search-result {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}
.search-result:hover {
  background: rgba(255, 255, 255, 0.06);
}
.search-result-meta {
  font-size: 10px;
  color: var(--text-secondary);
}
.search-result-teams {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.search-empty {
  padding: 14px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
}
.sidebar-title {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s;
  font-size: 13px;
}
.sidebar-item:hover {
  background: var(--bg-card);
}
.sidebar-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sidebar-item-icon {
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sidebar-item-name {
  font-weight: 500;
  line-height: 1.25;
}
.sidebar-item-count {
  font-size: 11px;
  color: var(--text-secondary);
  flex-shrink: 0;
  padding-left: 6px;
}
.sidebar-item.is-league .sidebar-item-count {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
}
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ---------- banner carousel ---------- */
.banner-wrap {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}
.banner {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 150px;
  max-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  transition: all 0.4s ease;
}
.banner-glow {
  position: absolute;
  right: -5%;
  top: -30%;
  width: 300px;
  height: 300px;
  pointer-events: none;
  transition: background 0.4s ease;
}
.banner-body {
  position: relative;
  z-index: 2;
  max-width: 70%;
}
.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.banner-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 6px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}
.banner-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-bottom: 14px;
  line-height: 1.4;
}
.banner-cta {
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}
.banner-nav {
  display: flex;
  gap: 8px;
  z-index: 3;
}
.banner-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.banner-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.banner-dot {
  width: 8px;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.banner-dot.active {
  width: 24px;
  background: var(--accent);
}

/* ---------- filter tabs ---------- */
.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  align-items: center;
  overflow-x: auto;
  width: 100%;
  white-space: nowrap;
}
.filter-tab {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.filter-tab:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.filter-tab.active {
  border-color: var(--accent);
  color: var(--accent);
}
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--danger);
  flex-shrink: 0;
}

/* ---------- sport sections ---------- */
.sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 60px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}
.section-title {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-weight: 900;
  min-width: 0;
}
.section-title svg {
  flex-shrink: 0;
  color: var(--accent);
}
.section-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.see-all {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.section-arrows {
  display: flex;
  gap: 6px;
}
.row-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}
.row-arrow:hover {
  color: #000;
  background: var(--accent);
}
.match-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-behavior: smooth;
}

/* ---------- match card ---------- */
.match-card {
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 320px;
  width: 320px;
  min-width: 300px;
  max-width: 330px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, border-color 0.15s ease;
  background-image: linear-gradient(180deg, rgba(18, 20, 24, 0.85) 0%, rgba(14, 16, 20, 0.95) 100%);
  background-size: cover;
  background-position: center;
  text-decoration: none;
}
.match-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.match-card.full-width {
  flex: 1 1 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}
.match-league {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.match-league span {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.match-time {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-time .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.match-time .val {
  color: #fff;
  font-weight: 700;
}
.match-time.live .val {
  color: var(--warning);
  font-weight: 800;
}
.match-time.live .live-dot {
  width: 7px;
  height: 7px;
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}
.match-teams {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.match-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.match-team-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.match-team-name > span:last-child {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-score {
  font-weight: 900;
  font-size: 16px;
  color: var(--accent);
  margin-left: 8px;
  flex-shrink: 0;
}
.odds-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.odds-group-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--text-secondary);
}
.odds-group-label b {
  font-weight: 700;
}
.odds-group-label em {
  font-size: 10px;
  opacity: 0.7;
  font-style: normal;
}
.odds-line {
  display: flex;
  gap: 6px;
}
.odds-btn {
  flex: 1;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: 0.15s ease;
}
.odds-btn .lbl {
  font-size: 11px;
  opacity: 0.6;
  font-weight: 700;
}
.odds-btn .val {
  font-weight: 800;
  font-size: 12px;
}
.odds-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
}
.odds-btn.selected {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.odds-btn.selected .lbl {
  opacity: 0.9;
}
.odds-btn.compact {
  padding: 6px 2px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  flex-direction: column;
  gap: 2px;
}
.odds-btn.compact .lbl {
  font-size: 10px;
  opacity: 0.6;
  font-weight: 600;
}
.odds-btn.compact .val {
  font-size: 11px;
}
.odds-btn.compact.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* ---------- wide (list) card variant ---------- */
.match-card--wide {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: none;
  background-image: none;
  max-width: none;
}
.match-card--wide .wide-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-input);
  gap: 12px;
}
.match-card--wide .wide-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 0;
}
.match-card--wide .wide-body {
  display: flex;
  padding: 16px;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- team crest ---------- */
.team-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  flex-shrink: 0;
  transform: translateZ(0);
}

/* ---------- form controls ---------- */
.form-input {
  background: #181a1d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}
.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(198, 255, 0, 0.2);
  background: #1e2126;
}

/* ---------- betslip ---------- */
.betslip-root {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 2px 30px;
}
.betslip-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  background: var(--bg-card);
  padding: 6px 0 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px 8px 0 0;
}
.betslip-tab {
  padding: 8px 4px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  color: var(--text-secondary);
  transition: 0.15s ease;
}
.betslip-tab.active {
  background: var(--accent);
  color: #000;
}
.slip-empty {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 16px;
  text-align: center;
}
.slip-empty svg {
  color: var(--border);
  margin-bottom: 12px;
}
.slip-empty-title {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
}
.slip-empty-sub {
  color: var(--text-secondary);
  font-size: 12px;
}
.slip-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slip-bet {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  position: relative;
}
.slip-bet-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 24px;
}
.slip-bet-team {
  display: flex;
  align-items: center;
  gap: 6px;
}
.slip-bet-team span {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slip-vs {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 800;
  text-transform: lowercase;
  flex-shrink: 0;
}
.slip-bet-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slip-selection {
  background: rgba(198, 255, 0, 0.12);
  color: var(--accent);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
}
.slip-odds {
  color: var(--accent);
  font-weight: 900;
  font-size: 16px;
}
.slip-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slip-remove:hover {
  color: var(--text-primary);
}
.slip-summary {
  background: linear-gradient(145deg, var(--bg-card) 0%, #121417 100%);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border);
}
.slip-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 13px;
}
.slip-summary-row b {
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}
.slip-stake-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 800;
}
.slip-stake {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.slip-stake button {
  flex: 0 0 42px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slip-stake button:first-child {
  border-right: 1px solid var(--border);
}
.slip-stake button:last-child {
  border-left: 1px solid var(--border);
}
.slip-stake input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  font-weight: 900;
  font-size: 17px;
  outline: none;
  min-width: 0;
}
.slip-chips {
  display: flex;
  gap: 6px;
}
.slip-chip {
  flex: 1;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.15s ease;
}
.slip-chip.active {
  background: rgba(198, 255, 0, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}
.slip-payout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.slip-payout span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}
.slip-payout b {
  color: var(--accent);
  font-weight: 900;
  font-size: 17px;
}
.slip-submit {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 10px;
}
.slip-notice {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}
.slip-notice.ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--success);
  color: #4ade80;
}
.slip-notice.err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--danger);
  color: #f87171;
}
.slip-state {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 16px;
  text-align: center;
}
.slip-state svg {
  color: var(--border);
  margin-bottom: 12px;
}
.slip-state-title {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
}
.slip-state-sub {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ---------- support widget ---------- */
.support-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(198, 255, 0, 0.35);
  cursor: pointer;
  z-index: 1100;
  transition: transform 0.2s ease;
  border: none;
}
.support-fab:hover {
  transform: scale(1.06);
}
.support-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease-out;
}
.support-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 100px);
  background: #141618;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
  z-index: 1201;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}
.support-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #16181a;
}
.support-head-title {
  font-weight: 900;
  font-size: 14px;
}
.support-head-sub {
  font-size: 11px;
  color: #4ade80;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.support-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.support-msg.bot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.support-msg.me {
  background: var(--accent);
  color: #000;
  font-weight: 600;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.support-topics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.support-topic {
  text-align: left;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
}
.support-topic:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.support-input-row {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.support-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
  min-width: 0;
}
.support-input:focus {
  border-color: var(--accent);
}
.support-send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- mobile bottom nav + drawers ---------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(18, 20, 22, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--accent);
}
.mobile-nav-item .badge {
  position: absolute;
  transform: translate(14px, -12px);
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease-out;
}
.mobile-drawer-content {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 20px 16px;
  max-width: 100vw;
  height: 94vh;
  max-height: 96vh;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: pan-y;
  overflow-y: auto;
}
.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mobile-drawer-head h3 {
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-drawer-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}
.mobile-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.mobile-search-field input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  min-width: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  0% {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
  to {
    transform: translateY(0) rotate(0deg);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .layout-container {
    gap: 16px;
    padding: 16px;
  }
  .nav-panel {
    width: 200px;
  }
  .betslip-panel {
    width: 280px;
  }
}

@media (max-width: 900px) {
  .header-container {
    padding: 8px 12px;
    height: 56px;
  }
  body[data-page="auth"] {
    padding-bottom: 0;
  }
  .header-actions .btn-outline,
  .header-actions .btn-primary {
    padding: 6px 12px;
    font-size: 11px;
  }
  .layout-container {
    flex-direction: column;
    padding: 10px 8px;
    gap: 12px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .nav-panel,
  .betslip-panel,
  .desktop-only {
    display: none !important;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
  .banner {
    min-height: 140px;
    padding: 20px 16px;
  }
  .banner-title {
    font-size: 1.4rem;
    line-height: 1.2;
  }
  .banner-badge {
    font-size: 10px;
  }
  .banner-sub {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .banner-cta {
    padding: 8px 18px;
    font-size: 12px;
  }
  .banner-body {
    max-width: 74%;
  }
  .section-title {
    font-size: 16px;
  }
  .support-fab {
    display: none;
  }
  .support-window {
    bottom: 74px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    height: calc(100dvh - 90px);
    max-height: none;
    border-radius: 16px;
  }
  .match-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
    scroll-behavior: smooth;
  }
  .match-row .match-card {
    flex: 0 0 310px;
    width: 310px;
    min-width: 300px;
    max-width: 320px;
    scroll-snap-align: start;
  }
  .match-card.full-width {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
  .section-arrows {
    display: none;
  }
}

@media (min-width: 901px) {
  .mobile-only {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
  .layout-container {
    padding: 12px 12px 90px !important;
    gap: 12px !important;
  }
  .main-content {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ---------- support widget: реальная переписка ---------- */
.support-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-body);
}
.support-fab {
  position: fixed;
}
.support-attach {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.support-attach:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.support-ticket-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-align: center;
  padding: 4px 0 8px;
}
.support-msg-time {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  margin-top: 4px;
  font-weight: 600;
}
.support-msg-image {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  margin-top: 8px;
}
.support-attach-note {
  align-self: flex-end;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}
.support-guest {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-guest-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* сумма баланса в шапке + вход в профиль по клику */
.header-balance-sum {
  padding: 6px 10px 6px 12px;
  display: flex;
  align-items: center;
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}
