/* GrahaVerse — Ultra-Luxury Cosmic Vedic Design System */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Tiro+Devanagari+Sanskrit&display=swap');

:root {
  /* Core Luxury Cosmic Palette */
  --bg-void: #060813;
  --bg-space: #090D1C;
  --bg-card: rgba(14, 20, 38, 0.78);
  --bg-card-hover: rgba(20, 28, 54, 0.85);
  --bg-card-solid: #0D1226;
  
  --ink: #060813;
  --cream: #0D1226;
  --cream-2: #141B36;
  
  /* Celestial Gold Accents */
  --gold: #F59E0B;
  --gold-bright: #FDE68A;
  --gold-dark: #78350F;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --yellow: #F59E0B;

  /* Jewel Tones */
  --magenta: #E11D48;
  --violet: #7C3AED;
  --orange: #EA580C;
  --mint: #10B981;
  --cyan: #38BDF8;
  --navy: #0B1124;

  /* Text Hierarchy */
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --text-on-dark: #FFFFFF;

  /* Semantic */
  --success: #10B981;
  --danger: #F43F5E;
  --warning: #F59E0B;

  /* Shapes & Layout */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --border: 1px solid rgba(255, 255, 255, 0.08);
  --border-soft: 1px solid rgba(255, 255, 255, 0.05);
  --border-gold: 1px solid rgba(245, 158, 11, 0.35);

  --shadow-flat: 0 8px 30px -4px rgba(0, 0, 0, 0.6);
  --shadow-flat-sm: 0 4px 14px -2px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-void);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.12), transparent 45%),
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.08), transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.06), transparent 50%),
    var(--bg-void);
  background-attachment: fixed;
}

/* Twinkling background starfield */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 12% 20%, #FDE68A 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 32% 65%, #38BDF8 0 1px, transparent 1.6px),
    radial-gradient(circle at 70% 30%, #F59E0B 0 1.4px, transparent 2px),
    radial-gradient(circle at 88% 78%, #10B981 0 1px, transparent 1.6px),
    radial-gradient(circle at 55% 15%, #E2E8F0 0 1px, transparent 1.5px),
    radial-gradient(circle at 15% 85%, #FDE68A 0 1.2px, transparent 1.8px);
  background-size: 380px 380px, 340px 340px, 420px 420px, 300px 300px, 250px 250px, 320px 320px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
  color: #FFFFFF;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
h2 { font-size: 1.65rem; letter-spacing: -0.3px; }
h3 { font-size: 1.2rem; letter-spacing: -0.2px; }

.devanagari {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-weight: 400;
}

.italic { font-style: italic; }
.text-muted { color: var(--text-muted); }

/* Layout Containers */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
}

.container-sm {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 20px;
  position: relative;
  z-index: 1;
}

.grid { display: grid; gap: 16px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: 6px; }
.gap-sm { gap: 10px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* Frosted Glass Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--text);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 14px 40px -10px rgba(245, 158, 11, 0.12);
}

.card-flat { transition: none; }
.card-flat:hover { transform: none; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }

/* Color Card Themes */
.card-magenta {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25) 0%, rgba(14, 20, 38, 0.85) 100%);
  border-color: rgba(225, 29, 72, 0.35);
}
.card-violet {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(14, 20, 38, 0.85) 100%);
  border-color: rgba(124, 58, 237, 0.35);
}
.card-orange {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.25) 0%, rgba(14, 20, 38, 0.85) 100%);
  border-color: rgba(234, 88, 12, 0.35);
}
.card-yellow {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(14, 20, 38, 0.85) 100%);
  border-color: rgba(245, 158, 11, 0.4);
}
.card-mint {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(14, 20, 38, 0.85) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}
.card-navy {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(6, 8, 19, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Cosmic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  background: transparent;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }

.btn-primary, .btn-yellow {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #060813;
  box-shadow: 0 4px 16px -2px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover, .btn-yellow:hover {
  box-shadow: 0 6px 22px -2px rgba(245, 158, 11, 0.5);
}

.btn-magenta {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px -2px rgba(225, 29, 72, 0.35);
}
.btn-violet {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px -2px rgba(124, 58, 237, 0.35);
}
.btn-mint {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #060813;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
}

.btn-lg { padding: 14px 28px; font-size: 14.5px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-block { width: 100%; }

/* Chip / Pill Badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #CBD5E1;
  cursor: pointer;
  transition: all 180ms ease;
  backdrop-filter: blur(8px);
}

.chip:hover {
  transform: translateY(-1px);
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FDE68A;
}
.chip.active {
  background: #F59E0B;
  color: #060813;
  border-color: #F59E0B;
}

.chip-live {
  background: rgba(245, 158, 11, 0.15);
  color: #FDE68A;
  border-color: rgba(245, 158, 11, 0.35);
}
.chip-success {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, 0.35);
}
.chip-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #FDA4AF;
  border-color: rgba(244, 63, 94, 0.35);
}

/* Input Fields */
.field { display: grid; gap: 6px; margin-bottom: 16px; }

label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94A3B8;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  padding: 13px 18px;
  font-family: inherit;
  font-size: 14.5px;
  color: #F8FAFC;
  background: rgba(8, 12, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  outline: none;
  transition: all 180ms ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:focus, select:focus, textarea:focus {
  border-color: #F59E0B;
  background: rgba(12, 17, 36, 0.95);
  box-shadow: 0 0 16px -2px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

textarea { border-radius: var(--radius); min-height: 100px; resize: vertical; }
input::placeholder { color: #64748B; opacity: 0.8; }

/* Status Notifications */
.status {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0;
  min-height: 20px;
  border: 1px solid transparent;
}

.status.success {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, 0.3);
}
.status.error {
  background: rgba(244, 63, 94, 0.15);
  color: #FDA4AF;
  border-color: rgba(244, 63, 94, 0.3);
}
.status.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #FDE68A;
  border-color: rgba(245, 158, 11, 0.3);
}

/* Tabs */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: #94A3B8;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 180ms ease;
}

.tab:hover { color: #FFFFFF; }
.tab.active {
  background: #F59E0B;
  color: #060813;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(11, 16, 33, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

.brand {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 10px #F59E0B;
  animation: pulse 2s ease-in-out infinite;
}

/* Avatar */
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B 0%, #7C3AED 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.avatar-sm { width: 32px; height: 32px; font-size: 12px; }

/* Chat Bubbles */
.msg {
  padding: 13px 18px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 82%;
  animation: msgIn 300ms ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-radius: 18px 18px 4px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.msg-bot {
  align-self: flex-start;
  background: rgba(18, 24, 46, 0.9);
  color: #E2E8F0;
  border-radius: 18px 18px 18px 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Animations */
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.15); opacity: 1; } }

.animate-rise { animation: rise 0.45s ease-out; }
.animate-spin { animation: spin 20s linear infinite; }
.animate-twinkle { animation: twinkle 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 32px; }
.mb-sm { margin-bottom: 10px; }
.mb-md { margin-bottom: 20px; }
.mb-lg { margin-bottom: 32px; }
.hidden { display: none !important; }

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 24px 0;
}

/* Kicker Badge */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #FDE68A;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  animation: pulse 2s ease-in-out infinite;
}

/* Bento Grid */
.bento { display: grid; gap: 16px; }
.bento-2 { grid-template-columns: repeat(2, 1fr); }
.bento-3 { grid-template-columns: repeat(3, 1fr); }
.bento-4 { grid-template-columns: repeat(4, 1fr); }
.bento-hero { grid-template-columns: 1.4fr 1fr; }

/* Stat Card */
.stat {
  padding: 20px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
}

.stat-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(11, 16, 33, 0.95);
  color: #94A3B8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table td {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: #E2E8F0;
}

.table tbody tr:hover { background: rgba(245, 158, 11, 0.06); }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal {
  background: #0B1024;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
}

/* Responsive */
@media (max-width: 768px) {
  .bento-hero, .bento-2, .bento-3, .bento-4 { grid-template-columns: 1fr; }
  .container { padding: 16px; }
  h1 { font-size: 2rem; }
  .navbar { flex-direction: column; gap: 12px; border-radius: var(--radius); }
}
