@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700;800&display=swap');

:root {
  --bg-obsidian: #070a12;
  --bg-surface: #0f1523;
  --gold-primary: #f59e0b;
  --gold-light: #fde68a;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-obsidian);
  color: #f8fafc;
  overflow-x: hidden;
}

.mono-num {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.gold-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
}

.gold-text {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-panel {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-glow {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px -8px rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.55);
}

.crown-border {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(15, 21, 35, 0.95) 45%);
}

/* 10-Digit Positional Matrix Input Boxes */
.pos-box {
  width: 2.35rem;
  height: 2.75rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.1rem;
  background: #070a12;
  border: 1px solid #334155;
  border-radius: 0.65rem;
  color: #fbbf24;
  transition: all 0.15s ease;
}

.pos-box:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  transform: scale(1.06);
}

/* Lo Shu 3x3 Grid Cells */
.loshu-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  background: #090d18;
}

.loshu-active {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.1);
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.animate-pulse-slow {
  animation: pulse-subtle 2.8s infinite ease-in-out;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #070a12;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

@media print {
  body * {
    visibility: hidden;
  }
  #printableInvoice, #printableInvoice * {
    visibility: visible;
  }
  #printableInvoice {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white !important;
    color: black !important;
    padding: 24px;
  }
}
