/* -------------------------------------------------------------
 * STYLE SYSTEM FOR AY HALI YIKAMA
 * Modern Premium Light Mode - Renkli, Animasyonlu Tasarim
 * ------------------------------------------------------------- */

/* CSS Reset & Variables */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Light Color Palette */
  --bg-main: #f8f9ff;
  --bg-section: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4ff;
  --bg-header: rgba(255, 255, 255, 0.92);
  
  --primary: #e53935;       /* Ay Hali Kirmizi */
  --primary-hover: #c62828;
  --primary-glow: rgba(229, 57, 53, 0.18);

  --secondary: #1e3a8a;     /* Koyu Mavi */
  --secondary-light: #3b82f6;

  --gold: #f59e0b;
  --gold-hover: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.2);
  
  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.15);
  
  --accent-purple: #8b5cf6;
  --accent-teal: #06b6d4;
  --accent-green: #10b981;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border-light: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(229, 57, 53, 0.4);
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.14);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(229,57,53,0.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(59,130,246,0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139,92,246,0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary-light));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Grid & Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-green { color: var(--primary); }
.text-blue { color: var(--blue); }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #059669);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: #f0f4ff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.1rem;
  border-radius: 12px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-pulse {
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Cards - Light */
.glass-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.13);
  transform: translateY(-2px);
  border-color: rgba(229, 57, 53, 0.15);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Header & Nav - Light */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--text-main);
}
.logo:hover {
  opacity: 0.85;
}
.logo-icon {
  font-size: 1.9rem;
}
.logo-text .highlight {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
  position: relative;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
  border-radius: 2px;
}
.nav-link:hover::after {
  transform: scaleX(1);
}

/* Floating Demo Controller */
.demo-control {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(229, 57, 53, 0.18);
  max-width: 320px;
  font-family: var(--font-heading);
}

.demo-control-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.demo-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.demo-btn {
  background: #f8f9ff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.demo-btn:hover {
  background: #fff0ee;
  color: var(--primary);
  border-color: var(--primary);
}
.demo-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border-color: var(--primary);
  box-shadow: 0 3px 10px var(--primary-glow);
}

/* App Views Control */
.app-view {
  display: none;
  animation: fadeIn var(--transition-normal);
}
.app-view.active {
  display: block;
}

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

/* -------------------------------------------------------------
 * PREMIUM TOAST NOTIFICATIONS
 * ------------------------------------------------------------- */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--text-main);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 300px;
  max-width: 400px;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.toast.toast-error {
  border-left-color: var(--danger);
}
.toast.toast-warning {
  border-left-color: var(--warning);
}

.toast-icon {
  font-size: 1.2rem;
}

/* -------------------------------------------------------------
 * MOBILE MENU & LOADING SPINNER
 * ------------------------------------------------------------- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

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

/* -------------------------------------------------------------
 * LANDING PAGE STYLES
 * ------------------------------------------------------------- */
.hero-section {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #fff5f5 0%, #fef3ff 30%, #eff6ff 60%, #f0fdf4 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,57,53,0.10) 0%, transparent 70%);
  animation: floatBlob 8s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.09) 0%, transparent 70%);
  animation: floatBlob 10s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #34d399 50%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Live Calculator Card */
.calculator-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: 24px;
}
.card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: #f8f9ff;
  border: 1.5px solid #e2e8f0;
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.form-control::placeholder {
  color: #b0b8cc;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.10);
}
.form-control[readonly] {
  background: rgba(255, 255, 255, 0.02);
  cursor: not-allowed;
}

.label-with-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  background: rgba(229, 57, 53, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Custom Slider Styling */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
  margin: 12px 0;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 8px var(--primary);
  transition: transform 0.1s;
}
.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.divider {
  border: 0;
  height: 1px;
  background: var(--border-light);
  margin: 24px 0;
}

.simulator-results {
  margin-bottom: 24px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.result-row strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-main);
}

.highlighted-row {
  background: rgba(245, 158, 11, 0.06);
  border: 1px dashed rgba(245, 158, 11, 0.2);
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 16px;
}
.highlighted-row span {
  color: var(--text-main);
  font-weight: 600;
}
.highlighted-row strong {
  font-size: 1.4rem;
}

/* Steps Section */
.how-it-works-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.section-title {
  max-width: 600px;
  margin: 0 auto 60px;
}
.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.section-title p {
  color: var(--text-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step-card {
  background: #ffffff;
  border: 1.5px solid #e8ecf8;
  border-radius: var(--border-radius);
  padding: 30px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeUpIn 0.8s ease forwards;
  opacity: 0;
}
.step-card:nth-child(1) { animation-delay: 0.1s; border-top: 4px solid var(--primary); }
.step-card:nth-child(2) { animation-delay: 0.3s; border-top: 4px solid var(--blue); }
.step-card:nth-child(3) { animation-delay: 0.5s; border-top: 4px solid var(--accent-purple); }
.step-card:nth-child(4) { animation-delay: 0.7s; border-top: 4px solid var(--accent-green); }

.step-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

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

.step-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(0,0,0,0.05);
  position: absolute;
  top: 15px;
  right: 20px;
  transition: color var(--transition-normal);
}
.step-card:hover .step-num {
  color: rgba(229, 57, 53, 0.10);
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Prices Section */
.prices-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(135deg, #fff5f5 0%, #fef3ff 50%, #eff6ff 100%);
}

.prices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.price-card {
  background: #ffffff;
  border: 1.5px solid #e8ecf8;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}
.price-card:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.12);
  border-color: var(--primary);
}

.price-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.price-amount span {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.cashback-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.price-card .features {
  list-style: none;
  text-align: left;
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
}
.price-card .features li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-card .features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
}

/* Popular Price Card Ribbon */
.price-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 10px 40px var(--primary-glow);
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.card-ribbon {
  position: absolute;
  top: 15px;
  right: -10px;
  background: var(--primary);
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------
 * DASHBOARD COMMON LAYOUT (CUSTOMER & ADMIN)
 * ------------------------------------------------------------- */
.dashboard-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.user-profile-card {
  padding: 30px 20px;
  text-align: center;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px var(--primary-glow);
}

.avatar.admin-avatar {
  background: linear-gradient(135deg, var(--gold), #d97706);
  box-shadow: 0 8px 20px var(--gold-glow);
}

.user-profile-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.badge-role {
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0f4ff;
  padding: 2px 10px;
  border-radius: 20px;
  color: var(--text-muted);
  border: 1px solid #d1d9f0;
}
.badge-role.admin-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.sidebar-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}
.sidebar-link:hover {
  background: #f0f4ff;
  color: var(--primary);
}
.sidebar-link.active {
  background: linear-gradient(135deg, rgba(229,57,53,0.08), rgba(229,57,53,0.03));
  color: var(--primary);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
}
.admin-badge + .divider + .sidebar-menu .sidebar-link.active {
  border-left-color: var(--gold);
}

.dashboard-content {
  min-width: 0; /* Prevents overflow in flex/grid items */
}

/* Dashboard Tabs Control */
.dashboard-tab {
  display: none;
  animation: fadeIn var(--transition-normal);
}
.dashboard-tab.active {
  display: block;
}

.dashboard-title-bar {
  margin-bottom: 30px;
}
.dashboard-title-bar h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.dashboard-title-bar p {
  color: var(--text-muted);
}

/* -------------------------------------------------------------
 * CLIENT WALLET TAB STYLES
 * ------------------------------------------------------------- */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.wallet-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px;
}
.wallet-card p {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.wallet-card h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.wallet-card .card-info {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.wallet-card.main-wallet {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.07) 0%, #ffffff 100%);
  border: 1.5px solid rgba(229, 57, 53, 0.2);
  box-shadow: 0 8px 30px rgba(229, 57, 53, 0.08);
}

/* Action Cards Grid */
.quick-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

/* Table Cards */
.table-card {
  padding: 24px;
  overflow: hidden;
}

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

.table-responsive {
  width: 100%;
  overflow-x: auto !important;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: auto;
}

.table th {
  padding: 10px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  line-height: 1.2;
}

.table td {
  padding: 12px 8px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
  line-height: 1.3;
  word-break: break-word;
}
.table tr:last-child td {
  border-bottom: none;
}

.table tr {
  transition: background-color var(--transition-fast);
}
.table tbody tr:hover {
  background-color: #fef2f2;
}

.empty-state-row td {
  padding: 40px !important;
  color: var(--text-muted);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-badge i {
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-badge.olcum-bekliyor {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}
.status-badge.yikaniyor {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.status-badge.teslim-edildi {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
}
.status-badge.iptal-edildi {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.status-badge.odendi {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
}
.status-badge.beklemede {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.status-badge.reddedildi {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

/* -------------------------------------------------------------
 * NEW ORDER PAGE
 * ------------------------------------------------------------- */
.order-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}

.form-card {
  padding: 30px;
}

.form-row {
  display: flex;
  gap: 20px;
}
.form-row .form-group {
  flex: 1;
}

.summary-card {
  padding: 30px;
  position: sticky;
  top: 100px;
}

.summary-details {
  margin: 20px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.summary-row.total-row {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 16px;
}

.summary-row.cashback-row {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 12px;
}

.saving-badge-container {
  margin-top: 24px;
}
.saving-badge {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}
.badge-icon {
  font-size: 1.4rem;
  color: var(--gold);
}
.saving-badge strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.saving-badge p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.highlighted-row span {
  color: var(--text-main);
  font-weight: 600;
}

/* Filter Tabs */
.filter-tabs::-webkit-scrollbar {
  height: 4px;
}
.filter-tabs::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}
.filter-tabs::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}
.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* -------------------------------------------------------------
 * ADMIN DASHBOARD STYLES
 * ------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-box {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.05);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.stat-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.stat-box h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
}

.info-card {
  padding: 24px;
  border-left: 4px solid var(--primary);
  background: rgba(16, 185, 129, 0.02);
}
.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Admin Dropdowns / Controls */
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-select {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.8rem;
  font-family: var(--font-body);
}

/* -------------------------------------------------------------
 * POPUP MODALS
 * ------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  background: rgba(6, 8, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.modal-close:hover {
  color: var(--text-main);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--blue);
}
.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--gold);
}

/* -------------------------------------------------------------
 * BANK SLIP / DEKONT VIEW STYLES
 * ------------------------------------------------------------- */
.receipt-preview-box {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}
.receipt-preview-box img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 4px;
}
.receipt-file-info {
  font-size: 0.75rem;
  color: var(--primary);
}

.receipt-slip {
  background: #ffffff;
  color: #1e293b;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid #e2e8f0;
  font-family: 'Courier New', Courier, monospace;
  position: relative;
  overflow: hidden;
}
.receipt-slip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--blue));
}
.receipt-header {
  text-align: center;
  margin-bottom: 20px;
}
.receipt-header h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  font-family: var(--font-heading);
}
.receipt-header p {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.receipt-divider {
  border-top: 1px dashed #cbd5e1;
  margin: 16px 0;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: #334155;
  line-height: 1.4;
}
.receipt-row strong {
  color: #0f172a;
  word-break: break-all;
  text-align: right;
  max-width: 60%;
}
.receipt-row.amount-row {
  font-size: 1.35rem;
  color: #0f172a;
  font-weight: 800;
  margin-top: 12px;
  font-family: var(--font-heading);
}
.receipt-row.amount-row strong {
  color: var(--primary-hover);
}
.receipt-seal-container {
  text-align: center;
  margin-top: 24px;
}
.receipt-status-seal {
  border: 3px double #10b981;
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
  transform: rotate(-6deg);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

/* -------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------- */
.main-footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-top: none;
  padding: 70px 0 30px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.main-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--blue), var(--accent-purple), var(--accent-green));
}
.main-footer .footer-links h4,
.main-footer .footer-brand p,
.main-footer .footer-links ul li,
.main-footer .footer-links ul li a,
.main-footer .footer-bottom {
  color: #94a3b8;
}
.main-footer .footer-links h4 {
  color: #e2e8f0;
}
.main-footer .footer-links ul li a:hover {
  color: #ffffff;
}
.main-footer .footer-bottom p {
  color: #64748b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 1.2fr 1.5fr;
  gap: 30px;
  margin-bottom: 40px;
}
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.admin-badge-count {
  background-color: #ef4444; /* red */
  color: white;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 10px;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.footer-links ul {
  list-style: none;
}
.footer-links ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links ul li a:hover {
  color: var(--text-main);
}

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

/* -------------------------------------------------------------
 * RESPONSIVE MEDIA QUERIES
 * ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }
  .dashboard-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prices-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
    gap: 30px;
  }
  .wallet-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Task 4: Quick Action Cards Grid Fix */
  .quick-action-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: 12px 0;
  }
  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 1100;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 65px);
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 30px;
    border-left: 1px solid var(--border-light);
    transition: right var(--transition-normal);
    z-index: 99;
  }
  .nav-links.active {
    right: 0;
  }
  
  .dashboard-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 85% !important;
    max-width: 360px !important;
    height: 100vh !important;
    height: 100svh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    z-index: 1050 !important;
    padding: 60px 20px 20px 20px !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 20px)) !important;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15) !important;
    border-left: 1px solid var(--border-light) !important;
    transition: right var(--transition-normal) !important;
    display: flex !important;
    flex-direction: column !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
  }
  
  .dashboard-sidebar.active {
    right: 0 !important;
  }
  
  .dashboard-sidebar .user-profile-card {
    padding: 0 !important;
  }

  .dashboard-sidebar .user-profile-card h3 {
    font-size: 1.1rem !important;
    margin-bottom: 4px !important;
  }
  
  .dashboard-sidebar .avatar,
  .dashboard-sidebar .profile-photo-overlay {
    width: 60px !important;
    height: 60px !important;
  }
  
  .dashboard-sidebar .avatar {
    font-size: 1.8rem !important;
    margin-bottom: 8px !important;
  }
  
  .dashboard-sidebar .profile-photo-wrapper {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 8px !important;
  }
  
  .dashboard-sidebar .badge-role {
    font-size: 0.75rem !important;
    padding: 3px 8px !important;
  }
  
  .dashboard-sidebar .sidebar-menu {
    gap: 4px !important;
    margin-top: 16px !important;
  }
  
  .dashboard-sidebar .sidebar-link {
    font-size: 0.95rem !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    border-left: 3px solid transparent !important;
  }
  .dashboard-sidebar .sidebar-link.active {
    background: rgba(229,57,53,0.05) !important;
    border-left: 3px solid var(--primary) !important;
    border-radius: 0 8px 8px 0 !important;
  }
  .nav-link {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }
  .nav-links .btn {
    margin-top: 15px;
    width: 100%;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .order-layout {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .demo-control {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  #cashOutForm {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  #cashOutForm button {
    width: 100%;
  }

  .withdraw-form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .withdraw-form-grid button {
    width: 100% !important;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* WhatsApp Sticky Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s;
  animation: bounceSoft 3s infinite;
}
.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
}
@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 80px;
    right: 20px;
    padding: 12px;
  }
  .whatsapp-btn span {
    display: none;
  }
}

/* -------------------------------------------------------------
 * AUTHENTICATION SCREENS (LOGIN/REGISTER)
 * ------------------------------------------------------------- */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 450px;
  padding: 40px;
}
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}
.auth-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.auth-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.auth-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.auth-form {
  display: none;
  animation: fadeUpIn 0.4s ease;
}
.auth-form.active {
  display: block;
}

/* -------------------------------------------------------------
 * PROFILE PHOTO UPLOAD
 * ------------------------------------------------------------- */
.profile-photo-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin: 0 auto 12px;
}

.profile-photo-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.80);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.profile-photo-wrapper:hover .profile-photo-overlay {
  opacity: 1;
}

.profile-photo-wrapper:hover .avatar {
  filter: brightness(0.7);
}

.user-profile-card {
  text-align: center;
}
.user-profile-card .profile-photo-wrapper {
  margin-bottom: 12px;
}

/* Verify success animation */
@keyframes verifyPop {
  0%   { opacity: 0; transform: scale(0.7) translateY(6px); }
  60%  { opacity: 1; transform: scale(1.08) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* =========================================
   HOW IT WORKS (TIMELINE & ANIMATIONS)
   ========================================= */

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.timeline-item {
  display: flex;
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid var(--border-light);
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.6s ease forwards;
  position: relative;
  overflow: hidden;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--primary);
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

.timeline-icon {
  font-size: 3.5rem;
  margin-right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 600px) {
  .timeline-item {
    flex-direction: column;
    text-align: center;
  }
  .timeline-icon {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .timeline-item::before {
    width: 100%;
    height: 6px;
    bottom: auto;
  }
}

/* =========================================
   FAQ ACCORDION
   ========================================= */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #f8fafc;
}

.faq-answer p {
  padding: 0 20px 20px 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================================
   ADMIN PANEL RESPONSIVE CARD LAYOUT & MOBILE OPTIMIZATIONS
   ============================================================= */

/* Universal body overflow protection */
body, html {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Overlay for sidebars and menus on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1040; /* just under sidebar z-index */
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
}
body.menu-open {
  overflow: hidden !important;
}

@media (max-width: 768px) {
  /* Prevent container horizontal stretching */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100vw !important;
    overflow-x: hidden;
  }

  /* Make sure titles don't overflow */
  h1, h2, h3 {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Stats grid responsive */
  /* Stats grid responsive */
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  
  .stats-grid .stat-box {
    padding: 12px !important;
    gap: 8px !important;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }
  
  .stats-grid .stat-box .stat-icon {
    font-size: 1.5rem !important;
    margin-bottom: 4px;
  }
  
  .stats-grid .stat-box p {
    font-size: 0.7rem !important;
    line-height: 1.2;
    margin: 0 0 4px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .stats-grid .stat-box h2 {
    font-size: 1.1rem !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  /* Table responsive styles - Convert to cards */
  .table-responsive {
    border: none !important;
    overflow-x: visible !important;
  }

  .table, .data-table {
    display: block !important;
    width: 100% !important;
    border: none !important;
  }

  .table thead, .data-table thead {
    display: none !important;
  }

  .table tbody, .data-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important; /* 14-18px gap */
    width: 100% !important;
  }

  .table tr, .data-table tr {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 0 !important;
    width: 100% !important;
  }

  .table td, .data-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-top: none !important;
    border-bottom: 1px dashed rgba(226, 232, 240, 0.8) !important;
    font-size: 14px !important; /* minimum 14px */
    line-height: 1.4 !important;
    word-break: normal !important;
    white-space: normal !important;
    text-align: right !important;
  }

  .table td:last-child, .data-table td:last-child {
    border-bottom: none !important;
  }

  /* Display data-label as prefix */
  .table td::before, .data-table td::before {
    content: attr(data-label) !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    font-size: 13px !important;
    text-align: left !important;
    flex-shrink: 0 !important;
    margin-right: 16px !important;
  }

  /* Full-width block layouts for specific fields that need space */
  .table td[data-label="İşlem Butonları"],
  .table td[data-label="İşlemler"],
  .table td[data-label="Tarih / Adres"],
  .table td[data-label="Adres"],
  .table td[data-label="Açıklama / İşlem Detayı"],
  .table td[data-label="Detay / Sipariş No"],
  .table td[data-label="Firma Bilgilendirme Notu"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    text-align: left !important;
  }

  .table td[data-label="İşlem Butonları"]::before,
  .table td[data-label="İşlemler"]::before,
  .table td[data-label="Tarih / Adres"]::before,
  .table td[data-label="Adres"]::before,
  .table td[data-label="Açıklama / İşlem Detayı"]::before,
  .table td[data-label="Detay / Sipariş No"]::before,
  .table td[data-label="Firma Bilgilendirme Notu"]::before {
    margin-bottom: 4px !important;
    text-align: left !important;
  }

  /* Keep important fields from word breaking or splitting characters */
  .table td[data-label="Telefon"],
  .table td[data-label="Müşteri Telefonu"],
  .table td[data-label="IBAN"],
  .table td[data-label="Sipariş No"],
  .table td[data-label="Sipariş Numarası"],
  .table td[data-label="Tutar"],
  .table td[data-label="Çekilecek Tutar"],
  .table td[data-label="Tutar / Cashback"],
  .table td[data-label="Kazanılan / Çekilen"],
  .table td[data-label="Kazanılan (%10)"] {
    word-break: normal !important;
    white-space: nowrap !important;
  }

  /* Address field address display block format */
  .table td[data-label="Tarih / Adres"] > div:nth-child(2),
  .table td[data-label="Adres"] > span {
    white-space: normal !important;
    max-width: 100% !important;
    text-overflow: unset !important;
    overflow: visible !important;
    line-height: 1.4 !important;
  }

  /* Button and operations wrappers inside card layout */
  .admin-actions, .admin-actions > div {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 6px !important;
  }

  .admin-actions button, .admin-actions a,
  td[data-label="Düzenle Butonu"] button,
  td[data-label="Tarih / Adres"] button {
    flex: 1 !important;
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    text-align: center !important;
    justify-content: center !important;
    min-height: 44px !important; /* Mobile friendly touch target */
  }

  /* Remove redundant dashboard-sidebar override since we fixed it at the top */
  /* Remove redundant nav-links override */

  /* Close button on sidebar */
  .sidebar-close-btn {
    display: block !important;
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    z-index: 1100 !important;
    line-height: 1 !important;
    padding: 8px !important;
    transition: color 0.2s !important;
  }

  .sidebar-close-btn:hover {
    color: var(--primary) !important;
  }

  /* Mobile bottom padding for WhatsApp button */
  .dashboard-content {
    padding-bottom: 100px !important;
  }

  /* Hide custom sticky demo panel on mobile if it takes too much space, or make it fit */
  .demo-control {
    bottom: 10px !important;
    right: 10px !important;
    left: 10px !important;
    max-width: calc(100% - 20px) !important;
  }
}

/* =========================================================
   ACCORDION CARD SYSTEM (Compact Mobile First)
========================================================= */

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.2s ease;
}

.accordion-item.open {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
  height: auto;
  background: #fff;
  gap: 8px;
}

.accordion-header:hover {
  background: #f8fafc;
}

.acc-header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-order-id {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.86rem;
}

.acc-summary {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Status Badges within Accordion */
.acc-status {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.acc-status i {
  font-style: normal;
  font-size: 0.85rem;
}

.acc-icon-toggle {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-item.open .acc-icon-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 10px 12px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}

.accordion-item.open .accordion-content {
  display: block;
  animation: fadeInDown 0.2s ease;
}

/* Detail Rows inside Accordion */
.acc-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 0.82rem;
}

.acc-detail-row:last-child {
  border-bottom: none;
}

.acc-detail-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  flex-shrink: 0;
  width: 38%;
}

.acc-detail-value {
  color: var(--text-main);
  text-align: right;
  font-size: 0.82rem;
  word-break: break-word;
}

/* Specific Accordion Colors & Animations */
.acc-status.status-alinacak { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.acc-status.status-yolda { background: #fff7ed; color: #ea580c; border: 1px solid #ffedd5; }
.acc-status.status-yikaniyor { background: #faf5ff; color: #9333ea; border: 1px solid #f3e8ff; }
.acc-status.status-tamamlandi { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
.acc-status.status-iptal { background: #fef2f2; color: #dc2626; border: 1px solid #fee2e2; }
.acc-status.status-beklemede { background: #fdf8f6; color: #78716c; border: 1px solid #f5f5f4; }
.acc-status.status-odeme { background: #fefce8; color: #ca8a04; border: 1px solid #fef08a; }

/* Status Icons Animations */
@keyframes spin-slow { 100% { transform: rotate(360deg); } }
@keyframes bounce-bubbles { 
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.icon-spin { animation: spin-slow 2s linear infinite; display: inline-block; }
.icon-bounce { animation: bounce-bubbles 1.5s ease-in-out infinite; display: inline-block; }

/* Desktop adjustments for Accordion */
@media (min-width: 769px) {
  .accordion-list {
    gap: 16px;
  }
  .accordion-header {
    padding: 16px 24px;
  }
  .acc-detail-row {
    font-size: 0.95rem;
    padding: 10px 0;
  }
  .acc-detail-label {
    width: 30%;
  }
}

/* Premium Visual Upgrades */

/* Canlı Güvenlik Nabzı */
.status-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.status-pulse.danger {
  background-color: var(--danger) !important;
  box-shadow: 0 0 8px var(--danger) !important;
  animation: pulse-ring-danger 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}
@keyframes pulse-ring-danger {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Expandable Table Details Row */
.details-row {
  background: rgba(248, 250, 252, 0.5) !important;
  transition: all 0.3s ease;
}
.details-container {
  padding: 16px 20px;
  border-top: 1px dashed rgba(226, 232, 240, 0.8);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}
.detail-item {
  line-height: 1.5;
}
.detail-item strong {
  color: var(--text-main);
}
.details-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.details-actions .btn {
  padding: 8px 14px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sparklines inside KPI Cards */
.sparkline-container svg {
  filter: drop-shadow(0px 2px 4px rgba(16, 185, 129, 0.15));
}
.stat-box {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Cursor pointer for clickable table rows */
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover {
  background: rgba(241, 245, 249, 0.4) !important;
}
.accordion-indicator {
  transition: transform 0.2s ease;
  display: inline-block;
  font-weight: bold;
  color: var(--text-muted);
  margin-right: 8px;
}
.row-expanded .accordion-indicator {
  transform: rotate(90deg);
  color: var(--primary);
}

/* =========================================================
   ADDITIONAL RESPONSIVE DESIGN OVERRIDES (WORKER AGENT)
   ========================================================= */

/* Hero Image Responsiveness */
.hero-image,
.hero-image img {
  max-width: 100% !important;
  height: auto !important;
}

/* 768px - 1024px: Tablet Viewport Layout Overrides */
@media (max-width: 1024px) {
  .dashboard-container {
    grid-template-columns: 1fr !important;
  }
  .order-layout {
    grid-template-columns: 1fr !important;
  }
  .form-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .mobile-menu-btn {
    display: block !important;
    position: relative !important;
    z-index: 1100 !important;
  }
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 65px !important;
    right: -100% !important;
    width: 250px !important;
    height: calc(100vh - 65px) !important;
    background: var(--bg-header) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    padding: 30px !important;
    border-left: 1px solid var(--border-light) !important;
    transition: right var(--transition-normal) !important;
    z-index: 99 !important;
  }
  .nav-links.active {
    right: 0 !important;
  }
  .nav-link {
    font-size: 1.1rem !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--border-light) !important;
    width: 100% !important;
  }
  .nav-links .btn {
    margin-top: 15px !important;
    width: 100% !important;
  }
}

/* <= 768px: Mobile Viewport Tables / Pricing Tables / Actions Overrides */
@media (max-width: 768px) {
  /* Pricing Tables Overrides (fiyat-hesaplama.html) */
  .seo-table {
    display: block !important;
    width: 100% !important;
    border: none !important;
  }
  .seo-table thead {
    display: none !important;
  }
  .seo-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .seo-table tr {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 0 !important;
    width: 100% !important;
  }
  .seo-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-top: none !important;
    border-bottom: 1px dashed rgba(226, 232, 240, 0.8) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    word-break: normal !important;
    white-space: normal !important;
    text-align: right !important;
  }
  .seo-table td:last-child {
    border-bottom: none !important;
  }
  .seo-table td:nth-child(1)::before {
    content: "Ürün Türü:" !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    font-size: 13px !important;
    text-align: left !important;
    flex-shrink: 0 !important;
    margin-right: 16px !important;
  }
  .seo-table td:nth-child(2)::before {
    content: "Birim:" !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    font-size: 13px !important;
    text-align: left !important;
    flex-shrink: 0 !important;
    margin-right: 16px !important;
  }
  .seo-table td:nth-child(3)::before {
    content: "Fiyat:" !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    font-size: 13px !important;
    text-align: left !important;
    flex-shrink: 0 !important;
    margin-right: 16px !important;
  }

  /* Admin Actions stacking */
  .admin-actions, .admin-actions > div {
    flex-wrap: wrap !important;
    flex-direction: column !important;
  }

  /* Mobile wrap for long nowrap table fields (IBAN, phone, financials) */
  .table td[data-label="Telefon"],
  .table td[data-label="Müşteri Telefonu"],
  .table td[data-label="IBAN"],
  .table td[data-label="Sipariş No"],
  .table td[data-label="Sipariş Numarası"],
  .table td[data-label="Tutar"],
  .table td[data-label="Çekilecek Tutar"],
  .table td[data-label="Tutar / Cashback"],
  .table td[data-label="Kazanılan / Çekilen"],
  .table td[data-label="Kazanılan (%10)"],
  .data-table td[data-label="Telefon"],
  .data-table td[data-label="Müşteri Telefonu"],
  .data-table td[data-label="IBAN"],
  .data-table td[data-label="Sipariş No"],
  .data-table td[data-label="Sipariş Numarası"],
  .data-table td[data-label="Tutar"],
  .data-table td[data-label="Çekilecek Tutar"],
  .data-table td[data-label="Tutar / Cashback"],
  .data-table td[data-label="Kazanılan / Çekilen"],
  .data-table td[data-label="Kazanılan (%10)"] {
    white-space: normal !important;
    word-break: break-all !important;
  }

  /* Mobile Toast Notifications Overlay Prevention */
  #toast-container {
    right: 12px !important;
    left: 12px !important;
    max-width: calc(100% - 24px) !important;
  }
  .toast {
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
}

/* < 768px: Mobile Blog CTA Box & Button Clipping */
@media (max-width: 767px) {
  .cta-box {
    padding: 24px 16px !important;
    margin-top: 30px !important;
    border-radius: 12px !important;
  }
  .cta-box div[style*="inline-block"] {
    display: block !important;
    max-width: 100% !important;
    padding: 15px !important;
    box-sizing: border-box !important;
  }
  .cta-box .cta-btn {
    display: block !important;
    width: 100% !important;
    margin: 10px 0 0 0 !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
  }
  .cta-box div[style*="display: flex"],
  .cta-box div[style*="flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
}
