/* ============================================================
   horys-web.css — Customer-facing web channel
   Shared design system for: signin · chat · billing · settings
   Direction: "NorthGarden editorial × backoffice teal"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&family=Trirong:ital,wght@0,300;0,400;0,500;0,600;1,400&family=IBM+Plex+Sans+Thai+Looped:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* ──────────────────────────────────────────────────────────
     Editorial Paper × Thai astrology palette (revamp 2026-05-20)
     Paper-cream surfaces · deep-teal ink · gold-leaf accent ·
     aubergine highlight · crimson danger. Sizes/structure
     unchanged — only color + font tokens swapped.
     ────────────────────────────────────────────────────────── */

  /* Surfaces — warm cream */
  --paper:       #FAF5EB;
  --paper-2:     #F5E9DC;
  --paper-3:     #ECD9C2;

  /* Ink — deep teal (replaces pure black) */
  --ink:         #1E4F4D;
  --soot:        #3D5C5A;
  --gray-1:      #7A8E8D;
  --gray-2:      #B4B2A9;

  /* Hairlines — derived from ink */
  --rule:        rgba(30,79,77,0.18);
  --rule-strong: rgba(30,79,77,0.30);
  --rule-dotted: rgba(30,79,77,0.40);

  /* Brand teal — kept for backward compat (matches new --ink closely) */
  --teal:        #2C5F5D;
  --teal-dark:   #1F4543;
  --teal-soft:   rgba(44,95,93,0.10);

  /* Accents — new palette */
  --gold:        #C9A961;
  --gold-soft:   #E8D7A9;
  --aubergine:   #3E2A4F;

  /* Status */
  --danger:      #5C1A1B;   /* crimson — replaces brick #8B2E1F */

  /* Type — Editorial pairing */
  --font-display:      'Cormorant Garamond', 'Trirong', 'Times New Roman', serif;
  --font-display-thai: 'Trirong', 'Cormorant Garamond', serif;
  --font-body:         'IBM Plex Sans Thai Looped', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:         'IBM Plex Mono', 'JetBrains Mono', 'Courier New', monospace;

  /* Rhythm */
  --gap-1: 8px;
  --gap-2: 16px;
  --gap-3: 24px;
  --gap-4: 32px;
  --gap-5: 48px;
  --gap-6: 64px;
  --gap-7: 96px;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
input, textarea, select { font-family: inherit; color: inherit; }

/* ─── Top nav — shared across every page ─── */
.web-nav {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  padding: 22px 36px;
  border-bottom: 0.5px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.web-nav .mark {
  font-family: var(--font-display);
  font-size: 22px; line-height: 1;
  letter-spacing: -0.02em; font-weight: 400;
  display: inline-flex; align-items: baseline;
}
.web-nav .mark .italic { font-style: italic; color: var(--teal); }
.web-nav .mid {
  display: flex; justify-content: center; gap: 36px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.web-nav .mid a { color: var(--ink); padding-bottom: 3px; border-bottom: 0.5px solid transparent; transition: border-color 0.15s, color 0.15s; }
.web-nav .mid a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.web-nav .mid a.active { border-bottom-color: var(--ink); }
.web-nav .mid a.active:hover { border-bottom-color: var(--teal); }
.web-nav .right {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.web-nav .right .meta {
  color: var(--gray-1); margin-right: 14px;
}
.web-nav .right .signout {
  border-bottom: 0.5px solid var(--ink);
  padding-bottom: 3px;
  cursor: pointer;
}
.web-nav .right .signout:hover { color: var(--teal); border-color: var(--teal); }

/* Mobile nav */
@media (max-width: 920px) {
  .web-nav { grid-template-columns: 1fr auto; padding: 18px 22px; }
  .web-nav .mid { display: none; }
}

/* ─── Folio header — used by signin & other "intro" pages ─── */
.folio {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gray-1);
}
.folio b { color: var(--ink); font-weight: 500; }

/* ─── Typography helpers ─── */
.display-xl {
  font-family: var(--font-display);
  font-size: 64px; line-height: 0.96; letter-spacing: -0.03em;
  font-weight: 400; margin: 0;
}
.display-lg {
  font-family: var(--font-display);
  font-size: 48px; line-height: 1; letter-spacing: -0.025em;
  font-weight: 400; margin: 0;
}
.display-md {
  font-family: var(--font-display);
  font-size: 32px; line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 400; margin: 0;
}
.italic-accent { font-style: italic; color: var(--teal); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray-1);
}
.eyebrow b { color: var(--ink); font-weight: 500; }
.eyebrow.teal { color: var(--teal); }

.caption {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray-1);
}

/* ─── Buttons (text-link style, NOT box buttons) ─── */
.text-link {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 0.5px solid var(--ink);
  padding-bottom: 4px;
  cursor: pointer;
  display: inline-block;
  transition: color 0.15s, border-color 0.15s;
}
.text-link:hover { color: var(--teal); border-color: var(--teal); }
.text-link.muted { color: var(--gray-1); border-color: var(--gray-1); }
.text-link.muted:hover { color: var(--ink); border-color: var(--ink); }
.text-link .arrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--teal);
  margin-left: 6px;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  background: transparent;
  border: 0.5px solid var(--ink);
  color: var(--ink);
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ─── Single-field input (underline-only) ─── */
.field { display: flex; flex-direction: column; }
.field-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gray-1);
  margin-bottom: 10px;
}
.field-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0 12px;
  font-size: 18px;
  color: var(--ink);
  outline: none;
}
.field-input::placeholder { color: var(--gray-2); font-style: italic; }
.field-input:focus { border-bottom-color: var(--teal); }

/* ─── Divider ─── */
.divider-or {
  display: flex; align-items: center; gap: 16px;
  margin: 36px 0 24px;
}
.divider-or .line {
  flex: 1; height: 0;
  border-top: 0.5px solid var(--rule-strong);
}
.divider-or .label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray-1);
}

/* ─── Card surfaces ─── */
.surface {
  background: var(--paper-2);
  border: 0.5px solid var(--rule);
  padding: 24px;
}
.surface.dark {
  background: var(--paper-3);
}

/* ─── Tables ─── */
table.editorial {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}
table.editorial th {
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray-1);
  padding: 12px 8px;
  border-bottom: 0.5px solid var(--rule-strong);
}
table.editorial th.right { text-align: right; }
table.editorial td {
  padding: 14px 8px;
  border-bottom: 0.5px solid var(--rule);
  color: var(--ink);
}
table.editorial td.right { text-align: right; }
table.editorial td.muted { color: var(--gray-1); }
table.editorial td.teal { color: var(--teal); }
table.editorial tr:hover td { background: rgba(10,10,10,0.015); }

/* ─── Thai birth chart (ดวงกำเนิด) — square 4×4 ─── */
.chart-square {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  border: 0.5px solid var(--ink);
  background: var(--paper-2);
  aspect-ratio: 1;
}
.chart-square > div {
  border-right: 0.5px solid var(--ink);
  border-bottom: 0.5px solid var(--ink);
  padding: 6px;
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
}
.chart-square > div:nth-child(4n) { border-right: 0; }
.chart-square > div:nth-last-child(-n+4) { border-bottom: 0; }
.chart-square .house-no {
  font-family: var(--font-mono);
  font-size: 8px; color: var(--gray-1);
  letter-spacing: 0.1em;
}
.chart-square .planet {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  align-self: flex-end;
}
.chart-square .planet.teal { color: var(--teal); }
.chart-square .lagna-mark {
  position: absolute; top: 4px; right: 4px;
  font-family: var(--font-mono);
  font-size: 7px; color: var(--teal);
  letter-spacing: 0.1em;
}
/* Center 2×2 left empty for personal labels */
.chart-square .center { background: var(--paper); }

/* ─── Status pills (consistent with backoffice) ─── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; white-space: nowrap;
}
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--paper); flex-shrink: 0; }
.pill.s-active   { background: var(--teal); color: var(--paper); }
.pill.s-vip      { background: var(--ink); color: var(--paper); border: 1px solid var(--teal); }
.pill.s-vip .dot { background: var(--teal); }
.pill.s-paid     { background: var(--teal); color: var(--paper); }
.pill.s-pending  { background: transparent; color: var(--ink); border: 0.5px solid var(--ink); }
.pill.s-pending .dot { background: var(--ink); }

/* ─── Footer ─── */
.web-foot {
  margin-top: auto;
  padding: 32px 36px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  border-top: 0.5px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray-1);
}
.web-foot .center { text-align: center; }
.web-foot .right { text-align: right; }
.web-foot a { color: var(--gray-1); }
.web-foot a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .web-foot { grid-template-columns: 1fr; text-align: center; }
  .web-foot .right { text-align: center; }
}

/* ─── Utility ─── */
.hidden { display: none !important; }
.flex { display: flex; }
.grow { flex: 1; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.color-teal { color: var(--teal); }
.color-muted { color: var(--gray-1); }
</content>
</invoke>