:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--light); color: var(--dark); line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo i { font-size: 1.6rem; }
.nav-menu { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--dark); font-weight: 500; transition: color 0.2s; }
.nav-menu a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.cart-count { background: var(--primary); color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; }

/* Buttons */
.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--secondary); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--dark) 0%, #312e81 100%); color: white; padding: 100px 20px; text-align: center; }
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; opacity: 0.9; }

/* Products */
.section-title { text-align: center; font-size: 2.2rem; margin: 60px 0 10px; }
.section-subtitle { text-align: center; color: var(--gray); margin-bottom: 40px; font-size: 1.1rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 60px; }
.product-card { background: white; border-radius: 16px; padding: 30px; box-shadow: var(--shadow); position: relative; transition: transform 0.2s, box-shadow 0.2s; border: 2px solid transparent; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card.popular { border-color: var(--primary); transform: scale(1.02); }
.popular-badge { position: absolute; top: -12px; right: 20px; background: var(--primary); color: white; padding: 5px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.product-header h3 { font-size: 1.3rem; margin-bottom: 5px; }
.product-type { color: var(--gray); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.product-price { margin: 20px 0; }
.product-price .currency { font-size: 1.5rem; vertical-align: top; }
.product-price .amount { font-size: 3rem; font-weight: 700; }
.product-price .period { color: var(--gray); }
.product-features { list-style: none; margin: 20px 0; }
.product-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.product-features li i { color: var(--secondary); margin-right: 8px; }

/* Info */
.info-section { margin: 60px 0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.info-card { background: white; padding: 30px; border-radius: 12px; text-align: center; box-shadow: var(--shadow); }
.info-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.info-card h3 { margin-bottom: 10px; }
.info-card p { color: var(--gray); font-size: 0.95rem; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
    font-family: inherit; font-size: 1rem; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 100px; resize: vertical; }
.auth-box { max-width: 450px; margin: 60px auto; background: white; padding: 40px; border-radius: 16px; box-shadow: var(--shadow); }
.auth-box h2 { text-align: center; margin-bottom: 30px; }

/* Tables */
.table-container { overflow-x: auto; margin: 30px 0; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--dark); color: white; font-weight: 600; }
tr:hover { background: #f1f5f9; }
.badge { padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* Cart */
.cart-section { margin: 40px 0; }
.cart-item { display: flex; justify-content: space-between; align-items: center; background: white; padding: 20px; border-radius: 12px; margin-bottom: 15px; box-shadow: var(--shadow); }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty i { font-size: 4rem; color: var(--gray); margin-bottom: 20px; }
.cart-total { background: white; padding: 20px; border-radius: 12px; text-align: right; font-size: 1.3rem; font-weight: 700; margin-top: 20px; }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: 250px 1fr; gap: 30px; margin: 30px 0; }
.sidebar { background: white; border-radius: 12px; padding: 20px; box-shadow: var(--shadow); height: fit-content; }
.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: 5px; }
.sidebar a { display: block; padding: 12px 16px; border-radius: 8px; text-decoration: none; color: var(--dark); font-weight: 500; transition: all 0.2s; }
.sidebar a:hover, .sidebar a.active { background: var(--primary); color: white; }
.dashboard-content { background: white; border-radius: 12px; padding: 30px; box-shadow: var(--shadow); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 25px; border-radius: 12px; }
.stat-card h3 { font-size: 2rem; margin-bottom: 5px; }
.stat-card p { opacity: 0.9; font-size: 0.9rem; }

/* Alerts */
.alert { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* Footer */
.footer { background: var(--dark); color: white; padding: 40px 20px; text-align: center; margin-top: 60px; }
.footer p { opacity: 0.7; margin: 5px 0; }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu { display: none; position: absolute; top: 70px; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; box-shadow: var(--shadow); }
    .nav-menu.active { display: flex; }
    .hero-content h1 { font-size: 2rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .product-card.popular { transform: none; }
}
/* SEO Section */
.seo-section { background: white; padding: 60px 20px; margin: 40px 0; border-radius: 16px; }
.seo-content { max-width: 900px; margin: 0 auto; }
.seo-content h2 { font-size: 2rem; margin-bottom: 20px; text-align: center; }
.seo-content > p { color: var(--gray); font-size: 1.05rem; margin-bottom: 15px; line-height: 1.7; }
.features-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; margin-top: 40px; }
.feature-item { text-align: center; padding: 25px; background: var(--light); border-radius: 12px; }
.feature-item i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }
.feature-item h4 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-item p { color: var(--gray); font-size: 0.9rem; }

/* Use Cases */
.use-cases { margin: 60px 0; }

/* FAQ */
.faq-section { background: white; padding: 60px 20px; margin: 40px 0; border-radius: 16px; }
.faq-grid { max-width: 900px; margin: 30px auto 0; display: grid; gap: 25px; }
.faq-item { padding: 25px; background: var(--light); border-radius: 12px; border-left: 4px solid var(--primary); }
.faq-item h4 { margin-bottom: 10px; font-size: 1.1rem; }
.faq-item p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; }

/* Footer */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { opacity: 0.8; margin: 15px 0; font-size: 0.95rem; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; color: white; text-decoration: none; transition: all 0.2s; }
.social-links a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-links h4 { color: white; margin-bottom: 15px; font-size: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.second-life-badge { text-align: center; padding: 20px; background: rgba(255,255,255,0.05); border-radius: 12px; margin-bottom: 30px; font-size: 1rem; }
.second-life-badge i { color: #a5b4fc; margin-right: 8px; font-size: 1.2rem; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.footer-bottom p { opacity: 0.6; font-size: 0.85rem; }

.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: white; color: var(--dark); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .features-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}