/* ===== MAILSEO PRO — MAIN STYLESHEET ===== */
:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --accent: #7c6aff;
  --accent2: #a594ff;
  --accent-glow: rgba(124,106,255,0.15);
  --text: #f0f0f8;
  --text-muted: #8888aa;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(124,106,255,0.4);
  --card-bg: #13131e;
  --success: #22d3a0;
  --warning: #f5a524;
  --danger: #ff5757;
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

/* ===== LAYOUT ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,106,255,0.35); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); }
.btn-outline { background: transparent; color: var(--accent2); border: 1px solid rgba(124,106,255,0.4); }
.btn-outline:hover { background: var(--accent-glow); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-sm); }
.btn-full { width: 100%; justify-content: center; }

/* ===== HERO ===== */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-block;
  background: rgba(124,106,255,0.12);
  border: 1px solid rgba(124,106,255,0.3);
  color: var(--accent2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--accent2); }
.stat span { font-size: 13px; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-glow {
  position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,106,255,0.12) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
}

/* ===== TOOLS SECTION ===== */
.tools-section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin-bottom: 12px; }
.section-header p { font-size: 17px; color: var(--text-muted); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.tool-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.tool-card.featured { border-color: rgba(124,106,255,0.3); }
.tool-icon { font-size: 32px; margin-bottom: 16px; }
.tool-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.tool-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.tool-tag { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 100px; background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border); }
.tool-badge { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; background: var(--accent); color: #fff; }

/* ===== PRICING ===== */
.pricing-section { padding: 100px 0; background: var(--bg2); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}
.pricing-card.featured { border-color: rgba(124,106,255,0.5); background: linear-gradient(135deg, #13131e, #1a1530); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 16px; border-radius: 100px; white-space: nowrap; }
.plan-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: var(--accent2); margin-bottom: 28px; }
.plan-price span { font-size: 18px; color: var(--text-muted); }
.plan-features { list-style: none; margin-bottom: 32px; }
.plan-features li { padding: 8px 0; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: none; }
.plan-features li:not(.disabled) { color: var(--text); }
.plan-features .disabled { opacity: 0.4; }

/* ===== SOCIAL PROOF ===== */
.social-proof { padding: 100px 0; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.testimonial p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.author { font-size: 13px; color: var(--text-muted); }
.author strong { color: var(--text); }

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 12px; max-width: 220px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-links h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent2); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); text-align: center; }

/* ===== FORMS (login/register) ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 24px 40px; }
.auth-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; width: 100%; max-width: 440px; }
.auth-card h2 { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.auth-card .sub { font-size: 14px; color: var(--text-muted); margin-bottom: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text-muted); }
.form-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.form-footer a { color: var(--accent2); text-decoration: none; }

/* ===== DASHBOARD ===== */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg2); border-right: 1px solid var(--border);
  padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo { padding: 0 24px 32px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.sidebar-nav { list-style: none; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; color: var(--text-muted);
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: all 0.2s; border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--text); background: rgba(255,255,255,0.03); border-left-color: var(--accent); }
.sidebar-nav .nav-icon { font-size: 18px; }
.sidebar-section { font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 16px 24px 8px; opacity: 0.5; letter-spacing: 0.08em; text-transform: uppercase; }
.main-content { padding: 40px; background: var(--bg); }
.page-header { margin-bottom: 40px; }
.page-header h1 { font-family: var(--font-display); font-size: 32px; font-weight: 800; }
.page-header p { color: var(--text-muted); margin-top: 8px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 40px; }
.stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stat-card .label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.stat-card .value { font-family: var(--font-display); font-size: 32px; font-weight: 800; }
.stat-card .change { font-size: 13px; color: var(--success); margin-top: 6px; }

/* ===== TOOL PAGES ===== */
.tool-page { padding: 100px 0 60px; }
.tool-header { margin-bottom: 48px; }
.tool-header .breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.tool-header .breadcrumb a { color: var(--accent2); text-decoration: none; }
.tool-header h1 { font-family: var(--font-display); font-size: clamp(28px,4vw,44px); font-weight: 800; margin-bottom: 12px; }
.tool-header p { font-size: 17px; color: var(--text-muted); max-width: 600px; }
.tool-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; margin-bottom: 32px; }
.tool-box h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.result-row:last-child { border-bottom: none; }
.result-label { color: var(--text-muted); }
.result-pass { color: var(--success); font-weight: 500; }
.result-fail { color: var(--danger); font-weight: 500; }
.result-warn { color: var(--warning); font-weight: 500; }
.score-circle { width: 120px; height: 120px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: conic-gradient(var(--success) 0deg 252deg, var(--border) 252deg 360deg); margin: 0 auto 24px; box-shadow: inset 0 0 0 16px var(--card-bg); }
.score-circle .score-num { font-family: var(--font-display); font-size: 32px; font-weight: 800; }
.score-circle .score-label { font-size: 11px; color: var(--text-muted); }
.progress-bar { background: var(--bg3); border-radius: 100px; height: 6px; overflow: hidden; margin-top: 4px; }
.progress-fill { height: 100%; border-radius: 100px; background: var(--accent); }
.progress-fill.good { background: var(--success); }
.progress-fill.warn { background: var(--warning); }
.progress-fill.bad { background: var(--danger); }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: rgba(34,211,160,0.1); border: 1px solid rgba(34,211,160,0.3); color: var(--success); }
.alert-danger { background: rgba(255,87,87,0.1); border: 1px solid rgba(255,87,87,0.3); color: var(--danger); }
.alert-warning { background: rgba(245,165,36,0.1); border: 1px solid rgba(245,165,36,0.3); color: var(--warning); }
.alert-info { background: rgba(124,106,255,0.1); border: 1px solid rgba(124,106,255,0.3); color: var(--accent2); }

/* ===== BADGES ===== */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.badge-success { background: rgba(34,211,160,0.15); color: var(--success); }
.badge-danger { background: rgba(255,87,87,0.15); color: var(--danger); }
.badge-warning { background: rgba(245,165,36,0.15); color: var(--warning); }
.badge-info { background: rgba(124,106,255,0.15); color: var(--accent2); }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== UTILITY ===== */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent2); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.loading { opacity: 0.5; pointer-events: none; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 20px; }
  .hamburger { display: block; }
  .hero { padding: 120px 0 80px; }
  .hero-stats { gap: 20px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
