@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

/* CSS Variables & Design Tokens */
:root {
  /* Elite Stadium Glass Design System */
  --elite-bg: #030712;
  --elite-bg-2: #07111F;
  --elite-navy: #0B1B33;
  --elite-sapphire: #123B68;
  --elite-cyan: #35D6FF;
  --elite-cyan-soft: rgba(53, 214, 255, 0.24);
  --elite-gold: #F7C948;
  --elite-gold-deep: #C98A12;
  --elite-red: #FF3B5F;
  --elite-glass-dark: rgba(8, 18, 34, 0.72);
  --elite-glass-mid: rgba(15, 32, 56, 0.66);
  --elite-glass-light: rgba(255, 255, 255, 0.08);
  --elite-border: rgba(255, 255, 255, 0.16);
  --elite-text: #F8FAFC;
  --elite-text-dark: #0F172A;
  --elite-muted: #9FB3C8;

  /* Legacy variable mappings to maintain logic alignment without CSS rewrite */
  --primary-color: var(--elite-cyan); /* Make primary accent color cyan for elite look */
  --secondary-color: var(--elite-gold);
  --bg-color: var(--elite-bg-2);
  --text-color: var(--elite-text);
  --white: var(--elite-glass-dark);
  --gray-light: rgba(255, 255, 255, 0.05);
  --gray-med: rgba(255, 255, 255, 0.15);
  --gray-dark: var(--elite-muted);

  /* Arab / Saudi Match Highlights */
  --ksa-bg: rgba(53, 214, 255, 0.06); /* Frosted cyan highlight */
  --ksa-border: rgba(53, 214, 255, 0.3);
  --ksa-text: var(--elite-gold);

  --font-stack: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body, button, input, select, textarea {
  font-family: var(--font-stack);
}

body {
  background-color: var(--elite-bg);
  color: var(--elite-text);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  direction: rtl;
  overflow-x: hidden;
}

/* App Frame (Mobile Mockup on Desktop, Full Screen on Mobile) */
.app-container {
  width: 100%;
  max-width: 480px;
  background: radial-gradient(circle at 80% 10%, rgba(53, 214, 255, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(247, 201, 72, 0.08) 0%, transparent 50%),
              linear-gradient(180deg, var(--elite-bg-2) 0%, var(--elite-bg) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 110px; /* safety spacing for floating bottom navigation */
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.6);
  overflow-x: hidden;
}

@media (min-width: 481px) {
  body {
    /* Premium World Cup desktop canvas background */
    background: radial-gradient(circle at 70% 20%, rgba(53, 214, 255, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(247, 201, 72, 0.12) 0%, transparent 70%),
                linear-gradient(135deg, var(--elite-bg) 0%, var(--elite-navy) 100%);
  }
}

/* Splash Screen (Cinematic World Cup Theme) */
.splash-screen {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: linear-gradient(135deg, var(--elite-bg) 0%, var(--elite-bg-2) 50%, var(--elite-navy) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  text-align: center;
  padding: 24px;
}

.splash-screen.fade-out {
  opacity: 0;
  transform: translateX(-50%) scale(1.08);
  pointer-events: none;
}

.splash-logo-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.splash-trophy-img {
  width: min(78vw, 320px);
  max-width: 320px;
  max-height: 48vh;
  height: auto;
  object-fit: contain;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 0 25px rgba(53, 214, 255, 0.45)) drop-shadow(0 0 12px rgba(247, 201, 72, 0.25));
  animation: float 4s ease-in-out infinite;
}

@media (max-height: 700px) {
  .splash-trophy-img {
    width: min(66vw, 260px);
    max-width: 260px;
    max-height: 40vh;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.splash-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 30%, var(--elite-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.splash-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  font-weight: 500;
}

.enter-btn {
  background: linear-gradient(135deg, var(--elite-gold) 0%, var(--elite-gold-deep) 100%);
  color: var(--elite-bg);
  border: none;
  border-radius: 50px;
  padding: 16px 44px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(247, 201, 72, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.enter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(247, 201, 72, 0.45);
}

.enter-btn:active {
  transform: translateY(1px);
}

/* App Header (Translucent Elite Navy Glass) */
.app-header {
  background: linear-gradient(135deg, rgba(8, 18, 34, 0.85) 0%, rgba(15, 32, 56, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--elite-text);
  padding: 20px 20px 24px 20px;
  border-radius: 0 0 28px 28px;
  border-bottom: 2px solid rgba(53, 214, 255, 0.3);
  box-shadow: 0 10px 30px rgba(3, 7, 18, 0.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-trophy-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(247, 201, 72, 0.6));
  animation: logoGlow 4s infinite ease-in-out;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(247, 201, 72, 0.5)); }
  50% { filter: drop-shadow(0 0 14px rgba(247, 201, 72, 0.9)); }
}

.header-logo h1 {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 30%, var(--elite-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(53, 214, 255, 0.15);
}

.header-time-badge {
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--elite-gold);
  color: var(--elite-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 10px rgba(247, 201, 72, 0.15);
  animation: goldPulse 3s infinite ease-in-out;
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(247, 201, 72, 0.2); border-color: rgba(247, 201, 72, 0.8); }
  50% { box-shadow: 0 0 16px rgba(247, 201, 72, 0.55); border-color: rgba(247, 201, 72, 1); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(53, 214, 255, 0.12);
  border: 1.5px solid rgba(53, 214, 255, 0.4);
  color: var(--elite-cyan);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Tajawal', sans-serif;
}

.share-btn:hover,
.share-btn:active {
  background: rgba(53, 214, 255, 0.22);
  border-color: var(--elite-cyan);
  box-shadow: 0 0 12px rgba(53, 214, 255, 0.25);
}

.header-intro {
  font-size: 0.88rem;
  color: var(--elite-muted);
  line-height: 1.6;
  font-weight: 500;
  border-right: 3px solid var(--elite-cyan);
  padding-right: 10px;
  margin-top: 2px;
}

.disclaimer-badge {
  display: inline-block;
  background: rgba(53, 214, 255, 0.12);
  border: 1px solid rgba(53, 214, 255, 0.35);
  color: var(--elite-cyan);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(53, 214, 255, 0.1);
}

/* View Container */
.view-container {
  padding: 20px 16px;
  flex: 1;
  overflow-y: auto;
}

.view {
  display: none;
  animation: viewFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.view.active {
  display: block;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Search Bar Style */
.search-container {
  position: relative;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.92rem;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--elite-text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--elite-cyan);
  box-shadow: 0 0 0 3px rgba(53, 214, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.08);
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--elite-muted);
  font-size: 1.15rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
  color: var(--elite-cyan);
}

/* Section / Date Group Headers (Premium Floating Section Title) */
.date-group-header {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--elite-gold);
  margin: 28px 0 16px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 32, 56, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(3, 7, 18, 0.2);
  border-right: 4px solid var(--elite-gold);
}

.date-group-header::before {
  content: '🏆';
  font-size: 1.05rem;
  filter: drop-shadow(0 0 4px var(--elite-gold));
}

.date-group-header:first-of-type {
  margin-top: 0;
}

/* Arab Match Highlight & Badges */
.arab-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: linear-gradient(135deg, var(--elite-navy) 0%, var(--elite-bg-2) 100%);
  color: var(--elite-gold);
  border: 1px solid rgba(247, 201, 72, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(247, 201, 72, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Match Card Style (Frosted Layered Glass Card) */
.match-card {
  background: var(--elite-glass-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--elite-border);
  border-right: 4px solid rgba(159, 179, 200, 0.4); /* fallback right border */
  position: relative;
  box-shadow: 0 8px 30px rgba(3, 7, 18, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.match-card:hover {
  transform: translateY(-2px);
  background: rgba(8, 18, 34, 0.85);
  box-shadow: 0 12px 35px rgba(3, 7, 18, 0.45), 0 0 15px rgba(53, 214, 255, 0.2);
  border-color: rgba(53, 214, 255, 0.35);
}

/* Dynamic Status-Based Accent Borders and Glows */
.match-card:has(.status-live) {
  border-right: 4px solid var(--elite-red);
  border-color: rgba(255, 59, 95, 0.25);
  box-shadow: 0 8px 30px rgba(255, 59, 95, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.match-card:has(.status-scheduled) {
  border-right: 4px solid var(--elite-gold);
  border-color: rgba(247, 201, 72, 0.25);
}

.match-card:has(.status-finished) {
  border-right: 4px solid rgba(159, 179, 200, 0.35);
}

/* Saudi/Arab Match Highlight Styles */
.match-card.highlighted-match {
  background: rgba(15, 32, 56, 0.72);
  border: 1.5px solid var(--elite-cyan-soft);
  box-shadow: 0 8px 32px rgba(53, 214, 255, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Match Card Header */
.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--elite-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.match-card.highlighted-match .match-header {
  border-bottom: 1px solid rgba(53, 214, 255, 0.15);
}

.match-stage {
  display: flex;
  align-items: center;
  gap: 5px;
}

.match-status-badge {
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.status-live {
  background: rgba(255, 59, 95, 0.15) !important;
  color: var(--elite-red) !important;
  border: 1px solid rgba(255, 59, 95, 0.35) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 10px rgba(255, 59, 95, 0.1);
  animation: softGlow 2.5s infinite ease-in-out;
}

.status-live::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--elite-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--elite-red);
  animation: dotPulse 1.5s infinite ease-in-out;
}

@keyframes softGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 59, 95, 0.1); }
  50% { box-shadow: 0 0 14px rgba(255, 59, 95, 0.25); }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
}

.status-finished {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--elite-muted) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.status-scheduled {
  background: rgba(247, 201, 72, 0.12) !important;
  color: var(--elite-gold) !important;
  border: 1px solid rgba(247, 201, 72, 0.35) !important;
}

/* Match Card Body */
.match-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* Team Zones styled as premium tiles */
.team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 37%;
  min-width: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-info:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.03);
}

/* Flag tile enclosure */
.team-info img,
.team-info .team-flag-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px !important;
  height: 54px !important;
  padding: 6px !important;
  background: rgba(3, 7, 18, 0.5) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  margin: 0 0 6px 0 !important;
  transition: all 0.25s ease !important;
  object-fit: contain !important;
}

.team-info .team-flag-emoji {
  font-size: 2.1rem !important;
  line-height: 1 !important;
}

.team-info:hover img,
.team-info:hover .team-flag-emoji {
  border-color: var(--elite-cyan) !important;
  box-shadow: 0 0 12px rgba(53, 214, 255, 0.2) !important;
  background: rgba(3, 7, 18, 0.7) !important;
}

.team-name {
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  color: var(--elite-text);
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal !important;
  line-height: 1.3;
  word-break: normal;
  min-width: 0;
  margin-top: 4px;
}

.team-name[style*="ksa-text"] {
  color: var(--elite-gold) !important;
  font-weight: 800 !important;
  text-shadow: 0 0 8px rgba(247, 201, 72, 0.2);
}

.match-score-center {
  width: 26%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.score-display {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--elite-text);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-dash {
  font-size: 1.4rem;
  color: var(--elite-muted);
}

.time-display {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--elite-cyan);
  background: rgba(53, 214, 255, 0.1);
  border: 1px solid rgba(53, 214, 255, 0.25);
  padding: 4px 14px;
  border-radius: 20px;
  margin-top: 6px;
  white-space: nowrap;
}

/* Upcoming match center time display */
.match-score-center .time-display {
  font-size: 0.88rem;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--elite-sapphire) 0%, var(--elite-navy) 100%);
  color: #ffffff;
  border: 1.5px solid rgba(53, 214, 255, 0.25);
  box-shadow: 0 4px 12px rgba(18, 59, 104, 0.25);
  margin-top: 0;
}

.match-card.highlighted-match .time-display {
  color: var(--elite-gold);
  background: rgba(247, 201, 72, 0.12);
  border-color: rgba(247, 201, 72, 0.3);
}

/* Match Card Footer */
.match-venue {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--elite-muted);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

.match-card.highlighted-match .match-venue {
  border-top: 1px solid rgba(53, 214, 255, 0.12);
}

.stadium-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fav-btn:hover {
  transform: scale(1.25);
  color: var(--elite-gold);
}

.fav-btn.active {
  color: var(--elite-gold);
  filter: drop-shadow(0 0 6px rgba(247, 201, 72, 0.6));
}

/* Glassmorphism Floating Bottom Navigation Dock */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  height: 76px;
  background: rgba(8, 18, 34, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1.5px solid rgba(53, 214, 255, 0.3); /* Electric cyan top glow */
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 12px 35px rgba(3, 7, 18, 0.5), 0 0 15px rgba(53, 214, 255, 0.1);
  border-radius: 24px;
  padding-bottom: 0;
  margin-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  text-decoration: none;
  color: var(--elite-muted);
  font-size: 0.76rem;
  font-weight: 700;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  gap: 4px;
  position: relative;
}

.nav-icon {
  font-size: 1.4rem;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.active {
  color: var(--elite-cyan);
}

.nav-item.active .nav-icon {
  transform: scale(1.2) translateY(-3px);
  filter: drop-shadow(0 0 8px rgba(53, 214, 255, 0.4));
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--elite-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--elite-cyan);
}

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  color: var(--elite-muted);
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.02));
}

.empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--elite-text);
}

.empty-text {
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 85%;
}

/* Standings Group Tables */
.group-table-card {
  background: var(--elite-glass-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(3, 7, 18, 0.3);
  border: 1px solid var(--elite-border);
}

.group-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--elite-text);
  margin-bottom: 16px;
  border-right: 4px solid var(--elite-gold);
  padding-right: 10px;
}

.group-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.75rem;
  table-layout: fixed;
}

.group-table th {
  color: var(--elite-muted);
  padding: 10px 4px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.group-table td {
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: var(--elite-text);
}

.group-table tr:last-child td {
  border-bottom: none;
}

.group-table tr.highlighted-row {
  background-color: rgba(53, 214, 255, 0.06);
}

.group-table tr.highlighted-row td {
  color: var(--elite-cyan);
  font-weight: 700;
}

.table-team-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  text-align: right;
  white-space: normal;
  word-break: break-word;
  min-width: 0;
}

.table-team-name span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}

/* Team Favorite Star (Group Table) */
.team-fav-star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--elite-muted);
  padding: 0 2px;
  margin-right: auto;
  transition: all 0.2s ease;
  line-height: 1;
}

.team-fav-star.active {
  color: var(--elite-gold);
}

.team-fav-star:hover {
  color: var(--elite-gold);
  transform: scale(1.2);
}

/* Team Favorite Star (Bottom Sheet) */
.sheet-fav-star {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(247, 201, 72, 0.1);
  border: 1.5px solid rgba(247, 201, 72, 0.3);
  color: var(--elite-gold);
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 10px;
  font-family: 'Tajawal', sans-serif;
}

.sheet-fav-star.active {
  background: rgba(247, 201, 72, 0.22);
  border-color: var(--elite-gold);
}

.sheet-fav-star:hover {
  background: rgba(247, 201, 72, 0.25);
  box-shadow: 0 0 10px rgba(247, 201, 72, 0.2);
}

/* Bottom Sheet Modal System */
.bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  background: rgba(8, 18, 34, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 32px 32px 0 0;
  border: 1px solid var(--elite-border);
  border-bottom: none;
  box-shadow: 0 -15px 40px rgba(3, 7, 18, 0.4);
  z-index: 1600;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px 24px 30px 24px;
}

.bottom-sheet.active {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 50px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  margin: 0 auto 20px auto;
  cursor: pointer;
}

.sheet-close {
  position: absolute;
  top: 18px;
  left: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--elite-muted);
  transition: all 0.2s ease;
}

.sheet-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--elite-text);
}

.sheet-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
  padding-top: 10px;
}

.sheet-team-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 12px 0 4px 0;
  color: var(--elite-text);
}

.sheet-team-rank {
  font-size: 0.88rem;
  color: var(--elite-muted);
  font-weight: 700;
}

.sheet-section-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--elite-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-badges-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.form-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #ffffff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.form-badge.win { background-color: #10b981; }
.form-badge.draw { background-color: var(--elite-muted); }
.form-badge.loss { background-color: #ef4444; }

.form-legend {
  text-align: center;
  font-size: 0.72rem;
  color: var(--elite-muted);
  margin-top: 6px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Tournament Summary Grid */
.tournament-summary-container {
  margin-bottom: 18px;
}

.tournament-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ts-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ts-num {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

.ts-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--elite-muted);
  margin-top: 4px;
}

.ts-win .ts-num { color: #10b981; }
.ts-draw .ts-num { color: var(--elite-cyan); }
.ts-loss .ts-num { color: #ef4444; }
.ts-gf .ts-num { color: var(--elite-gold); }
.ts-ga .ts-num { color: var(--elite-text); }
.ts-gd .ts-num { color: var(--elite-cyan); }

/* Favorites Tab */
.fav-team-card {
  background: var(--elite-glass-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--elite-border);
  cursor: pointer;
  transition: all 0.25s ease;
}

.fav-team-card:hover,
.fav-team-card:active {
  border-color: rgba(53, 214, 255, 0.3);
  background: rgba(15, 32, 56, 0.6);
}

.fav-team-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fav-team-flag {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(3, 7, 18, 0.5);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fav-team-flag-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.fav-team-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fav-team-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--elite-text);
}

.fav-team-group {
  font-size: 0.72rem;
  color: var(--elite-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fav-standing {
  color: var(--elite-cyan);
  font-weight: 700;
}

.fav-match-info {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--elite-text);
  font-weight: 600;
}

.fav-live-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  animation: livePulse 2s infinite;
  width: fit-content;
}

.fav-match-date {
  font-size: 0.72rem;
  color: var(--elite-muted);
}

.fav-no-match {
  color: var(--elite-muted);
  font-style: italic;
}

.sheet-stats-container {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-row {
  margin-bottom: 14px;
}

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--elite-text);
  margin-bottom: 6px;
}

.stat-bar-outer {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--elite-cyan) 0%, var(--elite-sapphire) 100%);
  border-radius: 4px;
  width: 0;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toast Notifications */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(16px);
  max-width: min(86vw, 320px);
  padding: 12px 20px;
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.88);
  color: #F8FAFC;
  border: 1px solid rgba(247, 201, 72, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), 0 0 22px rgba(53, 214, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  direction: rtl;
  text-align: center;
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* App Footer */
.app-footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--elite-muted);
  font-size: 0.72rem;
  line-height: 1.6;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 16px;
}

/* Loading & Error States */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  color: var(--elite-muted);
}

.spinner {
  width: 38px;
  height: 38px;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--elite-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message {
  background: rgba(255, 59, 95, 0.1);
  border: 1px solid rgba(255, 59, 95, 0.2);
  color: #ef4444;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 20px;
}

/* Live Match Spotlight Banner (V1-I) (Featured Event Card) */
.live-spotlight-container {
  background: linear-gradient(135deg, rgba(8, 18, 34, 0.8) 0%, rgba(18, 59, 104, 0.4) 100%) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--elite-cyan) !important;
  border-right: 6px solid var(--elite-cyan) !important;
  border-radius: 20px;
  margin: 16px 16px 8px 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(53, 214, 255, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  display: none;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.spotlight-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.spotlight-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 59, 95, 0.15) !important;
  color: var(--elite-red) !important;
  border: 1px solid rgba(255, 59, 95, 0.35) !important;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px !important;
  border-radius: 50px;
  text-transform: uppercase;
}

.spotlight-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--elite-red) !important;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--elite-red);
  animation: dotPulse 1.5s infinite ease-in-out !important;
}

.spotlight-stage {
  font-size: 0.72rem;
  color: var(--elite-muted);
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spotlight-match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.spotlight-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background-color 0.2s;
}

.spotlight-team:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.spotlight-team:active {
  background-color: rgba(255, 255, 255, 0.08);
}

.spotlight-flag {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.spotlight-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.spotlight-team-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--elite-text);
}

.spotlight-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.spotlight-score {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--elite-cyan) !important;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(53, 214, 255, 0.3) !important;
}

.spotlight-score-dash {
  color: var(--elite-muted);
  font-weight: 500;
}

.spotlight-time {
  font-size: 0.68rem;
  color: var(--elite-muted);
  font-weight: 700;
  margin-top: 2px;
}

.spotlight-status-text {
  font-size: 0.68rem;
  color: var(--elite-muted);
  text-align: center;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  margin-top: 4px;
  font-weight: 600;
}

/* Live Clock Estimated Badges */
.status-live.estimated-live {
  background: rgba(247, 201, 72, 0.12) !important;
  color: var(--elite-gold) !important;
  border: 1px solid rgba(247, 201, 72, 0.4) !important;
  box-shadow: 0 0 10px rgba(247, 201, 72, 0.15) !important;
}
.status-live.estimated-live::before {
  background-color: var(--elite-gold) !important;
  box-shadow: 0 0 6px var(--elite-gold) !important;
}
.status-scheduled.estimated-waiting {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--elite-muted) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}


/* --- News Ticker Styles --- */
.news-ticker-container {
  display: flex;
  align-items: center;
  background: var(--elite-glass-dark);
  border-bottom: 1px solid var(--elite-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 10px;
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 50;
}
.news-ticker-label {
  background: var(--elite-cyan);
  color: var(--elite-bg);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  margin-left: 10px;
  box-shadow: 0 0 10px var(--elite-cyan-soft);
}


/* --- News Ticker Styles --- */
.news-ticker-container {
  display: flex;
  align-items: center;
  background: var(--elite-glass-dark);
  border-bottom: 1px solid var(--elite-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 10px;
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 50;
}
.news-ticker-label {
  background: var(--elite-cyan);
  color: var(--elite-bg);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  margin-left: 10px;
  box-shadow: 0 0 10px var(--elite-cyan-soft);
}
.news-ticker-scroll-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.news-ticker-scroll {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation-name: almerkaz-news-ticker-seamless-loop;
  animation-duration: var(--ticker-duration, 45s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 1;
  visibility: visible;
}

.ticker-sequence {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex: 0 0 auto;
}
.news-ticker-container:hover .news-ticker-scroll,
.news-ticker-container:focus-within .news-ticker-scroll {
  animation-play-state: paused;
}
.ticker-item {
  color: #FFD84D;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}
.ticker-item:hover {
  color: var(--elite-cyan);
}
.ticker-source {
  color: var(--elite-gold);
  font-weight: bold;
  margin-left: 6px;
}
.ticker-separator {
  color: #FFD84D;
}
@keyframes almerkaz-news-ticker-seamless-loop {
  from { transform: translateX(0); }
  to { transform: translateX(var(--ticker-shift)); }
}
@media (prefers-reduced-motion: reduce) {
  .news-ticker-scroll {
    animation: none;
    overflow-x: auto;
  }
}

.news-ticker-container.news-ticker-ready,
#news-ticker.news-ticker-ready {
  display: flex !important;
}

/* ALMERKAZ_V1_P_B_HOTFIX3D_PREMIUM_PUSH_STATUS_CARD_VISUAL_POLISH */

/* ── Bell ring animation ── */
@keyframes almerkazBellRing {
  0% { transform: rotate(0); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-6deg); }
  50% { transform: rotate(3deg); }
  60% { transform: rotate(0); }
  100% { transform: rotate(0); }
}
@keyframes almerkazBellGlow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 6px rgba(247, 201, 72, 0.5)); }
}

/* ── Push Entry Card ── */
.almerkaz-push-entry {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(15, 32, 56, 0.7) 0%, rgba(8, 18, 34, 0.85) 100%);
  border: 1px solid rgba(247, 201, 72, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: right;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  pointer-events: auto;
  position: relative;
  z-index: 20;
  box-shadow:
    0 1px 0 0 rgba(247, 201, 72, 0.12) inset,
    0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.almerkaz-push-entry:active {
  transform: scale(0.97);
  border-color: var(--elite-gold, #F7C948);
  box-shadow:
    0 1px 0 0 rgba(247, 201, 72, 0.2) inset,
    0 4px 14px rgba(247, 201, 72, 0.15);
}

/* Bell icon container */
.almerkaz-push-entry-bell {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.15) 0%, rgba(201, 138, 18, 0.1) 100%);
  border: 1px solid rgba(247, 201, 72, 0.25);
  animation: almerkazBellRing 3s ease-in-out infinite, almerkazBellGlow 3s ease-in-out infinite;
}

/* Entry text block */
.almerkaz-push-entry-text {
  flex: 1;
  min-width: 0;
}
.almerkaz-push-entry-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--elite-gold, #F7C948);
  display: block;
  margin-bottom: 3px;
  line-height: 1.3;
}
.almerkaz-push-entry-sub {
  font-size: 12px;
  color: var(--elite-muted, #9FB3C8);
  display: block;
  line-height: 1.4;
  opacity: 0.85;
}

/* Status chevron */
.almerkaz-push-entry-chevron {
  flex-shrink: 0;
  font-size: 16px;
  color: rgba(247, 201, 72, 0.5);
  transition: transform 0.2s ease;
}
.almerkaz-push-entry:active .almerkaz-push-entry-chevron {
  transform: translateX(-3px);
}

/* ── Modal overlay ── */
.almerkaz-push-environment-modal {
  display: none;
}
.almerkaz-push-environment-modal:target,
.almerkaz-push-environment-modal.is-open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: almerkazModalFadeIn 0.25s ease-out;
}
@keyframes almerkazModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Modal card ── */
.almerkaz-push-modal-card {
  background: linear-gradient(180deg, #0f1a2e 0%, #0a1220 100%);
  border: 1px solid rgba(247, 201, 72, 0.3);
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  padding: 24px 22px 20px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 0 rgba(247, 201, 72, 0.1) inset,
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(247, 201, 72, 0.04);
  color: #fff;
  text-align: right;
  animation: almerkazModalSlideUp 0.3s ease-out;
}
@keyframes almerkazModalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Close button */
.almerkaz-push-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--elite-muted, #9FB3C8);
  text-decoration: none;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, color 0.2s ease;
}
.almerkaz-push-modal-close:active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Modal title */
#almerkaz-push-modal-title {
  color: var(--elite-gold, #F7C948);
  margin: 0 0 18px 0;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Modal body */
[data-almerkaz-push-modal-body] {
  color: #ccc;
  font-size: 14px;
  line-height: 1.7;
}
[data-almerkaz-push-modal-body] ol {
  padding-right: 20px;
  margin: 10px 0;
}

/* ── Status indicator ── */
.almerkaz-push-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}
.almerkaz-push-status-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}
.almerkaz-push-status-dot.dot-green  { color: #4caf50; background: #4caf50; }
.almerkaz-push-status-dot.dot-gold   { color: #F7C948; background: #F7C948; }
.almerkaz-push-status-dot.dot-red    { color: #f44336; background: #f44336; }
.almerkaz-push-status-dot.dot-amber  { color: #ff9800; background: #ff9800; }
.almerkaz-push-status-text {
  flex: 1;
  font-size: 14px;
  color: #e0e0e0;
  line-height: 1.5;
}

/* ── Modal action buttons ── */
.almerkaz-push-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 8px;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.almerkaz-push-btn:active {
  transform: scale(0.97);
  opacity: 0.85;
}

/* Primary gold CTA */
.almerkaz-push-btn-primary {
  background: linear-gradient(135deg, #F7C948 0%, #C98A12 100%);
  color: #0a0f1a;
  box-shadow: 0 4px 16px rgba(247, 201, 72, 0.25);
}
.almerkaz-push-btn-primary:active {
  box-shadow: 0 2px 8px rgba(247, 201, 72, 0.35);
}

/* Secondary dark */
.almerkaz-push-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Danger / destructive */
.almerkaz-push-btn-danger {
  background: transparent;
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Footer */
.almerkaz-push-modal-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.5px;
}

/* ── Loading shimmer ── */
@keyframes almerkazShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.almerkaz-push-loading {
  text-align: center;
  padding: 20px 0;
  color: var(--elite-muted, #9FB3C8);
  font-size: 14px;
  background: linear-gradient(90deg, transparent 25%, rgba(247, 201, 72, 0.06) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: almerkazShimmer 2s ease infinite;
  border-radius: 8px;
}

/* ALMERKAZ_V1_P_C_A_MATCH_REMINDER_FOUNDATION */

/* ── Reminder button row inside match card ── */
.almerkaz-reminder-row {
  display: flex;
  justify-content: center;
  padding: 6px 0 2px;
}

/* ── Reminder button ── */
.almerkaz-reminder-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border: 1px solid rgba(247, 201, 72, 0.25);
  border-radius: 20px;
  background: rgba(247, 201, 72, 0.08);
  color: var(--elite-gold, #F7C948);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.almerkaz-reminder-btn:active {
  transform: scale(0.95);
  background: rgba(247, 201, 72, 0.15);
  border-color: rgba(247, 201, 72, 0.5);
}
.almerkaz-reminder-btn span {
  color: inherit;
}

/* Active reminder state */
.almerkaz-reminder-btn.almerkaz-reminder-active {
  background: rgba(76, 175, 80, 0.1);
  border-color: rgba(76, 175, 80, 0.3);
  color: #4caf50;
}
.almerkaz-reminder-btn.almerkaz-reminder-active:active {
  background: rgba(76, 175, 80, 0.18);
}

/* ── Bottom sheet overlay ── */
.almerkaz-reminder-sheet {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(3, 7, 18, 0);
  transition: background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.almerkaz-reminder-sheet.is-open {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Sheet card ── */
.almerkaz-reminder-sheet-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #0f1a2e 0%, #0a1220 100%);
  border: 1px solid rgba(247, 201, 72, 0.25);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  color: #fff;
  text-align: right;
  direction: rtl;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}
.almerkaz-reminder-sheet.is-open .almerkaz-reminder-sheet-card {
  transform: translateY(0);
}

/* ── Sheet title ── */
.almerkaz-reminder-sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--elite-gold, #F7C948);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ── Current reminder indicator ── */
.almerkaz-reminder-sheet-current {
  font-size: 14px;
  color: #4caf50;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.15);
  margin-bottom: 12px;
  text-align: center;
}

/* ── Timing option buttons ── */
.almerkaz-reminder-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #e0e0e0;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 8px;
  outline: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.almerkaz-reminder-option:active {
  transform: scale(0.97);
  background: rgba(247, 201, 72, 0.1);
  border-color: rgba(247, 201, 72, 0.3);
  color: var(--elite-gold, #F7C948);
}
.almerkaz-reminder-option:disabled {
  opacity: 0.5;
  cursor: default;
}
