/* ============================================
   AKASHA — Your Cosmic Blueprint
   Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Cosmic color palette */
  --primary: #6C3CE0;
  --primary-light: #8B5CF6;
  --primary-dark: #5521B5;
  --secondary: #E0A526;
  --secondary-light: #F5C842;

  /* Backgrounds */
  --bg-deep: #0A0A1A;
  --bg-card: #12122A;
  --bg-card-hover: #1A1A3E;
  --bg-surface: #16163A;
  --bg-input: #1E1E42;

  /* Text */
  --text-primary: #F0F0F8;
  --text-secondary: #A0A0C0;
  --text-muted: #6B6B8D;
  --text-accent: #C4B5FD;

  /* Zodiac colors */
  --fire: #EF4444;
  --earth: #22C55E;
  --air: #3B82F6;
  --water: #06B6D4;

  /* Status */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(108, 60, 224, 0.08);
  --shadow-md: 0 4px 16px rgba(108, 60, 224, 0.12);
  --shadow-lg: 0 8px 32px rgba(108, 60, 224, 0.16);
  --shadow-glow: 0 0 20px rgba(108, 60, 224, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Cosmic gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(108, 60, 224, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(224, 165, 38, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { color: var(--text-secondary); max-width: 65ch; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--secondary-light); }

/* --- Layout --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); position: relative; z-index: 1; }
.section { padding: var(--space-3xl) 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* --- Components --- */

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(108, 60, 224, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(108, 60, 224, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: white;
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(108, 60, 224, 0.4);
}
.btn-secondary:hover {
  border-color: var(--primary-light);
  background: rgba(108, 60, 224, 0.1);
  color: white;
}
.btn-gold {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--bg-deep);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* Input */
.input-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.input-group label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.input-field {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid rgba(108, 60, 224, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--duration-fast);
  outline: none;
}
.input-field:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(108, 60, 224, 0.15);
}
.input-field::placeholder { color: var(--text-muted); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-fire { background: rgba(239, 68, 68, 0.15); color: var(--fire); }
.badge-earth { background: rgba(34, 197, 94, 0.15); color: var(--earth); }
.badge-air { background: rgba(59, 130, 246, 0.15); color: var(--air); }
.badge-water { background: rgba(6, 182, 212, 0.15); color: var(--water); }
.badge-premium { background: rgba(224, 165, 38, 0.15); color: var(--secondary); }
.badge-free { background: rgba(16, 185, 129, 0.15); color: var(--success); }

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 4px;
  overflow-x: auto;
}
.tab {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
  white-space: nowrap;
  border: none;
  background: none;
  font-family: var(--font-sans);
}
.tab:hover { color: var(--text-primary); }
.tab.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-lg);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid rgba(108, 60, 224, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Loading */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(108, 60, 224, 0.2);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Toast */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  animation: slideIn 0.3s var(--ease-out);
  min-width: 280px;
}
.toast-success { background: rgba(16, 185, 129, 0.9); color: white; }
.toast-error { background: rgba(239, 68, 68, 0.9); color: white; }
.toast-info { background: rgba(59, 130, 246, 0.9); color: white; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108, 60, 224, 0.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-logo span { color: var(--primary-light); }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }

/* Language switcher */
.lang-switch {
  display: flex;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}
.lang-btn {
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  transition: all var(--duration-fast);
}
.lang-btn.active {
  background: var(--primary);
  color: white;
}

.btn.lang-btn.active {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* --- Hero --- */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(108, 60, 224, 0.1);
  border: 1px solid rgba(108, 60, 224, 0.2);
  font-size: 0.85rem;
  color: var(--text-accent);
  margin-bottom: var(--space-lg);
}
.hero h1 { margin-bottom: var(--space-md); }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light), var(--water));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { max-width: 600px; margin: 0 auto var(--space-xl); font-size: 1.1rem; }
.hero-cta { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* Feature icons */
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}
.feature-icon-astro { background: rgba(108, 60, 224, 0.15); }
.feature-icon-num { background: rgba(224, 165, 38, 0.15); }
.feature-icon-hd { background: rgba(6, 182, 212, 0.15); }
.feature-icon-ai { background: rgba(16, 185, 129, 0.15); }

/* --- Zodiac wheel animation (landing page) --- */
.zodiac-wheel {
  width: 300px; height: 300px;
  margin: var(--space-2xl) auto;
  position: relative;
  animation: slowRotate 60s linear infinite;
}
@keyframes slowRotate { to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-cta { flex-direction: column; align-items: center; }
  .container { padding: 0 var(--space-md); }
  .section { padding: var(--space-2xl) 0; }
  .tabs { gap: 0; }
  .tab { padding: 8px 14px; font-size: 0.8rem; }
  .modal { padding: var(--space-lg); }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .btn { padding: 10px 22px; font-size: 0.9rem; }
  .card { padding: var(--space-lg); }
}

/* ==================== Sidebar + Bottom Nav ==================== */
.app-container { display: flex; min-height: calc(100vh - 60px); }

/* Sidebar (desktop) */
.sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid rgba(108,60,224,0.1);
  padding: var(--space-md) 0;
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 60px; height: calc(100vh - 60px);
  overflow-y: auto;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin: 0 8px;
  border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer; border: none; background: none;
  font-family: var(--font-sans); text-align: left; width: calc(100% - 16px);
  transition: all var(--duration-fast);
}
.sidebar-item:hover { background: rgba(108,60,224,0.08); color: var(--text-primary); }
.sidebar-item.active { background: rgba(108,60,224,0.15); color: var(--primary-light); font-weight: 600; }
.sidebar-item .si-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.sidebar-divider { height: 1px; background: rgba(108,60,224,0.08); margin: 8px 16px; }

.app-content { flex: 1; padding: var(--space-xl) var(--space-lg); max-width: 900px; }

/* Bottom nav (mobile) */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-card); border-top: 1px solid rgba(108,60,224,0.1);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  backdrop-filter: blur(12px);
}
.bottom-nav-inner {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 0 4px;
}
.bottom-nav-inner.row2 {
  margin-top: 2px; border-top: 1px solid rgba(108,60,224,0.06);
  padding-top: 4px;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 8px; border: none; background: none;
  color: var(--text-muted); font-size: 0.65rem; font-family: var(--font-sans);
  cursor: pointer; transition: color var(--duration-fast);
}
.bottom-nav-item .bni-icon { font-size: 1.3rem; }
.bottom-nav-item.active { color: var(--primary-light); }
.bottom-nav-item:hover { color: var(--text-primary); }

@media (max-width: 768px) {
  .sidebar { display: none; }
  .bottom-nav { display: block; }
  /* Bottom nav is 2 rows tall (~120px) — content must clear it fully */
  .app-content { padding: var(--space-md); padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .app-container { flex-direction: column; }
  .dashboard-header h2 { font-size: 1.3rem; }
  .profile-summary { grid-template-columns: repeat(3, 1fr); }
  /* Comfortable touch targets (44px iOS guideline) */
  .btn { min-height: 44px; }
  .bottom-nav-item { min-height: 44px; padding: 4px 2px; justify-content: center; }
  /* Sub-tabs (e.g. numerology systems) scroll instead of overflowing */
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
}

@media (max-width: 480px) {
  /* Primary analysis buttons: full width, easy to tap */
  .tab-content .btn-lg { width: 100%; }
  /* Horary input + button stack vertically on narrow screens */
  #tab-horary .card > div[style*="display: flex"] { flex-direction: column; }
  #tab-horary .card .btn { width: 100%; }
}

/* Mentor style buttons */
.mentor-style { transition: all var(--duration-fast); }
.mentor-style.active {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* === Root Code Scanner === */
#tab-rootcode { overflow-y: auto; -webkit-overflow-scrolling: touch; }
#rootcode-result { overflow-y: auto; max-height: none; }
@media (max-width: 600px) {
  #rootcode-result { padding: var(--space-sm, 8px); }
  #rootcode-result .rc-card { margin-bottom: 12px; }
}

/* === Mobile responsive fixes === */
@media (max-width: 600px) {
  /* Inline grids with 1fr 1fr → 1fr */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Admin panel mobile */
  .admin-layout { padding: var(--space-md); }
  .admin-header { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .admin-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .admin-nav button { white-space: nowrap; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .search-bar { flex-direction: column; }
  .search-bar select { width: 100%; }
  .credit-form-row { flex-direction: column; }
  .credit-form-row select { width: 100%; }
  /* Session cards */
  .session-header { flex-direction: column; gap: 8px; }
  .session-meta { flex-direction: column; gap: 4px; }
  /* Modal content */
  .modal-content { margin: var(--space-md); max-height: 85vh; }
  .modal-actions { flex-direction: column; }
  /* Healing type cards */
  [id*="healing"] [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Pricing cards grid */
  .grid-3 { grid-template-columns: 1fr; }
}

/* === City Picker (Nominatim Autocomplete) === */
.city-picker-wrapper { width: 100%; }
.city-picker-dropdown { 
  transition: opacity 0.15s ease;
}
.city-picker-item {
  transition: background 0.1s ease;
}
.city-picker-item:last-child {
  border-bottom: none !important;
}
.city-picker-item:hover {
  background: rgba(108, 60, 224, 0.08) !important;
}
.city-picker-dropdown::-webkit-scrollbar {
  width: 6px;
}
.city-picker-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.city-picker-dropdown::-webkit-scrollbar-thumb {
  background: rgba(108,60,224,0.2);
  border-radius: 3px;
}

/* === Healing Sessions === */
.healing-type-card {
  transition: all 0.2s ease;
}
.healing-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 60, 224, 0.15);
}
.healing-session-card {
  transition: all 0.2s ease;
}
.healing-session-card:hover {
  border-color: rgba(108,60,224,0.3);
}

/* Textarea styling */
textarea.input-field {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  padding: 12px;
}


/* ================================================
   v50 Mobile/Web Uyum Düzeltmeleri
   ================================================ */

/* Anasayfa: nav mobilde hamburger yerine sadece logo + CTA */
@media (max-width: 768px) {
  .nav-inner { justify-content: space-between; }
  .nav-inner .nav-links a:not(.btn) { display: none; }
  .nav-inner .nav-links .lang-switch { display: flex; }
  .nav-inner .nav-links .btn { display: inline-flex; font-size: 0.8rem; padding: 8px 14px; }
}

/* Q-chip'ler mobilde küçülsün, wrap olsun */
@media (max-width: 480px) {
  .q-chip { font-size: 0.78rem; padding: 8px 14px; margin: 3px; }
}

/* Why section kartları — emoji+text flex-wrap */
@media (max-width: 500px) {
  #neden .card > div { flex-wrap: wrap; }
  #neden .card > div > span { margin-bottom: 4px; }
}

/* Horary öne çıkan kart — mobilde buton tam genişlik */
@media (max-width: 600px) {
  .module-card .btn { width: 100%; text-align: center; margin-top: 12px; }
}

/* Bottom nav "Daha" menüsü — mobilde grid düzeni */
@media (max-width: 768px) {
  .bottom-nav-inner.row2 {
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 4px;
  }
}
@media (max-width: 400px) {
  .bottom-nav-inner.row2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Paket pill'leri mobilde 2'li grid */
@media (max-width: 480px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .plan-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 360px) {
  .pkg-grid { grid-template-columns: 1fr !important; }
  .plan-grid { grid-template-columns: 1fr !important; }
}

/* Blog kartları mobilde tek kolon */
@media (max-width: 600px) {
  .blog-card .blog-img { height: 160px; }
}

/* Pricing sub-tab butonları mobilde eşit genişlik */
@media (max-width: 480px) {
  .pricing-subtab { flex: 1; text-align: center; }
}

/* Settings profil kartları mobilde tek kolon */
@media (max-width: 500px) {
  #settings-profile-summary { grid-template-columns: 1fr !important; }
}

/* Admin mobil düzeltmeleri */
@media (max-width: 600px) {
  .pkg-row { flex-direction: column; }
  .pkg-row input { width: 100% !important; }
}

/* ================================================
   Hamburger Menu (Landing Page Mobile)
   ================================================ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }

  /* Override: show nav-links on landing when mobile-open */
  .nav-inner .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(108,60,224,.2);
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
  }
  .nav-inner .nav-links.mobile-open {
    display: flex !important;
  }
  .nav-inner .nav-links a {
    display: block !important;
    padding: 8px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(108,60,224,.08);
  }
  .nav-inner .nav-links a.btn {
    text-align: center;
    margin-top: 8px;
    border-bottom: none;
  }
  .nav-inner .nav-links .lang-switch {
    display: flex !important;
    justify-content: center;
    padding: 8px 0;
  }
}

/* ================================================
   App Header — Mobile Fix
   Mobilde kredi rozeti + dil + çıkış görünür kalır.
   Landing'in hamburger/display:none kuralları app'i etkilemez.
   ================================================ */
@media (max-width: 768px) {
  .app-navbar .nav-links {
    display: flex !important;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  /* Ana Sayfa/Profil/Blog/SSS mobilde gizli — sadece kredi+dil+çıkış kalır */
  .app-navbar .nav-links .app-nav-link,
  .app-navbar .nav-links a.app-nav-link,
  a.app-nav-link { display: none !important; visibility: hidden !important; width: 0 !important; height: 0 !important; overflow: hidden !important; padding: 0 !important; margin: 0 !important; }
  /* Kompakt kredi rozeti */
  .app-navbar #nav-credit-badge { padding: 4px 10px !important; font-size: 0.8rem !important; }
  /* Kompakt dil değiştirici */
  /* Kompakt çıkış butonu */
  .app-navbar #nav-user-area .btn { padding: 6px 10px; font-size: 0.75rem; min-height: 34px; }
}
@media (max-width: 380px) {
  /* Çok dar ekranda logo küçülür, taşma olmaz */
  .app-navbar .nav-logo { font-size: 1rem; }
}

/* Okunmamış seans mesajı rozeti */
.unread-badge {
  position: absolute; top: 2px; right: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #e5484d; color: #fff;
  border-radius: 999px; font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; pointer-events: none;
}
.bottom-nav-item .unread-badge { top: 0; right: 12px; }

/* Kozmik banner — mobilde kompakt tek şerit */
@media (max-width: 600px) {
  #cosmic-banner {
    padding: 5px 32px 5px 10px !important;
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    gap: 6px !important;
  }
  #cosmic-banner > span:first-child { font-size: 0.85rem !important; }
  #cosmic-banner a { font-size: 0.72rem !important; }
  #cosmic-banner button { font-size: 0.9rem !important; padding: 4px !important; }
}

/* ================================================
   Home Dashboard Grid
   ================================================ */
#home-grid { margin-top: var(--space-lg, 24px); }
.home-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.home-regular {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px;
}
.home-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 12px 10px;
  background: var(--bg-card, #16112b);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  color: var(--text-primary, #e8e4f0);
  text-align: left; cursor: pointer;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212,175,55,0.45);
  box-shadow: 0 6px 24px rgba(108,60,224,0.18);
}
.home-card-lg {
  padding: 16px 14px;
  background: linear-gradient(135deg, var(--bg-card, #16112b) 0%, rgba(108,60,224,0.12) 100%);
  border-color: rgba(212,175,55,0.30);
}
.hc-icon { font-size: 1.2rem; line-height: 1; }
.home-card-lg .hc-icon { font-size: 1.5rem; }
.hc-title { font-weight: 700; font-size: 0.82rem; }
.home-card-lg .hc-title { font-size: 0.95rem; font-family: var(--font-display, inherit); color: var(--primary-light, #d4af37); }
.hc-desc { font-size: 0.72rem; color: var(--text-secondary, #a89fc4); line-height: 1.4; }
.hc-price {
  position: absolute; top: 8px; right: 8px;
  font-size: 0.68rem; font-weight: 700; color: #d4af37;
  background: rgba(212,175,55,0.12);
  padding: 3px 8px; border-radius: 999px;
}
@media (max-width: 600px) {
  .home-featured { grid-template-columns: 1fr; }
  .home-regular { grid-template-columns: repeat(2, 1fr); }
}

/* Mobil: dil yerine ayar ikonu */
.mobile-settings-btn {
  display: none; /* webde gizli */
  background: none; border: none; color: var(--text-secondary);
  font-size: 1.3rem; cursor: pointer; padding: 4px 8px; line-height: 1;
}
.mobile-settings-btn:hover { color: var(--text-primary); }
@media (max-width: 768px) {
  .mobile-settings-btn { display: inline-flex !important; align-items: center; }
}

/* Mobil: featured kartlarda açıklama kısa */
@media (max-width: 600px) {
  .home-card-lg { padding: 16px 14px; }
  .home-card-lg .hc-icon { font-size: 1.6rem; }
  .home-card-lg .hc-title { font-size: 0.95rem; }
  .home-card-lg .hc-desc { font-size: 0.72rem; line-height: 1.3; }
  .home-card-lg .hc-price { font-size: 0.65rem; top: 8px; right: 8px; padding: 2px 6px; }
}
@media (max-width: 380px) {
  .home-featured { gap: 10px; }
  .home-card-lg .hc-desc { display: none; } /* çok dar ekranda açıklama gizle */
}

/* Rektifikasyon formu — mobil uyum */
@media (max-width: 640px) {
  .rect-row {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto;
  }
  .rect-row .rect-date { grid-column: 1; }
  .rect-row .rect-type { grid-column: 2; }
  .rect-row .rect-desc { grid-column: 1 / 3; }
  .rect-row button { position: absolute; display: none; }
  .rect-row { position: relative; padding-right: 0; margin-bottom: 12px !important; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
  .rect-row button { display: block; top: -2px; right: -4px; }

  .rect-section > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  #tab-rectification .card { padding: 14px 12px; }
  #tab-rectification h4 { font-size: 0.82rem !important; }
  #tab-rectification .btn-lg { width: 100%; font-size: 0.95rem; }
}
