/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #FFC107;
  --primary-dk: #e6ad00;
  --primary-lt: #FFF8E1;
  --primary-txt:#1a1a2e;
  --accent:     #FFC107;
  --brand:      #0A3D91;
  --brand-dk:   #082e70;
  --brand-lt:   #dbeafe;
  --dark:       #0A3D91;
  --dark2:      #082e70;
  --dark3:      #0A3D91;
  --text:       #1e293b;
  --text-muted: #64748b;
  --border:     #e2e8f0;
  --bg:         #f8fafc;
  --white:      #ffffff;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(10,61,145,.10);
  --shadow-lg:  0 12px 40px rgba(10,61,145,.16);
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; z-index: 100;
}
.nav__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex; align-items: center; gap: 1rem;
}
.nav__logo {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.2rem; color: var(--primary);
  flex-shrink: 0;
}
.nav__logo-icon { font-size: 1.5rem; }
.nav__logo-sub  { color: rgba(255,255,255,.5); font-weight: 400; }

.nav__links { display: flex; align-items: center; gap: 1.25rem; flex: 1; }
.nav__links a {
  color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav__links a:hover { color: var(--primary); }

.nav__auth { display: flex; align-items: center; gap: .6rem; margin-left: auto; flex-shrink: 0; }
.nav__login {
  color: rgba(255,255,255,.8) !important; font-size: .88rem; font-weight: 600;
  padding: .4rem .9rem; border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,.2);
  transition: all var(--transition) !important;
}
.nav__login:hover { color: var(--primary) !important; border-color: var(--primary) !important; }
.nav__cta {
  background: var(--primary); color: var(--primary-txt) !important;
  padding: .45rem 1.1rem; border-radius: 8px; font-weight: 700 !important;
  font-size: .88rem;
  transition: background var(--transition) !important;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--primary-dk) !important; }

/* User nav state */
.nav__user-btn {
  display: flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.15);
  padding: .4rem .9rem; border-radius: 8px; cursor: pointer;
  transition: all var(--transition);
}
.nav__user-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0d2b6b 50%, #082e70 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.15rem; color: #cbd5e1; max-width: 560px; margin: 0 auto 2rem; }
.hero__badges { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,193,7,.12); border: 1px solid rgba(255,193,7,.25);
  color: #ffd54f; border-radius: 9999px; padding: .35rem .9rem;
  font-size: .82rem; font-weight: 500;
}

/* ── Search ───────────────────────────────────────────────────────────────── */
.search-wrap { position: relative; max-width: 480px; margin: 0 auto 2rem; }
.search-wrap form { display: flex; gap: .6rem; }
.search-wrap input {
  flex: 1; padding: .75rem 1.1rem; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.2);
  font-size: .95rem; outline: none;
  background: rgba(255,255,255,.1); color: #fff;
  transition: border-color var(--transition);
}
.search-wrap input::placeholder { color: rgba(255,255,255,.45); }
.search-wrap input:focus { border-color: var(--primary); background: rgba(255,255,255,.15); }
.search-dropdown {
  position: absolute; top: calc(100% + .4rem); left: 0; right: 0;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-lg);
  z-index: 200; overflow: hidden; display: none;
}
.search-dropdown.open { display: block; }
.search-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; cursor: pointer;
  transition: background var(--transition);
  text-decoration: none; color: var(--text);
}
.search-item:hover { background: var(--primary-lt); }
.search-item__icon { font-size: 1.3rem; flex-shrink: 0; }
.search-item__name { font-weight: 600; font-size: .92rem; }
.search-item__desc { font-size: .78rem; color: var(--text-muted); }
.search-no-results { padding: .9rem 1rem; color: var(--text-muted); font-size: .9rem; }

/* ── Section ──────────────────────────────────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }
.section__title {
  font-size: 1.65rem; font-weight: 800; color: var(--text); margin-bottom: .5rem;
  text-align: center;
}
.section__subtitle { text-align: center; color: var(--text-muted); margin-bottom: 3rem; font-size: 1rem; }

/* ── Tool grid ────────────────────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.tool-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.tool-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--primary-lt); opacity: 0;
  transition: opacity var(--transition);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.tool-card:hover::before { opacity: 1; }
.tool-card__icon { font-size: 2.2rem; margin-bottom: .75rem; display: block; position: relative; z-index: 1; }
.tool-card__name { font-weight: 700; font-size: .97rem; color: var(--text); margin-bottom: .35rem; position: relative; z-index: 1; }
.tool-card__desc { font-size: .8rem; color: var(--text-muted); line-height: 1.4; position: relative; z-index: 1; flex: 1; }
.tool-card__tag  {
  display: inline-block; margin-top: .6rem;
  background: var(--primary); color: var(--primary-txt);
  font-size: .7rem; font-weight: 700; padding: .15rem .55rem;
  border-radius: 9999px; position: relative; z-index: 1;
}

/* ── Upload zone ──────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  transition: border-color var(--transition), background var(--transition);
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: var(--primary-lt); }
.upload-zone__icon  { font-size: 3rem; margin-bottom: 1rem; display: block; }
.upload-zone__title { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.upload-zone__sub   { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.25rem; }
.upload-zone input[type="file"] { display: none; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .65rem 1.5rem; border-radius: 8px;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--primary); color: var(--primary-txt); }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,193,7,.35); }
.btn-brand     { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(10,61,145,.35); }
.btn-secondary { background: var(--white); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-lt); }
.btn-success   { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-dark      { background: var(--dark); color: #fff; }
.btn-dark:hover{ background: var(--dark2); }
.btn-google    {
  background: #fff; color: #3c4043; border: 1.5px solid #dadce0;
  font-weight: 600; justify-content: center;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.btn:disabled  { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Auth pages ───────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(135deg, var(--dark) 0%, #082e70 100%);
}
.auth-card {
  background: var(--white); border-radius: 16px;
  padding: 2.5rem 2rem; width: 100%; max-width: 420px;
  margin: auto; box-shadow: var(--shadow-lg);
}
.auth-card__logo { text-align: center; margin-bottom: 1.5rem; }
.auth-card__logo-txt { font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.auth-card__logo-icon { font-size: 2rem; }
.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: .35rem; color: var(--dark); }
.auth-card__sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.75rem; }
.auth-divider {
  display: flex; align-items: center; gap: .75rem;
  color: var(--text-muted); font-size: .82rem; margin: 1.25rem 0;
}
.auth-divider::before, .auth-divider::after { content:''; flex:1; border-top: 1px solid var(--border); }
.form-group { margin-bottom: 1rem; }
.form-group label { font-weight: 600; font-size: .88rem; display: block; margin-bottom: .4rem; color: var(--text); }
.form-group input {
  width: 100%; padding: .65rem .95rem; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .95rem; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
}
.form-group input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,61,145,.12); background: #fff; }
.form-group input.error { border-color: #ef4444; }
.form-error { color: #ef4444; font-size: .8rem; margin-top: .3rem; display: none; }
.form-error.show { display: block; }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: .88rem; color: var(--text-muted); }
.auth-footer a { color: var(--brand); font-weight: 600; }
.auth-footer a:hover { color: var(--primary); }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .85rem; }
.form-row label { font-size: .85rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; align-items: center; gap: .4rem; }
.form-row a { font-size: .85rem; color: var(--brand); font-weight: 600; }
.form-row a:hover { color: var(--primary); }

/* ── File list ────────────────────────────────────────────────────────────── */
.file-list { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.25rem; }
.file-item {
  display: flex; align-items: center; gap: .75rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: .75rem 1rem;
}
.file-item__icon { font-size: 1.4rem; flex-shrink: 0; }
.file-item__info { flex: 1; min-width: 0; }
.file-item__name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item__size { font-size: .78rem; color: var(--text-muted); }
.file-item__remove { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text-muted); padding: .2rem; border-radius: 4px; transition: color var(--transition); }
.file-item__remove:hover { color: #ef4444; }

/* ── Status / Progress ────────────────────────────────────────────────────── */
.status-box {
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem;
}
.status-box.processing { background: #eff6ff; border: 1px solid #bfdbfe; }
.status-box.success    { background: #f0fdf4; border: 1px solid #bbf7d0; }
.status-box.error      { background: #fef2f2; border: 1px solid #fecaca; }
.status-box__icon { font-size: 1.6rem; flex-shrink: 0; }
.status-box__text strong { display: block; font-weight: 700; font-size: .95rem; }
.status-box__text span   { font-size: .85rem; color: var(--text-muted); }
.spinner {
  width: 28px; height: 28px; border: 3px solid #bfdbfe;
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Tool page ────────────────────────────────────────────────────────────── */
.tool-page { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.tool-page__header { text-align: center; margin-bottom: 2.5rem; }
.tool-page__header-icon { font-size: 3rem; margin-bottom: .75rem; display: block; }
.tool-page__header h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.tool-page__header p  { color: var(--text-muted); font-size: 1rem; }
.tool-actions { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ── Preview grid ─────────────────────────────────────────────────────────── */
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.preview-item { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-align: center; }
.preview-item canvas { width: 100% !important; height: auto !important; display: block; }
.preview-item__label { font-size: .75rem; color: var(--text-muted); padding: .4rem; font-weight: 500; }

/* ── Range / options ──────────────────────────────────────────────────────── */
.range-group { margin: 1.25rem 0; }
.range-group label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .5rem; }
.range-group input[type=range] { width: 100%; accent-color: var(--primary); }
.range-value { color: var(--brand); font-weight: 700; }
.option-group { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.option-btn {
  padding: .45rem 1rem; border-radius: 8px; border: 1.5px solid var(--border);
  font-size: .88rem; font-weight: 600; cursor: pointer; background: var(--white); color: var(--text);
  transition: all var(--transition);
}
.option-btn.active, .option-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-lt); }

/* ── API docs ─────────────────────────────────────────────────────────────── */
.api-page { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.endpoint-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); margin-bottom: 1.5rem; overflow: hidden; }
.endpoint-header { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.method-badge { font-size: .75rem; font-weight: 800; padding: .3rem .65rem; border-radius: 6px; }
.method-get  { background: #dcfce7; color: #16a34a; }
.method-post { background: #dbeafe; color: #2563eb; }
.endpoint-path { font-family: 'Courier New', monospace; font-size: .95rem; font-weight: 700; }
.endpoint-desc { color: var(--text-muted); font-size: .88rem; margin-left: auto; }
.endpoint-body { padding: 1.25rem; }
.code-block {
  background: #0f172a; color: #e2e8f0; border-radius: 8px;
  padding: 1rem 1.25rem; font-family: 'Courier New', monospace;
  font-size: .82rem; line-height: 1.7; overflow-x: auto;
  margin-top: .6rem;
}
.code-block .key  { color: #93c5fd; }
.code-block .str  { color: #86efac; }
.code-block .num  { color: #fca5a5; }
.endpoint-body h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .4rem; }

/* ── How it works ─────────────────────────────────────────────────────────── */
.steps { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.step { text-align: center; max-width: 200px; }
.step__num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--primary-txt); font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; }
.step__title { font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.step__desc  { font-size: .82rem; color: var(--text-muted); }

/* ── Features ─────────────────────────────────────────────────────────────── */
.features { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features__inner { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 2rem; }
.feature { text-align: center; }
.feature__icon  { font-size: 2.2rem; margin-bottom: .75rem; }
.feature__title { font-weight: 700; margin-bottom: .35rem; font-size: 1rem; }
.feature__desc  { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: var(--dark); color: #94a3b8; text-align: center; padding: 2.5rem 1.5rem; font-size: .88rem; }
.footer strong { color: var(--primary); }
.footer__links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; justify-content: center; margin-top: .75rem; }
.footer__links a { color: #64748b; transition: color var(--transition); }
.footer__links a:hover { color: var(--primary); }

/* ── Page thumb / rotate / remove ────────────────────────────────────────── */
.page-thumb { background: var(--white); border: 2px solid var(--border); border-radius: 8px; padding: .6rem; text-align: center; cursor: pointer; transition: all .15s; position: relative; }
.page-thumb:hover { border-color: var(--primary); }
.page-thumb.selected { border-color: var(--primary); background: var(--primary-lt); }
.page-thumb.marked   { border-color: #ef4444; background: #fef2f2; }
.page-thumb canvas   { display: block; margin: 0 auto; max-width: 100%; }
.page-thumb__label   { font-size: .72rem; color: var(--text-muted); margin-top: .4rem; }
.page-thumb__rot     { font-size: .78rem; font-weight: 700; color: var(--brand); }
.select-check { position: absolute; top: .3rem; right: .3rem; width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: .7rem; }
.page-thumb.selected .select-check { background: var(--primary); border-color: var(--primary); color: var(--primary-txt); }
.del-badge { position: absolute; top: .3rem; left: .3rem; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; padding: .15rem .4rem; border-radius: 4px; display: none; }
.page-thumb.marked .del-badge { display: block; }
.img-preview { width: 100%; height: 120px; object-fit: cover; display: block; border-radius: 6px 6px 0 0; }

/* ── Pricing page ─────────────────────────────────────────────────────────── */
.pricing-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0d2b6b 50%, #082e70 100%);
  color: var(--white); text-align: center; padding: 4.5rem 1.5rem 3rem;
}
.pricing-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .75rem; }
.pricing-hero h1 span { color: var(--primary); }
.pricing-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2rem; }

/* Toggle */
.billing-toggle {
  display: inline-flex; align-items: center; gap: .75rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 9999px; padding: .35rem;
  margin: 0 auto 2rem;
}
.toggle-btn {
  padding: .45rem 1.25rem; border-radius: 9999px; border: none;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); background: transparent; color: rgba(255,255,255,.7);
}
.toggle-btn.active { background: var(--primary); color: var(--primary-txt); }
.save-badge {
  background: #16a34a; color: #fff; font-size: .72rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 9999px; margin-left: -.4rem;
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem 4rem;
}
.pricing-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 16px; padding: 2rem 1.75rem;
  position: relative; transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
  border-color: var(--primary); box-shadow: 0 8px 32px rgba(255,193,7,.25);
  transform: translateY(-6px);
}
.pricing-card.popular:hover { transform: translateY(-10px); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--primary-txt);
  font-size: .75rem; font-weight: 800; padding: .3rem 1.1rem;
  border-radius: 9999px; white-space: nowrap; letter-spacing: .04em; text-transform: uppercase;
}
.plan-icon { font-size: 2rem; margin-bottom: .75rem; }
.plan-name { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: .25rem; }
.plan-tagline { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.25rem; font-style: italic; }
.plan-price { margin-bottom: 1.5rem; }
.plan-price .amount { font-size: 2.75rem; font-weight: 900; color: var(--dark); line-height: 1; }
.plan-price .period { font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.plan-price .yearly-note { font-size: .8rem; color: #16a34a; font-weight: 600; margin-top: .2rem; display: block; }
.plan-price .custom { font-size: 1.6rem; font-weight: 800; color: var(--dark); }
.plan-features { list-style: none; margin-bottom: 1.75rem; flex: 1; }
.plan-features li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; color: var(--text); padding: .45rem 0;
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: '✓'; color: #16a34a; font-weight: 800; flex-shrink: 0; }
.plan-btn { width: 100%; padding: .8rem 1.5rem; border-radius: 10px; font-size: .97rem; font-weight: 700; cursor: pointer; border: none; transition: all var(--transition); text-align: center; }
.plan-btn-primary { background: var(--primary); color: var(--primary-txt); }
.plan-btn-primary:hover { background: var(--primary-dk); box-shadow: 0 4px 16px rgba(255,193,7,.4); }
.plan-btn-brand { background: var(--brand); color: #fff; }
.plan-btn-brand:hover { background: var(--brand-dk); box-shadow: 0 4px 16px rgba(10,61,145,.35); }
.plan-btn-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.plan-btn-outline:hover { background: var(--brand); color: #fff; }

/* Payment methods */
.payment-section { background: var(--white); border-top: 1px solid var(--border); padding: 3rem 1.5rem; text-align: center; }
.payment-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.payment-section p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.payment-methods { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.payment-badge {
  display: flex; align-items: center; gap: .6rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: .65rem 1.25rem; font-weight: 600; font-size: .9rem;
}
.payment-badge svg, .payment-badge img { height: 24px; }

/* Pricing FAQ */
.pricing-faq { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.pricing-faq h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 2rem; text-align: center; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  font-size: .97rem; font-weight: 600; color: var(--text);
  padding: 1.1rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.faq-q:hover { color: var(--brand); }
.faq-q .chevron { font-size: .8rem; transition: transform .2s; flex-shrink: 0; color: var(--text-muted); }
.faq-q.open .chevron { transform: rotate(180deg); }
.faq-a { font-size: .88rem; color: var(--text-muted); line-height: 1.7; padding-bottom: 1rem; display: none; }
.faq-a.open { display: block; }

/* Payment modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 16px; width: 100%; max-width: 480px;
  padding: 2rem; box-shadow: 0 24px 80px rgba(0,0,0,.25); position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal__close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-muted);
  width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: var(--bg); color: var(--text); }
.modal h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: .25rem; }
.modal__sub { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.5rem; }
.modal__tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.modal__tab {
  flex: 1; padding: .55rem; border-radius: 8px; border: 1.5px solid var(--border);
  font-size: .9rem; font-weight: 600; cursor: pointer; background: var(--white); color: var(--text-muted);
  transition: all var(--transition); text-align: center;
}
.modal__tab.active { border-color: var(--brand); color: var(--brand); background: var(--brand-lt); }
.modal__panel { display: none; }
.modal__panel.active { display: block; }

/* Dashboard */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.dash-sidebar { background: var(--white); border-right: 1px solid var(--border); padding: 1.5rem 0; }
.dash-sidebar__logo { padding: 0 1.25rem 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.dash-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1.25rem; font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition); border-left: 3px solid transparent;
}
.dash-nav a:hover { color: var(--brand); background: var(--brand-lt); }
.dash-nav a.active { color: var(--brand); background: var(--brand-lt); border-left-color: var(--brand); font-weight: 700; }
.dash-nav a span:first-child { font-size: 1.1rem; }
.dash-content { padding: 2.5rem; overflow-y: auto; }
.dash-content h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: .25rem; }
.dash-content__sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.stat-card__label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .5rem; }
.stat-card__value { font-size: 2rem; font-weight: 800; color: var(--dark); }
.stat-card__sub { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }
.dash-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.dash-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.history-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 0; border-bottom: 1px solid var(--border); font-size: .88rem;
}
.history-item:last-child { border-bottom: none; }
.history-icon { font-size: 1.4rem; flex-shrink: 0; }
.history-info { flex: 1; min-width: 0; }
.history-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-meta { color: var(--text-muted); font-size: .78rem; }
.history-time { font-size: .78rem; color: var(--text-muted); flex-shrink: 0; }
.plan-tag { display: inline-flex; align-items: center; gap: .3rem; background: var(--primary-lt); color: var(--primary-txt); border: 1px solid rgba(255,193,7,.3); font-size: .75rem; font-weight: 700; padding: .2rem .65rem; border-radius: 9999px; }
.plan-tag.pro { background: var(--brand-lt); color: var(--brand); border-color: rgba(10,61,145,.2); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-content { padding: 1.5rem; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__auth .nav__login { display: none; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 3rem 1rem 2.5rem; }
  .steps { gap: 1rem; }
  .auth-card { margin: 1.5rem; }
  .pricing-grid { grid-template-columns: 1fr; padding: 0 1rem 3rem; }
  .pricing-card.popular { transform: none; }
}
