/* ============================================
   FUN TOYS 3D - Discord Purple Theme
   Premium Design System
   ============================================ */

/* CSS Variables */
:root {
    /* Discord Purple Palette */
    --discord-blurple: #5865F2;
    --discord-blurple-dark: #4752C4;
    --discord-blurple-light: #7983F5;
    --discord-green: #57F287;
    --discord-yellow: #FEE75C;
    --discord-fuchsia: #EB459E;
    --discord-red: #ED4245;
    
    /* Dark Theme Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #18181f;
    --bg-card: #1a1a24;
    --bg-card-hover: #222230;
    --bg-elevated: #252532;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b5bac1;
    --text-muted: #6d6f78;
    --text-link: #00aff4;
    
    /* Accent Colors */
    --accent-primary: var(--discord-blurple);
    --accent-secondary: var(--discord-fuchsia);
    --accent-gradient: linear-gradient(135deg, #5865F2 0%, #EB459E 100%);
    --accent-gradient-hover: linear-gradient(135deg, #6d78f7 0%, #f06daf 100%);
    
    /* Glow Effects */
    --glow-purple: 0 0 20px rgba(88, 101, 242, 0.4), 0 0 40px rgba(88, 101, 242, 0.2);
    --glow-fuchsia: 0 0 20px rgba(235, 69, 158, 0.4), 0 0 40px rgba(235, 69, 158, 0.2);
    --glow-mixed: 0 0 30px rgba(88, 101, 242, 0.3), 0 0 60px rgba(235, 69, 158, 0.2);
    
    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-width: 1400px;
    --section-padding: 120px;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(88, 101, 242, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(235, 69, 158, 0.1) 0%, transparent 50%),
        var(--bg-primary);
    z-index: -2;
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Animated gradient orbs */
.bg-gradient::before,
.bg-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: floatOrb 20s ease-in-out infinite;
}

.bg-gradient::before {
    width: 600px;
    height: 600px;
    background: rgba(88, 101, 242, 0.15);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.bg-gradient::after {
    width: 500px;
    height: 500px;
    background: rgba(235, 69, 158, 0.12);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(40px, 40px) scale(1.05); }
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.5));
    transition: var(--transition-base);
}

.logo:hover .logo-icon {
    transform: rotate(180deg);
    filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.8));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-base);
    border-radius: inherit;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(88, 101, 242, 0.15);
}

.nav-link.active::before {
    opacity: 0.15;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   BUTTONS - Premium Styling
   ============================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: var(--transition-base);
    z-index: -1;
}

/* Primary Button - Gradient with Glow */
.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: var(--glow-purple);
}

.btn-primary::before {
    background: var(--accent-gradient-hover);
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-mixed), 0 10px 40px rgba(88, 101, 242, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Outline Button - Glass Effect */
.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline::before {
    background: var(--accent-gradient);
    opacity: 0;
}

.btn-outline:hover {
    color: var(--text-primary);
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: var(--glow-purple);
}

.btn-outline:hover::before {
    opacity: 0.1;
}

/* Button Sizes */
.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
    gap: 12px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Icon animation in buttons */
.btn svg {
    transition: var(--transition-base);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 100px;
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    color: var(--discord-blurple-light);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease-out, pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(88, 101, 242, 0.2); }
    50% { box-shadow: 0 0 30px rgba(88, 101, 242, 0.4); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -2px;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(30px);
    opacity: 0.5;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-cta {
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 80px;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}

/* Floating Shapes */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 25s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(88, 101, 242, 0.3);
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(235, 69, 158, 0.25);
    bottom: -100px;
    left: -100px;
    animation-delay: -8s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(87, 242, 135, 0.15);
    top: 40%;
    left: 10%;
    animation-delay: -16s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(40px, -40px) scale(1.1) rotate(5deg); }
    50% { transform: translate(-30px, 30px) scale(0.95) rotate(-5deg); }
    75% { transform: translate(30px, 40px) scale(1.05) rotate(3deg); }
}

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

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: 100px 24px var(--section-padding);
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

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

/* Products Grid - Netflix Style */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* Product Card - Premium Design */
.product-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-slow);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(10, 10, 15, 0.5) 30%,
        transparent 60%
    );
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 1;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-slow);
}

.product-card:hover {
    transform: scale(1.03) translateY(-8px);
    border-color: transparent;
    box-shadow: var(--shadow-xl), var(--glow-mixed);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover::after {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.15);
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-slow);
}

.product-card:hover .product-info {
    transform: translateY(0);
    opacity: 1;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: var(--accent-gradient);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: var(--glow-purple);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    color: var(--text-muted);
}

.loading-state.hidden {
    display: none;
}

.loader {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(88, 101, 242, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 100px 24px var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(88, 101, 242, 0.3), transparent);
}

.features-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(88, 101, 242, 0.2);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(88, 101, 242, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    padding: 16px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--accent-gradient);
    color: var(--text-primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--glow-purple);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 70px 24px 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-col a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   PRODUCT PAGE STYLES
   ============================================ */
.product-page {
    min-height: 100vh;
    padding: 120px 24px 80px;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.gallery-main img,
.gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 16px;
}

.gallery-thumb {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    position: relative;
    background: var(--bg-card);
}

.gallery-thumb:hover {
    border-color: rgba(88, 101, 242, 0.5);
}

.gallery-thumb.active {
    border-color: var(--accent-primary);
    box-shadow: var(--glow-purple);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 20px 0;
}

.product-details .product-badge {
    position: static;
    display: inline-block;
    margin-bottom: 20px;
}

.product-details .product-title {
    color: var(--text-primary);
    font-size: 2.75rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.product-details .product-price {
    font-size: 2.25rem;
    margin-bottom: 28px;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.product-features {
    margin-bottom: 40px;
}

.product-features h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.product-features ul {
    list-style: none;
}

.product-features li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--discord-green);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Checkout Section */
.checkout-section {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-section h4 {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    transition: var(--transition-fast);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkout-btn {
    width: 100%;
    margin-top: 12px;
    padding: 20px;
    font-size: 1.15rem;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.secure-badge svg {
    color: var(--discord-green);
}

/* ============================================
   TRACKING PAGE STYLES
   ============================================ */
.track-page {
    min-height: 100vh;
    padding: 140px 24px 80px;
}

.track-container {
    max-width: 640px;
    margin: 0 auto;
}

.track-header {
    text-align: center;
    margin-bottom: 48px;
}

.track-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.track-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.track-form {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 36px;
}

.track-input-group {
    display: flex;
    gap: 16px;
}

.track-input-group input {
    flex: 1;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

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

.track-input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15);
}

.order-result {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.order-result.hidden {
    display: none;
}

.order-header {
    background: var(--accent-gradient);
    padding: 28px;
    color: var(--text-primary);
}

.order-header h3 {
    color: var(--text-primary);
    margin-bottom: 6px;
}

.order-body {
    padding: 28px;
}

.order-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--discord-yellow);
    box-shadow: 0 0 15px rgba(254, 231, 92, 0.5);
    animation: pulse 2s infinite;
}

.status-dot.shipped {
    background: var(--accent-primary);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

.status-dot.delivered {
    background: var(--discord-green);
    box-shadow: 0 0 15px rgba(87, 242, 135, 0.5);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.order-info {
    display: grid;
    gap: 0;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-info-row:last-child {
    border-bottom: none;
}

.order-info-row .label {
    color: var(--text-muted);
}

.order-info-row .value {
    font-weight: 600;
    color: var(--text-primary);
}

.timeline {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
}

.timeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.timeline-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: var(--glow-purple);
}

.timeline-dot.completed {
    background: var(--discord-green);
    border-color: var(--discord-green);
    color: var(--bg-primary);
}

.timeline-content .title {
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-content .date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   ADMIN PAGE STYLES
   ============================================ */
.admin-page {
    min-height: 100vh;
    padding: 100px 24px;
}

.admin-login {
    max-width: 420px;
    margin: 80px auto;
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-xl);
}

.admin-login h2 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.75rem;
}

.admin-container {
    max-width: 1300px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-header h1 {
    font-size: 2rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.admin-stat-card:hover {
    border-color: rgba(88, 101, 242, 0.2);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.1);
}

.admin-stat-card .number {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-stat-card .label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

.orders-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

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

.orders-table th,
.orders-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.orders-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table tr {
    transition: var(--transition-fast);
}

.orders-table tbody tr:hover {
    background: rgba(88, 101, 242, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(254, 231, 92, 0.15);
    color: var(--discord-yellow);
}

.status-badge.shipped {
    background: rgba(88, 101, 242, 0.15);
    color: var(--discord-blurple-light);
}

.status-badge.delivered {
    background: rgba(87, 242, 135, 0.15);
    color: var(--discord-green);
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn.edit {
    background: rgba(88, 101, 242, 0.15);
    color: var(--discord-blurple-light);
}

.action-btn.edit:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: var(--glow-purple);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 520px;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition-slow);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.modal-header h3 {
    font-size: 1.4rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        letter-spacing: -1px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 28px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
    
    .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-details .product-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .track-input-group {
        flex-direction: column;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .orders-table {
        overflow-x: auto;
    }
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }

/* Messages */
.message {
    padding: 18px 22px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
}

.message.error {
    background: rgba(237, 66, 69, 0.15);
    color: var(--discord-red);
    border: 1px solid rgba(237, 66, 69, 0.2);
}

.message.success {
    background: rgba(87, 242, 135, 0.15);
    color: var(--discord-green);
    border: 1px solid rgba(87, 242, 135, 0.2);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Selection Color */
::selection {
    background: rgba(88, 101, 242, 0.4);
    color: var(--text-primary);
}

/* ============================================
   SHIPPING CALCULATOR STYLES
   ============================================ */

.shipping-display {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Shipping States */
.price-row.shipping-pending span:last-child {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

.price-row.shipping-calculating span:last-child {
    color: var(--discord-blurple-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-row.shipping-calculated span:last-child {
    color: var(--discord-green);
    font-weight: 600;
}

.price-row.shipping-error span:last-child {
    color: var(--discord-red);
    font-size: 0.85rem;
}

/* Shipping Info Row */
.price-row.shipping-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-bottom: 14px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-row.shipping-info span:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Total Row */
.price-row.total-row {
    padding-top: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-row.total-row span:last-child {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.35rem;
}

/* Loading Dots Animation */
.shipping-loader {
    display: inline-flex;
    gap: 4px;
    margin-right: 6px;
}

.loader-dot {
    width: 6px;
    height: 6px;
    background: var(--discord-blurple);
    border-radius: 50%;
    animation: loaderBounce 1.4s ease-in-out infinite both;
}

.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }
.loader-dot:nth-child(3) { animation-delay: 0s; }

@keyframes loaderBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Shipping Options */
.shipping-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shipping-options-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 10px;
}

.shipping-option:hover {
    border-color: rgba(88, 101, 242, 0.3);
    background: var(--bg-elevated);
}

.shipping-option.selected {
    border-color: var(--discord-blurple);
    background: rgba(88, 101, 242, 0.1);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.15);
}

.shipping-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--discord-blurple);
    cursor: pointer;
}

.shipping-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shipping-option-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.shipping-option-days {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.shipping-option-price {
    font-weight: 700;
    color: var(--discord-green);
    font-size: 1rem;
}

/* USPS Badge */
.usps-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(88, 101, 242, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.85rem;
    border: 1px solid rgba(88, 101, 242, 0.15);
}

.usps-badge svg {
    color: var(--discord-blurple-light);
}

/* Responsive */
@media (max-width: 768px) {
    .shipping-option {
        padding: 14px;
    }
    
    .shipping-option-info {
        gap: 2px;
    }
    
    .shipping-option-name {
        font-size: 0.9rem;
    }
    
    .price-row.total-row span:last-child {
        font-size: 1.2rem;
    }
}
