/* ================================================
   ROOTLESS - Main Stylesheet
   Building worlds, not excuses.
   ================================================ */

/* ================================================
   CSS VARIABLES
   ================================================ */
:root {
    /* Brand Colors */
    --primary: #32A88F;
    --primary-dark: #1a6b5a;
    --primary-light: #4fd4b8;
    --primary-glow: rgba(50, 168, 143, 0.3);
    
    /* Backgrounds */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --bg-elevated: #161616;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    /* Status */
    --success: #32A88F;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Borders */
    --border-color: #222222;
    --border-glow: rgba(50, 168, 143, 0.5);
    
    /* Spacing */
    --nav-height: 70px;
    --container-max: 1400px;
    --container-padding: 2rem;
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--primary-glow);
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ================================================
   UTILITIES
   ================================================ */
.hidden { display: none !important; }
.invisible { visibility: hidden; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* ================================================
   LOADING SCREEN - EPIC VERSION
   ================================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Loading Background */
.loading-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.loading-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(50, 168, 143, 0.15), transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(50, 168, 143, 0.1), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(50, 168, 143, 0.08), transparent 50%),
        var(--bg-darker);
}

.loading-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(50, 168, 143, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 168, 143, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.loading-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.loading-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: loadingOrbFloat 15s ease-in-out infinite;
}

.loading-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(50, 168, 143, 0.25);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.loading-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(50, 168, 143, 0.2);
    bottom: 10%;
    left: 10%;
    animation-delay: -5s;
}

.loading-orb.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(50, 168, 143, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes loadingOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(30px, -30px) scale(1.1); opacity: 0.7; }
    50% { transform: translate(-20px, 20px) scale(0.9); opacity: 0.4; }
    75% { transform: translate(20px, 30px) scale(1.05); opacity: 0.6; }
}

/* Loading Content */
.loading-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Loading Visual - Rings & Mascot */
.loading-visual {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(50, 168, 143, 0.2);
}

.loading-ring.ring-1 {
    width: 200px;
    height: 200px;
    animation: ringRotate 8s linear infinite;
    border-width: 2px;
    border-color: rgba(50, 168, 143, 0.3);
    border-top-color: var(--primary);
}

.loading-ring.ring-2 {
    width: 240px;
    height: 240px;
    animation: ringRotate 12s linear infinite reverse;
    border-style: dashed;
}

.loading-ring.ring-3 {
    width: 280px;
    height: 280px;
    animation: ringRotate 16s linear infinite;
    border-style: dotted;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(50, 168, 143, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: loadingGlowPulse 2s ease-in-out infinite;
}

@keyframes loadingGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

.loading-mascot {
    position: relative;
    z-index: 10;
    width: 140px;
    height: 140px;
    animation: loadingMascotFloat 3s ease-in-out infinite;
}

.loading-mascot svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(50, 168, 143, 0.6));
}

@keyframes loadingMascotFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

/* Loading Title */
.loading-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px rgba(50, 168, 143, 0.5);
    animation: loadingTitlePulse 2s ease-in-out infinite;
}

@keyframes loadingTitlePulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 40px rgba(50, 168, 143, 0.5); }
    50% { opacity: 0.9; text-shadow: 0 0 60px rgba(50, 168, 143, 0.8); }
}

.loading-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

/* Loading Progress Bar */
.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(50, 168, 143, 0.1);
    border-radius: 10px;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 1px solid rgba(50, 168, 143, 0.2);
}

.loading-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    animation: loadingProgress 2s ease-in-out forwards;
    box-shadow: 0 0 10px var(--primary-glow);
}

@keyframes loadingProgress {
    0% { width: 0%; }
    20% { width: 20%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

.loading-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: loadingStatusBlink 1s ease-in-out infinite;
}

@keyframes loadingStatusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Floating Icons */
.loading-float-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 1.25rem;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: floatingIcon 8s ease-in-out infinite;
}

.float-icon.icon-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.float-icon.icon-2 {
    top: 20%;
    right: 15%;
    animation-delay: -2s;
}

.float-icon.icon-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: -4s;
}

.float-icon.icon-4 {
    bottom: 15%;
    right: 20%;
    animation-delay: -6s;
}

@keyframes floatingIcon {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-20px) rotate(5deg); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.6;
    }
    75% { 
        transform: translateY(-15px) rotate(-5deg); 
        opacity: 0.9;
    }
}

/* Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 15s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Loading */
@media (max-width: 768px) {
    .loading-visual {
        width: 200px;
        height: 200px;
    }
    
    .loading-ring.ring-1 {
        width: 140px;
        height: 140px;
    }
    
    .loading-ring.ring-2 {
        width: 170px;
        height: 170px;
    }
    
    .loading-ring.ring-3 {
        width: 200px;
        height: 200px;
    }
    
    .loading-mascot {
        width: 100px;
        height: 100px;
    }
    
    .loading-glow {
        width: 120px;
        height: 120px;
    }
    
    .float-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-mascot {
    transition: transform var(--transition-normal);
}

.nav-logo:hover .nav-mascot {
    transform: scale(1.1) rotate(-5deg);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(50, 168, 143, 0.1);
    border: 1px solid rgba(50, 168, 143, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.nav-status:hover {
    background: rgba(50, 168, 143, 0.2);
    border-color: rgba(50, 168, 143, 0.4);
    transform: translateY(-1px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: status-pulse 2s ease-in-out infinite;
}

.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--error); }
.status-dot.updating { background: var(--warning); }
.status-dot.maintenance { background: var(--warning); }

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(50, 168, 143, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(50, 168, 143, 0); }
}

.status-text {
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(var(--nav-height) + 4rem) var(--container-padding) 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(50, 168, 143, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(50, 168, 143, 0.08), transparent),
        var(--bg-darker);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(50, 168, 143, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 168, 143, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(50, 168, 143, 0.1);
    border: 1px solid rgba(50, 168, 143, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: status-pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-title .highlight {
    color: var(--primary);
    text-shadow: 0 0 60px var(--primary-glow);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

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

/* ================================================
   SECTIONS
   ================================================ */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title .highlight {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ================================================
   CARDS
   ================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(50, 168, 143, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(50, 168, 143, 0.2), rgba(50, 168, 143, 0.05));
    border: 1px solid rgba(50, 168, 143, 0.3);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Feature Grid - 4 columns */
.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid-4 {
        grid-template-columns: 1fr;
    }
}

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

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

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.video-card:hover {
    border-color: rgba(50, 168, 143, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: var(--bg-darker);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 0.5rem;
}

.video-title {
    padding: 1rem;
    font-family: var(--font-display);
    font-size: 1rem;
    text-align: center;
    color: var(--text-primary);
}

/* ================================================
   PRODUCT CARDS
   ================================================ */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-8px);
}

.product-card-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.product-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
}

.product-card-badge.coming-soon {
    background: var(--warning);
}

.product-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(50, 168, 143, 0.2), transparent);
    border-radius: 20px;
}

.product-card-icon img,
.product-card-icon svg {
    width: 50px;
    height: 50px;
}

.product-card-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-card-game {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-card-body {
    padding: 2rem;
}

.product-card-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.product-card-price .amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card-price .period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-card-features {
    margin-bottom: 1.5rem;
}

.product-card-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-card-features li::before {
    display: none; /* Checkmark now via Font Awesome icons */
}

.product-card-footer {
    padding: 0 2rem 2rem;
}

.product-card-footer .btn {
    width: 100%;
}

/* ================================================
   PRICING OPTIONS
   ================================================ */
.pricing-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pricing-option {
    padding: 1rem;
    background: var(--bg-elevated);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pricing-option:hover,
.pricing-option.selected {
    border-color: var(--primary);
    background: rgba(50, 168, 143, 0.1);
}

.pricing-option.selected {
    box-shadow: 0 0 20px var(--primary-glow);
}

.pricing-option .days {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-option .price {
    color: var(--primary);
    font-weight: 600;
}

.pricing-option .price-usd {
    color: var(--primary);
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.15rem;
}

.pricing-option .discount {
    font-size: 0.75rem;
    color: var(--success);
    margin-top: 0.25rem;
}

/* ================================================
   FORMS
   ================================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-error {
    font-size: 0.85rem;
    color: var(--error);
    margin-top: 0.5rem;
}

/* ================================================
   AUTH PAGES
   ================================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 2rem) var(--container-padding) 2rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

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

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

.auth-header .mascot {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ================================================
   DASHBOARD
   ================================================ */
.dashboard {
    padding: calc(var(--nav-height) + 2rem) 0 4rem;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-welcome {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-email {
    color: var(--text-secondary);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(50, 168, 143, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.stat-card-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dashboard-section {
    margin-bottom: 3rem;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.dashboard-section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

/* ================================================
   TABLES
   ================================================ */
.table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.table th {
    background: var(--bg-elevated);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
}

.badge-success {
    background: rgba(50, 168, 143, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.badge-online {
    background: rgba(50, 168, 143, 0.15);
    color: var(--success);
}

.badge-updating {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-development {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.badge-offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

/* ================================================
   KEY DISPLAY
   ================================================ */
.key-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.key-display .key-code {
    flex: 1;
    word-break: break-all;
}

.key-display .copy-btn {
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.key-display .copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ================================================
   ALERTS / WARNINGS
   ================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.alert-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-message {
    font-size: 0.9rem;
    opacity: 0.9;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.alert-success {
    background: rgba(50, 168, 143, 0.1);
    border: 1px solid rgba(50, 168, 143, 0.3);
    color: var(--success);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info);
}

/* ================================================
   TOAST NOTIFICATIONS
   ================================================ */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--info); }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ================================================
   MODAL
   ================================================ */
.modal-container {
    position: fixed;
    inset: 0;
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary);
}

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

.footer-disclaimer {
    font-style: italic;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .pricing-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
    }
    
    .nav-links,
    .nav-status {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .pricing-options {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .loading-title {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}
