/* ==========================================================================
   Clitoria Ecom — public site stylesheet
   Covers: login/signup card, landing page (nav/hero/pricing), features,
   about/contact/privacy/terms doc pages, install guide, profile dashboard,
   footer, and the floating WhatsApp button.
   ========================================================================== */

:root {
  --brand: #7c3aed;
  --brand-dark: #5b21b6;
  --bg: #f6f5fb;
  --card: #ffffff;
  --text: #1f1330;
  --muted: #6b6480;
  --border: #e4e0f2;
  --danger: #d33;
  --success: #1a7f37;
  --warn: #b45309;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ---- Centered auth-card layout (login/signup/pay/payu-success etc.) ---- */
body:not(.landing) {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(90, 40, 180, 0.08);
}
.card-wide { max-width: 720px; }
.doc-card { text-align: left; }
.doc-card ul, .doc-card ol { padding-left: 20px; }
.doc-card li { margin-bottom: 6px; }

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.brand-name { font-weight: 700; font-size: 15px; color: var(--brand-dark); }

h1 { font-size: 20px; margin: 18px 0 6px; }
h2 { font-size: 17px; }
.sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.section-title { font-size: 16px; margin: 28px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #faf9fd;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

button, .price-cta {
  display: inline-block;
  text-align: center;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button { width: 100%; margin-top: 20px; padding: 11px; }
button:hover, .price-cta:hover { background: var(--brand-dark); }
.price-cta { padding: 12px 22px; }
.price-cta.secondary { background: #fff; color: var(--brand-dark); border: 1.5px solid var(--brand); }
.price-cta.secondary:hover { background: #f5f2fe; }

.alert { padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 6px; }
.alert-error { background: #fdecec; color: var(--danger); border: 1px solid #f5c6c6; }
.alert-success { background: #e9f8ee; color: var(--success); border: 1px solid #bfe6c9; }

.foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--brand); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; }

.badge {
  display: inline-block;
  background: #f1ebfd;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  margin-top: 10px;
  text-decoration: none;
}
.badge-ok { background: #e9f8ee; color: var(--success); }
.badge-warn { background: #fff6e6; color: var(--warn); }
.badge-danger { background: #fdecec; color: var(--danger); }

.note { background: #fff6e6; color: var(--warn); border: 1px solid #f3d9a1; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-top: 10px; }
.code-box { background: #1f1330; color: #e9e3ff; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; padding: 10px 12px; border-radius: 8px; margin: 8px 0; }

/* ==========================================================================
   Landing-page layout (body.landing) — index, features, about, contact,
   privacy, terms, install-guide, install-extension, buy, profile.
   ========================================================================== */
body.landing { display: block; padding: 0; }

.site-header, .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.cta {
  background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 8px; font-weight: 600;
}
.nav-links a.cta:hover { background: var(--brand-dark); }
.nav-toggle-checkbox { display: none; }
.nav-toggle { display: none; font-size: 22px; cursor: pointer; color: var(--brand-dark); }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 3;
    gap: 14px;
    padding-top: 12px;
  }
  .nav-toggle-checkbox:checked ~ .nav-links { display: flex; }
}

.hero { text-align: center; padding: 64px 24px 40px; }
.hero h1 { font-size: 32px; margin: 0 0 12px; }
.hero .sub { font-size: 16px; margin-bottom: 28px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.pricing-section { max-width: 1100px; margin: 0 auto; padding: 40px 24px 64px; text-align: center; }
.pricing-section h2 { font-size: 24px; margin-bottom: 6px; }
.pricing-sub { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.price-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-card.featured { border-color: var(--brand); box-shadow: 0 10px 30px rgba(124,58,237,.14); }
.price-card.best-value { border-color: #d4af37; }
.price-card.current-plan { border-color: var(--success); }
.price-card .ribbon {
  position: absolute; top: -12px; left: 20px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.price-card .ribbon.gold { background: linear-gradient(135deg, #f2c14e, #d4af37); }
.plan-name { font-weight: 700; font-size: 17px; margin-top: 6px; }
.price-line { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 15px; }
.price-now { font-size: 26px; font-weight: 800; color: var(--brand-dark); }
.price-period { color: var(--muted); font-size: 13px; }
.price-note { color: var(--muted); font-size: 12px; }
.savings-tag { display: inline-block; background: #e9f8ee; color: var(--success); font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; width: fit-content; }
.feature-list { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.price-card .price-cta { width: 100%; text-align: center; margin-top: 6px; }
.buy-link { display: block; text-align: center; font-size: 12.5px; color: var(--muted); text-decoration: none; margin-top: 4px; }
.buy-link:hover { color: var(--brand); text-decoration: underline; }

/* ---- Features page ---- */
.features-hero { text-align: center; padding: 56px 24px 20px; }
.features-hero h1 { font-size: 28px; margin-bottom: 10px; }
.features-grid { max-width: 1100px; margin: 24px auto; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.feature-card h3 { margin: 6px 0; font-size: 16px; }
.feature-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.f-icon { font-size: 26px; }
.f-tag { display: inline-block; background: #f1ebfd; color: var(--brand-dark); font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; }
.features-cta { text-align: center; padding: 40px 24px 72px; }
.features-cta h2 { font-size: 20px; margin-bottom: 16px; }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 18px 0; }
.contact-card { text-align: center; padding: 16px 10px; border: 1px solid var(--border); border-radius: 12px; }
.contact-card h3 { font-size: 13.5px; margin: 6px 0; }
.contact-card a { color: var(--brand-dark); font-size: 13px; text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .icon { font-size: 22px; }
.icon { font-size: 20px; }
.hours-badge { display: inline-block; background: #e9f8ee; color: var(--success); font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin: 6px 0 4px; }

/* ---- Install guide ---- */
.install-steps { display: flex; flex-direction: column; gap: 22px; margin-top: 22px; }
.step { display: flex; gap: 16px; }
.step-num {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.step-body { flex: 1; }
.step-body h3 { margin: 4px 0 8px; font-size: 15px; }
.step-body ul { margin: 6px 0; }

/* ==========================================================================
   Profile / account dashboard
   ========================================================================== */
.profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.profile-header h1 { margin: 0; font-size: 19px; }
.profile-header .email { color: var(--muted); font-size: 13px; }

.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }

.renew-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff6e6; border: 1px solid #f3d9a1; color: var(--warn);
  padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; flex-wrap: wrap;
}
.renew-banner.danger { background: #fdecec; border-color: #f5c6c6; color: var(--danger); }
.renew-banner a { color: inherit; font-weight: 700; text-decoration: underline; white-space: nowrap; }

.summary-card { background: #faf9fd; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin: 8px 0 24px; }
.summary-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.summary-plan-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.summary-expiry { color: var(--muted); font-size: 13px; margin-top: 6px; }

.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 8px; }
.usage-item { background: #faf9fd; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.usage-label { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.usage-value { font-size: 17px; font-weight: 700; }
.bar-track { background: var(--border); border-radius: 999px; height: 6px; margin-top: 8px; overflow: hidden; }
.bar-fill { background: var(--brand); height: 100%; border-radius: 999px; }

.renew-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 8px; }
.renew-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 20px; position: relative; }
.renew-card.current { border-color: var(--success); }
.renew-card .current-tag {
  position: absolute; top: -11px; left: 16px; background: var(--success); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.renew-card .plan-name { font-size: 15px; }
.renew-card .price { font-size: 24px; font-weight: 800; color: var(--brand-dark); margin-top: 2px; }
.renew-card .price-period { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.renew-card ul { list-style: none; padding: 0; margin: 10px 0; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.renew-card form { margin: 0; }
.renew-card button { margin-top: 8px; }

.account-details { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.account-details .row { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 13.5px; }
.account-details .row:not(:last-child) { border-bottom: 1px solid var(--border); }
.account-details .row span:first-child { color: var(--muted); }

/* ==========================================================================
   Footer + floating WhatsApp button (shared across every landing page)
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 28px 24px 40px;
  color: var(--muted);
  font-size: 12.5px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); text-decoration: underline; }

.wa-float-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  text-decoration: none;
}
.wa-float-btn:hover { background: #1fb855; }

@media (max-width: 640px) {
  .hero h1 { font-size: 26px; }
  .site-header, .nav { padding: 14px 18px; }
  .pricing-section, .features-hero, .features-cta { padding-left: 16px; padding-right: 16px; }
}
