/* ============================================================
   LiveKora — Main Stylesheet
   Mobile-first, RTL Arabic, Kooora-inspired
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'NeoSansArabic', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg-page);
  color: var(--text-main);
  direction: rtl;
  min-height: 100vh;
  padding-bottom: 64px; /* space for mobile bottom nav */
}
@media (min-width: 1001px) { body { padding-bottom: 0; } }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; font-size: 0; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}
button { cursor: pointer; }

/* ---------- CSS Variables — Light Mode ---------- */
:root {
  --accent:          #c8102e;
  --accent-hover:    #a00d24;
  --accent-light:    rgba(200, 16, 46, 0.1);

  --bg-page:         #f0f2f5;
  --bg-card:         #ffffff;
  --bg-header:       #ffffff;
  --bg-sidebar:      #f8f9fb;
  --bg-match:        #ffffff;
  --bg-input:        #f0f2f5;
  --bg-leagues-bar:  #1a2332;

  --text-main:       #1a1d29;
  --text-muted:      #6b7280;
  --text-light:      #9ca3af;
  --text-on-dark:    #ffffff;

  --border:          #e5e7eb;
  --border-dark:     #d1d5db;

  --shadow-sm:       0 1px 3px rgba(0,0,0,.08);
  --shadow-md:       0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:       0 8px 24px rgba(0,0,0,.12);

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

  --header-h:        60px;
  --leagues-bar-h:   48px;
  --mobile-nav-h:    60px;

  --container-max:   1140px;
  --gap:             14px;

  /* match status colours */
  --live-color:      #e53935;
  --soon-color:      #0d7c3d;
  --fin-color:       #6b7280;
  --pending-color:   #2563eb;
}

/* ---------- CSS Variables — Dark Mode ---------- */
.dark {
  --bg-page:         #0e1621;
  --bg-card:         #1a2332;
  --bg-header:       #131f2e;
  --bg-sidebar:      #162030;
  --bg-match:        #1a2332;
  --bg-input:        #0e1621;
  --bg-leagues-bar:  #0a1220;

  --text-main:       #e2e8f0;
  --text-muted:      #94a3b8;
  --text-light:      #64748b;
  --text-on-dark:    #ffffff;

  --border:          #243447;
  --border-dark:     #2d3f55;

  --shadow-sm:       0 1px 3px rgba(0,0,0,.3);
  --shadow-md:       0 4px 12px rgba(0,0,0,.4);
  --shadow-lg:       0 8px 24px rgba(0,0,0,.5);
}

/* ---------- Font ---------- */
@font-face {
  font-family: 'NeoSansArabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://www.yalla-shoos.live/wp-content/themes/AlbaYallaShoot/public/fonts/NeoSansArabic.woff2?v=3') format('woff2');
}
@media (max-width: 768px) {
  body { font-family: 'Segoe UI', Arial, sans-serif; }
}

/* ---------- Layout Helpers ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.d-flex   { display: flex; }
.d-none   { display: none; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.text-muted { color: var(--text-muted); }
.screen-reader {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Breaking News Bar ---------- */
.breaking-bar {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
}
.breaking-bar .lbl {
  background: rgba(0,0,0,.25);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  white-space: nowrap;
  gap: 6px;
  flex-shrink: 0;
}
.breaking-bar .ticker-wrap {
  overflow: hidden;
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.breaking-bar .ticker {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  padding-right: 60px;
}
@keyframes marquee {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100vw); }
}

/* ---------- Header ---------- */
#site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-ball {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text .ar { font-size: 17px; font-weight: 700; color: var(--text-main); }
.logo-text .en { font-size: 11px; color: var(--text-muted); letter-spacing: .5px; }

/* Main nav */
.main-nav { display: none; }
@media (min-width: 1001px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    padding-right: 16px;
  }
}
.main-nav a {
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--accent); background: var(--accent-light); }
.main-nav .live-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 700;
}
.main-nav .live-link .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}
.h-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background .15s, color .15s;
  cursor: pointer;
}
.h-btn:hover { background: var(--bg-input); color: var(--text-main); }
.h-btn svg { width: 20px; height: 20px; }

/* Search bar (desktop) */
.header-search {
  display: none;
}
@media (min-width: 768px) {
  .header-search {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0 12px;
    height: 36px;
    gap: 6px;
    flex: 0 0 200px;
    transition: flex .2s;
  }
  .header-search:focus-within {
    border-color: var(--accent);
    flex: 0 0 260px;
  }
  .header-search input {
    background: none;
    font-size: 13px;
    color: var(--text-main);
    width: 100%;
  }
  .header-search input::placeholder { color: var(--text-light); }
  .header-search svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
}

/* Login button (desktop) */
.btn-login-hdr {
  display: none;
}
@media (min-width: 900px) {
  .btn-login-hdr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 34px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
    white-space: nowrap;
  }
  .btn-login-hdr:hover { background: var(--accent-hover); }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
@media (min-width: 1001px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: .3s;
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 400;
  transition: right .3s ease;
  overflow-y: auto;
  padding: 0 0 40px;
}
.dark .nav-drawer { border-left-color: var(--border); }
.nav-drawer.open { right: 0; }
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 399;
}
.drawer-overlay.open { display: block; }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  font-size: 15px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.drawer-nav a:hover { background: var(--bg-input); color: var(--accent); }
.drawer-nav a .icon { font-size: 18px; width: 24px; text-align: center; }

/* ---------- Leagues Quick Bar ---------- */
.leagues-bar {
  background: var(--bg-leagues-bar);
  height: var(--leagues-bar-h);
  overflow: hidden;
  position: relative;
}
.leagues-bar::before,
.leagues-bar::after {
  content: '';
  position: absolute;
  top: 0;
  width: 30px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.leagues-bar::before {
  right: 0;
  background: linear-gradient(to left, var(--bg-leagues-bar), transparent);
}
.leagues-bar::after {
  left: 0;
  background: linear-gradient(to right, var(--bg-leagues-bar), transparent);
}
.leagues-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  height: 100%;
  padding: 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.leagues-scroll::-webkit-scrollbar { display: none; }
.league-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 20px;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
  font-size: 13px;
  transition: background .15s, color .15s;
  cursor: pointer;
  flex-shrink: 0;
}
.league-item:hover,
.league-item.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.league-item.active { background: var(--accent); color: #fff; }
.league-item img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255,255,255,.15);
}
.league-item .flag { font-size: 16px; }

/* ---------- Ad slot labels ---------- */
.ad-slot {
  text-align: center;
  margin: 10px 0;
  position: relative;
}
.ad-slot::before {
  content: 'إعلان';
  display: block;
  font-size: 10px;
  color: var(--text-light);
  margin-bottom: 4px;
  letter-spacing: .5px;
}
.ad-slot ins { display: block; margin: 0 auto; }

/* ---------- Main Layout ---------- */
.page-wrapper {
  padding: 14px 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 1001px) {
  .two-col {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}
.sidebar { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1001px) {
  .sidebar-sticky { position: sticky; top: calc(var(--header-h) + var(--leagues-bar-h) + 10px); }
}

/* ---------- Section Block ---------- */
.block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 14px;
}
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.block-head h2,
.block-head h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-main);
}
.block-head h2 .icon,
.block-head h3 .icon { font-size: 16px; }
.block-head .see-all {
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}
.block-head .see-all:hover { text-decoration: underline; }
.block-body { padding: 0; }

/* ---------- Date Tabs ---------- */
.date-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.date-tabs::-webkit-scrollbar { display: none; }
.dtab {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.dtab:hover { border-color: var(--accent); color: var(--accent); }
.dtab.active-yesterday { background: #1a4b8c; color: #fff; border-color: #1a4b8c; }
.dtab.active-today     { background: var(--accent); color: #fff; border-color: var(--accent); }
.dtab.active-tomorrow  { background: #b45309; color: #fff; border-color: #b45309; }
.dtab.active           { background: var(--accent); color: #fff; border-color: var(--accent); }

/* live filter dot */
.dtab.live-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  border-color: var(--accent-light);
  background: var(--accent-light);
}
.dtab.live-tab .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s infinite;
}

/* ---------- League Group Header ---------- */
.league-group-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.league-group-hdr:first-child { border-top: none; }
.league-group-hdr img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
}

/* ---------- Match Card ---------- */
.match-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: var(--text-main);
}
.match-card:last-child { border-bottom: none; }
.match-card:hover { background: var(--bg-input); }

/* teams */
.match-team {
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-team.away { flex-direction: row-reverse; }
.match-team img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}
.team-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 600px) { .team-name { max-width: 140px; } }

/* center (score / time) */
.match-center { text-align: center; min-width: 70px; flex-shrink: 0; }
.match-score {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  color: var(--text-main);
}
.match-score .sep { color: var(--text-light); font-weight: 300; }
.match-time {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}
.match-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  letter-spacing: .3px;
}
.status-live     { background: var(--live-color); color: #fff; animation: blink-bg 1s ease infinite; }
.status-soon     { background: var(--soon-color); color: #fff; }
.status-fin      { background: var(--bg-input);   color: var(--text-muted); }
.status-pending  { background: var(--bg-input);   color: var(--text-muted); }
@keyframes blink-bg {
  0%, 100% { opacity: 1; }
  50%       { opacity: .7; }
}

/* match minute for live */
.match-minute {
  font-size: 12px;
  color: var(--live-color);
  font-weight: 700;
  margin-top: 2px;
}

/* Channel info */
.match-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
  justify-content: center;
}
.match-meta svg { width: 11px; height: 11px; }

/* live badge on card hover */
.match-card .watch-btn {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 14px;
  bottom: 8px;
  white-space: nowrap;
}
.match-card:hover .watch-btn { display: block; }

/* No matches message */
.no-matches {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.no-matches .icon { font-size: 40px; margin-bottom: 10px; }

/* ---------- News Grid ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 14px;
}
@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .15s, transform .15s;
  display: block;
  color: var(--text-main);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.news-img {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--bg-input);
}
.news-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.news-card:hover .news-img img { transform: scale(1.04); }
.news-img .cat-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.news-body { padding: 10px; }
.news-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  max-height: 3.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
}
.news-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Large hero card */
.news-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 200px;
  color: var(--text-main);
  transition: box-shadow .15s;
}
.news-hero:hover { box-shadow: var(--shadow-md); }
@media (max-width: 480px) { .news-hero { grid-template-columns: 1fr; } }
.news-hero .news-img { padding-top: 0; height: 100%; min-height: 180px; }
.news-hero .news-img img { position: relative; width: 100%; height: 100%; }
.news-hero .news-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.news-hero .news-title {
  font-size: 16px;
  max-height: none;
  -webkit-line-clamp: 4;
}

/* Load more button */
.load-more-wrap { text-align: center; padding: 10px 14px 16px; }
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 24px;
  border-radius: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-load-more:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Trending sidebar widget ---------- */
.trending-list { padding: 0; }
.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  color: var(--text-main);
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: var(--bg-input); }
.trending-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--border-dark);
  min-width: 24px;
  line-height: 1.2;
}
.trending-item:nth-child(1) .trending-num { color: var(--accent); }
.trending-item:nth-child(2) .trending-num { color: #f59e0b; }
.trending-item:nth-child(3) .trending-num { color: #6b7280; }
.trending-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}
.trending-views {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ---------- Standings mini widget ---------- */
.standings-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.standings-table th {
  padding: 6px 8px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.standings-table th:first-child { text-align: right; }
.standings-table td {
  padding: 7px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.standings-table td:first-child { text-align: right; }
.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr:hover td { background: var(--bg-input); }
.team-row { display: flex; align-items: center; gap: 6px; }
.team-row img { width: 16px; height: 16px; object-fit: contain; }
.team-row span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pts-cell { font-weight: 800; color: var(--text-main); }
.promo-zone td:first-child { border-right: 3px solid #22c55e; }
.rel-zone td:first-child   { border-right: 3px solid var(--accent); }

/* ---------- Footer ---------- */
#site-footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 30px 0;
}
.footer-widget h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-widget ul li { margin-bottom: 8px; }
.footer-widget ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color .15s;
}
.footer-widget ul li a:hover { color: var(--accent); }
.footer-about-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 8px;
}
.social-links { display: flex; gap: 8px; margin-top: 12px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform .15s;
  color: #fff;
}
.social-link:hover { transform: translateY(-2px); }
.social-link.fb  { background: #1877f2; }
.social-link.tw  { background: #000; }
.social-link.yt  { background: #cd201f; }
.social-link.tg  { background: #24a1de; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Mobile Bottom Navigation ---------- */
.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  z-index: 300;
  height: var(--mobile-nav-h);
  box-shadow: 0 -2px 10px rgba(0,0,0,.1);
}
@media (min-width: 1001px) { .mobile-nav { display: none; } }
.mob-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  transition: color .15s;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}
.mob-nav-item:hover,
.mob-nav-item.active { color: var(--accent); }
.mob-nav-item .icon { font-size: 20px; line-height: 1; }
.mob-nav-item .label { font-size: 10px; font-weight: 600; }
.mob-nav-item .badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 16px);
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* sticky mobile ad above bottom nav */
.mob-sticky-ad {
  display: none;
  position: fixed;
  bottom: var(--mobile-nav-h);
  left: 0;
  right: 0;
  z-index: 299;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 4px;
}
@media (max-width: 1000px) { .mob-sticky-ad { display: block; } }
.mob-sticky-ad .close-ad {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 10px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
}

/* ---------- Lazy load ---------- */
.lk-lazy { opacity: 0; transition: opacity .4s; }
.lk-lazy.loaded { opacity: 1; }

/* ---------- Loading spinner ---------- */
.spinner-wrap { display: flex; justify-content: center; align-items: center; padding: 30px; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: var(--bg-input); color: var(--text-main); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Tooltip ---------- */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  right: 50%;
  transform: translateX(50%);
  background: #1a2332;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
[data-tip]:hover::after { opacity: 1; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius-md); }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-accent { color: var(--accent); }
