@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-primary: #07090e;
    --bg-secondary: #0d121f;
    --bg-card: rgba(15, 23, 42, 0.72);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --brand-primary: #6366f1;
    --brand-glow: rgba(99, 102, 241, 0.4);
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
}

body {
    font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: #f1f5f9;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Radial Mesh Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(circle 800px at 15% 15%, rgba(99, 102, 241, 0.08), transparent 70%),
        radial-gradient(circle 700px at 85% 25%, rgba(168, 85, 247, 0.07), transparent 70%),
        radial-gradient(circle 900px at 50% 85%, rgba(6, 182, 212, 0.05), transparent 75%),
        linear-gradient(180deg, #07090e 0%, #0b0f19 50%, #07090e 100%);
}

code, pre, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* -------------------------------------------------------------
   Modern Glassmorphism & Surface Design
   ------------------------------------------------------------- */
.glass-panel {
    background: rgba(13, 18, 31, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4), inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-panel-elevated {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), inset 0 1px 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-panel-hover {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
    background: rgba(22, 32, 54, 0.88);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(99, 102, 241, 0.2), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
}

/* -------------------------------------------------------------
   Gradients, Typography & Shimmer
   ------------------------------------------------------------- */
.text-gradient-brand {
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 45%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #c084fc 0%, #818cf8 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #6ee7b7 0%, #10b981 50%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.text-shimmer {
    background: linear-gradient(90deg, #f8fafc 0%, #818cf8 50%, #f8fafc 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* -------------------------------------------------------------
   Buttons, Glow & Interactive Micro-animations
   ------------------------------------------------------------- */
.btn-glow {
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5), 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.btn-glow:active {
    transform: translateY(0) scale(0.98);
}

.btn-glow-emerald:hover {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5), 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.btn-glow-amber:hover {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5), 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
   Pulse Indicator Dots
   ------------------------------------------------------------- */
.pulse-dot {
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulseGlow 2.2s infinite ease-out;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* -------------------------------------------------------------
   Badges & Pills
   ------------------------------------------------------------- */
.badge-stock {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    box-shadow: 0 0 12px -2px rgba(16, 185, 129, 0.2);
}

.badge-low-stock {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    box-shadow: 0 0 12px -2px rgba(245, 158, 11, 0.2);
}

.badge-out-of-stock {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    box-shadow: 0 0 12px -2px rgba(239, 68, 68, 0.2);
}

.badge-pill-cyan {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #38bdf8;
}

.badge-pill-purple {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

/* -------------------------------------------------------------
   PromptPay Scan Frame & Scanner Animation
   ------------------------------------------------------------- */
.qr-scan-frame {
    position: relative;
    padding: 16px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 0 35px -5px rgba(99, 102, 241, 0.3), 0 12px 24px -5px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.qr-scan-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #6366f1 50%, transparent 100%);
    box-shadow: 0 0 12px #6366f1;
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0% { top: 0%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* -------------------------------------------------------------
   License Key High-Contrast Terminal Box
   ------------------------------------------------------------- */
.license-key-box {
    background: #040711;
    border: 1px dashed rgba(99, 102, 241, 0.45);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px -3px rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

.license-key-box:hover {
    border-color: rgba(99, 102, 241, 0.75);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 25px -3px rgba(99, 102, 241, 0.3);
}

/* -------------------------------------------------------------
   Custom Scrollbar
   ------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #07090e;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 6px;
    border: 2px solid #07090e;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.35);
    color: #ffffff;
}
