/* ==========================================================================
   RAVINDRA RASAL — Advanced Property Vastu Consultancy
   Design tokens: grounded in the subject — direction, structure, elements.
   ========================================================================== */

:root {
  /* Core palette */
  --ink: #4a1a1c;          /* near-black warm brown — text, dark surfaces */
  --ink-soft: #3a2c1e;
  --clay: #97161a;         /* terracotta/brick — primary accent */
  --clay-dark: #6f0f13;
  --brass: #c89c12;        /* muted gold — CTA, highlights */
  --brass-light: #ecc656;
  --parchment: #fffaf2;    /* warm off-white background */
  --parchment-deep: #efe4cf;
  --sage: #5c6b4a;         /* earth-green — secondary accent */
  --slate: #3f5468;        /* water-blue — secondary accent */
  --line: #dcd0b8;         /* hairline border on parchment */
  --white: #fffdf9;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
  --med: 320ms;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--parchment);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, .brand-name, .display {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: var(--clay); text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--clay-dark); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.brand-nav {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow var(--med) var(--ease);
}
.brand-nav.is-scrolled {
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-mark svg { flex-shrink: 0; }

.brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white) !important;
  line-height: 1.1;
}
.brand-sub {
  font-size: 0.68rem;
  color: var(--brass-light);
  letter-spacing: 0.06em;
  font-family: var(--font-body);
}

.navbar-nav .nav-link {
  color: rgba(255,253,249,0.82) !important;
  position: relative;
  padding: 0.5rem 0.15rem !important;
  margin: 0 0.65rem;
  font-weight: 500;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.1rem;
  width: 0;
  height: 2px;
  background: var(--brass);
  transition: width var(--med) var(--ease);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}
.navbar-nav .nav-link:hover { color: var(--white) !important; }

.btn-cta {
  background-color: var(--brass);
  border: 1px solid var(--brass);
  color: var(--ink) !important;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: 3px;
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn-cta:hover {
  background-color: var(--brass-light);
  border-color: var(--brass-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200,156,18,0.35);
  color: var(--ink) !important;
}
.btn-cta:active { transform: translateY(0); }

.btn-outline-dark, .btn-outline-secondary, .btn-outline-light {
  border-radius: 3px;
  transition: all var(--fast) var(--ease);
}
.btn-outline-dark { border-color: white; color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); transform: translateY(-1px); }

.btn { border-radius: 3px; }

/* ==========================================================================
   HERO — compass motif, editorial left-aligned type
   ========================================================================== */

.hero {
  background: var(--ink);
  color: var(--white);
  padding: 5.5rem 0;
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-compass { display: none; }
}

.hero-eyebrow {
  color: var(--brass-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 16ch;
  animation: rise 700ms var(--ease) both;
  color:white;
}
.hero p.lead {
  color: rgba(255,253,249,0.78);
  max-width: 52ch;
  font-size: 1.08rem;
  margin-top: 1.1rem;
  animation: rise 700ms var(--ease) 90ms both;
}
.hero .hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  animation: rise 700ms var(--ease) 160ms both;
}

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

.hero-compass {
  justify-self: center;
  animation: spin-in 900ms var(--ease) 120ms both;
}
@keyframes spin-in {
  from { opacity: 0; transform: rotate(-14deg) scale(0.92); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

/* ==========================================================================
   SECTIONS / TYPE
   ========================================================================== */

.section { padding: 4.5rem 0; }
.section-narrow { max-width: 760px; margin-inline: auto; }

.section-eyebrow {
  color: var(--clay);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.section-title {
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.section-subtitle {
  color: #6b5c48;
  max-width: 62ch;
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* ==========================================================================
   PANELS
   ========================================================================== */

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--clay);
  border-radius: 4px;
  padding: 1.75rem;
  height: 100%;
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(74,26,28,0.09);
}
.panel.accent-brass { border-top-color: var(--brass); }
.panel.accent-sage  { border-top-color: var(--sage); }
.panel.accent-slate { border-top-color: var(--slate); }

.panel-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.panel h5 { font-family: var(--font-display); font-weight: 600; margin-bottom: 0.4rem; }

.usp-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--clay); border-radius: 4px; box-shadow: none; transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease); height: 100%; }
.usp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(74,26,28,0.09); }
.usp-icon { font-size: 1.6rem; }

/* ==========================================================================
   BADGES / STATUS
   ========================================================================== */

.badge { font-weight: 500; letter-spacing: 0.01em; border-radius: 3px; padding: 0.4em 0.7em; }
.badge.bg-secondary { background-color: var(--slate) !important; }

.badge-status-pending      { background-color: #b98527; }
.badge-status-confirmed    { background-color: var(--slate); }
.badge-status-in_progress  { background-color: #3d6ea5; }
.badge-status-completed    { background-color: var(--sage); }
.badge-status-cancelled    { background-color: var(--clay-dark); }

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-label { font-weight: 500; color: var(--ink-soft); margin-bottom: 0.35rem; }
.form-control, .form-select {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.6rem 0.8rem;
  background: var(--white);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(200,156,18,0.18);
}
textarea.form-control { resize: vertical; min-height: 6rem; max-height: 28rem; }

.form-check-input:checked {
  background-color: var(--clay);
  border-color: var(--clay);
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.table thead th {
  background: var(--parchment-deep);
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom: none;
  font-size: 0.85rem;
}
.table tbody tr { transition: background-color var(--fast) var(--ease); }
.table tbody tr:hover { background-color: rgba(200,156,18,0.06); }
.table td, .table th { vertical-align: middle; padding: 0.85rem 1rem; }

/* ==========================================================================
   ALERTS
   ========================================================================== */

.alert { border-radius: 4px; border: 1px solid transparent; animation: rise 300ms var(--ease) both; }

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

.brand-footer { background-color: var(--ink); color: #cbb9a4; }
.brand-footer a { color: #e9d9c1; }
.brand-footer a:hover { color: var(--brass-light); }
.brand-footer h5, .brand-footer h6 { color: var(--brass-light); font-family: var(--font-display); }
.brand-footer .text-muted { color: #cbb9a4 !important; opacity: 1; }
.brand-footer p, .brand-footer li { color: #cbb9a4; }
.brand-footer hr { border-color: rgba(255,255,255,0.15) !important; opacity: 1; }

/* ==========================================================================
   ADMIN LAYOUT — CSS Grid (robust against overlap issues)
   ========================================================================== */

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; min-height: auto; display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 1rem !important; }
  .admin-sidebar a { flex: 1 1 auto; text-align: center; }
}

.admin-sidebar { background-color: var(--ink); padding: 1.5rem 0.75rem; }
.admin-sidebar a {
  color: #e9d9c1;
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 3px;
  margin-bottom: 0.15rem;
  font-weight: 500;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), padding-left var(--fast) var(--ease);
}
.admin-sidebar a:hover { background-color: var(--ink-soft); color: var(--white); padding-left: 1.25rem; }
.admin-sidebar a.active { background-color: var(--clay); color: var(--white); }

.admin-main { padding: 2rem; min-width: 0; }

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(74,26,28,0.08); }
.stat-card h3 { font-family: var(--font-display); color: var(--clay); margin-bottom: 0.15rem; }
.stat-card small { color: #6b5c48; }

/* Robust two-column grid for detail pages (fixes the earlier overlap bug) */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MISC UTILITIES
   ========================================================================== */

.text-brand { color: var(--clay); font-weight: 600; }
.max-narrow { max-width: 620px; margin-inline: auto; }
.max-medium { max-width: 800px; margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  background: var(--brass);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 2000;
  border-radius: 3px;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ==========================================================================
   VASTU ENERGY ANALYSIS — records table + floor-plan editor
   ========================================================================== */

.vastu-record-table thead th {
  background-color: var(--brass);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
}
.vastu-record-table tbody tr { border-bottom: 1px solid var(--line); }

.btn-view, .btn-delete {
  border: none;
  color: var(--white);
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-view { background-color: var(--sage); }
.btn-view:hover { background-color: #4a5a3b; color: var(--white); }
.btn-delete { background-color: var(--clay); }
.btn-delete:hover { background-color: var(--clay-dark); color: var(--white); }

.vastu-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem;
  margin-bottom: 1rem;
}
.vastu-toolbar .divider { width: 1px; align-self: stretch; background: var(--line); margin: 0 0.25rem; }
.btn-tool {
  background: var(--parchment);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn-tool:hover { background-color: var(--parchment-deep); }
.btn-tool.active { background-color: var(--clay); color: var(--white); border-color: var(--clay); }
.btn-tool select, .btn-tool input[type="number"] { border: none; background: transparent; font-size: 0.85rem; }
.vastu-toolbar .form-select-sm, .vastu-toolbar input[type="number"] {
  width: auto; padding: 0.3rem 0.5rem; font-size: 0.85rem;
  border: 1px solid var(--line); border-radius: 4px; background: var(--parchment);
}

.vastu-canvas-wrap {
  position: relative;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background-color: #fbf8f0;
  background-image:
    linear-gradient(rgba(151,22,26,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151,22,26,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  cursor: default;
  transition: height var(--med) var(--ease);
}
.vastu-canvas-wrap.maximized { height: 82vh; }
.vastu-canvas-wrap.mode-move { cursor: grab; }
.vastu-canvas-wrap.mode-pin { cursor: crosshair; }

.vastu-plan-layer {
  position: absolute;
  transform-origin: center center;
  user-select: none;
  touch-action: none;
}
.vastu-plan-layer img { display: block; max-width: 320px; pointer-events: none; }

.vastu-plan-layer { z-index: 1; }
.vastu-compass-layer {
  position: absolute;
  z-index: 2;               /* above the plan image */
  transform-origin: center center;
  pointer-events: none;
}
.vastu-compass { display: block; pointer-events: none; overflow: visible; }

.vastu-pin {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--clay);
  border: 2px solid var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--clay);
  cursor: pointer;
  z-index: 3;
}
.vastu-pin:hover { background: var(--clay-dark); }
.vastu-pin .pin-label {
  position: absolute; top: -1.6rem; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; background: var(--ink); color: var(--white);
  padding: 0.1rem 0.4rem; border-radius: 3px; white-space: nowrap;
}
.vastu-pin .pin-number {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: var(--white);
  pointer-events: none;
}
.vastu-pin-static { cursor: default; width: 18px; height: 18px; }

/* ==========================================================================
   VASTU PRINT REPORT
   ========================================================================== */
.vastu-print-page {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem 2rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.vastu-print-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 2px solid var(--brass); padding-bottom: 1rem; margin-bottom: 1.25rem;
}
.vastu-print-header h2 { margin: 0; }
.vastu-print-info-table th { width: 180px; color: #6b5c48; font-weight: 600; }
.vastu-print-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background-color: #fbf8f0;
}
.vastu-print-marked-points th { width: 60px; }
.vastu-print-footer {
  border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 0.75rem;
  font-size: 0.8rem; color: #8a7a5f; text-align: center;
}

@media print {
  body { background: var(--white) !important; }
  .vastu-print-page { border: none; max-width: none; padding: 0; }
  .vastu-print-canvas-wrap { break-inside: avoid; }
  @page { size: A4; margin: 14mm; }
}

.vastu-upload-drop {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.75rem;
  color: #8a7a5f;
}

.vastu-info-strip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.vastu-info-strip strong { color: var(--ink); }

.vastu-breadcrumb { font-size: 0.9rem; color: #6b5c48; display: flex; align-items: center; gap: 0.25rem; }
.vastu-breadcrumb a { color: var(--clay); display: inline-flex; align-items: center; }
.vastu-breadcrumb a:hover { color: var(--clay-dark); }

.vastu-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.75rem 2rem 2.25rem;
  box-shadow: 0 8px 28px rgba(74,26,28,0.06);
}
.vastu-card-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.vastu-card-header h2 { font-size: 1.35rem; margin: 0; display: flex; align-items: center; gap: 0.5rem; color: var(--clay-dark); }
.vastu-card-icon { font-size: 1.1rem; }
.btn-report-list {
  background: var(--brass);
  color: var(--white) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-report-list:hover { background: var(--brass-light); color: var(--white) !important; }

.vastu-field-label { font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; display: block; }
.vastu-input, .vastu-file-input {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  width: 100%;
  background: var(--white);
}
.vastu-input:focus, .vastu-file-input:focus { border-color: var(--brass); box-shadow: 0 0 0 0.15rem rgba(200,156,18,0.2); }

.gender-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.gender-option {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border-right: 1px solid var(--line);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
  margin: 0;
}
.gender-option:last-child { border-right: none; }
.gender-option.active { background: var(--clay); color: var(--white); }

.btn-vastu-submit {
  background: var(--clay-dark);
  color: var(--white);
  padding: 0.6rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
}
.btn-vastu-submit:hover { background: var(--clay); color: var(--white); }
.btn-vastu-reset {
  background: transparent;
  color: var(--clay-dark);
  border: 1px solid var(--clay-dark);
  padding: 0.6rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
}
.btn-vastu-reset:hover { background: var(--parchment-deep); }

@media print {
  .admin-sidebar, .brand-nav, .brand-footer, .vastu-toolbar, .no-print { display: none !important; }
  .admin-main { padding: 0 !important; }
  .vastu-canvas-wrap { height: auto !important; border: none; }
}
/* ==========================================================================
   v2 — Home layout, numerology, staff management, analysis workflow
   ========================================================================== */

/* ---------- shared atoms ---------- */
.section-pad { padding: 72px 0; }
.eyebrow { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); font-weight: 600; }

.pill,
.status-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .18rem .6rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  white-space: nowrap;
}
.pill-admin { background: var(--clay); border-color: var(--clay); color: #fff; }
.pill-staff { background: var(--slate); border-color: var(--slate); color: #fff; }
.pill-good  { background: #e8f0e2; border-color: #c2d3b4; color: #3c5230; }
.pill-off   { background: #f1e6e2; border-color: #dcc3ba; color: #7a3925; }

.status-submitted  { background: #f4ecd9; border-color: #e0cfa8; color: #6f5a22; }
.status-in_review  { background: #e6edf3; border-color: #bfd0df; color: #2f465c; }
.status-completed  { background: #e8f0e2; border-color: #c2d3b4; color: #3c5230; }
.status-published   { background: var(--sage); border-color: var(--sage); color: #fff; }

.status-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.filter-pill {
  padding: .3rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink-soft); font-size: .8rem; font-weight: 500;
}
.filter-pill:hover { border-color: var(--brass); color: var(--clay); }
.filter-pill.active { background: var(--ink); border-color: var(--ink); color: var(--parchment); }

.notice-strip {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .85rem 1rem; border-radius: 10px;
  background: var(--parchment-deep); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.4rem;
}
.notice-strip i { color: var(--clay); font-size: 1.05rem; line-height: 1.4; }

.empty-state {
  text-align: center; padding: 48px 20px; border: 1px dashed var(--line);
  border-radius: 14px; background: var(--white); color: var(--ink-soft);
}
.empty-state i { font-size: 2rem; color: var(--brass); display: block; margin-bottom: .6rem; }

.form-section-title {
  font-family: var(--font-display); font-size: 1.05rem; margin: 1.8rem 0 .8rem;
  padding-bottom: .4rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: .5rem;
}
.form-section-title i { color: var(--brass); }

.client-note-block {
  background: var(--parchment-deep); border-left: 3px solid var(--brass);
  padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; white-space: pre-wrap;
  font-size: .92rem; color: var(--ink-soft);
}

.cta-strip {
  margin-top: 48px; padding: 32px; border-radius: 16px;
  background: var(--ink); color: var(--parchment); text-align: center;
}
.cta-strip h3 { color: var(--parchment); margin-bottom: .4rem; }
.cta-strip p { opacity: .8; margin-bottom: 1.2rem; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: .6rem; padding: .35rem 0; font-size: .92rem; }
.feature-list li i { color: var(--sage); margin-top: .2rem; }

/* ---------- home ---------- */
.hero-points { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.hero-points li { display: flex; gap: .65rem; align-items: flex-start; padding: .3rem 0; }
.hero-points i { color: var(--brass); margin-top: .22rem; }
.hero-compass-caption {
  text-align: center; font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); opacity: .7; margin-top: .6rem;
}

.element-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.element-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.element-card {
  background: var(--parchment); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 16px; text-align: center; transition: transform var(--med) var(--ease);
}
.element-card:hover { transform: translateY(-4px); }
.element-icon {
  width: 46px; height: 46px; margin: 0 auto .7rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.25rem; color: #fff;
}
.element-card h4 { font-size: 1rem; margin-bottom: .2rem; }
.element-card p { font-size: .82rem; color: var(--ink-soft); margin: 0; }
.element-agni    .element-icon, .element-fire  .element-icon { background: #b4472a; }
.element-jal     .element-icon, .element-water .element-icon { background: #3f5468; }
.element-vayu    .element-icon, .element-air   .element-icon { background: #7d8b9a; }
.element-prithvi .element-icon, .element-earth .element-icon { background: #7a6234; }
.element-akash   .element-icon, .element-space .element-icon { background: #5c4a6b; }

.process-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.process-step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 20px;
}
.process-step h4 { font-size: 1.02rem; margin: .8rem 0 .3rem; }
.process-step p { font-size: .86rem; color: var(--ink-soft); margin: 0; }
.process-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--parchment-deep);
  display: grid; place-items: center; color: var(--clay); font-size: 1.15rem;
}
.process-step::after {
  content: counter(step); counter-increment: step;
  position: absolute; top: 18px; right: 20px;
  font-family: var(--font-display); font-size: 1.6rem; color: var(--line);
}
.process-track { counter-reset: step; }

.tools-band { padding: 64px 0; }
.tool-card {
  height: 100%; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 22px; transition: box-shadow var(--med) var(--ease), transform var(--med) var(--ease);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(32, 24, 16, .1); }
.tool-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--ink);
  color: var(--brass-light); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1rem;
}
.tool-card h4 { font-size: 1.08rem; margin-bottom: .4rem; }
.tool-card p { font-size: .88rem; color: var(--ink-soft); }
.tool-link { font-weight: 600; font-size: .86rem; display: inline-flex; align-items: center; gap: .35rem; }
.tool-link i { transition: transform var(--fast) var(--ease); }
.tool-link:hover i { transform: translateX(3px); }

.services-band { background: var(--white); border-top: 1px solid var(--line); padding: 64px 0; }

.consultant-band { padding: 64px 0; }
.consultant-strip {
  display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center;
  background: var(--ink); color: var(--parchment); border-radius: 18px; padding: 32px;
}
.consultant-strip h3 { color: var(--parchment); }
.consultant-strip p { opacity: .82; }
.consultant-photo {
  width: 180px; height: 180px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--brass);
}
.consultant-role { color: var(--brass-light); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- about ---------- */
.about-intro { display: grid; grid-template-columns: 320px 1fr; gap: 42px; align-items: start; }
.about-portrait { margin: 0; }
.about-portrait img {
  width: 100%; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(32, 24, 16, .14);
}
.about-portrait figcaption { margin-top: .7rem; text-align: center; font-size: .85rem; color: var(--ink-soft); }
.about-facts { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .55rem; }
.about-facts li { display: flex; gap: .6rem; align-items: flex-start; }
.about-facts i { color: var(--brass); margin-top: .22rem; }

.method-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.method-step {
  display: grid; grid-template-columns: 42px 42px 1fr; gap: 16px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.method-index { font-family: var(--font-display); font-size: 1.3rem; color: var(--line); }
.method-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--parchment-deep); color: var(--clay); display: grid; place-items: center; }
.method-step h4 { font-size: 1rem; margin: 0 0 .15rem; }
.method-step p { margin: 0; font-size: .86rem; color: var(--ink-soft); }

/* ---------- nav / footer ---------- */
.brand-dropdown { border: 1px solid var(--line); border-radius: 12px; padding: .4rem; box-shadow: 0 16px 34px rgba(74,26,28,.12); }
.brand-dropdown .dropdown-item { border-radius: 8px; font-size: .9rem; display: flex; gap: .55rem; align-items: center; }
.brand-dropdown .dropdown-item i { color: var(--brass); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-links a { color: inherit; opacity: .78; font-size: .88rem; display: inline-flex; gap: .45rem; align-items: center; }
.footer-links a:hover { opacity: 1; color: var(--brass-light); }

/* ---------- admin shell ---------- */
.admin-sidebar-role { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; padding: 0 1rem .6rem; }
.admin-sidebar-exit { margin-top: auto; padding: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.stat-card i { font-size: 1.35rem; color: var(--brass); }
.stat-card.urgent { border-color: var(--clay); box-shadow: inset 0 0 0 1px rgba(151,22,26,.18); }
.stat-card.urgent i { color: var(--clay); }

/* ---------- permissions / staff ---------- */
.permission-groups { display: grid; gap: 18px; }
.perm-group {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--white);
}
.perm-group > h5 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: .8rem; }
.perm-group .form-check { margin-bottom: .35rem; }
.perm-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.perm-chip {
  font-size: .7rem; padding: .15rem .55rem; border-radius: 6px;
  background: var(--parchment-deep); border: 1px solid var(--line); color: var(--ink-soft);
}
.preset-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.preset-card {
  border: 1px solid var(--line); background: var(--white); border-radius: 10px;
  padding: .5rem .9rem; font-size: .85rem; text-align: left; color: var(--ink);
}
.preset-card:hover { border-color: var(--brass); }
.preset-card strong { display: block; font-size: .88rem; }
.preset-card span { font-size: .75rem; color: var(--ink-soft); }

/* ---------- attachments ---------- */
.attachment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.attachment-item {
  position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--white);
}
.attachment-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.attachment-doc { height: 110px; display: grid; place-items: center; font-size: 1.8rem; color: var(--slate); background: var(--parchment-deep); }
.attachment-name { display: block; padding: .4rem .55rem; font-size: .74rem; color: var(--ink-soft); word-break: break-all; }
.attachment-remove {
  position: absolute; top: 6px; right: 6px; border: none; border-radius: 6px;
  background: rgba(74,26,28,.75); color: #fff; width: 26px; height: 26px; line-height: 1;
}
.plan-thumb { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- analysis / report ---------- */
.zone-grid { display: grid; gap: 10px; }
.zone-row {
  display: grid; grid-template-columns: 70px 1fr 200px; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px;
  padding: 12px 14px; background: var(--white);
}
.zone-row.element-fire   { border-left-color: #b4472a; }
.zone-row.element-water  { border-left-color: #3f5468; }
.zone-row.element-air    { border-left-color: #7d8b9a; }
.zone-row.element-earth  { border-left-color: #7a6234; }
.zone-row.element-space  { border-left-color: #5c4a6b; }
.zone-head { display: flex; flex-direction: column; }
.zone-code { font-family: var(--font-display); font-size: 1.05rem; }
.zone-effect { font-size: .82rem; color: var(--ink-soft); }
.zone-element { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); }
.zone-inputs { display: grid; gap: .4rem; }
.zone-score { max-width: 110px; }

.zone-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.zone-result {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--white);
}
.zone-result.low  { border-left: 4px solid #b4472a; }
.zone-result.mid  { border-left: 4px solid var(--brass); }
.zone-result.high { border-left: 4px solid var(--sage); }
.zone-score-badge {
  float: right; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-soft);
}

.sticky-panel { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 20px; }

.record-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.record-meta li { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; border-bottom: 1px dashed var(--line); padding-bottom: .35rem; }
.record-meta li span:first-child { color: var(--ink-soft); }
.record-meta.two-col { grid-template-columns: 1fr 1fr; gap: .5rem 1.6rem; }

.submission-card {
  display: block; border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  padding: 20px 22px; margin-bottom: 14px; color: inherit;
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.submission-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(74,26,28,.08); color: inherit; }
.submission-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--ink-soft); margin-top: .4rem; }
.submission-link { font-weight: 600; font-size: .85rem; }

.track { display: flex; gap: 0; margin: 1.4rem 0 2rem; }
.track-step { flex: 1; text-align: center; position: relative; }
.track-step::before {
  content: ""; position: absolute; top: 11px; left: 0; right: 0; height: 2px; background: var(--line); z-index: 0;
}
.track-step:first-child::before { left: 50%; }
.track-step:last-child::before { right: 50%; }
.track-dot {
  position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; margin: 0 auto .45rem;
  background: var(--white); border: 2px solid var(--line); display: grid; place-items: center;
  font-size: .7rem; color: var(--line);
}
.track-step.done .track-dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.track-step.current .track-dot { background: var(--brass); border-color: var(--brass); color: #fff; }
.track-label { font-size: .76rem; color: var(--ink-soft); }
.track-step.current .track-label { color: var(--ink); font-weight: 600; }

.score-block { text-align: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--parchment-deep); }
.score-value { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--clay); }
.score-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.summary-block { background: var(--parchment-deep); border-radius: 12px; padding: 18px 20px; font-size: .95rem; }
.analysis-prose { white-space: pre-wrap; line-height: 1.75; }
.recommendations { white-space: pre-wrap; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: 0 12px 12px 0; padding: 18px 20px; }

/* ---------- numerology ---------- */
.calc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px; box-shadow: 0 14px 34px rgba(74,26,28,.07);
}
.calc-form label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .3rem; }
.calc-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.calc-steps li { display: flex; gap: .6rem; font-size: .9rem; }
.calc-steps i { color: var(--brass); margin-top: .2rem; }
.calc-note { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; }

.loshu-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-width: 380px; margin: 0 auto;
}
.loshu-cell {
  aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  padding: 8px; text-align: center;
}
.loshu-cell.empty { background: repeating-linear-gradient(45deg, var(--parchment), var(--parchment) 6px, var(--parchment-deep) 6px, var(--parchment-deep) 12px); }
.loshu-dir { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.loshu-value { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; word-break: break-all; }
.loshu-value.missing { color: var(--line); }
.loshu-count { font-size: .68rem; color: var(--clay); font-weight: 600; }
.loshu-planet { font-size: .66rem; color: var(--ink-soft); }
.num-1 { color: #3f5468; } .num-2 { color: #8a7fa8; } .num-3 { color: #c89c12; }
.num-4 { color: #7d8b9a; } .num-5 { color: #5c6b4a; } .num-6 { color: #b06a8a; }
.num-7 { color: #6f7d8c; } .num-8 { color: #4a3f36; } .num-9 { color: #b4472a; }

.result-header { text-align: center; margin-bottom: 2rem; }
.headline-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1rem; }
.num-chip {
  border: 1px solid var(--line); background: var(--white); border-radius: 10px;
  padding: .5rem .9rem; font-size: .82rem; color: var(--ink-soft);
}
.num-chip strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }

.core-card { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 18px; height: 100%; }
.core-number { font-family: var(--font-display); font-size: 2rem; color: var(--clay); line-height: 1; }
.master-note { font-size: .74rem; color: var(--brass); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.plane-card { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 16px 18px; height: 100%; }
.plane-complete { border-left: 4px solid var(--sage); }
.plane-partial  { border-left: 4px solid var(--brass); }
.plane-empty    { border-left: 4px solid #b4472a; }
.plane-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.plane-head h5 { margin: 0; font-size: 1rem; }
.plane-numbers { font-family: var(--font-display); font-size: .95rem; color: var(--ink-soft); letter-spacing: .1em; }
.plane-state { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); }

.missing-card { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 16px 18px; height: 100%; }
.missing-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.missing-number { font-family: var(--font-display); font-size: 1.6rem; color: #b4472a; }
.remedy-line { font-size: .85rem; background: var(--parchment-deep); border-radius: 8px; padding: .5rem .7rem; margin-top: .6rem; }
.remedy-line i { color: var(--sage); margin-right: .35rem; }

.number-detail { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 16px 18px; height: 100%; }
.number-badge {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.15rem; background: var(--parchment-deep); color: var(--ink);
}
.repeat-count { font-size: .72rem; color: var(--clay); font-weight: 600; }

.kua-card { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 14px 16px; height: 100%; }
.kua-good { border-left: 4px solid var(--sage); }
.kua-bad  { border-left: 4px solid #b4472a; }
.kua-direction { font-family: var(--font-display); font-size: 1.25rem; }
.lucky-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }

.verdict-card {
  display: flex; gap: 1rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--white);
}
.verdict-icon { font-size: 1.6rem; }
.verdict-good { border-left: 4px solid var(--sage); } .verdict-good .verdict-icon { color: var(--sage); }
.verdict-ok   { border-left: 4px solid var(--brass); } .verdict-ok .verdict-icon { color: var(--brass); }
.verdict-bad  { border-left: 4px solid #b4472a; } .verdict-bad .verdict-icon { color: #b4472a; }

.letter-strip { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.small-strip .letter-chip { font-size: .72rem; padding: .1rem .4rem; }
.letter-chip {
  border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  padding: .2rem .5rem; font-size: .8rem; font-family: var(--font-body);
}
.letter-chip b { color: var(--clay); }
.root-badge {
  margin-left: .4rem; background: var(--ink); color: var(--parchment);
  border-radius: 6px; padding: .2rem .55rem; font-family: var(--font-display);
}

.cycle-row, .phase-row {
  display: grid; grid-template-columns: 1fr 60px 2fr; gap: 14px; align-items: center;
  border-bottom: 1px solid var(--line); padding: .7rem 0;
}
.phase-number { font-family: var(--font-display); font-size: 1.4rem; color: var(--clay); text-align: center; }
.phase-row.challenge .phase-number { color: var(--slate); }
.mini-numbers { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .element-row { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; }
  .consultant-strip { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .zone-row { grid-template-columns: 1fr; }
  .zone-score { max-width: none; }
}
@media (max-width: 575px) {
  .element-row { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; }
  .cycle-row, .phase-row { grid-template-columns: 1fr; text-align: left; }
  .record-meta.two-col { grid-template-columns: 1fr; }
  .track-label { font-size: .65rem; }
}
