/* ==========================================================================
   BILETBAS - Tasarım Sistemi ve Ana Stiller (app.css)
   Modern, Glassmorphism, Tam Responsive & Çoklu Platform Uyumlu
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Renk Paleti */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-surface: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-glass: rgba(19, 27, 46, 0.75);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #6366f1;

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

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --info: #06b6d4;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);

  --header-height: 72px;
  --mobile-nav-height: 64px;
}

/* Reset & Temel */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Tipografi & Başlıklar */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Layout Yapısı */
.app-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow-glow);
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Masaüstü Navigasyon */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.nav-btn i {
  font-size: 16px;
}

/* Kullanıcı Profil Alanı */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile-badge:hover {
  background: rgba(255, 255, 255, 0.08);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.user-info {
  text-align: left;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.user-org {
  font-size: 11px;
  color: var(--text-muted);
}

/* Ana İçerik Konteyneri */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
}

/* Dashboard Banner ve İstatistikler */
.dashboard-hero {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(19, 27, 46, 0.9) 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-title h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.hero-title p {
  color: var(--text-muted);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-icon.primary { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.stat-icon.success { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stat-icon.pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.stat-details .stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: block;
}

.stat-details .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Bölüm Başlıkları & Toolbar */
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger-outline {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger-outline:hover {
  background: var(--danger-bg);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Kartlar ve Glassmorphism */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Etkinlik Kartları Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.event-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
}

.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.event-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.event-tier-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.event-title {
  font-size: 18px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.event-org {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.event-info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(15, 23, 42, 0.5);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.info-item i {
  color: var(--accent-primary);
  margin-top: 3px;
  font-size: 14px;
}

.event-gmaps-row {
  margin-bottom: 16px;
}

.btn-gmaps-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.btn-gmaps-link:hover {
  background: rgba(56, 189, 248, 0.2);
}

.event-progress-section {
  margin-bottom: 16px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.event-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

/* KARE (SQUARE) ETKİNLİK KARTLARI */
.events-grid-square {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.event-card-square {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.event-card-square:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 16px 32px -6px rgba(99, 102, 241, 0.35);
}

.event-card-square::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
}

.square-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.square-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.square-card-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.square-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(15, 23, 42, 0.5);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-top: auto;
}

.square-stat-item {
  display: flex;
  flex-direction: column;
}

.square-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.square-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.square-card-hint {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 10px;
  font-weight: 600;
}


/* Tab İçerik Yönetimi */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tablolar */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-surface);
}

.data-table th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: #e2e8f0;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Rozetler (Badges) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 600;
}

.badge.success { background: var(--success-bg); color: #34d399; }
.badge.warning { background: var(--warning-bg); color: #fbbf24; }
.badge.danger { background: var(--danger-bg); color: #f87171; }
.badge.badge-code {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-family: monospace;
  font-size: 13px;
}

/* Modallar */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

/* Modal Katman (Z-Index) Sıralaması */
#eventDetailModal {
  z-index: 1000;
}
#newEventModal {
  z-index: 1050;
}
#newTicketModal {
  z-index: 1150;
}
#controllerModal {
  z-index: 1200; /* Detay modalının en önünde açılsın */
}
#editEventModal {
  z-index: 1200; /* Detay modalının en önünde açılsın */
}
#quotaPaymentModal {
  z-index: 1300; /* Tüm pencerelerin en önünde açılsın */
}
#profileModal {
  z-index: 1150;
}
#ticketPreviewModal {
  z-index: 2000; /* Bilet önizleme her modalın en üstünde açılsın */
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalScaleUp 0.25s ease-out;
}

.modal-card.modal-large {
  max-width: 860px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

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

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.4);
}

/* Formlar ve Inputlar */
.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* Kademeli Fiyat Kutusu */
.tier-pricing-box {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.tier-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.tier-item {
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.tier-item-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.tier-item-val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Harita Seçici Konteyneri */
#mapPickerContainer {
  height: 220px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 8px;
  margin-bottom: 12px;
  z-index: 1;
}

/* Fiyatlandırma Bilgi Sayfası */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pricing-plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-plan-card.featured {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xl);
}

.plan-name {
  font-size: 18px;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 12px 0;
}

.plan-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin: 20px 0;
  text-align: left;
  font-size: 13px;
}

.plan-features li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.plan-features li i {
  color: var(--success);
}

/* Toast Bildirimleri */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast-message {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
}

.toast-message.toast-success { border-left: 4px solid var(--success); }
.toast-message.toast-warning { border-left: 4px solid var(--warning); }
.toast-message.toast-error { border-left: 4px solid var(--danger); }
.toast-message.toast-info { border-left: 4px solid var(--accent-primary); }

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  margin-left: auto;
}

/* Boş Durum (Empty State) */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: rgba(19, 27, 46, 0.5);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}

.empty-state i {
  font-size: 48px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 420px;
  margin: 0 auto;
}

/* Mobil Alt Bar (Mobile Navigation) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  z-index: 200;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}

.mobile-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  padding: 6px;
  flex: 1;
}

.mobile-nav-btn i {
  font-size: 18px;
}

.mobile-nav-btn.active {
  color: var(--accent-primary);
}

/* Animasyonlar */
@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.animate-fade-in { animation: slideUp 0.3s ease-out; }
.animate-slide-up { animation: slideUp 0.3s ease-out; }
.animate-pulse { animation: pulse 1.5s infinite; }

/* Responsive Uyumluluk (Mobil & Tablet) */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .main-container {
    padding-bottom: 90px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-org {
    display: none;
  }
}

/* ==========================================================================
   CANLI DESTEK (LIVE SUPPORT) WIDGET & FLOATING BUTTON STYLES
   ========================================================================== */
.floating-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
}

.btn-chat-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5), 0 0 15px rgba(6, 182, 212, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-chat-bubble:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.7), 0 0 25px rgba(6, 182, 212, 0.6);
}

.chat-icon-wrap {
  position: relative;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-unread-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
  animation: pulse 1s infinite;
}

.chat-widget-box {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleUp 0.2s ease-out;
}

.chat-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-agent-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.agent-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #1e293b;
}

.agent-status-dot.online { background: #10b981; }
.agent-status-dot.offline { background: #f59e0b; }

.btn-chat-min {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
}

.btn-chat-min:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.chat-quick-chips {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
}

.chip-btn {
  white-space: nowrap;
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.chip-btn:hover {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

.chat-messages-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-empty-state {
  text-align: center;
  color: #64748b;
  margin: auto;
  padding: 20px;
}

.chat-empty-state i {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.chat-bubble-row {
  display: flex;
  width: 100%;
}

.chat-bubble-row.outgoing {
  justify-content: flex-end;
}

.chat-bubble-row.incoming {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bubble-org {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.bubble-admin {
  background: rgba(30, 41, 59, 0.9);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 2px;
}

.chat-sender-name {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.75;
  margin-bottom: 3px;
}

.chat-text-content {
  word-break: break-word;
}

.chat-time-stamp {
  font-size: 9px;
  opacity: 0.6;
  text-align: right;
  margin-top: 4px;
}

.chat-msg-email-notif {
  font-size: 10px;
  color: #fbbf24;
  margin-top: 4px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-input-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input-field {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 8px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.chat-input-field:focus {
  border-color: var(--accent-primary);
}

.btn-chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.btn-chat-send:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   BILETBAS ÇOKLU DİL (TR / EN) SEÇİCİ STİLLERİ
   ========================================================================== */
.biletbas-lang-container {
  display: inline-flex;
  align-items: center;
}

.biletbas-lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3px;
  gap: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.biletbas-lang-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
}

.biletbas-lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.biletbas-lang-btn.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.45);
}

/* Google Translate Frame & Banner Gizleme - Kusursuz Görünüm */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
  position: static !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

#google_translate_element {
  display: none !important;
  visibility: hidden !important;
}

.notranslate {
  translate: no;
}

/* ==========================================================================
   KAPSAMLI MOBİL & TABLET (ANDROID / APPLE iOS / TABLET) RESPONSIVE SİSTEMİ
   ========================================================================== */

/* ── 1. TABLET & KÜÇÜK MASAÜSTÜ (max-width: 1024px) ────────────────────────── */
@media (max-width: 1024px) {
  .main-container {
    padding: 20px 16px 60px 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }

  .events-grid,
  .events-grid-square {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }

  .hero-container {
    grid-template-columns: 1fr !important;
    gap: 28px;
    text-align: center;
  }

  .hero-badge-group,
  .hero-cta-group {
    justify-content: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .header-contact-strip {
    display: none !important;
  }
}

/* ── 2. MOBİL TELEFONLAR VE KÜÇÜK TABLETLER (max-width: 768px) ─────────────── */
@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Header Düzeni - Sıkışmayı ve Üst Üste Binmeyi Önleme */
  .app-header {
    height: auto !important;
    min-height: 60px;
    padding: 10px 14px !important;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-container {
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .brand-text h1,
  .brand-text span {
    font-size: 17px !important;
  }

  .brand-tagline {
    display: none !important; /* Mobilde yer kazanmak için sloganı gizle */
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 6px !important;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-btn {
    padding: 7px 10px !important;
    font-size: 12px !important;
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    border-radius: 8px !important;
  }

  .btn-apk-download {
    order: 3;
    width: 100%;
    margin-top: 2px;
  }

  .header-actions {
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .user-profile-badge {
    padding: 4px 10px;
  }

  .user-org {
    display: none !important;
  }

  /* Hero Bölümü */
  .hero-title {
    font-size: clamp(22px, 6vw, 34px) !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }

  .hero-lead {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    width: 100%;
    gap: 10px !important;
  }

  .hero-cta-group .btn {
    width: 100% !important;
    padding: 13px !important;
    font-size: 14px !important;
  }

  .metric-pill-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100%;
  }

  .metric-pill {
    font-size: 11.5px !important;
    padding: 8px 10px !important;
    justify-content: center;
    text-align: center;
  }

  .hero-floating-tag {
    font-size: 10.5px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
  }

  /* 4 Adım Grid */
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .step-card {
    padding: 18px !important;
  }

  /* Vitrin Kartları */
  .showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .showcase-img-wrap {
    height: 160px !important;
  }

  .showcase-content {
    padding: 16px !important;
  }

  /* Çift QR Simülatörü */
  .interactive-ticket-container {
    padding: 16px 12px !important;
    margin: 24px 0 !important;
    border-radius: 14px !important;
  }

  .ticket-demo-body {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .ticket-visual-preview {
    padding: 16px !important;
  }

  /* Hesaplayıcı */
  .calculator-box {
    padding: 16px 12px !important;
  }

  .calc-btn-group {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  .calc-tier-btn {
    padding: 8px 4px !important;
    font-size: 12px !important;
  }

  /* Organizatör Dashboard */
  .dashboard-hero {
    padding: 16px !important;
    border-radius: 14px !important;
    margin-bottom: 20px !important;
  }

  .hero-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .hero-header .btn-primary {
    width: 100% !important;
    padding: 12px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .stat-box {
    padding: 14px !important;
  }

  .events-grid,
  .events-grid-square {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .section-toolbar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }

  .section-actions {
    width: 100%;
    flex-direction: column;
  }

  .section-actions input,
  .section-actions select,
  .section-actions button {
    width: 100% !important;
  }

  /* Tablolar & Katılımcı Listesi */
  .table-responsive {
    border-radius: 10px !important;
    -webkit-overflow-scrolling: touch;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* Modallar & Formlar - Ekran Dışına Taşmayı ve Yazı Bozulmasını Önleme */
  .modal-backdrop {
    padding: 10px !important;
    align-items: flex-end !important; /* Mobilde alt sayfa tarzı açılış */
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    margin: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    padding: 0 !important;
  }

  .modal-header {
    padding: 14px 16px !important;
  }

  .modal-title {
    font-size: 16px !important;
  }

  .modal-body {
    padding: 16px !important;
    max-height: calc(88vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-footer {
    padding: 12px 16px !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .modal-footer .btn {
    width: 100% !important;
    padding: 12px !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* iOS Safari Zoom Engelleme Standardı (En az 16px yazı boyutu) */
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="datetime-local"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .auth-tab-bar {
    display: flex;
    width: 100%;
    gap: 4px;
    padding: 4px;
  }

  .auth-tab-btn {
    flex: 1 1 33%;
    padding: 8px 4px !important;
    font-size: 11.5px !important;
    text-align: center;
  }

  /* Canlı Destek Chat Kutusu */
  .chat-widget-box {
    bottom: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 85vh !important;
    max-height: 85vh !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .btn-chat-bubble {
    bottom: 16px !important;
    right: 16px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
}

/* ── 3. ÇOK KÜÇÜK MOBİL EKRANLAR (max-width: 420px) ─────────────────────────── */
@media (max-width: 420px) {
  .hero-title {
    font-size: 22px !important;
  }

  .hero-badge-group .badge {
    font-size: 10.5px !important;
    padding: 4px 8px !important;
  }

  .calc-btn-group {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .metric-pill-row {
    grid-template-columns: 1fr !important;
  }
}

