/* 
  MatchLog - Core Design System & Variables 
  Theme: Modern Dark Mode & Glassmorphism
*/

/* =========================================
   VARIABLES & THEME CONFIGURATION
========================================= */
/* Google Fonts: Bebas Neue (Logo/Cards) FOUC engellemek için display=block, diğerleri (Body) için display=swap */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=block');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Condensed:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Deep Dark Theme */
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-tertiary: #1a1a1a;
  
  /* Brand Colors (Can be overridden dynamically per team later) */
  --brand-primary: #f39c12; /* Default: Amber/Gold */
  --brand-secondary: #e74c3c; /* Default: Red */
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  /* Utilities */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* Z-Index */
  --z-header: 100;
  --z-modal: 1000;
  --z-overlay: 999;
}

/* =========================================
   Reset & Base Styles
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

input, textarea, select, [contenteditable="true"] {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}

/* =========================================
   Typography Utilities
========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 1px;
}

.text-gradient {
  background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   Layout & Components
========================================= */
#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
/* Header */
.app-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  row-gap: 0;
  padding: 14px var(--spacing-lg) 0 var(--spacing-lg) !important;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: 74px;
  max-height: 74px;
  box-sizing: border-box;
}

.app-logo {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 2.3rem;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.modal-subtitle {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 2.5px;
  margin: 1px 0 0 0;
  text-transform: uppercase;
  line-height: 1;
}

.header-left-side {
  grid-column: 1;
  display: flex;
  align-items: center;
}

#header-title-container {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 145px;
  line-height: 1.1;
  position: relative;
}

.btn-sync-green {
  background: linear-gradient(135deg, #034f2a 0%, #1ecc78 100%) !important;
  color: white !important;
  width: 35px !important;
  height: 35px !important;
  min-width: 35px !important;
  min-height: 35px !important;
  max-width: 35px !important;
  max-height: 35px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  border-radius: 9px !important;
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  border: none !important;
  cursor: pointer;
  
  /* Green glow shadow */
  box-shadow: 0 4px 12px rgba(9, 121, 69, 0.3) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-sync-green:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(9, 121, 69, 0.45) !important;
}

.btn-sync-green:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 8px rgba(9, 121, 69, 0.2) !important;
}

.btn-sync-green svg {
  width: 22px !important;
  height: 22px !important;
}

/* New Stats Ticker Band Styling */
.db-stats-row-new {
  position: sticky;
  top: 74px;
  z-index: 90;
  height: 52px; /* İstatistik bandının dikeyde ortalanması ve kartlar için alt boşluk tamponu sağlanması amacıyla yükseklik artırıldı */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0c0c0c; /* Header arka planı ile aynı katı renk */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  overflow: hidden;
}

.stats-ticker-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stats-slide {
  position: absolute;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.stats-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.stats-slide.exit {
  opacity: 0;
  transform: translateY(-12px);
}

.stats-icon {
  font-size: 12px;
}

.stats-value {
  color: var(--text-primary);
  font-weight: 400;
}

.stats-pill-win {
  color: #2ecc71;
  font-weight: 400;
}

.stats-pill-draw {
  color: #95a5a6;
  font-weight: 400;
}

.stats-pill-loss {
  color: #e74c3c;
  font-weight: 400;
}

.stats-slide-divider {
  color: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

#header-subtitle-archive {
  font-family: var(--font-display) !important;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 1px;
  line-height: 1;
  display: block;
  cursor: default;
}

#header-title-team {
  font-family: var(--font-display);
  font-size: calc(2rem + 1px);
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#auth-section {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-width: 80px;
}

#header-title-container .db-stats-pill-container {
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important;
  margin: 2px 0 0 0 !important;
  font-size: 10px !important;
  gap: 6px !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

#header-title-container .db-stats-pill-count {
  font-size: 9px !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-secondary);
}

#btn-login-trigger {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  font-family: var(--font-primary) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer !important;
  display: inline-flex;
  align-items: center !important;
  gap: 6px !important;
  min-width: unset !important;
}

#btn-login-trigger:hover {
  background: linear-gradient(135deg, rgba(232, 23, 43, 0.15) 0%, rgba(249, 169, 0, 0.15) 100%) !important;
  border-color: rgba(249, 169, 0, 0.4) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 15px rgba(249, 169, 0, 0.25) !important;
  transform: translateY(-1.5px) !important;
}

#btn-login-trigger:active {
  transform: translateY(0.5px) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Glassmorphism Auth Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: var(--z-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#add-match-modal-overlay {
  z-index: 9999 !important; /* detay modalının üzerinde kesinlikle açılması için */
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.glass-modal {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  width: 90%;
  max-width: 400px;
  max-height: 96vh;
  overflow-y: auto;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Modal Scrollbar Tasarımı */
.glass-modal::-webkit-scrollbar {
  width: 6px;
}
.glass-modal::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}
.glass-modal::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

.modal-overlay.active .glass-modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #000000 0%, #2c2c2c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #151515 0%, #3a3a3a 100%);
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.modal-close:active {
  transform: translateY(3px);
  box-shadow: 0 0px 0 transparent, inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.search-bar-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.btn-3d-manual {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary, #E8172B) 22%, transparent) 0%, color-mix(in srgb, var(--brand-secondary, #F9A900) 22%, transparent) 100%) !important;
  border: 1px solid color-mix(in srgb, var(--brand-secondary, #F9A900) 35%, transparent);
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-3d-manual:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary, #E8172B) 35%, transparent) 0%, color-mix(in srgb, var(--brand-secondary, #F9A900) 35%, transparent) 100%) !important;
  border-color: color-mix(in srgb, var(--brand-secondary, #F9A900) 60%, transparent);
  color: #ffffff !important;
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-3d-manual:active {
  transform: translateY(3px);
  box-shadow: 0 0px 0 transparent, inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-3d-manual .btn-emoji {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-block;
  transform: translateY(-1px);
}

.btn-3d-manual .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  font-size: 13px;
}

.modal-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.modal-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Auth Provider Buttons */
.auth-providers {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.btn-provider {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-provider:hover {
  background: rgba(255,255,255,0.05);
}

.btn-provider img, .btn-provider svg {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--spacing-lg) 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 var(--spacing-md);
}

/* Main Hero Section */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  min-height: calc(100vh - 80px); /* Subtract header height */
  background: radial-gradient(circle at 50% -20%, rgba(243, 156, 18, 0.1) 0%, rgba(10,10,10,1) 60%);
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--spacing-xl);
}

/* =========================================
   Onboarding (Team Selection)
========================================= */
.onboarding-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  min-height: calc(100vh - 80px);
}

.onboarding-container {
  max-width: 800px;
  width: 100%;
}

.onboarding-container h2 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.onboarding-container p {
  margin-bottom: var(--spacing-xl);
  font-size: 1.1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.team-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg) var(--spacing-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}

.team-card h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.team-card:hover {
  transform: translateY(-5px);
  background: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Team Specific Hover Effects (White-Labeling Preview) */
.team-card[data-team="GS"]:hover { border-color: #c8102e; box-shadow: 0 5px 15px rgba(200, 16, 46, 0.3); }
.team-card[data-team="FB"]:hover { border-color: #001f5b; box-shadow: 0 5px 15px rgba(0, 31, 91, 0.3); }
.team-card[data-team="BJK"]:hover { border-color: #ffffff; box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2); }
.team-card[data-team="TS"]:hover { border-color: #a40046; box-shadow: 0 5px 15px rgba(164, 0, 70, 0.3); }
.team-card[data-team="BURSA"]:hover { border-color: #007a33; box-shadow: 0 5px 15px rgba(0, 122, 51, 0.3); }

/* =========================================
   Dashboard & Empty State
========================================= */
.dashboard-section {
  flex: 1;
  padding: var(--spacing-xl) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  max-width: 634px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.dashboard-header h2 {
  font-size: 2.5rem;
  margin: 0;
}

.matches-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 634px;
  margin: 0 auto;
  width: 100%;
  transition: filter 0.3s ease; /* Smooth blur transition */
}

.matches-grid.welcome-blur-active {
  filter: none !important; /* Blur removed by user request */
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem !important;
  background: #1C1C1E !important;
  border: 1px solid #3A3A3C !important;
  border-radius: 14px !important;
  margin-top: var(--spacing-lg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

.empty-icon {
  font-size: 3.8rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.95 !important;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.empty-state h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.empty-state p {
  max-width: 400px;
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: 0.85;
}

/* =========================================
   Master Match List (Modal)
========================================= */
.master-match-item {
  transition: all 0.2s ease;
}

.master-match-item.selected {
  border-color: rgba(46, 204, 113, 0.45) !important;
  background: linear-gradient(135deg, 
    rgba(30, 204, 120, 0.05), 
    rgba(46, 204, 113, 0.07)
  ) !important;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.25);
}

.master-match-item.already-added {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.03) !important;
  cursor: not-allowed;
  pointer-events: none;
}

.master-match-item.already-added .badge-disabled {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  font-weight: 600;
}

.master-match-item.already-added .match-card-row-middle,
.master-match-item.already-added .match-card-row-bottom {
  opacity: 0.63 !important;
  filter: blur(1.2px) !important;
}

.match-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  min-width: 70px;
  margin-right: 2px;
}

.match-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-checkbox:checked {
  background-color: rgba(0, 0, 0, 0.6);
  border-color: rgba(46, 204, 113, 0.85);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.35);
}

.match-checkbox:checked::after {
  content: '✓';
  background: linear-gradient(45deg, #38ef7d, #11998e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 12px;
  font-weight: 800;
  display: inline-block;
}

.badge-disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* =========================================
   Dashboard Match Cards (Glassmorphism)
========================================= */
.glass-panel {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--border-radius-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.match-card {
  display: flex;
  padding: var(--spacing-md);
}

.match-sequence-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.match-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  width: 100%;
  z-index: 1;
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.match-card-date {
  color: var(--brand-primary);
  font-weight: 600;
}

.match-card-teams h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.match-card-footer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--spacing-sm);
}

/* =========================================
   Advanced Manual Match Form Styles
========================================= */
.segmented-control {
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  width: 100%;
  height: 36px;
}

.segmented-control input[type="radio"] {
  display: none;
}

.segmented-control label {
  flex: 1;
  text-align: center;
  padding: 0 10px;
  line-height: 36px;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-primary);
  font-size: 13px;
  transition: all 0.3s ease;
}

.segmented-control input[type="radio"]:checked + label {
  background: var(--brand-primary);
  color: white;
}

/* Premium iOS Switch styling */
.ios-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
}

.ios-switch {
  position: relative;
  display: inline-block;
  width: 43px;
  height: 28px;
  flex-shrink: 0;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 34px;
}

.ios-switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.ios-switch input:checked + .ios-switch-slider {
  background-color: #e74c3c;
  border-color: #e74c3c;
}

.ios-switch input:checked + .ios-switch-slider:before {
  transform: translateX(15px);
}

.ios-switch-status {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.3s ease;
}

.selection-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.selection-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
}

.selection-card-title {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

.label-subtitle {
  font-size: 12.5px;
  font-weight: normal;
  opacity: 0.6;
  display: block;
  margin-top: 4px;
}

.manual-score-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.manual-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-height: 44px;
}

.manual-score-team-name {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  flex-shrink: 0;
  padding-left: 11px;
}

.manual-score-team-box {
  display: flex;
  align-items: center;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  box-sizing: border-box;
  user-select: none;
  pointer-events: none;
}

/* Stepper Style */
.score-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  height: 36px;
  flex-shrink: 0;
}

.score-stepper .stepper-btn {
  width: 32px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--brand-secondary, #fdb913);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  user-select: none;
}

.score-stepper .stepper-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.score-stepper .stepper-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

.score-stepper input[type="number"] {
  width: 44px !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  text-align: center !important;
  font-size: 23px !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 2px !important;
  padding: 0 !important;
  color: white !important;
  outline: none !important;
  -moz-appearance: textfield;
}

.score-stepper input[type="number"]::-webkit-outer-spin-button,
.score-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.goals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.goal-row {
  display: flex;
  gap: 5px;
  align-items: center;
}

.goal-row input, .goal-row select {
  padding: 8px !important;
  font-size: 0.85rem !important;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(0,0,0,0.5);
  color: white;
}

.btn-remove-goal {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.5);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remove-goal:hover {
  background: #e74c3c;
  color: white;
}

.btn-remove-companion {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.5);
  border-radius: var(--border-radius-sm);
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.btn-remove-companion:hover {
  background: #e74c3c;
  color: white;
}

/* =========================================
   REDESIGNED MATCH CARD — Premium Layout v2
========================================= */

.match-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px 16px 6px 16px;
  gap: 2px;
  border-radius: 14px;
  background: rgba(36, 38, 43, 0.69) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.match-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.match-card-row-top {
  margin-bottom: 7px; /* Takım ismine olan üst mesafe (Tarih - Takım Adı) - Azaltıldı */
}

.match-card-row-middle {
  margin-bottom: -3px; /* Takım ismine olan alt mesafe (Takım Adı - Stadyum) - 1px daha sıkılaştırıldı */
}

.match-card-row-bottom {
  margin-top: 0;
  align-items: flex-end;
}

.match-card:active {
  transform: scale(0.98);
}

.match-card-border-g {
  border-left: none !important;
  background: linear-gradient(90deg, #2ecc71 0%, rgba(46, 204, 113, 0.45) 3px, rgba(46, 204, 113, 0.15) 10px, rgba(36, 38, 43, 0.69) 35px, rgba(36, 38, 43, 0.69) 100%) !important;
  box-shadow: inset 15px 0 25px -15px rgba(46, 204, 113, 0.6) !important;
}
.match-card-border-b {
  border-left: none !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.25) 3px, rgba(255, 255, 255, 0.08) 10px, rgba(36, 38, 43, 0.69) 35px, rgba(36, 38, 43, 0.69) 100%) !important;
  box-shadow: inset 15px 0 25px -15px rgba(255, 255, 255, 0.3) !important;
}
.match-card-border-m {
  border-left: none !important;
  background: linear-gradient(90deg, #E8172B 0%, rgba(232, 23, 43, 0.45) 3px, rgba(232, 23, 43, 0.15) 10px, rgba(36, 38, 43, 0.69) 35px, rgba(36, 38, 43, 0.69) 100%) !important;
  box-shadow: inset 15px 0 25px -15px rgba(232, 23, 43, 0.6) !important;
}

.match-card-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.match-card-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-left: 2px;
}

.match-card-meta-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.match-meta-date {
  flex: 1;
  text-align: right;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.match-meta-separator {
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.match-meta-season {
  flex: 1;
  text-align: left;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.matches-grid .match-card-meta-wrapper {
  justify-content: flex-start;
}

.matches-grid .match-meta-date,
.matches-grid .match-meta-season {
  flex: 0 0 auto;
}

.match-card-row-top-right {
  min-width: 70px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: 2px;
}

.match-card-teams {
  flex: 1;
  min-width: 0;
}

.match-teams-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.1;
  width: 100%;
  text-transform: uppercase;
}

.match-team-left {
  flex: 1;
  text-align: right;
  word-wrap: break-word;
  word-break: normal;
  overflow-wrap: break-word;
}

.match-team-separator {
  padding: 0 8px;
  color: var(--text-primary);
  flex-shrink: 0;
  font-weight: 500;
}

.match-team-right {
  flex: 1;
  text-align: left;
  word-wrap: break-word;
  word-break: normal;
  overflow-wrap: break-word;
}

.match-card-footer {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-left: 2px;
}

.match-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2px;
  flex-shrink: 0;
  min-width: 70px;
}

.match-score-display {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-align: right;
  margin: 4px 2px 4px 0;
  min-width: 70px;
  flex-shrink: 0;
}

.result-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: right;
  min-width: 70px;
  flex-shrink: 0;
  margin-right: 2px;
}

.result-text-g { color: #2ecc71; }
.result-text-b { color: rgba(255, 255, 255, 0.63); }
.result-text-m { color: #E8172B; }

.match-number {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
  min-width: 70px;
  flex-shrink: 0;
  margin-right: 2px;
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.match-card.glass-panel { animation: cardSlideIn 0.35s ease both; }
.matches-grid > .match-card:nth-child(1) { animation-delay: 0.04s; }
.matches-grid > .match-card:nth-child(2) { animation-delay: 0.08s; }
.matches-grid > .match-card:nth-child(3) { animation-delay: 0.12s; }
.matches-grid > .match-card:nth-child(4) { animation-delay: 0.16s; }
.matches-grid > .match-card:nth-child(5) { animation-delay: 0.20s; }
.matches-grid > .match-card:nth-child(6) { animation-delay: 0.24s; }

/* =========================================
   PREMIUM INPUT & FORM STYLES
========================================= */

.glass-form input[type="text"],
.glass-form input[type="email"],
.glass-form input[type="password"],
.glass-form input[type="date"],
.glass-form select,
.glass-form input[type="number"]:not(#manual-score-home):not(#manual-score-away) {
  height: 36px !important;
  min-height: 36px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.form-group-half {
  flex: 1;
  max-width: calc(50% - 5px);
}

.glass-form input:focus,
.glass-form select:focus,
.glass-form textarea:focus {
  outline: none;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
  background: rgba(255,255,255,0.06) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#manual-score-home,
#manual-score-away,
#manual-companion-count {
  background-color: rgba(255,255,255,0.05) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 23px !important;
}

/* Flatpickr input fix */
input.flatpickr-input[type="text"] {
  background-color: rgba(0,0,0,0.5) !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
}

.add-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  padding: 14px var(--spacing-lg) 0 var(--spacing-lg) !important;
  height: 74px !important;
  max-height: 74px !important;
  box-sizing: border-box !important;
}



/* =========================================
   DASHBOARD VISUAL REDESIGN — Resim-2 SPEC
========================================= */
.db-title-centered {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px !important;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
  color: #ffffff;
  margin: 0 auto !important;
  text-transform: uppercase;
}

.db-subtitle-centered {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: #2ecc71;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 4px;
}

.db-stats-pill-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 15px;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 0.3px;
}

.db-stats-pill-count {
  background: #F9A900;
  color: #000000;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  display: inline-block;
  letter-spacing: 0.2px;
  line-height: 1.1;
  margin-right: 2px;
}

.db-stats-wins {
  color: #F9A900;
  font-weight: 400;
}

.db-stats-draws {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.db-stats-losses {
  color: #E8172B;
  font-weight: 400;
}

.db-stats-num {
  font-weight: 700;
}

.btn-add-gradient {
  background: linear-gradient(135deg, var(--brand-primary, #E8172B) 0%, var(--brand-secondary, #F9A900) 100%) !important;
  color: white !important;
  width: 35px !important;
  height: 35px !important;
  min-width: 35px !important;
  min-height: 35px !important;
  max-width: 35px !important;
  max-height: 35px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  border-radius: 9px !important;
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  border: none !important;
  cursor: pointer;
  
  /* Red glow shadow */
  box-shadow: 0 4px 12px rgba(232, 23, 43, 0.3) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-add-gradient svg {
  width: 26px !important;
  height: 26px !important;
}

.btn-add-gradient:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(232, 23, 43, 0.45) !important;
}

.btn-add-gradient:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 8px rgba(232, 23, 43, 0.2) !important;
}


/* =========================================
   RESPONSIVE — TABLET (≤ 768px)
========================================= */
@media (max-width: 768px) {
  .dashboard-section { padding: var(--spacing-lg) var(--spacing-md); }
  .dashboard-header h2 { font-size: 2rem; }
  .glass-modal { padding: var(--spacing-lg) var(--spacing-md); }
  .modal-header h2 { font-size: 2rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .onboarding-container h2 { font-size: 2.5rem; }
}

/* =========================================
   RESPONSIVE — MOBILE (≤ 480px)
========================================= */
@media (max-width: 480px) {

  .app-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    row-gap: 12px;
    padding: calc(14px + env(safe-area-inset-top)) var(--spacing-md) 14px var(--spacing-md);
  }
  .app-logo { font-size: 1.8rem; }

  .dashboard-section { padding: var(--spacing-md) 11px; }
  .dashboard-header { margin-bottom: var(--spacing-md); flex-wrap: wrap; gap: var(--spacing-sm); }
  .dashboard-header h2 { font-size: 1.6rem; flex: 1; }

  .match-card { padding: 9px 10px 6px 10px; gap: 2px; }
  .match-teams-wrapper { font-size: 24px; letter-spacing: 0.6px; }
  .match-score-display { font-size: 1.6rem; letter-spacing: 1px; }
  .match-card-right { min-width: 62px; }

  #add-match-modal-overlay {
    align-items: stretch;
  }
  #add-match-modal-overlay .glass-modal {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    max-height: -webkit-fill-available !important;
    border-radius: 0;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  #add-match-modal-overlay.active .glass-modal {
    transform: scale(1);
  }
  #add-match-modal-overlay .add-modal-header {
    padding: calc(14px + env(safe-area-inset-top)) var(--spacing-lg) 14px var(--spacing-lg) !important;
  }
  #add-match-modal-overlay .add-modal-scroll {
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
  }


  .add-modal-header { margin-bottom: var(--spacing-md); align-items: center; }
  .add-modal-header > div > h2 { font-size: 1.3rem; line-height: 1.2; }
  .add-modal-header > div > p { font-size: 0.8rem; margin-top: 2px; }
  #btn-toggle-manual-mode { padding: 6px 10px; font-size: 0.75rem; white-space: nowrap; }

  .form-row { flex-direction: column; gap: 8px; }
  .form-group-half { max-width: calc(50% - 4px); }

  .glass-form input,
  .glass-form select,
  .glass-form textarea,
  .manual-score-team-box { min-height: 36px; font-size: 16px !important; }

  .btn { min-height: 36px; }

  .score-stepper { height: 36px !important; }

  .goals-list {
    gap: 12px !important;
  }

  .goal-row {
    display: grid !important;
    grid-template-columns: 69px 1fr 71px 36px !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    align-items: center !important;
  }

  .goal-row .goal-team-select {
    grid-column: 1 / 3 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-height: 36px;
  }

  .goal-row .btn-remove-goal {
    grid-column: 4 !important;
    grid-row: 2 !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .btn-remove-companion {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }

  .goal-row .goal-minute-input {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-height: 36px;
    text-align: center !important;
  }

  .goal-row .goal-player-select,
  .goal-row .goal-player-manual-wrapper {
    grid-column: 2 / 4 !important;
    grid-row: 2 !important;
    width: 100% !important;
  }

  .goal-row .goal-player-select,
  .goal-row .goal-player-input {
    min-height: 36px;
  }

  .goal-row .goal-type-select {
    grid-column: 3 / 5 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-height: 36px;
  }

  .segmented-control label { padding: 0 8px; line-height: 36px; font-size: 16px !important; }
  .ios-switch-status { font-size: 16px !important; }
  #manual-score-home,
  #manual-score-away,
  #manual-companion-count { font-size: 24px !important; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card { height: 90px; }
  .onboarding-container h2 { font-size: 2rem; }

  .empty-state { padding: 3rem 1rem; }
  .hero-subtitle { font-size: 0.95rem; padding: 0 var(--spacing-sm); }

  /* Detay Modalını Mobilde Tam Ekran Yapma */
  #match-details-modal-overlay {
    align-items: stretch;
  }
  
  #match-details-modal-overlay .match-details-modal {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    max-height: -webkit-fill-available !important;
    border-radius: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    padding: 0 !important;
    animation: none;
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: hidden !important;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #match-details-modal-overlay.active .match-details-modal {
    transform: scale(1);
  }

  #match-details-modal-overlay .details-modal-header {
    padding: calc(14px + env(safe-area-inset-top)) var(--spacing-lg) 14px var(--spacing-lg) !important;
    background: rgba(12, 12, 12, 0.92) !important;
    border-bottom: 1px solid transparent !important;
    border-image: linear-gradient(to right, rgba(255, 255, 255, 0.15), transparent, rgba(255, 255, 255, 0.15)) 1 !important;
  }

  #match-details-modal-overlay .details-modal-scroll {
    padding-top: 16px !important;
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
  }

  #match-details-modal-overlay .details-hdr-actions {
    position: static;
    top: auto;
    left: auto;
  }

  #match-details-modal-overlay .modal-close {
    position: static;
    top: auto;
    right: auto;
  }

  #match-details-modal-overlay .details-meta-row {
    margin-top: 0;
  }

  /* Performance optimization: Disable heavy backdrop-filter on scrolling list for mobile */
  .match-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(28, 30, 34, 0.96) !important;
  }
}

/* =========================================
   Match Details Modal CSS
   ========================================= */

.match-details-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  background: rgba(36, 38, 43, 0.69) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 30px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .match-details-modal {
  transform: scale(1);
}

/* Detay Modalı Neon Efektleri Kullanıcı İsteğiyle Kaldırıldı (Faz 28.10) */

.details-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px var(--spacing-lg) 0 var(--spacing-lg) !important;
  position: relative;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(to right, rgba(255, 255, 255, 0.15), transparent, rgba(255, 255, 255, 0.15)) 1;
  height: 74px !important;
  max-height: 74px !important;
  box-sizing: border-box !important;
}

/* Action buttons at top left */
.details-hdr-actions {
  position: static;
  display: flex;
  gap: var(--spacing-sm);
  z-index: 10;
}

.details-action-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.details-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.details-action-btn:active {
  transform: scale(0.95);
}

.details-action-btn.btn-edit {
  color: var(--brand-secondary, #ffcc00);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.details-action-btn.btn-delete {
  color: #ff4d4d;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Modal Close Button override for details modal */
#match-details-modal-overlay .modal-close {
  position: static;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#match-details-modal-overlay .modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Meta info row */
.details-meta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 4px; /* sıra no ile stad arası boşluk azaltıldı */
  gap: var(--spacing-xs);
}

.details-meta-row span {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; /* 0.75 → 0.8 (+0.5px eşdeğeri) */
  color: rgba(255, 255, 255, 0.75); /* %75 opaklık */
  font-weight: 400;
  letter-spacing: 0.5px;
}

.details-meta-row span:nth-child(2) {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.75rem;
  opacity: 1;
}

/* Turnuva adı (Süper Lig, Şampiyonlar Ligi vb.) bold */
#details-meta-comp-type {
  font-weight: 700;
  font-size: 0.85rem; /* 0.8 → 0.85 (+0.5px eşdeğeri) */
  letter-spacing: 0.8px;
}

/* Sequence badge (license plate style) */
.details-sequence-badge {
  background: color-mix(in srgb, var(--brand-secondary, #fdb913) 33%, transparent);
  color: var(--text-primary, #ffffff);
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 0px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-top: var(--spacing-xs);
  letter-spacing: 1px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Presentation area */
.details-presentation {
  text-align: center;
  margin-top: -30px; /* takım isimleri daha yukarı */
  margin-bottom: 0px;
}

.details-teams {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0.9px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 1.1;
  margin-bottom: 24px; /* room for absolute country details-country-inline */
  text-transform: uppercase;
}

.match-team-left, .match-team-right {
  position: relative;
}

.team-name-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Sol takım dış saha durumunda: ülke etiketi sağa yaslı */
.match-team-left .team-name-wrapper {
  align-items: flex-end;
  text-align: right;
}

.details-country-inline {
  position: absolute;
  top: 100%;
  left: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5); /* %50 opak beyaz */
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 4px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  text-align: left;
  text-transform: none !important;
}

/* Sol takımdaki ülke etiketi sağa yapışık */
.match-team-left .details-country-inline {
  left: auto;
  right: 0;
  text-align: right;
}

.details-score {
  font-family: var(--font-display);
  font-size: 3.0rem;
  color: var(--brand-secondary, #fdb913);
  line-height: 1;
  letter-spacing: 2px;
  margin-top: 5px;
}

/* Info section (frameless stadyum, referee & companions) */
.details-info-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: -12px; /* blok olarak yukarı kaydırma */
  margin-bottom: 26px; /* takım isimleri ile arasındaki boşluk artırıldı */
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.details-info-stadium {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75); /* %75 opaklık */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.details-info-stadium-icon,
.details-info-whistle-icon {
  width: 0.95rem; /* metne göre (0.8rem) biraz daha büyük */
  height: 0.95rem;
  stroke: var(--brand-secondary, #fdb913);
  stroke-width: 1.8;
  display: inline-block;
  vertical-align: middle;
}

.details-info-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; /* stadyum ile tutarlı */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75); /* %75 opaklık */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Sections */
.details-section {
  margin-top: 0px;
  padding-top: 6px;
}

.details-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-secondary, #fdb913); /* Fallback */
  letter-spacing: 1.5px;
  padding: 6px 0;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0.15) 55%, transparent 100%);
}

.details-section-title .gradient-text {
  background: linear-gradient(90deg, #FF8C00, #FFD700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.details-section-title .emoji-icon {
  font-size: 1.1em;
  -webkit-text-fill-color: initial;
  color: initial;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

#details-goals-list {
  gap: 0;
}

.details-goal-row {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  align-items: center;
  width: 100%;
  font-size: 0.93rem;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  gap: 8px;
}

.details-goal-row.goal-left {
  border-image: linear-gradient(to right, rgba(255, 255, 255, 0.15) 0%, transparent 50%, transparent 100%) 1;
}

.details-goal-row.goal-right {
  border-image: linear-gradient(to right, transparent 0%, transparent 50%, rgba(255, 255, 255, 0.15) 100%) 1;
}

.col-l-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding-left: 16px; /* Hafifçe uzaklaştırıldı */
}

.col-r-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-right: 16px; /* Hafifçe uzaklaştırıldı */
}

.col-center-player {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-left: 0; /* ortaya hizalandı */
}

.opponent-goal-opacity {
  opacity: 0.5;
}

.details-goal-player {
  font-family: 'Roboto Condensed', 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.details-goal-ball {
  font-size: 0.78rem; /* bir tık küçük */
}

.details-goal-time {
  font-family: 'Roboto Condensed', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-secondary, #fdb913);
}

.details-goal-type {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75); /* %75 opak beyaz */
  font-style: normal;
  margin-left: 0;
  margin-right: 0;
}

/* Sol gol satırı: (P)/(KK) dakikanın sağında → 3px daha sağa */
.col-l-meta .details-goal-type {
  margin-left: 7px;
}

/* Sağ gol satırı: (P)/(KK) dakikanın solunda → 3px daha sola */
.col-r-meta .details-goal-type {
  margin-right: 7px;
}

/* Companion row styles */
.details-companion-row {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}

.details-companion-row:last-child {
  border-bottom: none;
}

.details-companion-icon {
  margin-right: 0;
  opacity: 0.5;
  font-size: 1.1rem;
}

.details-companion-name {
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
}

/* Comment Box style */
.details-comment-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  word-break: break-word;
}

/* Rating Badge */
.rating-badge {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12; /* Default yellow/orange */
  border: 1px solid rgba(243, 156, 18, 0.3);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.72rem;
}

/* Photos Grid & Horizontal Touch Scrolling */
.media-photos-grid,
.collective-photos-grid {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.photo-thumbnail-container {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm, 8px);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(20, 22, 26, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.photo-thumbnail-container:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65), 0 0 12px rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.photo-thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.media-photos-grid::-webkit-scrollbar,
#collective-photos-grid::-webkit-scrollbar {
  height: 4px;
}

.media-photos-grid::-webkit-scrollbar-track,
#collective-photos-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.media-photos-grid::-webkit-scrollbar-thumb,
#collective-photos-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}

.media-photos-grid::-webkit-scrollbar-thumb:hover,
#collective-photos-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.media-action-pill-bar button:hover,
.media-action-pill-bar label:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px);
}

/* Custom Dialog Styles - Alternative B (iOS Premium Matte Style) */
.custom-dialog-card {
  background: #1C1C1E !important;
  border: 1px solid #3A3A3C !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  max-width: 320px !important;
  padding: 24px !important;
  text-align: center !important;
}

.custom-dialog-card h3 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.65rem !important;
  letter-spacing: 1px !important;
  color: var(--text-primary) !important;
  margin: 0 0 12px 0 !important;
}

.custom-dialog-card p {
  font-size: 0.94rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.5 !important;
  margin: 0 0 24px 0 !important;
}

.custom-dialog-card .dialog-actions {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
}

.custom-dialog-card .dialog-actions button {
  flex: 1 !important;
}

.custom-dialog-card .dialog-actions .nav-cta {
  flex: 0 0 auto !important;
}


.custom-dialog-card .btn {
  border-radius: 10px !important;
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 12px !important;
  transition: all 0.2s ease !important;
}

.custom-dialog-card .btn-primary {
  background: linear-gradient(135deg, #F35C33 0%, #F9A900 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

.custom-dialog-card .btn-primary:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
}

.custom-dialog-card .btn-danger {
  background: #2e3038 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: none !important;
}

.custom-dialog-card .btn-danger:hover {
  background: #383a44 !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.custom-dialog-card .btn-warning {
  background: #36342e !important;
  color: #ffca28 !important;
  border: 1px solid rgba(255, 202, 40, 0.35) !important;
  box-shadow: none !important;
}

.custom-dialog-card .btn-warning:hover {
  background: #423f36 !important;
  border-color: rgba(255, 202, 40, 0.5) !important;
}

.custom-dialog-card .btn-outline {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-secondary) !important;
}

.custom-dialog-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}


.dialog-icon-container {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px auto;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
}

.dialog-icon-container svg {
  width: 32px;
  height: 32px;
}

.dialog-icon-container.danger {
  background: rgba(255, 69, 58, 0.15) !important;
  color: #FF453A !important;
  border: 1px solid rgba(255, 69, 58, 0.3) !important;
}

.dialog-icon-container.success {
  background: rgba(48, 209, 88, 0.15) !important;
  color: #30D158 !important;
  border: 1px solid rgba(48, 209, 88, 0.3) !important;
}

.dialog-icon-container.warning {
  background: rgba(255, 159, 10, 0.15) !important;
  color: #FF9F0A !important;
  border: 1px solid rgba(255, 159, 10, 0.3) !important;
}

.dialog-icon-container.info {
  background: rgba(10, 132, 255, 0.15) !important;
  color: #0A84FF !important;
  border: 1px solid rgba(10, 132, 255, 0.3) !important;
}

/* Sayfa İçi Durum / Uyarı Kartları (Inline Warning Card) */
.inline-warning-card {
  background: #1C1C1E !important;
  border: 1px solid #3A3A3C !important;
  border-radius: 14px !important;
  padding: 24px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 12px !important;
  max-width: 340px !important;
  margin: 20px auto !important;
  box-sizing: border-box !important;
}

.inline-warning-card h3 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.52rem !important;
  letter-spacing: 0.8px !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
}

.inline-warning-card p {
  font-size: 0.985rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  opacity: 0.85 !important;
}

.inline-warning-card .warning-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
}

.inline-warning-card .warning-icon-wrapper.info {
  background: rgba(10, 132, 255, 0.15) !important;
  color: #0A84FF !important;
  border: 1px solid rgba(10, 132, 255, 0.3) !important;
}

.inline-warning-card .warning-icon-wrapper.warning {
  background: rgba(255, 159, 10, 0.15) !important;
  color: #FF9F0A !important;
  border: 1px solid rgba(255, 159, 10, 0.3) !important;
}

.inline-warning-card .warning-icon-wrapper.danger {
  background: rgba(255, 69, 58, 0.15) !important;
  color: #FF453A !important;
  border: 1px solid rgba(255, 69, 58, 0.3) !important;
}


/* Header Bulk Add Button Premium Green style */
#btn-header-bulk-add {
  min-width: 96px;
  width: auto;
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(135deg, 
    rgba(30, 204, 120, 0.12), 
    rgba(46, 204, 113, 0.15)
  );
  border: 1px solid rgba(46, 204, 113, 0.45);
  border-radius: 17px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

#btn-header-bulk-add span {
  background: linear-gradient(45deg, #38ef7d, #11998e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  white-space: pre;
}

#btn-header-bulk-add:hover {
  background: linear-gradient(135deg, 
    rgba(30, 204, 120, 0.22), 
    rgba(46, 204, 113, 0.25)
  );
  border-color: rgba(46, 204, 113, 0.65);
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.25);
  transform: translateY(-1px);
}

#btn-header-bulk-add:active {
  transform: translateY(1px);
}

/* Header Toggle Manual Mode Button Premium style */
#btn-header-toggle-manual {
  width: 85px;
  height: 34px;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--brand-primary) 12%, transparent), 
    color-mix(in srgb, var(--brand-secondary) 15%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--brand-secondary) 35%, transparent);
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

#btn-header-toggle-manual span {
  background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

#btn-header-toggle-manual:hover {
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--brand-primary) 22%, transparent), 
    color-mix(in srgb, var(--brand-secondary) 25%, transparent)
  );
  border-color: color-mix(in srgb, var(--brand-secondary) 55%, transparent);
  box-shadow: 0 0 15px color-mix(in srgb, var(--brand-secondary) 15%, transparent);
  transform: translateY(-1px);
}

#btn-header-toggle-manual:active {
  transform: translateY(1px);
}

/* Search Match Input & Season Select/Input Premium Styling */
#search-match-input,
#search-season-select,
#search-season-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  height: 40px;
}

#search-match-input:focus,
#search-season-select:focus,
#search-season-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  outline: none;
}

/* Header Save Button Premium Green style */
#btn-header-save {
  width: 85px;
  height: 34px;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
  border-radius: 17px;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.1);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

#btn-header-save:hover {
  background: rgba(46, 204, 113, 0.25);
  border-color: rgba(46, 204, 113, 0.6);
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
  transform: translateY(-1px);
}

#btn-header-save:active {
  transform: translateY(1px);
}

/* Form row inline override for side-by-side elements on mobile */
.form-row-inline {
  flex-direction: row !important;
  gap: 8px !important;
}

/* Flatpickr input styling to match search input */
.flatpickr-input,
input.flatpickr-input[type="text"],
input.flatpickr-input[readonly] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  padding: 10px !important;
  border-radius: var(--border-radius-sm) !important;
  font-family: var(--font-primary) !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
}

.flatpickr-input:focus,
input.flatpickr-input[type="text"]:focus,
input.flatpickr-input[readonly]:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

/* Faint styling for select placeholders when no option is selected */
.glass-form select:invalid,
.glass-form select:has(option[value=""]:checked) {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* Ensure active options themselves are solid white and legible */
.glass-form select option {
  color: var(--text-primary) !important;
  background: var(--bg-secondary) !important;
}

/* Match form inputs and selects to search input styling */
.glass-form input[type="text"],
.glass-form input[type="email"],
.glass-form input[type="password"],
.glass-form input[type="date"],
.glass-form input[type="number"],
.glass-form select,
.glass-form textarea {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-family: var(--font-primary) !important;
  transition: all 0.3s ease !important;
}

/* Premium input focus state */
.glass-form input[type="text"]:focus,
.glass-form input[type="email"]:focus,
.glass-form input[type="password"]:focus,
.glass-form input[type="date"]:focus,
.glass-form input[type="number"]:focus,
.glass-form select:focus,
.glass-form textarea:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

/* Manual Input Wrapper with restore button */
.manual-input-wrapper {
  position: relative;
  width: 100%;
}

.manual-input-wrapper input {
  padding-right: 32px !important;
}

.btn-restore-select {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

/* =========================================
   PREMIUM FILTER SYSTEM STYLES (v3.7.0)
   ========================================= */

.btn-filter {
  background: linear-gradient(135deg, #4b525a 0%, #282d32 100%) !important;
  color: var(--text-primary, #ffffff) !important;
  width: 35px !important;
  height: 35px !important;
  min-width: 35px !important;
  min-height: 35px !important;
  max-width: 35px !important;
  max-height: 35px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  border-radius: 9px !important;
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(75, 82, 90, 0.25) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-filter svg {
  width: 22px !important;
  height: 22px !important;
}

.btn-filter:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(75, 82, 90, 0.4) !important;
}

.btn-filter:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 8px rgba(75, 82, 90, 0.15) !important;
}

/* Active filter state: gradient background and glow */
.btn-filter.active-filter {
  background: linear-gradient(135deg, var(--brand-primary, #E8172B) 0%, var(--brand-secondary, #F9A900) 100%) !important;
  border: none !important;
  border-radius: 9px !important;
  box-shadow: 0 4px 12px rgba(232, 23, 43, 0.35) !important;
}

/* Filter active notification dot glow animate */
.filter-active-indicator {
  animation: pulse-dot 2s infinite alternate;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); box-shadow: 0 0 4px #2ecc71; }
  100% { transform: scale(1.1); box-shadow: 0 0 8px #2ecc71; }
}

/* Filter Row Category Tiles */
.filter-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px !important;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-sm, 8px);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
  min-height: 68px;
  min-width: 0;
}

.filter-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.filter-row-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.filter-row-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.filter-row-selected-text {
  font-size: 0.8rem;
  color: var(--text-secondary, #aaaaaa);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

/* Highlight row if it has active filters */
.filter-row.active-row {
  border-color: rgba(46, 204, 113, 0.45) !important;
  background: linear-gradient(135deg, 
    rgba(30, 204, 120, 0.05), 
    rgba(46, 204, 113, 0.07)
  ) !important;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.25);
}

.filter-row.active-row .filter-row-selected-text {
  color: #2ecc71 !important;
  font-weight: 600;
}

.filter-row.active-row .filter-row-arrow {
  color: rgba(46, 204, 113, 0.8) !important;
}

.filter-row.active-row:hover .filter-row-arrow {
  color: #2ecc71 !important;
}

.filter-row-arrow {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.filter-row:hover .filter-row-arrow {
  color: var(--brand-secondary, #F9A900);
}

/* Option Items (Checkboxes list) */
.filter-option-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm, 8px);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
}

.filter-option-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.filter-option-item.selected {
  border-color: rgba(46, 204, 113, 0.45) !important;
  background: linear-gradient(135deg, 
    rgba(30, 204, 120, 0.05), 
    rgba(46, 204, 113, 0.07)
  ) !important;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.25);
}

.filter-checkbox-custom {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.filter-option-item.selected .filter-checkbox-custom {
  background-color: rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(46, 204, 113, 0.85) !important;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.35);
}

.filter-checkbox-custom::after {
  content: "✓";
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-option-item.selected .filter-checkbox-custom::after {
  content: "✓";
  background: linear-gradient(45deg, #38ef7d, #11998e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 12px;
  font-weight: 800;
  display: inline-block;
  opacity: 1;
  transform: scale(1);
}

.filter-option-label {
  font-size: 0.9rem;
  color: var(--text-primary, #ffffff);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
}

.filter-option-count {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 0.5px;
}

.filter-option-item.selected .filter-option-count {
  background: rgba(46, 204, 113, 0.18) !important;
  color: #2ecc71 !important;
}

/* Empty filter state design */
.empty-filter-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3rem 2rem !important;
  text-align: center !important;
  width: 100% !important;
  background: #1C1C1E !important;
  border: 1px solid #3A3A3C !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
  max-width: 340px !important;
  margin: 20px auto !important;
  box-sizing: border-box !important;
}

.empty-filter-icon {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.95 !important;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.empty-filter-state h3 {
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  margin-bottom: var(--spacing-sm) !important;
  color: var(--text-primary) !important;
}

.empty-filter-state p {
  color: var(--text-secondary) !important;
  font-size: 0.92rem !important;
  max-width: 320px !important;
  margin-bottom: var(--spacing-lg) !important;
  line-height: 1.5 !important;
  opacity: 0.85 !important;
}

.filter-modal-header,
.filter-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px var(--spacing-lg) 14px var(--spacing-lg) !important;
  position: relative;
  min-height: 74px;
}

.modal-header-center {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: auto;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

@media (max-width: 480px) {
  #filter-modal-overlay, #filter-detail-modal-overlay, #settings-modal-overlay {
    align-items: stretch;
  }
  
  #filter-modal-overlay .filter-modal,
  #filter-detail-modal-overlay .filter-detail-modal,
  #settings-modal-overlay .settings-modal {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    max-height: -webkit-fill-available !important;
    border-radius: 0 !important;
    margin: 0;
    border: none !important;
    box-shadow: none !important;
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  #filter-modal-overlay.active .filter-modal,
  #filter-detail-modal-overlay.active .filter-detail-modal,
  #settings-modal-overlay.active .settings-modal {
    transform: scale(1);
  }
  
  #filter-modal-overlay .filter-modal-header,
  #filter-detail-modal-overlay .filter-detail-header,
  #settings-modal-overlay .settings-modal-header {
    padding: calc(14px + env(safe-area-inset-top)) var(--spacing-lg) 14px var(--spacing-lg) !important;
    align-items: start !important;
  }
  
  #filter-modal-overlay .filter-modal-scroll,
  #filter-detail-modal-overlay .filter-detail-scroll,
  #settings-modal-overlay .settings-modal-scroll {
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
  }
  
  .modal-header-center {
    top: calc(14px + env(safe-area-inset-top)) !important;
  }
}

/* Filter Modal Clear All Button Style (Resim-5 Style Glassmorphism) */
.btn-filter-clear {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  border-radius: 19px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
  margin-left: 5px;
  box-shadow: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              border-color 0.2s ease !important;
  outline: none;
}

.btn-filter-clear:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: scale(1.03);
}

.btn-filter-clear:active {
  transform: scale(0.97);
}

/* ==========================================================================
   PREMIUM CIRCULAR & PILL BUTTON SYSTEM (Resim-5 Style) - v3.7.23
   ========================================================================== */

/* Universal Circular Header Button Style */
.hdr-btn-circular {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.63) !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  line-height: 1 !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.2s ease, 
              border-color 0.2s ease, 
              box-shadow 0.2s ease !important;
}

.hdr-btn-circular:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
}

.hdr-btn-circular:active {
  color: #ffffff !important;
  transform: scale(0.95) !important;
}

.hdr-btn-circular svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2.5 !important;
}

/* Green Theme (Sync, Apply, Checkmarks) */
.hdr-btn-circular.btn-theme-green {
  color: #2ecc71 !important;
  background: rgba(46, 204, 113, 0.06) !important;
  border-color: rgba(46, 204, 113, 0.35) !important;
}

.hdr-btn-circular.btn-theme-green:hover {
  background: rgba(46, 204, 113, 0.15) !important;
  border-color: rgba(46, 204, 113, 0.6) !important;
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.25) !important;
}

/* Red/Orange Theme (Add, Delete) */
.hdr-btn-circular.btn-theme-red {
  color: var(--brand-primary, #E8172B) !important;
  background: rgba(232, 23, 43, 0.06) !important;
  border-color: rgba(232, 23, 43, 0.35) !important;
}

.hdr-btn-circular.btn-theme-red:hover {
  background: rgba(232, 23, 43, 0.15) !important;
  border-color: rgba(232, 23, 43, 0.6) !important;
  box-shadow: 0 0 12px rgba(232, 23, 43, 0.25) !important;
}

/* Yellow Theme (Edit) */
.hdr-btn-circular.btn-theme-yellow {
  color: var(--brand-secondary, #fdb913) !important;
  background: rgba(253, 185, 19, 0.06) !important;
  border-color: rgba(253, 185, 19, 0.35) !important;
}

.hdr-btn-circular.btn-theme-yellow:hover {
  background: rgba(253, 185, 19, 0.15) !important;
  border-color: rgba(253, 185, 19, 0.6) !important;
  box-shadow: 0 0 12px rgba(253, 185, 19, 0.25) !important;
}

/* Gray/White Theme (Close buttons, Inactive Filter) */
.hdr-btn-circular.btn-theme-gray {
  color: rgba(255, 255, 255, 0.63) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.hdr-btn-circular.btn-theme-gray:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Active Filter Button specific style (Circular, themed border and inner glow breathing) */
.hdr-btn-circular.btn-filter.active-filter {
  color: #2ecc71 !important;
  background: rgba(46, 204, 113, 0.06) !important;
  border: 1.5px solid transparent !important;
  border-radius: 50% !important;
  position: relative !important;
  overflow: visible !important;
  box-shadow: none !important;
}

/* Animated border ring — ::before ile border rengini animasyona sokuyoruz */
.hdr-btn-circular.btn-filter.active-filter::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 10;
  animation: filter-border-breathe 6s ease-in-out infinite;
}

/* Inner Glow Breathing — butonun içinden parlayıp sönen yeşil aura */
.hdr-btn-circular.btn-filter.active-filter::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.80) 0%, rgba(46, 204, 113, 0.35) 45%, transparent 70%);
  pointer-events: none;
  animation: filter-inner-glow 6s ease-in-out infinite;
}

@keyframes filter-inner-glow {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes filter-border-breathe {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
  }
  50% {
    border-color: #2ecc71;
    box-shadow: 0 0 8px #2ecc71, 0 0 20px rgba(46, 204, 113, 0.65), 0 0 35px rgba(46, 204, 113, 0.30);
  }
}

/* Header Text Buttons (Kaydet, Manuel, Ekle) Pill shape matching 38px height */
#btn-header-save,
#btn-header-toggle-manual,
#btn-header-bulk-add {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  border-radius: 19px !important;
  box-sizing: border-box !important;
}

/* Override existing classes to inherit new circular properties */
.btn-sync-green {
  /* resets */
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.btn-filter {
  /* resets */
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.btn-add-gradient {
  /* resets */
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Details modal close & action buttons refactoring */
#match-details-modal-overlay .modal-close {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
}
.details-action-btn {
  /* inherit */
  border-radius: 50% !important;
}

/* =========================================
   BUTTON COLOR OVERRIDES (v3.7.34)
   - "+" Add button: Amber/Orange theme, white icon
   - Filter button: Explicit white icon
   - "x" Close buttons: Cherry-red (kırmızı-vişne) theme
   ========================================= */

/* Add Match "+" button — Sarı-Turuncu (Amber) theme, beyaz ikon */
#btn-add-match.hdr-btn-circular {
  color: #FF8C00 !important;
  background: rgba(255, 140, 0, 0.12) !important;
  border-color: rgba(255, 140, 0, 0.50) !important;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.20) !important;
}

#btn-add-match.hdr-btn-circular:hover {
  background: rgba(255, 140, 0, 0.22) !important;
  border-color: rgba(255, 140, 0, 0.75) !important;
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.35) !important;
}

#btn-add-match.hdr-btn-circular:active {
  transform: scale(0.95) !important;
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.15) !important;
}



/* Filter button — white icon + visible white border ring (ID selector overrides .btn-filter reset) */
#btn-settings.hdr-btn-circular,
#btn-filter-match.hdr-btn-circular {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
}

#btn-settings.hdr-btn-circular:hover,
#btn-filter-match.hdr-btn-circular:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.60) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15) !important;
}

/* Red Close buttons — matches details delete/trash button color */
.modal-close.hdr-btn-circular,
.modal-close.hdr-btn-circular.btn-theme-gray {
  color: #E8172B !important;
  background: rgba(232, 23, 43, 0.08) !important;
  border-color: rgba(232, 23, 43, 0.40) !important;
}

.modal-close.hdr-btn-circular:hover,
.modal-close.hdr-btn-circular.btn-theme-gray:hover {
  background: rgba(232, 23, 43, 0.18) !important;
  border-color: rgba(232, 23, 43, 0.65) !important;
  box-shadow: 0 0 12px rgba(232, 23, 43, 0.30) !important;
}

/* Ensure check marks in filters have the correct thickness (3.5) and size (17px) */
#btn-filter-apply svg,
#btn-filter-detail-submit svg {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 3.5 !important;
}

.modal-close.hdr-btn-circular svg,
.modal-close.hdr-btn-circular svg * {
  stroke-width: 2.5 !important;
}

/* =========================================
   Empty State — Pill Add Button (Manuel ile aynı görünüm)
========================================= */
.btn-empty-add-pill {
  width: auto;
  min-width: 140px;
  height: auto;
  min-height: 34px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-primary) 12%, transparent),
    color-mix(in srgb, var(--brand-secondary) 15%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--brand-secondary) 35%, transparent);
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
  margin-top: 4px;
  user-select: none;
  line-height: 1.25;
  text-align: center;
}

.btn-empty-add-pill span {
  background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  text-align: center;
  line-height: 1.2;
}

.btn-empty-add-pill:hover {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-primary) 22%, transparent),
    color-mix(in srgb, var(--brand-secondary) 25%, transparent)
  );
  border-color: color-mix(in srgb, var(--brand-secondary) 55%, transparent);
  box-shadow: 0 0 15px color-mix(in srgb, var(--brand-secondary) 15%, transparent);
  transform: translateY(-1px);
}

.btn-empty-add-pill:active {
  transform: translateY(1px);
}

/* =========================================
   Settings Modal — Inline Change Team Pill
========================================= */
.btn-settings-change-team-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  height: 32px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-secondary, #F9A900) 35%, transparent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-primary, #E8172B) 10%, transparent),
    color-mix(in srgb, var(--brand-secondary, #F9A900) 12%, transparent)
  );
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.btn-settings-change-team-pill:hover {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-primary, #E8172B) 20%, transparent),
    color-mix(in srgb, var(--brand-secondary, #F9A900) 22%, transparent)
  );
  border-color: color-mix(in srgb, var(--brand-secondary, #F9A900) 60%, transparent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px color-mix(in srgb, var(--brand-secondary, #F9A900) 15%, transparent);
}

.btn-settings-change-team-pill:active {
  transform: translateY(1px);
}

.btn-settings-change-team-pill svg {
  opacity: 0.85;
  flex-shrink: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Onboarding Dropdown & Inputs Styling */
#onboarding-team-select {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: var(--border-radius-sm) !important;
  padding: 12px 16px !important;
  font-family: var(--font-primary) !important;
  font-size: 1rem !important;
  width: 100% !important;
  height: 50px !important;
  outline: none !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

#onboarding-team-select:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1) !important;
}

#onboarding-manual-team-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: var(--border-radius-sm) !important;
  padding: 12px 40px 12px 16px !important;
  font-family: var(--font-primary) !important;
  font-size: 1rem !important;
  width: 100% !important;
  height: 50px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
}

#onboarding-manual-team-input:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1) !important;
}

#btn-onboarding-submit {
  height: 50px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

.loader-spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Premium Chasing Neon Border Loader */
.btn-loading {
  position: relative !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.btn-loading::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: #2ecc71; /* Neon yeşil çekirdek */
  border-radius: 50%;
  box-shadow: 0 0 6px #2ecc71, 0 0 12px #2ecc71, 0 0 16px #2ecc71; /* Neon yeşil parlama */
  animation: travel-around 2s linear infinite;
  z-index: 3; /* Çerçevenin en üstünde durması için */
}

@keyframes travel-around {
  0% { top: -2.5px; left: 16.5px; }
  25% { top: -2.5px; left: calc(100% - 21.5px); }
  31.25% { top: 3.1px; left: calc(100% - 8.1px); }
  37.5% { top: 16.5px; left: calc(100% - 2.5px); }
  43.75% { top: 29.9px; left: calc(100% - 8.1px); }
  50% { top: 35.5px; left: calc(100% - 21.5px); }
  75% { top: 35.5px; left: 16.5px; }
  81.25% { top: 29.9px; left: 3.1px; }
  87.5% { top: 16.5px; left: -2.5px; }
  93.75% { top: 3.1px; left: 3.1px; }
  100% { top: -2.5px; left: 16.5px; }
}

/* ==========================================================================
   Goal Minute Picker Bottom Sheet Style (v5.4.0)
   ========================================================================== */
.bottom-sheet-overlay {
  align-items: flex-end !important;
  justify-content: center !important;
}

.bottom-sheet-modal {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 95vh;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 12px)) 16px;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-overlay.active .bottom-sheet-modal {
  transform: translateY(0);
}

.bottom-sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 2px auto;
  flex-shrink: 0;
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.bottom-sheet-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.5px;
}

.bottom-sheet-manual-input {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.bottom-sheet-manual-input input {
  flex: 1;
  height: 46px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  color: #fff;
  padding: 0 14px;
  font-family: var(--font-primary);
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, background-color 0.2s;
}

.bottom-sheet-manual-input input:focus {
  border-color: var(--brand-primary, #f39c12);
  background: rgba(255, 255, 255, 0.1);
}

.bottom-sheet-manual-input button {
  height: 46px;
  padding: 0 20px !important;
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
}

.bottom-sheet-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.bottom-sheet-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

.bottom-sheet-tabs .tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

.bottom-sheet-tabs .tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.bottom-sheet-manual-input {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.bottom-sheet-manual-input input {
  flex: 1;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  color: #fff;
  padding: 0 12px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, background-color 0.2s;
}

.bottom-sheet-manual-input input:focus {
  border-color: var(--brand-primary, #f39c12);
  background: rgba(255, 255, 255, 0.1);
}

.bottom-sheet-manual-input button {
  height: 36px;
  padding: 0 18px !important;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
  border-radius: 18px;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.1);
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.bottom-sheet-manual-input button:hover {
  background: rgba(46, 204, 113, 0.25);
  border-color: rgba(46, 204, 113, 0.6);
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
  transform: translateY(-1px);
}
  background: #2ecc71; /* Neon yeşil çekirdek */
  border-radius: 50%;
  box-shadow: 0 0 6px #2ecc71, 0 0 12px #2ecc71, 0 0 16px #2ecc71; /* Neon yeşil parlama */
  animation: travel-around 2s linear infinite;
  z-index: 3; /* Çerçevenin en üstünde durması için */
}

@keyframes travel-around {
  0% { top: -2.5px; left: 16.5px; }
  25% { top: -2.5px; left: calc(100% - 21.5px); }
  31.25% { top: 3.1px; left: calc(100% - 8.1px); }
  37.5% { top: 16.5px; left: calc(100% - 2.5px); }
  43.75% { top: 29.9px; left: calc(100% - 8.1px); }
  50% { top: 35.5px; left: calc(100% - 21.5px); }
  75% { top: 35.5px; left: 16.5px; }
  81.25% { top: 29.9px; left: 3.1px; }
  87.5% { top: 16.5px; left: -2.5px; }
  93.75% { top: 3.1px; left: 3.1px; }
  100% { top: -2.5px; left: 16.5px; }
}

/* ==========================================================================
   Goal Minute Picker Bottom Sheet Style (v5.4.0)
   ========================================================================== */
.bottom-sheet-overlay {
  align-items: flex-end !important;
  justify-content: center !important;
}

.bottom-sheet-modal {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 95vh;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 12px)) 16px;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-overlay.active .bottom-sheet-modal {
  transform: translateY(0);
}

.bottom-sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 2px auto;
  flex-shrink: 0;
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.bottom-sheet-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bottom-sheet-manual-input {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.bottom-sheet-manual-input input {
  flex: 1;
  height: 46px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  color: #fff;
  padding: 0 14px;
  font-family: var(--font-primary);
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, background-color 0.2s;
}

.bottom-sheet-manual-input input:focus {
  border-color: var(--brand-primary, #f39c12);
  background: rgba(255, 255, 255, 0.1);
}

.bottom-sheet-manual-input button {
  height: 46px;
  padding: 0 20px !important;
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
}

.bottom-sheet-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.bottom-sheet-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

.bottom-sheet-tabs .tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

.bottom-sheet-tabs .tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.bottom-sheet-manual-input {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  justify-content: center;
}

.bottom-sheet-manual-input input {
  flex: none !important;
  width: 55px;
  flex-shrink: 0;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  color: #fff;
  padding: 0 4px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
}

.bottom-sheet-manual-input input::placeholder {
  font-size: 0.72rem;
  opacity: 0.55;
}

.bottom-sheet-manual-input input:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.bottom-sheet-manual-input button {
  height: 36px;
  padding: 0 12px !important;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
  border-radius: 18px;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.1);
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bottom-sheet-manual-input button:hover {
  background: rgba(46, 204, 113, 0.25);
  border-color: rgba(46, 204, 113, 0.6);
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
  transform: translateY(-1px);
}

.bottom-sheet-manual-input button:active {
  transform: translateY(1px);
}

/* Izgara Tabanlı Gol Dakikası Seçici (Grid Goal Picker) v5.8.2 */
.new-minute-picker-modal {
  --picker-sidebar-width: 135px;
  display: flex;
  flex-direction: column;
  background: rgba(18, 18, 18, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  padding: 16px 20px 24px 20px !important;
}

.picker-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.picker-title-label {
  width: var(--picker-sidebar-width);
  flex-shrink: 0;
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 700;
  font-size: 1.55rem;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-align: center;
  box-sizing: border-box;
}

.picker-header-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  align-items: center;
  box-sizing: border-box;
}

.custom-dialog-card {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 25px;
    width: 90%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    position: relative;
}

.custom-dialog-card .btn-dialog-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    cursor: pointer;
    padding: 0;
}

.custom-dialog-card .btn-dialog-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: scale(1.1);
}

.picker-input-wrapper {
  grid-column: 1 / 3;
  position: relative;
  width: 100%;
}

#picker-manual-minute {
  width: 100%;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  padding: 0 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, background-color 0.2s;
  text-align: center;
}

#picker-manual-minute:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.picker-warning-text {
  position: absolute;
  bottom: -16px;
  left: 2px;
  font-size: 0.68rem;
  color: #ff4d4d;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.picker-header-actions {
  grid-column: 3 / 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.picker-body {
  display: flex;
  gap: 16px;
  width: 100%;
}

.picker-sidebar {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 6px;
  width: var(--picker-sidebar-width);
  height: 246px; /* 6 satır x 36px + 5 boşluk x 6px */
  flex-shrink: 0;
  box-sizing: border-box;
}

#btn-picker-normal {
  grid-row: span 2;
}

#btn-picker-extra {
  grid-row: span 2;
}

.picker-modifier-row {
  grid-row: span 1;
  display: flex;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.picker-sidebar-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #b3b3b3);
  padding: 4px 6px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  text-align: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.picker-sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.picker-sidebar-btn.active {
  border-color: var(--brand-secondary, #fdb913) !important;
  background: rgba(253, 185, 19, 0.1) !important;
  color: #ffffff !important;
}

.picker-sidebar-btn .btn-subtitle {
  font-size: 0.72rem;
  opacity: 0.6;
  font-weight: 500;
  margin-top: 5px;
}

.picker-grid-container {
  flex: 1;
  height: 248px !important; /* 6 satır x 36px + 5 boşluk x 6px + 2px border toleransi */
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0; /* Kenarlara tam yaslanması için sıfırlandı */
  box-sizing: border-box;
  scroll-snap-type: y mandatory;
}

/* Custom Scrollbar */
.picker-grid-container::-webkit-scrollbar {
  width: 5px;
}

.picker-grid-container::-webkit-scrollbar-track {
  background: transparent;
}

.picker-grid-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.picker-grid-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.picker-grid-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6); /* Default %60 opacity white */
  height: 36px; /* Sabit 36px yükseklik */
  line-height: 36px;
  padding: 0;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  outline: none;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.picker-grid-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff; /* Goes back to %100 white on hover */
}

.picker-grid-btn.selected {
  border-color: var(--brand-secondary, #fdb913) !important;
  background: rgba(253, 185, 19, 0.1) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 0 8px rgba(253, 185, 19, 0.3) !important;
}

@media (max-width: 480px) {
  .new-minute-picker-modal {
    --picker-sidebar-width: 115px;
  }
  .picker-title-label {
    font-size: 1.35rem;
  }
}

.hdr-btn-circular:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* =========================================
   WELCOME COACHMARK MODAL OVERLAY (Option 2 Centered)
========================================= */
.welcome-coachmark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.10) !important; /* 10% dark overlay shadow background */
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.welcome-coachmark-modal {
  padding: 14px 18px; /* Tighter padding for a more compact alert */
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important; /* Semi-transparent white border for clean outline */
  background: rgba(249, 169, 0, 0.50) !important; /* Frosted brand-yellow background (50% opaque) */
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 50px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 255px; /* Shrunk width to make it compact */
  box-sizing: border-box;
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px; /* Gap between content wrapper and button */
  text-align: center;
  pointer-events: auto;
}

.welcome-coachmark-overlay.fade-out {
  opacity: 0 !important;
  pointer-events: none;
}

.welcome-coachmark-overlay.fade-out .welcome-coachmark-modal {
  transform: scale(0.9) !important;
  opacity: 0 !important;
}

.welcome-modal-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Balance spacing between title lines and description */
  align-items: center;
  width: 100%;
}

.welcome-modal-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.welcome-title-sub,
.welcome-title-highlight {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  text-align: center;
  color: #000000 !important; /* High contrast pure black */
}

.welcome-title-highlight {
  font-size: 1.15rem; /* Make HOŞ GELDİNİZ!, BEM-VINDO! or WELCOME! slightly larger */
  letter-spacing: 0.3px;
}

.welcome-modal-desc {
  color: #000000 !important; /* High contrast pure black */
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem; /* Increased by 1px more for enhanced readability */
  font-weight: 700; /* Bolder for high legibility on transparent background */
  line-height: 1.3;
  margin: 0;
  text-align: center;
}

.btn-welcome-modal-dismiss {
  padding: 8px 20px !important; /* Compact button */
  font-size: 16px !important; /* Custom font size */
  border: none !important; /* Remove border for a clean solid look */
  color: var(--brand-secondary, #F9A900) !important; /* Brand yellow text */
  background: #141517 !important; /* Solid dark/black background for high contrast */
  border-radius: 8px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
}

.btn-welcome-modal-dismiss:hover {
  background: #282A30 !important; /* Slightly lighter on hover */
  color: #ffffff !important; /* White text on hover */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Warning Message and Clickable Highlights in Add Match Modal */
.search-warning-text {
  color: rgba(255, 255, 255, 0.45) !important; /* 50% opacity text color */
  font-size: 0.92rem;
  line-height: 1.6;
}

.highlight-season {
  color: #ffffff !important; /* Matches select box text color */
  cursor: pointer !important;
  opacity: 1 !important;
}

.highlight-manual {
  background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary)) !important; /* Matches manual button gradient */
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  display: inline-block;
  cursor: pointer !important;
  opacity: 1 !important;
}

/* =========================================
   Redesigned Settings Modal (v6.9.0)
========================================= */
.settings-modal {
  max-width: 400px !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 96vh;
  position: relative;
  border: 1px solid var(--border-color) !important;
  background: rgba(12, 12, 12, 0.85) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--border-radius-lg) !important;
}

.settings-modal-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

/* Logout Pill Button — sıfırdan tanımlanmış, hdr-btn-circular çakışması yok */
.hdr-btn-logout-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  width: auto;
  border-radius: 20px;
  padding: 0 14px 0 10px;
  background: rgba(232, 23, 43, 0.06);
  border: 2px solid rgba(232, 23, 43, 0.7);
  color: var(--brand-primary, #E8172B);
  cursor: pointer;
  box-sizing: border-box;
  flex-shrink: 0;
  justify-self: start;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hdr-btn-logout-pill:hover {
  background: rgba(232, 23, 43, 0.15);
  border-color: rgba(232, 23, 43, 0.6);
  box-shadow: 0 0 12px rgba(232, 23, 43, 0.25);
  transform: scale(1.03);
}

.hdr-btn-logout-pill:active {
  transform: scale(0.97);
}

.hdr-btn-logout-pill svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hdr-btn-logout-pill .logout-btn-label {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
}

.settings-modal-header-center {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.settings-modal-header-right {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

.settings-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 24px 24px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-card {
  width: 100%;
  padding: 14px 16px;
  background: #1C1C1E !important;
  border: 1px solid #3A3A3C !important;
  border-radius: 14px !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.settings-card:hover {
  background: rgba(44, 44, 46, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.settings-card-row {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-card-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.settings-card-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.settings-card-value.highlight-value {
  color: var(--brand-secondary, #F9A900);
  font-weight: 700;
}

.lang-toggle-group {
  display: flex;
  gap: 6px;
}

.btn-lang-toggle {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-lang-toggle.active {
  border-color: var(--brand-secondary, #F9A900) !important;
  background: color-mix(in srgb, var(--brand-secondary, #F9A900) 15%, transparent) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--brand-secondary, #F9A900) 15%, transparent);
}

.settings-version-display {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.85;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-settings-logout {
  width: 100%;
  height: 44px;
  border-radius: var(--border-radius-sm);
  background: rgba(232, 23, 43, 0.12);
  border: 1px solid rgba(232, 23, 43, 0.45);
  color: var(--brand-primary, #E8172B);
  font-family: var(--font-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
}

.btn-settings-logout:hover {
  background: rgba(232, 23, 43, 0.22);
  border-color: rgba(232, 23, 43, 0.75);
  box-shadow: 0 0 15px rgba(232, 23, 43, 0.2);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-settings-logout:active {
  transform: translateY(1px);
}

/* Settings Card Icon Containers */
.settings-icon-container {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-secondary, #F9A900);
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.settings-card:hover .settings-icon-container {
  background: color-mix(in srgb, var(--brand-secondary, #F9A900) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand-secondary, #F9A900) 30%, transparent);
  color: #ffffff;
  box-shadow: 0 0 8px color-mix(in srgb, var(--brand-secondary, #F9A900) 15%, transparent);
}

/* Auth Views & Email Form Styles */
.auth-view {
  display: none;
}
.auth-view.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.auth-form-group label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.auth-form-group input {
  width: 100%;
  box-sizing: border-box;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-top: 4px;
}
.auth-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.auth-links a:hover {
  color: var(--brand-secondary, #fdb913);
}
.btn-text-back {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.82rem !important;
  padding: 6px 12px !important;
  border: none !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}
.btn-text-back:hover {
  color: #ffffff !important;
}

.auth-input-wrapper {
  position: relative;
  width: 100%;
}
.auth-input-wrapper input {
  padding-right: 40px !important;
}
.btn-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.4) !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s ease !important;
  width: 24px !important;
  height: 24px !important;
  z-index: 10 !important;
}
.btn-toggle-password:hover {
  color: #ffffff !important;
}
.btn-toggle-password svg {
  width: 18px !important;
  height: 18px !important;
  pointer-events: none !important;
}

/* =========================================
   Animated Subconscious Logo (Match-ManIAc)
========================================= */
.logo-wrapper {
  position: relative;
  display: inline-block;
  background-color: #0c0c0c; /* Matches app-header background */
}

.logo-sliding {
  font-size: inherit; /* Inherit font size from .app-logo */
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: default;
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: #ffffff; 
  margin: 0;
  --logo-letter-spacing: 0.03em;
  --logo-matchia-spacing: 0.08em;
}

.gradient-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, var(--brand-primary), var(--brand-secondary));
  mix-blend-mode: multiply;
  pointer-events: none; 
}

.logo-sliding span {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: baseline;
  margin-right: var(--logo-letter-spacing);
}

.logo-sliding span:last-child {
  margin-right: 0;
}

@keyframes animAtchOpacity {
  /* 0s-4s   : MATCH-MANIAC tam görünür (statik) */
  0%, 10.256%      { max-width: var(--logo-max-width); opacity: 1; margin-right: var(--logo-letter-spacing); animation-timing-function: linear; }
  /* 4s-6s   : opacity 1→0 (2s fade out) */
  15.385%          { max-width: var(--logo-max-width); opacity: 0; margin-right: var(--logo-letter-spacing); animation-timing-function: ease-in-out; }
  /* 6s-8s   : max-width collapse (2s collapse) */
  20.513%, 43.590% { max-width: 0px;   opacity: 0; margin-right: 0px; animation-timing-function: ease-in-out; }
  /* 17s-19s : max-width expand (2s expand) */
  48.718%          { max-width: var(--logo-max-width); opacity: 0; margin-right: var(--logo-letter-spacing); animation-timing-function: linear; }
  /* 19s-21s : opacity 0→1 (2s fade in); 21s-23s: statik */
  53.846%, 58.974% { max-width: var(--logo-max-width); opacity: 1; margin-right: var(--logo-letter-spacing); animation-timing-function: linear; }
  /* 23s-25s : geçiş (MATCHIA'ya doğru margin genişlemesi) */
  64.103%, 87.179% { max-width: var(--logo-max-width); opacity: 1; margin-right: var(--logo-matchia-spacing); animation-timing-function: linear; }
  /* 34s-37s : genişleme bittikten sonra eski haline dönüş */
  94.872%, 100%    { max-width: var(--logo-max-width); opacity: 1; margin-right: var(--logo-letter-spacing); }
}

@keyframes animMManiacPartsOpacity {
  /* 0s-21s  : -MAN ve C tam görünür (MATCH-MANIAC + M-MANIAC + dönüş fazları) */
  0%, 53.846%      { max-width: var(--logo-max-width); opacity: 1; margin-right: var(--logo-letter-spacing); animation-timing-function: linear; }
  /* 21s-23s : opacity 1→0 (2s fade out, hemen/bekleme yok!) */
  58.974%          { max-width: var(--logo-max-width); opacity: 0; margin-right: var(--logo-letter-spacing); animation-timing-function: ease-in-out; }
  /* 23s-25s : max-width collapse (2s collapse) */
  64.103%, 87.179% { max-width: 0px;  opacity: 0; margin-right: 0px; animation-timing-function: ease-in-out; }
  /* 34s-37s : max-width expand (3s aheste genişleme) */
  94.872%          { max-width: var(--logo-max-width); opacity: 0; margin-right: var(--logo-letter-spacing); animation-timing-function: linear; }
  /* 37s-39s : opacity 0→1 (2s fade in) */
  100%             { max-width: var(--logo-max-width); opacity: 1; margin-right: var(--logo-letter-spacing); }
}

@keyframes animSharedOpacity {
  0%, 100% { opacity: 1; } 
}

.logo-sliding .m1 { 
  animation: animSharedOpacity 39s infinite ease-in-out; 
}
.logo-sliding .atch { 
  --logo-max-width: 4ch;
  animation: animAtchOpacity 39s infinite; 
}
.logo-sliding .hyphen { 
  --logo-max-width: 0.8ch;
  animation: animMManiacPartsOpacity 39s infinite; 
}
.logo-sliding .m2 { 
  --logo-max-width: 1.2ch;
  animation: animMManiacPartsOpacity 39s infinite; 
}
.logo-sliding .an { 
  --logo-max-width: 2.1ch;
  --logo-letter-spacing: 0.09em; /* Optik kerning düzeltmesi: N ve I arasındaki boşluğu dengeler */
  animation: animMManiacPartsOpacity 39s infinite; 
}
.logo-sliding .ia { 
  animation: animSharedOpacity 39s infinite ease-in-out; 
}
.logo-sliding .c { 
  --logo-max-width: 1ch;
  animation: animMManiacPartsOpacity 39s infinite; 
}




/* =========================================
   UI LOADING STATES (ZERO-JS)
========================================= */

/* Zero-JS i18n Fallback for Archive Subtitle (No FOUC) */
html[lang="tr"] #header-subtitle-archive:empty::after { content: "ARŞİV"; }
html[lang="en"] #header-subtitle-archive:empty::after { content: "ARCHIVE"; }
html[lang="pt"] #header-subtitle-archive:empty::after { content: "ARQUIVO"; }

/* Header Buttons State during Initial Load */
html.is-loading.is-auth-cached #btn-filter-match,
html.is-loading.is-auth-cached #btn-add-match,
html.is-loading.is-auth-cached #btn-settings {
  opacity: 1 !important;
  pointer-events: none !important;
  display: flex !important; /* Force visible for layout stability */
}

/* Ziyaretçi (cache'i olmayan) kullanıcılar için yükleme esnasında Arşiv alt başlığını gizle */
html.is-loading:not(.is-auth-cached) #header-subtitle-archive {
  display: none !important;
}

/* Fast-track visibility for logged-in users before Firebase resolves */
html.is-auth-cached #hero-section { display: none !important; }
html.is-auth-cached #dashboard-section { display: block !important; }

html.is-loading #empty-state {
  display: none !important;
}

/* Deep Linking Notification Focus Highlight */
@keyframes highlightPostGlow {
    0% { background-color: rgba(255, 255, 255, 0.15); transform: scale(1.02); }
    100% { background-color: transparent; transform: scale(1); }
}

.highlight-post {
    animation: highlightPostGlow 2s ease-out forwards !important;
    border-radius: 16px;
}
