/* ============================================
   LAND INTELLIGENCE — Premium Dashboard
   ============================================ */

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

/* ============================================
   SHARED LANDS DESIGN TOKENS
   — extracted from fease.html (B8B dark/gold system).
   All pages (index / analyze / fease) read the same
   variable names so switching :root[data-theme] flips
   every page identically. ==========================
*/
:root{
  --bg:#0b0b0d; --panel:#161613; --panel2:#1d1c18; --line:#33301f;
  --txt:#f2ede1; --muted:#a99f86; --accent:#d4af37; --accent2:#f2d377;
  --warn:#e0a83a; --bad:#e2635b; --chip:#26241c;
  --hint:#b8ae95;
  --bg2:#131210; --bg3:#141310;
  --grad-top:#0a0a0c; --grad-bot:#0b0b0d;
  --switch-off:#3a3626;
  --vgood-bg:rgba(212,175,55,.10); --vgood-bd:rgba(212,175,55,.45);
  --vwarn-bg:rgba(224,168,58,.09); --vwarn-bd:rgba(224,168,58,.4);
  --vbad-bg:rgba(226,99,91,.09); --vbad-bd:rgba(226,99,91,.4);
  --r-sm:10px;--r-md:12px;--r-lg:16px;--r-pill:20px;
  --sp-1:6px;--sp-2:9px;--sp-3:12px;--sp-4:18px;
  --fs-hint:11px;--fs-body:12px;--fs-label:13px;
  --t-fast:.18s;
}
:root[data-theme="light"]{
  --bg:#f8f6f0; --panel:#ffffff; --panel2:#f6f2e6; --line:#e3dcc4;
  --txt:#221f16; --muted:#6f6650; --accent:#9c7a17; --accent2:#7a5f10;
  --warn:#96690f; --bad:#b13a32; --chip:#efe8d3;
  --hint:#665e46;
  --bg2:#fdfbf6; --bg3:#f7f2e4;
  --grad-top:#f8f6ee; --grad-bot:#f8f6f0;
  --switch-off:#d8cfae;
  --vgood-bg:#f8f0d9; --vgood-bd:#d9c383;
  --vwarn-bg:#fdf1de; --vwarn-bd:#efc98d;
  --vbad-bg:#fbe6e6; --vbad-bd:#f0b3b3;
}

/* Legacy variable names used throughout this file, aliased onto the
   shared tokens above so every existing rule repaints in the new
   palette without a full rewrite of every selector. */
:root {
  --bg-base: var(--bg);
  --bg-card: var(--panel);
  --bg-card-hover: var(--panel2);
  --border-subtle: var(--line);
  --border-hover: var(--accent2);
  --text-primary: var(--txt);
  --text-secondary: var(--muted);
  --text-muted: var(--hint);

  /* Accent Colors — unified to the gold system (no off-theme hues).
     Each tool keeps a distinct *opacity step* of the same accent so
     cards still read apart at a glance without breaking the palette. */
  --emerald: var(--accent);
  --emerald-glow: rgba(212, 175, 55, 0.20);
  --emerald-dim: rgba(212, 175, 55, 0.10);

  --violet: var(--accent);
  --violet-glow: rgba(212, 175, 55, 0.24);
  --violet-dim: rgba(212, 175, 55, 0.12);

  --amber: var(--accent2);
  --amber-glow: rgba(212, 175, 55, 0.28);
  --amber-dim: rgba(212, 175, 55, 0.14);

  --sky: var(--accent);
  --sky-glow: rgba(212, 175, 55, 0.24);
  --sky-dim: rgba(212, 175, 55, 0.13);

  --rose: var(--accent);
  --rose-glow: rgba(212, 175, 55, 0.22);
  --rose-dim: rgba(212, 175, 55, 0.11);

  --orange: var(--accent2);
  --orange-glow: rgba(212, 175, 55, 0.26);
  --orange-dim: rgba(212, 175, 55, 0.15);

  --radius-card: var(--r-lg);
  --radius-btn: var(--r-pill);
  --radius-tag: var(--r-sm);
  --transition: all var(--t-fast) cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh; /* iOS Safari: กันแถบ toolbar ดันเนื้อหา */
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%; /* กัน iOS ปรับขนาดฟอนต์อัตโนมัติ */
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb {
  opacity: 0.16;
}

.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation-duration: 18s;
}

.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent2) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation-duration: 24s;
  animation-delay: -8s;
}

.orb-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--muted) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation-duration: 30s;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(5, 8, 16, 0.75);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 100%; height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Sarabun', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--emerald);
  font-weight: 500;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-family: 'Sarabun', sans-serif;
}

.hero-title {
  font-family: 'Sarabun', sans-serif;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.break-desktop { display: block; }

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  background: var(--panel2);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-family: 'Sarabun', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* ============================================
   HERO SEARCH — paste a Google Maps link/coords,
   jump straight to analyze.html?q=...
   ============================================ */

.hero-search {
  margin-top: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill, 20px);
  padding: 8px 8px 8px 20px;
  transition: border-color var(--t-fast, .18s) ease;
}

.hero-search-box:focus-within {
  border-color: var(--accent2);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.hero-search-icon { font-size: 16px; flex-shrink: 0; opacity: .8; }

.hero-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Sarabun', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
}

.hero-search-input::placeholder { color: var(--text-muted); }

.hero-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--btncalc-txt, #191507);
  font-family: 'Sarabun', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--r-pill, 20px);
  padding: 11px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s ease, transform .12s ease;
  flex-shrink: 0;
}
.hero-search-btn:hover { filter: brightness(1.06); }
.hero-search-btn:active { transform: scale(.97); }
.hero-search-btn svg { width: 14px; height: 14px; }

.hero-search-hint {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.hero-search-error {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--bad);
}

@media (max-width: 560px) {
  .hero-search-box { flex-wrap: wrap; border-radius: 18px; padding: 12px 16px; }
  .hero-search-input { width: 100%; order: 1; }
  .hero-search-icon { order: 0; }
  .hero-search-btn { order: 2; width: 100%; justify-content: center; margin-top: 4px; }
}

/* ============================================
   TOOLS SECTION
   ============================================ */

.tools-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================
   TOOL CARDS
   ============================================ */

.tool-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(24px);
  animation: cardIn 0.6s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }

.tool-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.card-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  transition: var(--transition);
}

.tool-card:hover .card-glow {
  height: 200px;
  opacity: 0.5;
}

.glow-emerald { background: linear-gradient(180deg, var(--emerald-glow), transparent); }
.glow-violet  { background: linear-gradient(180deg, var(--violet-glow), transparent); }
.glow-amber   { background: linear-gradient(180deg, var(--amber-glow), transparent); }
.glow-sky     { background: linear-gradient(180deg, var(--sky-glow), transparent); }
.glow-rose    { background: linear-gradient(180deg, var(--rose-glow), transparent); }
.glow-orange  { background: linear-gradient(180deg, var(--orange-glow), transparent); }

/* Card Top Border */
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card:hover::before { opacity: 1; }

#card-landsmaps::before  { background: linear-gradient(90deg, transparent, var(--emerald), transparent); }
#card-landometer::before { background: linear-gradient(90deg, transparent, var(--violet), transparent); }
#card-sqw::before        { background: linear-gradient(90deg, transparent, var(--amber), transparent); }
#card-treasury::before   { background: linear-gradient(90deg, transparent, var(--sky), transparent); }
#card-lecs::before       { background: linear-gradient(90deg, transparent, var(--rose), transparent); }
#card-taladteedin::before { background: linear-gradient(90deg, transparent, var(--orange), transparent); }

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-number {
  font-family: 'Sarabun', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.card-badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 0.3px;
}

.badge-emerald { background: var(--emerald-dim); color: var(--emerald); }
.badge-violet  { background: var(--violet-dim);  color: var(--violet); }
.badge-amber   { background: var(--amber-dim);   color: var(--amber); }
.badge-sky     { background: var(--sky-dim);     color: var(--sky); }
.badge-rose    { background: var(--rose-dim);    color: var(--rose); }
.badge-orange  { background: var(--orange-dim);  color: var(--orange); }

/* Icon */
.card-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.tool-card:hover .card-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.card-icon-wrap svg {
  width: 24px; height: 24px;
}

.icon-emerald { background: var(--emerald-dim); color: var(--emerald); }
.icon-violet  { background: var(--violet-dim);  color: var(--violet); }
.icon-amber   { background: var(--amber-dim);   color: var(--amber); }
.icon-sky     { background: var(--sky-dim);     color: var(--sky); }
.icon-rose    { background: var(--rose-dim);    color: var(--rose); }
.icon-orange  { background: var(--orange-dim);  color: var(--orange); }

/* Card Content */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  font-size: 12px;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  padding: 4px 10px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tool-card:hover .tag {
  border-color: var(--border-hover);
  background: var(--panel2);
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.card-source {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Inter', monospace;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.card-btn svg {
  width: 16px; height: 16px;
  transition: transform 0.25s ease;
}

.card-btn:hover svg { transform: translateX(4px); }

.btn-emerald, .btn-violet, .btn-amber, .btn-sky, .btn-rose, .btn-orange {
  border-color: var(--line);
}
.btn-emerald { background: var(--emerald-dim); color: var(--emerald); }
.btn-emerald:hover { background: var(--emerald-glow); box-shadow: 0 0 20px rgba(212,175,55,0.18); border-color: var(--accent2); }

.btn-violet  { background: var(--violet-dim); color: var(--violet); }
.btn-violet:hover  { background: var(--violet-glow); box-shadow: 0 0 20px rgba(212,175,55,0.18); border-color: var(--accent2); }

.btn-amber   { background: var(--amber-dim); color: var(--amber); }
.btn-amber:hover   { background: var(--amber-glow); box-shadow: 0 0 20px rgba(212,175,55,0.18); border-color: var(--accent2); }

.btn-sky     { background: var(--sky-dim); color: var(--sky); }
.btn-sky:hover     { background: var(--sky-glow); box-shadow: 0 0 20px rgba(212,175,55,0.18); border-color: var(--accent2); }

.btn-rose    { background: var(--rose-dim); color: var(--rose); }
.btn-rose:hover    { background: var(--rose-glow); box-shadow: 0 0 20px rgba(212,175,55,0.18); border-color: var(--accent2); }

.btn-orange  { background: var(--orange-dim); color: var(--orange); }
.btn-orange:hover  { background: var(--orange-glow); box-shadow: 0 0 20px rgba(212,175,55,0.18); border-color: var(--accent2); }

/* ============================================
   WORKFLOW SECTION
   ============================================ */

.workflow-section {
  position: relative;
  z-index: 1;
  background: var(--bg3);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 60px 24px;
}

.workflow-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.workflow-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.workflow-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  transition: var(--transition);
}

.workflow-step:hover {
  background: var(--panel2);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.wf-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Sarabun', sans-serif;
  flex-shrink: 0;
}

.num-emerald { background: var(--emerald-dim); color: var(--emerald); }
.num-violet  { background: var(--violet-dim);  color: var(--violet); }
.num-amber   { background: var(--amber-dim);   color: var(--amber); }
.num-sky     { background: var(--sky-dim);     color: var(--sky); }
.num-rose    { background: var(--rose-dim);    color: var(--rose); }
.num-orange  { background: var(--orange-dim);  color: var(--orange); }

.wf-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.wf-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.wf-tool {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Inter', monospace;
}

.wf-arrow {
  color: var(--text-muted);
  font-size: 18px;
  padding: 0 4px;
  opacity: 0.5;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.footer-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-steps {
    gap: 6px;
  }
}

@media (max-width: 720px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 60px 20px 48px;
  }
  .hero-stats {
    gap: 20px;
    padding: 16px 24px;
  }
  .stat-value { font-size: 20px; }
  .hero-eyebrow { font-size: 12px; }
  .break-desktop { display: inline; }
  .logo-sub { display: none; }
  .wf-arrow { display: none; }
  .workflow-steps {
    flex-direction: column;
    align-items: stretch;
  }
  .workflow-step { width: 100%; }
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .card-btn { width: 100%; justify-content: center; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ─── Analyzer CTA ─── */
.analyzer-cta {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 28px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  flex-wrap: wrap;
}

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

.cta-icon { font-size: 32px; flex-shrink: 0; }

.cta-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cta-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--btncalc-txt, #191507);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.cta-btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.cta-btn:hover svg { transform: translateX(4px); }
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.3);
  filter: brightness(1.06);
}

@media (max-width: 640px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-btn { width: 100%; justify-content: center; }
}

/* ── Print / PDF Styles ── */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .input-section, .report-actions, #btnPrint, .map-links-row, .poi-tabs, .cta-section {
    display: none !important;
  }
  .report-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    background: transparent;
  }
  .result-card {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    color: #000 !important;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
  .rc-title, .mi-label, .loc-label {
    color: #333 !important;
  }
  .mi-val, .loc-val, .env-score, .env-score-label {
    color: #000 !important;
  }
  .report-title {
    color: #000 !important;
  }
  .report-subtitle, .report-timestamp {
    color: #666 !important;
  }
  .mi-item, .loc-item, .nearest-highlights {
    background: transparent !important;
    border-color: #eee !important;
  }
  .col-right {
    display: none !important; /* Hide tools on print */
  }
  .col-left {
    grid-column: span 12 !important;
  }
  .results-grid {
    display: block !important;
  }
}

/* version badge */
.ver-badge{display:inline-block;margin-left:6px;padding:1px 8px;border:1px solid var(--gold,#c9a45c);border-radius:999px;font-size:11px;color:var(--gold,#c9a45c);vertical-align:middle;letter-spacing:.5px}
