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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-50: #eff6ff;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --success: #10b981;
  --error: #ef4444;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: var(--transition);
  border: 2px solid transparent; text-decoration: none; white-space: nowrap;
  font-family: inherit;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); color: white; }

.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #dc2626; }

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ========== NAVBAR ========== */
.navbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 1000;
}

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 800; color: var(--secondary);
}
.logo i { color: var(--primary); font-size: 1.8rem; }
.logo:hover { color: var(--secondary); }

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

.nav-link {
  padding: 8px 16px; color: var(--gray-600); font-weight: 500; border-radius: 8px;
}
.nav-link:hover { color: var(--primary); background: var(--gray-100); }

.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--gray-200); }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--gray-700); cursor: pointer; padding: 8px; }

/* ========== SECTION ========== */
.section { padding: 80px 0; }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }

.section-badge {
  display: inline-block; background: var(--primary-light);
  color: var(--primary); padding: 6px 14px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 1px;
}

.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--gray-500); font-size: 1.1rem; }

/* ========== HERO ========== */
.hero {
  position: relative; padding: 100px 0 80px;
  background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 50%, #fef3c7 100%);
  overflow: hidden;
}
.hero-shape {
  position: absolute; bottom: -50px; left: 0; right: 0; height: 100px;
  background: var(--gray-50); clip-path: ellipse(70% 100% at 50% 100%);
}
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary);
  padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; margin-bottom: 24px;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.2rem; color: var(--gray-600); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }

.hero-stats { display: flex; justify-content: center; gap: 48px; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--secondary); }
.stat-label { color: var(--gray-500); font-size: 0.9rem; }

/* ========== FEATURES ========== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 32px; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }

.feature-icon {
  width: 56px; height: 56px; background: var(--primary-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon i { font-size: 1.5rem; color: var(--primary); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--gray-600); }

.feature-card.large { padding: 40px; }

/* ========== STEPS ========== */
.how-section { background: white; }
.steps { max-width: 600px; margin: 0 auto; }
.step {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 24px; background: var(--gray-50);
  border-radius: var(--radius); border: 1px solid var(--gray-200);
}
.step-number {
  width: 48px; height: 48px; min-width: 48px;
  background: var(--primary); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700;
}
.step-content h3 { margin-bottom: 6px; }
.step-content p { color: var(--gray-600); }
.step-connector { text-align: center; padding: 12px 0; color: var(--gray-400); }

/* ========== FORMATS ========== */
.formats-section { background: white; }
.formats-showcase {
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.format-box {
  background: var(--gray-50); border: 2px dashed var(--gray-300);
  border-radius: var(--radius); padding: 24px 32px; text-align: center; transition: var(--transition);
}
.format-box i { font-size: 2rem; color: var(--primary); display: block; margin-bottom: 8px; }
.format-box span { font-weight: 600; display: block; }
.format-box small { color: var(--gray-500); font-size: 0.8rem; }
.format-arrow { font-size: 1.5rem; color: var(--gray-400); }

/* ========== PRICING ========== */
.pricing-preview { background: white; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto;
}
.pricing-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 32px; transition: var(--transition); position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 4px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
}
.pricing-header { text-align: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-200); }
.pricing-header h3 { margin-bottom: 8px; }
.price { font-size: 2.5rem; font-weight: 800; color: var(--secondary); }
.price span { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.plan-conversions, .plan-filesize { color: var(--gray-500); margin-top: 4px; font-size: 0.9rem; }
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li { padding: 10px 0; color: var(--gray-600); display: flex; align-items: center; gap: 10px; }
.pricing-features li i { color: var(--success); }

/* ========== TESTIMONIALS ========== */
.testimonials { background: var(--gray-50); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px; transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stars { color: var(--accent); margin-bottom: 16px; }
.stars i { margin-right: 2px; }
.testimonial-card p { color: var(--gray-600); margin-bottom: 16px; font-style: italic; }
.testimonial-author strong { display: block; }
.testimonial-author span { color: var(--gray-500); font-size: 0.85rem; }

/* ========== FAQ ========== */
.faq-section { background: white; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: none; border: none; font-size: 1rem; font-weight: 600;
  cursor: pointer; color: var(--gray-800); transition: var(--transition); font-family: inherit;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question i { transition: var(--transition); }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 24px; }
.faq-answer.open { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { color: var(--gray-600); }

/* ========== CTA ========== */
.cta-section { background: white; }
.cta-box {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: var(--radius); padding: 64px; text-align: center; color: white;
}
.cta-box h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-box p { margin-bottom: 24px; opacity: 0.9; font-size: 1.1rem; }
.cta-box .btn { background: white; color: var(--primary); }
.cta-box .btn:hover { background: var(--gray-100); }

/* ========== AUTH PAGES ========== */
.auth-section { min-height: calc(100vh - 70px - 300px); display: flex; align-items: center; }
.auth-container { max-width: 440px; margin: 0 auto; width: 100%; }
.auth-card {
  background: white; border-radius: var(--radius); border: 1px solid var(--gray-200);
  padding: 40px; box-shadow: var(--shadow-lg);
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 12px; }
.auth-header h2 { margin-bottom: 4px; }
.auth-header p { color: var(--gray-500); }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: flex; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 8px; color: var(--gray-700);
}
.form-group label i { color: var(--primary); width: 16px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: 8px; font-size: 1rem; transition: var(--transition); font-family: inherit; background: white;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { resize: vertical; }

.auth-footer { text-align: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.auth-benefits { display: flex; justify-content: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.benefit-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--gray-500); }
.benefit-item i { color: var(--success); }

/* ========== ALERTS ========== */
.alert {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px;
  margin-bottom: 20px; font-size: 0.9rem;
}
.alert-error { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }

/* ========== DASHBOARD ========== */
.dashboard-section { min-height: calc(100vh - 70px - 300px); padding: 40px 0; }
.dashboard-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.dashboard-header h1 { font-size: 2rem; }
.dashboard-header p { color: var(--gray-500); }
.plan-badge {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e;
  padding: 10px 20px; border-radius: 8px; font-weight: 600;
}
.plan-badge i { color: var(--accent); }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px;
}
.stat-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 24px; display: flex; align-items: center; gap: 16px; transition: var(--transition); cursor: default;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card.upgrade-card { cursor: pointer; background: linear-gradient(135deg, #fef3c7, #fde68a); }
.stat-card.upgrade-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 48px; height: 48px; min-width: 48px; background: var(--primary-light);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.stat-icon i { font-size: 1.25rem; color: var(--primary); }
.stat-info .stat-value { display: block; font-size: 1.5rem; font-weight: 700; }
.stat-info .stat-label { color: var(--gray-500); font-size: 0.85rem; }

.dashboard-main { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.upload-card, .files-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px;
}
.upload-card h2, .files-card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.upload-info { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 24px; }

.upload-zone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; cursor: pointer; transition: var(--transition); margin-bottom: 24px;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: var(--primary-light); }
.upload-zone i { font-size: 3rem; color: var(--gray-400); margin-bottom: 16px; }
.upload-zone h3 { margin-bottom: 8px; }
.upload-zone p { color: var(--gray-500); }

.upload-progress { margin-bottom: 24px; }
.progress-bar { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 4px; width: 0%; transition: width 0.3s ease; }

.conversion-options { margin-bottom: 24px; }
.conversion-options h3 { margin-bottom: 16px; }
.format-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.format-btn { flex: 1; min-width: 120px; }

.files-list .empty-state { text-align: center; padding: 48px 24px; color: var(--gray-400); }
.files-list .empty-state i { font-size: 3rem; margin-bottom: 12px; display: block; }

.file-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border: 1px solid var(--gray-200); border-radius: 8px; margin-bottom: 12px; transition: var(--transition);
}
.file-item:hover { background: var(--gray-50); }
.file-info { display: flex; align-items: center; gap: 12px; flex: 1; }
.file-info i { font-size: 1.5rem; color: var(--primary); }
.file-info .file-meta small { display: block; color: var(--gray-500); }
.file-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ========== PLANS COMPARE TABLE ========== */
.plans-compare { margin-top: 64px; }
.plans-compare h2 { text-align: center; margin-bottom: 24px; }
.table-responsive { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: collapse; background: white;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200);
}
.compare-table th, .compare-table td {
  padding: 16px 24px; text-align: center; border-bottom: 1px solid var(--gray-200);
}
.compare-table th { background: var(--gray-50); font-weight: 600; color: var(--gray-700); }
.compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-table .fa-check { color: var(--success); }
.compare-table .fa-times { color: var(--error); }

/* ========== BANKS SECTION ========== */
.banks-section .bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 32px; }
.banks-section .bank-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: var(--transition); color: var(--gray-900); text-decoration: none;
}
.banks-section .bank-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.banks-section .bank-icon {
  width: 48px; height: 48px; background: var(--primary-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: var(--primary);
}
.banks-section .bank-card span { font-weight: 600; font-size: 14px; }
.banks-section .bank-card p { font-size: 12px; color: var(--gray-500); margin: 0; text-align: center; }
.banks-section .bank-more { text-align: center; margin-top: 24px; }
.banks-section .bank-more p { color: var(--gray-500); }

/* ========== COMPATIBILITY SECTION (index) ========== */
.compatibility-section .comp-wrap { max-width: 800px; margin: 0 auto; }
.compatibility-section .comp-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compatibility-section .comp-note { margin-top: 24px; text-align: center; }
.compatibility-section .comp-note p { color: var(--gray-500); }

/* ========== FOOTER EXTRAS ========== */
.footer-heart { color: #ef4444; }
.footer-address { margin-top: 8px; font-size: 0.85rem; color: var(--gray-500); }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 32px; }
.contact-item i { font-size: 1.5rem; color: var(--primary); margin-top: 4px; width: 32px; }
.contact-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-item p { color: var(--gray-500); }

/* ========== PAGE HEADER ========== */
.page-header { background: linear-gradient(135deg, #eff6ff, #faf5ff); padding: 60px 0; }
.page-header h1 { margin-bottom: 8px; }
.page-header p { color: var(--gray-500); font-size: 1.1rem; }

/* ========== HOW IT WORKS DETAIL ========== */
.how-details { max-width: 800px; margin: 0 auto; }
.how-step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px;
}
.how-step-image {
  background: var(--primary-light); border-radius: var(--radius); padding: 48px; text-align: center;
}
.how-step-image i { font-size: 4rem; color: var(--primary); }
.step-label {
  display: inline-block; background: var(--primary); color: white;
  padding: 4px 12px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 12px;
}
.how-step-content h2 { margin-bottom: 12px; }
.how-step-content p { color: var(--gray-600); margin-bottom: 16px; }
.how-step-content ul { list-style: none; }
.how-step-content ul li { padding: 6px 0; display: flex; align-items: center; gap: 8px; color: var(--gray-600); }
.how-step-content ul li i { color: var(--success); }
.format-pills { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.format-pills span {
  background: var(--gray-100); padding: 8px 16px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 8px;
}
.format-pills i { color: var(--primary); }

/* ========== LEGAL ========== */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-bottom: 8px; }
.legal-content h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.legal-content p { color: var(--gray-600); margin-bottom: 16px; line-height: 1.7; }

/* ========== ERROR ========== */
.error-page { min-height: calc(100vh - 70px - 300px); display: flex; align-items: center; text-align: center; }
.error-content { max-width: 500px; margin: 0 auto; }
.error-code {
  font-size: 8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 16px;
}
.error-content h1 { margin-bottom: 8px; }
.error-content p { color: var(--gray-500); margin-bottom: 32px; }
.error-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== FOOTER ========== */
.footer { background: var(--secondary); color: white; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.footer-logo i { color: var(--primary); }
.footer-col p { color: var(--gray-400); line-height: 1.7; }
.footer-col h4 { margin-bottom: 16px; font-size: 1.1rem; }
.footer-col a { display: block; padding: 6px 0; color: var(--gray-400); transition: var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid var(--gray-800); padding: 24px 0; text-align: center; color: var(--gray-500); font-size: 0.9rem; }
.footer-bottom a { color: var(--gray-400); }

/* ========== TOAST ========== */
.toast {
  position: fixed; bottom: 24px; right: 24px; padding: 16px 24px;
  border-radius: 8px; color: white; font-weight: 500; z-index: 9999;
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 3.7s; box-shadow: var(--shadow-lg);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.info { background: var(--primary); }

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

/* ========== FILE PREVIEW (dashboard) ========== */
.file-preview-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.file-preview-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.preview-table-wrapper { max-height: 300px; overflow: auto; }
.preview-table-wrapper table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.preview-table-wrapper th, .preview-table-wrapper td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.preview-table-wrapper th { background: var(--gray-50); position: sticky; top: 0; font-weight: 600; }

/* ========== LOADING SPINNER ========== */
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid var(--gray-300); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== PROFILE MENU ========== */
.user-dropdown { position: relative; display: inline-block; }
.user-dropdown-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 12px; border-radius: 8px; transition: var(--transition); }
.user-dropdown-toggle:hover { background: var(--gray-100); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.85rem; }
.user-dropdown-menu { display: none; position: absolute; right: 0; top: 100%; background: white; border: 1px solid var(--gray-200); border-radius: 8px; box-shadow: var(--shadow-lg); min-width: 180px; z-index: 100; }
.user-dropdown-menu.show { display: block; }
.user-dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--gray-700); transition: var(--transition); }
.user-dropdown-menu a:hover { background: var(--gray-50); }
.user-dropdown-menu a:first-child { border-radius: 8px 8px 0 0; }
.user-dropdown-menu a:last-child { border-radius: 0 0 8px 8px; }
.user-dropdown-menu .divider { border-top: 1px solid var(--gray-200); margin: 4px 0; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .how-step { grid-template-columns: 1fr; gap: 24px; }
  .how-step:nth-child(even) .how-step-image { order: -1; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .dashboard-main { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: white; padding: 16px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md);
  }
  .nav-links.active { display: flex; }
  .nav-auth { margin-left: 0; padding-left: 0; border-left: none; flex-direction: column; width: 100%; }
  .nav-auth .btn { width: 100%; justify-content: center; }
  .mobile-toggle { display: block; }
  .format-buttons { flex-direction: column; }
  .cta-box { padding: 32px 24px; }
  .auth-card { padding: 24px; }
  .compare-table th, .compare-table td { padding: 12px; font-size: 0.85rem; }
  .formats-showcase { flex-direction: column; }
  .format-arrow { transform: rotate(90deg); }
  .file-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .error-code { font-size: 5rem; }
}
