/* ============================================================
   WABULK — Site stylesheet
   ============================================================ */

:root {
  --brand: #4a90e2;
  --brand-strong: #2f7fd8;
  --brand-dark: #1f3b64;
  --primary: #5a9bf3;
  --primary-hover: #3a82e1;
  --accent: #f39c12;
  --success: #2ca36c;
  --danger: #d9534f;
  --text: #2a3f5f;
  --text-muted: #6b7684;
  --border: #e5e9ef;
  --border-soft: #eef1f5;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --warn-bg: #fff5e1;
  --warn-border: #fbe2b5;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 46, .06);
  --shadow-md: 0 6px 22px rgba(15, 27, 46, .08);
  --shadow-lg: 0 22px 50px rgba(15, 27, 46, .10);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  padding: 0 24px;
  margin: 0 auto;
}

h1, h2, h3, h4 { color: var(--brand-dark); font-weight: 700; margin-top: 0; }
h1 { font-size: 42px; line-height: 1.1; letter-spacing: -0.5px; }
h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.3px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

code {
  background: #eef3fb;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .92em;
  color: #2a4b7d;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

p { margin: 0 0 14px; }
.muted { color: var(--text-muted); }
.pill-accent { display:inline-block; background:#fff5e1; color:#a86100; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:600; margin-bottom:14px; }
.grad { background: linear-gradient(90deg, #5aa7ea, #2f7fd8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s ease;
  text-decoration: none !important;
  font-family: inherit;
  line-height: 1;
}
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: #eff6ff; }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 20;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brand-dark); font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 4px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a:not(.btn) { color: var(--text); padding: 8px 12px; font-weight: 500; border-radius: 6px; }
.nav-links a:not(.btn):hover { background: var(--bg-soft); text-decoration: none; }

/* ===== Main ===== */
.site-main { min-height: 70vh; }

/* ===== Alerts ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin: 18px 0;
  font-size: 14px;
}
.alert-success { background: #e6f7ec; color: #1d6b3e; border: 1px solid #bee8cf; }
.alert-error { background: #fde8e6; color: #9e2a25; border: 1px solid #f4b9b3; }
.alert-info { background: #e8f2fd; color: #1d4f91; border: 1px solid #bbd7f5; }

/* ===== HERO ===== */
.hero { padding: 60px 0 40px; background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 { margin: 0 0 16px; }
.lede { font-size: 18px; color: var(--text-muted); margin-bottom: 24px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.hero-bullets { list-style: none; padding: 0; margin: 10px 0 0; color: var(--text-muted); font-size: 14px; }
.hero-bullets li { margin-bottom: 4px; }

/* Hero preview card (mini extension mock) */
.hero-visual { display: flex; justify-content: center; }
.preview-card {
  width: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
}
.preview-head { padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.preview-logo { width: 22px; height: 22px; border-radius: 3px; }
.preview-tabs { display: flex; background: var(--bg-soft); border-bottom: 1px solid var(--border-soft); }
.ptab { flex: 1; text-align: center; padding: 10px 0; font-size: 12px; color: var(--text-muted); border-bottom: 2px solid transparent; }
.ptab.active { color: var(--brand); border-bottom-color: var(--brand); background: #fff; font-weight: 600; }
.preview-body { padding: 14px 16px; }
.preview-label { font-size: 13px; margin-bottom: 6px; }
.preview-input {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #c8cdd6;
  min-height: 120px;
  margin-bottom: 10px;
}
.preview-tip {
  background: #fff7c9;
  border: 1px solid #ffe97a;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #5a4f1a;
  margin: 10px 0;
}

/* ===== Section heads ===== */
.section-head { text-align: center; margin: 60px 0 32px; }
.section-head p { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 10px auto 0; }

/* ===== Features ===== */
.features { padding: 40px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-ico { font-size: 26px; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 6px; font-size: 17px; }
.feature-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ===== How it works ===== */
.how { padding: 40px 0; background: var(--bg-soft); margin-top: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 40px; height: 40px; line-height: 40px;
  background: var(--primary); color: #fff; border-radius: 50%;
  font-weight: 700; margin: 0 auto 14px;
}
.step h3 { margin: 0 0 8px; }
.step p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ===== Pricing (landing + full page) ===== */
.pricing-teaser, .pricing-full { padding: 40px 0; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 24px; }
.pricing-full .plans-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 30px auto; }
.plan-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.plan-highlight { border-color: #b7d4f5; box-shadow: var(--shadow-md); }
.plan-highlight.is-selected, .plan-card.is-selected { border-color: var(--primary); }
.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #cfe0f7;
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  padding: 5px 14px;
  border-radius: 999px;
}
.plan-card h3 { margin: 0 0 8px; font-size: 18px; }
.plan-price { font-size: 18px; margin: 8px 0 6px; }
.plan-price .big { font-size: 36px; font-weight: 700; color: var(--brand-dark); }
.plan-price .sub { color: var(--text-muted); font-size: 14px; margin-left: 4px; }
.plan-total { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; flex: 1; }
.plan-list li { padding: 6px 0; border-bottom: 1px dashed var(--border-soft); }
.plan-list li:last-child { border-bottom: none; }

/* Compare table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto 30px;
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.compare-table th { background: var(--bg-soft); font-weight: 700; }
.compare-table th:nth-child(2), .compare-table td:nth-child(2),
.compare-table th:nth-child(3), .compare-table td:nth-child(3) { text-align: center; }
.pro-val { color: var(--success); font-weight: 700; }

/* Secure payment note (pricing) */
.secure-note-block { max-width: 760px; margin: 30px auto; text-align: center; }
.secure-note-block p { margin: 0 0 12px; color: var(--text-muted); font-size: 14px; }
.badge-row { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--border);
}
.badge-norton { border-color: #228b22; color: #228b22; }
.badge-sat { background: #ffd700; color: #333; border-color: #e0b000; }
.badge-mc { background: #eb001b; color: #fff; border-color: #eb001b; }
.badge-visa { background: #1a1f71; color: #fff; border-color: #1a1f71; }
.badge-dc { background: #ff6000; color: #fff; border-color: #ff6000; }
.badge-amex { background: #2e77bb; color: #fff; border-color: #2e77bb; }

/* ===== FAQ ===== */
.faq-section { padding: 40px 0 80px; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-dark);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::before { content: "– "; }
.faq-item p { color: var(--text-muted); margin: 10px 0 0; font-size: 14px; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, #4a90e2 0%, #2f7fd8 100%);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #eaf2fc; margin-bottom: 24px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-strong); border-color: #fff; }
.cta-band .btn-primary:hover { background: #eaf2fc; color: var(--brand-dark); }

/* ===== Page heads ===== */
.page-head { background: var(--bg-soft); padding: 60px 0 30px; border-bottom: 1px solid var(--border-soft); }
.page-head h1 { margin: 0 0 6px; }
.page-head p { color: var(--text-muted); margin: 0; }

/* ===== Auth ===== */
.auth-wrap { padding: 40px 0; }
.auth-container {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.auth-card h1 { margin-bottom: 6px; font-size: 26px; }
.auth-side {
  padding: 32px;
  background: linear-gradient(135deg, #eaf2fc, #f7faff);
  border-radius: var(--radius-lg);
}
.auth-side h2 { margin: 0 0 14px; font-size: 20px; }
.auth-side ul { list-style: none; padding: 0; margin: 0; color: var(--text); }
.auth-side ul li { padding: 6px 0; }
.auth-alt { text-align: center; color: var(--text-muted); margin-top: 16px; font-size: 14px; }

.form label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.form input {
  display: block; width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90,155,243,.15);
  outline: none;
}
.optional { color: var(--text-muted); font-weight: 400; font-size: 12px; }

/* Token box (callback page) */
.token-box {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin: 18px 0;
  word-break: break-all;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
}

/* ===== Download page ===== */
.download-body { padding: 40px 0 80px; }
.download-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; }
.download-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.download-icon img { width: 96px; height: 96px; margin: 0 auto 14px; }
.version { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.muted-note { color: var(--text-muted); font-size: 13px; margin: 16px 0 8px; }
.howto { padding-left: 20px; line-height: 1.8; color: var(--text); }

/* ===== Dashboard ===== */
.dashboard-body { padding: 30px 0 80px; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.card h3 { margin: 0 0 12px; font-size: 17px; }
.card-wide { grid-column: 1 / -1; }
.badge-plan { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; letter-spacing: .5px; margin-bottom: 10px; }
.badge-pro { background: #e6f7ec; color: #1d6b3e; }
.badge-free { background: var(--bg-soft); color: var(--text-muted); }
.api-key { background: var(--bg-soft); border-radius: 6px; padding: 10px; font-family: ui-monospace,Menlo,Consolas,monospace; font-size: 12px; word-break: break-all; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }

/* ===== Data tables ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.data-table th { background: var(--bg-soft); font-weight: 600; }
.cell-valid { color: var(--success); font-weight: 600; }
.cell-invalid { color: var(--danger); font-weight: 600; }

/* ===== Admin ===== */
.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 24px;
}
.admin-tabs a {
  padding: 10px 18px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.admin-tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.admin-tabs a:hover { text-decoration: none; color: var(--brand); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.stat-num { font-size: 28px; font-weight: 700; color: var(--brand-dark); }
.stat-label { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.search-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.search-bar input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}
.row-actions { white-space: nowrap; }

.status-pending { color: #a86100; }
.status-active { color: var(--success); font-weight: 600; }
.status-completed { color: var(--success); font-weight: 600; }
.status-cancelled, .status-expired, .status-failed, .status-refunded { color: var(--danger); }

.msg-item { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.msg-item:last-child { border-bottom: none; }
.msg-head { display: flex; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.msg-head .muted { font-size: 13px; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 60px;
  padding: 48px 0 24px;
  background: #0f1b2e;
  color: #a9bad1;
}
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand img { filter: brightness(1.1); }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { display: block; color: #a9bad1; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-tag { color: #7389a8; font-size: 14px; max-width: 340px; margin: 0; }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 24px; margin-top: 32px;
  border-top: 1px solid #1b2b46;
  font-size: 13px;
  color: #7389a8;
}
.footer-bottom a { color: #fff; display: inline; padding: 0; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  h1 { font-size: 32px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .preview-card { width: 100%; max-width: 380px; transform: none; }
  .features-grid, .steps, .plans-grid, .dashboard-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .pricing-full .plans-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 14px; }
  .auth-container { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn):not(:last-child):not(:nth-last-child(2)) { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
