/* Elivora - shared stylesheet */

:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --border: #e4e7ef;
  --text: #1c2333;
  --text-muted: #667085;
  --primary: #1584ab;
  --primary-dark: #0d3156;
  --green: #12875a;
  --green-bg: #e5f7ee;
  --amber: #a8660a;
  --amber-bg: #fdf1de;
  --red: #c0293b;
  --red-bg: #fbe7ea;
  --blue: #1584ab;
  --blue-bg: #e5f4f9;
  --gray: #667085;
  --gray-bg: #eef0f4;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);

  /* Elivora brand (from logo) */
  --navy: #081c33;
  --navy-2: #0b3156;
  --cyan: #4fc3e0;
  --cyan-2: #2AA8C4;
  --brand-gradient: linear-gradient(135deg, var(--navy-2), var(--cyan));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; color: var(--text-muted); }

/* Header */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { height: 34px; width: auto; display: block; }
.brand-text { color: #fff; }
.brand-text-accent { color: var(--cyan); }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { color: rgba(255,255,255,.85); font-weight: 500; font-size: 14px; text-decoration: none; }
.main-nav a:hover { color: var(--cyan); }
.main-nav .nav-admin { color: #ff8a80; font-weight: 700; }
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,.15);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 22px; background: #fff; border-radius: 2px; margin: 0 auto; }

main { padding: 32px 0 64px; min-height: 60vh; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding: 44px 20px 28px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-logo { height: 46px; width: auto; object-fit: contain; }
.footer-tagline { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: #fff; margin: 0; }
.footer-tagline span { display: block; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.55); text-transform: none; font-size: 12px; margin-top: 2px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 9px; text-decoration: none; }
.footer-col a:hover { color: var(--cyan); }
.footer-col p { color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 8px; }
.footer-col p a { display: inline; color: rgba(255,255,255,.85); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 20px; font-size: 13px; color: rgba(255,255,255,.5); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-gradient); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.card-header h2, .card-header h3 { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 700; color: var(--text-muted); }

/* Hero (legacy / functional pages) */
.hero { padding: 56px 0 40px; text-align: center; }
.hero h1 { font-size: 42px; max-width: 760px; margin: 0 auto 16px; }
.hero p.lead { font-size: 18px; max-width: 620px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Tier badges/cards */
.tier-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.tier-wholesaler { background: #e8ecfd; color: #2952e3; }
.tier-reseller { background: #fdf1de; color: #a8660a; }
.tier-proseller { background: #f1e6fb; color: #7a2ec0; }

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.tier-card { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; }
.tier-card.featured { border-color: var(--primary); box-shadow: 0 4px 20px rgba(21,132,171,.15); }
.tier-card h3 { margin-bottom: 6px; }
.tier-card .tier-desc { font-size: 13px; margin-bottom: 18px; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 30px 0;
}
.service-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
  display: block;
  text-decoration: none;
  color: var(--text);
}
.service-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,24,40,.09); text-decoration: none; }
.service-tile .num { font-size: 12px; font-weight: 800; color: var(--primary); letter-spacing: .05em; }
.service-tile h3 { margin: 6px 0 6px; font-size: 16px; }
.service-tile p { font-size: 13px; margin: 0; }
.service-tile .lock { float: right; font-size: 12px; color: var(--amber); font-weight: 700; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group { margin-bottom: 18px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=tel], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,132,171,.12); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; }
legend { font-size: 13px; font-weight: 700; padding: 0 6px; }

/* Auth pages */
.auth-wrap { max-width: 440px; margin: 30px auto; }
.auth-wrap .card { padding: 32px; }
.auth-switch { text-align: center; font-size: 14px; margin-top: 14px; color: var(--text-muted); }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--green-bg); color: var(--green); border-color: #bfe9d4; }
.alert-error { background: var(--red-bg); color: var(--red); border-color: #f3c3cb; }
.alert-info { background: var(--blue-bg); color: var(--blue); border-color: #c7d3fb; }
.alert-warning { background: var(--amber-bg); color: var(--amber); border-color: #f5ddb1; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-gray { background: var(--gray-bg); color: var(--gray); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 700; background: #fafbfd; }
tr:last-child td { border-bottom: none; }
td.wrap, th.wrap { white-space: normal; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.stat-card .stat-value { font-size: 26px; font-weight: 800; margin-top: 4px; }

/* Dashboard layout */
.dash-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.dash-nav { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; position: sticky; top: 84px; }
.dash-nav a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--text); font-weight: 500; }
.dash-nav a:hover, .dash-nav a.active { background: var(--blue-bg); color: var(--primary); text-decoration: none; }
.dash-nav .group-label { font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; padding: 12px 12px 4px; }

@media (max-width: 860px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-nav { position: static; }
  .tier-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 20px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .nav-user { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 10px; margin-top: 4px; width: 100%; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.print-only { display: none; }
@media print {
  .site-header, .site-footer, .no-print, .elivora-floating { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
}

/* ===================== Floating chatbot + WhatsApp ===================== */
.elivora-floating { position: fixed; right: 20px; bottom: 20px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fab {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(8,28,51,.28);
  cursor: pointer; border: none; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.04); text-decoration: none; }
.fab-whatsapp { background: #25D366; color: #fff; }
.fab-chat { background: var(--brand-gradient); color: #fff; position: relative; }
.fab-chat .fab-icon-close { display: none; }
.fab-chat.open .fab-icon-chat { display: none; }
.fab-chat.open .fab-icon-close { display: block; }
.fab-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #ff5a5f; border: 2px solid #fff; }
.fab-chat.open .fab-dot { display: none; }

.chat-panel {
  position: fixed; right: 20px; bottom: 90px;
  width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 130px);
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(8,28,51,.35);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(16px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 998;
}
.chat-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

.chat-panel-header { background: var(--brand-gradient); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.chat-header-logo { width: 34px; height: 34px; background: #fff; border-radius: 50%; padding: 4px; }
.chat-header-title { font-weight: 700; font-size: 15px; }
.chat-header-sub { font-size: 11px; opacity: .85; display: flex; align-items: center; gap: 5px; }
.chat-online-dot { width: 7px; height: 7px; border-radius: 50%; background: #37e88f; display: inline-block; }
.chat-close { margin-left: auto; background: transparent; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 16px; background: #f7f9fc; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; }
.chat-msg-bot { justify-content: flex-start; }
.chat-msg-user { justify-content: flex-end; }
.chat-bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.chat-msg-bot .chat-bubble { background: #fff; color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg-user .chat-bubble { background: var(--brand-gradient); color: #fff; border-bottom-right-radius: 4px; }
.chat-typing .chat-bubble, .chat-bubble.chat-typing { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; display: flex; gap: 4px; padding: 14px 16px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gray); display: inline-block; animation: chatTyping 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-input-area { border-top: 1px solid var(--border); padding: 12px; background: #fff; }
.chat-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-choice-btn {
  background: var(--blue-bg); color: var(--primary); border: 1px solid transparent;
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.chat-choice-btn:hover { background: var(--primary); color: #fff; text-decoration: none; }
.chat-choice-whatsapp { background: #e6f9ee; color: #128c4a; }
.chat-choice-whatsapp:hover { background: #25D366; color: #fff; }
.chat-text-form { display: flex; gap: 8px; }
.chat-text-input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-family: inherit;
}
.chat-text-input:focus { outline: none; border-color: var(--primary); }
.chat-send-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--brand-gradient); color: #fff;
  cursor: pointer; font-size: 15px; flex-shrink: 0;
}
.chat-skip-btn { background: none; border: none; color: var(--text-muted); font-size: 12px; margin-top: 8px; cursor: pointer; text-decoration: underline; }

body.chat-open { overflow: hidden; }

@media (max-width: 480px) {
  .chat-panel {
    right: 0; bottom: 0; left: 0; top: 0;
    width: 100%; max-width: 100%; height: 100%; max-height: 100%;
    border-radius: 0;
  }
  .elivora-floating { right: 14px; bottom: 14px; }
  .fab { width: 52px; height: 52px; }
}

/* ===================== Marketing homepage - dark 3D theme ===================== */
.mkt-hero {
  position: relative;
  background: radial-gradient(ellipse at 30% 20%, #0e2b4a 0%, var(--navy) 55%, #030910 100%);
  color: #fff;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  padding: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -32px;
}
.mkt-hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 20px 70px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
  min-height: 560px;
}
.mkt-hero-copy .eyebrow { color: var(--cyan); }
.mkt-hero-copy h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 10px 0 20px;
  background: linear-gradient(120deg, #ffffff 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mkt-hero-copy p.lead { color: rgba(255,255,255,.75); font-size: 18px; max-width: 520px; margin: 0 0 28px; }
.mkt-hero-copy .hero-actions { justify-content: flex-start; }
.mkt-hero-copy .btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.mkt-hero-copy .btn-secondary:hover { background: rgba(255,255,255,.16); }

#hero3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#hero3d canvas { pointer-events: auto; }
.mkt-hero-visual { position: relative; height: 440px; }

.mkt-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(79,195,224,.15), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(127,227,255,.12), transparent 45%);
  pointer-events: none;
}

.mkt-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.mkt-stat { text-align: center; }
.mkt-stat .stat-count { font-size: 34px; font-weight: 800; background: linear-gradient(120deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mkt-stat .stat-caption { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* Glass panels for sections that sit on the light body background */
.glass-section { padding: 70px 0; }
.glass-section .section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.glass-section .section-head .eyebrow { color: var(--primary); }

.glass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.glass-card {
  background: linear-gradient(160deg, #ffffff, #f3f8fb);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(8,28,51,.06);
  transition: box-shadow .2s ease;
  will-change: transform;
}
.glass-card:hover { box-shadow: 0 20px 45px rgba(8,28,51,.12); }
.glass-card .icon-badge {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; margin-bottom: 14px;
}
.glass-card.locked { position: relative; }
.glass-card .lock-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--amber-bg); color: var(--amber);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}

/* Dark band sections (tiers, CTA) */
.dark-band { background: var(--navy); color: #fff; border-radius: 28px; padding: 60px 40px; margin: 0 0 70px; }
.dark-band .section-head .eyebrow { color: var(--cyan); }
.dark-band .section-head h2 { color: #fff; }
.dark-band .section-head p { color: rgba(255,255,255,.65); }

.tier-grid-dark { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier-card-dark {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.tier-card-dark.featured { border-color: var(--cyan); background: rgba(79,195,224,.08); }
.tier-card-dark h3 { color: #fff; }
.tier-card-dark p { color: rgba(255,255,255,.6); }

.cta-band {
  text-align: center;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 28px;
  padding: 60px 30px;
  margin: 0 0 20px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .btn-secondary { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,.24); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal-in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

@media (max-width: 900px) {
  .mkt-hero-inner { grid-template-columns: 1fr; padding: 60px 20px 40px; min-height: auto; }
  .mkt-hero-visual { height: 300px; order: -1; }
  .mkt-hero-copy h1 { font-size: 34px; }
  .mkt-stats { grid-template-columns: repeat(2, 1fr); }
  .tier-grid-dark { grid-template-columns: 1fr; }
  .dark-band { padding: 40px 20px; border-radius: 20px; }
  .mkt-hero { border-radius: 0 0 20px 20px; }
}

/* ===================== Elivora University - lesson video ===================== */
.uni-header .brand-text-accent { color: var(--cyan); }
.lesson-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.lesson-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-watermark {
  position: absolute; inset: 0;
  pointer-events: none;
  display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around;
  opacity: .16;
  transform: rotate(-16deg) scale(1.25);
}
.lesson-watermark span {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  white-space: nowrap;
}

/* University course cards reuse .glass-card / .services-grid already defined above */

/* ===================== Full mobile-optimization pass ===================== */

/* Prevent any accidental horizontal scroll site-wide */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, iframe, video { max-width: 100%; }
* { -webkit-tap-highlight-color: transparent; }

/* Comfortable tap targets on touch devices */
@media (max-width: 860px) {
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 38px; }
  .main-nav a, .dash-nav-links a { min-height: 44px; display: flex; align-items: center; }
  input[type=text], input[type=email], input[type=password], input[type=number],
  input[type=date], input[type=tel], select, textarea { font-size: 16px; } /* prevents iOS auto-zoom on focus */
}

/* Tighter container/card padding on small screens so content has more room */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .card { padding: 18px; }
  .auth-wrap .card { padding: 22px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .stat-card { padding: 14px 16px; }
  .stat-card .stat-value { font-size: 22px; }
}

/* Header brand: keep it compact on narrow phones */
@media (max-width: 420px) {
  .brand-text { font-size: 14px; letter-spacing: 0; }
  .brand-mark { height: 28px; }
}

/* ---- Collapsible dashboard/admin sidebar nav on mobile ---- */
.dash-nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.dash-nav-toggle svg { transition: transform .18s ease; flex-shrink: 0; }
.dash-nav-toggle.open svg { transform: rotate(180deg); }

@media (max-width: 860px) {
  .dash-nav { padding: 0; border: none; background: transparent; box-shadow: none; }
  .dash-nav-toggle { display: flex; }
  .dash-nav-links {
    display: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
    max-height: 60vh;
    overflow-y: auto;
  }
  .dash-nav-links.open { display: block; }
}

/* ---- Responsive "card" tables on mobile (paired with main.js data-label helper) ---- */
@media (max-width: 700px) {
  .table-wrap { overflow-x: visible; }
  .table-wrap table, .table-wrap tbody { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tfoot { display: block; width: 100%; }
  .table-wrap tfoot tr { display: flex; justify-content: space-between; padding: 10px 4px; }
  .table-wrap tbody tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #fff;
  }
  .table-wrap tbody tr:last-child { margin-bottom: 0; }
  .table-wrap td {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px 14px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border);
    white-space: normal;
    text-align: right;
  }
  .table-wrap td:last-child { border-bottom: none; }
  .table-wrap td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-muted);
    text-align: left;
    flex-shrink: 0;
    padding-top: 1px;
  }
  .table-wrap td > form,
  .table-wrap td .flex { justify-content: flex-end; flex-wrap: wrap; }
  .table-wrap select, .table-wrap input[type=text], .table-wrap input[type=number] { width: auto; max-width: 160px; }
}

/* ---- Floating widgets respect iPhone safe-area (home indicator) ---- */
.elivora-floating { right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); }
.chat-panel { right: max(20px, env(safe-area-inset-right)); }
@media (max-width: 480px) {
  .chat-panel { padding-bottom: env(safe-area-inset-bottom); }
  .elivora-floating { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
}

/* ---- Hero + dark sections fine-tuning on very small phones ---- */
@media (max-width: 480px) {
  .mkt-hero-inner { padding: 44px 16px 32px; }
  .mkt-hero-copy h1 { font-size: 28px; }
  .mkt-hero-copy p.lead { font-size: 15px; }
  .mkt-hero-visual { height: 220px; }
  .mkt-stats { grid-template-columns: repeat(2, 1fr); padding: 0 16px 40px; gap: 14px; }
  .mkt-stat .stat-count { font-size: 26px; }
  .glass-card { padding: 20px; }
  .dark-band, .cta-band { padding: 32px 18px; border-radius: 16px; }
}

/* ---- Certificate + printable pages ---- */
@media (max-width: 600px) {
  .lesson-video-wrap + .form-hint { font-size: 11px; }
}
@media (max-width: 560px) {
  #university-certificate-card, .certificate-card { padding: 32px 18px !important; }
}

/* ---- Standalone inline-width inputs outside tables: don't let them overflow narrow screens ---- */
@media (max-width: 480px) {
  .form-row input[style*="width"], .flex > input[style*="width"] { max-width: 100%; }
}

/* ---- Elivora University: quizzes & exams ---- */
.quiz-question {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
}
.quiz-question h4 { margin: 0 0 12px; font-size: 16px; }
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
}
.quiz-option input[type=radio] { margin-top: 3px; width: auto; }
label.quiz-option:hover { border-color: var(--cyan); }
.quiz-option.is-correct { border-color: #1f9d55; background: var(--green-bg); }
.quiz-option.is-incorrect { border-color: #d64545; background: var(--red-bg); }
.quiz-result-banner {
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.quiz-result-banner.pass { background: var(--green-bg); border-color: #1f9d55; }
.quiz-result-banner.fail { background: var(--red-bg); border-color: #d64545; }
.quiz-result-banner .score { font-size: 36px; font-weight: 800; }
@media (max-width: 480px) {
  .quiz-question { padding: 12px; }
  .quiz-result-banner { padding: 18px; }
  .quiz-result-banner .score { font-size: 30px; }
}

/* ---- Internal marketing page hero banner (About/Pricing/FAQ/etc.) ---- */
.page-hero {
  background: var(--navy);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(79,195,224,.28), transparent 42%),
    radial-gradient(circle at 85% 70%, rgba(41,82,227,.28), transparent 46%);
  color: #fff;
  text-align: center;
  padding: 76px 20px 64px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -32px;
  margin-bottom: 60px;
  border-radius: 0 0 28px 28px;
}
.page-hero .eyebrow { color: var(--cyan); }
.page-hero h1 { color: #fff; font-size: 42px; max-width: 760px; margin: 10px auto 16px; }
.page-hero p.lead { color: rgba(255,255,255,.75); font-size: 17px; max-width: 620px; margin: 0 auto; }
.page-hero .hero-actions { justify-content: center; margin-top: 26px; }

/* ---- Steps / timeline (How It Works) ---- */
.steps-timeline { max-width: 760px; margin: 0 auto; }
.step-item {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.step-item h3 { margin-bottom: 6px; }
.step-item p { margin-bottom: 0; }

/* ---- FAQ accordion (native <details>/<summary>, no JS needed) ---- */
.faq-category { margin-bottom: 36px; }
.faq-category h3 {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 14px;
  margin-bottom: 14px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 16px 44px 16px 18px;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
  transition: transform .15s ease;
}
.faq-item[open] .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 18px 18px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* ---- Testimonials ---- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.testimonial-stars { color: #f5a623; font-size: 15px; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-quote { font-size: 15px; color: var(--text); flex: 1; margin-bottom: 18px; }
.testimonial-quote::before { content: "\201C"; }
.testimonial-quote::after { content: "\201D"; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-role { font-size: 12px; color: var(--text-muted); }
.testimonial-disclaimer { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 30px; }

/* ---- Pricing page ---- */
.pricing-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.pricing-table-wrap table th, .pricing-table-wrap table td { text-align: center; }
.pricing-table-wrap table th:first-child, .pricing-table-wrap table td:first-child { text-align: left; }

/* ---- Homepage teaser strips (About / How It Works / Testimonials / FAQ) ---- */
.teaser-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.teaser-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform .12s ease, box-shadow .12s ease;
}
.teaser-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,24,40,.1); text-decoration: none; }
.teaser-card h3 { margin: 4px 0 6px; font-size: 16px; }
.teaser-card p { font-size: 13px; margin-bottom: 0; }
.teaser-card .teaser-arrow { color: var(--primary); font-weight: 700; font-size: 13px; margin-top: 10px; display: inline-block; }

@media (max-width: 700px) {
  .page-hero { padding: 56px 18px 46px; }
  .page-hero h1 { font-size: 30px; }
  .step-item { gap: 14px; padding: 20px 0; }
  .step-num { width: 40px; height: 40px; font-size: 15px; }
}
@media (max-width: 480px) {
  .page-hero { margin: -32px -16px 40px; border-radius: 0 0 20px 20px; padding: 48px 16px 38px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero p.lead { font-size: 14px; }
  .faq-question { padding: 14px 38px 14px 14px; font-size: 14px; }
  .faq-answer { padding: 0 14px 14px; font-size: 13.5px; }
}
