/* ==========================================================================
   Jyotisha Interpretations & Astrological Wiki - Design System
   Cohesive styling with https://vedic-birth-chart.vuzoo.de + Obsidian Table UI
   ========================================================================== */

:root {
  --bg-main: #fef3e2;
  --card-bg: #fffcf6;
  --card-border: #fab12f;
  --accent-primary: #fa812f;
  --accent-strong: #dd0303;
  --accent-gold: #fab12f;
  --accent-gold-subtle: rgba(250, 177, 47, 0.16);
  --text-main: #460303;
  --text-muted: #782e2e;
  --header-bg: #460303;
  --shadow-card: 0 4px 16px rgba(250, 177, 47, 0.25);
  --shadow-soft: 0 2px 8px rgba(70, 3, 3, 0.08);
  --font-family: 'Jost', 'Futura Lt BT', 'Futura', 'Avenir', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Obsidian Table Theme Tokens */
  --obs-table-border: #dfbe86;
  --obs-table-border-strong: #cfa052;
  --obs-table-header-bg: #f5e2be;
  --obs-table-header-text: #460303;
  --obs-table-row-alt: #fff9ee;
  --obs-table-row-first-col: #fbf0d9;
  --obs-table-hover-bg: #fdefd0;
}

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

html {
  overflow-x: clip;
  max-width: 100vw;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  padding: 14px 16px;
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Top Header Banner (Clickable -> Root Homepage http://localhost:2200)
   ========================================================================== */
header.app-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: var(--header-bg);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(250, 177, 47, 0.35);
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

header.app-header:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px rgba(250, 129, 47, 0.45);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.brand-symbol {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fa812f, #fab12f);
  color: #460303;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  border: 1.5px solid #fab12f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-text h1 {
  font-family: var(--font-family);
  font-size: 1.85rem;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  font-weight: 800;
  line-height: 1.05;
}

.brand-text .brand-sub {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fef3e2;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-synergy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254, 240, 213, 0.95);
  border: 1.5px solid var(--accent-gold);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-synergy-badge:hover {
  background: var(--accent-gold);
  color: #460303;
}

.header-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 5px 13px;
  border-radius: 6px;
  background: rgba(254, 240, 213, 0.95);
  border: 1.5px solid var(--accent-gold);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.header-admin-btn:hover {
  background: var(--accent-gold);
}

.header-admin-btn.logged-in {
  background: #166534;
  color: #fef3e2;
  border-color: #fab12f;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 6px var(--accent-strong);
}

/* ==========================================================================
   Navigation Tabs Bar (Top Row of Buttons: About | Blog | Consultation | Contact)
   ========================================================================== */
.main-tabs-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-main);
  padding-top: 6px;
  padding-left: 14px;
  padding-right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 2.5px solid var(--accent-gold);
  box-shadow: 0 4px 12px rgba(70, 3, 3, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}

.main-tabs-bar::-webkit-scrollbar {
  display: none;
}

.main-tab-btn {
  padding: 8px 22px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  border: 1.5px solid var(--accent-gold);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  transition: all 0.2s ease-in-out;
  text-align: center;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.main-tab-btn:hover:not(.active) {
  background: var(--accent-gold);
  color: var(--text-main);
}

.main-tab-btn.active {
  background: var(--accent-primary);
  color: #fef3e2;
  border-color: var(--accent-primary);
  margin-bottom: -2.5px;
  box-shadow: 0 -2px 8px rgba(250, 129, 47, 0.45);
}

/* ==========================================================================
   Main App Container & Wide View for Tables
   ========================================================================== */
.app-container {
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.tab-content-section {
  display: none;
  animation: fadeIn 0.2s ease-out forwards;
}

.tab-content-section.active {
  display: block;
}

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

.wiki-card {
  background: var(--card-bg);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.wiki-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wiki-card-title::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.wiki-card-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* Buttons */
.btn-secondary {
  background: var(--bg-main);
  color: var(--text-main);
  border: 1.5px solid var(--accent-gold);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--accent-gold);
  color: var(--text-main);
}

.btn-primary {
  background: var(--accent-primary);
  color: #fef3e2;
  border: 1.5px solid var(--accent-primary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(250, 129, 47, 0.35);
}

.btn-primary:hover {
  background: #e26e20;
  color: #fff;
}

.btn-danger {
  background: #fff5f5;
  color: #dd0303;
  border: 1.5px solid #dd0303;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: #dd0303;
  color: #fff;
}

/* ==========================================================================
   SIMPLE WHITE WIKIPEDIA PAGE & BULLET HYPERLINK LIST (#blog)
   ========================================================================== */
.blog-top-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.blog-search-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.blog-search-input {
  width: 300px;
  max-width: 100%;
  padding: 7px 12px;
  font-size: 0.86rem;
}

.wiki-search-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #54595d;
  margin-top: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eaecf0;
  padding-bottom: 3px;
}

.wiki-search-section-label:first-child {
  margin-top: 0;
}

.wiki-white-page {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 32px 40px;
  min-height: 68vh;
  color: #202122;
}

@media (max-width: 640px) {
  .wiki-white-page {
    padding: 20px 18px;
  }
}

.wiki-simple-nav {
  margin-bottom: 18px;
  font-size: 0.92rem;
  color: #54595d;
}

.wiki-simple-nav a {
  color: #0645ad;
  text-decoration: none;
}

.wiki-simple-nav a:hover {
  text-decoration: underline;
}

.wiki-bullet-list {
  list-style-type: disc;
  padding-left: 24px;
  margin: 0;
}

.wiki-bullet-list li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #202122;
}

/* Category links (Blue) */
.wiki-bullet-list a,
.wiki-category-link {
  color: #0645ad;
  text-decoration: none;
  font-weight: 500;
}

.wiki-bullet-list a:hover,
.wiki-category-link:hover {
  text-decoration: underline;
}

/* Blogpost page links (Matches dark default text color var(--text-main) / #460303) */
.wiki-article-link {
  color: var(--text-main) !important;
  text-decoration: none;
  font-weight: 600 !important;
}

.wiki-article-link:hover {
  color: var(--text-main) !important;
  text-decoration: underline;
}

/* Rearrange Mode Drag-and-Drop */
.wiki-bullet-list.rearranging {
  list-style: none;
  padding-left: 0;
}

.rearrange-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: #fffcf6;
  border: 1.5px dashed #fab12f;
  border-radius: 6px;
  cursor: grab;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.rearrange-item:active {
  cursor: grabbing;
}

.rearrange-handle {
  color: #fa812f;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: grab;
  line-height: 1;
}

.rearrange-item.dragging {
  opacity: 0.35;
  background: #fff3db;
  border-color: #dd0303;
  transform: scale(0.99);
}

.rearrange-item.drag-over {
  border-top: 3px solid #dd0303;
  background: #fdf3dc;
}

.rearrange-badge {
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f3f4;
  color: #555;
  margin-left: auto;
  font-weight: 700;
}

.cat-action-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s ease;
  line-height: 1.2;
}
.cat-action-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.cat-action-btn.delete {
  color: #991b1b;
  border-color: #fecaca;
  background: #fff5f5;
}
.cat-action-btn.delete:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #7f1d1d;
}

/* Article Danger Zone (Tucked away at the bottom) */
.article-danger-zone {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px dashed rgba(250, 177, 47, 0.6);
}

.article-danger-details {
  font-size: 0.85rem;
  color: #782e2e;
}

.article-danger-summary {
  cursor: pointer;
  color: #a04000;
  font-weight: 600;
  user-select: none;
  outline: none;
}

.article-danger-summary:hover {
  text-decoration: underline;
  color: #dd0303;
}

.article-danger-body {
  margin-top: 10px;
  padding: 14px 16px;
  background: #fff8f8;
  border: 1px solid #ffd0d0;
  border-radius: 6px;
}

.wiki-article-heading {
  font-size: 1.8rem;
  font-weight: 600;
  color: #000000;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 6px;
  margin-bottom: 18px;
  line-height: 1.3;
}

/* ==========================================================================
   OBSIDIAN-STYLE MARKDOWN & TABLE RENDERING ENGINE
   ========================================================================== */
.obsidian-markdown {
  font-family: var(--font-family);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 0.96rem;
}

.obsidian-markdown h1,
.obsidian-markdown h2,
.obsidian-markdown h3,
.obsidian-markdown h4 {
  color: var(--text-main);
  font-weight: 800;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.obsidian-markdown h1 { font-size: 1.65rem; border-bottom: 2px solid var(--accent-gold); padding-bottom: 6px; }
.obsidian-markdown h2 { font-size: 1.35rem; border-bottom: 1px solid rgba(250, 177, 47, 0.5); padding-bottom: 4px; }
.obsidian-markdown h3 { font-size: 1.15rem; }

.obsidian-markdown p {
  margin-bottom: 1em;
}

.obsidian-markdown strong {
  font-weight: 800;
  color: #3a0000;
}

.obsidian-markdown mark {
  background: #ffe082;
  color: #460303;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}

.obsidian-markdown blockquote {
  border-left: 4px solid var(--accent-primary);
  background: rgba(250, 177, 47, 0.12);
  padding: 10px 16px;
  border-radius: 0 6px 6px 0;
  margin: 14px 0;
  color: #5a1818;
}

.obsidian-wikilink {
  color: #0645ad;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.obsidian-wikilink:hover {
  text-decoration: underline;
}

/* Obsidian Table Container & Grid */
.obsidian-table-container {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 22px 0;
  border-radius: 8px;
  border: 1.5px solid var(--obs-table-border-strong);
  background: #fffdf9;
  box-shadow: 0 3px 14px rgba(70, 3, 3, 0.07);
}

.obsidian-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  table-layout: auto;
}

.obsidian-table th,
.obsidian-table td {
  border: 1px solid var(--obs-table-border);
  padding: 11px 13px;
  vertical-align: top;
  text-align: left;
  min-width: 155px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  word-wrap: break-word;
}

/* Top Header Row (Obsidian style) */
.obsidian-table thead th {
  background: var(--obs-table-header-bg);
  color: var(--obs-table-header-text);
  font-weight: 800;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--obs-table-border-strong);
  position: sticky;
  top: 0;
  z-index: 3;
}

/* Corner Cell (D1 -> / D30 v) */
.obsidian-table thead th:first-child {
  background: #edd29f;
  min-width: 165px;
  z-index: 4;
  border-right: 2px solid var(--obs-table-border-strong);
}

/* First Column (Row Headers in Body) */
.obsidian-table tbody td:first-child {
  background: var(--obs-table-row-first-col);
  font-weight: 700;
  color: var(--text-main);
  border-right: 2px solid var(--obs-table-border-strong);
  min-width: 165px;
}

/* Alternating Row Striping */
.obsidian-table tbody tr:nth-child(even) td:not(:first-child) {
  background: var(--obs-table-row-alt);
}

/* Obsidian Interactive Cell Hover */
.obsidian-table tbody td:not(:first-child):hover {
  background: var(--obs-table-hover-bg);
  cursor: pointer;
}

/* ==========================================================================
   Synergy Cell Highlighting (Triggered via ALT+Click from vuzoo.de)
   ========================================================================== */
.synergy-highlight-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(135deg, #460303 0%, #6b0909 100%);
  color: #fef3e2;
  border: 2px solid #fab12f;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(70, 3, 3, 0.25);
}

.synergy-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  color: #fab12f;
}

.obsidian-table td.synergy-cell-highlight {
  background: linear-gradient(135deg, #fff3c4 0%, #ffe08a 100%) !important;
  color: #460303 !important;
  font-weight: 700 !important;
  outline: 3px solid #dd0303 !important;
  outline-offset: -3px;
  box-shadow: 0 0 24px rgba(221, 3, 3, 0.45), inset 0 0 10px rgba(250, 177, 47, 0.5) !important;
  position: relative;
  z-index: 2;
  animation: synergyCellPulse 2.2s infinite ease-in-out;
}

.synergy-cell-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dd0303;
  color: #fef3e2;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

@keyframes synergyCellPulse {
  0%, 100% {
    box-shadow: 0 0 18px rgba(221, 3, 3, 0.4), inset 0 0 8px rgba(250, 177, 47, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(221, 3, 3, 0.75), inset 0 0 14px rgba(250, 177, 47, 0.7);
  }
}

/* ==========================================================================
   OBSIDIAN-STYLE BLOG POST EDITOR STUDIO
   ========================================================================== */
.editor-studio-card {
  background: #fffdf9;
  border: 2.5px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(70, 3, 3, 0.16);
}

.editor-studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid rgba(250, 177, 47, 0.5);
}

.editor-meta-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1.1fr 1.1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 1024px) {
  .editor-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .editor-meta-grid {
    grid-template-columns: 1fr;
  }
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: #f7e6c4;
  border: 1.5px solid var(--obs-table-border-strong);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 8px 10px;
}

.toolbar-btn {
  background: #fffcf6;
  color: var(--text-main);
  border: 1px solid #d5ab61;
  border-radius: 5px;
  padding: 4px 10px;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.toolbar-btn:hover {
  background: var(--accent-gold);
  border-color: var(--accent-primary);
}

.toolbar-btn.active {
  background: var(--accent-primary);
  color: #fef3e2;
  border-color: var(--accent-primary);
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: #cfa052;
  margin: 0 4px;
}

.link-picker-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  min-width: 310px;
  background: #fffcf6;
  border: 2px solid var(--accent-primary);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(70, 3, 3, 0.22);
}

.editor-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--obs-table-border-strong);
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  min-height: 460px;
}

.editor-workspace.mode-source,
.editor-workspace.mode-preview,
.editor-workspace.mode-table-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 960px) {
  .editor-workspace {
    grid-template-columns: 1fr;
  }
}

.editor-pane-source {
  display: flex;
  flex-direction: column;
  border-right: 1.5px solid var(--obs-table-border);
}

.editor-textarea {
  width: 100%;
  flex: 1;
  min-height: 440px;
  padding: 14px;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.55;
  color: #2d0808;
  background: #fffefb;
  resize: vertical;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

.editor-pane-preview {
  padding: 16px;
  background: #fffcf6;
  overflow-x: auto;
  max-height: 680px;
  overflow-y: auto;
}

/* Visual Table Grid Editor */
.editor-pane-table-grid {
  padding: 16px;
  background: #fffcf6;
  overflow-x: auto;
}

.visual-table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
  background: #fdf3de;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--accent-gold);
}

.visual-grid-table {
  width: 100%;
  border-collapse: collapse;
}

.visual-grid-table th,
.visual-grid-table td {
  border: 1px solid #d5ab61;
  padding: 4px;
  min-width: 160px;
  vertical-align: top;
  background: #ffffff;
}

.visual-grid-table thead th {
  background: #f5e2be;
}

.visual-cell-input {
  width: 100%;
  min-height: 68px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 8px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-main);
  background: transparent;
  resize: vertical;
}

.visual-cell-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: #fffdf7;
  box-shadow: 0 0 0 2px rgba(250, 129, 47, 0.2);
}

/* ==========================================================================
   Modal Overlay (Admin Login)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 2, 2, 0.6);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--card-bg);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  padding: 26px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Other Sections (About, Consultation, Contact, Footer)
   ========================================================================== */
.synergy-banner {
  background: linear-gradient(135deg, rgba(250, 177, 47, 0.15), rgba(250, 129, 47, 0.12));
  border: 1.5px dashed var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.synergy-icon {
  font-size: 1.8rem;
  color: var(--accent-primary);
}

.about-grid,
.consultation-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.about-feature-box,
.consult-tier-card {
  background: #ffffff;
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 2px 6px rgba(70, 3, 3, 0.04);
}

.consult-tier-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.consult-tier-card.featured {
  border-color: var(--accent-primary);
}

.tier-features {
  list-style: none;
  margin: 14px 0 20px 0;
}

.tier-features li {
  font-size: 0.88rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-features li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: 900;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: var(--font-family);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
}

textarea.form-control {
  resize: vertical;
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(250, 129, 47, 0.2);
}

footer.app-footer {
  margin-top: 40px;
  border-top: 1.5px solid var(--accent-gold);
  padding: 18px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer.app-footer a {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: none;
}

.footer-admin-sep {
  opacity: 0.35;
  margin: 0 6px;
}

.footer-admin-link {
  font-size: 0.72rem !important;
  color: #9c9284 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  opacity: 0.45;
  transition: opacity 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.footer-admin-link:hover {
  opacity: 0.95;
  text-decoration: underline !important;
  color: var(--accent-primary) !important;
}

.footer-admin-link.logged-in {
  color: #16a34a !important;
  opacity: 0.75;
  font-weight: 600 !important;
}

