/* /assets/css/app.css — Enhanced Premium UI */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

:root {
  --navy:       #0d1b2e;
  --navy-mid:   #13243d;
  --navy-soft:  #1b3358;
  --sky:        #2563eb;
  --sky-glow:   #3b82f6;
  --gold:       #d4a853;
  --gold-light: #f0c97a;
  --gold-pale:  #fdf3dc;
  --cream:      #faf8f4;
  --chalk:      #f4f1ec;
  --white:      #ffffff;
  --bg:          var(--chalk);
  --card:        var(--white);
  --text:        #1a1f2e;
  --text-soft:   #3d4460;
  --muted:       #7e869e;
  --accent:      var(--sky);
  --accentHover: #1d4ed8;
  --gold-accent: var(--gold);
  --line:        #e6e2db;
  --shadow-sm:   0 2px 8px rgba(13,27,46,.06);
  --shadow-md:   0 8px 24px rgba(13,27,46,.10);
  --shadow-lg:   0 20px 50px rgba(13,27,46,.14);
  --shadow-gold: 0 8px 28px rgba(212,168,83,.22);
  --glow-sky:    0 0 0 4px rgba(37,99,235,.15);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,.06) 0%, transparent 60%);
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accentHover); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; }

.container { max-width: 1140px; margin: 0 auto; padding: 32px 28px; }

/* NAV */
.nav {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 68px;
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), var(--shadow-md);
}

.nav .left { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav .links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:hover { border-color: rgba(37,99,235,.4); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.nav .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.nav .btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); }

.btn.primary { background: var(--sky); border-color: var(--sky); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn.primary:hover { background: var(--accentHover); border-color: var(--accentHover); box-shadow: 0 6px 20px rgba(37,99,235,.45); }

.btn.gold { background: linear-gradient(135deg, var(--gold) 0%, #c49240 100%); border-color: transparent; color: var(--navy); font-weight: 700; box-shadow: var(--shadow-gold); }
.btn.gold:hover { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%); box-shadow: 0 10px 34px rgba(212,168,83,.38); }

.btn.secondary { background: #EEF4FF; border-color: #C7D9FF; color: #1e40af; }
.btn.secondary:hover { background: #dbeafe; border-color: #93c5fd; }

.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); padding: 10px 10px; }
.btn.ghost:hover { background: rgba(37,99,235,.08); border-color: transparent; transform: none; box-shadow: none; }

.btn.danger { background: rgba(255,255,255,.08); border-color: rgba(252,165,165,.35); color: #fca5a5; }
.btn.danger:hover { background: rgba(239,68,68,.12); border-color: rgba(252,165,165,.55); }

.button-container { display: flex; justify-content: center; align-items: center; width: 100%; margin-top: 20px; }

/* CARDS */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.card + .card { margin-top: 20px; }

/* TYPOGRAPHY */
.muted { color: var(--muted); }
hr { border: 0; height: 1px; background: linear-gradient(to right, transparent, var(--line) 30%, var(--line) 70%, transparent); margin: 20px 0; }

/* FORMS */
label { display: block; margin: 14px 0 6px; color: var(--text-soft); font-size: 13px; font-weight: 600; letter-spacing: .02em; }

input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text);
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}

input:not([type="radio"]):not([type="checkbox"]):focus, select:focus, textarea:focus {
  border-color: var(--sky);
  box-shadow: var(--glow-sky);
}

input::placeholder, textarea::placeholder { color: var(--muted); font-weight: 300; }
input[type="radio"], input[type="checkbox"] { width: auto; padding: 0; margin: 2px 0 0 0; border: none; box-shadow: none; accent-color: var(--accent); flex: 0 0 auto; }
textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } }

/* FLASH */
.flash { padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--line); margin-bottom: 18px; font-size: 14px; font-weight: 500; display: flex; align-items: flex-start; gap: 10px; }
.flash::before { flex-shrink: 0; font-size: 16px; margin-top: 1px; }
.flash.success { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.07); color: #065f46; }
.flash.success::before { content: '✓'; }
.flash.error { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.07); color: #991b1b; }
.flash.error::before { content: '✕'; }
.flash.info { border-color: rgba(37,99,235,.25); background: rgba(37,99,235,.06); color: #1e40af; }
.flash.info::before { content: 'ℹ'; }

/* AUTH LAYOUT */
.auth-wrap { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 36px 28px; }
.auth-card { width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); border-radius: var(--r-xl); padding: 40px; animation: fadeUp .4s ease; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.auth-title { margin: 0 0 6px 0; font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text); }
.auth-subtitle { margin: 0 0 20px 0; color: var(--muted); font-size: 14px; }
.auth-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-start; flex-wrap: wrap; margin-top: 16px; }
.auth-foot { margin-top: 16px; color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* TABLE */
.table { width: 100%; border-collapse: collapse; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); font-size: 14px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--chalk); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(37,99,235,.03); }
@media (max-width: 760px) { .table { display: block; overflow-x: auto; white-space: nowrap; } }

/* AREA GRID */
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
@media (max-width: 900px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .area-grid { grid-template-columns: 1fr; } }

.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  min-height: 170px;
  padding: 28px 26px 52px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.area-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(37,99,235,.04) 0%, transparent 60%); pointer-events: none; }

.area-card-arrow {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--chalk);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--sky);
  transition: background .2s, transform .2s;
}

.area-card:hover { transform: translateY(-6px); border-color: rgba(37,99,235,.3); box-shadow: 0 16px 36px rgba(37,99,235,.12), var(--shadow-md); }
.area-card:hover .area-card-arrow { background: var(--sky); color: #fff; transform: translateX(3px); }
.area-title { margin: 0; color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.3; max-width: 85%; }
.area-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 90%; }

.step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.step-actions { display: flex; gap: 10px; align-items: center; }

/* PROBLEM GRID */
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.problem-grid form { margin: 0; }
@media (max-width: 980px) { .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-height: 180px;
  padding: 24px 22px 52px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  outline: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  text-align: left;
  width: 100%;
}

.problem-card::after { content: '→'; position: absolute; right: 20px; bottom: 18px; font-size: 18px; font-weight: 900; color: var(--sky); opacity: .6; transition: transform .2s, opacity .2s; }
.problem-card:hover { transform: translateY(-5px); border-color: rgba(37,99,235,.3); box-shadow: 0 14px 32px rgba(37,99,235,.12), var(--shadow-md); }
.problem-card:hover::after { transform: translateX(4px); opacity: 1; }
.problem-card:focus-visible { border-color: var(--sky); box-shadow: var(--glow-sky), var(--shadow-md); }
.problem-title { margin: 0; color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.3; max-width: 90%; }
.problem-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 92%; }

/* LOADING */
.loading-overlay { position: fixed; inset: 0; background: rgba(13,27,46,.6); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 9999; }
.loading-overlay.show { display: flex; }
.loading-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px 36px; box-shadow: var(--shadow-lg); width: min(520px, calc(100vw - 40px)); animation: fadeUp .3s ease; }
.loading-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 8px 0; color: var(--text); }
.loading-sub { color: var(--muted); margin: 0; font-size: 14px; }
.loading-row { display: flex; align-items: center; gap: 16px; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #dbeafe; border-top-color: var(--sky); animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-progress { height: 3px; background: var(--chalk); border-radius: 3px; margin-top: 18px; overflow: hidden; }
.loading-progress-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--sky), #60a5fa); animation: progressPulse 2s ease-in-out infinite; width: 60%; }
@keyframes progressPulse { 0% { width: 20%; } 50% { width: 80%; } 100% { width: 20%; } }

/* POLICY CHECKBOXES */
.policy-checkboxes { margin-top: 20px; font-size: 14px; width: 100%; }
.policy-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; align-items: start; width: 100%; margin: 0 0 14px 0; cursor: pointer; }
.policy-check input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0 0; justify-self: start; align-self: start; flex: none; }
.policy-check span { display: block; min-width: 0; width: 100%; line-height: 1.55; word-break: normal; overflow-wrap: break-word; }

/* MODAL */
.modal { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(13,27,46,.65); backdrop-filter: blur(4px); padding: 24px; overflow: auto; }
.modal-content { position: relative; max-width: 760px; margin: 40px auto; background: var(--white); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 80px); overflow-y: auto; animation: fadeUp .3s ease; }
.modal-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--chalk); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .2s; }
.modal-close:hover { background: var(--line); color: var(--text); }

/* PROFILES */
.profiles-instruction { text-align: center; font-size: 17px; font-weight: 600; margin: 10px 0 18px; color: var(--text-soft); }
.active-radio { transform: scale(1.2); cursor: pointer; }
.radio-cell { text-align: center; width: 90px; white-space: nowrap; }
.radio-label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; user-select: none; }
.inline-active-form { margin: 0; display: inline; }

/* PILLS */
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 5px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; letter-spacing: .03em; border: 1px solid transparent; }
.pill.ok   { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.pill.warn { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.pill.bad  { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.pill.crit { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }

/* LOGIN HERO */
.login-hero { min-height: calc(100vh - 68px - 64px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; padding: 4px 0; }

.login-marketing {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}

.login-marketing::before { content: ''; position: absolute; top: -120px; right: -100px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(212,168,83,.18) 0%, transparent 72%); pointer-events: none; }
.login-marketing::after { content: ''; position: absolute; bottom: -80px; left: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.14) 0%, transparent 72%); pointer-events: none; }

.login-marketing-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }

.login-marketing-inner { position: relative; z-index: 1; padding: 52px 48px; height: 100%; display: flex; flex-direction: column; justify-content: center; }

.login-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--r-pill); background: rgba(212,168,83,.15); border: 1px solid rgba(212,168,83,.3); color: var(--gold-light); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
.login-kicker::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold); animation: pulse 2s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(.8); } }

.login-hero-title { margin: 0 0 18px 0; font-family: var(--font-display); font-size: 46px; font-weight: 800; line-height: 1.06; letter-spacing: -.03em; color: var(--white); }
.login-hero-subtitle { margin: 0; color: rgba(255,255,255,.65); font-size: 17px; line-height: 1.75; max-width: 520px; font-weight: 300; }
.login-feature-list { display: flex; flex-direction: column; gap: 12px; margin: 32px 0 36px; }

.login-feature-item { position: relative; padding: 14px 18px 14px 50px; border-radius: var(--r-md); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.5; }
.login-feature-item::before { content: '✓'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: rgba(212,168,83,.2); border: 1px solid rgba(212,168,83,.35); color: var(--gold-light); font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; }

.login-proof-card { padding: 24px 26px; border-radius: var(--r-lg); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.login-proof-card p { margin: 0 0 16px; color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.7; font-weight: 300; }
.login-signup-cta { min-width: 190px; }
.login-form-panel { display: flex; align-items: center; }
.login-auth-card { width: 100%; max-width: none; border-radius: var(--r-xl); padding: 36px 32px; box-shadow: var(--shadow-lg); }
.login-main-actions { margin-top: 18px; }
.login-submit-btn { min-width: 150px; }
.login-signup-row { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.login-resend-block { margin-top: 12px; }
.login-resend-title { margin: 0 0 8px 0; font-size: 17px; font-weight: 600; color: var(--text); }
.login-resend-subtitle { margin-top: 0; margin-bottom: 14px; font-size: 14px; }

@media (max-width: 1000px) { .login-hero { grid-template-columns: 1fr; gap: 22px; } .login-hero-title { font-size: 36px; } .login-form-panel { align-items: stretch; } }
@media (max-width: 620px) { .login-marketing-inner { padding: 32px 24px; } .login-hero-title { font-size: 30px; } .login-auth-card { padding: 26px 22px; } .login-hero-subtitle { font-size: 15px; } }

/* SIGNUP */
.signup-clean-card { max-width: 640px; width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 40px; }
.signup-mandatory-note { margin: 0 0 16px 0; font-size: 13px; color: #b45309; padding: 8px 14px; background: #fffbeb; border-radius: var(--r-sm); border: 1px solid #fcd34d; }
.modal-content-scroll { max-height: calc(100vh - 100px); overflow-y: auto; }

/* PASSWORD */
.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.password-toggle { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 38px; height: 38px; border: none; border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .18s, color .18s; }
.password-toggle:hover { background: rgba(37,99,235,.08); color: var(--sky); }
.eye-icon { width: 20px; height: 20px; display: block; }

/* PAYWALL PLAN CARDS */
.plan-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 28px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: border-color .2s, box-shadow .2s; margin-top: 16px; }
.plan-card:hover { border-color: rgba(37,99,235,.3); box-shadow: var(--shadow-md); }
.plan-card.featured { border-color: rgba(212,168,83,.5); background: linear-gradient(135deg, #fdfaf4, #fff); box-shadow: var(--shadow-gold); }
.plan-price { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--text); line-height: 1; }
.plan-price-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.plan-info { flex: 1; }
.plan-title { font-weight: 700; font-size: 18px; margin: 0 0 6px; color: var(--text); }
.plan-desc { font-size: 14px; color: var(--muted); margin: 0; }

/* QUESTION CARDS */
.question-card { padding: 28px 30px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.question-number { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--r-pill); background: var(--chalk); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.question-text { font-size: 17px; font-weight: 600; color: var(--text); margin: 0 0 18px; line-height: 1.55; }
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); border: 1.5px solid var(--line); cursor: pointer; transition: all .18s; background: var(--white); }
.option-item:hover { border-color: rgba(37,99,235,.4); background: #f0f6ff; }
.option-item input[type="radio"] { width: 18px; height: 18px; flex-shrink: 0; }
.option-label { font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; line-height: 1.45; }
.question-progress { height: 4px; background: var(--chalk); border-radius: 4px; margin-bottom: 28px; overflow: hidden; }
.question-progress-bar { height: 100%; background: linear-gradient(90deg, var(--sky), #60a5fa); border-radius: 4px; transition: width .4s ease; }

/* STAT CARD */
.stat-card { padding: 24px 26px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat-value { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--text); line-height: 1; margin: 0 0 6px; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* SEARCH ROW */
.search-row { margin-top: 16px; margin-bottom: 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* PAGE HEADER */
.page-header { padding: 28px 0 8px; margin-bottom: 8px; }
.page-header-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; margin: 0 0 8px; color: var(--text); letter-spacing: -.02em; }
.page-header-sub { font-size: 15px; color: var(--muted); margin: 0; }

/* SIMPLE FORM */
.simple-form-wrap { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 36px 24px; }
.simple-form-card { width: 100%; max-width: 460px; border-radius: var(--r-xl); padding: 40px; box-shadow: var(--shadow-lg); animation: fadeUp .4s ease; }

/* ANIMATIONS */
.animate-fade-up { animation: fadeUp .5s ease both; }
.animate-fade-up:nth-child(2) { animation-delay: .07s; }
.animate-fade-up:nth-child(3) { animation-delay: .14s; }
.animate-fade-up:nth-child(4) { animation-delay: .21s; }
.animate-fade-up:nth-child(5) { animation-delay: .28s; }
.animate-fade-up:nth-child(6) { animation-delay: .35s; }

/* RESPONSIVE */
@media (max-width: 620px) {
  .container { padding: 20px 16px; }
  .nav { padding: 0 16px; height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .card { padding: 20px; }
  .auth-wrap { padding: 20px 16px; }
  .modal { padding: 14px; }
  .modal-content { margin: 16px auto; padding: 22px; }
  .signup-clean-card { padding: 26px 20px; }
}

/* UTILITY */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.font-mono { font-family: var(--font-mono); }


/* ═══════════════════════════════════════════════════════════
   REPORT VIEW — Premium styles  (v4)
   ═══════════════════════════════════════════════════════════ */

/* ── Phase progress banner ── */
.rpt-phase-banner { background:var(--navy);border-radius:var(--r-xl);padding:24px 32px;margin-bottom:24px;border:1px solid rgba(212,168,83,.25);position:relative;overflow:hidden; }
.rpt-phase-banner::before { content:'';position:absolute;top:-60px;right:-60px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(212,168,83,.12) 0%,transparent 70%);pointer-events:none; }
.rpt-phase-done { border-color:rgba(16,185,129,.3); }
.rpt-phase-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:12px; }
.rpt-phase-label  { display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.9);font-size:15px;font-weight:600; }
.rpt-phase-pct    { color:var(--gold-light);font-family:var(--font-display);font-size:18px;font-weight:800; }
.rpt-phase-spinner { width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(255,255,255,.2);border-top-color:var(--gold);animation:spin .8s linear infinite;flex-shrink:0; }
.rpt-phase-check  { width:20px;height:20px;border-radius:50%;background:rgba(16,185,129,.25);border:1px solid rgba(16,185,129,.5);color:#6ee7b7;font-size:12px;display:inline-flex;align-items:center;justify-content:center;font-weight:900; }
.rpt-phase-bar-wrap { height:5px;background:rgba(255,255,255,.1);border-radius:5px;overflow:hidden;margin-bottom:20px; }
.rpt-phase-bar    { height:100%;border-radius:5px;background:linear-gradient(90deg,var(--gold),var(--gold-light));transition:width .6s ease; }
.rpt-phase-steps  { display:flex;gap:8px;flex-wrap:wrap; }
.rpt-phase-step   { display:flex;align-items:center;gap:8px;padding:6px 14px;border-radius:var(--r-pill);border:1px solid rgba(255,255,255,.1);font-size:12px;font-weight:600; }
.rpt-phase-step--done    { background:rgba(16,185,129,.15);border-color:rgba(16,185,129,.3);color:#6ee7b7; }
.rpt-phase-step--active  { background:rgba(212,168,83,.18);border-color:rgba(212,168,83,.4);color:var(--gold-light); }
.rpt-phase-step--pending { background:rgba(255,255,255,.04);color:rgba(255,255,255,.35); }
.rpt-phase-dot { width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.1);display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;flex-shrink:0; }
.rpt-phase-step--done .rpt-phase-dot   { background:rgba(16,185,129,.3);color:#6ee7b7; }
.rpt-phase-step--active .rpt-phase-dot { background:rgba(212,168,83,.3);color:var(--gold-light); }
.rpt-phase-step-label { white-space:nowrap; }
.rpt-phase-note { margin:14px 0 0;font-size:12px;color:rgba(255,255,255,.35);text-align:center; }

/* ── Hero ── */
.report-hero { display:flex;align-items:flex-start;justify-content:space-between;gap:32px;flex-wrap:wrap;background:var(--navy);border-radius:var(--r-xl);padding:40px 44px;margin-bottom:24px;position:relative;overflow:hidden;box-shadow:var(--shadow-lg); }
.report-hero::before { content:'';position:absolute;top:-80px;right:-80px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(212,168,83,.14) 0%,transparent 70%);pointer-events:none; }
.report-hero::after  { content:'';position:absolute;bottom:-60px;left:-40px;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,rgba(37,99,235,.12) 0%,transparent 70%);pointer-events:none; }
.report-hero-inner { flex:1;min-width:0;position:relative;z-index:1; }
.report-hero-meta  { display:flex;align-items:center;gap:16px;margin-bottom:16px;flex-wrap:wrap; }
.report-section-label { display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border-radius:var(--r-pill);background:rgba(212,168,83,.15);border:1px solid rgba(212,168,83,.3);color:var(--gold-light);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase; }
.report-section-label::before { content:'';display:block;width:5px;height:5px;border-radius:50%;background:var(--gold);box-shadow:0 0 5px var(--gold);animation:pulse 2s ease-in-out infinite; }
.report-hero-date  { color:rgba(255,255,255,.45);font-size:13px; }
.report-hero-title { margin:0 0 16px;font-family:var(--font-display);font-size:32px;font-weight:800;line-height:1.15;letter-spacing:-.025em;color:var(--white); }
.report-hero-context { display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px; }
.report-ctx-item { display:inline-flex;align-items:center;gap:6px;color:rgba(255,255,255,.55);font-size:14px; }
.report-ctx-dot  { color:rgba(255,255,255,.25);font-size:16px; }
.report-hero-badges { display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
.pill-lg  { font-size:13px;padding:7px 16px;gap:7px; }
.pill-icon { font-size:12px;opacity:.85; }
.report-band-summary { color:rgba(255,255,255,.55);font-size:13px;padding:6px 12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:var(--r-pill); }
.report-hero-stats { display:flex;flex-direction:column;gap:12px;position:relative;z-index:1;align-self:flex-start; }
.report-stat { background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:var(--r-lg);padding:14px 22px;text-align:center;min-width:100px; }
.report-stat-num   { font-family:var(--font-display);font-size:28px;font-weight:800;color:var(--white);line-height:1;margin-bottom:4px; }
.report-stat-label { font-size:10px;font-weight:700;color:rgba(255,255,255,.45);text-transform:uppercase;letter-spacing:.06em; }

/* ── Two-col summary ── */
.report-two-col { display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px; }

/* ── Section cards ── */
.report-section-card { margin-bottom:20px;padding:28px 32px; }
.report-section-head { display:flex;align-items:center;gap:12px;margin-bottom:20px; }
.report-section-head--spaced { justify-content:space-between;flex-wrap:wrap;gap:12px; }
.report-section-title { font-family:var(--font-display);font-size:20px;font-weight:700;color:var(--text);margin:0;letter-spacing:-.015em; }
.report-section-icon  { display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:var(--r-md);flex-shrink:0; }
.report-icon-blue   { background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe; }
.report-icon-gold   { background:#fffbeb;color:#b45309;border:1px solid #fcd34d; }
.report-icon-red    { background:#fff1f2;color:#be123c;border:1px solid #fecdd3; }
.report-icon-green  { background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0; }
.report-icon-purple { background:#faf5ff;color:#7c3aed;border:1px solid #ddd6fe; }
.report-icon-teal   { background:#f0fdfa;color:#0d9488;border:1px solid #99f6e4; }
.report-count-badge { display:inline-flex;align-items:center;padding:4px 12px;border-radius:var(--r-pill);background:var(--chalk);border:1px solid var(--line);font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.03em;white-space:nowrap; }
.report-body-text { color:var(--text-soft);font-size:15px;line-height:1.75;margin:0; }

/* ── Disclaimer ── */
.report-disclaimer { background:#fffbeb;border:1px solid #fcd34d;margin-bottom:24px;padding:22px 28px; }
.report-disclaimer-inner { display:flex;gap:16px;align-items:flex-start; }
.report-disclaimer-icon { display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:var(--r-md);background:#fef3c7;color:#92400e;border:1px solid #fcd34d;flex-shrink:0; }
.report-disclaimer-title { margin:0 0 6px;font-family:var(--font-display);font-size:15px;font-weight:700;color:#92400e; }
.report-disclaimer-text  { margin:0;color:#78350f;font-size:13px;line-height:1.7; }

/* ── Inline badges ── */
.report-inline-badge { display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:var(--r-pill);font-size:11px;font-weight:700;letter-spacing:.03em;border:1px solid transparent;white-space:nowrap; }
.sev-high { background:#fff1f2;color:#be123c;border-color:#fecdd3; }
.sev-med  { background:#fff7ed;color:#c2410c;border-color:#fed7aa; }
.sev-low  { background:#f0fdf4;color:#15803d;border-color:#bbf7d0; }
.imp-high { background:#f0fdf4;color:#15803d;border-color:#bbf7d0; }
.imp-med  { background:#fffbeb;color:#b45309;border-color:#fcd34d; }
.imp-low  { background:var(--chalk);color:var(--muted);border-color:var(--line); }
.eff-low  { background:#f0fdf4;color:#15803d;border-color:#bbf7d0; }
.eff-med  { background:#fffbeb;color:#b45309;border-color:#fcd34d; }
.eff-high { background:#fff1f2;color:#be123c;border-color:#fecdd3; }
.pri-high { background:#fff1f2;color:#be123c;border-color:#fecdd3; }
.pri-med  { background:#fffbeb;color:#b45309;border-color:#fcd34d; }
.pri-low  { background:var(--chalk);color:var(--muted);border-color:var(--line); }
.report-conf-badge     { background:#f5f3ff;color:#6d28d9;border-color:#ddd6fe; }
.report-timeline-badge { background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe; }

/* ── Premium report tables ── */
.rpt-table-wrap { overflow-x:auto;border-radius:var(--r-lg);border:1px solid var(--line);box-shadow:0 1px 4px rgba(13,27,46,.05),0 4px 16px rgba(13,27,46,.04); }
.rpt-table { width:100%;border-collapse:collapse;font-size:13.5px;min-width:640px; }
.rpt-th { padding:11px 16px;text-align:left;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);background:var(--chalk);border-bottom:1.5px solid var(--line);white-space:nowrap;user-select:none; }
.rpt-th:first-child { border-radius:var(--r-md) 0 0 0; }
.rpt-th:last-child  { border-radius:0 var(--r-md) 0 0; }
.rpt-th--narrow { width:52px;text-align:center; }
.rpt-th--center { text-align:center;width:110px; }
.rpt-th--wide   { min-width:180px; }
.rpt-tr         { transition:background .15s ease; }
.rpt-tr:hover   { background:rgba(37,99,235,.028); }
.rpt-tr--alt    { background:rgba(13,107,235,.018); }
.rpt-tr--alt:hover { background:rgba(37,99,235,.04); }
.rpt-tr:last-child .rpt-td { border-bottom:none; }
.rpt-tr-day-header td { padding:0;border-bottom:none; }
.rpt-day-header-cell { padding:8px 16px 4px !important;background:var(--chalk) !important;border-top:1.5px solid var(--line); }
.rpt-day-pill { display:inline-flex;align-items:center;padding:3px 12px;border-radius:var(--r-pill);background:var(--navy);color:var(--white);font-size:11px;font-weight:700;letter-spacing:.05em; }
.rpt-td { padding:13px 16px;border-bottom:1px solid var(--line);vertical-align:top;color:var(--text-soft);font-size:13.5px;line-height:1.55; }
.rpt-td--narrow { text-align:center;width:52px;vertical-align:middle; }
.rpt-td--center { text-align:center;vertical-align:middle; }
.rpt-td--wide   { min-width:180px; }
.rpt-cell-primary { display:block;font-weight:600;color:var(--text);font-size:13.5px;line-height:1.45; }
.rpt-cell-muted   { display:block;color:var(--muted);font-size:13px;line-height:1.6; }
.rpt-rank, .rpt-seq, .rpt-step-node, .rpt-day-num { display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-family:var(--font-display);font-weight:800;font-size:13px;line-height:1; }
.rpt-rank      { background:#fff1f2;color:#be123c;border:1px solid #fecdd3; }
.rpt-seq       { background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0; }
.rpt-step-node { background:linear-gradient(135deg,var(--sky),#1d4ed8);color:#fff;box-shadow:0 2px 8px rgba(37,99,235,.28); }
.rpt-step-node--sm { width:22px;height:22px;font-size:11px; }
.rpt-day-num   { background:rgba(13,109,107,.12);color:#0d6b69;border:1px solid rgba(13,109,107,.25);font-size:12px; }
.rpt-hrs { display:inline-flex;align-items:center;padding:3px 8px;border-radius:var(--r-pill);background:#f0fdfa;color:#0d9488;border:1px solid #99f6e4;font-size:12px;font-weight:700; }
.rpt-owner   { display:inline-flex;align-items:center;gap:5px;font-size:12.5px;color:var(--text-soft);font-weight:500; }
.rpt-evidence { display:block;font-size:12.5px;color:var(--muted);line-height:1.6;font-style:italic;border-left:2.5px solid #fca5a5;padding-left:8px; }
.rpt-dep      { display:block;font-size:12px;color:var(--muted);font-style:italic; }
.rpt-success-measure { display:inline-flex;align-items:flex-start;gap:5px;font-size:12.5px;color:#166534;line-height:1.5; }
.rpt-success-measure svg { flex-shrink:0;margin-top:2px; }

/* ── Footer actions ── */
.report-footer-actions { display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:24px 0 8px; }

/* ── Responsive ── */
@media (max-width:860px) {
  .report-hero { flex-direction:column;padding:28px 24px; }
  .report-hero-title { font-size:24px; }
  .report-hero-stats { flex-direction:row;flex-wrap:wrap;width:100%; }
  .report-stat { flex:1;min-width:80px;padding:10px 14px; }
  .report-stat-num { font-size:24px; }
  .rpt-phase-steps { gap:6px; }
  .rpt-phase-step  { padding:4px 10px; }
}
@media (max-width:760px) { .report-two-col { grid-template-columns:1fr; } }
@media (max-width:580px) {
  .report-section-card { padding:20px 18px; }
  .report-section-title { font-size:17px; }
  .rpt-table-wrap { border-radius:var(--r-md); }
  .rpt-phase-banner { padding:18px 20px; }
}

/* ═══════════════════════════════════════════════════════════
   GENERATION PROGRESS OVERLAY
   ═══════════════════════════════════════════════════════════ */

.gen-progress-box { width:min(520px,calc(100vw - 40px));padding:32px 36px; }
.gen-progress-header { display:flex;align-items:flex-start;gap:16px;margin-bottom:22px; }
.gen-progress-header .spinner { flex-shrink:0;margin-top:3px; }
.gen-progress-track { height:6px;background:var(--chalk);border-radius:6px;overflow:hidden;margin-bottom:6px; }
.gen-progress-fill  { height:100%;border-radius:6px;background:linear-gradient(90deg,var(--sky),#60a5fa);transition:width .5s ease;width:0%; }
.gen-progress-pct   { text-align:right;font-size:12px;font-weight:700;color:var(--sky);margin-bottom:22px;font-family:var(--font-mono); }
.gen-steps          { display:flex;flex-direction:column;gap:0;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden; }
.gen-step           { display:flex;align-items:center;gap:14px;padding:13px 16px;border-bottom:1px solid var(--line);transition:background .2s; }
.gen-step:last-child { border-bottom:none; }
.gen-step-dot       { width:22px;height:22px;border-radius:50%;flex-shrink:0;border:2px solid var(--line);background:var(--chalk);display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;transition:all .25s; }
.gen-step-body      { display:flex;flex-direction:column;gap:2px;min-width:0; }
.gen-step-name      { font-size:13.5px;font-weight:600;color:var(--muted);line-height:1.3;transition:color .2s; }
.gen-step-desc      { font-size:12px;color:var(--muted);opacity:.6;line-height:1.4;transition:opacity .2s; }
.gen-step--pending .gen-step-dot  { border-color:var(--line);background:var(--chalk); }
.gen-step--pending .gen-step-name { color:var(--muted); }
.gen-step--active { background:rgba(37,99,235,.04); }
.gen-step--active .gen-step-dot  { border-color:var(--sky);background:var(--sky);box-shadow:0 0 0 4px rgba(37,99,235,.18);animation:genDotPulse 1.2s ease-in-out infinite; }
.gen-step--active .gen-step-name { color:var(--sky); }
.gen-step--active .gen-step-desc { opacity:1;color:var(--text-soft); }
@keyframes genDotPulse { 0%,100%{box-shadow:0 0 0 3px rgba(37,99,235,.18);}50%{box-shadow:0 0 0 6px rgba(37,99,235,.08);} }
.gen-step--done { background:rgba(16,185,129,.03); }
.gen-step--done .gen-step-dot  { border-color:#10b981;background:#10b981;color:#fff; }
.gen-step--done .gen-step-dot::after { content:'✓'; }
.gen-step--done .gen-step-name { color:#065f46; }
.gen-step--done .gen-step-desc { opacity:.7;color:#065f46; }
.gen-progress-note  { margin:16px 0 0;font-size:12px;color:var(--muted);text-align:center; }

/* ── Generation overlay warning banner ── */
.gen-progress-warning { display:flex;align-items:center;gap:8px;background:#fff7ed;border:1.5px solid #fed7aa;color:#9a3412;font-size:13.5px;font-weight:600;line-height:1.4;padding:11px 16px;border-radius:var(--r-md);margin-bottom:20px; }

/* ── Generation overlay countdown timer ── */
.gen-countdown-wrap { background:var(--chalk);border:1px solid var(--line);border-radius:var(--r-md);padding:14px 18px;margin-bottom:18px;text-align:center; }
.gen-countdown-label { font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px; }
.gen-countdown-timer { font-family:var(--font-display);font-size:36px;font-weight:800;color:var(--sky);line-height:1;margin-bottom:10px;transition:color .3s; }
.gen-countdown-bar-track { height:5px;background:var(--line);border-radius:5px;overflow:hidden;margin-bottom:8px; }
.gen-countdown-bar-fill  { height:100%;border-radius:5px;background:var(--sky);transition:width 1s linear,background .3s; }
.gen-countdown-note { font-size:11.5px;color:var(--muted);line-height:1.4; }


/* ═══════════════════════════════════════════════════════════
   REPORT FEEDBACK WIDGET
   ═══════════════════════════════════════════════════════════ */

.fb-card {
  margin-bottom: 20px;
  padding: 32px 36px;
  border: 1px solid var(--line);
}

/* ── Submitted banner ── */
.fb-submitted-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: #166534;
}
.fb-submitted-banner svg { flex-shrink: 0; margin-top: 2px; color: #16a34a; }
.fb-submitted-banner strong { display: block; font-weight: 700; margin-bottom: 2px; }
.fb-submitted-banner span  { color: #15803d; font-size: 12.5px; }

/* ── Header ── */
.fb-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* ── Ratings grid ── */
.fb-ratings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.fb-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--white);
  transition: background .15s;
}
.fb-rating-row:hover { background: rgba(37,99,235,.018); }

/* Remove right border on odd last item, bottom border on last row */
.fb-rating-row:nth-child(even) { border-right: none; }
.fb-rating-row:nth-last-child(-n+2) { border-bottom: none; }
/* Single item in last row spans full width */
.fb-rating-row:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: none; border-bottom: none; }

.fb-rating-row--error { background: rgba(239,68,68,.04) !important; border-color: rgba(239,68,68,.3) !important; }

.fb-rating-label { flex: 1; min-width: 0; }
.fb-rating-title { display: block; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.fb-rating-sub   { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.fb-required     { color: #be123c; font-weight: 700; }

/* ── Stars ── */
.fb-stars {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.fb-star {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #d1d5db;
  transition: color .15s, transform .1s;
  line-height: 0;
}
.fb-star:hover,
.fb-star--preview { color: var(--gold); transform: scale(1.15); }
.fb-star--filled  { color: var(--gold); }
.fb-star:focus-visible { outline: 2px solid var(--sky); border-radius: 4px; }

/* ── Text areas ── */
.fb-text-section { margin-bottom: 20px; }

.fb-text-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 6px;
  letter-spacing: .02em;
}
.fb-text-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.fb-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.fb-textarea:focus { border-color: var(--sky); box-shadow: var(--glow-sky); }
.fb-textarea::placeholder { color: var(--muted); font-weight: 300; }

.fb-char-counter {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* ── Consent checkbox ── */
.fb-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  line-height: 1.5;
}
.fb-consent-label input { flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; }

/* ── Submit row ── */
.fb-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  flex-wrap: wrap;
}
.fb-submit-btn { min-width: 160px; }
.fb-required-note { font-size: 12px; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 680px) {
  .fb-card { padding: 22px 18px; }
  .fb-ratings-grid { grid-template-columns: 1fr; }
  .fb-rating-row { border-right: none; }
  .fb-rating-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fb-rating-row:last-child { border-bottom: none; }
  .fb-rating-row:last-child:nth-child(odd) { grid-column: auto; }
}

/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE — Rating social proof block
   ═══════════════════════════════════════════════════════════ */

.lp-rating-block {
  margin-bottom: 18px;
}

.lp-rating-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.lp-star {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.lp-star--full  { color: var(--gold); fill: var(--gold); }
.lp-star--half  { color: var(--gold); }
.lp-star--empty { color: rgba(212,168,83,.35); }

.lp-rating-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}
.lp-rating-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.lp-rating-max {
  font-size: 16px;
  color: rgba(255,255,255,.5);
  font-weight: 400;
}

.lp-rating-meta {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}
.lp-rating-meta strong { color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════════════════════════════
   CONSULTING CTA CARD (report_view, profiles, problems)
   ═══════════════════════════════════════════════════════════ */

.consult-cta-card {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212,168,83,.2);
}
.consult-cta-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,83,.15) 0%, transparent 70%);
  pointer-events: none;
}
.consult-cta-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 70%);
  pointer-events: none;
}
.consult-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.consult-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  background: rgba(212,168,83,.18);
  border: 1px solid rgba(212,168,83,.35);
  color: var(--gold-light);
  flex-shrink: 0;
}
.consult-cta-body { flex: 1; min-width: 200px; }
.consult-cta-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.consult-cta-sub {
  margin: 0 0 14px;
  color: rgba(255,255,255,.65);
  font-size: 14px;
  line-height: 1.7;
}
.consult-cta-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.consult-cta-bullets li {
  color: rgba(255,255,255,.75);
  font-size: 13.5px;
  padding-left: 20px;
  position: relative;
}
.consult-cta-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 800;
  font-size: 12px;
}
.consult-cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 4px;
}
.consult-cta-price { text-align: center; }
.consult-cta-price-amount {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.consult-cta-price-meta {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 3px;
}
.consult-cta-btn { min-width: 200px; justify-content: center; }

@media (max-width: 680px) {
  .consult-cta-card  { padding: 24px 20px; }
  .consult-cta-inner { flex-direction: column; }
  .consult-cta-action { width: 100%; }
  .consult-cta-btn  { width: 100%; }
}

/* ── Consulting Checkout Page ── */
.consult-checkout-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 0 32px;
}
.consult-checkout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.consult-checkout-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.consult-checkout-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
.consult-checkout-sub { margin: 0; color: var(--muted); font-size: 14px; }
.consult-checkout-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.consult-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--chalk);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.consult-meta-price {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
  font-size: 15px;
  font-weight: 700;
}

/* Steps indicator */
.consult-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}
.consult-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.consult-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.consult-step--active .consult-step-num  { background: var(--sky); color: #fff; }
.consult-step--done   .consult-step-num  { background: #10b981; color: #fff; }
.consult-step--pending .consult-step-num { background: var(--chalk); border: 1px solid var(--line); color: var(--muted); }
.consult-step--active .consult-step-label  { color: var(--sky); }
.consult-step--done   .consult-step-label  { color: #065f46; }
.consult-step--pending .consult-step-label { color: var(--muted); }
.consult-step-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 12px;
}
.consult-step-line--done { background: #10b981; }

/* Slot status banner */
.consult-slot-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid;
}
.consult-slot-status--pending   { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.consult-slot-status--confirmed { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

/* Calendly embed wrapper */
.consult-calendly-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--white);
}

/* Pay row */
.consult-pay-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.consult-pay-btn { min-width: 200px; }
.consult-pay-note { font-size: 13px; color: var(--muted); }

/* Booking summary card */
.consult-summary-card { margin-bottom: 16px; padding: 24px 28px; }
.consult-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.consult-summary-row:last-child { border-bottom: none; }
.consult-summary-row--total { padding-top: 14px; }
.consult-summary-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.consult-summary-value { font-size: 14px; font-weight: 500; color: var(--text); text-align: right; }
.consult-summary-amount {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.consult-slot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--r-pill);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
}

/* Includes list */
.consult-includes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.consult-includes-item {
  font-size: 14px;
  color: var(--text-soft);
  padding: 10px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-md);
  color: #166534;
}

/* ── Generation overlay — countdown timer ── */
.gen-countdown-wrap {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 18px;
  text-align: center;
}
.gen-countdown-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.gen-countdown-timer {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 10px;
  transition: color .3s;
}
.gen-countdown-bar-track {
  height: 5px;
  background: var(--line);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}
.gen-countdown-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--sky);
  transition: width 1s linear, background .3s;
}
.gen-countdown-note {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}


/* ============================================================
   budget.css — Budgeting Module Styles
   Add to: assets/css/budget.css
   Link in budget.php and budget_analyse.php
   ============================================================ */

/* ── Spinner page (budget_analyse.php) ─────────────────────── */
.bud-spinner-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bud-spinner-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.bud-spinner {
  width: 56px;
  height: 56px;
  border: 5px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: bud-spin 1s linear infinite;
  margin: 0 auto 24px;
}
@keyframes bud-spin { to { transform: rotate(360deg); } }
.bud-spinner-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1f2e;
  margin-bottom: 10px;
}
.bud-spinner-sub {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
}
.bud-progress-wrap {
  background: #e2e8f0;
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}
.bud-progress-bar {
  background: #2563eb;
  height: 100%;
  width: 5%;
  border-radius: 99px;
  transition: width .5s ease;
}
.bud-timer {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 24px;
}
.bud-note {
  background: #fef9ec;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
}

/* ── Phase rows (spinner) ───────────────────────────────────── */
.bud-phases {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}
.phase-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f8faff;
  border: 1px solid #e2e8f0;
  transition: all .3s;
}
.phase-row.muted   { opacity: .45; background: #f9fafb; border-color: #f0f0f0; }
.phase-row.done    { background: #f0fdf4; border-color: #bbf7d0; }
.phase-dot         { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.phase-label       { font-size: 13px; font-weight: 700; color: #1a1f2e; margin-bottom: 2px; }
.phase-sub         { font-size: 11px; color: #64748b; }

/* ── Budget page tabs ───────────────────────────────────────── */
.bud-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.bud-tab {
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.bud-tab:hover  { color: var(--text); }
.bud-tab.active { color: var(--sky); border-bottom-color: var(--sky); }

/* ── Sections ───────────────────────────────────────────────── */
.b-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}
.b-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  background: var(--chalk);
  border-bottom: 1px solid var(--line);
}
.b-section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Budget table ───────────────────────────────────────────── */
.b-table-wrap  { overflow-x: auto; }
.b-table       { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.b-table th {
  background: #f8f9fb;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
  text-align: right;
}
.b-table th.left     { text-align: left; }
.b-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
  white-space: nowrap;
}
.b-table td.name     { white-space: normal; min-width: 160px; font-weight: 500; }
.b-table td.num      { text-align: right; font-family: var(--font-display); font-weight: 600; font-size: 12px; }
.b-table td.actual   { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--sky); }
.b-table td.var-pos  { color: #059669; font-weight: 700; text-align: right; }
.b-table td.var-neg  { color: #dc2626; font-weight: 700; text-align: right; }
.b-table tr:last-child td { border-bottom: none; }
.b-table tr:hover td { background: #fafbff; }
.b-table .section-hdr td   { background: var(--navy); color: var(--white); font-weight: 700; font-size: 12px; padding: 9px 10px; }
.b-table .subtotal-row td  { background: #f0f6ff; font-weight: 800; font-size: 12.5px; color: var(--navy); }
.b-table .total-row td     { background: var(--navy); color: var(--white); font-weight: 800; font-size: 13px; }

/* ── Status badges ──────────────────────────────────────────── */
.s-badge  { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.s-green  { background: #dcfce7; color: #166534; }
.s-amber  { background: #fef9c3; color: #854d0e; }
.s-red    { background: #fee2e2; color: #991b1b; }

/* ── Budget hero ────────────────────────────────────────────── */
.bud-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  margin-bottom: 20px;
  color: #fff;
}
.bud-hero-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.bud-hero-sub   { font-size: 12px; color: rgba(255,255,255,.55); margin: 0 0 16px; }
.bud-kpi-grid   { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
@media(max-width:600px) { .bud-kpi-grid { grid-template-columns: 1fr 1fr; } }
.bud-kpi {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 13px 15px;
}
.bud-kpi-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.bud-kpi-value { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #fff; }
.bud-kpi-unit  { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.45); margin-left: 3px; }

/* ── Actuals input ──────────────────────────────────────────── */
.bud-month-input {
  width: 72px;
  border: 1.5px solid var(--sky);
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}
.bud-cell-actual {
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: background .12s;
}
.bud-cell-actual:hover { background: var(--chalk); }
.bud-cell-locked       { color: var(--muted); font-size: 11px; }

/* ── Phase 2 background banner ──────────────────────────────── */
.bud-phase2-banner {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bud-phase2-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #f59e0b;
  border-top-color: #92400e;
  border-radius: 50%;
  animation: bud-spin 1s linear infinite;
  flex-shrink: 0;
}
