/**
 * hasarteklif.com - Layer 1: Kartlar, Butonlar, Form Elemanları ve Toast HUD
 */

/* ==========================================================================
   1. KARTLAR (Cards & Glassmorphism)
   ========================================================================== */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
}

.card-elevated {
  background-color: var(--bg-surface-elevated);
  box-shadow: var(--shadow-md);
}

.card-glass {
  background-color: var(--bg-surface-translucent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-body {
  flex: 1 1 auto;
}

.card-footer {
  padding-top: 1rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   2. BUTONLAR (Buttons)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled, .btn.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* Birincil Kehribar (Amber) Aksiyon Butonu */
.btn-accent {
  background-color: var(--color-accent);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 10px 24px -4px rgba(217, 119, 6, 0.45);
}

/* Slate Birincil Buton */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-fg) !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

/* İkincil Çerçeveli Buton */
.btn-secondary {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--text-main) !important;
}

.btn-secondary:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--text-muted);
}

/* Hayalet / Ghost Buton */
.btn-ghost {
  background-color: transparent;
  color: var(--text-muted) !important;
}

.btn-ghost:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-main) !important;
}

/* Tehlike / Silme Butonu */
.btn-danger {
  background-color: var(--color-danger);
  color: #FFFFFF !important;
}

.btn-danger:hover {
  background-color: #B91C1C;
}

/* Buton Boyutları */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-icon,
.btn-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  line-height: 1;
  text-align: center;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
}

.btn-icon-sm {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
}

/* Mobil Menü Butonu (Masaüstünde Kesinlikle Gizli) */
.mobile-menu-toggle {
  display: none !important;
}

@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
}

/* Tema Değiştirici Buton (Tam Ortalanmış & Dengeli) */
button.theme-toggle-btn,
.btn.theme-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: var(--radius-md) !important;
  flex-shrink: 0 !important;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  box-sizing: border-box !important;
}

button.theme-toggle-btn:hover,
.btn.theme-toggle-btn:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--border-strong);
}

button.theme-toggle-btn svg,
.btn.theme-toggle-btn svg {
  margin: auto !important;
  flex-shrink: 0 !important;
  transition: transform var(--transition-fast);
}

[data-theme="dark"] button.theme-toggle-btn .logo-light,
[data-theme="dark"] .btn.theme-toggle-btn .logo-light {
  display: none !important;
}

[data-theme="dark"] button.theme-toggle-btn .logo-dark,
[data-theme="dark"] .btn.theme-toggle-btn .logo-dark {
  display: block !important;
}

[data-theme="light"] button.theme-toggle-btn .logo-dark,
:root:not([data-theme="dark"]) button.theme-toggle-btn .logo-dark,
[data-theme="light"] .btn.theme-toggle-btn .logo-dark,
:root:not([data-theme="dark"]) .btn.theme-toggle-btn .logo-dark {
  display: none !important;
}

[data-theme="light"] button.theme-toggle-btn .logo-light,
:root:not([data-theme="dark"]) button.theme-toggle-btn .logo-light,
[data-theme="light"] .btn.theme-toggle-btn .logo-light,
:root:not([data-theme="dark"]) .btn.theme-toggle-btn .logo-light {
  display: block !important;
}

/* ==========================================================================
   3. FORM ELEMANLARI (Inputs & Selects)
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.form-textarea {
  height: auto;
  min-height: 100px;
  padding: 0.75rem 1rem;
  resize: vertical;
}

.form-input:hover, .form-select:hover, .form-textarea:hover {
  border-color: var(--border-strong);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3.5px rgba(217, 119, 6, 0.18);
  background-color: var(--bg-surface);
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F59E0B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  background-size: 16px;
  padding-right: 2.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.form-select option {
  background-color: #131B2E;
  color: #F8FAFC;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 500;
}

[data-theme="light"] .form-select option,
:root:not([data-theme="dark"]) .form-select option {
  background-color: #FFFFFF;
  color: #0F172A;
}

/* ==========================================================================
   MODERN CUSTOM SELECT DROPDOWN COMPONENT (SaaS UI)
   ========================================================================== */
.custom-select-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
  min-width: 130px;
  user-select: none;
}

.custom-select-wrapper.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.custom-select-trigger {
  width: 100%;
  min-width: 130px;
  height: 48px;
  padding: 0 1rem;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  text-align: left;
}

.custom-select-trigger:hover {
  border-color: var(--color-accent);
  background-color: var(--bg-surface-elevated);
}

.custom-select-wrapper.is-open .custom-select-trigger {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3.5px rgba(217, 119, 6, 0.18);
  background-color: var(--bg-surface-elevated);
}

.custom-select-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-label.is-placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.custom-select-chevron {
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.custom-select-wrapper.is-open .custom-select-chevron {
  transform: rotate(180deg);
}

/* Açılır Menü Konteyneri */
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  min-width: max(100%, 185px);
  max-width: 340px;
  z-index: 1050;
  background-color: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-wrapper.is-open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Arama Kutusu */
.custom-select-search-wrap {
  padding: 0.625rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-subtle);
}

.custom-select-search {
  width: 100%;
  height: 36px;
  padding: 0 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.custom-select-search:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
}

/* Seçenekler Listesi */
.custom-select-options {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.custom-select-option {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-select-option:hover {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  transform: translateX(2px);
}

.custom-select-option.is-selected {
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-weight: 600;
}

.custom-select-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.custom-select-check {
  display: none;
  color: currentColor;
  flex-shrink: 0;
}

.custom-select-option.is-selected .custom-select-check {
  display: inline-flex;
}

.custom-select-no-results {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--color-danger);
  font-weight: 500;
}

/* ==========================================================================
   4. ROZETLER (Badges & Pills)
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-accent {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.badge-success {
  background-color: var(--status-original-bg);
  color: var(--status-original);
}

.badge-warning {
  background-color: var(--status-painted-bg);
  color: var(--status-painted);
}

.badge-danger {
  background-color: var(--status-replaced-bg);
  color: var(--status-replaced);
}

.badge-info {
  background-color: var(--status-local-bg);
  color: var(--status-local);
}

/* ==========================================================================
   5. TOAST HUD BİLDİRİM SİSTEMİ
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 900; /* Mobil menü çekmecesinin altında kalır */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: calc(100% - 3rem);
  pointer-events: none;
}

.toast-hud {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl);
  color: var(--text-main);
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all var(--transition-normal);
  position: relative;
}

.toast-hud.toast-leaving {
  animation: toastSlideOut 0.25s ease forwards;
}

.toast-hud .toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-hud .toast-message {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-main);
}

.toast-hud .toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  margin: 0;
  margin-left: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.toast-hud .toast-close:hover {
  opacity: 1;
  color: var(--text-main);
  background: var(--bg-surface-subtle);
}

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

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-16px) scale(0.95); }
}

/* ==========================================================================
   7. MODERN SAAS OTP DOĞRULAMA KARTI & 6 HANELİ GİRİŞ TİLE'LARI
   ========================================================================== */
.otp-verification-card {
  margin-top: 1.5rem;
  padding: 2rem 1.5rem;
  background: var(--bg-surface-elevated);
  border: 1.5px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.25), 0 0 20px -4px rgba(37, 211, 102, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: otpFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.otp-verification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #25D366 0%, #10B981 50%, #06B6D4 100%);
}

.otp-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #25D366;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.otp-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 8px #25D366;
  animation: otpPulse 1.5s ease-in-out infinite;
}

.otp-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.otp-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* OTP 6 Haneli Giriş Kutuları (Modern Obsidian / Elevated Tile Standartları) */
.otp-input-group {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  margin: 1.5rem 0;
  direction: ltr;
}

.otp-digit {
  width: 52px;
  height: 64px;
  font-family: monospace, var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  border-radius: 14px;
  border: 2px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
  outline: none;
  box-sizing: border-box;
}

.otp-digit:hover {
  border-color: rgba(37, 211, 102, 0.5);
  background-color: var(--bg-surface-subtle);
}

.otp-digit:focus, .otp-digit.is-focused {
  border-color: #25D366 !important;
  background-color: var(--bg-surface-elevated) !important;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.22), 0 4px 18px rgba(37, 211, 102, 0.25) !important;
  transform: translateY(-2px);
}

.otp-digit.has-value {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--bg-surface-elevated);
}

.otp-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 0.75rem;
}

@media (max-width: 480px) {
  .otp-input-group {
    gap: 0.35rem;
  }
  .otp-digit {
    width: 42px;
    height: 54px;
    font-size: 1.4rem;
    border-radius: 10px;
  }
}

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

@keyframes otpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   8. CANLI TEKLİF AKIŞI — 1. HERO ALTI KAYAN BANT (TICKER / MARQUEE)
   ========================================================================== */
.live-ticker-section {
  position: relative;
  width: 100%;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 20;
}

.live-ticker-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 100%;
}

.live-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1.25rem;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: livePulse 1.4s ease-in-out infinite;
}

.live-ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  flex: 1;
  padding: 6px 0;
  margin: -6px 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.live-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 4px 0;
  animation: tickerScroll var(--ticker-speed, 35s) linear infinite;
  will-change: transform;
}

.live-ticker-track:hover {
  animation-play-state: paused;
}

.live-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 1rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-sizing: border-box;
}

.live-ticker-item:hover {
  border-color: var(--color-accent);
  background: var(--bg-surface-elevated);
  box-shadow: 0 0 0 1px var(--color-accent), 0 4px 12px rgba(217, 119, 6, 0.18);
  transform: none;
}

.live-item-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.75rem;
}

.live-item-time {
  color: var(--text-subtle);
  font-size: 0.74rem;
}

/* ==========================================================================
   8. CANLI TEKLİF AKIŞI — 2. CANLI AKTİVİTE ROZETİ (TOAST HUD)
   ========================================================================== */
.live-activity-hud {
  position: fixed;
  bottom: 1.5rem;
  z-index: 850; /* Mobil menü (z-index: 99990) altında kalacak şekilde ayarlandı */
  max-width: 360px;
  width: calc(100% - 3rem);
  pointer-events: none;
}

.live-activity-hud.hud-bottom-left {
  left: 1.5rem;
  right: auto;
}

.live-activity-hud.hud-bottom-right {
  right: 1.5rem;
  left: auto;
}

.live-toast-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-xl);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.4), 0 0 16px rgba(217, 119, 6, 0.12);
  color: var(--text-main);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  animation: liveToastSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.live-toast-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #10B981 0%, #D97706 100%);
}

.live-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.live-toast-content {
  flex: 1;
  min-width: 0;
}

.live-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.live-toast-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-toast-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.live-toast-badge {
  font-weight: 700;
  color: #10B981;
  font-size: 0.8rem;
}

.live-toast-close {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.live-toast-close:hover {
  color: var(--text-main);
}

/* ==========================================================================
   8. CANLI TEKLİF AKIŞI — 3. "SON DEĞERLENEN ARAÇLAR" VİTRİNİ (GRID SECTION)
   ========================================================================== */
.live-grid-section {
  padding: 4.5rem 0;
  background: var(--bg-app);
  position: relative;
}

.live-grid-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

.live-grid-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.live-grid-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.2);
}

.live-grid-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}

.live-grid-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.live-grid-loc {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-grid-badge-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.live-grid-offer-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.15rem;
}

.live-grid-offer-type {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.live-grid-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

/* Animasyonlar */
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.85); }
}

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

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

/* ==========================================================================
   ADMIN TOGGLE SWITCH (Modern iOS / SaaS Style)
   ========================================================================== */
.admin-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.admin-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.admin-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-strong);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.admin-toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.admin-toggle-switch input:checked + .admin-toggle-slider {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.4);
}

.admin-toggle-switch input:checked + .admin-toggle-slider::before {
  transform: translateX(22px);
}

.admin-toggle-switch:hover .admin-toggle-slider {
  filter: brightness(1.08);
}

/* ==========================================================================
   GENEL SİTE & MOBİL RESPONSIVE PRO MAX KURALLARI
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
  
  .hero-section {
    padding: 3rem 0 2rem 0;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }
  
  .hero-section .flex.flex-wrap {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta-btn,
  .hero-section .btn-lg {
    width: 100% !important;
    justify-content: center !important;
    height: 50px !important;
  }
  
  .live-ticker-label {
    margin-left: 0.75rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
  }
  
  .live-grid-section {
    padding: 2.5rem 0;
  }
  
  .card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }
  
  .cta-box {
    padding: 2rem 1.25rem;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .site-footer {
    padding: 3rem 0 1.5rem 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ==========================================================================
   MODERN UNIFIED PHONE INPUT WITH COUNTRY SELECTOR
   ========================================================================== */
.phone-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 50px;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  box-sizing: border-box;
}

.phone-input-group:hover {
  border-color: var(--border-strong);
}

.phone-input-group.is-focused,
.phone-input-group:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3.5px rgba(217, 119, 6, 0.18);
  background-color: var(--bg-surface);
}

/* Ülke Seçim Butonu (Sol Taraf) */
.phone-country-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 12px 0 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
  transition: background-color var(--transition-fast);
  outline: none;
  box-sizing: border-box;
}

.phone-country-btn:hover {
  background-color: var(--bg-surface-subtle);
}

.phone-country-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 15px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.phone-country-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-country-dial {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}

.phone-country-arrow {
  color: var(--text-subtle);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.phone-input-group.is-open .phone-country-arrow {
  transform: rotate(180deg);
  color: var(--color-accent);
}

/* Dikey Ayırıcı Çizgi */
.phone-country-divider {
  width: 1.5px;
  height: 24px;
  background-color: var(--border-subtle);
  flex-shrink: 0;
}

/* Telefon Numarası Giriş Alanı */
.phone-number-field {
  flex: 1 1 auto;
  min-width: 0 !important;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 14px !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  letter-spacing: 0.02em;
  outline: none !important;
  box-sizing: border-box;
}

.phone-number-field::placeholder {
  color: var(--text-subtle);
  font-weight: 500;
}

/* Açılır Ülke Menüsü (Dropdown) */
.phone-country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-width: 320px;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 12px 32px rgba(0, 0, 0, 0.25);
  z-index: 1050;
  overflow: hidden;
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Arama Kutusu */
.phone-dropdown-search-wrap {
  padding: 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  position: relative;
}

.phone-dropdown-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.phone-dropdown-search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}

.phone-dropdown-search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
}

/* Ülke Listesi */
.phone-country-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  overscroll-behavior: contain;
}

.phone-country-list::-webkit-scrollbar {
  width: 5px;
}
.phone-country-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.phone-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  user-select: none;
}

.phone-country-item:hover {
  background-color: var(--bg-surface-subtle);
}

.phone-country-item.is-selected {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.phone-item-flag {
  width: 22px;
  height: 15px;
  border-radius: 2.5px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-item-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-item-name {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-country-item.is-selected .phone-item-name {
  color: var(--color-accent);
  font-weight: 700;
}

.phone-item-dial {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}


