/* =====================================================================
   Polished and Profitable — shared theme (pink & gold, elegant)
   Used by both the sales page and the course app.
   ===================================================================== */

:root {
  --pink:        #6f7d6b;
  --pink-dark:   #52604e;
  --pink-soft:   #dde5da;
  --blush:       #eef2ec;
  --cream:       #fffaf7;
  --gold:        #c9a227;
  --gold-soft:   #e7d29a;
  --ink:         #3a2c33;
  --ink-soft:    #6b5560;
  --line:        #dfe8db;
  --white:       #ffffff;
  --shadow:      0 10px 30px rgba(132, 45, 80, 0.10);
  --shadow-sm:   0 4px 14px rgba(132, 45, 80, 0.08);
  --radius:      18px;
  --radius-sm:   12px;
  --serif:       "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:        "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dark); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 30px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center; line-height: 1;
}
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 8px 20px rgba(111,125,107,.35); }
.btn-primary:hover { background: var(--pink-dark); color:#fff; transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, #d8bd6e, var(--gold)); color: #4a3a05; }
.btn-gold:hover { transform: translateY(-2px); color:#4a3a05; }
.btn-outline { background: transparent; color: var(--pink); border: 2px solid var(--pink); }
.btn-outline:hover { background: var(--pink); color: #fff; }
.btn-ghost { background: var(--blush); color: var(--pink-dark); }
.btn-ghost:hover { background: var(--pink-soft); }
.btn-lg { padding: 17px 40px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[disabled] { opacity:.5; cursor: not-allowed; transform:none; box-shadow:none; }

/* ---- Pills / badges ---- */
.pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.pill-pink { background: var(--blush); color: var(--pink-dark); }
.pill-gold { background: #f7eecf; color: #8a6d12; }
.pill-green { background: #e3f6ec; color: #1f7a4d; }
.pill-grey { background: #eee; color: #777; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 700; color: var(--gold); margin-bottom: .6rem;
}

/* ---- Cards ---- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px;
}

/* gold divider */
.gold-rule { width: 70px; height: 3px; border: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft)); margin: 1rem 0; }
.center .gold-rule { margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---- Forms ---- */
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: .35rem; color: var(--ink); }
input[type=text], input[type=password], input[type=email], input[type=file], textarea, select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 1rem; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(111,125,107,.12); }
textarea { resize: vertical; min-height: 90px; }
.field { margin-bottom: 1rem; }
.help { font-size: .85rem; color: var(--ink-soft); }

/* ---- Alerts ---- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .95rem; }
.alert-success { background: #e3f6ec; color: #1f7a4d; border: 1px solid #b9e6cd; }
.alert-error   { background: #fde8ec; color: #b3203b; border: 1px solid #f6c3cf; }
.alert-info    { background: var(--blush); color: var(--pink-dark); border: 1px solid var(--pink-soft); }

/* ---- Progress bar ---- */
.progress-track { background: var(--blush); border-radius: 999px; height: 12px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--pink), var(--gold)); border-radius: 999px; transition: width .4s ease; }

/* utility */
.muted { color: var(--ink-soft); }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}
.flex { display:flex; } .between{justify-content:space-between} .items-center{align-items:center} .gap{gap:1rem} .wrap{flex-wrap:wrap}
.hidden { display: none !important; }

/* =====================================================================
   Leafgel purple theme (matches the Leafgel Premium USA logo) — applied on Leafgel pages via body.theme-leafgel.
   Custom properties inherit, so this recolors the pink accent to purple
   for the whole page while keeping gold, ink and cream neutral.
   ===================================================================== */
.theme-leafgel {
  --pink:      #4a3f7e;
  --pink-dark: #362c5c;
  --pink-soft: #d3cce7;
  --blush:     #efecf8;
  --line:      #e3def1;
}
.theme-leafgel .btn-primary { box-shadow: 0 8px 20px rgba(74,63,126,.35); }
.theme-leafgel .btn-primary:hover { box-shadow: 0 10px 24px rgba(74,63,126,.40); }
.theme-leafgel input:focus,
.theme-leafgel textarea:focus,
.theme-leafgel select:focus { box-shadow: 0 0 0 3px rgba(74,63,126,.12); }
.theme-leafgel .hero-art {
  background:
    radial-gradient(circle at 30% 25%, #fff 0 8px, transparent 9px),
    linear-gradient(150deg, #d3cce7, #4a3f7e 60%, #362c5c);
}

/* ---- Hub theme: charcoal + gold (applied on index.php via body.theme-hub) ---- */
.theme-hub {
  --pink:      #d97a9c;
  --pink-dark: #b8557c;
  --pink-soft: #f3d2df;
  --blush:     #fbeef3;
  --line:      #f4dde6;
}
.theme-hub .btn-primary { box-shadow: 0 8px 20px rgba(217,122,156,.32); }
.theme-hub .btn-primary:hover { box-shadow: 0 10px 24px rgba(217,122,156,.40); }
.theme-hub input:focus, .theme-hub textarea:focus, .theme-hub select:focus { box-shadow: 0 0 0 3px rgba(217,122,156,.12); }
.theme-hub .hero-art {
  background:
    radial-gradient(circle at 30% 25%, #fff 0 8px, transparent 9px),
    linear-gradient(150deg, #ecb9cd, #d97a9c 55%, #c9a227);
}

/* ---- Community theme: rose pink (applied on community pages via body.theme-community) ---- */
.theme-community {
  --pink:      #e64980;
  --pink-dark: #c2255c;
  --pink-soft: #f7c9d8;
  --blush:     #fdeef3;
  --line:      #f6dde6;
}
.theme-community .btn-primary { box-shadow: 0 8px 20px rgba(230,73,128,.35); }
.theme-community .btn-primary:hover { box-shadow: 0 10px 24px rgba(230,73,128,.40); }
.theme-community input:focus, .theme-community textarea:focus, .theme-community select:focus { box-shadow: 0 0 0 3px rgba(230,73,128,.12); }
