:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #06B6D4;
    --accent: #10B981;
    --bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text: #1E293B;
    --text-light: #64748B;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --gradient: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    --radius: 12px;
}
.dark { --bg: #0F172A; --card-bg: #1E293B; --text: #F1F5F9; --text-light: #94A3B8; --border: #334155; --shadow: 0 4px 6px -1px rgba(0,0,0,0.3); --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; transition: background 0.3s, color 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; border: none; text-decoration: none; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,70,229,0.5); }
.btn-secondary { background: var(--card-bg); color: var(--text); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-danger { background: #EF4444; color: #fff; }
.btn-danger:hover { background: #DC2626; }
.card { background: var(--card-bg); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s; }
.glass { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }
.input { width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: 8px; background: var(--card-bg); color: var(--text); font-size: 1rem; transition: border-color 0.2s; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: 1rem 0; }
.dark .header { background: rgba(15,23,42,0.95); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header .logo { font-size: 1.5rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; }
.header nav { display: flex; gap: 1rem; align-items: center; }
.hero { padding: 6rem 0 4rem; text-align: center; background: linear-gradient(180deg, var(--bg) 0%, transparent 100%); }
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; color: var(--text-light); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-form { max-width: 700px; margin: 0 auto; background: var(--card-bg); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.hero-form .input-group { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.hero-form .input-group .input { flex: 1; }
.features { padding: 5rem 0; }
.features h2 { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 3rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature-card { text-align: center; padding: 2rem; }
.feature-card .icon { width: 64px; height: 64px; margin: 0 auto 1rem; background: var(--gradient); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }
.stats { padding: 4rem 0; background: var(--gradient); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; }
.stat-label { font-size: 1rem; opacity: 0.9; }
.how-it-works { padding: 5rem 0; }
.how-it-works h2 { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 3rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.step { text-align: center; padding: 2rem; }
.step-number { width: 48px; height: 48px; margin: 0 auto 1rem; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.2rem; }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-light); }
.pricing { padding: 5rem 0; background: var(--bg); }
.pricing h2 { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 3rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.pricing-card { text-align: center; padding: 2.5rem 2rem; position: relative; }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.pricing-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; padding: 0.25rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.pricing-card .price { font-size: 3rem; font-weight: 800; margin: 1rem 0; }
.pricing-card .price span { font-size: 1rem; color: var(--text-light); font-weight: 400; }
.pricing-card ul { list-style: none; margin: 1.5rem 0; text-align: left; }
.pricing-card ul li { padding: 0.5rem 0; display: flex; align-items: center; gap: 0.5rem; }
.pricing-card ul li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.pricing-card .btn { width: 100%; }
.testimonials { padding: 5rem 0; }
.testimonials h2 { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 3rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { padding: 2rem; }
.testimonial-card .stars { color: #F59E0B; margin-bottom: 0.75rem; }
.testimonial-card p { font-style: italic; margin-bottom: 1rem; color: var(--text-light); }
.testimonial-card .author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-card .author img { width: 40px; height: 40px; border-radius: 50%; }
.testimonial-card .author strong { font-size: 0.95rem; }
.faq { padding: 5rem 0; background: var(--bg); }
.faq h2 { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 3rem; }
.faq-item { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; color: var(--text-light); }
.faq-answer.open { max-height: 500px; padding-top: 1rem; }
.footer { background: var(--card-bg); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-col h4 { font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-light); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; color: var(--text-light); font-size: 0.9rem; }
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero-form .input-group { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
}
.dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--card-bg); border-right: 1px solid var(--border); padding: 1.5rem; }
.sidebar .logo { font-size: 1.25rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 2rem; display: block; text-decoration: none; }
.sidebar nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar nav a { padding: 0.75rem 1rem; border-radius: 8px; color: var(--text-light); text-decoration: none; display: flex; align-items: center; gap: 0.75rem; transition: all 0.2s; font-weight: 500; }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(79,70,229,0.1); color: var(--primary); }
.main-content { padding: 2rem; overflow-y: auto; }
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { padding: 1.5rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; margin: 0.5rem 0 0.25rem; }
.stat-card .stat-label { color: var(--text-light); font-size: 0.9rem; }
.stat-card .stat-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); }
.admin-table tr:hover { background: rgba(79,70,229,0.02); }
.chart-container { position: relative; height: 300px; margin: 1.5rem 0; }
.theme-toggle { background: none; border: none; color: var(--text); cursor: pointer; font-size: 1.25rem; padding: 0.5rem; border-radius: 8px; transition: background 0.2s; }
.theme-toggle:hover { background: rgba(79,70,229,0.1); }
.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
.copy-btn { cursor: pointer; padding: 0.25rem 0.5rem; border-radius: 4px; background: var(--border); border: none; font-size: 0.8rem; transition: background 0.2s; }
.copy-btn:hover { background: var(--primary); color: #fff; }
.modal { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; padding: 1rem; }
.modal.active { display: flex; }
.modal-content { background: var(--card-bg); border-radius: var(--radius); padding: 2rem; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-header h2 { font-size: 1.25rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); }
.toast { position: fixed; bottom: 1rem; right: 1rem; z-index: 300; padding: 1rem 1.5rem; border-radius: 8px; color: #fff; font-weight: 500; box-shadow: var(--shadow-lg); transform: translateY(100px); opacity: 0; transition: all 0.3s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--accent); }
.toast.error { background: #EF4444; }
.loading { opacity: 0.6; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 24px; height: 24px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear; }
