﻿:root {
  color: #162033;
  background: #f4f7fb;
  font-family: Quicksand, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fc-purple: #443682;
  --fc-blue: #0870ad;
  --fc-cyan: #12a8b5;
  --fc-mint: #58c5bd;
  --fc-ink: #24405f;
  --fc-soft: #eef8fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(88, 197, 189, 0.18), transparent 32%),
    radial-gradient(circle at top left, rgba(68, 54, 130, 0.12), transparent 28%),
    #f4f7fb;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
  border: 1px solid rgba(173, 189, 213, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 55px rgba(21, 35, 62, 0.14);
  padding: 26px;
}

.login-card h1 {
  margin: 16px 0 8px;
  color: #0f172a;
}

.login-card p {
  color: #64748b;
}

.login-card form,
.demo-access {
  display: grid;
  gap: 12px;
}

.demo-access {
  margin-top: 16px;
  border-radius: 16px;
  background: #f6f9fd;
  padding: 14px;
  color: #52637d;
  font-size: 13px;
}

.login-error {
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff5f5;
  color: #b91c1c;
  padding: 10px 12px;
  margin: 12px 0;
  font-weight: 800;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  padding: 22px;
  gap: 18px;
}

.sidebar {
  width: 250px;
  background: rgba(255, 255, 255, 0.86);
  color: #1f2a44;
  display: flex;
  flex-direction: column;
  padding: 16px;
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  border: 1px solid rgba(173, 189, 213, 0.7);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(21, 35, 62, 0.09);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.brand { margin-bottom: 8px; padding: 8px 0 2px; }
.brand strong { display: block; font-size: 20px; letter-spacing: -0.05em; color: var(--fc-purple); }
.brand strong span { color: var(--fc-blue); }
.brand strong::first-letter { color: var(--fc-purple); }
.brand em { display: block; margin-top: 4px; color: #718096; font-size: 12px; font-style: normal; }
.brand-mark { display: none; }

.local-badge {
  width: fit-content;
  margin-bottom: 34px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(88, 197, 189, 0.16);
  color: #08706f;
  font-size: 12px;
  font-weight: 800;
}

nav { display: grid; gap: 8px; overflow-y: auto; padding-right: 3px; }
nav small {
  display: block;
  margin: 2px 6px 0;
  color: #8a9ab4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

nav button, .ghost-button {
  border: 0;
  border-radius: 12px;
  padding: 12px 13px;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
}

nav button {
  color: #55657f;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

nav button.active,
nav button:hover {
  background: linear-gradient(135deg, var(--fc-purple), var(--fc-blue));
  color: white;
  box-shadow: 0 10px 22px rgba(8, 112, 173, 0.18);
}

.nav-icon, .line-icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.sidebar-footer {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  line-height: 1.4;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff7f7;
  flex-shrink: 0;
}

.main-area {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(173, 189, 213, 0.62);
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.74);
  box-shadow: 0 22px 55px rgba(21, 35, 62, 0.09);
  overflow: hidden;
}

.topbar {
  min-height: 72px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(213, 224, 238, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
}

.search-input {
  width: min(360px, 100%);
  border: 1px solid #dbe5ef;
  background: #f6f9fd;
  border-radius: 999px;
  padding: 12px 16px;
  color: #334155;
  outline: none;
}

.search-input:focus { border-color: #5b46f6; box-shadow: 0 0 0 4px rgba(91, 70, 246, 0.1); }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.time-pill, .focus-button, .alert-button {
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #f8fbff;
  color: #42526e;
  padding: 10px 13px;
  font-weight: 800;
  font-size: 13px;
}
.alert-button { color: var(--fc-blue); background: #ffffff; border-color: #d9e3ee; }

.topbar h2, .section-title h2, .hero-card h1, .client-card h3, .project-card h3 { margin: 0; }

.ghost-button {
  background: #ffffff;
  color: #23344d;
  border: 1px solid #d9e3ee;
  font-weight: 800;
}

.danger-button {
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff5f5;
  color: #dc2626;
  padding: 10px 12px;
  font-weight: 900;
}

.content-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-card, .panel, .stat-card, .project-card {
  border: 1px solid rgba(206, 220, 237, 0.95);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(24, 48, 86, 0.07);
}

.hero-card {
  grid-column: 1 / -1;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(circle at right, rgba(20, 184, 166, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff, #eef6ff);
}

.hero-card.admin {
  background:
    radial-gradient(circle at right, rgba(91, 70, 246, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff, #f3f0ff);
}

.hero-card h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.05em; color: #0f172a; }
.hero-card p { max-width: 720px; color: #64748b; font-size: 15px; line-height: 1.6; }

.eyebrow {
  color: #0f766e;
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.primary-button {
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--fc-purple), var(--fc-blue) 55%, var(--fc-cyan));
  color: white;
  padding: 12px 18px;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(8, 112, 173, 0.18);
}
.primary-button.dark { background: var(--fc-purple); }

.stats-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card { padding: 18px; display: flex; gap: 14px; align-items: center; }
.stat-card p { margin: 0 0 4px; color: #7a8aa4; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; }
.stat-card strong { font-size: 27px; color: #0f172a; }
.line-icon {
  width: 24px;
  min-width: 24px;
  display: inline-grid;
  place-items: center;
  color: var(--fc-blue);
  font-size: 21px;
  line-height: 1;
}
.blue .stat-icon { background: #e0f2fe; color: #0369a1; }
.green .stat-icon { background: #dff9f5; color: #0f766e; }
.orange .stat-icon { background: #ffedd5; color: #c2410c; }
.purple .stat-icon { background: #ede9fe; color: #5b46f6; }

.panel { padding: 22px; }
.wide { grid-column: 1 / -1; }
.section-title, .card-header, .progress-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.projects-list, .item-list, .quick-actions { display: grid; gap: 12px; margin-top: 16px; }
.project-card { padding: 20px; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: #e6f7ff;
  color: #036983;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.pill.soft { background: #eef3f8; color: #4d617a; }

.progress-wrap { margin: 18px 0; }
.progress-bar, .mini-progress { height: 9px; border-radius: 999px; background: #e6edf5; overflow: hidden; }
.progress-bar span, .mini-progress span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--fc-purple), var(--fc-blue), var(--fc-mint)); }
.project-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #60758e; font-size: 13px; }
.project-meta span, .list-item { display: flex; align-items: center; gap: 8px; }

.quick-actions button {
  border: 1px solid #dbe6f0;
  background: #f8fbfe;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #21324a;
  font-weight: 800;
}
.quick-actions button:hover { background: #eef6ff; }

.list-item {
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid #dfe9f2;
  padding: 14px;
  border-radius: 15px;
  background: #fbfdff;
}
.list-item span, .client-card p { color: #697d96; }

.list-item > div:first-child {
  display: grid;
  gap: 6px;
}

.table-card { margin-top: 18px; border: 1px solid #dfe9f2; border-radius: 18px; overflow: hidden; }
.table-row { display: grid; grid-template-columns: 0.8fr 1.4fr 1.2fr 0.8fr 0.8fr; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid #edf2f7; }
.table-row:first-child { border-top: 0; }
.table-head { background: #f7fafd; color: #687d96; font-weight: 900; font-size: 13px; }

.client-card { margin-top: 0; display: flex; align-items: center; gap: 16px; min-height: 76px; }
.client-selector { min-width: min(360px, 100%); background: rgba(255,255,255,0.76); border: 1px solid #d7e5f2; border-radius: 16px; padding: 14px; font-weight: 900; color: #43536f; }
.client-selector select { margin-top: 8px; width: 100%; }
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.client-summary { border: 1px solid #dfe9f2; border-radius: 18px; padding: 18px; background: #fbfdff; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; display: grid; align-content: space-between; gap: 14px; min-height: 218px; }
.client-summary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(24,48,86,.1); }
.summary-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.summary-metrics span, .priority { border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; background: #eef3f8; color: #4d617a; }

.attention-box {
  border: 1px solid #fde68a;
  border-radius: 18px;
  background: #fffbeb;
  color: #92400e;
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.calendar-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.calendar-event {
  border: 1px solid #dfe9f2;
  border-radius: 15px;
  background: #fbfdff;
  padding: 13px;
  display: grid;
  gap: 4px;
}

.calendar-event span,
.ticket-response {
  color: #697d96;
}

.calendar-event a {
  color: #5b46f6;
  font-weight: 900;
  text-decoration: none;
}

.calendar-event a:hover {
  text-decoration: underline;
}

.admin-project-actions {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  margin-top: 14px;
}

.timeline { position: relative; display: grid; gap: 16px; margin-top: 18px; }
.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: 12px; }
.timeline-item strong, .timeline-item span { display: block; }
.timeline-item span { color: #697d96; margin: 4px 0 10px; }
.timeline-dot { width: 14px; height: 14px; border-radius: 999px; background: #14b8a6; box-shadow: 0 0 0 6px #dff9f5; margin-top: 4px; }

.item-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-width: 220px; }
.admin-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.client-summary .admin-controls { margin-top: auto; }
.priority.alta { background: #fee2e2; color: #b91c1c; }
.priority.media { background: #fef3c7; color: #92400e; }
.priority.baja { background: #dcfce7; color: #166534; }
.empty-state { color: #697d96; border: 1px dashed #cfdce9; border-radius: 16px; padding: 18px; margin: 0; }

.report-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b46f6;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.report-link:hover {
  text-decoration: underline;
}

.support-chat {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.chat-message {
  border: 1px solid #dfe9f2;
  border-radius: 15px;
  padding: 12px;
  background: #fbfdff;
}

.chat-message.client {
  background: #eef6ff;
  border-color: #cfe3ff;
}

.chat-message strong,
.chat-message span {
  display: block;
}

.chat-message p {
  margin: 6px 0;
  color: #334155;
}

.chat-message span {
  color: #7a8aa4;
  font-size: 12px;
  font-weight: 800;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.avatar { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, #5b46f6, #14b8a6); color: white; display: grid; place-items: center; font-weight: 900; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(15,23,42,.42); display: grid; place-items: center; padding: 14px; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 28px); overflow-y: auto; background: white; border-radius: 20px; padding: 18px; box-shadow: 0 28px 80px rgba(0,0,0,.22); display: grid; gap: 10px; }
label { display: grid; gap: 7px; color: #42556e; font-weight: 900; }
input, select, textarea { border: 1px solid #d9e3ee; border-radius: 13px; padding: 10px 12px; background: #fbfdff; color: #172033; }
textarea { min-height: 78px; resize: vertical; }
.modal .primary-button[type="submit"] { position: sticky; bottom: 0; justify-content: center; }

@media (max-width: 980px) {
  .app-shell { display: block; padding: 12px; }
  .sidebar { position: relative; width: auto; height: auto; margin-bottom: 14px; }
  .content-grid, .stats-grid, .ops-board, .calendar-strip { grid-template-columns: 1fr; }
  .hero-card, .topbar { align-items: flex-start; flex-direction: column; }
  .table-row, .client-grid { grid-template-columns: 1fr; }
  .topbar-actions { width: 100%; }
  .search-input { width: 100%; }
  .chat-compose { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { grid-template-columns: 104px minmax(0, 1fr); }
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.pipeline-column {
  min-height: 170px;
  border: 1px solid #dfe9f2;
  border-radius: 18px;
  background: #f8fbff;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.pipeline-column > strong {
  color: var(--fc-purple);
  font-size: 13px;
}

.pipeline-card {
  border: 1px solid #dbe6f0;
  border-radius: 14px;
  background: white;
  padding: 12px;
  display: grid;
  gap: 7px;
}

.pipeline-card span {
  font-weight: 900;
  color: var(--fc-ink);
}

.pipeline-card small {
  color: #697d96;
  font-weight: 800;
}

.settings-summary {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid #dfe9f2;
  border-radius: 16px;
  background: #fbfdff;
  padding: 16px;
}

.ops-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ops-board button {
  border: 1px solid #dfe9f2;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, var(--fc-soft));
  padding: 18px;
  display: grid;
  gap: 6px;
  text-align: left;
  color: var(--fc-ink);
}

.ops-board button:hover {
  border-color: var(--fc-mint);
  transform: translateY(-1px);
}

.ops-board strong {
  color: var(--fc-blue);
  font-size: 30px;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.calendar-strip button,
.activity-row {
  width: 100%;
  border: 1px solid #dfe9f2;
  border-radius: 15px;
  background: #fbfdff;
  color: #24405f;
  padding: 13px;
  text-align: left;
  display: grid;
  gap: 4px;
  font-weight: 800;
}

.calendar-strip button:hover,
.activity-row:hover {
  border-color: var(--fc-mint);
  background: var(--fc-soft);
}

.calendar-strip strong {
  color: var(--fc-purple);
}

.calendar-strip span,
.calendar-strip small,
.activity-row span {
  color: #697d96;
}

.support-chat.compact {
  margin-top: 16px;
}

.sla-box {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  border: 1px solid #dfe9f2;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
}

.sla-box span,
.sla-box small {
  color: #60758e;
  font-size: 12px;
  font-weight: 800;
}

.sla-box .mini-progress {
  margin-top: 3px;
}

.terms-box {
  border: 1px solid #dfe9f2;
  border-radius: 18px;
  background: #f8fbff;
  padding: 18px;
  line-height: 1.7;
  color: #42556e;
}

.terms-box p {
  margin: 0;
}

.visual-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.visual-summary div,
.onboarding-grid article {
  border: 1px solid #dfe9f2;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #eef8fb);
  padding: 18px;
  display: grid;
  gap: 6px;
}

.visual-summary span,
.onboarding-grid span {
  color: #697d96;
  font-size: 12px;
  font-weight: 800;
}

.visual-summary strong {
  color: var(--fc-blue);
  font-size: 30px;
}

.project-card-visual {
  margin-top: 14px;
  overflow: hidden;
}

.project-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dfe9f2;
}

.timeline-title,
.timeline-point {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timeline-point {
  position: relative;
  justify-content: flex-start;
}

.timeline-point i {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fc-purple), var(--fc-blue));
  box-shadow: 0 0 0 6px rgba(8, 112, 173, 0.12);
}

.timeline-point.done i {
  background: linear-gradient(135deg, var(--fc-cyan), var(--fc-mint));
}

.timeline-point div {
  display: grid;
  gap: 4px;
  flex: 1;
}

.timeline-point span {
  color: #60758e;
  font-size: 12px;
  font-weight: 800;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}

.catalog-card {
  border: 1px solid #dfe9f2;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(24, 48, 86, 0.05);
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 150px;
}

.catalog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card > div {
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.catalog-card h3,
.catalog-card p {
  margin: 0;
}

.catalog-card p {
  color: #60758e;
  line-height: 1.45;
  font-size: 12px;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e8eff6;
  padding-top: 12px;
}

.catalog-meta strong {
  color: var(--fc-blue);
  font-size: 18px;
}

.catalog-meta span {
  color: #697d96;
  font-size: 11px;
  font-weight: 900;
}

.section-title.spaced {
  margin-top: 8px;
}

.contract-card {
  border: 1px solid #dfe9f2;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #f4fbff);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.contract-card h3,
.contract-card p {
  margin: 0;
}

.contract-card p {
  color: #60758e;
  line-height: 1.55;
  margin-top: 6px;
}

body[data-theme="dark"] {
  color: #eaf4fb;
  background:
    radial-gradient(circle at 82% 18%, rgba(18, 168, 181, 0.22), transparent 28%),
    radial-gradient(circle at 20% 0%, rgba(68, 54, 130, 0.36), transparent 34%),
    linear-gradient(135deg, #070b1d 0%, #091224 46%, #07101f 100%);
}

body[data-theme="dark"] .sidebar,
body[data-theme="dark"] .main-area,
body[data-theme="dark"] .hero-card,
body[data-theme="dark"] .panel,
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .project-card,
body[data-theme="dark"] .client-summary,
body[data-theme="dark"] .list-item,
body[data-theme="dark"] .pipeline-column,
body[data-theme="dark"] .pipeline-card,
body[data-theme="dark"] .calendar-strip button,
body[data-theme="dark"] .activity-row,
body[data-theme="dark"] .settings-summary,
body[data-theme="dark"] .modal {
  background:
    radial-gradient(circle at top right, rgba(18, 168, 181, 0.16), transparent 34%),
    rgba(8, 16, 34, 0.94);
  border-color: rgba(88, 197, 189, 0.18);
  color: #eaf4fb;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .sidebar {
  background: #090f22;
  box-shadow: 20px 0 70px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .hero-card,
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .panel,
body[data-theme="dark"] .project-card {
  background:
    radial-gradient(circle at top right, rgba(18, 168, 181, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(14, 28, 55, 0.96), rgba(7, 13, 30, 0.96));
}

body[data-theme="dark"] .topbar {
  background: rgba(7, 12, 28, 0.78);
  border-color: rgba(88, 197, 189, 0.16);
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] strong,
body[data-theme="dark"] .pipeline-card span {
  color: #f8fbff;
}

body[data-theme="dark"] p,
body[data-theme="dark"] span,
body[data-theme="dark"] small,
body[data-theme="dark"] .client-card p,
body[data-theme="dark"] .ticket-response {
  color: #b8c7d9;
}

body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea,
body[data-theme="dark"] .search-input,
body[data-theme="dark"] .ghost-button,
body[data-theme="dark"] .alert-button {
  background: rgba(16, 24, 39, 0.92);
  border-color: rgba(120, 148, 180, 0.3);
  color: #eaf4fb;
}

body[data-theme="dark"] .sla-box {
  background: rgba(16, 24, 39, 0.8);
  border-color: rgba(120, 148, 180, 0.28);
}

body[data-theme="dark"] .terms-box {
  background: rgba(16, 24, 39, 0.8);
  border-color: rgba(120, 148, 180, 0.28);
  color: #b8c7d9;
}

body[data-theme="dark"] .visual-summary div,
body[data-theme="dark"] .onboarding-grid article,
body[data-theme="dark"] .project-timeline,
body[data-theme="dark"] .catalog-card,
body[data-theme="dark"] .contract-card {
  background:
    radial-gradient(circle at top right, rgba(18, 168, 181, 0.14), transparent 32%),
    rgba(8, 18, 38, 0.9);
  border-color: rgba(88, 197, 189, 0.18);
}

body[data-theme="dark"] .catalog-card p,
body[data-theme="dark"] .contract-card p,
body[data-theme="dark"] .catalog-meta span {
  color: #9fb2c9;
}

body[data-theme="dark"] .visual-summary strong {
  color: #48c7ff;
}

body[data-theme="dark"] .timeline-point span {
  color: #9fb2c9;
}
