:root {
  --background: #0f172a;
  --foreground: #f8fafc;
  --card: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #d4af37;
  --border: rgba(51, 65, 85, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--background); color: var(--foreground); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* Critical Sizing & Resilience */
.h-16 { height: 4rem !important; }
.w-auto { width: auto !important; }
.object-contain { object-fit: contain !important; }
.h-20 { height: 5rem; }
.min-h-screen { min-height: 100vh; }

/* Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-8 { margin-bottom: 2rem; }

/* Typography */
.text-4xl { font-size: 2.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-serif { font-family: 'Playfair Display', serif; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent { color: var(--accent); }

/* Components */
.bg-background\/95 { background-color: rgba(15, 23, 42, 0.95); }
.bg-card\/30 { background-color: rgba(30, 41, 59, 0.3); }
.bg-card\/20 { background-color: rgba(30, 41, 59, 0.2); }
.bg-accent\/10 { background-color: rgba(212, 175, 55, 0.1); }
.backdrop-blur { backdrop-filter: blur(8px); }
.sticky { position: sticky; top: 0; z-index: 50; }
.border-b { border-bottom: 1px solid var(--border); }
.border { border: 1px solid var(--border); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Animations */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.animate-pulse { animation: pulse 2s infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* Tour Elements */
#guide-box { z-index: 201; }
.highlight { outline: 3px solid var(--accent); outline-offset: 4px; z-index: 150 !important; }
#demo-overlay-layer { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 140; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
#demo-overlay-layer.active { opacity: 1; pointer-events: auto; }

.hidden { display: none !important; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-100 { z-index: 100; }
.z-110 { z-index: 110; }
.z-200 { z-index: 200; }
.translate-x-full { transform: translateX(100%); }
.translate-x-0 { transform: translateX(0); }
