/* ============================================================
   Bazi Master — Plain CSS (Tailwind → Native)
   Auto-generated from all HTML files
   Zero external CDN dependency
   ============================================================ */

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

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  line-height: 1.6;
}

/* ── Layout Utilities ─────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }
.grid { display: grid; }

.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.w-full { width: 100%; }
.h-16 { height: 4rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.min-h-screen { min-height: 100vh; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Spacing: Padding ─────────────────────────────────── */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pb-20 { padding-bottom: 5rem; }
.pl-4 { padding-left: 1rem; }

/* ── Spacing: Margin ──────────────────────────────────── */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ── Grid ─────────────────────────────────────────────── */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Borders ──────────────────────────────────────────── */
.border { border: 1px solid; }
.border-2 { border-width: 2px; }
.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-l-2 { border-left-width: 2px; }
.border-l-4 { border-left-width: 4px; }

.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }

/* ── Colors ───────────────────────────────────────────── */
.bg-\[\\#0a0a0a\] { background-color: #0a0a0a; }
.bg-gray-800 { background-color: #1f2937; }

.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-green-400 { color: #4ade80; }
.text-red-400 { color: #f87171; }
.text-yellow-400 { color: #facc15; }
.line-through { text-decoration: line-through; }

/* ── Border Color (custom: gold) ──────────────────────── */
.border-gold { border-color: #d4a03c; }
.focus\:border-gold:focus { border-color: #d4a03c; }
.hover\:border-gold:hover { border-color: #d4a03c; }
.hover\:text-gold:hover { color: #d4a03c; }

/* ── Text Sizing ──────────────────────────────────────── */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-md { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-\[10px\] { font-size: 10px; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-\[\.3em\] { letter-spacing: 0.3em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }

/* ── Font Weight ──────────────────────────────────────── */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ── Rounded ──────────────────────────────────────────── */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* ── Shadows ──────────────────────────────────────────── */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -4px rgba(0,0,0,0.3); }

/* ── H-6px ────────────────────────────────────────────── */
.h-\[6px\] { height: 6px; }

/* ── Focus / Outline ──────────────────────────────────── */
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* ── Hover Effects ────────────────────────────────────── */
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:underline:hover { text-decoration: underline; }

/* ── Transitions ──────────────────────────────────────── */
.transition { transition: all 0.2s ease-in-out; }
.transition-all { transition: all 0.3s ease-in-out; }

/* ── Underline (gold-themed) ──────────────────────────── */
.underline-gold {
  text-decoration: underline;
  text-decoration-color: #d4a03c;
  text-decoration-thickness: 2px;
}

/* ── Custom Component Classes ─────────────────────────── */
.card {
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.card:hover {
  border-color: #d4a03c;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,160,60,0.15);
}

.btn-gold {
  background: linear-gradient(135deg, #d4a03c 0%, #b8860b 100%);
  color: #0a0a0a;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #e6b44d 0%, #d4a03c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212,160,60,0.4);
}
.btn-gold:active {
  transform: translateY(0);
}

.glow-box {
  position: relative;
  overflow: hidden;
}
.glow-box::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, transparent, #d4a03c33, transparent);
  z-index: -1;
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.step-indicator {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: #1f2937;
  border: 2px solid #374151;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.875rem;
  transition: all 0.3s ease;
}
.step-indicator.active {
  background: #d4a03c;
  border-color: #d4a03c;
  color: #0a0a0a;
}
.step-indicator.done {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.step-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: #374151;
  transition: all 0.3s ease;
}
.step-dot.active { background: #d4a03c; transform: scale(1.5); }
.step-dot.done { background: #22c55e; }

.chip {
  display: inline-flex; align-items: center;
  padding: 0.375rem 0.75rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover {
  border-color: #d4a03c;
  color: #d4a03c;
}
.chip.active {
  background: #d4a03c22;
  border-color: #d4a03c;
  color: #d4a03c;
}

.city-dropdown {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  max-height: 20rem;
  overflow-y: auto;
  z-index: 50;
  display: none;
}
.city-dropdown.show { display: block; }

.region-group {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #374151;
}

.city-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.city-item:hover {
  background: #374151;
  color: #d4a03c;
}

.fade-in {
  animation: fade-in 0.5s ease-in;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* PDF-specific (for report export) */
.pdf-blind-box {
  background: #1a1a1a;
  border: 1px dashed #d4a03c;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.pdf-strength-box {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 2px solid #d4a03c;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 1rem 0;
}

.pdf-lucky-el {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #1f2937;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
}

/* ── Custom Dark Theme Variables ──────────────────────── */
.bg-bg-card { background-color: #1C1833; }
.bg-bg-input { background-color: #111827; }

.shadow-gold\/10 { box-shadow: 0 4px 6px -1px rgba(212,160,60,0.1); }
.border-gold\/50 { border-color: #d4a03c80; }

.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.active { opacity: 0.5; cursor: not-allowed; }

.md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* Gold text shorthand */
.text-gold { color: #d4a03c; }
.gold { color: #d4a03c; }
