/* public/style.css - Taoist Astrology & Bio-Energetics */

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.7);
  --border-color: rgba(148, 163, 184, 0.2);
  --border-focus: #f59e0b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-gold: #fbbf24;
  --accent-crimson: #ef4444;
  --accent-jade: #10b981;
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;

  --wuxing-wood: #10b981;
  --wuxing-fire: #ef4444;
  --wuxing-earth: #f59e0b;
  --wuxing-metal: #94a3b8;
  --wuxing-water: #3b82f6;

  --font-serif: 'Cinzel', 'Noto Serif SC', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.theme-light {
  --bg-primary: #fdfbf7;
  --bg-secondary: #f4efe6;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-color: rgba(217, 119, 6, 0.25);
  --border-focus: #d97706;
  --text-primary: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #854d0e;
  --shadow: 0 10px 25px -5px rgba(180, 83, 9, 0.1);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.app-header {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-symbol {
  font-size: 2.2rem;
  color: var(--accent-gold);
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
  animation: rotateSlow 60s linear infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.cn-title {
  color: var(--accent-gold);
  font-weight: 900;
  margin-left: 0.5rem;
}

.tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
}

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Container */
.main-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.card-header h2, .card h3 {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  font-size: 1.25rem;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

input, select {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, select:focus {
  border-color: var(--border-focus);
}

.badge-preview {
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.4rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.form-action {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  text-align: right;
}

/* Loading state */
.loading-state {
  text-align: center;
  padding: 3rem 1rem;
}

.spinner-yin-yang {
  font-size: 3.5rem;
  color: var(--accent-gold);
  animation: rotateSlow 2s linear infinite;
  display: inline-block;
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

/* Summary Card */
.summary-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.identity-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.identity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-gold { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4); }
.tag-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.4); }
.tag-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.tag-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }

.summary-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.star-pill {
  background: rgba(15, 23, 42, 0.6);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.star-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Tabs Navigation */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
  box-shadow: inset 0 -2px 0 var(--accent-gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.chart-header-tip {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   AUTHENTIC 4x4 ZI WEI DOU SHU MATRIX GRID
   12 Palaces on Perimeter, Central Hall in the Middle (2x2)
   ========================================================================== */
.astrolabe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(200px, auto));
  gap: 10px;
  margin: 0 auto;
}

.palace-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.palace-cell:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.palace-cell.highlight-destiny {
  border: 2px solid var(--accent-gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(30, 41, 59, 0.7));
}

.palace-cell.highlight-body {
  border: 2px solid var(--accent-cyan);
}

.palace-cell.highlight-health {
  border: 2px solid var(--accent-crimson);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(30, 41, 59, 0.7));
}

.palace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.4rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.3rem;
}

.palace-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-gold);
}

.palace-badge-pill {
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-destiny { background: var(--accent-gold); color: #000; }
.badge-body { background: var(--accent-cyan); color: #000; }
.badge-health { background: var(--accent-crimson); color: #fff; }

.palace-ganzhi {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.palace-stars-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.4rem 0;
}

.star-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  gap: 4px;
}
}

.star-name {
  font-weight: 600;
}

.star-wood { color: var(--wuxing-wood); }
.star-fire { color: var(--wuxing-fire); }
.star-earth { color: var(--wuxing-earth); }
.star-metal { color: var(--wuxing-metal); }
.star-water { color: var(--wuxing-water); }

.brightness-badge {
  font-size: 0.68rem;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.badge-radiant { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.badge-bright { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-gain { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.badge-benefit { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-neutral { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.badge-dim { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.badge-trapped { background: rgba(239, 68, 68, 0.3); color: #ef4444; font-weight: 700; }

.palace-minors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 0.3rem;
}

.minor-pill {
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 3px;
}

.minor-bad { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.minor-good { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.sihua-tag {
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  margin-left: 4px;
}

.sihua-lu { background: #10b981; color: #fff; }
.sihua-quan { background: #a855f7; color: #fff; }
.sihua-ke { background: #06b6d4; color: #fff; }
.sihua-ji { background: #ef4444; color: #fff; }

.palace-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-color);
  padding-top: 0.3rem;
  margin-top: 0.2rem;
}

/* Central Hall (occupies grid columns 2 & 3, rows 2 & 3) */
.central-hall {
  grid-column: 2 / span 2;
  grid-row: 2 / span 2;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.central-yin-yang {
  font-size: 3rem;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.central-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.central-bureau {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.central-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
  font-size: 0.8rem;
  text-align: left;
}

.stat-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

/* TAB 2: HEALTH & BIO-ENERGETICS */
.health-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.wuxing-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.wuxing-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.wuxing-label {
  width: 90px;
  font-weight: 600;
}

.wuxing-progress-bg {
  flex-grow: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.wuxing-progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

.wuxing-val {
  width: 45px;
  text-align: right;
  font-weight: 700;
}

.wuxing-summary-box {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  line-height: 1.6;
}

.organs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.organ-card {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  padding: 0.85rem;
  border-left: 4px solid var(--accent-gold);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.organ-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.organ-priority {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.organ-name {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.organ-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.afflictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card-warning {
  border-left: 4px solid var(--accent-crimson);
}

.card-info {
  border-left: 4px solid var(--accent-cyan);
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.affliction-item {
  background: rgba(15, 23, 42, 0.4);
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
}

.affliction-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

.affliction-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.affliction-remedy {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--accent-jade);
}

.prescriptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.prescription-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
}

.prescription-box h4 {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.prescription-focus {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.prescription-instruction {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Styled Table */
.table-responsive {
  overflow-x: auto;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.styled-table th, .styled-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.styled-table th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--accent-gold);
  font-weight: 600;
}

.elem-pill {
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.elem-wood { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.elem-fire { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.elem-earth { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.elem-metal { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.elem-water { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }

/* TAB 3: LIFE ASPECTS */
.aspects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.25rem;
}

.aspect-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  transition: transform 0.2s;
}

.aspect-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
}

.aspect-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
}

.aspect-header h4 {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  font-size: 1rem;
}

.aspect-stars {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.aspect-reading {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* TAB 4: TEMPORAL CYCLES */
.cycles-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cycle-box {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
}

.timeline-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.timeline-decade-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.timeline-decade-item.active {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
}

.timeline-age {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.timeline-palace {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* TAB 5: JUNGIAN SYNTHESIS */
.jungian-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.jungian-box {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  padding: 1.25rem;
  border-left: 3px solid var(--accent-purple);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.jungian-box h4 {
  font-family: var(--font-serif);
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.jungian-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-gold);
  border-radius: 12px;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  z-index: 10;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-family: var(--font-serif);
  color: var(--accent-gold);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3rem;
}

/* Print Styles */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .app-header, .form-card, .tabs-nav, .btn-primary, .btn-secondary, .btn-icon, .chart-header-tip {
    display: none !important;
  }
  .tab-content {
    display: block !important;
    page-break-after: always;
  }
  .card, .palace-cell, .central-hall {
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .palace-name, .identity-name, .card h3 {
    color: #000 !important;
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .astrolabe-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .central-hall {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* ==========================================================================
   YEARLY FORECAST (LIU NIAN) STYLES
   ========================================================================== */
.year-controls-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.year-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-year {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-year.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.custom-year-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.yearly-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(30, 41, 59, 0.8));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.yearly-banner-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.yearly-banner-sub {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

.yearly-host-badge {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.yearly-mutagens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.yearly-mutagen-card {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--border-color);
}

.yearly-mutagen-card.mut-lu { border-top-color: #10b981; }
.yearly-mutagen-card.mut-quan { border-top-color: #a855f7; }
.yearly-mutagen-card.mut-ke { border-top-color: #06b6d4; }
.yearly-mutagen-card.mut-ji { border-top-color: #ef4444; background: rgba(239, 68, 68, 0.05); }

.yearly-mutagen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.yearly-mutagen-title {
  font-weight: 700;
  font-size: 0.92rem;
}

.yearly-mutagen-card.mut-lu .yearly-mutagen-title { color: #10b981; }
.yearly-mutagen-card.mut-quan .yearly-mutagen-title { color: #c084fc; }
.yearly-mutagen-card.mut-ke .yearly-mutagen-title { color: #22d3ee; }
.yearly-mutagen-card.mut-ji .yearly-mutagen-title { color: #ef4444; }

.yearly-mutagen-target {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.yearly-mutagen-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.yearly-domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.yearly-domain-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}

.yearly-domain-card h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}

.yearly-domain-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.yearly-advice-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  padding: 1.25rem;
}

.yearly-advice-card h4 {
  font-family: var(--font-serif);
  color: var(--accent-purple);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.yearly-advice-card p {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* =========================================================================
   DIREZIOLOGIA TERAPEUTICA & NOVE STELLE (Sherrill & Chu Integration)
   ========================================================================= */

.pathology-chu-box {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(251, 191, 36, 0.08);
  border-left: 3px solid #fbbf24;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #fef08a;
  line-height: 1.5;
}

.directionology-card {
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  margin-top: 1.5rem;
}

.directionology-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.dir-stat-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dir-stat-box.highlight-tianyi {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.dir-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.dir-stat-val {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.dir-stat-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.sleeping-advice-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  padding: 1.15rem;
  margin: 1.25rem 0;
}

.sleeping-icon {
  font-size: 2rem;
  line-height: 1;
}

.sleeping-text h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent-emerald);
  margin-bottom: 0.35rem;
}

.sleeping-text p {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.dir-card {
  border-radius: 8px;
  padding: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dir-card:hover {
  transform: translateY(-2px);
}

.dir-card.dir-auspicious {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.dir-card.dir-inauspicious {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.dir-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.dir-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.dir-auspicious .dir-badge {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.dir-inauspicious .dir-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.dir-compass-point {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--accent-gold);
}

.dir-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.dir-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* =========================================================================
   CANALI STRAORDINARI (Ba Qi Mai)
   ========================================================================= */

.meridians-card {
  border: 1px solid rgba(6, 182, 212, 0.3);
  margin-top: 1.5rem;
}

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

.meridian-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meridian-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.meridian-header h4 {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--accent-cyan);
}

.meridian-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-radius: 4px;
  white-space: nowrap;
}

.meridian-trajectory, .meridian-role {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.meridian-exercise {
  margin-top: auto;
  font-size: 0.82rem;
  padding: 0.5rem 0.65rem;
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid var(--accent-emerald);
  border-radius: 4px;
  color: #a7f3d0;
  line-height: 1.45;
}

/* Canale Costituzionale Prioritario */
.constitutional-meridian-box {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.const-meridian-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(6, 182, 212, 0.25);
  color: #22d3ee;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.constitutional-meridian-box h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}

.const-exercise {
  margin-top: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: rgba(16, 185, 129, 0.12);
  border-left: 3px solid var(--accent-emerald);
  border-radius: 4px;
  font-size: 0.85rem;
  color: #a7f3d0;
  line-height: 1.5;
}

.meridian-card.highlight-recommended {
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.aspect-reading {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.4rem;
}

.aspect-reading strong {
  color: var(--accent-gold);
}

/* Connection Banner */
.connection-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid var(--accent-crimson);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  animation: fadeInBanner 0.3s ease-out;
}

.connection-banner.hidden {
  display: none !important;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.banner-text strong {
  color: #fca5a5;
  font-size: 1rem;
}

.banner-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.banner-text code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fecaca;
  font-family: monospace;
}

.btn-banner-retry {
  background: var(--accent-crimson);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-banner-retry:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-gold);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s ease-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-item.error {
  border-color: var(--accent-crimson);
  background: rgba(30, 15, 15, 0.96);
}

.toast-item.success {
  border-color: var(--accent-emerald);
  background: rgba(15, 30, 20, 0.96);
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInBanner {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* =======================================================
   ARCHIVIO PROFILI CONDIVISO (MULTI-DISPOSITIVO)
   ======================================================= */

.form-group-full {
  grid-column: 1 / -1;
}

.form-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-action-bar .btn-primary {
  flex: 2;
  min-width: 240px;
}

.btn-archive-save {
  flex: 1;
  min-width: 170px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
  border: 1.5px solid var(--accent-emerald);
  color: #a7f3d0;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-archive-save:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.55));
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-archive-clear {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-archive-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.editing-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid var(--accent-cyan);
  color: #22d3ee;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.archive-card {
  margin-bottom: 1.75rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.archive-title-block h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.sync-pill {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.archive-subtitle {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.archive-subtitle code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-gold);
  font-size: 0.8rem;
}

.lan-access-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 2px 8px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 4px;
  color: #d8b4fe;
  font-size: 0.8rem;
}

.archive-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.archive-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.archive-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.archive-search-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.7;
}

.archive-search-wrap input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-primary);
  font-size: 0.88rem;
}

.archive-search-wrap input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.archive-stats {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.archive-stats strong {
  color: var(--accent-gold);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.9rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.profile-item-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  transition: all 0.2s ease;
}

.profile-item-card:hover {
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.profile-item-card.active-profile {
  border: 1.5px solid var(--accent-gold);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(15, 23, 42, 0.85));
}

.profile-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.profile-card-name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--accent-gold);
  word-break: break-word;
}

.profile-gender-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.gender-male {
  background: rgba(6, 182, 212, 0.18);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.gender-female {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.profile-card-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.profile-card-notes {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid rgba(251, 191, 36, 0.4);
  padding-left: 0.5rem;
  margin-top: 0.15rem;
}

.profile-card-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border-color);
}

.btn-prof-load {
  flex: 1;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: var(--accent-gold);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-prof-load:hover {
  background: var(--accent-gold);
  color: #0f172a;
}

.btn-prof-edit {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #67e8f9;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-prof-edit:hover {
  background: rgba(6, 182, 212, 0.3);
}

.btn-prof-delete {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-prof-delete:hover {
  background: var(--accent-crimson);
  color: #ffffff;
}

.archive-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
}
