/* ===================================================
   DASHBOARD LAYOUT
   =================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: rgba(18, 16, 60, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--hairline);
  padding: 24px 16px;
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
}
.sidebar .brand { padding: 0 12px 24px; }
.sidebar-menu { flex: 1; overflow-y: auto; overflow-x: hidden; }
.sidebar-menu::-webkit-scrollbar { width: 3px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(229,180,55,.25); border-radius: 2px; }
.sidebar-menu::-webkit-scrollbar-track { background: transparent; }
.sidebar-menu li { margin: 2px 0; }
.sidebar-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-muted);
  transition: all .2s ease;
}
.sidebar-menu a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar-menu a.active {
  color: var(--gold);
  background: linear-gradient(90deg, rgba(229,180,55,0.12), transparent);
}
.sidebar-menu .section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-dim); padding: 20px 14px 8px;
}
.sidebar-footer {
  padding-top: 16px; border-top: 1px solid var(--hairline);
}

.app-main { padding: 24px 36px 60px; }
.app-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0 28px;
}
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: rgba(22,22,70,0.5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  width: 100%; max-width: 360px;
  color: var(--text-muted);
  font-size: 13px;
}
.search-box input { background: none; border: 0; flex: 1; outline: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(22,22,70,0.5);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--text-muted);
  position: relative;
  cursor: pointer;
}
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px;
  background: var(--bear);
  border-radius: 50%;
  border: 2px solid var(--void);
}

/* Dashboard widgets */
.welcome-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(229,180,55,0.12));
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}
.welcome-card::before {
  content: '✦ ✧ ✦ ✧ ✦';
  position: absolute; top: 20px; right: 40px;
  font-size: 14px; color: rgba(229,180,55,0.3);
  letter-spacing: 8px;
}
.welcome-card h2 { font-size: 30px; margin-bottom: 6px; }
.natal-chips { display: flex; gap: 10px; margin-top: 16px; }
.natal-chip {
  padding: 6px 12px;
  background: rgba(5,6,28,0.5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 12px;
}
.natal-chip strong { color: var(--gold); margin-right: 6px; }

.widget {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
}
.widget-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.widget-head h3 {
  font-family: var(--ff-display);
  font-size: 20px;
}
.widget-head .more {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}

.sector-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sector {
  padding: 14px 16px;
  background: rgba(5,6,28,0.4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  display: flex; justify-content: space-between; align-items: center;
}
.sector-name { font-size: 14px; }
.sector-signal {
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
}
.signal-bull { background: rgba(34,197,94,0.15); color: var(--bull); }
.signal-bear { background: rgba(239,68,68,0.15); color: var(--bear); }
.signal-neutral { background: rgba(148,163,184,0.15); color: var(--neutral); }

.watchlist { display: flex; flex-direction: column; gap: 2px; }
.watchlist-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px; align-items: center;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
}
.watchlist-row:hover { background: rgba(255,255,255,0.02); border-color: var(--hairline); }
.watchlist .sym { font-weight: 600; font-size: 14px; }
.watchlist .co  { color: var(--text-muted); font-size: 12px; }
.watchlist .px  { font-family: var(--ff-mono); font-size: 14px; }
.watchlist .ch  { font-family: var(--ff-mono); font-size: 13px; min-width: 68px; text-align: right; }
.watchlist .astro-tag {
  padding: 3px 8px; font-size: 10.5px; font-weight: 600;
  border-radius: var(--r-pill);
  letter-spacing: 0.08em;
}

.transits { display: flex; flex-direction: column; gap: 12px; }
.transit {
  display: flex; gap: 14px; align-items: start;
  padding: 14px;
  background: rgba(5,6,28,0.3);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.transit .date {
  font-family: var(--ff-mono);
  font-size: 12px; color: var(--gold);
  min-width: 80px;
}
.transit p { font-size: 13.5px; line-height: 1.5; }
.transit p strong { color: var(--text); }

.alerts { display: flex; flex-direction: column; gap: 10px; }
.alert {
  display: flex; gap: 14px; align-items: start;
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(5,6,28,0.4);
}
.alert-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
}
.alert.bull .alert-icon { background: rgba(34,197,94,0.15); color: var(--bull); }
.alert.bear .alert-icon { background: rgba(239,68,68,0.15); color: var(--bear); }
.alert.info .alert-icon { background: rgba(139,92,246,0.15); color: var(--violet-soft); }
.alert p { font-size: 13px; }
.alert time { color: var(--text-dim); font-size: 11px; }

/* ===================================================
   AUTH PAGE
   =================================================== */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
@media (max-width: 960px) { .auth-shell { grid-template-columns: 1fr; } }

.auth-hero {
  padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top left, rgba(139,92,246,0.25), transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(229,180,55,0.2), transparent 60%),
              var(--midnight);
}
.auth-hero .quote-block {
  font-family: var(--ff-display);
  font-size: 28px; line-height: 1.4;
  max-width: 460px;
}
.auth-hero .quote-block .cite {
  display: block; margin-top: 16px;
  font-family: var(--ff-body); font-size: 14px;
  color: var(--text-muted); letter-spacing: 0.02em;
}

.auth-card {
  padding: 64px 48px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--void);
}
.auth-card .inner { max-width: 400px; margin: 0 auto; width: 100%; }
.auth-card h1 {
  font-family: var(--ff-display); font-size: 40px;
  margin-bottom: 8px;
}
.auth-card .sub { color: var(--text-muted); margin-bottom: 32px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-dim); font-size: 12px; margin: 24px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--hairline);
}
.auth-social {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.auth-social button {
  padding: 12px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px;
}
.auth-social button:hover { background: rgba(255,255,255,0.04); }

/* ===================================================
   ADMIN / CRM
   =================================================== */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 960px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.stat-card .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted);
}
.stat-card .value {
  font-family: var(--ff-display); font-size: 34px;
  margin-top: 6px; letter-spacing: -0.01em;
}
.stat-card .delta { font-size: 12px; margin-top: 6px; font-family: var(--ff-mono); }
.stat-card .icon {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(229,180,55,0.1); color: var(--gold);
}

/* Customer rail + detail */
.crm-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
}
@media (max-width: 1100px) { .crm-split { grid-template-columns: 1fr; } }

.customer-list {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 16px;
  max-height: 900px;
  overflow-y: auto;
}
.customer-list .search-box {
  width: 100%;
  margin-bottom: 12px;
}
.customer-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
}
.customer-row:hover { background: rgba(255,255,255,0.03); }
.customer-row.active {
  background: linear-gradient(90deg, rgba(229,180,55,0.12), transparent);
  border-color: rgba(229,180,55,0.25);
}
.customer-row .meta { flex: 1; min-width: 0; }
.customer-row .name { font-size: 14px; font-weight: 600; }
.customer-row .sub  { font-size: 12px; color: var(--text-muted); }
.customer-row .tag  { font-size: 10px; padding: 2px 7px; border-radius: var(--r-pill); letter-spacing: 0.08em; }

.tag-vip      { background: rgba(229,180,55,0.15); color: var(--gold); }
.tag-pro      { background: rgba(139,92,246,0.15); color: var(--violet-soft); }
.tag-trial    { background: rgba(148,163,184,0.15); color: var(--neutral); }
.tag-at-risk  { background: rgba(239,68,68,0.15); color: var(--bear); }
.tag-churned  { background: rgba(110,110,150,0.18); color: var(--text-dim); }
.tag-new      { background: rgba(34,197,94,0.15); color: var(--bull); }
.tag-bull     { background: rgba(34,197,94,0.15); color: var(--bull); }
.tag-bear     { background: rgba(239,68,68,0.15); color: var(--bear); }
.tag-violet   { background: rgba(139,92,246,0.15); color: var(--violet-soft); }
.tag-neutral  { background: rgba(148,163,184,0.15); color: var(--neutral); }

/* Customer detail */
.customer-detail { display: flex; flex-direction: column; gap: 20px; }
.customer-head {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(229,180,55,0.08));
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.customer-head .avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--grad-violet);
  display: grid; place-items: center;
  font-size: 24px; font-weight: 600; color: #fff;
}
.customer-head h2 { font-family: var(--ff-display); font-size: 28px; margin-bottom: 2px; }
.customer-head .chips { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.customer-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .kv-grid { grid-template-columns: repeat(2, 1fr); } }
.kv {
  background: rgba(5,6,28,0.4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.kv .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.kv .v { font-family: var(--ff-mono); font-size: 18px; margin-top: 4px; }

/* Data tables */
.table-responsive { overflow-x: auto; border-radius: var(--r-md); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--hairline);
  font-weight: 600;
  white-space: nowrap;
}
.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(255,255,255,0.025); }

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, rgba(22,22,70,0.5) 25%, rgba(255,255,255,0.06) 50%, rgba(22,22,70,0.5) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Activity timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px;
  width: 1px; background: var(--hairline-2);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
  content: ''; position: absolute; left: -24px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--midnight);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(229,180,55,0.1);
}
.timeline-item.pay::before { border-color: var(--bull); box-shadow: 0 0 0 4px rgba(34,197,94,0.1); }
.timeline-item.book::before { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,0.1); }
.timeline-item.alert::before { border-color: var(--bear); box-shadow: 0 0 0 4px rgba(239,68,68,0.1); }
.timeline-item p { font-size: 14px; }
.timeline-item time { color: var(--text-dim); font-size: 11px; display: block; margin-top: 2px; }

/* Kanban pipeline */
.kanban {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  overflow-x: auto;
}
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .kanban { grid-template-columns: 1fr; } }

.kanban-col {
  background: rgba(5,6,28,0.4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 12px;
  min-height: 280px;
}
.kanban-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px 12px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted);
}
.kanban-head .count {
  background: rgba(255,255,255,0.05);
  border-radius: var(--r-pill);
  padding: 2px 8px; font-size: 11px; letter-spacing: 0;
}
.kanban-card {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.kanban-card:hover { border-color: var(--hairline-2); }
.kanban-card .name { font-size: 13.5px; font-weight: 600; }
.kanban-card .meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.kanban-card .row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; font-family: var(--ff-mono); font-size: 12px;
}

/* ===================================================
   ASTROLOGER DASHBOARD
   =================================================== */
.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(229,180,55,0.15), rgba(139,92,246,0.1));
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.status-toggle {
  display: flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(15, 13, 50, 0.6);
  border: 1px solid var(--hairline);
}
.status-opt {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s ease;
  display: flex; align-items: center; gap: 6px;
}
.status-opt.active.online { background: rgba(34,197,94,0.18); color: var(--bull); border: 1px solid rgba(34,197,94,0.4); }
.status-opt.active.busy   { background: rgba(229,180,55,0.18); color: var(--gold); border: 1px solid rgba(229,180,55,0.4); }
.status-opt.active.offline{ background: rgba(148,163,184,0.18); color: var(--neutral); border: 1px solid rgba(148,163,184,0.4); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bull);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}

.queue-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(15, 13, 50, 0.5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 13px;
}
.queue-chip strong { color: var(--gold); font-family: var(--ff-mono); }

/* Queue list */
.queue-list { display: flex; flex-direction: column; gap: 10px; }
.queue-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(15, 13, 50, 0.4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: all .2s ease;
}
.queue-item:hover { border-color: var(--hairline-2); background: rgba(15, 13, 50, 0.6); }
.queue-item .avatar { width: 40px; height: 40px; font-size: 14px; }
.queue-item .meta .name { font-weight: 600; font-size: 14px; }
.queue-item .meta .wait { font-size: 12px; color: var(--text-muted); }
.queue-item .queue-type {
  padding: 4px 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  border-radius: var(--r-pill);
}
.queue-type.chat { background: rgba(34,197,94,0.15); color: var(--bull); }
.queue-type.call { background: rgba(139,92,246,0.15); color: var(--violet-soft); }
.queue-type.video{ background: rgba(229,180,55,0.15); color: var(--gold); }

/* Today's schedule rows */
.schedule-list { display: flex; flex-direction: column; gap: 8px; }
.schedule-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: rgba(15, 13, 50, 0.3);
}
.schedule-row .time {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--gold);
}
.schedule-row .time .dur { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.schedule-row .client .name { font-weight: 600; font-size: 14px; }
.schedule-row .client .svc  { font-size: 12px; color: var(--text-muted); }

/* Earnings */
.earning-hero {
  display: flex; gap: 32px; align-items: baseline;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px;
}
.earning-hero .big {
  font-family: var(--ff-display);
  font-size: 42px;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.earning-hero .secondary { color: var(--text-muted); font-size: 13px; }

.bar-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 110px; align-items: end; }
.bar {
  background: linear-gradient(180deg, rgba(244, 208, 111, 0.7), rgba(229, 180, 55, 0.25));
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(229, 180, 55, 0.35);
  position: relative;
}
.bar.today {
  background: var(--grad-gold);
}
.bar-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 8px; }
.bar-labels span { text-align: center; font-size: 11px; color: var(--text-muted); font-family: var(--ff-mono); }

/* Client table */
.client-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--hairline);
}
.client-row:last-child { border: 0; }
.client-row:hover { background: rgba(255,255,255,0.02); }
.client-row .avatar { width: 36px; height: 36px; font-size: 12px; }
.client-row .name { font-weight: 600; font-size: 13.5px; }
.client-row .sub  { font-size: 11.5px; color: var(--text-muted); }
.client-row .lifetime { font-family: var(--ff-mono); font-size: 13px; color: var(--gold); }

/* Reviews */
.review {
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(15, 13, 50, 0.35);
  border: 1px solid var(--hairline);
  margin-bottom: 10px;
}
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-head .who { font-weight: 600; font-size: 13px; }
.review-head .date { font-size: 11px; color: var(--text-dim); }
.review-stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; }
.review p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.review-reply {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(229, 180, 55, 0.06);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 12.5px;
}

/* Availability week editor */
.week-grid {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 4px;
  font-family: var(--ff-mono);
  font-size: 11px;
}
.week-grid > div {
  padding: 8px 6px;
  text-align: center;
  color: var(--text-muted);
  border-radius: 4px;
}
.week-grid .hd { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.week-grid .slot-cell { background: rgba(15, 13, 50, 0.35); border: 1px solid var(--hairline); cursor: pointer; min-height: 28px; display: flex; align-items: center; justify-content: center; }
.week-grid .slot-cell.on { background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.45); color: var(--bull); }
.week-grid .slot-cell.booked { background: rgba(229, 180, 55, 0.25); border-color: rgba(229, 180, 55, 0.5); color: var(--gold); }
.week-grid .slot-cell.off { opacity: 0.3; }

/* Rate card */
.rate-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.rate-row .rate-icon {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(229,180,55,0.12); color: var(--gold);
}
.rate-row .mode { font-weight: 600; font-size: 14px; }
.rate-row .sub { font-size: 11.5px; color: var(--text-muted); }
.rate-row .price { font-family: var(--ff-mono); font-size: 16px; color: var(--gold); }

/* ===================================================
   BOOKING
   =================================================== */
.booking-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 28px;
  align-items: start;
}
@media (max-width: 1000px) { .booking-grid { grid-template-columns: 1fr; } }

.service-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.service-tab {
  padding: 10px 18px;
  background: rgba(22,22,70,0.5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s ease;
}
.service-tab:hover { color: var(--text); border-color: var(--hairline-2); }
.service-tab.active {
  background: var(--grad-gold);
  color: #1A1200;
  border-color: transparent;
  font-weight: 600;
}

.consultant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 900px) { .consultant-grid { grid-template-columns: 1fr; } }

.consultant-card {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.consultant-card:hover { transform: translateY(-3px); border-color: var(--hairline-2); }
.consultant-card.selected {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(229,180,55,0.15);
  /* --panel-2 flips (dark navy in dark theme, cream in light) so the auto-selected first
     card's name/title text (which flips to dark ink) never lands dark-on-dark. */
  background: linear-gradient(180deg, rgba(229,180,55,0.08), var(--panel-2));
}
.consultant-card .avatar-lg {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--grad-violet);
  display: grid; place-items: center;
  font-size: 26px; color: #fff; font-weight: 600;
  margin: 0 auto 14px;
}
.consultant-card .name { font-family: var(--ff-display); font-size: 22px; margin-bottom: 2px; }
.consultant-card .title { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.consultant-card .rating {
  font-family: var(--ff-mono); font-size: 12px; color: var(--gold);
  margin-bottom: 12px;
}
.consultant-card .price {
  padding-top: 12px; border-top: 1px solid var(--hairline);
  font-family: var(--ff-mono); font-size: 16px;
}

/* Calendar */
.calendar {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
}
.cal-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
}
.cal-head h3 { font-family: var(--ff-display); font-size: 22px; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--hairline-2);
  color: var(--text-muted);
}
.cal-nav button:hover { color: var(--gold); border-color: var(--gold); }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.cal-dow {
  text-align: center; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
  padding-bottom: 8px;
}
.cal-day {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-size: 14px;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}
.cal-day:hover { background: rgba(255,255,255,0.04); }
.cal-day.selected {
  background: var(--grad-gold); color: #1A1200; font-weight: 600;
  border-color: transparent;
}
.cal-day.today { color: var(--gold); font-weight: 600; }
.cal-day.disabled { color: var(--text-dim); cursor: not-allowed; opacity: 0.35; }
.cal-day .dot {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--bull);
}

.slots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 20px;
}
@media (max-width: 600px) { .slots { grid-template-columns: repeat(2, 1fr); } }
.slot {
  padding: 10px;
  text-align: center;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  font-family: var(--ff-mono); font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot.selected { background: var(--grad-gold); color: #1A1200; font-weight: 600; border-color: transparent; }
.slot.taken { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* Booking summary sidebar */
.booking-summary {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky; top: 90px;
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.summary-row:last-child { border: 0; }
.summary-row .k { color: var(--text-muted); }
.summary-row .v { font-family: var(--ff-mono); }
.summary-total {
  padding: 16px 0;
  margin-top: 8px;
  border-top: 1px solid var(--hairline-2);
  display: flex; justify-content: space-between;
  font-family: var(--ff-display);
  font-size: 22px;
}

/* ===================================================
   BIRTH CHART
   =================================================== */
.chart-stage {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 960px) { .chart-stage { grid-template-columns: 1fr; } }

.planet-table { width: 100%; font-size: 13.5px; }
.planet-table th, .planet-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}
.planet-table th {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); font-weight: 600;
}
.planet-table td.sym { font-family: var(--ff-mono); color: var(--gold); }

.transit-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 960px) { .transit-strip { grid-template-columns: 1fr; } }

.transit-card {
  background: var(--grad-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 18px;
}
.transit-card .glyph {
  font-family: serif; font-size: 28px; color: var(--gold); margin-bottom: 8px;
}
.transit-card .label { font-size: 13px; color: var(--text-muted); }
.transit-card .val { font-family: var(--ff-display); font-size: 22px; margin-top: 4px; }

.yoga-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: rgba(5,6,28,0.4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.yoga-row .yoga-name {
  font-family: var(--ff-display); font-size: 17px;
}
.yoga-row .yoga-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.yoga-status {
  padding: 4px 12px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
}
.yoga-active { background: rgba(34,197,94,0.15); color: var(--bull); }
.yoga-dormant { background: rgba(148,163,184,0.15); color: var(--neutral); }

/* Year calendar heatmap */
.year-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.month-cell {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: 11px;
  border: 1px solid var(--hairline);
  position: relative;
  cursor: pointer;
}
.month-cell.bull { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.3); color: var(--bull); }
.month-cell.bear { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); color: var(--bear); }
.month-cell.neutral { color: var(--text-muted); }
.month-cell.mixed { background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(239,68,68,0.12)); color: var(--gold); }

/* ===================================================
   ARCHITECTURE DIAGRAM
   =================================================== */
.arch-stack { display: flex; flex-direction: column; gap: 40px; }

.arch-layer {
  position: relative;
  background: var(--grad-panel);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-xl);
  padding: 28px 32px;
}
.arch-layer-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--hairline);
}
.arch-layer-head h3 {
  font-family: var(--ff-display); font-size: 26px;
}
.arch-layer-head .tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(229,180,55,0.12);
  color: var(--gold);
  letter-spacing: 0.12em;
  font-weight: 600;
}

.arch-grid { display: grid; gap: 14px; }
.arch-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.arch-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.arch-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .arch-grid.cols-2, .arch-grid.cols-3, .arch-grid.cols-4 { grid-template-columns: 1fr; }
}

.arch-box {
  background: rgba(15, 13, 50, 0.5);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  transition: all .2s ease;
}
.arch-box:hover { border-color: var(--gold); background: rgba(229,180,55,0.06); }
.arch-box .bx-head {
  display: flex; gap: 10px; align-items: center; margin-bottom: 8px;
}
.arch-box .bx-icon {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: rgba(229,180,55,0.15);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 14px;
}
.arch-box .bx-name { font-weight: 600; font-size: 14px; }
.arch-box .bx-stack { font-family: var(--ff-mono); font-size: 11px; color: var(--gold); }
.arch-box ul { margin-top: 6px; }
.arch-box li { font-size: 12px; color: var(--text-muted); padding: 2px 0; }

.arch-box.primary { background: linear-gradient(135deg, rgba(229,180,55,0.1), rgba(15,13,50,0.5)); border-color: rgba(229,180,55,0.35); }
.arch-box.violet  { background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(15,13,50,0.5)); border-color: rgba(139,92,246,0.35); }
.arch-box.violet .bx-icon { background: rgba(139,92,246,0.15); color: var(--violet-soft); }
.arch-box.violet .bx-stack { color: var(--violet-soft); }
.arch-box.green   { background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(15,13,50,0.5)); border-color: rgba(34,197,94,0.3); }
.arch-box.green .bx-icon { background: rgba(34,197,94,0.15); color: var(--bull); }
.arch-box.green .bx-stack { color: var(--bull); }

.arch-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -20px 0;
  position: relative;
  z-index: 2;
}
.arch-flow svg { filter: drop-shadow(0 0 8px rgba(229,180,55,0.4)); }

/* ===================================================
   INVESTOR DECK - slide viewer
   =================================================== */
.deck-shell {
  min-height: 100vh;
  padding: 0;
}
.slide {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 7vw;
  position: relative;
  border-bottom: 1px dashed rgba(229,180,55,0.1);
}
.slide-num {
  position: absolute;
  top: 32px; left: 7vw;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.slide-label {
  position: absolute;
  top: 32px; right: 7vw;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.slide h1.slide-title {
  font-family: var(--ff-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  font-weight: 500;
}
.slide h2.slide-title {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 28px;
}
.slide .slide-lead {
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--text-muted);
  max-width: 70ch;
  line-height: 1.5;
  margin-bottom: 40px;
}

.big-stat {
  font-family: var(--ff-display);
  font-size: clamp(56px, 9vw, 128px);
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.big-stat.mono {
  font-family: var(--ff-mono);
  font-weight: 600;
}

.slide-cols {
  display: grid;
  gap: 48px;
  align-items: center;
}
.slide-cols.c2 { grid-template-columns: 1fr 1fr; }
.slide-cols.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .slide-cols.c2, .slide-cols.c3 { grid-template-columns: 1fr; gap: 28px; }
  .slide { padding: 64px 6vw; }
}

.deck-nav {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  display: flex; gap: 8px;
  background: rgba(15, 13, 50, 0.85);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-2);
}
.deck-nav button {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline-2);
  color: var(--text-muted);
  display: grid; place-items: center;
}
.deck-nav button:hover { color: var(--gold); border-color: var(--gold); }
.deck-nav .counter { font-family: var(--ff-mono); font-size: 12px; color: var(--gold); padding: 0 8px; align-self: center; }

.deck-print-btn {
  position: fixed; top: 24px; right: 24px; z-index: 100;
}

.fin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fin-table th, .fin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}
.fin-table th {
  background: rgba(229,180,55,0.08);
  color: var(--gold);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.fin-table td.num { font-family: var(--ff-mono); text-align: right; }
.fin-table tr.highlight td { background: rgba(229,180,55,0.05); color: var(--gold); font-weight: 600; }

.competitor-row {
  display: grid;
  grid-template-columns: 180px repeat(5, 1fr);
  gap: 0;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.competitor-row.head {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}
.competitor-row .n { font-weight: 600; font-size: 15px; }
.competitor-row .n.us { color: var(--gold); font-family: var(--ff-display); font-size: 18px; }
.competitor-row .c { text-align: center; }
.competitor-row .good { color: var(--bull); }
.competitor-row .bad  { color: var(--bear); }
.competitor-row .mid  { color: var(--text-muted); }

@media print {
  .deck-nav, .deck-print-btn, .cosmic-bg { display: none !important; }
  .slide { page-break-after: always; min-height: auto; padding: 40px; }
  body { background: #0F1036; }
}

/* Utility */
.app-content { max-width: 100%; width: 100%; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.center { text-align: center; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.hide-mobile { }
@media (max-width: 760px) { .hide-mobile { display: none; } .app-shell { grid-template-columns: 1fr; } }
/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  padding: 10px;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1A1A50;
  margin: 3px 0;
  border-radius: 1px;
  transition: all 0.3s ease;
}
.mobile-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile sidebar */
@media (max-width: 959px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--midnight);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0 !important;
  }
}

/* ── Astrologers Directory ─────────────────────────────────── */
.search-input {
  display:block; width:100%; max-width:480px; margin:0 auto;
  background:var(--panel); border:1px solid var(--hairline);
  border-radius:var(--r-pill); padding:12px 20px;
  color:var(--text); font-size:14px;
}
.search-input:focus { outline:none; border-color:var(--gold); }

.filter-chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.chip {
  background:var(--panel); border:1px solid var(--hairline);
  border-radius:var(--r-pill); padding:6px 14px; font-size:13px;
  color:var(--text-muted); cursor:pointer; transition:all .15s;
}
.chip:hover { border-color:var(--gold); color:var(--gold); }
.chip.active { background:rgba(229,180,55,.12); border-color:var(--gold); color:var(--gold); }

.astro-dir-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px;
}
.astro-dir-card {
  background:var(--panel); border:1px solid var(--hairline);
  border-radius:var(--r-md); overflow:hidden; transition:border-color .15s;
}
.astro-dir-card:hover { border-color:rgba(229,180,55,.4); }
.astro-dir-card a { display:block; padding:20px; color:inherit; text-decoration:none; }
.dir-card-top { display:flex; gap:14px; align-items:flex-start; margin-bottom:12px; }
.dir-card-avatar {
  width:56px; height:56px; border-radius:50%; flex-shrink:0;
  background:var(--void); border:2px solid rgba(229,180,55,.25);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--ff-display); font-size:18px; color:var(--gold);
}
.dir-card-avatar img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
.dir-card-name { font-family:var(--ff-display); font-size:16px; margin-bottom:2px; }
.dir-card-location { font-size:12px; color:var(--text-muted); margin-bottom:4px; }
.dir-card-specs { font-size:12px; color:var(--text-muted); }
.dir-card-bottom {
  display:flex; justify-content:space-between; align-items:center;
  padding-top:12px; border-top:1px solid var(--hairline); font-size:13px;
}
.dir-card-rating { color:var(--gold); }
.dir-card-rate { color:var(--text-muted); }
.dir-card-langs { font-size:11px; color:var(--text-muted); margin-top:8px; }
.dir-new-badge {
  background:rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.3);
  border-radius:var(--r-pill); padding:2px 8px; font-size:11px; color:#4ADE80;
}
.no-results { text-align:center; padding:60px 0; color:var(--text-muted); }

/* ── Astrologer Profile Page ───────────────────────────────── */
.breadcrumb { font-size:13px; color:var(--text-muted); padding:16px 0 0; }
.breadcrumb a { color:var(--text-muted); text-decoration:none; }
.breadcrumb a:hover { color:var(--gold); }

.profile-layout {
  display:grid; grid-template-columns:1fr 320px; gap:32px;
  align-items:flex-start; padding:32px 0 64px;
}
@media(max-width:900px){
  .profile-layout { grid-template-columns:1fr; }
  .profile-cta-sidebar { order:-1; }
}

.profile-hero {
  display:flex; gap:24px; align-items:flex-start;
  background:var(--panel); border:1px solid var(--hairline);
  border-radius:var(--r-md); padding:28px; margin-bottom:20px;
}
.profile-avatar {
  width:96px; height:96px; flex-shrink:0; border-radius:50%;
  overflow:hidden; border:2px solid rgba(229,180,55,.3);
  display:flex; align-items:center; justify-content:center;
  background:var(--void); font-family:var(--ff-display); font-size:32px; color:var(--gold);
}
.profile-avatar img { width:100%; height:100%; object-fit:cover; }
.profile-hero-info h1 {
  font-family:var(--ff-display); font-size:clamp(22px,3vw,30px);
  margin:0 0 6px; display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.verified-badge-profile {
  background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.3);
  border-radius:var(--r-pill); padding:3px 10px; font-size:12px;
  color:#4ADE80; font-weight:600; font-family:var(--ff-body);
}
.profile-location { font-size:14px; color:var(--text-muted); margin:4px 0; }
.profile-exp { font-size:13px; color:var(--text-muted); margin:4px 0 10px; }
.profile-langs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }

.status-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; }
.status-dot.online  { background:#22C55E; box-shadow:0 0 6px #22C55E; }
.status-dot.busy    { background:#F59E0B; box-shadow:0 0 6px #F59E0B; }
.status-dot.offline { background:rgba(255,255,255,.2); }
.status-label { font-size:13px; color:var(--text-muted); }

.profile-stats-bar {
  display:flex; gap:0; background:var(--panel); border:1px solid var(--hairline);
  border-radius:var(--r-md); margin-bottom:20px; overflow:hidden;
}
.profile-stat {
  flex:1; text-align:center; padding:16px 12px;
  border-right:1px solid var(--hairline);
}
.profile-stat:last-child { border-right:none; }
.profile-stat .num { font-family:var(--ff-display); font-size:22px; color:var(--gold); display:block; }
.profile-stat .lbl { font-size:11px; color:var(--text-muted); margin-top:2px; display:block; }

.profile-section {
  background:var(--panel); border:1px solid var(--hairline);
  border-radius:var(--r-md); padding:24px; margin-bottom:16px;
}
.profile-section h2 {
  font-family:var(--ff-display); font-size:18px; margin:0 0 14px;
  color:var(--gold);
}
.profile-bio { font-size:14px; line-height:1.8; color:var(--text-muted); white-space:pre-line; }
.tag-group { display:flex; flex-wrap:wrap; gap:8px; }
.tag-gold {
  background:rgba(229,180,55,.1); border:1px solid rgba(229,180,55,.3);
  color:var(--gold); border-radius:var(--r-pill); padding:5px 12px; font-size:13px;
}
.cert-list { list-style:none; padding:0; margin:0; }
.cert-list li { font-size:14px; color:var(--text-muted); padding:6px 0; border-bottom:1px solid var(--hairline); }
.cert-list li:last-child { border-bottom:none; }

.profile-cta-sidebar { position:sticky; top:24px; }
.cta-card {
  background:var(--panel); border:1px solid rgba(229,180,55,.25);
  border-radius:var(--r-md); padding:24px; text-align:center;
}
.cta-rate { font-family:var(--ff-display); font-size:28px; color:var(--gold); margin-bottom:4px; }
.cta-session-rate { font-size:13px; color:var(--text-muted); margin-bottom:4px; }
.cta-divider { border:none; border-top:1px solid var(--hairline); margin:16px 0; }
.btn-cta-primary {
  display:block; width:100%; padding:14px; border-radius:var(--r-pill);
  background:var(--gold); color:#000; font-weight:700; font-size:15px;
  text-decoration:none; text-align:center; margin-bottom:10px;
  transition:opacity .15s;
}
.btn-cta-primary:hover { opacity:.88; }
.btn-cta-secondary {
  display:block; width:100%; padding:13px; border-radius:var(--r-pill);
  background:transparent; border:1px solid var(--gold); color:var(--gold);
  font-size:15px; text-decoration:none; text-align:center; transition:all .15s;
}
.btn-cta-secondary:hover { background:rgba(229,180,55,.1); }
.free-intro-note { font-size:12px; color:#4ADE80; margin-top:12px; }
.back-link { font-size:13px; color:var(--text-muted); display:inline-block; margin-bottom:20px; }
.back-link:hover { color:var(--gold); }

@media(max-width:640px){
  .profile-hero { flex-direction:column; align-items:center; text-align:center; }
  .profile-langs { justify-content:center; }
  .profile-stats-bar { flex-wrap:wrap; }
  .profile-stat { flex:1 0 33%; }
  .astro-dir-grid { grid-template-columns:1fr; }
}


/* ── Blog Engine ───────────────────────────────────────────── */
.blog-cat-badge{background:rgba(229,180,55,.12);border:1px solid rgba(229,180,55,.25);color:var(--gold);border-radius:var(--r-pill);padding:4px 12px;font-size:12px;font-weight:600;}
.blog-featured-card{background:var(--panel);border:1px solid var(--hairline);border-radius:var(--r-lg);overflow:hidden;display:grid;grid-template-columns:1fr 1fr;gap:0;transition:border-color .2s;}
.blog-featured-card:hover{border-color:rgba(229,180,55,.3);}
.blog-featured-img{background-size:cover;background-position:center;min-height:320px;}
.blog-featured-body{padding:36px;}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;}
.blog-card{background:var(--panel);border:1px solid var(--hairline);border-radius:var(--r-md);overflow:hidden;text-decoration:none;color:inherit;display:flex;flex-direction:column;transition:border-color .15s,transform .15s;}
.blog-card:hover{border-color:rgba(229,180,55,.3);transform:translateY(-2px);}
.blog-card-img{height:180px;background-size:cover;background-position:center;background-color:rgba(229,180,55,.05);}
.blog-card-img-placeholder{display:flex;align-items:center;justify-content:center;}
.blog-card-body{padding:18px;flex:1;}
.blog-body{font-size:16px;line-height:1.85;color:var(--text-muted);}
.blog-body h2{font-family:var(--ff-display);font-size:26px;color:var(--text);margin:32px 0 16px;}
.blog-body h3{font-family:var(--ff-display);font-size:20px;color:var(--text);margin:24px 0 12px;}
.blog-body p{margin:0 0 18px;}
.blog-body blockquote{border-left:3px solid var(--gold);padding:12px 20px;margin:20px 0;background:rgba(229,180,55,.05);border-radius:0 8px 8px 0;font-style:italic;}
.blog-body img{border-radius:8px;max-width:100%;height:auto;}
.blog-body table{width:100%;border-collapse:collapse;margin:20px 0;}
.blog-body th,.blog-body td{border:1px solid var(--hairline);padding:10px 14px;font-size:14px;}
.blog-body th{background:rgba(255,255,255,.04);}
.nifty-archive-card{background:linear-gradient(135deg,rgba(229,180,55,.07),rgba(22,22,70,.4));border:1px solid rgba(229,180,55,.2);border-radius:12px;padding:22px 24px;margin:0 0 32px;}
/* Legacy fixed-bottom .share-bar removed 2026-07-05: the reveal class .share-bar-visible was never
   applied by any JS, so the bar stayed translateY(100%) off-screen and its position:fixed/transform
   leaked into blog-post.ejs's own in-flow .share-bar (which only used blog-post). blog-post now owns
   its share-bar/.share-btn styles entirely. */
@media(max-width:760px){
  .blog-featured-card{grid-template-columns:1fr;}
  .blog-featured-img{min-height:200px;}
  .blog-grid{grid-template-columns:1fr;}
}

/* ── AI Assist / AI Analyst highlight ── */
.ai-card {
  background: linear-gradient(135deg, rgba(229,180,55,0.07) 0%, rgba(229,180,55,0.03) 100%);
  border: 1px solid var(--ai-border) !important;
  box-shadow: 0 0 28px rgba(229,180,55,0.10), inset 0 0 0 1px rgba(229,180,55,0.06);
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ai), transparent);
  opacity: 0.7;
}
.ai-card-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--ai); text-transform: uppercase;
  background: rgba(229,180,55,0.1);
  border: 1px solid rgba(229,180,55,0.25);
  border-radius: var(--r-pill);
  padding: 3px 10px; margin-bottom: 8px;
}
.ai-card-label::before { content: '✦'; font-size: 9px; }
.btn-ai {
  background: rgba(229,180,55,0.12);
  border: 1px solid var(--ai-border);
  color: var(--ai-soft);
  border-radius: var(--r-sm);
  padding: 9px 18px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.btn-ai:hover {
  background: rgba(229,180,55,0.22);
  box-shadow: 0 0 16px rgba(229,180,55,0.2);
}

/* ═══ Dashboard reshuffle - bands, watchlist editor, heat-strips (2026-06-27) ═══ */
/* Section band header */
.band-h { display:flex; align-items:center; gap:14px; margin:6px 0 16px; }
.band-h span { font-family:var(--ff-display); font-size:20px; font-weight:600; color:var(--text); letter-spacing:-.01em; white-space:nowrap; }
.band-h i { flex:1; height:1px; background:var(--hairline); }
.band-h small { font-family:var(--ff-mono,monospace); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-dim); white-space:nowrap; }

/* Watchlist editor */
.wl-add:hover { color:var(--gold-soft); }
.watchlist-row { position:relative; }
.wl-rm { position:absolute; right:6px; top:50%; transform:translateY(-50%); width:22px; height:22px; border-radius:50%; border:1px solid var(--hairline); background:transparent; color:var(--text-dim); font-size:15px; line-height:1; cursor:pointer; opacity:0; transition:opacity .15s, color .15s, border-color .15s; }
.watchlist-row:hover .wl-rm { opacity:1; }
.wl-rm:hover { color:var(--bear); border-color:var(--bear); }

/* Add-stock / methodology modal */
.wl-modal { position:fixed; inset:0; background:rgba(0,0,0,.62); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); z-index:2000; display:flex; align-items:center; justify-content:center; padding:20px; }
.wl-modal-card { width:100%; max-width:420px; background:var(--panel-2); border:1px solid var(--hairline); border-radius:var(--r-lg); padding:20px; box-shadow:0 30px 80px rgba(0,0,0,.5); }
.wl-modal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.wl-modal-head h3 { font-family:var(--ff-display); font-size:20px; font-weight:600; }
.wl-x { background:none; border:none; color:var(--text-dim); font-size:24px; line-height:1; cursor:pointer; padding:0 4px; }
.wl-x:hover { color:var(--text); }
#wlInput { width:100%; padding:11px 13px; background:var(--void); border:1px solid var(--hairline); border-radius:var(--r-md); color:var(--text); font-size:14px; font-family:inherit; outline:none; }
#wlInput:focus { border-color:var(--gold-soft); }
.wl-suggest { margin-top:8px; max-height:230px; overflow-y:auto; display:flex; flex-direction:column; gap:2px; }
.wl-sug { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:var(--r-sm); cursor:pointer; font-size:13px; }
.wl-sug:hover { background:rgba(229,180,55,.08); }
.wl-sug b { color:var(--text); min-width:84px; }
.wl-sug span { color:var(--text-muted); flex:1; }
.wl-sug em { color:var(--text-dim); font-style:normal; font-size:11px; }
.wl-sug-empty { padding:10px; font-size:12px; color:var(--text-dim); }
.wl-error { color:var(--bear); font-size:12px; min-height:16px; margin-top:6px; }
.wl-modal-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px; }

/* Sector outlook - 7-session heat-strip */
.sector-col { flex-direction:column; align-items:stretch; gap:8px; }
.sector-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.sector-strip { display:flex; align-items:center; gap:4px; }
.hs { width:100%; flex:1; height:7px; border-radius:3px; background:var(--text-dim); opacity:.85; }
.hs.bull { background:var(--bull); } .hs.bear { background:var(--bear); } .hs.hold { background:var(--text-dim); opacity:.5; }
.hs-shift { color:var(--gold-soft); font-size:11px; margin-left:2px; }

/* Navtara - 7-day dots */
.nv-week-h { font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--text-dim); margin-bottom:5px; }
.nv-week { display:flex; gap:6px; }
.nv-dot { flex:1; height:8px; border-radius:4px; background:var(--text-dim); }
.nv-dot.bull { background:var(--bull); } .nv-dot.bear { background:var(--bear); } .nv-dot.hold { background:var(--text-dim); opacity:.5; }

/* Your Week - favourable windows */
.yw-strip { display:flex; gap:8px; align-items:flex-end; }
.yw-cell { flex:1; display:flex; flex-direction:column; align-items:center; gap:5px; }
.yw-dow { font-size:10px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.04em; }
.yw-bar { width:100%; height:30px; border-radius:5px; transition:height .4s; }
.yw-dd { font-family:var(--ff-mono,monospace); font-size:11px; color:var(--text-muted); }
