﻿:root {
  --ink: #18212f;
  --muted: #647184;
  --line: #dbe3ea;
  --paper: #f7fafc;
  --panel: #ffffff;
  --green: #16845b;
  --green-soft: #dff5eb;
  --blue: #2463eb;
  --blue-soft: #e6efff;
  --amber: #b7791f;
  --amber-soft: #fff2d6;
  --rose: #b42342;
  --rose-soft: #ffe4e8;
  --shadow: 0 18px 50px rgba(24, 33, 47, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #eef7f4 0%, #f8fafc 42%, #f4f7fb 100%);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(219, 227, 234, 0.85);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 8px;
  display: grid; place-items: center;
  background: conic-gradient(from 180deg, #fac943, #ff8a3d, #16845b, #31b884, #fac943);
  color: white; font-weight: 900;
  box-shadow: 0 10px 24px rgba(22,132,91,.25);
}
.brand h1 { margin: 0; font-size: 18px; line-height: 1.1; }
.brand span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.user-chip { color: var(--muted); font-size: 14px; }
.btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(24,33,47,.04);
}
.btn.primary { background: var(--green); border-color: var(--green); color: white; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: white; }
.btn.danger { color: var(--rose); border-color: #f4b8c2; background: var(--rose-soft); }
.btn.icon { width: 38px; padding: 0; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.login-visual {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(rgba(9, 47, 39, .66), rgba(9, 47, 39, .38)),
    url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1400&q=80') center/cover;
  color: white;
}
.login-visual h1 { font-size: clamp(34px, 5vw, 68px); line-height: .95; max-width: 740px; margin: 0; letter-spacing: 0; }
.login-visual p { max-width: 560px; line-height: 1.6; font-size: 17px; }
.login-form-wrap { display: grid; place-items: center; padding: 32px; }
.login-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.login-card h2 { margin: 0 0 8px; font-size: 24px; }
.login-card p { margin: 0 0 22px; color: var(--muted); }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
}
.helper { margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; background: #fbfdff; }
.error { color: var(--rose); background: var(--rose-soft); border: 1px solid #ffc2cc; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }

.main { padding: 22px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar h2 { margin: 0; font-size: 24px; }
.toolbar-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.search { min-width: min(340px, 70vw); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.tabs { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); background: white; border-radius: 8px; }
.tab { border: 0; background: transparent; padding: 8px 12px; border-radius: 6px; color: var(--muted); }
.tab.active { background: var(--blue-soft); color: var(--blue); font-weight: 800; }

.kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 300px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: calc(100vh - 170px);
}
.column {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 172px);
}
.column-header { padding: 13px; border-bottom: 1px solid var(--line); display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.column-title { font-weight: 900; line-height: 1.2; }
.column-meta { margin-top: 5px; color: var(--muted); font-size: 12px; }
.count { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 4px 8px; font-weight: 900; font-size: 12px; }
.card-list { padding: 10px; overflow-y: auto; flex: 1; min-height: 120px; }
.project-card {
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(24,33,47,.06);
}
.project-card.dragging { opacity: .55; transform: rotate(1deg); }
.project-card h3 { font-size: 15px; margin: 0 0 8px; }
.card-lines { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.mini-btn { border: 1px solid var(--line); background: #fbfdff; border-radius: 7px; padding: 6px 8px; font-size: 12px; }
.drop-hover { outline: 2px solid var(--blue); outline-offset: -4px; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1.15fr .85fr; }
.panel {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(24,33,47,.06);
}
.panel h2, .panel h3 { margin-top: 0; }
.stage-hero { display: grid; gap: 10px; padding: 22px; border-radius: 8px; background: linear-gradient(135deg, var(--green-soft), #fff8df); border: 1px solid #cfe8d9; }
.stage-hero strong { color: var(--green); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.stage-hero h2 { margin: 0; font-size: clamp(24px, 4vw, 38px); line-height: 1.05; }
.stage-hero p { margin: 0; color: #3e564d; line-height: 1.5; }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: white; color: white; font-size: 13px; }
.timeline-item.done .dot { background: var(--green); border-color: var(--green); }
.timeline-item.current .dot { background: var(--blue); border-color: var(--blue); }
.timeline-item.pending { color: var(--muted); }
.timeline-title { font-weight: 800; }
.timeline-date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.info-box { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }
.info-box span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.info-box strong { font-size: 15px; }
.history { display: grid; gap: 10px; }
.history-row { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.history-row strong { display: block; margin-bottom: 4px; }
.history-row span { color: var(--muted); font-size: 13px; }

.report-grid { display: grid; grid-template-columns: repeat(4, minmax(180px,1fr)); gap: 14px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { display: block; font-size: 30px; margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.table th { background: #f2f6fa; color: #3a4758; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.48); display: grid; place-items: center; z-index: 20; padding: 18px; }
.modal { width: min(620px, 100%); max-height: 88vh; overflow: auto; background: white; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
.toast { position: fixed; right: 20px; bottom: 20px; background: #18212f; color: white; padding: 13px 15px; border-radius: 8px; box-shadow: var(--shadow); z-index: 30; }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: 38vh; padding: 28px; }
  .grid.two { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .topbar { align-items: flex-start; }
}
@media (max-width: 560px) {
  .main { padding: 14px; }
  .topbar { padding: 14px; }
  .brand h1 { font-size: 16px; }
  .brand span, .user-chip { display: none; }
  .info-grid, .report-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 30px 1fr; }
  .timeline-date { grid-column: 2; }
}

.btn.whatsapp {
  width: fit-content;
  background: #1f9d63;
  border-color: #1f9d63;
  color: white;
  font-weight: 800;
  text-decoration: none;
  margin-top: 4px;
}
.documents-list { display: grid; gap: 10px; }
.document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.document-row strong { display: block; margin-bottom: 4px; }
.document-row span { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.mini-btn.disabled, .mini-btn:disabled { opacity: .62; cursor: not-allowed; background: #f2f5f8; }
@media (max-width: 560px) {
  .document-row { align-items: stretch; flex-direction: column; }
  .btn.whatsapp { width: 100%; }
}


.client-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.visual-card {
  min-height: 132px;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  color: white;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 28px rgba(24,33,47,.08);
}
.visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 32, 28, .12), rgba(10, 32, 28, .78));
}
.visual-card > * { position: relative; z-index: 1; }
.visual-card strong { font-size: 22px; line-height: 1; margin-top: 8px; }
.visual-card small { margin-top: 5px; opacity: .92; }
.solar-array { background-image: url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&w=700&q=70'); }
.install-team { background-image: url('https://images.unsplash.com/photo-1624397640148-949b1732bb0a?auto=format&fit=crop&w=700&q=70'); }
.visual-icon,
.stage-mini-icon,
.stage-info-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.visual-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
}
.visual-icon svg,
.stage-mini-icon svg,
.stage-info-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.timeline-item {
  grid-template-columns: 34px 34px minmax(0, 1fr) 32px auto;
  align-items: center;
}
.stage-mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f2f6fa;
  color: var(--green);
  border: 1px solid var(--line);
}
.timeline-item.current .stage-mini-icon { color: var(--blue); background: var(--blue-soft); }
.timeline-item.pending .stage-mini-icon { color: #8492a6; background: #f8fafc; }
.timeline-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}
.stage-info-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #bfd2f7;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
}
.stage-info-btn:hover { background: var(--blue); color: white; }
.stage-info-modal { width: min(520px, 100%); }
.stage-info-body {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.stage-info-body p {
  margin: 0;
  line-height: 1.6;
  color: #334155;
}
.stage-info-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #bce7d1;
}
.stage-info-icon svg { width: 28px; height: 28px; }
.stage-next-box {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfdff;
  border-radius: 8px;
  padding: 12px;
}
.stage-next-box strong,
.stage-next-box span { display: block; }
.stage-next-box span { margin-top: 4px; color: var(--muted); font-size: 13px; }
@media (max-width: 720px) {
  .client-visuals { grid-template-columns: 1fr; }
  .timeline-item {
    grid-template-columns: 30px 30px minmax(0, 1fr) 30px;
  }
  .timeline-date {
    grid-column: 3 / 5;
    white-space: normal;
  }
}
@media (max-width: 560px) {
  .timeline-copy { display: none; }
}


/* Premium Solavista identity refresh */
:root {
  --ink: #0d1f15;
  --ink-mid: #2a4035;
  --ink-soft: #5a7a68;
  --ink-faint: #9dbdaa;
  --leaf: #15964f;
  --leaf-deep: #0d5f35;
  --leaf-bright: #22b964;
  --sun: #ef8330;
  --sun-soft: #fff0e3;
  --ground: #f4f8f5;
  --border: rgba(21,150,79,.13);
  --radius: 18px;
  font-family: 'Figtree', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { background: var(--ground); color: var(--ink); font-family: 'Figtree', Inter, sans-serif; }
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
  padding: 5px;
  border: 1px solid rgba(21,150,79,.14);
  box-shadow: 0 8px 24px rgba(13,95,53,.12);
}
.login-card, .panel, .project-card, .column, .metric, .modal { border-radius: var(--radius); border-color: var(--border); }
.login-visual {
  background:
    linear-gradient(rgba(13,31,21,.76), rgba(13,31,21,.44)),
    url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1400&q=80') center/cover;
}
.login-visual h1, .client-hero-body h1 { font-family: 'Instrument Serif', serif; letter-spacing: 0; }
.btn.primary, .btn.whatsapp, .btn-enter { background: linear-gradient(135deg, var(--leaf-deep), var(--leaf-bright)); border-color: transparent; }

.client-premium { min-height: 100vh; background: var(--ground); color: var(--ink); }
.client-hero {
  min-height: 100vh;
  background: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(34,185,100,.22), transparent 60%),
    radial-gradient(ellipse 55% 70% at 85% 15%, rgba(21,150,79,.24), transparent 55%),
    radial-gradient(ellipse 45% 45% at 65% 85%, rgba(239,131,48,.16), transparent 50%);
  animation: meshA 14s ease-in-out infinite alternate;
}
@keyframes meshA { to { transform: scale(1.06) translate(-1%, 1%); opacity: .88; } }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 52px 52px;
}
.hero-sun {
  position: absolute;
  top: -110px;
  right: -70px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,131,48,.22), transparent 66%);
  animation: sunP 7s ease-in-out infinite;
}
@keyframes sunP { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); opacity: .76; } }
.client-hero-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 48px;
}
.client-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.client-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 32px rgba(0,0,0,.18);
  overflow: hidden;
}
.client-logo-wrap img { width: 50px; height: 50px; object-fit: contain; }
.client-brand strong { display: block; color: white; font-size: 15px; }
.client-brand span:not(.client-logo-wrap) { display: block; color: var(--ink-faint); font-size: 11px; margin-top: 2px; }
.client-user-actions { display: flex; align-items: center; gap: 12px; }
.client-user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  font-size: 13px;
  font-weight: 600;
}
.client-user-chip span {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-bright));
  color: white;
  font-size: 11px;
  font-weight: 800;
}
.btn-sair {
  font-size: 13px;
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
}
.btn-sair:hover { color: white; background: rgba(255,255,255,.07); }
.client-hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 48px 70px;
}
.premium-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,185,100,.15);
  border: 1px solid rgba(34,185,100,.30);
  border-radius: 999px;
  padding: 7px 17px;
  color: #6be59d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.premium-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf-bright); box-shadow: 0 0 0 5px rgba(34,185,100,.12); }
.client-hero-body h1 {
  margin: 0 0 12px;
  color: white;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 400;
}
.client-hero-body h1 em { color: var(--leaf-bright); font-style: italic; }
.hero-ref {
  margin: 0 0 36px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.premium-system-card {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  padding: 28px 18px;
  backdrop-filter: blur(20px);
  margin-bottom: 28px;
  overflow: hidden;
}
.premium-system-card div { padding: 0 16px; }
.premium-system-card div + div { border-left: 1px solid rgba(255,255,255,.08); }
.premium-system-card span { display: block; color: var(--ink-faint); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.premium-system-card strong { display: block; color: white; font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.premium-system-card small { font-size: 13px; opacity: .75; }
.premium-stage-chip {
  width: min(520px, 100%);
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  background: rgba(239,131,48,.12);
  border: 1px solid rgba(239,131,48,.30);
  border-radius: 16px;
  padding: 15px 20px;
  margin-bottom: 32px;
}
.premium-stage-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(239,131,48,.18);
  color: var(--sun);
  flex: 0 0 auto;
}
.premium-stage-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.premium-stage-chip span:not(.premium-stage-icon) { display: block; color: var(--sun); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.premium-stage-chip strong { display: block; color: white; font-size: 17px; }
.premium-stage-chip small { display: block; color: rgba(255,255,255,.58); font-size: 12px; margin-top: 3px; line-height: 1.35; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 30px;
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(34,185,100,.32);
}
.btn-wa-premium { color: var(--ink-faint); text-decoration: none; font-size: 13px; font-weight: 700; padding: 7px; }
.btn-wa-premium:hover { color: var(--leaf-bright); }
.sticky-client-bar {
  position: sticky;
  top: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 32px;
  background: rgba(244,248,245,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.sticky-client-bar strong { display: block; font-size: 14px; }
.sticky-client-bar span { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.client-tabs { display: flex; gap: 5px; background: white; border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.client-tabs a { color: var(--ink-soft); text-decoration: none; padding: 8px 15px; border-radius: 9px; font-size: 13px; font-weight: 800; }
.client-tabs a:hover { background: var(--ground); color: var(--leaf); }
.premium-dashboard { max-width: 1280px; margin: 0 auto; padding: 32px 28px 80px; }
.premium-journey-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.premium-timeline-card, .premium-side-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(13,31,21,.04);
}
.premium-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.premium-card-head strong, .premium-side-card h3 { display: block; margin: 0; font-size: 15px; color: var(--ink); }
.premium-card-head span { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 3px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 11px; margin: 0; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: #dce9e2; }
.legend i.done { background: var(--leaf); }
.legend i.active { background: var(--sun); }
.premium-timeline .timeline-item {
  display: grid;
  grid-template-columns: 34px 34px minmax(0, 1fr) 32px auto;
  gap: 14px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
  position: relative;
  background: white;
}
.premium-timeline .timeline-item.current { background: linear-gradient(90deg, rgba(239,131,48,.08), transparent 74%); }
.premium-timeline .timeline-item.current::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sun); }
.premium-timeline .dot { width: 32px; height: 32px; font-weight: 800; }
.premium-timeline .timeline-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.premium-timeline .timeline-copy { color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.premium-timeline .timeline-date { font-family: 'JetBrains Mono', monospace; color: var(--ink-faint); font-size: 11px; align-self: center; }
.premium-sidebar { display: grid; gap: 16px; }
.premium-side-card h3 { padding: 15px 18px; border-bottom: 1px solid var(--border); }
.premium-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.premium-info-grid div { background: white; padding: 13px 16px; min-width: 0; }
.premium-info-grid span { display: block; color: var(--ink-faint); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; font-weight: 800; }
.premium-info-grid strong { display: block; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.premium-docs { padding: 0; gap: 0; }
.premium-docs .document-row { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 12px 16px; box-shadow: none; }
.premium-history { padding: 0; gap: 0; }
.premium-history .history-row { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
@media (max-width: 980px) {
  .client-hero-nav { padding: 18px 22px; }
  .client-hero-body { padding: 30px 20px 54px; }
  .premium-system-card { grid-template-columns: repeat(2, 1fr); }
  .premium-system-card div + div { border-left: 0; }
  .premium-system-card div:nth-child(even) { border-left: 1px solid rgba(255,255,255,.08); }
  .premium-system-card div:nth-child(n+3) { margin-top: 20px; }
  .premium-journey-grid { grid-template-columns: 1fr; }
  .sticky-client-bar { padding: 12px 16px; flex-wrap: wrap; }
  .premium-dashboard { padding: 24px 14px 60px; }
}
@media (max-width: 620px) {
  .client-user-chip { display: none; }
  .client-logo-wrap { width: 52px; height: 52px; }
  .client-brand strong { font-size: 14px; }
  .client-hero-body h1 { font-size: clamp(40px, 13vw, 58px); }
  .premium-system-card { padding: 22px 12px; }
  .premium-system-card strong { font-size: 18px; }
  .premium-stage-chip { align-items: flex-start; }
  .client-tabs { width: 100%; overflow-x: auto; }
  .client-tabs a { white-space: nowrap; }
  .premium-card-head { align-items: flex-start; flex-direction: column; }
  .premium-timeline .timeline-item { grid-template-columns: 30px 30px minmax(0,1fr) 30px; gap: 10px; padding: 14px 14px; }
  .premium-timeline .timeline-date { grid-column: 3 / 5; white-space: normal; }
  .premium-info-grid { grid-template-columns: 1fr; }
}
