@charset "UTF-8";
/**
 * ============================================================================
 * SCRAP BUYER PRO - ENTERPRISE STYLESHEET
 * Architecture: Modern CSS3, CSS Variables, Glassmorphism, GPU Animations
 * ============================================================================
 */

/* ==========================================================================
   1. DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
    /* Primary Colors */
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --primary-glow: rgba(16, 185, 129, 0.6);
    --primary-glow-intense: rgba(16, 185, 129, 0.9);
    
    /* Accents */
    --yellow-accent: #facc15;
    --yellow-glow: rgba(250, 204, 21, 0.5);
    --blue-accent: #3b82f6;
    --red-accent: #ef4444;

    /* Glassmorphism Light Theme */
    --glass-bg-light: rgba(255, 255, 255, 0.75);
    --glass-border-light: rgba(255, 255, 255, 0.6);
    --glass-shadow-light: 0 8px 32px rgba(0, 0, 0, 0.05);

    /* Glassmorphism Dark Theme */
    --glass-bg-dark: rgba(17, 24, 39, 0.75);
    --glass-border-dark: rgba(255, 255, 255, 0.08);
    --glass-shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Physics & Transitions */
    --spring-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --fast-transition: 0.2s var(--smooth-easing);
    --normal-transition: 0.4s var(--spring-easing);
}

/* ==========================================================================
   2. BASE & RESETS
   ========================================================================== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body { 
    font-family: 'Inter', 'Kantumruy Pro', sans-serif; 
    overflow-x: hidden;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar { 
    width: 12px; 
    height: 12px;
}
::-webkit-scrollbar-track { 
    background: transparent; 
}
::-webkit-scrollbar-thumb { 
    background: #cbd5e1; 
    border-radius: 20px; 
    border: 3px solid transparent;
    background-clip: padding-box;
}
.dark ::-webkit-scrollbar-thumb {
    background: #374151;
    border: 3px solid #030712;
}
::-webkit-scrollbar-thumb:hover { 
    background: var(--primary); 
}

/* ==========================================================================
   3. BACKGROUNDS & ENVIRONMENT
   ========================================================================== */
.bg-dynamic-gradient {
    background: linear-gradient(-45deg, #022c22, #064e3b, #065f46, #020617);
    background-size: 400% 400%;
    animation: gradientBG 18s ease infinite;
    position: relative;
    z-index: 1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   4. THE NEON LOGO ENGINE (NAVBAR & FOOTER FIX)
   ========================================================================== */

/* A. Ensure the Wrappers are PERFECT CIRCLES and CANNOT be squished */
nav .group .relative {
    width: 3.5rem !important;  
    height: 3.5rem !important;
    min-width: 3.5rem !important; /* Prevents flexbox squish */
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    z-index: 50;
    will-change: transform;
}

/* Target specifically the direct wrapper of the footer logo */
footer div:has(> img[alt="Footer Logo"]) {
    width: 4.5rem !important; 
    height: 4.5rem !important;
    min-width: 4.5rem !important; /* Prevents flexbox squish */
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important; /* Forces mathematically perfect circle */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    z-index: 50;
    will-change: transform;
    
    /* FORCE OVERRIDE Tailwind's Footer Logo Dullness */
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal !important;
    margin: 0 !important;
}

/* Hide the old Tailwind blur element in the Nav so it doesn't conflict */
nav .group .relative > div.absolute {
    display: none !important;
}

/* B. LAYER 1: The Deep Pulsing Aura (Background Glow) */
nav .group .relative::after,
footer div:has(> img[alt="Footer Logo"])::after {
    content: '';
    position: absolute; 
    inset: -12px; /* How far the glow reaches */
    background: radial-gradient(circle, var(--primary) 0%, rgba(16, 185, 129, 0.4) 50%, transparent 75%); 
    filter: blur(10px); 
    opacity: 0.9; 
    border-radius: 50% !important;
    animation: premiumPulseAura 2s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

/* C. LAYER 2: The Rotating Neon Edge Light */
nav .group .relative::before,
footer div:has(> img[alt="Footer Logo"])::before {
    content: '';
    position: absolute;
    inset: -3px; /* Thickness of the spinning ring */
    border-radius: 50% !important;
    background: conic-gradient(from 0deg, transparent 0%, transparent 40%, var(--primary-light) 80%, #ffffff 100%);
    animation: premiumRotateRing 2s linear infinite;
    z-index: 1;
    box-shadow: 0 0 15px var(--primary);
    pointer-events: none;
}

/* D. LAYER 3: The Actual Image Logo */
#site-logo,
nav .group .relative img,
footer div:has(> img[alt="Footer Logo"]) > img { 
    width: 100% !important; 
    height: 100% !important; 
    border-radius: 50% !important; 
    object-fit: cover !important;
    position: relative; 
    z-index: 10; /* Keep strictly above all glows */
    background-color: #0f172a !important;
    border: 2px solid #10b981 !important;
    
    /* Inner shadow for depth + outer shadow for blending */
    box-shadow: 0 0 20px var(--primary-glow-intense), inset 0 0 15px rgba(0,0,0,0.8) !important;
    transition: transform var(--normal-transition), box-shadow var(--normal-transition);
    
    /* Force ignore Tailwind CSS filters */
    filter: none !important;
    -webkit-filter: none !important;
}

/* E. INTERACTION: Logo Hover Physics */
nav .group .relative:hover img,
footer div:has(> img[alt="Footer Logo"]):hover > img {
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 0 35px rgba(16, 185, 129, 1), inset 0 0 10px rgba(0,0,0,0.3) !important;
}

/* Keyframes for Logo Engine */
@keyframes premiumPulseAura {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 1; }
}

@keyframes premiumRotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Text Glow Utility */
.drop-shadow-glow {
    text-shadow: 0 0 25px var(--yellow-glow), 0 0 50px rgba(250, 204, 21, 0.6);
}

/* ==========================================================================
   5. UI COMPONENTS (Inputs, Textareas)
   ========================================================================== */
.modern-input {
    width: 100%; 
    padding: 1.25rem 1.5rem; 
    border-radius: 1.25rem;
    border: 2px solid #e2e8f0; 
    background: #f8fafc;
    color: #0f172a;
    outline: none; 
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--fast-transition);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.dark .modern-input {
    background: #111827; 
    border-color: #1f2937; 
    color: #f8fafc;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.modern-input:focus { 
    border-color: var(--primary); 
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow), inset 0 2px 4px rgba(0,0,0,0.01); 
    transform: translateY(-2px);
}

.dark .modern-input:focus {
    background: #030712;
    box-shadow: 0 0 0 4px var(--primary-glow), inset 0 2px 4px rgba(0,0,0,0.3); 
}

/* ==========================================================================
   6. PREMIUM BUTTONS & INTERACTIONS
   ========================================================================== */
.btn-premium-yellow {
    background: var(--yellow-accent); 
    color: #020617; 
    font-weight: 900;
    padding: 1.25rem 2.5rem; 
    border-radius: 9999px;
    box-shadow: 0 10px 30px var(--yellow-glow), inset 0 -3px 0 rgba(0,0,0,0.1);
    transition: all var(--normal-transition);
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-premium-green {
    background: var(--primary); 
    color: #ffffff; 
    font-weight: 900;
    padding: 1.25rem 2.5rem; 
    border-radius: 9999px;
    box-shadow: 0 10px 30px var(--primary-glow), inset 0 -3px 0 rgba(0,0,0,0.15);
    transition: all var(--normal-transition);
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Button Hover Physics */
.btn-premium-yellow:hover, 
.btn-premium-green:hover { 
    transform: translateY(-6px) scale(1.03); 
    filter: brightness(1.1);
}

.btn-premium-yellow:active, 
.btn-premium-green:active { 
    transform: translateY(2px) scale(0.97); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2), inset 0 3px 5px rgba(0,0,0,0.2);
}

/* ==========================================================================
   7. CARD SYSTEMS & HOVER PHYSICS
   ========================================================================== */
.stat-card {
    background: #ffffff; 
    padding: 2.5rem 2rem; 
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    text-align: center; 
    border: 1px solid #f1f5f9;
    transition: all var(--normal-transition);
    position: relative;
    z-index: 1;
}

.dark .stat-card { 
    background: #111827; 
    border-color: #1f2937; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.stat-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    z-index: 10;
}

.dark .stat-card:hover {
    box-shadow: 0 30px 60px var(--primary-glow);
    border-color: rgba(16, 185, 129, 0.4);
}

.icon-box { 
    font-size: 3.5rem; 
    margin-bottom: 1.5rem; 
    display: inline-block;
    transition: transform var(--normal-transition);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.stat-card:hover .icon-box {
    transform: scale(1.15) rotate(-8deg);
}

/* ==========================================================================
   8. ICONS & WIDGETS
   ========================================================================== */
.social-icon {
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background: #1f2937;
    color: #9ca3af;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.35rem;
    transition: all var(--normal-transition);
    border: 1px solid transparent;
}

.social-icon:hover { 
    background: var(--primary); 
    color: white; 
    transform: translateY(-6px) rotate(12deg) scale(1.1); 
    box-shadow: 0 15px 25px var(--primary-glow);
    border-color: rgba(255,255,255,0.3);
}

/* ==========================================================================
   9. SPECIAL EFFECTS (Smoke Canvas & Loaders)
   ========================================================================== */
#smoke-canvas { 
    position: absolute; 
    inset: 0; 
    pointer-events: none; 
    opacity: 0.85; 
    z-index: 10;
    mix-blend-mode: screen;
}

.spinner { 
    width: 64px; 
    height: 64px; 
    border: 6px solid #f1f5f9; 
    border-top-color: var(--primary); 
    border-radius: 50%; 
    animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite; 
    box-shadow: 0 0 20px var(--primary-glow);
}

.dark .spinner {
    border-color: #1f2937;
    border-top-color: var(--primary); 
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

/* ==========================================================================
  /* 10. TYPING & UTILITY ANIMATIONS
   ========================================================================== */

/* Container to prevent glitching on 2-line typing */
.typing-text-container {
    min-height: 3em; /* Adjust this value if your text still jumps */
    display: flex;
    align-items: flex-start;
}

.typing-cursor-hero {
    display: inline-block; 
    width: 6px; 
    height: 1em;
    background: var(--yellow-accent); 
    margin-left: 10px;
    animation: blink 0.8s infinite;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--yellow-glow);
}

@keyframes blink { 
    0%, 100% { opacity: 1; }
    50% { opacity: 0; } 
}

.animate-slide-in {
    animation: slideIn 0.6s var(--spring-easing) forwards;
}

@keyframes slideIn {
    0% { transform: translateX(120%) scale(0.9); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

/* General Layout Utilities */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.kspg-heading { 
    border-left: 6px solid var(--primary); 
    padding-left: 1.25rem; 
    border-radius: 3px;
}