
/* Authentication screens */
[hidden] {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}

.login-card {
  width: min(420px, 100%);
  padding: 36px;
  background: rgba(14, 22, 31, 0.96);
  color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.login-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  background: rgba(111, 215, 255, 0.12);
  border: 1px solid rgba(111, 215, 255, 0.3);
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 18px;
}

.login-brand span {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.6;
}

.login-heading {
  margin-bottom: 24px;
}

.login-heading h1 {
  margin: 0 0 8px;
}

.login-heading p {
  margin: 0;
  opacity: 0.65;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#login-form label {
  font-size: 13px;
  margin-top: 8px;
}

#login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 15, 23, 0.8);
  color: inherit;
  outline: none;
}

#login-form input:focus {
  border-color: rgba(111, 215, 255, 0.55);
}

#login-button {
  margin-top: 14px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.login-error {
  min-height: 20px;
  margin-top: 8px;
  font-size: 13px;
}
:root {
  color-scheme: dark;
  --bg: #050d14;
  --bg-2: #0b1722;
  --bg-3: #101d2b;
  --sidebar: #080f17;
  --panel: rgba(17, 26, 35, 0.9);
  --panel-2: rgba(20, 31, 42, 0.96);
  --panel-3: rgba(10, 20, 31, 0.95);
  --border: rgba(151, 173, 191, 0.14);
  --primary: #6fd7ff;
  --primary-2: #2bb3ff;
  --teal: #39f0b1;
  --pink: #f65cb4;
  --yellow: #f4d16e;
  --danger: #ff5f7c;
  --text: #edf7ff;
  --muted: #96a9bd;
  --icon-bg: rgba(255,255,255,0.03);
  --shadow: 0 20px 40px rgba(1, 5, 9, 0.42);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  color: #ffffff;
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 10% 0%, rgba(57, 108, 173, 0.22), transparent 22%),
    linear-gradient(180deg, #040b12 0%, #0b1320 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

button {
  font: inherit;
}

.dashboard-shell {
  width: min(1280px, calc(100vw - 74px));
  min-height: 860px;
  margin: 34px auto;
  background: rgba(14, 22, 31, 0.94);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: flex;
  overflow: hidden;
}

.sidebar {
  width: 235px;
  background: rgba(8, 15, 23, 0.96);
  border-right: 1px solid var(--border);
  padding: 18px 14px 22px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 16px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(111, 215, 255, 0.3), rgba(43, 179, 255, 0.75));
  border: 1px solid rgba(111, 215, 255, 0.28);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.sidebar-label {
  margin: 8px 12px 12px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: 180ms ease;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(111, 215, 255, 0.08);
  border-color: rgba(111, 215, 255, 0.14);
  color: var(--text);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg,
.search-box svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px 16px;
  background: rgba(11, 19, 27, 0.9);
  border-bottom: 1px solid var(--border);
}

.search-box {
  flex: 1;
  max-width: 500px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(24, 36, 47, 0.8);
  border: 1px solid var(--border);
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(25, 36, 46, 0.8);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(25, 36, 46, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
}

.lang-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.lang-option.active {
  background: rgba(111, 215, 255, 0.08);
  border-color: rgba(111, 215, 255, 0.18);
  color: var(--text);
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 7px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(25, 36, 46, 0.8);
  color: var(--text);
  font-size: 0.8rem;
}

.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(111, 215, 255, 0.28), rgba(80, 119, 255, 0.7));
  border: 1px solid rgba(111, 215, 255, 0.3);
  font-size: 0.68rem;
  font-weight: 700;
}

.page-content {
  flex: 1;
  padding: 28px 20px 22px;
  min-width: 0;
}

.progress-panel {
  margin-bottom: 18px;
}

.progress-card {
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.98), rgba(11, 18, 27, 0.96));
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.progress-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
  letter-spacing: -0.05em;
}

.overall-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(111, 215, 255, 0.09);
  border: 1px solid rgba(111, 215, 255, 0.18);
  color: var(--text);
}

.progress-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.progress-summary-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-value {
  font-size: clamp(2rem, 1vw + 1.2rem, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.progress-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #39f0b1 0%, #6fd7ff 100%);
}

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

.phase-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(12, 19, 27, 0.7);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.phase-item:hover {
  border-color: rgba(111, 215, 255, 0.24);
}

.phase-item.is-open {
  background: rgba(12, 19, 27, 0.9);
  border-color: rgba(111, 215, 255, 0.2);
}

.phase-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.phase-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.phase-count {
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
}

.phase-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.status-ok {
  background: rgba(57, 240, 177, 0.1);
  border-color: rgba(57, 240, 177, 0.25);
  color: #d8ffef;
}

.status-progress {
  background: rgba(111, 215, 255, 0.1);
  border-color: rgba(111, 215, 255, 0.24);
  color: #dff7ff;
}

.status-pending {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(151, 173, 191, 0.2);
  color: var(--muted);
}

.phase-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phase-progress-track {
  flex: 1;
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.phase-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fd7ff 0%, #39f0b1 100%);
  transition: width 0.3s ease;
}

.phase-progress-value {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
}

.phase-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.phase-item.is-open .phase-chevron {
  transform: rotate(180deg);
  background: rgba(111, 215, 255, 0.08);
}

.phase-content {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 14px 14px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.35;
}

.check-item.is-pending {
  color: var(--muted);
}

.check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(151, 173, 191, 0.28);
  background: rgba(255, 255, 255, 0.025);
  color: #9ff9d4;
  font-size: 0.7rem;
  font-weight: 900;
}

.check-box.checked {
  background: rgba(57, 240, 177, 0.1);
  border-color: rgba(57, 240, 177, 0.3);
}

.milestone-card {
  border: 1px solid rgba(111, 215, 255, 0.2);
  background: linear-gradient(180deg, rgba(12, 23, 31, 0.9), rgba(16, 24, 35, 0.95));
  border-radius: 16px;
  padding: 16px 18px;
}

.milestone-kicker {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  margin-bottom: 8px;
}

.milestone-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.milestone-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2.0rem, 1.4vw + 1.2rem, 2.7rem);
  letter-spacing: -0.06em;
}

.crumbs {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.metric-row,
.secondary-row,
.panel-row {
  display: grid;
  gap: 18px;
}

.metric-row {
  grid-template-columns: 1.15fr 1fr 1fr;
}

.secondary-row {
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.panel-row {
  grid-template-columns: 1.35fr 1fr;
  margin-top: 18px;
}

.metric-card,
.panel {
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.98), rgba(11, 18, 27, 0.96));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 18px 18px 16px;
  min-height: 184px;
}

.metric-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.metric-topline.single-row {
  align-items: flex-start;
}

.metric-topline.compact-topline {
  margin-bottom: 6px;
}

.metric-value-strong {
  font-size: clamp(1.9rem, 1.2vw + 1.1rem, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.delta.positive {
  background: rgba(57, 240, 177, 0.09);
  border: 1px solid rgba(57, 240, 177, 0.18);
  color: #d8ffef;
}

.delta.negative {
  background: rgba(255, 95, 124, 0.08);
  border: 1px solid rgba(255, 95, 124, 0.18);
  color: #ffd6df;
}

.metric-meta {
  color: var(--muted);
  font-size: 0.77rem;
  margin-bottom: 14px;
}

.metric-donut {
  display: flex;
  flex-direction: column;
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  flex: 1;
}

.donut-chart {
  position: relative;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: conic-gradient(
    var(--pink) 0 33%,
    var(--primary) 33% 64%,
    var(--yellow) 64% 100%
  );
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.donut-chart::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: rgba(16, 25, 35, 0.98);
  border: 1px solid rgba(255,255,255,0.02);
}

.donut-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.donut-center .label {
  color: var(--muted);
  font-size: 0.72rem;
}

.donut-center strong {
  font-size: 1.1rem;
  letter-spacing: -0.06em;
}

.legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.legend-item strong {
  color: var(--text);
  font-size: 0.72rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.dot.pink { background: var(--pink); }
.dot.cyan { background: var(--primary); }
.dot.yellow { background: var(--yellow); }

.metric-bars {
  display: flex;
  flex-direction: column;
}

.bars-chart {
  display: flex;
  align-items: end;
  justify-content: stretch;
  gap: 6px;
  height: 90px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.bars-chart span {
  display: block;
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(111, 215, 255, 0.95), rgba(111, 215, 255, 0.2));
  min-height: 14%;
}

.metric-line-card {
  display: flex;
  flex-direction: column;
}

.mini-line-chart {
  position: relative;
  height: 104px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.mini-line-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.metric-compact {
  padding: 18px 18px 14px;
  min-height: 150px;
}

.progress-rail {
  position: relative;
  height: 9px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 18px;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.progress-fill.green {
  background: linear-gradient(90deg, #39f0b1 0%, #8cf4d2 100%);
}

.goal-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
}

.goal-value {
  color: var(--text);
}

.avatar-strip {
  display: flex;
  align-items: center;
  margin-top: 18px;
}

.avatar-strip .avatar {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border: 2px solid rgba(12, 19, 27, 0.9);
}

.avatar-strip .avatar:first-child {
  margin-left: 0;
}

.avatar-a { background: linear-gradient(135deg, #f7b99a, #d1744f); }
.avatar-b { background: linear-gradient(135deg, #7ee0ff, #3f9ef4); }
.avatar-c { background: linear-gradient(135deg, #a7f0bb, #41c57d); }
.avatar-d { background: linear-gradient(135deg, #f1d28a, #d59b49); }

.avatar-count {
  margin-left: 10px;
  font-size: 0.72rem;
  color: var(--muted);
}

.panel {
  padding: 18px 18px 14px;
  min-height: 280px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-kicker {
  margin: 0 0 6px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.icon-control {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(25, 36, 46, 0.75);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.3rem;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cat-tab {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(25, 36, 46, 0.7);
  color: var(--muted);
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.75rem;
}

.cat-tab.active {
  background: rgba(111, 215, 255, 0.08);
  border-color: rgba(111, 215, 255, 0.2);
  color: var(--text);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.orders-table {
  table-layout: fixed;
}

.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
  width: 58%;
}

.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
  width: 13%;
}

.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
  width: 15%;
}

.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
  width: 14%;
}

.orders-table td {
  vertical-align: middle;
}

.product-cell {
  min-width: 0;
}

.product-name {
  min-width: 0;
  overflow: hidden;
}

.product-name strong {
  display: block;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orders-table td:nth-child(2),
.orders-table td:nth-child(3),
.orders-table td:nth-child(4) {
  white-space: nowrap;
}
.orders-table thead th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.orders-table tbody td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-thumb {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(111,215,255,0.28), rgba(43,179,255,0.75));
  border: 1px solid rgba(111,215,255,0.2);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-name strong {
  font-size: 0.82rem;
}

.product-name span {
  color: var(--muted);
  font-size: 0.67rem;
}

.mini-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.summary-number {
  font-size: clamp(2rem, 1.4vw + 1.2rem, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.summary-caption {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.chart-box {
  width: 100%;
  height: 160px;
  background: linear-gradient(180deg, rgba(16, 25, 35, 0.6), rgba(12, 20, 31, 0.9));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 8px;
}

#best-discount-chart {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 1200px) {
  .dashboard-shell {
    width: min(1200px, calc(100vw - 30px));
  }
}

@media (max-width: 980px) {
  .dashboard-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .metric-row,
  .secondary-row,
  .panel-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-shell {
    width: calc(100vw - 12px);
    margin: 8px auto;
    border-radius: 20px;
  }

  .topbar {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .search-box {
    max-width: none;
    width: 100%;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .page-content {
    padding: 18px 14px 16px;
  }

  .donut-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td {
    display: block;
    width: 100%;
  }

  .orders-table tbody tr {
    padding: 8px 0;
  }

  .orders-table tbody td {
    border: none;
    padding: 4px 0;
  }
}
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #080b12;
}

.login-card {
  width: min(420px, 100%);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #10141d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}

.login-brand-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #6fd7ff;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.login-brand strong {
  display: block;
  font-size: 18px;
}

.login-brand span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.55;
}

.login-heading {
  margin-bottom: 26px;
}

.login-heading h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.login-heading p {
  margin: 0;
  opacity: 0.6;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#login-form label {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.75;
}

#login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
  background: #0b0f17;
  color: inherit;
  font: inherit;
}

#login-form input:focus {
  border-color: #6fd7ff;
}

#login-button {
  margin-top: 16px;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: #6fd7ff;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

#login-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.login-error {
  min-height: 20px;
  margin-top: 8px;
  color: #ff7d8d;
  font-size: 13px;
}\n
.dashboard-shell,
.dashboard-shell h1,
.dashboard-shell h2,
.dashboard-shell h3,
.dashboard-shell h4,
.dashboard-shell p,
.dashboard-shell span,
.dashboard-shell label,
.dashboard-shell div {
  color: var(--text);
}

.dashboard-shell .sidebar-label,
.dashboard-shell .summary-label,
.dashboard-shell .crumbs,
.dashboard-shell .phase-progress-value,
.dashboard-shell .checklist-header,
.dashboard-shell .milestone-card p {
  color: var(--muted);
}

/* Logout button */
.logout-button {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.logout-button:hover {
  border-color: rgba(111, 215, 255, 0.35);
  background: rgba(111, 215, 255, 0.08);
}

.logout-button:active {
  transform: translateY(1px);
}

.logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

/* DropSet — Opportunity Cards */

.opportunity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.opportunity-card {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.opportunity-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.opportunity-product {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.opportunity-info {
  min-width: 0;
  flex: 1;
}

.opportunity-info strong {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 650;
}

.opportunity-info span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
}

.opportunity-score {
  flex: 0 0 auto;
  min-width: 62px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.opportunity-score small {
  display: block;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.opportunity-score strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
}

.opportunity-score.exceptional strong {
  color: var(--accent);
}

.opportunity-score.great strong {
  color: #8de3ff;
}

.opportunity-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.opportunity-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opportunity-original-price {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1;
}

.opportunity-original-price span {
  color: var(--muted);
  text-decoration: line-through;
}

.opportunity-current-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.opportunity-current-price small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.opportunity-current-price strong {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 750;
}

.opportunity-discount {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(131, 217, 168, 0.09);
  color: #83d9a8;
  font-size: 0.65rem;
  font-weight: 750;
  white-space: nowrap;
}

.opportunity-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(111, 215, 255, 0.22);
  border-radius: 8px;
  background: rgba(111, 215, 255, 0.07);
  color: var(--text);
  text-decoration: none;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.opportunity-button:hover {
  background: rgba(111, 215, 255, 0.14);
  border-color: rgba(111, 215, 255, 0.4);
}

.opportunity-empty {
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .opportunity-card {
    padding: 14px;
  }

  .opportunity-top {
    gap: 10px;
  }

  .opportunity-score {
    min-width: 52px;
  }

  .opportunity-bottom {
    align-items: center;
  }
}

