/* ============================================================
   FlipFiles Pro — Main Stylesheet
   Colour Scheme: Deep Purple + Coral
   Primary: #1e0a3c | Accent: #FF5E5B | Link: #a78bfa
   ============================================================ */

:root {
  --primary:       #1e0a3c;
  --primary-dark:  #0a0614;
  --primary-mid:   #2d1259;
  --accent:        #FF5E5B;
  --accent-hover:  #e54845;
  --accent-soft:   rgba(255,94,91,0.12);
  --purple-light:  #a78bfa;
  --purple-soft:   rgba(167,139,250,0.12);
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --border:        #2d1f4a;
  --card-bg:       #1a1030;
  --card-hover:    #221440;
  --success:       #10b981;
  --warning:       #F59E0B;
  --error:         #ef4444;
  --white:         #ffffff;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --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);
  --transition:    all 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--purple-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* ── UTILITY ──────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-purple { color: var(--purple-light); }
.text-muted  { color: var(--text-secondary); }
.mt-4  { margin-top: 1rem; }
.mb-4  { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700; cursor: pointer;
  border: none; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--white);
  box-shadow: 0 4px 16px rgba(255,94,91,0.35);
}
.btn-primary:hover {
  background: var(--accent-hover); color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,94,91,0.45);
}
.btn-secondary {
  background: rgba(255,255,255,0.08); color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14); color: var(--white);
  border-color: var(--purple-light);
}
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-sm  { padding: 8px 16px; font-size: 13px; }
.btn-lg  { padding: 16px 36px; font-size: 16px; }
.btn-full{ width: 100%; justify-content: center; }

/* ── NAVIGATION ───────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--primary-dark);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px; gap: 24px;
}
.nav-logo {
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.02em; color: var(--accent);
  text-decoration: none; flex-shrink: 0;
}
.nav-logo span { color: var(--text-primary); font-weight: 400; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary); font-size: 14px;
  font-weight: 500; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--purple-light); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-privacy-badge {
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(255,94,91,0.3);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--text-primary); font-size: 22px; cursor: pointer;
}

/* ── SECTION HEADERS ──────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--primary-dark); }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px; display: block;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 14px;
}
.section-title em { color: var(--accent); font-style: normal; }
.section-sub {
  font-size: 17px; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-mid) 100%);
  padding: 90px 0 80px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(167,139,250,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 20px; font-size: 12px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--purple-soft); color: var(--purple-light);
  border: 1px solid rgba(167,139,250,0.3);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 62px); font-weight: 900;
  line-height: 1.06; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 18px; color: var(--text-secondary);
  max-width: 580px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-btns {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 56px;
}
.hero-stats {
  display: flex; gap: 48px; justify-content: center;
  flex-wrap: wrap; padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-size: 36px; font-weight: 900;
  color: var(--accent); letter-spacing: -0.02em;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── TRUST BAR ────────────────────────────────────────── */
.trust-bar {
  background: var(--primary-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
}

/* ── DISCLAIMER BOX ───────────────────────────────────── */
.disclaimer-box {
  background: var(--accent-soft);
  border: 1px solid rgba(255,94,91,0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex; gap: 14px; align-items: flex-start;
  margin: 32px 0;
}
.disclaimer-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.disclaimer-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.disclaimer-text { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.disclaimer-text a { color: var(--accent); font-weight: 600; }

/* ── CARDS ────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px; transition: var(--transition);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(255,94,91,0.15);
  transform: translateY(-2px);
}

/* ── TOOLS GRID ───────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 18px;
  cursor: pointer; transition: var(--transition);
}
.tool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(255,94,91,0.18);
  transform: translateY(-3px);
}
.tool-icon  { font-size: 28px; margin-bottom: 12px; }
.tool-name  { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.tool-desc  { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.tool-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; margin-top: 8px;
  background: var(--accent-soft); color: var(--accent);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.tool-badge.ai   { background: var(--purple-soft); color: var(--purple-light); }
.tool-badge.new  { background: rgba(16,185,129,0.12); color: #10b981; }

/* ── PRICING ──────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 20px; max-width: 1000px; margin: 0 auto;
}
.price-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px 24px;
  text-align: center; transition: var(--transition);
}
.price-card.featured {
  background: linear-gradient(135deg, var(--accent), #ff8a88);
  border-color: var(--accent);
  color: var(--white);
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(255,94,91,0.4);
}
.price-plan {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
}
.price-card.featured .price-plan { color: rgba(255,255,255,0.8); }
.price-amount { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; }
.price-period { font-size: 15px; color: var(--text-muted); }
.price-card.featured .price-period { color: rgba(255,255,255,0.75); }
.price-desc { font-size: 13px; color: var(--text-muted); margin: 12px 0 20px; line-height: 1.6; }
.price-card.featured .price-desc { color: rgba(255,255,255,0.8); }
.price-features { list-style: none; text-align: left; margin-bottom: 24px; }
.price-features li {
  font-size: 13px; padding: 5px 0;
  display: flex; gap: 8px; color: var(--text-secondary);
}
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink:0; }
.price-card.featured .price-features li { color: rgba(255,255,255,0.9); }
.price-card.featured .price-features li::before { color: var(--white); }

/* ── FORMS ────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 14px; transition: var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-input::placeholder { color: var(--text-muted); }
.form-error { font-size: 12px; color: var(--error); margin-top: 4px; display: none; }
.form-success { font-size: 12px; color: var(--success); margin-top: 4px; display: none; }

/* ── AUTH PAGES ───────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 40px 24px;
}
.auth-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center; margin-bottom: 28px;
  font-size: 24px; font-weight: 900; color: var(--accent);
}
.auth-logo span { color: var(--text-primary); font-weight: 400; }
.auth-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.auth-divider {
  text-align: center; font-size: 12px; color: var(--text-muted);
  margin: 20px 0; position: relative;
}
.auth-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border); z-index: 0;
}
.auth-divider span {
  background: var(--card-bg); padding: 0 12px; position: relative; z-index: 1;
}
.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.auth-switch a { color: var(--accent); font-weight: 600; }

/* ── DASHBOARD ────────────────────────────────────────── */
.dashboard { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--primary-dark); border-right: 1px solid var(--border);
  padding: 24px 0; position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto;
}
.sidebar-logo {
  padding: 0 20px 24px; font-size: 18px; font-weight: 800;
  color: var(--accent); border-bottom: 1px solid var(--border);
  margin-bottom: 16px; display: block;
}
.sidebar-logo span { color: var(--text-primary); font-weight: 400; }
.sidebar-section { padding: 8px 20px 4px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
  transition: var(--transition); cursor: pointer; border: none;
  background: none; width: 100%;
}
.sidebar-link:hover, .sidebar-link.active {
  color: var(--text-primary); background: rgba(255,94,91,0.08);
  border-left: 3px solid var(--accent);
}
.dashboard-main { flex: 1; padding: 32px; overflow-y: auto; }
.usage-bar-wrap {
  background: var(--border); border-radius: 20px;
  height: 8px; overflow: hidden; margin: 8px 0;
}
.usage-bar {
  height: 8px; background: var(--accent);
  border-radius: 20px; transition: width 0.5s ease;
}
.usage-bar.danger { background: var(--error); }

/* ── UPLOAD AREA ──────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-xl);
  padding: 48px 32px; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--card-bg);
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload-icon { font-size: 48px; margin-bottom: 16px; }
.upload-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.upload-sub { font-size: 13px; color: var(--text-muted); }
.upload-disclaimer {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 16px; font-size: 12px; color: var(--text-muted);
  background: var(--accent-soft); padding: 8px 16px;
  border-radius: var(--radius-md);
}

/* ── FOOTER ───────────────────────────────────────────── */
.footer { background: var(--primary-dark); padding: 56px 0 28px; }
.footer-privacy {
  background: var(--accent-soft); border: 1px solid rgba(255,94,91,0.2);
  border-radius: var(--radius-md); padding: 16px 24px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--accent); margin-bottom: 48px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand { font-size: 20px; font-weight: 900; color: var(--accent); margin-bottom: 10px; }
.footer-brand span { color: var(--text-primary); font-weight: 400; }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 13px; color: var(--text-muted);
  margin-bottom: 8px; transition: var(--transition);
}
.footer-col a:hover { color: var(--text-primary);

/* ══ SIMPLE FLAT NAV ════════════════════════════════════ */
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links li { list-style: none; }
.nav-links a {
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  padding: 6px 10px; white-space: nowrap; transition: var(--transition);
  text-decoration: none; border-radius: var(--radius-sm);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

@media (max-width: 960px) {
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--primary-dark); border-bottom: 1px solid var(--border);
    padding: 12px 0; z-index: 2000; gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 20px; width: 100%; }
}
