/* ==========================================================================
   Vertex: Birth Chart Astrology - Web Design System & CSS
   ========================================================================== */

:root {
  --bg-main: #EFEFF2;
  --bg-surface: #FFFFFF;
  --bg-panel: #F8FAFC;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --color-primary: #0F172A;
  --color-accent: #2563EB;
  --color-accent-hover: #1D4ED8;
  --color-cyan: #0284C7;
  --color-gold: #D97706;
  --color-crimson: #DC2626;
  --color-emerald: #059669;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 1. Header */
.app-header {
  height: 64px;
  background-color: #0B1120;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-box {
  background: linear-gradient(135deg, #0284C7, #2563EB);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 2px;
  color: #FFFFFF;
}

.brand-title h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.version-tag {
  font-size: 11px;
  color: var(--text-light);
  font-family: var(--font-mono);
}

.partner-link {
  margin-left: 10px;
  color: #7DD3FC;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.partner-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.glow-button {
  background: linear-gradient(135deg, #2563EB, #0284C7);
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.4);
}

.glow-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

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

.btn-stripe {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: #FFFFFF;
  width: 100%;
  justify-content: center;
}

.btn-stripe:hover {
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-stripe-confirm {
  background-color: #4F46E5;
  color: #FFFFFF;
  font-weight: 700;
  padding: 10px 20px;
}

.btn-google {
  background-color: #FFFFFF;
  color: #374151;
  border: 1px solid #D1D5DB;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  justify-content: center;
  margin-top: 10px;
}

.btn-google:hover {
  background-color: #F9FAFB;
}

.w-full {
  width: 100%;
}

/* User Pill & Menu Wrapper */
.user-menu-wrapper {
  position: relative;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.07);
  padding: 4px 12px 4px 6px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
}

.user-pill:hover, .user-pill:focus-visible {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.chevron-icon {
  color: #94A3B8;
  transition: transform 0.2s;
}

.user-menu-wrapper.open .chevron-icon {
  transform: rotate(180deg);
}

.avatar-circle {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #FFFFFF;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  color: #F8FAFC;
}

.user-badge {
  font-size: 10px;
  color: #94A3B8;
  font-family: var(--font-mono);
}

/* User Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-subtle);
  display: none;
  flex-direction: column;
  padding: 8px 0;
  z-index: 1000;
  animation: modalIn 0.15s ease-out;
}

.user-menu-wrapper.open .user-dropdown {
  display: flex;
}

.dropdown-header {
  padding: 10px 16px 8px;
  display: flex;
  flex-direction: column;
}

.dropdown-header strong {
  font-size: 13px;
  color: #0F172A;
}

.dropdown-header span {
  font-size: 11px;
  color: #64748B;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-divider {
  height: 1px;
  background-color: #E2E8F0;
  margin: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background-color: #F1F5F9;
  color: #0F172A;
}

.dropdown-item.logout {
  color: #DC2626;
  font-weight: 600;
}

.dropdown-item.logout:hover {
  background-color: #FEF2F2;
  color: #B91C1C;
}

.dropdown-item.login {
  color: #2563EB;
  font-weight: 600;
}

.dropdown-item.login:hover {
  background-color: #EFF6FF;
  color: #1D4ED8;
}

/* Auth Modal Tabs & Error Box */
.auth-tabs {
  display: flex;
  background: #F1F5F9;
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 16px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-error-box {
  background-color: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-bottom: 14px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

/* 2. Ana Düzen */
.viewport-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 64px);
  overflow: hidden;
}

/* Canvas Alanı */
.canvas-container {
  flex: 1;
  position: relative;
  background-color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#astrologyCanvas {
  display: block;
  cursor: grab;
}

#astrologyCanvas:active {
  cursor: grabbing;
}

.floating-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.btn-ctrl {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s;
}

.btn-ctrl:hover {
  background: #F1F5F9;
}

.status-ribbon {
  position: absolute;
  bottom: 16px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.status-indicator.live {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}

/* 3. Yan Panel */
.side-panel {
  width: 380px;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.03);
}

.panel-section {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-title h3 {
  font-size: 12px;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--text-muted);
}

.tab-indicator {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--color-cyan);
  background: #E0F2FE;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Tablo */
.planets-table-container {
  overflow-x: auto;
}

.planets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.planets-table th {
  text-align: left;
  padding: 6px 8px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 11px;
  border-bottom: 1px solid var(--border-subtle);
}

.planets-table td {
  padding: 8px;
  border-bottom: 1px solid #F1F5F9;
}

.planet-name-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.planet-glyph-icon {
  font-size: 14px;
}

.house-pill {
  display: inline-block;
  background: #F1F5F9;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #475569;
}

/* Açı Listesi */
.aspects-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aspect-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: var(--bg-panel);
  border-radius: var(--radius-sm);
  font-size: 12px;
  border-left: 3px solid #CBD5E1;
}

.aspect-item.hard {
  border-left-color: var(--color-crimson);
}

.aspect-item.soft {
  border-left-color: var(--color-accent);
}

.aspect-orb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Pro Banner */
.banner-pro {
  background: linear-gradient(135deg, #1E293B, #0F172A);
  color: #FFFFFF;
  margin: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #38BDF8;
}

.banner-content p {
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.45;
  margin-bottom: 14px;
}

/* Modallar */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

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

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: 92vw;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}

.modal-large {
  width: 720px;
}

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

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

.modal-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

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

.modal-body {
  padding: 24px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

#modalAiReport .modal-footer button#btnDownloadReportPdf,
#modalAiReport .modal-footer button#btnShareReport {
  background-color: #0F172A !important;
  color: #FFFFFF !important;
  border: 1px solid #0F172A !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}

#modalAiReport .modal-footer button#btnDownloadReportPdf:hover,
#modalAiReport .modal-footer button#btnShareReport:hover {
  background-color: #1E293B !important;
  border-color: #1E293B !important;
}

.notice-box {
  background-color: #EFF6FF;
  border-left: 4px solid var(--color-accent);
  padding: 12px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #1E3A8A;
  margin-bottom: 18px;
  line-height: 1.4;
}

.divider-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin: 14px 0;
  position: relative;
}

/* Stripe Paywall */
.stripe-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.badge-tag {
  background: #E0E7FF;
  color: #4338CA;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.plan-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-display);
}

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

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 20px;
}

.features-list strong {
  color: var(--text-main);
}

/* AI Rapor Çıktısı */
.ai-header-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1px;
  color: #0284C7;
}

.report-meta-bar {
  display: flex;
  gap: 20px;
  background: var(--bg-panel);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  border: 1px solid var(--border-subtle);
}

.report-content {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #1E293B;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  max-height: 380px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Platform Indicator Badge */
.platform-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.platform-indicator:hover {
  background: rgba(255, 255, 255, 0.14);
}

.platform-icon {
  font-size: 16px;
}

.platform-text {
  display: flex;
  flex-direction: column;
}

.platform-label {
  font-size: 9.5px;
  color: #94A3B8;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

.platform-val {
  font-size: 11.5px;
  color: #38BDF8;
  font-weight: 700;
}

/* Store Modal Styles */
.store-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.store-tag {
  background: #DCFCE7;
  color: #15803D;
  font-weight: 700;
}

.store-alert-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 18px;
}

.btn-store-confirm {
  background: #059669;
  color: #FFFFFF;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-store-confirm:hover {
  background: #047857;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Credits Tag in Button */
.credits-pill-tag {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-left: 4px;
}

/* Membership Live Card */
.membership-live-card {
  background-color: #F8FAFC;
  border-bottom: 1px solid var(--border-subtle);
}

.live-pulse-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
  animation: pulseLive 2s infinite ease-in-out;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.membership-details-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFFFF;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.tier-label {
  color: var(--text-muted);
  font-weight: 500;
}

.tier-val {
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.tier-val.premium {
  color: #D97706;
}

.tier-sub {
  font-size: 11px;
  color: var(--color-cyan);
  font-weight: 600;
}

.credits-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.credits-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #0284C7);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.membership-note {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* ==========================================================================
   Google Ads (Free Tier Showcase)
   ========================================================================== */
.google-ad-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 12px;
  transition: all 0.3s ease;
}

.ad-label-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ad-sponsor-tag {
  color: #64748B;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ad-remove-tag {
  color: #F59E0B;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
  user-select: none;
}

.ad-remove-tag:hover {
  color: #FBBF24;
  text-decoration: underline;
}

.ad-slot-wrapper {
  min-height: 80px;
  width: 100%;
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ad-placeholder-visual {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #94A3B8;
  width: 100%;
}

.ad-placeholder-icon {
  font-size: 22px;
  opacity: 0.85;
}

.ad-placeholder-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-placeholder-text strong {
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 600;
}

.ad-placeholder-text small {
  color: #64748B;
  font-size: 10.5px;
  line-height: 1.3;
}

/* Modal Inside Ad (Free Reports) */
.modal-ad-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Global Language Selector Dropdown */
.lang-selector-wrapper {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: #F8FAFC;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.lang-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
}

.lang-selector-wrapper.open .lang-btn {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: var(--color-accent);
}

.lang-selector-wrapper.open .chevron-icon {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 170px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-subtle);
  display: none;
  flex-direction: column;
  padding: 6px 0;
  z-index: 1000;
  animation: modalIn 0.15s ease-out;
}

.lang-selector-wrapper.open .lang-dropdown {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #1E293B;
  cursor: pointer;
  transition: background 0.12s ease;
}

.lang-option:hover {
  background-color: #F1F5F9;
  color: #2563EB;
}

.lang-option.active {
  background-color: #EFF6FF;
  color: #2563EB;
  font-weight: 700;
}

/* ==========================================================================
   Mobile Responsive Navigation & Layout System
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  /* Header Compact Adaptation */
  .app-header {
    height: 56px;
    padding: 0 10px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
    flex-shrink: 0;
  }

  .logo-box {
    padding: 3px 8px;
  }

  .logo-text {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .brand-title h1 {
    font-size: 12.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
  }

  .version-tag {
    display: none;
  }

  #btnOpenProfile {
    padding: 6px 8px;
    font-size: 12px;
  }

  #btnOpenProfile span {
    display: none;
  }

  #btnAiAnalysis {
    padding: 6px 10px;
    font-size: 11.5px;
    gap: 4px;
  }

  #creditsPillTag {
    font-size: 9px;
    padding: 1px 4px;
    margin-left: 2px;
  }

  .lang-btn {
    padding: 5px 6px;
    font-size: 12px;
    gap: 3px;
  }

  .lang-code {
    display: none;
  }

  .user-pill {
    padding: 3px 6px;
    gap: 5px;
  }

  .user-meta {
    display: none;
  }

  /* Viewport Layout on Mobile */
  .viewport-layout {
    flex-direction: column;
    height: calc(100vh - 56px - 56px);
    position: relative;
    overflow: hidden;
  }

  .canvas-container {
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
  }

  .side-panel {
    width: 100%;
    height: 100%;
    border-left: none;
    box-shadow: none;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
  }

  /* Active Tab Switching */
  .viewport-layout.show-side-panel .canvas-container {
    display: none !important;
  }

  .viewport-layout.show-side-panel .side-panel {
    display: flex !important;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: #0B1120;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
  }

  .mobile-tab-btn {
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    color: #94A3B8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 4px 0;
  }

  .mobile-tab-btn.active {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.08);
  }

  .mobile-tab-btn svg {
    stroke: currentColor;
  }

  /* Floating Controls (Zoom/Reset) */
  .floating-controls {
    top: 10px;
    right: 10px;
  }

  .btn-ctrl {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .app-header {
    height: auto;
    min-height: 96px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    row-gap: 6px;
  }

  .brand {
    width: 100%;
    min-width: 0;
  }

  .brand-title {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 6px;
  }

  .brand-title h1 {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .partner-link {
    margin-left: 0;
    font-size: 10px;
  }

  #btnHeaderLogin {
    display: none !important;
  }

  #aiBtnText {
    display: none;
  }

  .viewport-layout {
    height: calc(100vh - 96px - 56px);
  }

  /* Status Ribbon */
  .status-ribbon {
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 9px;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Modals on Mobile */
  .modal-card {
    width: 95vw;
    max-height: 88vh;
    border-radius: var(--radius-md);
  }

  .modal-header {
    padding: 14px 18px;
  }

  .modal-body {
    padding: 16px;
    max-height: 72vh;
    overflow-y: auto;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}


/* Modal Profile Overflow Override to prevent clipping city dropdown */
#modalProfile .modal-card {
  overflow: visible !important;
}

#modalProfile .modal-body {
  overflow: visible !important;
}

/* City Geocoding Autocomplete Dropdown */
.city-dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  background: #FFFFFF !important;
  border: 1.5px solid #0284C7 !important;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  z-index: 999999 !important;
  padding: 4px;
}

.city-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 8px;
}

.city-dropdown-item:hover,
.city-dropdown-item.active {
  background: #F0F9FF;
}

.city-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}

.city-pin-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E0F2FE;
  color: #0284C7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.city-names {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

.city-primary-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-sub-name {
  font-size: 11.5px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-coords-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #0369A1;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.city-dropdown-empty {
  padding: 12px;
  text-align: center;
  color: #64748B;
  font-size: 12.5px;
}

/* 2 Opsiyonlu Rapor Seçim Modalı */
.report-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .report-type-cards {
    grid-template-columns: 1fr;
  }
}

.report-type-card {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px 16px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.report-type-card:hover {
  border-color: #0284C7;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.1);
}

.report-type-card.featured {
  border: 2px solid #0284C7;
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.15);
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  color: #0284C7;
  background: #E0F2FE;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-badge.featured-badge {
  color: #FFFFFF;
  background: linear-gradient(90deg, #0284C7, #2563EB);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px 0;
}

.card-meta {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
  margin: 0 0 12px 0;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: #334155;
  flex-grow: 1;
}

.card-features li {
  line-height: 1.4;
}

.card-features li strong {
  color: #0284C7;
}

.report-details-banner {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-details-banner .banner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-details-banner .banner-tag {
  font-weight: 700;
  color: #0284C7;
}

/* 2 Opsiyonlu Seçim Butonları — Yüksek Kontrast & Net Okunabilirlik */
.btn-standard-action {
  background-color: #0F172A !important;
  color: #FFFFFF !important;
  border: 1px solid #0F172A !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 11px 16px !important;
  border-radius: 8px !important;
  width: 100% !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2) !important;
}

.btn-standard-action:hover {
  background-color: #1E293B !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3) !important;
}

.btn-detailed-action {
  background: linear-gradient(135deg, #0284C7, #2563EB) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  padding: 11px 16px !important;
  border-radius: 8px !important;
  width: 100% !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4) !important;
  transition: all 0.2s ease !important;
}

.btn-detailed-action:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
}
