/* ============================================================
   G-LINK — SONPARI-STYLE PROFESSIONAL DESIGN
   Clean, Modern, Beautiful — Inspired by Sonpari
   Professional gold gifting platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a202c;
  background: var(--gradient-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a202c;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }

p {
  margin-bottom: 1rem;
  color: #4a5568;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

/* ── Colors & Gradients ────────────────────────────────────── */
:root {
  --primary: #D4AF37;
  --secondary: #FFD700;
  --accent: #F4D03F;
  --gold: #FFD700;
  --gold-dark: #D4AF37;
  --gold-pale: #F7E8BC;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg-light: #ffffff;
  --bg-white: #ffffff;
  --bg-black: #000000;
  --bg-dark: #1a1a1a;
  --shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
  --shadow-lg: 0 20px 40px rgba(212, 175, 55, 0.3);
  --gradient-primary: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
  --gradient-accent: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
  --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1a202c;
  background: var(--gradient-bg);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #f7fafc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  min-width: 160px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

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

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.5);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-black);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Features Grid ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
}

/* ── Stats Section ─────────────────────────────────────────── */
.stats-section {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 4rem 2rem;
  margin: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-section h4 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #ffd700;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  color: rgba(255,255,255,0.6);
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #D4AF37;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--bg-white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Responsive Design ────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }
  
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 80vh;
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-delay {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ── Utility Classes ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ── Legacy Support (keeping existing functionality) ──────── */
.gold-card, .vault-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.action-btn {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.action-btn:hover {
  transform: translateY(-5px);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(212,168,67,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(212,168,67,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30 L30 0 L60 30 L30 60 Z' fill='none' stroke='rgba(212,168,67,0.025)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

/* ── Selection ─────────────────────────────────────────────── */
::selection {
  background: rgba(212,168,67,0.25);
  color: var(--gold-light);
}

/* ── Page wrapper ──────────────────────────────────────────── */
.container, main, .page-content {
  position: relative;
  z-index: 1;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { color: var(--text-secondary); line-height: 1.7; }

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--gold-light); }

/* ── Navigation ────────────────────────────────────────────── */
nav, .navbar, header nav, .nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,7,6,0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.3;
}

/* Logo */
nav .logo, .nav-logo, nav a[href*="index"] img,
nav img, .navbar-brand {
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(212,168,67,0.4));
  transition: filter var(--transition-base);
}
nav .logo:hover, nav img:hover {
  filter: drop-shadow(0 0 14px rgba(212,168,67,0.7));
}

/* Nav links */
nav a:not(.btn):not([class*="button"]) {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
nav a:not(.btn):not([class*="button"]):hover {
  color: var(--gold-light);
  background: var(--gold-glow);
}

/* Username badge in nav */
nav .user-badge, nav .username, nav span.user {
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

/* ── Test Mode Banner ──────────────────────────────────────── */
.test-banner, [class*="test-mode"], [class*="testmode"],
.banner-top, .alert-banner {
  background: linear-gradient(90deg, #8B4513, #B8680A, #D4A843, #B8680A, #8B4513);
  background-size: 300% 100%;
  animation: bannerShimmer 4s linear infinite;
  color: var(--bg-void);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(212,168,67,0.4);
}

@keyframes bannerShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ── Buttons ───────────────────────────────────────────────── */
button, .btn, [class*="btn-"], input[type="submit"],
input[type="button"], a.button {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* Primary gold button */
button.primary, .btn-primary, .btn-gold,
button[class*="gold"], .pay-btn, .cta-btn,
button:not([class]):not([type="button"]):not(.btn-secondary):not(.btn-outline):not(.btn-danger):not(.btn-ghost):not(.btn-view):not(.btn-share) {
  background: linear-gradient(135deg, #C49530 0%, #E8B84B 40%, #D4A843 60%, #B8842A 100%);
  color: var(--bg-void);
  box-shadow: 0 4px 20px rgba(212,168,67,0.30), inset 0 1px 0 rgba(255,255,255,0.15);
}

button.primary::before, .btn-primary::before, .btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

button.primary:hover, .btn-primary:hover, .btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,168,67,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}
button.primary:hover::before, .btn-primary:hover::before {
  opacity: 1;
}
button.primary:active, .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(212,168,67,0.25);
}

/* Secondary / Outline button */
button.secondary, .btn-secondary, .btn-outline,
.btn-view, button[class*="outline"] {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  box-shadow: none;
}
button.secondary:hover, .btn-secondary:hover, .btn-outline:hover, .btn-view:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: var(--gold-glow);
  transform: translateY(-1px);
}

/* Share / Success button (green) */
.btn-share, button.share, button[class*="share"] {
  background: linear-gradient(135deg, #2E7D4F, #4CAF7A);
  color: #fff;
  box-shadow: 0 4px 16px rgba(76,175,122,0.25);
}
.btn-share:hover, button.share:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(76,175,122,0.35);
}

/* Danger / Logout button */
button.danger, .btn-danger, .logout-btn,
button[id*="logout"], a[href*="logout"],
button[onclick*="logout"] {
  background: rgba(224,82,82,0.12);
  border: 1px solid rgba(224,82,82,0.3);
  color: #E05252;
}
button.danger:hover, .logout-btn:hover {
  background: rgba(224,82,82,0.2);
  border-color: rgba(224,82,82,0.5);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* Large CTA buttons */
.btn-lg, button.large, .cta-button {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  letter-spacing: 0.04em;
}

/* Pay & Send Blessing — full width gold */
.pay-blessing-btn, [onclick*="pay"], button[id*="pay"],
button[id*="send-blessing"], button[class*="pay"] {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #C49530 0%, #E8B84B 45%, #D4A843 55%, #B8842A 100%);
  color: var(--bg-void);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 32px rgba(212,168,67,0.35);
  letter-spacing: 0.04em;
}
.pay-blessing-btn:hover {
  box-shadow: 0 10px 40px rgba(212,168,67,0.50);
  transform: translateY(-2px);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card, [class*="-card"], .panel, [class*="-panel"],
.vault-card, .stat-card, .action-card, .blessing-card,
.profile-card, .transaction-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before, [class*="-card"]::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,67,0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover, [class*="-card"]:hover {
  border-color: var(--border-mid);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.card:hover::before, [class*="-card"]:hover::before {
  opacity: 1;
}

/* ── Gold Vault Card ───────────────────────────────────────── */
.vault-card, .gold-vault, [class*="vault"],
.balance-card {
  background: linear-gradient(145deg, #1A1608 0%, #211C0A 40%, #1A1608 100%);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.vault-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212,168,67,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.vault-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-light), var(--gold-primary), transparent);
  opacity: 0.5;
}

/* Gold amount display */
.gold-amount, .vault-amount, [class*="gold-grams"],
.balance-grams, .amount-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: -0.01em;
  line-height: 1;
  text-shadow: 0 0 40px rgba(212,168,67,0.4);
}

.vault-value, .inr-value, .amount-inr {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

.vault-rate, .price-rate, .per-gram {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Powered by badge */
.powered-badge, [class*="powered-by"], .chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212,168,67,0.08);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ── Stat Cards ────────────────────────────────────────────── */
.stat-card, .stats-grid > *, .metrics-card,
.stat-block, [class*="stat-"] {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
}
.stat-card:hover {
  border-color: var(--border-mid);
  background: var(--bg-card-hover);
}

.stat-number, .stat-value, .metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--gold-primary);
  line-height: 1;
  display: block;
}

.stat-label, .metric-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Stat icon */
.stat-icon, .card-icon, .stat-card svg {
  color: var(--gold-primary);
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

/* ── Grid Layouts ──────────────────────────────────────────── */
.stats-grid, .actions-grid, .grid-3, .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ── Action Cards (Send Gold, Profile, Add Funds) ──────────── */
.action-card, .quick-action, [class*="action-"] {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  transition: all var(--transition-spring);
}

.action-card:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px) scale(1.01);
}

.action-card .action-title, .action-card strong, .action-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.action-card .action-desc, .action-card p, .action-card small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Section Headers ───────────────────────────────────────── */
.section-title, .section-header h2, .section-header h3,
[class*="-title"] h2, [class*="-title"] h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-mid), transparent);
  margin-left: 0.5rem;
}

/* ── Blessing Pages Cards ──────────────────────────────────── */
.blessing-card, .blessing-page-card, [class*="blessing-"] {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--transition-base);
  position: relative;
}

.blessing-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.blessing-card .page-owner, .blessing-card h3, .blessing-card .owner-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.blessing-card .page-type, .blessing-card .event-type {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Blessing stats row */
.blessing-stats, .page-stats, .blessing-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.blessing-stat-item, .stat-item {
  text-align: center;
}

.blessing-stat-value, .stat-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.blessing-stat-label, .stat-item span {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Forms & Inputs ────────────────────────────────────────── */
.form-group, .input-group, [class*="form-field"] {
  margin-bottom: 1.25rem;
}

label, .form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: all var(--transition-base);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold-primary);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.12), 0 2px 8px rgba(0,0,0,0.3);
}

input::placeholder, textarea::placeholder {
  color: var(--text-dim);
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4A843' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* ── Amount Selector Pills ─────────────────────────────────── */
.amount-grid, .amount-options, .amount-selector,
[class*="amount-grid"], [class*="amounts"] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.amount-btn, .amount-option, [class*="amount-btn"],
.amount-grid button, .amount-options button {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  letter-spacing: 0.02em;
}

.amount-btn:hover, .amount-option:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: var(--gold-glow);
}

.amount-btn.active, .amount-btn.selected, .amount-option.active,
.amount-btn[data-selected="true"] {
  background: linear-gradient(135deg, rgba(212,168,67,0.2), rgba(212,168,67,0.08));
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 2px 12px rgba(212,168,67,0.2);
}

/* ── Transaction Items ─────────────────────────────────────── */
.transaction-item, .tx-item, [class*="transaction-"],
.recent-tx li, .tx-list > * {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
  transition: background var(--transition-fast);
}

.transaction-item:last-child, .tx-item:last-child { border-bottom: none; }

.transaction-item:hover {
  background: transparent;
}

.tx-type, .transaction-type, .tx-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold-primary);
}

.tx-date, .transaction-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.tx-link, .solana-link, a[href*="solana"], a[href*="explorer"] {
  font-size: 0.7rem;
  color: var(--info);
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
}
.tx-link:hover { color: #7BB8E8; text-decoration: underline; }

.tx-amount, .transaction-amount {
  text-align: right;
  flex-shrink: 0;
}

.tx-grams, .amount-gold {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tx-inr, .amount-inr-small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Profile Section ───────────────────────────────────────── */
.profile-section, .profile-card, .my-profile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.profile-row, .profile-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
}
.profile-row:last-child { border-bottom: none; }

.profile-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 100px;
}

.profile-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 400;
  text-align: right;
  word-break: break-all;
}

/* GRAIL ID — monospace */
.profile-row:has([class*="grail"]) .profile-value,
.profile-row:has([class*="wallet"]) .profile-value,
.wallet-address, .grail-id {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--gold-deep);
  letter-spacing: 0.03em;
}

/* ── Blessing Page (Public View) ───────────────────────────── */
.blessing-hero, .page-hero, .blessing-header {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.blessing-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(212,168,67,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Send Gold Blessing Form Card */
.send-blessing-card, .blessing-form, [class*="send-gold"] {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-gold);
}

.send-blessing-card h3, .blessing-form h3, .form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Blessings Received ────────────────────────────────────── */
.blessings-received, .received-list, [class*="received"] {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

.blessing-item, .received-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  transition: all var(--transition-fast);
}
.blessing-item:last-child { margin-bottom: 0; }
.blessing-item:hover {
  border-color: var(--border-mid);
  background: var(--bg-card);
}

.blessing-sender {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.blessing-message {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0.2rem 0;
}

.blessing-value-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blessing-gold-amount {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-primary);
  text-align: right;
  flex-shrink: 0;
}

/* ── G-Link Nav (alternate nav style) ─────────────────────── */
.glink-nav, .app-nav, [class*="app-header"] {
  background: rgba(8,7,6,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand, .brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Index / Landing Page ──────────────────────────────────── */
.hero-section, .landing-hero, .hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
}

.hero-title, .hero h1, .landing-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-title span, .hero h1 span, .highlight {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s ease-in-out infinite;
}

@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.hero-subtitle, .hero p, .landing-hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons, .cta-buttons, .hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Features / Problem grid */
.features-grid, .problems-grid, .innovation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 1rem 0;
}

.feature-card, .problem-card, .innovation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-base);
}
.feature-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.feature-icon, .problem-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title, .problem-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

/* Market stats */
.market-grid, .metrics-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.market-item, .metric-item {
  text-align: center;
  padding: 1rem;
}

.market-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold-primary);
  display: block;
  line-height: 1;
}

/* ── Login / Signup Forms ──────────────────────────────────── */
.auth-page, .login-page, .signup-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card, .login-card, .signup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-gold-lg);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold-primary));
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* ── Section Wrappers ──────────────────────────────────────── */
section, .section, [class*="-section"] {
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Badges & Tags ─────────────────────────────────────────── */
.badge, .tag, .chip, [class*="-badge"], [class*="-tag"] {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-gold, .tag-gold {
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.3);
  color: var(--gold-primary);
}

.badge-success, .tag-success {
  background: var(--success-bg);
  border: 1px solid rgba(76,175,122,0.3);
  color: var(--success);
}

.badge-info, .tag-connected {
  background: rgba(91,155,213,0.1);
  border: 1px solid rgba(91,155,213,0.3);
  color: var(--info);
}

/* GRAIL Connected badge */
[class*="connected"], .grail-status {
  background: rgba(76,175,122,0.08);
  border: 1px solid rgba(76,175,122,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Alerts & Messages ─────────────────────────────────────── */
.alert, .message, .notification, [class*="alert-"] {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid rgba(76,175,122,0.3);
  color: var(--success);
}

.alert-error, .alert-danger {
  background: var(--error-bg);
  border: 1px solid rgba(224,82,82,0.3);
  color: var(--error);
}

.alert-info {
  background: rgba(91,155,213,0.08);
  border: 1px solid rgba(91,155,213,0.25);
  color: var(--info);
}

.alert-gold {
  background: rgba(212,168,67,0.08);
  border: 1px solid rgba(212,168,67,0.25);
  color: var(--gold-primary);
}

/* ── Loading States ────────────────────────────────────────── */
.loading, .spinner, [class*="loading"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.875rem;
}

.loading::before {
  content: '';
  width: 18px; height: 18px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Empty States ──────────────────────────────────────────── */
.empty-state, .no-data, [class*="empty"] {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-state::before {
  content: '✦';
  display: block;
  font-size: 2rem;
  color: var(--gold-deep);
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* ── Footer ────────────────────────────────────────────────── */
footer, .footer, .page-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.2;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--gold-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Dividers ──────────────────────────────────────────────── */
hr, .divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
  margin: 1.5rem 0;
}

/* ── Modal / Overlay ───────────────────────────────────────── */
.modal, .overlay, .dialog {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content, .dialog-content {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-gold-lg);
  animation: modalIn 0.25s var(--transition-spring);
}

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

/* ── Quick Actions (bottom of dashboard) ──────────────────── */
.quick-actions, [class*="quick-actions"] {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

.quick-actions .action-btn, .quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  margin-bottom: 0.75rem;
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.03em;
}
.quick-actions .action-btn:last-child { margin-bottom: 0; }
.quick-actions .action-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: var(--gold-glow);
}

/* ── Page-specific: Dashboard ──────────────────────────────── */
.dashboard-grid, .main-grid {
  display: grid;
  gap: 1.25rem;
}

/* ── Tooltip ───────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 10;
}
[data-tooltip]:hover::after {
  opacity: 1;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,67,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(212,168,67,0); }
}

/* Page load animation */
.card, .stat-card, .blessing-card, .action-card,
.vault-card, .profile-card, .transaction-item {
  animation: fadeInUp 0.4s ease both;
}

/* Staggered animations for grid children */
.stats-grid > *:nth-child(1) { animation-delay: 0.05s; }
.stats-grid > *:nth-child(2) { animation-delay: 0.10s; }
.stats-grid > *:nth-child(3) { animation-delay: 0.15s; }
.stats-grid > *:nth-child(4) { animation-delay: 0.20s; }

.features-grid > *:nth-child(1) { animation-delay: 0.1s; }
.features-grid > *:nth-child(2) { animation-delay: 0.2s; }
.features-grid > *:nth-child(3) { animation-delay: 0.3s; }
.features-grid > *:nth-child(4) { animation-delay: 0.4s; }

/* Gold pulse on GRAIL connected icon */
[class*="connected"] svg, .grail-status svg {
  animation: pulseGold 2.5s ease-in-out infinite;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav, .navbar {
    padding: 0 1rem;
  }

  .vault-card { padding: 1.5rem; }

  .amount-grid, .amount-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid, .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blessing-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-title { font-size: 2.2rem; }

  .auth-card { padding: 1.75rem; }

  .profile-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .profile-value { text-align: left; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  nav { gap: 0.5rem; }
  .vault-card { padding: 1.25rem 1rem; }
  .gold-amount { font-size: 2.5rem; }
}

/* ── Dashboard Specific Classes ───────────────────────────── */
.gold-card {
  background: linear-gradient(135deg, rgba(26,23,16,0.95), rgba(30,27,21,0.95));
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
  margin: 0 auto 2rem;
  max-width: 600px;
}

.gold-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-light), var(--gold-primary), transparent);
  opacity: 0.8;
}

.gold-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gold-amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  text-shadow: 0 0 40px rgba(212,168,67,0.4);
  margin-bottom: 0.5rem;
}

.gold-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.gold-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.grail-badge {
  display: inline-block;
  background: rgba(212,168,67,0.08);
  border: 1px solid rgba(212,168,67,0.2);
  color: var(--gold-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Stats Grid */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--transition-base);
}

.stat:hover {
  border-color: var(--border-mid);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Actions Grid */
.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.action-btn:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.action-btn .label {
  font-weight: 600;
  color: var(--gold-primary);
  font-size: 0.9rem;
}

.action-btn .desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Section Headers */
.section {
  max-width: 1000px;
  margin: 2rem auto;
}

.section h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out both;
}

/* Text Colors */
.text-gold { color: var(--gold-primary) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.text-white { color: var(--text-primary) !important; }

/* Background Colors */
.bg-gold { background: var(--gold-primary) !important; }
.bg-gold\/10 { background: rgba(212,168,67,0.1) !important; }
.bg-gold\/20 { background: rgba(212,168,67,0.2) !important; }

/* Hover States */
.hover\:bg-gold:hover { background: var(--gold-primary) !important; }
.hover\:bg-gold\/20:hover { background: rgba(212,168,67,0.2) !important; }
.hover\:text-gold:hover { color: var(--gold-primary) !important; }
.hover\:text-gold-light:hover { color: var(--gold-light) !important; }

/* ── Tailwind-style Utility Classes ────────────────────────── */
/* Flexbox */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Spacing */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* Padding */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

/* Margin */
.m-0 { margin: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

/* Width & Height */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-full { width: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }

/* Border Radius */
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 50%; }
.rounded-xl { border-radius: var(--radius-xl); }

/* Font */
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* Display */
.hidden { display: none; }
.block { display: block; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }

/* Transform */
.transform { transform: translateZ(0); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Transition */
.transition { transition: all var(--transition-base); }
.transition-all { transition: all var(--transition-base); }
.duration-300 { transition-duration: 300ms; }

/* Background Opacity */
.bg-black\/30 { background: rgba(0,0,0,0.3); }
.bg-white\/10 { background: rgba(255,255,255,0.1); }
.bg-red-500\/20 { background: rgba(239,68,68,0.2); }
.bg-red-500\/30 { background: rgba(239,68,68,0.3); }

/* Border */
.border { border: 1px solid var(--border-subtle); }
.border-t { border-top: 1px solid var(--border-subtle); }
.border-gold\/30 { border-color: rgba(212,168,67,0.3); }
.border-red-500\/30 { border-color: rgba(239,68,68,0.3); }
.border-red-500\/50 { border-color: rgba(239,68,68,0.5); }

/* Text Colors */
.text-red-400 { color: #f87171; }
.text-red-300 { color: #fca5a5; }

/* Hover States */
.hover\:bg-red-500\/30:hover { background: rgba(239,68,68,0.3); }
.hover\:bg-white\/10:hover { background: rgba(255,255,255,0.1); }
.hover\:bg-red-500\/10:hover { background: rgba(239,68,68,0.1); }
.hover\:text-red-300:hover { color: #fca5a5; }

/* Mobile Responsive */
.md\:hidden { display: none; }
@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
}

/* Drop Shadow */
.drop-shadow-lg { filter: drop-shadow(0 10px 8px rgba(0,0,0,0.3)); }

/* Backdrop Filter */
.backdrop-filter { backdrop-filter: blur(10px); }

/* Container */
.container { 
  max-width: 1000px; 
  margin: 0 auto; 
  padding: 1.5rem; 
}

/* ── Utility Classes ───────────────────────────────────────── */
.text-gold    { color: var(--gold-primary) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-error   { color: var(--error) !important; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Logo Fallback ─────────────────────────────────────── */
img[src="logo.svg"] {
  width: 32px;
  height: 32px;
}

/* Hide broken images and show fallback */
img[src="logo.svg"]:not([loaded]) {
  display: none;
}

.logo:has(img[src="logo.svg"]:not([loaded]))::before {
  content: '🪙';
  font-size: 24px;
  margin-right: 8px;
}

/* ── Icon styling (Lucide / inline SVG) ────────────────────── */
svg.icon, .icon svg, [class*="icon"] svg {
  flex-shrink: 0;
}

/* ── Specific overrides for G-Link HTML structure ──────────── */

/* Logout button in nav */
nav button, nav .logout {
  background: rgba(224,82,82,0.08);
  border: 1px solid rgba(224,82,82,0.2);
  color: #E05252;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
nav button:hover {
  background: rgba(224,82,82,0.16);
  border-color: rgba(224,82,82,0.4);
}

/* "My Blessing Pages" and similar section boxes */
.blessings-section, .blessing-pages-wrapper,
[class*="my-blessing"], [class*="blessing-pages"] {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

/* Create New Blessing Page button */
[class*="create-blessing"], [class*="new-blessing"],
button[id*="create-blessing"], a[href*="create-blessing"] {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  background: transparent;
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--radius-lg);
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
[class*="create-blessing"]:hover {
  border-color: var(--gold-primary);
  background: var(--gold-glow);
  border-style: solid;
}

/* Eye / Share icon buttons on blessing cards */
.icon-btn, .icon-action, .card-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.3rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.icon-btn:hover { color: var(--gold-primary); background: var(--gold-glow); }

/* Recent Blessings empty */
.recent-blessings-empty, .no-blessings {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* "G-Link" nav logo text */
.nav-glink, .brand-glink, .glink-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(212,168,67,0.3);
}

/* ── Claim Page ────────────────────────────────────────────── */
.claim-card, .claim-page .card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-surface));
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-gold-lg);
}

.claim-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold-light);
  text-shadow: 0 0 40px rgba(212,168,67,0.5);
  line-height: 1;
  margin: 1rem 0 0.5rem;
}

/* ── Scrollable transaction list ───────────────────────────── */
.tx-scroll, .transactions-list, .tx-container {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) var(--bg-surface);
}
