/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --bg: #07101d;
  --surface: #0c1727;
  --surface-2: #101e31;
  --surface-3: #14243a;
  --border: #223651;
  --border-bright: #315077;
  --text: #edf3fb;
  --muted: #8494aa;
  --muted-2: #61728a;
  --accent: #7566ff;
  --cyan: #64ded0;
  --green: #55d98c;
  --amber: #f2b43e;
  --red: #ff6d73;
  --blue: #8ca6ff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  min-width: 320px;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 14px;
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.language-toggle {
  border: 1px solid var(--border);
  min-height: 30px;
  color: var(--muted);
  background: #0f1d30d1;
  border-radius: 6px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
}

.language-toggle:hover {
  border-color: var(--border-bright);
  color: var(--text);
}

.icon {
  flex: none;
  width: 18px;
  height: 18px;
}

.brand-mark {
  color: #fff;
  background: linear-gradient(145deg, #7f73ff, #4f43dc);
  border-radius: 12px;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 20px;
  font-weight: 800;
  display: grid;
  box-shadow: 0 12px 30px #5648ff3d;
}

.brand-mark.small {
  border-radius: 9px;
  width: 30px;
  height: 30px;
  font-size: 15px;
}

.eyebrow {
  color: #8495b0;
  letter-spacing: .16em;
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 700;
}

.environment-badge {
  letter-spacing: .08em;
  vertical-align: 2px;
  border: 1px solid;
  border-radius: 4px;
  margin-left: 7px;
  padding: 3px 5px;
  font-size: 8px;
  display: inline-flex;
}

.environment-badge.mock {
  color: var(--amber);
}

.environment-badge.upcloud {
  color: var(--cyan);
}

.muted {
  color: var(--muted);
}

.app-shell {
  background: radial-gradient(circle at 70% -20%, #465d9e2b, transparent 38%), var(--bg);
  height: 100vh;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: #07101db8;
  flex-direction: column;
  flex: 0 0 232px;
  width: 232px;
  height: 100vh;
  min-height: 0;
  padding: 22px 12px 14px;
  display: flex;
  overflow-y: auto;
}

.brand {
  letter-spacing: -.02em;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 750;
  display: flex;
}

.nav-list {
  gap: 5px;
  margin-top: 38px;
  display: grid;
}

.nav-item {
  height: 44px;
  color: var(--muted);
  border: 1px solid #0000;
  border-radius: 8px;
  align-items: center;
  gap: 13px;
  padding: 0 12px;
  transition: color .18s, background .18s, border .18s;
  display: flex;
}

.nav-item:hover {
  color: var(--text);
  background: #ffffff09;
}

.nav-item.active {
  color: #a9a1ff;
  background: #5044d64d;
  border-color: #7566ff38;
}

.sidebar-bottom {
  gap: 18px;
  margin-top: auto;
  display: grid;
}

.control-status {
  border: 1px solid var(--border);
  background: #0b1829cc;
  border-radius: 8px;
  align-items: center;
  gap: 11px;
  padding: 14px;
  display: flex;
}

.control-status small, .profile small {
  color: var(--muted);
  font-size: 11px;
  display: block;
}

.control-status strong {
  color: var(--green);
  margin-top: 3px;
  font-size: 13px;
  display: block;
}

.status-dot {
  background: var(--green);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  display: inline-block;
  box-shadow: 0 0 0 5px #55d98c14;
}

.profile {
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  display: flex;
}

.avatar {
  color: #dcd9ff;
  background: #423ab1;
  border-radius: 50%;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
}

.profile strong {
  font-size: 12px;
  display: block;
}

.profile-chevron {
  color: var(--muted);
  margin-left: auto;
  font-size: 18px;
}

.main-content {
  flex: 1;
  min-width: 0;
  height: 100vh;
  padding: 25px 30px 40px;
  overflow: hidden auto;
}

.topbar {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 24px;
  display: flex;
}

.view-description {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 12px;
}

.main-content > .panel, .main-content > .content-grid {
  margin-top: 18px;
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  letter-spacing: -.04em;
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1;
}

h2 {
  letter-spacing: -.015em;
  margin-bottom: 5px;
  font-size: 16px;
}

h2 span {
  color: var(--muted);
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
}

.panel-header p {
  color: var(--muted-2);
  margin: 0;
  font-size: 12px;
}

.topbar-actions, .table-tools, .row-actions, .modal-actions {
  align-items: center;
  gap: 12px;
  display: flex;
}

.primary-button, .secondary-button, .filter-button, .refresh-button, .ready-button, .select-button {
  min-height: 38px;
  color: var(--text);
  border: 1px solid #0000;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 650;
  transition: transform .18s, background .18s, border .18s, opacity .18s;
  display: inline-flex;
}

.primary-button {
  background: linear-gradient(135deg, #8173ff, #5c50ec);
  box-shadow: 0 10px 24px #5a4cef33;
}

.primary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled, .secondary-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.secondary-button, .filter-button, .refresh-button, .select-button {
  border-color: var(--border);
  color: #c1cddd;
  background: #0f1d30d1;
}

.refresh-button {
  color: var(--muted);
  background: none;
  border-color: #0000;
  font-weight: 500;
}

.refresh-button:hover, .filter-button:hover, .secondary-button:hover {
  color: var(--text);
  border-color: var(--border-bright);
}

.full-width {
  width: 100%;
}

.notice {
  color: var(--cyan);
  background: #64ded012;
  border: 1px solid #64ded03d;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 11px 14px;
  font-size: 12px;
  display: flex;
}

.notice button {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  font-size: 18px;
}

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

.metric-card {
  border: 1px solid var(--border);
  background: #0c1727d6;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  min-height: 122px;
  padding: 18px;
  display: flex;
}

.metric-card p {
  color: #a6b4c7;
  margin: 0 0 13px;
  font-size: 12px;
}

.metric-card strong {
  letter-spacing: -.06em;
  font-size: 32px;
  line-height: .9;
  display: block;
}

.metric-card span {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 650;
  display: block;
}

.metric-card.green strong, .metric-card.green span {
  color: var(--green);
}

.metric-card.amber strong, .metric-card.amber span {
  color: var(--amber);
}

.metric-card.red strong, .metric-card.red span {
  color: var(--red);
}

.metric-card.blue strong, .metric-card.blue span {
  color: var(--blue);
}

.metric-icon {
  opacity: .9;
  border: 1px solid;
  border-radius: 50%;
  place-items: center;
  width: 46px;
  height: 46px;
  display: grid;
}

.metric-card.green .metric-icon {
  color: var(--green);
}

.metric-card.amber .metric-icon {
  color: var(--amber);
}

.metric-card.red .metric-icon {
  color: var(--red);
}

.metric-card.blue .metric-icon {
  color: var(--blue);
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 12px;
  display: grid;
}

.overview-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.overview-grid {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 12px;
  margin-top: 12px;
  display: grid;
}

.overview-focus-panel {
  min-height: 220px;
}

.overview-focus-list {
  border-top: 1px solid var(--border);
}

.overview-focus-item {
  border-bottom: 1px solid #223651b8;
  align-items: center;
  gap: 12px;
  padding: 18px;
  display: flex;
}

.overview-focus-item:last-child {
  border-bottom: 0;
}

.overview-focus-item .status-dot {
  flex: none;
}

.overview-focus-item .status-dot.red {
  background: var(--red);
  box-shadow: 0 0 0 5px #ff6d7314;
}

.overview-focus-item .status-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 0 5px #f2b43e14;
}

.overview-focus-item strong {
  color: #dce6f4;
  font-size: 12px;
  display: block;
}

.overview-focus-item small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 10px;
  display: block;
}

.panel-link {
  color: #a69dff;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 650;
}

.panel-link:hover {
  color: var(--text);
}

.orders-panel table {
  min-width: 1020px;
}

.data-panel table {
  min-width: 760px;
}

.billing-delete-button {
  color: var(--red);
  background: #ff6d730f;
  border: 1px solid #ff6d7373;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 10px;
}

.billing-delete-button:hover {
  border-color: var(--red);
  background: #ff6d731f;
}

.billing-delete-button:disabled {
  cursor: wait;
  opacity: .55;
}

.product-settings-panel {
  margin-bottom: 0;
}

.product-settings-list {
  border-top: 1px solid var(--border);
}

.product-card {
  border-bottom: 1px solid #223651b8;
  padding: 18px;
}

.product-card:last-child {
  border-bottom: 0;
}

.product-card-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  display: flex;
}

.product-card-identity {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.product-card-mark {
  color: #c4beff;
  background: #5044d638;
  border: 1px solid #7566ff8c;
  border-radius: 10px;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 15px;
  font-weight: 750;
  display: grid;
}

.product-card-identity .eyebrow {
  margin-bottom: 4px;
}

.product-card-identity h3 {
  color: var(--text);
  letter-spacing: -.02em;
  margin: 0;
  font-size: 16px;
}

.product-card-identity p:last-child {
  max-width: 500px;
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.45;
}

.product-card-actions {
  flex: none;
  align-items: center;
  gap: 10px;
  display: flex;
}

.product-card-actions .status-badge {
  min-height: 28px;
  padding: 5px 8px;
}

.product-card-details {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  display: grid;
}

.product-card-details > div {
  background: #0915256b;
  border: 1px solid #223651cc;
  border-radius: 6px;
  min-width: 0;
  padding: 12px;
}

.product-card-details span, .product-edit-summary span {
  color: var(--muted-2);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 9px;
  display: block;
}

.product-card-details strong {
  color: #dce6f4;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
  display: block;
  overflow: hidden;
}

.product-card-details small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  font-size: 10px;
  display: block;
  overflow: hidden;
}

.product-card-features {
  grid-column: 1 / -1;
}

.product-card-features strong {
  white-space: normal;
}

.product-edit-summary {
  border: 1px solid var(--border);
  background: #07101d57;
  border-radius: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 13px;
  display: grid;
}

.product-edit-summary > div {
  min-width: 0;
}

.product-edit-summary strong {
  color: #dce6f4;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
  font-size: 11px;
  display: block;
  overflow: hidden;
}

.product-form .product-active {
  white-space: nowrap;
  align-items: center;
  gap: 7px;
  height: 40px;
  display: flex;
}

.product-active input {
  accent-color: var(--accent);
}

.panel {
  border: 1px solid var(--border);
  background: #0b1727db;
  border-radius: 7px;
  overflow: hidden;
}

.panel-empty {
  margin: 0;
  padding: 28px 18px;
}

.panel-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
  padding: 19px 18px 16px;
  display: flex;
}

.panel-header.compact {
  align-items: flex-start;
}

.table-tools {
  align-items: center;
}

.search-box {
  border: 1px solid var(--border);
  width: 214px;
  height: 34px;
  color: var(--muted);
  background: #0b1728;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  display: flex;
}

.search-box input {
  width: 100%;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  font-size: 11px;
}

.filter-select {
  border: 1px solid var(--border);
  min-height: 34px;
  color: var(--muted);
  background: #0f1d30d1;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  display: flex;
}

.filter-select select {
  color: #c1cddd;
  background: none;
  border: 0;
  outline: 0;
  font-size: 11px;
}

.filter-select option {
  color: var(--text);
  background: var(--surface-2);
}

.filter-button {
  min-height: 34px;
  padding: 0 11px;
}

.table-wrap {
  border-top: 1px solid var(--border);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
}

th, td {
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #223651b8;
  padding: 13px 17px;
}

th {
  color: #71839a;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

td {
  color: #bdc9d9;
  font-size: 12px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #ffffff05;
}

td strong {
  color: #dce6f4;
  font-weight: 650;
  display: block;
}

td small {
  color: var(--muted-2);
  margin-top: 4px;
  font-size: 10px;
  display: block;
}

.mono {
  letter-spacing: -.02em;
  font-family: SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.muted-cell {
  color: var(--muted);
}

.status-badge {
  border: 1px solid;
  border-radius: 5px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
}

.status-badge .status-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
  background: currentColor;
}

.status-running, .status-active, .status-paid {
  color: var(--green);
  background: #55d98c14;
}

.status-provisioning, .status-pending, .status-past_due {
  color: var(--amber);
  background: #f2b43e14;
}

.status-failed, .status-refunded {
  color: var(--red);
  background: #ff6d7314;
}

.status-cancelled, .status-deleted {
  color: #aab5c4;
  background: #aab5c414;
}

.status-deleting {
  color: var(--blue);
  background: #8ca6ff14;
}

.status-stopped {
  color: #a9b4c3;
  background: #a9b4c314;
}

.ready-button {
  border-color: var(--cyan);
  min-height: 28px;
  color: var(--cyan);
  padding: 0 9px;
  font-size: 10px;
}

.ready-button:hover {
  background: #64ded01a;
}

.action-menu {
  position: relative;
}

.action-menu summary {
  height: 29px;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 5px;
  align-items: center;
  gap: 3px;
  padding: 0 7px;
  list-style: none;
  display: flex;
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.action-menu summary span {
  background: currentColor;
  border-radius: 50%;
  width: 3px;
  height: 3px;
  display: block;
}

.action-menu summary:hover {
  border-color: var(--border);
  color: var(--text);
}

.action-menu summary em {
  color: var(--amber);
  margin-left: 4px;
  font-size: 10px;
  font-style: normal;
}

.action-popover {
  z-index: 5;
  border: 1px solid var(--border-bright);
  background: #101e31;
  border-radius: 6px;
  width: 128px;
  padding: 5px;
  position: absolute;
  top: 34px;
  right: 0;
  box-shadow: 0 16px 30px #0000004d;
}

.action-popover button {
  color: #cbd6e5;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 4px;
  width: 100%;
  padding: 8px 9px;
  font-size: 11px;
  display: block;
}

.action-popover button:hover {
  color: #fff;
  background: #ffffff0f;
}

.action-popover .danger-action {
  color: var(--red);
}

.action-popover button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.table-link {
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
}

.table-link:hover strong {
  color: var(--cyan);
}

.details-button {
  border: 1px solid var(--border);
  min-height: 28px;
  color: var(--muted);
  background: none;
  border-radius: 5px;
  padding: 0 8px;
  font-size: 10px;
}

.details-button:hover {
  color: var(--text);
  border-color: var(--border-bright);
}

.empty-cell {
  color: var(--muted);
  text-align: center;
  padding: 42px 20px;
}

.activity-panel {
  flex-direction: column;
  min-height: 590px;
  display: flex;
}

.activity-panel .timeline {
  max-height: 520px;
  overflow-y: auto;
}

.select-button {
  min-height: 32px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 500;
}

.select-button .icon {
  width: 14px;
}

.activity-panel-compact {
  min-height: 0;
}

.activity-panel-compact .timeline {
  flex: 0 auto;
  max-height: 255px;
  overflow-y: auto;
}

.activity-panel-compact .timeline-item {
  padding-top: 10px;
  padding-bottom: 13px;
}

.timeline {
  flex: 1;
  padding: 8px 18px 20px;
}

.timeline-item {
  border-left: 1px solid var(--border-bright);
  gap: 13px;
  padding: 12px 0 19px 22px;
  display: flex;
  position: relative;
}

.timeline-item:last-child {
  border-left-color: #0000;
}

.timeline-dot {
  border: 2px solid var(--surface);
  background: var(--cyan);
  border-radius: 50%;
  width: 9px;
  height: 9px;
  position: absolute;
  top: 15px;
  left: -5px;
}

.timeline-dot.info {
  background: var(--blue);
}

.timeline-dot.success {
  background: var(--green);
}

.timeline-dot.warning {
  background: var(--amber);
}

.timeline-dot.error {
  background: var(--red);
}

.timeline-item strong {
  color: #d6e1ef;
  max-width: 220px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  display: block;
}

.timeline-item small {
  color: var(--muted-2);
  margin-top: 5px;
  font-size: 10px;
  display: block;
}

.activity-link {
  border-top: 1px solid var(--border);
  color: #9f94ff;
  margin: 0 18px 16px;
  padding-top: 15px;
  font-size: 11px;
  display: block;
}

.activity-link span {
  margin-left: 4px;
}

.empty-state {
  color: var(--muted);
  font-size: 12px;
}

.modal-backdrop {
  z-index: 20;
  background: #02080fbd;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.modal {
  border: 1px solid var(--border-bright);
  background: #0d1b2e;
  border-radius: 9px;
  width: min(100%, 460px);
  box-shadow: 0 30px 80px #0006;
}

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

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.icon-button {
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
}

.icon-button:hover {
  color: var(--text);
}

.order-form {
  gap: 16px;
  padding: 22px;
  display: grid;
}

.order-form label, .login-form label {
  color: #b4c1d1;
  gap: 7px;
  font-size: 11px;
  font-weight: 650;
  display: grid;
}

.order-form input, .order-form select, .login-form input {
  border: 1px solid var(--border);
  height: 40px;
  color: var(--text);
  background: #091525;
  border-radius: 6px;
  outline: 0;
  padding: 0 11px;
}

.order-form input:focus, .order-form select:focus, .login-form input:focus {
  border-color: #6f64ef;
  box-shadow: 0 0 0 3px #6f64ef24;
}

.form-error {
  color: var(--red);
  margin: 0;
  font-size: 12px;
}

.product-modal {
  width: min(100%, 760px);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.product-form {
  gap: 16px;
  padding: 22px;
  display: grid;
}

.product-form-section {
  border: 1px solid var(--border);
  background: #07101d4d;
  border-radius: 8px;
  gap: 14px;
  padding: 16px;
  display: grid;
}

.product-form-section-heading {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 12px;
  display: flex;
}

.product-form-section-heading h3 {
  color: var(--text);
  margin: 2px 0 0;
  font-size: 14px;
}

.product-form-section-heading p:last-child {
  max-width: 360px;
  color: var(--muted);
  text-align: right;
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

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

.product-form label {
  color: #b4c1d1;
  gap: 7px;
  font-size: 11px;
  font-weight: 650;
  display: grid;
}

.product-form input, .product-form select {
  border: 1px solid var(--border);
  width: 100%;
  height: 40px;
  color: var(--text);
  background: #091525;
  border-radius: 6px;
  outline: 0;
  padding: 0 11px;
  font-size: 12px;
}

.product-form input:focus, .product-form select:focus {
  border-color: #6f64ef;
  box-shadow: 0 0 0 3px #6f64ef24;
}

.product-form select {
  cursor: pointer;
}

.product-config-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.product-config-summary > div {
  border: 1px solid var(--border);
  background: #07101d73;
  border-radius: 6px;
  min-width: 0;
  padding: 11px;
}

.product-config-summary span {
  color: var(--muted-2);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 9px;
  display: block;
}

.product-config-summary strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
  display: block;
  overflow: hidden;
}

.product-modal {
  background: linear-gradient(155deg, #10213a 0%, #0b182b 58%, #091423 100%);
  border-color: #5070a0b3;
  border-radius: 14px;
  flex-direction: column;
  width: min(100%, 860px);
  max-height: calc(100dvh - 32px);
  display: flex;
  overflow: hidden;
  box-shadow: 0 32px 90px #00081494, 0 0 0 1px #7566ff14;
}

.product-modal .modal-header {
  background: linear-gradient(90deg, #122540e0, #0d1b2f66);
  flex: none;
  padding: 20px 24px;
}

.product-modal .modal-header h2 {
  letter-spacing: -.035em;
  font-size: 22px;
}

.modal-subtitle {
  color: var(--muted);
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.4;
}

.product-modal .product-form {
  scrollbar-color: #355174 transparent;
  grid-auto-rows: max-content;
  align-content: start;
  min-height: 0;
  padding: 20px 24px 0;
  overflow-y: auto;
}

.product-modal .product-form::-webkit-scrollbar {
  width: 8px;
}

.product-modal .product-form::-webkit-scrollbar-thumb {
  background: #355174 padding-box padding-box;
  border: 2px solid #0000;
  border-radius: 8px;
}

.product-modal .modal-actions {
  z-index: 2;
  background: linear-gradient(#0b182abd, #0b182b 42%);
  border-top: 1px solid #315077d9;
  justify-content: flex-end;
  margin: 0 -24px;
  padding: 14px 24px 18px;
  position: sticky;
  bottom: 0;
}

.product-form-section {
  background: linear-gradient(145deg, #14243abd, #07101d6b);
  border-color: #315077d1;
  border-radius: 12px;
  min-height: max-content;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px #ffffff06;
}

.product-form-section:before {
  content: "";
  background: linear-gradient(180deg, var(--accent), var(--cyan));
  opacity: .82;
  width: 3px;
  position: absolute;
  inset: 0 auto 0 0;
}

.product-form-section-heading {
  align-items: center;
  gap: 24px;
  padding-bottom: 14px;
}

.product-form-section-heading h3 {
  letter-spacing: -.02em;
  font-size: 15px;
}

.product-form-section-heading p:last-child {
  max-width: 340px;
}

.product-form-grid {
  gap: 16px;
}

.product-field-wide {
  grid-column: 1 / -1;
}

.product-form label {
  color: #aebdd0;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10px;
}

.product-form input, .product-form select, .product-form textarea {
  background: #06101db3;
  border-color: #315077eb;
  border-radius: 8px;
  font-size: 12px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.product-form input, .product-form select {
  height: 44px;
}

.product-form textarea {
  min-height: 72px;
  color: var(--text);
  resize: vertical;
  outline: 0;
  padding: 10px 11px;
  line-height: 1.45;
}

.product-form input:hover, .product-form select:hover, .product-form textarea:hover {
  background: #081424db;
  border-color: #3c5f89;
}

.product-form input:focus, .product-form select:focus, .product-form textarea:focus {
  background: #091628f0;
  border-color: #7d72ff;
  box-shadow: 0 0 0 3px #6f64ef29, 0 8px 18px #00000024;
}

.product-plan-select {
  max-width: none;
}

.product-plan-select select {
  font-weight: 650;
}

.product-config-summary {
  gap: 10px;
}

.product-config-summary > div {
  background: #06101d7a;
  border-color: #315077c7;
  border-radius: 8px;
  padding: 12px;
}

.product-config-summary > div:first-child {
  background: linear-gradient(145deg, #64ded017, #06101d7a);
  border-color: #64ded04d;
}

.product-config-summary strong {
  font-variant-numeric: tabular-nums;
}

.product-form .product-active {
  background: #06101d7a;
  border: 1px solid #315077c7;
  border-radius: 8px;
  align-self: end;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
}

.product-form .product-active input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: none;
  margin: 0;
}

.product-form .form-error {
  background: #ff6d7314;
  border: 1px solid #ff6d7352;
  border-radius: 8px;
  padding: 11px 13px;
}

.product-modal .primary-button, .product-modal .secondary-button {
  border-radius: 8px;
  min-height: 40px;
  padding: 0 16px;
}

.form-hint, .settings-note {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.settings-access-panel {
  overflow: hidden;
}

.settings-access-panel .panel-header {
  align-items: center;
}

.settings-access-panel .panel-header h2 {
  margin: 0 0 5px;
  font-size: 17px;
}

.settings-access-panel .panel-header p:last-child {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.settings-access-status {
  border: 1px solid;
  border-radius: 6px;
  flex: none;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 700;
}

.settings-access-status.enabled {
  color: var(--amber);
  background: #f6be4a14;
}

.settings-access-status.disabled {
  color: var(--green);
  background: #55d98c14;
}

.settings-access-form {
  gap: 12px;
  padding: 0 18px 17px;
  display: grid;
}

.settings-access-toggle {
  border: 1px solid var(--border);
  cursor: pointer;
  background: #07101d57;
  border-radius: 7px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: flex;
}

.settings-access-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: none;
  margin: 1px 0 0;
}

.settings-access-toggle span, .settings-access-code {
  gap: 5px;
  display: grid;
}

.settings-access-toggle strong {
  color: var(--text);
  font-size: 12px;
}

.settings-access-code {
  color: #b4c1d1;
  max-width: 520px;
  font-size: 11px;
  font-weight: 650;
}

.settings-access-code input {
  border: 1px solid var(--border);
  height: 42px;
  color: var(--text);
  background: #091525;
  border-radius: 7px;
  outline: 0;
  padding: 0 11px;
  font-size: 12px;
}

.settings-access-code input:focus {
  border-color: #6f64ef;
  box-shadow: 0 0 0 3px #6f64ef24;
}

.settings-access-footer {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.settings-access-footer .form-hint {
  font-size: 11px;
}

.settings-page {
  gap: 14px;
  max-width: 1180px;
  margin-top: 18px;
  display: grid;
}

.settings-summary {
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px;
  display: flex;
}

.settings-summary h2 {
  margin: 3px 0 7px;
  font-size: 18px;
}

.settings-summary p:last-child {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.settings-summary-status {
  border: 1px solid;
  border-radius: 6px;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  font-size: 11px;
  font-weight: 650;
  display: inline-flex;
}

.settings-summary-status.ready {
  color: var(--green);
  background: #55d98c12;
}

.settings-summary-status.needs-attention {
  color: var(--red);
  background: #ff6d7312;
}

.settings-summary-status .status-dot {
  width: 7px;
  height: 7px;
  box-shadow: none;
  background: currentColor;
}

.settings-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  display: grid;
}

.settings-group .panel-header {
  padding: 17px 18px 14px;
}

.settings-group .panel-header h2 {
  margin: 0 0 5px;
  font-size: 15px;
}

.settings-group .panel-header p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.settings-count {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 650;
}

.settings-list {
  gap: 8px;
  padding: 0 18px 18px;
  display: grid;
}

.settings-item {
  border: 1px solid var(--border);
  background: #07101d57;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 11px 12px;
  display: flex;
}

.settings-item > div:first-child {
  min-width: 0;
}

.settings-item span {
  color: var(--muted-2);
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 9px;
  display: block;
}

.settings-item strong {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  font-size: 11px;
  display: block;
  overflow: hidden;
}

.settings-item-value {
  text-align: right;
  flex: 0 48%;
  min-width: 0;
}

.settings-item-value strong {
  color: #c1cddd;
  font-family: SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.settings-status {
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 4px;
  padding: 3px 6px;
  font-weight: 700;
  letter-spacing: .05em !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 8px !important;
  display: inline-block !important;
}

.settings-status.configured {
  color: var(--green);
  background: #55d98c14;
}

.settings-status.missing {
  color: var(--red);
  background: #ff6d7314;
}

.settings-status.not_used {
  color: #aab5c4;
  background: #aab5c414;
}

.settings-status.info {
  color: var(--blue);
  background: #8ca6ff14;
}

.settings-note {
  border: 1px solid var(--border);
  color: var(--muted);
  background: #07101d40;
  border-radius: 6px;
  margin: 0;
  padding: 15px 18px;
  font-size: 11px;
  line-height: 1.5;
}

.details-modal {
  width: min(100%, 620px);
}

.details-body {
  padding: 22px;
}

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

.details-grid div {
  border: 1px solid var(--border);
  background: #07101d57;
  border-radius: 6px;
  padding: 11px;
}

.details-grid dt {
  color: var(--muted-2);
  text-transform: uppercase;
  font-size: 10px;
}

.details-grid dd {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 5px 0 0;
  font-family: SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  overflow: hidden;
}

.details-body h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.details-section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  display: flex;
}

.details-section-heading h3 {
  margin: 0;
}

.usage-details {
  border-top: 1px solid var(--border);
  margin: 0 0 22px;
  padding-top: 16px;
}

.usage-agent-status {
  color: var(--muted);
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 700;
}

.usage-agent-status.configured {
  color: var(--green);
}

.usage-agent-status.stale {
  color: var(--amber);
}

.usage-agent-status.awaiting_data {
  color: var(--muted-2);
}

.details-log {
  max-height: 260px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

.details-log li {
  border-bottom: 1px solid #223651b8;
  gap: 10px;
  padding: 10px 0;
  display: flex;
}

.details-log li:last-child {
  border-bottom: 0;
}

.details-log .timeline-dot {
  border: 0;
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  position: static;
}

.details-log strong {
  color: #d6e1ef;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  display: block;
}

.details-log small {
  color: var(--muted-2);
  margin-top: 4px;
  font-size: 10px;
  display: block;
}

.login-page, .loading-page {
  background: radial-gradient(circle at 50% 10%, #564bdd2e, transparent 42%), var(--bg);
  place-items: center;
  min-height: 100vh;
  padding: 20px;
  display: grid;
}

.login-panel {
  border: 1px solid var(--border);
  background: #0c1727e0;
  border-radius: 10px;
  width: min(100%, 390px);
  padding: 34px;
  box-shadow: 0 25px 80px #00000040;
}

.login-panel .brand-mark {
  margin-bottom: 26px;
}

.login-panel h1 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.08;
}

.login-panel .muted {
  margin-bottom: 27px;
  font-size: 13px;
  line-height: 1.5;
}

.login-form {
  gap: 17px;
  display: grid;
}

.loader {
  border: 2px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  animation: .8s linear infinite spin;
}

.loading-page {
  color: var(--muted);
  gap: 12px;
}

.loading-page .form-error {
  margin-bottom: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1300px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .activity-panel {
    min-height: auto;
  }

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

  .timeline-item {
    min-height: 65px;
  }

  .product-card-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .sidebar {
    flex-basis: 68px;
    width: 68px;
    padding: 18px 9px;
  }

  .brand {
    justify-content: center;
    padding: 0;
  }

  .brand span, .nav-item:not(.active):after, .nav-item {
    font-size: 0;
  }

  .nav-item {
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .nav-item .icon {
    width: 19px;
    height: 19px;
  }

  .nav-item.active {
    font-size: 0;
  }

  .control-status, .profile {
    background: none;
    border: 0;
    justify-content: center;
    padding: 0;
  }

  .control-status div, .profile div:not(.avatar), .profile-chevron {
    display: none;
  }

  .main-content {
    padding: 20px 16px 30px;
  }

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

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

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-tools {
    width: 100%;
  }

  .search-box {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 720px) {
  .product-card-header {
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .sidebar {
    flex-basis: 55px;
    width: 55px;
  }

  .metric-grid {
    gap: 8px;
  }

  .metric-card {
    min-height: 106px;
    padding: 13px;
  }

  .metric-card strong {
    font-size: 26px;
  }

  .metric-icon {
    width: 34px;
    height: 34px;
  }

  .metric-icon .icon {
    width: 15px;
  }

  .topbar-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .topbar-actions .primary-button {
    width: 100%;
  }

  .refresh-button {
    justify-content: flex-start;
    padding-left: 0;
  }

  .table-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-button {
    width: 100%;
  }

  .timeline {
    display: block;
  }

  .login-panel {
    padding: 25px 20px;
  }

  .product-card-details {
    grid-template-columns: 1fr;
  }

  .product-card-features {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .product-form-section-heading {
    flex-direction: column;
  }

  .product-form-section-heading p:last-child {
    text-align: left;
    max-width: none;
  }

  .product-config-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .settings-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .product-form-grid, .product-config-summary {
    grid-template-columns: 1fr;
  }

  .settings-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .settings-item-value {
    text-align: left;
    width: 100%;
  }

  .settings-access-panel .panel-header {
    align-items: flex-start;
  }

  .settings-access-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-access-footer .primary-button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .modal-backdrop {
    padding: 10px;
  }

  .product-modal {
    max-height: calc(100dvh - 20px);
  }

  .product-modal .modal-header {
    padding: 18px;
  }

  .product-modal .product-form {
    padding: 16px 18px 0;
  }

  .product-modal .modal-actions {
    margin: 0 -18px;
    padding: 13px 18px 16px;
  }
}

@media (max-width: 820px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-metrics .metric-card {
    padding: 13px;
  }

  .overview-metrics .metric-icon {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 520px) {
  .overview-metrics {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/