/* PROPFUND — Platform Style */
:root {
  --navy-900: #0a1a36;
  --navy-800: #0d1f3c;
  --navy-700: #15294f;
  --navy-600: #1e3a6f;
  --navy-500: #2d4d8f;
  --cream-500: #d4b896;
  --cream-400: #e0c6a8;
  --cream-300: #ecd9bf;
  --cream-200: #f3e5cf;
  --cream-100: #faf3e6;
  --gold: #c9a961;
  --gold-dark: #a88a45;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --green: #16a34a;
  --green-light: #dcfce7;
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --shadow-sm: 0 1px 2px rgba(13,31,60,.06);
  --shadow: 0 4px 12px rgba(13,31,60,.08);
  --shadow-lg: 0 12px 32px rgba(13,31,60,.12);
  --shadow-xl: 0 24px 64px rgba(13,31,60,.16);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', 'IBM Plex Sans Thai', system-ui, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.25;
}

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === NAVIGATION === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(12px);
  background-color: rgba(255,255,255,.95);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Prompt'; font-weight: 700; font-size: 20px;
  color: var(--navy-800);
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: 8px;
  display: grid; place-items: center;
  color: #ffffff;            /* FASTUP mark = ขาว ตามโลโก้ */
  font-size: 18px;
  font-weight: 700;
}
.logo-mark svg { display: block; width: 22px; height: 22px; }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--gray-700); font-weight: 500; font-size: 15px;
  padding: 6px 0; position: relative;
}
.nav-links a:hover { color: var(--navy-800); }
.nav-links a.active { color: var(--navy-800); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -16px;
  height: 2px; background: var(--gold);
}
.nav-cta {
  display: flex; gap: 10px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Prompt'; font-weight: 500; font-size: 15px;
  border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-800);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-900); transform: translateY(-1px); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border: 1px solid var(--gray-300);
}
.btn-ghost:hover { background: var(--gray-50); }
.btn-white {
  background: var(--white); color: var(--navy-800);
}
.btn-white:hover { background: var(--cream-100); }
.btn-outline-white {
  background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* === HERO === */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10,26,54,.92), rgba(13,31,60,.85)),
    url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1920&q=80&auto=format&fit=crop') center/cover;
  color: var(--white);
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(to top, var(--white), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--cream-300), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 19px;
  color: rgba(255,255,255,.88);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 540px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(212, 184, 150, .15);
  border: 1px solid rgba(212, 184, 150, .3);
  border-radius: 100px;
  font-size: 13px;
  color: var(--cream-300);
  margin-bottom: 24px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card-stack {
  position: relative;
  height: 460px;
}
.hero-card {
  position: absolute;
  background: var(--white);
  color: var(--gray-800);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-xl);
}
.hero-card-1 {
  top: 0; right: 0;
  width: 320px;
  transform: rotate(2deg);
}
.hero-card-2 {
  top: 140px; left: 0;
  width: 280px;
  transform: rotate(-3deg);
}
.hero-card-3 {
  bottom: 0; right: 40px;
  width: 300px;
  transform: rotate(1.5deg);
}
.hero-card-thumb {
  height: 120px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}
.hero-card-row { display: flex; justify-content: space-between; align-items: baseline; }
.hero-card-title { font-weight: 600; font-size: 14px; color: var(--navy-800); }
.hero-card-price { font-family: 'Prompt'; font-weight: 600; color: var(--gold-dark); font-size: 16px; }
.hero-card-meta { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.verified-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--green-light); color: var(--green);
  font-size: 11px; padding: 2px 8px; border-radius: 100px;
  font-weight: 600;
  margin-top: 8px;
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-200);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.trust-stat .num {
  font-family: 'Prompt';
  font-size: 36px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
}
.trust-stat .label {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
}

/* === SECTIONS === */
section { padding: 80px 0; }
section.bg-cream { background: var(--cream-100); }
section.bg-navy {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}
section.bg-navy h2, section.bg-navy h3 { color: var(--white); }
section.bg-gray { background: var(--gray-50); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block;
  font-family: 'Prompt'; font-weight: 500;
  color: var(--gold-dark);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 12px;
}
.section-head p {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto;
}
.bg-navy .section-eyebrow { color: var(--cream-400); }
.bg-navy .section-head p { color: rgba(255,255,255,.75); }

/* === ROLE CARDS === */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.role-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cream-400);
}
.role-card .icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: grid; place-items: center;
  color: var(--cream-300);
  font-size: 26px;
  margin-bottom: 20px;
}
.role-card.gold .icon { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--white); }
.role-card h3 { font-size: 22px; margin-bottom: 8px; }
.role-card .role-sub { color: var(--gray-500); font-size: 14px; margin-bottom: 16px; }
.role-card ul { list-style: none; margin-bottom: 20px; }
.role-card ul li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 14px;
  color: var(--gray-700);
}
.role-card ul li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--gold-dark); font-weight: 700;
}
.role-card .role-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Prompt'; font-weight: 500;
  color: var(--navy-800);
  font-size: 14px;
}

/* === HOW IT WORKS === */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  border: 1px solid var(--gray-200);
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-family: 'Prompt'; font-weight: 700; font-size: 18px;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(201,169,97,.3);
}
.step h4 { font-size: 16px; margin-bottom: 8px; color: var(--navy-800); }
.step p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* === PROPERTY CARDS === */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.property-thumb {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.property-badge {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(13,31,60,.9);
  color: var(--cream-300);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}
.property-status {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--gold);
  color: var(--navy-900);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.property-status.active { background: var(--green); color: var(--white); }
.property-status.matched { background: var(--amber); color: var(--white); }
.property-status.closed { background: var(--gray-500); color: var(--white); }
.property-body { padding: 20px; }
.property-loc { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.property-title { font-size: 17px; font-weight: 600; color: var(--navy-800); margin-bottom: 12px; line-height: 1.4; }
.property-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 12px;
}
.property-stat .stat-label { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; }
.property-stat .stat-val { font-family: 'Prompt'; font-weight: 600; color: var(--navy-800); font-size: 16px; margin-top: 2px; }
.property-stat .stat-val.gold { color: var(--gold-dark); }
.property-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.ltv-pill {
  background: var(--cream-100);
  color: var(--gold-dark);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 12px;
}

/* === INVESTOR CARDS === */
.investor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.investor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
}
.investor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.investor-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.investor-avatar {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  display: grid; place-items: center;
  color: var(--cream-300);
  font-family: 'Prompt'; font-weight: 700; font-size: 22px;
}
.investor-name { font-family: 'Prompt'; font-weight: 600; font-size: 17px; color: var(--navy-800); }
.investor-type { font-size: 13px; color: var(--gray-500); }
.investor-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; padding: 16px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 16px;
}
.investor-stat { text-align: center; }
.investor-stat .num { font-family: 'Prompt'; font-weight: 700; color: var(--navy-800); font-size: 18px; }
.investor-stat .lbl { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.investor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.investor-tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
}
.trust-score {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.trust-stars { color: var(--gold); }

/* === CALCULATOR === */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.calc-form h3 { margin-bottom: 24px; font-size: 22px; }
.input-group { margin-bottom: 20px; }
.input-group label {
  display: block;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
  margin-bottom: 8px;
}
.input-group input, .input-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: 'Sarabun';
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .15s;
}
.input-group input:focus, .input-group select:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(45,77,143,.1);
}
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}
.tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  font-family: 'Prompt'; font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  color: var(--gray-600);
  transition: all .15s;
  border: none;
  background: transparent;
}
.tab.active {
  background: var(--white);
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.calc-result {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius);
  padding: 32px;
  color: var(--white);
}
.calc-result h4 {
  color: var(--cream-300);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 8px;
}
.calc-result .total {
  font-family: 'Prompt';
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
}
.calc-result .total .currency {
  font-size: 18px;
  color: var(--cream-300);
  margin-left: 6px;
}
.calc-breakdown { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; }
.calc-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.calc-row:last-child { border-bottom: none; }
.calc-row .label { color: rgba(255,255,255,.7); }
.calc-row .val { font-family: 'Prompt'; font-weight: 600; color: var(--white); }
.calc-row.highlight {
  background: rgba(201, 169, 97, .15);
  margin: 12px -12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 97, .3);
}
.calc-row.highlight .label { color: var(--cream-300); font-weight: 500; }
.calc-row.highlight .val { color: var(--gold); font-size: 16px; }

/* === FILTERS (properties.html) === */
.page-head {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  padding: 60px 0 80px;
}
.page-head h1 { color: var(--white); font-size: 36px; margin-bottom: 8px; }
.page-head p { color: rgba(255,255,255,.75); font-size: 17px; }
.listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.filter-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky; top: 80px;
}
.filter-panel h4 { font-size: 16px; margin-bottom: 16px; }
.filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-100); }
.filter-group:last-child { border-bottom: none; }
.filter-group label { font-size: 13px; color: var(--gray-600); margin-bottom: 8px; display: block; font-weight: 500; }
.checkbox-list { display: flex; flex-direction: column; gap: 8px; }
.checkbox-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--gray-700);
  cursor: pointer;
}
.results-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.results-count { font-size: 14px; color: var(--gray-600); }
.results-count strong { color: var(--navy-800); font-weight: 600; }

/* === DASHBOARD === */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.dash-sidebar {
  background: var(--navy-900);
  color: var(--white);
  padding: 24px 16px;
}
.dash-sidebar .logo { color: var(--cream-300); margin-bottom: 32px; padding: 0 8px; }
.dash-nav { list-style: none; }
.dash-nav li a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  color: rgba(255,255,255,.7);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 4px;
  transition: all .15s;
}
.dash-nav li a:hover { background: rgba(255,255,255,.05); color: var(--white); }
.dash-nav li a.active { background: var(--navy-600); color: var(--cream-300); }
.dash-nav .ico { width: 20px; }
.dash-main { padding: 32px; background: var(--gray-50); }
.dash-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.dash-head h1 { font-size: 28px; }
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 32px;
}
.kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.kpi-label { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.kpi-val { font-family: 'Prompt'; font-size: 28px; font-weight: 700; color: var(--navy-800); }
.kpi-delta { font-size: 12px; margin-top: 4px; }
.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--red); }
.table-card { background: var(--white); border-radius: var(--radius); padding: 0; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); overflow: hidden; }
.table-head { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--gray-100); }
.table-head h3 { font-size: 18px; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 14px 24px; text-align: left; font-size: 14px; }
table th { background: var(--gray-50); color: var(--gray-600); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
table tr { border-top: 1px solid var(--gray-100); }
table td .pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.pill.green { background: var(--green-light); color: var(--green); }
.pill.amber { background: var(--amber-light); color: var(--amber); }
.pill.red { background: var(--red-light); color: var(--red); }
.pill.gray { background: var(--gray-100); color: var(--gray-600); }

/* === FOOTER === */
footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  padding: 60px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot-grid h5 { color: var(--cream-300); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.foot-grid ul { list-style: none; }
.foot-grid ul li { padding: 6px 0; font-size: 14px; }
.foot-grid ul li a { color: rgba(255,255,255,.65); }
.foot-grid ul li a:hover { color: var(--cream-300); }
.foot-grid .logo { color: var(--white); margin-bottom: 16px; }
.foot-grid .blurb { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  display: flex; justify-content: space-between;
  color: rgba(255,255,255,.5);
}

/* === MISC === */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.divider { border-top: 1px solid var(--gray-200); margin: 40px 0; }

/* === TESTIMONIALS === */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
}
.testimonial p { color: var(--gray-700); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: var(--cream-300);
  display: grid; place-items: center;
  font-family: 'Prompt'; font-weight: 700;
}
.testimonial-name { font-family: 'Prompt'; font-weight: 600; font-size: 14px; color: var(--navy-800); }
.testimonial-role { font-size: 12px; color: var(--gray-500); }

/* === CTA SECTION === */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(201,169,97,.15), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); font-size: 36px; margin-bottom: 12px; position: relative; }
.cta-band p { color: rgba(255,255,255,.8); font-size: 17px; margin-bottom: 28px; position: relative; }
.cta-band .btn { position: relative; }

/* === GUARANTEE === */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guarantee-item {
  text-align: center;
  padding: 32px 24px;
}
.guarantee-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(212,184,150,.15);
  color: var(--cream-400);
  display: grid; place-items: center;
  font-size: 30px;
  border: 1px solid rgba(212,184,150,.3);
}
.guarantee-item h4 { color: var(--white); font-size: 19px; margin-bottom: 8px; }
.guarantee-item p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; }

/* === FORM (register.html) === */
.form-wrap {
  max-width: 720px;
  margin: -60px auto 0;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.role-pick {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 32px;
}
.role-pick-card {
  padding: 20px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.role-pick-card:hover { border-color: var(--cream-400); }
.role-pick-card.selected {
  border-color: var(--gold);
  background: var(--cream-100);
}
.role-pick-card .ico { font-size: 28px; margin-bottom: 8px; }
.role-pick-card .ttl { font-family: 'Prompt'; font-weight: 600; color: var(--navy-800); font-size: 14px; }
.role-pick-card .sub { font-size: 11px; color: var(--gray-500); margin-top: 4px; }
.progress-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.progress-step {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  position: relative;
}
.progress-step.done { background: var(--gold); }
.progress-step.current { background: linear-gradient(90deg, var(--gold) 50%, var(--gray-200) 50%); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card-stack { height: 380px; max-width: 480px; margin: 0 auto; }
  .role-grid, .property-grid, .investor-grid, .testimonial-grid, .guarantee-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-wrapper { grid-template-columns: 1fr; }
  .listing-layout { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .role-grid, .property-grid, .investor-grid, .testimonial-grid, .guarantee-grid,
  .trust-grid, .steps, .kpi-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 80px; }
  .calc-wrapper { padding: 24px; }
  .form-wrap { padding: 24px; }
  section { padding: 56px 0; }
  .cta-band { padding: 40px 24px; }
  .role-pick { grid-template-columns: 1fr; }
}

/* =================================================================
   ACADEMY / COURSE FUNNEL  (เพิ่มสำหรับ PROPFUND Academy)
   ================================================================= */

/* --- Value ladder / pricing cards --- */
.ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--cream-400); }
.price-card.featured { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.price-card.ribbon-free {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-color: var(--navy-600);
}
.price-tier { font-family: 'Prompt'; font-size: 12px; font-weight: 600; color: var(--gold-dark); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; }
.price-name { font-family: 'Prompt'; font-size: 20px; font-weight: 600; color: var(--navy-800); margin-bottom: 4px; line-height: 1.3; }
.price-aud { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
.price-tag { font-family: 'Prompt'; font-weight: 700; font-size: 34px; color: var(--navy-800); margin: 14px 0 4px; line-height: 1; }
.price-tag .unit { font-size: 14px; color: var(--gray-500); font-weight: 500; }
.price-tag .strike { display: block; font-size: 15px; color: var(--gray-400); text-decoration: line-through; font-weight: 500; margin-bottom: 4px; }
.price-card ul { list-style: none; margin: 18px 0 24px; flex: 1; }
.price-card ul li { padding: 7px 0 7px 26px; position: relative; font-size: 14px; color: var(--gray-700); }
.price-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }
.price-card .btn { width: 100%; }
.ribbon-free .price-tier { color: var(--cream-300); }
.ribbon-free .price-name, .ribbon-free .price-tag { color: var(--white); }
.ribbon-free .price-aud { color: rgba(255,255,255,.6); }
.ribbon-free ul li { color: rgba(255,255,255,.85); }
.ribbon-free ul li::before { color: var(--gold); }
.popular-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy-900);
  font-family: 'Prompt'; font-weight: 600; font-size: 12px;
  padding: 4px 16px; border-radius: 100px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(201,169,97,.4);
}

/* --- Curriculum / modules --- */
.curriculum { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.module {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 18px 22px; display: flex; gap: 16px; align-items: flex-start;
}
.module-num {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px;
  background: var(--cream-100); color: var(--gold-dark);
  font-family: 'Prompt'; font-weight: 700; display: grid; place-items: center;
}
.module h4 { font-size: 16px; color: var(--navy-800); margin-bottom: 3px; }
.module p { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; }

/* --- FAQ --- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 960px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 22px; }
.faq-item h4 { font-size: 16px; margin-bottom: 8px; color: var(--navy-800); }
.faq-item p { color: var(--gray-600); font-size: 14px; line-height: 1.7; }

/* --- Split layout (sales / webinar) --- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.sticky-card { position: sticky; top: 88px; }

/* --- Countdown --- */
.countdown { display: flex; gap: 10px; }
.cd-box { background: var(--navy-800); color: #fff; border-radius: 10px; padding: 12px 14px; min-width: 62px; text-align: center; }
.cd-box .n { font-family: 'Prompt'; font-weight: 700; font-size: 26px; line-height: 1; }
.cd-box .l { font-size: 11px; color: var(--cream-300); margin-top: 5px; }

/* --- Compliance / disclaimer note --- */
.compliance-note {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 14px 18px; font-size: 12.5px; color: var(--gray-600); line-height: 1.7;
}
.bg-navy .compliance-note { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.65); }

/* --- Commission table --- */
.comm-table td .amt { color: var(--gold-dark); font-weight: 600; }
.comm-table .role-cell { font-weight: 600; color: var(--navy-800); }
.comm-table tr.tier2 td { background: var(--cream-100); }
.tier-badge { display: inline-block; padding: 2px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; background: var(--cream-100); color: var(--gold-dark); }

/* --- Ref-link copy box --- */
.ref-box {
  display: flex; gap: 10px; align-items: center;
  background: var(--gray-50); border: 1px dashed var(--gray-300); border-radius: 10px;
  padding: 12px 14px; font-family: 'Prompt'; font-size: 14px; color: var(--navy-800);
}
.ref-box input { flex: 1; border: none; background: transparent; font-size: 14px; color: var(--navy-800); }
.ref-box input:focus { outline: none; }

@media (max-width: 1024px) {
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ladder { grid-template-columns: 1fr; }
}

/* =====================================================
   REGISTRATION WIZARD — multi-step + referral network
   ===================================================== */
.wizard {
  max-width: 760px;
  margin: -60px auto 0;
  position: relative;
  z-index: 2;
}
.wizard-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

/* stepper header */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}
.stepper-item {
  display: flex; align-items: center; flex: 1;
}
.stepper-item:last-child { flex: 0; }
.stepper-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Prompt'; font-weight: 600; font-size: 15px;
  background: var(--gray-100); color: var(--gray-500);
  border: 2px solid var(--gray-200);
  flex-shrink: 0;
  transition: all .2s;
}
.stepper-line {
  flex: 1; height: 2px; background: var(--gray-200);
  margin: 0 8px; transition: background .2s;
}
.stepper-item.done .stepper-dot { background: var(--gold); border-color: var(--gold); color: var(--white); }
.stepper-item.current .stepper-dot { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); box-shadow: 0 0 0 4px rgba(13,31,60,.1); }
.stepper-item.done .stepper-line { background: var(--gold); }

.step-title { text-align: center; margin-bottom: 28px; }
.step-title .kicker {
  display: inline-block; padding: 5px 14px; background: var(--cream-100);
  color: var(--gold-dark); border-radius: 100px; font-size: 12px; font-weight: 600;
  margin-bottom: 10px; font-family: 'Prompt';
}
.step-title h2 { font-size: 24px; }
.step-title p { color: var(--gray-500); font-size: 15px; margin-top: 6px; }

/* step panels */
.step-panel { display: none; animation: fadeIn .25s ease; }
.step-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

/* role multi-select */
.role-multi { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 8px; }
.role-opt {
  padding: 22px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius);
  text-align: center; cursor: pointer; transition: all .15s; position: relative;
}
.role-opt:hover { border-color: var(--cream-400); background: var(--cream-100); }
.role-opt.on { border-color: var(--gold); background: var(--cream-100); }
.role-opt.on::after {
  content: '✓'; position: absolute; top: 8px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.role-opt .ic { font-size: 30px; margin-bottom: 8px; }
.role-opt .nm { font-family: 'Prompt'; font-weight: 600; color: var(--navy-800); font-size: 15px; }
.role-opt .ds { font-size: 12px; color: var(--gray-500); margin-top: 4px; line-height: 1.4; }

/* entry path options */
.entry-opt {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border: 2px solid var(--gray-200); border-radius: var(--radius);
  cursor: pointer; margin-bottom: 12px; transition: all .15s;
}
.entry-opt:hover { border-color: var(--cream-400); }
.entry-opt.on { border-color: var(--gold); background: var(--cream-100); }
.entry-opt .radio {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gray-300);
  flex-shrink: 0; margin-top: 2px; position: relative; transition: all .15s;
}
.entry-opt.on .radio { border-color: var(--gold); }
.entry-opt.on .radio::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold);
}
.entry-opt .body h4 { font-size: 16px; color: var(--navy-800); margin-bottom: 2px; }
.entry-opt .body p { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.entry-opt .tag-mini {
  display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 100px;
  background: var(--green-light); color: var(--green); font-weight: 600; margin-left: 6px;
}

/* referral code validation box */
.ref-zone { margin-top: 8px; }
.ref-input-wrap { position: relative; }
.ref-result {
  margin-top: 10px; padding: 14px 16px; border-radius: 10px;
  display: none; align-items: center; gap: 12px; font-size: 14px;
}
.ref-result.show { display: flex; }
.ref-result.ok { background: var(--green-light); border: 1px solid #86efac; }
.ref-result.bad { background: var(--red-light); border: 1px solid #fca5a5; color: var(--red); }
.ref-result .ref-ava {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: var(--cream-300); display: grid; place-items: center; font-family: 'Prompt'; font-weight: 700;
}
.ref-result .ref-name { font-weight: 600; color: var(--navy-800); }
.ref-result .ref-meta { font-size: 12px; color: var(--gray-600); }

.tier-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 2px 8px; border-radius: 100px; font-weight: 700;
}
.tier-chip.gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; }
.tier-chip.navy { background: var(--navy-800); color: var(--cream-300); }
.tier-chip.gray { background: var(--gray-200); color: var(--gray-600); }

/* tier cards (step 5) */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.tier-card { padding: 18px; }
.tier-card .tier-price { font-size: 12px; }
.tier-card .tier-rate { font-size: 12px; }
.tier-card {
  border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 22px; cursor: pointer;
  transition: all .15s; position: relative;
}
.tier-card:hover { border-color: var(--cream-400); }
.tier-card.on { border-color: var(--gold); background: var(--cream-100); box-shadow: var(--shadow); }
.tier-card.vvip.on { border-color: var(--gold); }
.tier-card .tier-name { font-family: 'Prompt'; font-weight: 700; font-size: 18px; color: var(--navy-800); }
.tier-card .tier-price { font-size: 13px; color: var(--gray-500); margin: 2px 0 14px; }
.tier-card .tier-rate { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-top: 1px dashed var(--gray-200); }
.tier-card .tier-rate b { font-family: 'Prompt'; color: var(--gold-dark); }

/* commission preview */
.commission-box {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius); padding: 24px; color: #fff; margin-top: 8px;
}
.commission-box h4 { color: var(--cream-300); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.commission-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.commission-row:last-child { border-bottom: none; }
.commission-row .lbl { color: rgba(255,255,255,.78); }
.commission-row .val { font-family: 'Prompt'; font-weight: 600; color: #fff; }
.commission-row .val.gold { color: var(--gold); }
.commission-mini {
  background: rgba(201,169,97,.15); border: 1px solid rgba(201,169,97,.3);
  border-radius: 10px; padding: 14px; margin-top: 14px; font-size: 13px;
}
.commission-mini .ex { color: var(--cream-300); }
.commission-mini .amt { font-family: 'Prompt'; font-weight: 700; color: var(--gold); font-size: 18px; }

/* KYC upload zones */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-zone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 22px 16px;
  text-align: center; cursor: pointer; transition: all .15s; background: var(--gray-50);
}
.upload-zone:hover { border-color: var(--gold); background: var(--cream-100); }
.upload-zone.filled { border-color: var(--green); border-style: solid; background: var(--green-light); }
.upload-zone .uic { font-size: 26px; margin-bottom: 6px; }
.upload-zone .ut { font-size: 13px; font-weight: 600; color: var(--navy-800); }
.upload-zone .us { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.upload-zone.req .ut::after { content: ' *'; color: var(--red); }

/* nav buttons */
.wizard-nav { display: flex; gap: 12px; margin-top: 28px; }

/* alert */
.inline-alert {
  display: none; align-items: center; gap: 10px;
  background: var(--amber-light); border: 1px solid #fcd34d; color: #92400e;
  padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-top: 12px;
}
.inline-alert.show { display: flex; }

/* success screen */
.success-screen { text-align: center; padding: 20px 0; display: none; }
.success-screen.show { display: block; }
.success-ring {
  width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: grid; place-items: center; font-size: 40px;
}
.member-code-box {
  background: var(--cream-100); border: 2px dashed var(--gold); border-radius: var(--radius);
  padding: 20px; margin: 20px 0; 
}
.member-code-box .lbl { font-size: 12px; color: var(--gray-600); margin-bottom: 4px; }
.member-code-box .code { font-family: 'Prompt'; font-weight: 700; font-size: 28px; color: var(--navy-800); letter-spacing: 2px; }

@media (max-width: 640px) {
  .wizard-card { padding: 24px; }
  .role-multi { grid-template-columns: 1fr; }
  .tier-grid, .upload-grid { grid-template-columns: 1fr; }
  .stepper-dot { width: 30px; height: 30px; font-size: 13px; }
}
