/* ==========================================================================
   Football Coming iCal - Modern Glassmorphism & Football Aesthetic Stylesheet
   ========================================================================== */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color Palette */
  --bg-primary: #0a0f1d;
  --bg-card: rgba(18, 26, 47, 0.75);
  --bg-card-hover: rgba(26, 38, 68, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-border-glow: rgba(16, 185, 129, 0.35);

  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.4);
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-blue: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-glow-green: 0 0 25px rgba(16, 185, 129, 0.2);
  --shadow-glow-gold: 0 0 30px rgba(245, 158, 11, 0.25);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Dynamic Ambient Glow Background */
.app-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #059669 0%, transparent 70%);
  top: -150px;
  left: -100px;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
  top: 40%;
  right: -200px;
  animation: floatOrb 28s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #d97706 0%, transparent 70%);
  bottom: -100px;
  left: 20%;
  animation: floatOrb 24s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 60px) scale(0.95); }
}

/* App Shell */
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem 1.5rem;
}

/* Top Navigation Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.65);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid var(--bg-card-border-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: var(--shadow-glow-green);
  overflow: hidden;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 255, 135, 0.35));
  transition: transform var(--transition-smooth);
}

.brand:hover .brand-logo-img {
  transform: scale(1.1) rotate(4deg);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.accent-text {
  color: var(--accent-green);
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon-subtle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-icon-subtle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-pill-action {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid var(--bg-card-border-glow);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-pill-action:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
  border-color: var(--accent-green);
  box-shadow: var(--shadow-glow-green);
  transform: translateY(-1px);
}

.pill-tag {
  background: rgba(16, 185, 129, 0.25);
  color: var(--accent-green);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Glass Card Component */
.glass-card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

/* Nephew Hero Spotlight Section */
.nephew-hero-section {
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: var(--shadow-glow-gold), var(--shadow-card);
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.85) 0%, rgba(18, 26, 47, 0.85) 100%);
}

.nephew-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-gold);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.season-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.action-card-spotlight {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.spotlight-team-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.spotlight-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spotlight-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.4));
}

.spotlight-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.spotlight-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.spotlight-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

/* Subscribe Button System */
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-apple {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-apple:hover {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-google {
  background: #1e3a8a;
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.btn-google:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--bg-card-border);
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-download {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-download:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Section Containers */
.section-container {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.section-header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.section-badge {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Bundles Grid */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.bundle-card {
  padding: 1.5rem;
  border: 1px solid var(--bg-card-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bundle-card:hover {
  border-color: var(--bg-card-border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-green), var(--shadow-card);
}

.bundle-card.highlight {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.5) 0%, rgba(18, 26, 47, 0.75) 100%);
}

.bundle-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.bundle-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.bundle-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.bundle-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

.bundle-pill.gold {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--bg-card-border);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tab-btn.highlight-tab.active {
  background: rgba(245, 158, 11, 0.25);
  color: var(--accent-gold);
}

/* Teams Cards Grid */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.35rem;
}

.team-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--bg-card-border);
}

.team-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.team-card.is-e-youth {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(145deg, rgba(28, 25, 23, 0.6) 0%, rgba(18, 26, 47, 0.8) 100%);
}

.team-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.team-category-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.team-category-badge.e-youth {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
}

.nephew-star-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.team-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.team-fussball-link {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

.team-fussball-link:hover {
  text-decoration: underline;
}

.team-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.btn-preview-matches {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--bg-card-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-preview-matches:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Matchkalender Box */
.matchkalender-section {
  padding: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-color: rgba(6, 182, 212, 0.3);
  background: linear-gradient(135deg, rgba(8, 51, 68, 0.4) 0%, rgba(18, 26, 47, 0.7) 100%);
}

.mk-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mk-icon {
  font-size: 2rem;
}

.mk-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.mk-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-action-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Guide Section */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.guide-card {
  padding: 1.5rem;
  border: 1px solid var(--bg-card-border);
}

.guide-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  color: var(--accent-green);
}

.guide-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.guide-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* App Footer */
.app-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-mini-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.footer-separator {
  color: var(--text-dim);
  opacity: 0.5;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  display: inline-block;
}

.footer-credit {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.5rem 0 0.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.footer-heart {
  color: #f43f5e;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-heart:hover {
  transform: scale(1.3);
}

.footer-credit-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-credit-link:hover {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Modals */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-box {
  width: 100%;
  max-width: 520px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close-modal:hover {
  color: var(--text-main);
}

.setting-item {
  margin-bottom: 1.25rem;
}

.setting-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.setting-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.custom-select, .search-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.custom-select:focus, .search-input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: var(--shadow-glow-green);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.checkbox-container input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-green);
}

.search-input-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-results-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-preset-item {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-preset-item:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-green);
}

.preset-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.preset-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Match Preview Drawer */
.drawer-backdrop {
  justify-content: flex-end;
  padding: 0;
}

.drawer-backdrop.open {
  display: flex;
}

.drawer-panel {
  width: 100%;
  max-width: 580px;
  height: 100vh;
  background: #0f172a;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  padding: 2rem;
  overflow-y: auto;
  animation: slideDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.drawer-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
}

.drawer-actions-bar {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--bg-card-border);
}

.drawer-sub-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

/* Match Item Cards in Drawer */
.match-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 0.85rem;
  transition: all var(--transition-fast);
}

.match-card-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.match-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.match-date-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.match-comp-badge {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.match-teams-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.match-venue-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.5rem;
}

.match-maps-btn {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.25rem;
}

.match-maps-btn:hover {
  text-decoration: underline;
}

/* Spinner */
.loading-spinner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  gap: 1rem;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #10b981;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.app-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-card-border);
  color: var(--text-dim);
  font-size: 0.82rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-mini-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 255, 135, 0.4));
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  margin-right: 0.3rem;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .drawer-panel {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .btn-label-desktop {
    display: none;
  }
  .top-header {
    padding: 0.85rem 1rem;
  }
  .spotlight-buttons {
    grid-template-columns: 1fr;
  }
  .team-actions-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Full-Page Loading / Generating Overlay
   ========================================================================== */

.generating-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 9, 20, 0.88);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  padding: 1.25rem;
}

.generating-overlay.show {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Ambient Backdrop Orbs */
.overlay-backdrop-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.overlay-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
}

.overlay-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #059669 0%, transparent 70%);
  top: 10%;
  left: 15%;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.overlay-orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
  bottom: 10%;
  right: 15%;
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

.overlay-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #d97706 0%, transparent 70%);
  top: 40%;
  left: 45%;
  opacity: 0.18;
}

/* Overlay Dialog Card */
.generating-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(155deg, rgba(17, 26, 48, 0.95), rgba(10, 16, 31, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.85), 0 0 50px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  padding: 2.25rem 2.25rem 1.85rem 2.25rem;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  z-index: 2;
}

.generating-overlay.show .generating-card {
  transform: scale(1) translateY(0);
}

.generating-card.is-success {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.85), 0 0 70px rgba(16, 185, 129, 0.45), inset 0 0 25px rgba(16, 185, 129, 0.2);
}

/* Cancel Button */
.overlay-cancel-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.overlay-cancel-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: scale(1.08) rotate(90deg);
}

/* Radar & Graphic Visual */
.generating-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0.25rem auto 1.4rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent-green);
  pointer-events: none;
  animation: pulseWaves 2.8s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

.ring-1 {
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.ring-2 {
  width: 80px;
  height: 80px;
  animation-delay: 0.9s;
}

.ring-3 {
  width: 80px;
  height: 80px;
  animation-delay: 1.8s;
}

@keyframes pulseWaves {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.orbit-spinner {
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px dashed rgba(6, 182, 212, 0.35);
  animation: spinOrbit 7s linear infinite;
}

.orbit-particle {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.particle-1 {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  color: var(--accent-green);
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.particle-2 {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  color: var(--accent-cyan);
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
}

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

.generating-icon-container {
  position: relative;
  width: 78px;
  height: 78px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18));
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  z-index: 2;
  padding: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.generating-card.is-success .generating-icon-container {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(6, 182, 212, 0.3));
  border-color: var(--accent-green);
  transform: scale(1.08);
  box-shadow: 0 0 35px var(--accent-green);
}

.generating-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 255, 135, 0.6));
  animation: logoPulse 2.4s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  0% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 10px rgba(0, 255, 135, 0.4));
  }
  100% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 22px rgba(0, 255, 135, 0.85));
  }
}

.cal-frame {
  transition: all 0.3s ease;
}

.cal-ball {
  color: var(--accent-gold);
  animation: ballPulse 2s ease-in-out infinite alternate;
}

@keyframes ballPulse {
  0% { transform: scale(1); transform-origin: 12px 16px; }
  100% { transform: scale(1.15); transform-origin: 12px 16px; }
}

/* Header Text */
.generating-header {
  text-align: center;
}

.generating-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.generating-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.generating-format-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
}

.generating-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0.35rem 0;
}

.generating-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 420px;
  margin: 0 auto;
}

/* Progress Bar */
.progress-bar-wrapper {
  margin: 1.5rem 0 1.25rem 0;
}

.progress-bar-track {
  height: 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-bar-fill {
  height: 100%;
  width: 15%;
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.progress-glow-tip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px #ffffff, 0 0 20px var(--accent-cyan);
  opacity: 0.8;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-top: 0.55rem;
}

.progress-status-text {
  color: var(--text-main);
  font-weight: 600;
}

.progress-percent {
  color: var(--accent-cyan);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Pipeline Steps Checklist */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.28s ease;
  opacity: 0.4;
  filter: grayscale(40%);
}

.step-indicator {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.step-check {
  display: none;
}

.step-spinner {
  display: none;
  position: absolute;
  inset: -3px;
  border: 2px solid transparent;
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.step-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.step-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

.step-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Step Active State */
.step-row.active {
  opacity: 1;
  filter: none;
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.28);
  transform: translateX(3px);
}

.step-row.active .step-indicator {
  background: var(--accent-green);
  color: #0a0f1d;
  box-shadow: 0 0 12px var(--accent-green);
}

.step-row.active .step-spinner {
  display: block;
}

/* Step Completed State */
.step-row.completed {
  opacity: 0.95;
  filter: none;
  background: rgba(255, 255, 255, 0.02);
}

.step-row.completed .step-number {
  display: none;
}

.step-row.completed .step-indicator {
  background: rgba(16, 185, 129, 0.22);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

.step-row.completed .step-check {
  display: block;
}

.step-row.completed .step-spinner {
  display: none;
}

/* Footer Section */
.generating-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.75rem;
  color: var(--text-dim);
  gap: 0.75rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.generating-tip {
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .generating-card {
    padding: 1.75rem 1.25rem 1.35rem 1.25rem;
    border-radius: 20px;
  }
  .generating-title {
    font-size: 1.35rem;
  }
  .generating-visual {
    width: 95px;
    height: 95px;
    margin-bottom: 1rem;
  }
  .generating-icon-container {
    width: 62px;
    height: 62px;
  }
  .generating-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}
