﻿* { box-sizing: border-box; }
:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-muted: #eef4f7;
  --sidebar: #1f2840;
  --sidebar-2: #202a45;
  --sidebar-line: rgba(255,255,255,0.08);
  --text: #24324a;
  --muted: #7a879d;
  --line: #e3eaf2;
  --blue: #2f80ed;
  --blue-soft: #e8f1fe;
  --teal: #1abc9c;
  --teal-soft: #e8faf6;
  --gold: #f5b041;
  --gold-soft: #fff7e7;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
html, body, #root { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
button, input, select, textarea { font: inherit; }
.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}
.sidebar {
  background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  color: #fff;
  padding: 22px 18px;
  display: grid;
  gap: 18px;
  align-content: start;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sidebar-line);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #1abc9c);
  color: white;
  font-weight: 800;
}
.brand-name { font-size: 1.1rem; font-weight: 700; }
.brand-subtitle { color: rgba(255,255,255,0.62); font-size: 13px; margin-top: 3px; }
.menu-caption {
  color: rgba(255,255,255,0.48);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  font-weight: 700;
}
.menu-list { display: grid; gap: 8px; }
.menu-link {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.82);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: 0.2s ease;
}
.menu-link:hover { background: rgba(255,255,255,0.06); }
.menu-link.active {
  background: rgba(255,255,255,0.1);
  box-shadow: inset 3px 0 0 #3b82f6;
}
.menu-icon {
  width: 18px;
  color: rgba(255,255,255,0.72);
  text-align: center;
}
.side-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 16px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.auth-tab, .btn, .package-card {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}
.auth-tab {
  padding: 11px 12px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-weight: 700;
}
.auth-tab.active,
.btn-primary {
  background: linear-gradient(135deg, #2f80ed, #1abc9c);
  color: white;
}
.auth-switch-copy {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  text-align: center;
}
.auth-inline-action {
  appearance: none;
  border: 0;
  background: transparent;
  color: #7dd3fc;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}
.auth-inline-action:hover,
.auth-inline-action:focus-visible {
  color: white;
  text-decoration: underline;
}
.btn {
  width: 100%;
  padding: 13px 14px;
  font-weight: 700;
}
.btn-light {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
}
.btn.compact {
  width: auto;
  padding: 11px 14px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}
.sidebar .field label { color: rgba(255,255,255,0.8); }
.field input,
.field select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: white;
  color: var(--text);
}
.sidebar .field input,
.sidebar .field select {
  background: rgba(255,255,255,0.98);
}
.field input:focus,
.field select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.profile-avatar,
.topbar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.profile-avatar { background: rgba(255,255,255,0.14); }
.profile-name { font-weight: 700; }
.profile-email { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 3px; }
.credit-box {
  background: linear-gradient(135deg, rgba(47,128,237,0.2), rgba(26,188,156,0.18));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px;
}
.credit-box span,
.credit-box p { color: rgba(255,255,255,0.72); }
.credit-box strong { display: block; font-size: 1.8rem; margin: 6px 0; }
.credit-box p { margin: 0; font-size: 13px; line-height: 1.5; }
.side-section-title {
  margin: 16px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}
.package-stack,
.side-actions { display: grid; gap: 10px; }
.package-card {
  background: rgba(255,255,255,0.08);
  color: white;
  padding: 14px;
  text-align: left;
}
.package-card strong { display: block; }
.package-card span { color: rgba(255,255,255,0.66); font-size: 13px; }
.main-content {
  min-width: 0;
  padding: 20px;
  display: grid;
  gap: 20px;
  align-content: start;
}
.topbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.page-title { font-size: 1.4rem; font-weight: 800; }
.page-subtitle { color: var(--muted); margin-top: 4px; }
.topbar-user { display: flex; align-items: center; gap: 12px; }
.topbar-search,
.topbar-notify {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--muted);
}
.topbar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-avatar {
  background: linear-gradient(135deg, #2f80ed, #1abc9c);
  color: white;
}
.topbar-profile strong { display: block; font-size: 14px; }
.topbar-profile span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.metric-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.metric-card {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.metric-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.metric-card strong { display: block; font-size: 1.9rem; margin: 8px 0 6px; }
.metric-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.metric-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
}
.metric-icon.teal { background: var(--teal-soft); color: var(--teal); }
.metric-icon.blue { background: var(--blue-soft); color: var(--blue); }
.metric-icon.gold { background: var(--gold-soft); color: var(--gold); }
.metric-icon.slate { background: #edf2f7; color: #475569; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.95fr);
  gap: 20px;
}
.lower-grid { align-items: start; }
.stacked-grid { grid-template-columns: 1fr; }
.panel { padding: 20px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.panel-head h3 { margin: 0; font-size: 1.2rem; }
.panel-head p { margin: 4px 0 0; color: var(--muted); }
.data-table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.data-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.empty-row { color: var(--muted); text-align: center; }
.status-pill,
.cache-pill,
.result-tags span,
.top-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-pill.ok { background: var(--teal-soft); color: var(--teal); }
.status-pill.wait { background: var(--gold-soft); color: #b7791f; }
.ring-panel { display: grid; align-content: start; }
.ring-visual {
  width: 220px;
  height: 220px;
  margin: 12px auto 20px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 38%, #1f5ead 38% 64%, var(--gold) 64% 82%, #d9e8ff 82% 100%);
  position: relative;
}
.ring-visual::after {
  content: '';
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: white;
}
.ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--text);
  z-index: 1;
}
.legend-list { display: grid; gap: 10px; color: var(--muted); }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}
.legend-dot.teal { background: var(--teal); }
.legend-dot.blue { background: var(--blue); }
.legend-dot.gold { background: var(--gold); }
.promo-card {
  background: linear-gradient(135deg, #eff6ff, #edfdf9);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 18px;
}
.promo-card strong { display: block; font-size: 1.1rem; margin-bottom: 8px; }
.promo-card p { color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.mini-list { display: grid; gap: 12px; }
.mini-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-soft);
}
.mini-item strong { display: block; margin-bottom: 6px; }
.mini-item span,
.mini-item small { display: block; color: var(--muted); }
.process-panel { padding: 20px; }
.top-pill { background: var(--surface-soft); color: var(--muted); border: 1px solid var(--line); }
.process-form {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr) auto;
  gap: 16px;
  align-items: end;
}
.field-span { grid-column: auto; }
.submit-slot { display: flex; }
.process-form-upload {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr) minmax(220px, 0.7fr) auto;
  align-items: stretch;
}
.upload-url-field,
.upload-drop-field {
  align-self: stretch;
}
.field-helper {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.upload-dropzone {
  display: block;
  border: 2px dashed #b8d1f7;
  background: linear-gradient(180deg, #f7fbff, #eef7ff);
  border-radius: 16px;
  min-height: 160px;
  cursor: pointer;
  transition: 0.2s ease;
}
.upload-dropzone:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.08);
}
.upload-dropzone.has-file {
  border-color: var(--teal);
  background: linear-gradient(180deg, #f0fffa, #e7fbf5);
}
.upload-dropzone input[type='file'] {
  display: none;
}
.upload-dropzone-inner {
  min-height: 160px;
  padding: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
}
.upload-dropzone-inner strong {
  font-size: 1.05rem;
}
.upload-dropzone-inner span {
  color: var(--muted);
  line-height: 1.5;
}
.upload-clear-btn {
  margin-top: 10px;
}
.info-box {
  margin-top: 16px;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.neutral-box {
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.loader {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #dbe4ec;
  border-top-color: var(--blue);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.result-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface-soft);
}
.result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.result-head h4 { margin: 0 0 6px; font-size: 1.2rem; }
.result-head p { margin: 0; color: var(--muted); }
.result-tags,
.cache-row,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.result-tags { margin-top: 4px; }
.result-tags span { background: var(--blue-soft); color: var(--blue); }
.cache-row { margin: 18px 0; }
.cache-pill { background: #e9eff7; color: #516173; }
.cache-pill.active { background: var(--teal-soft); color: var(--teal); }
.cache-pill.warning { background: var(--gold-soft); color: #b7791f; }
.result-actions { margin-bottom: 16px; }
.detail-card,
.output-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 14px;
}
.detail-card summary {
  cursor: pointer;
  font-weight: 700;
}
.output-card label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}
textarea {
  min-height: 250px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.5;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.library-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface-soft);
}
.library-card strong { display: block; margin-bottom: 8px; }
.library-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.flash {
  padding: 13px 14px;
  border-radius: 12px;
  line-height: 1.5;
}
.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1200;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
}
.toast {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.flash.success {
  background: #eaf8f1;
  color: #0f7a53;
  border-left: 4px solid #12a36b;
}
.flash.error {
  background: #fff0f1;
  color: #b42318;
  border-left: 4px solid #d92d20;
}
@media (max-width: 1320px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid,
  .lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { padding-bottom: 12px; }
  .process-form { grid-template-columns: 1fr; }
  .submit-slot { width: 100%; }
}
@media (max-width: 720px) {
  .main-content,
  .sidebar { padding: 14px; }
  .topbar,
  .result-head,
  .panel-head,
  .topbar-user { flex-direction: column; align-items: stretch; }
  .metric-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }
  .toast-stack {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

.main-content .btn-light { background: var(--surface-soft); color: var(--text); border: 1px solid var(--line); }
.main-content .btn-light:hover { background: #eaf0f6; }

.account-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
}
.compact-user-card {
  display: grid;
  gap: 14px;
}
.account-panel-page {
  padding: 24px;
}
.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 24px;
}
.large-profile {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 0;
}
.large-avatar {
  width: 58px;
  height: 58px;
  font-size: 1.25rem;
}
.account-page-name {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
}
.account-page-email {
  color: var(--muted);
  margin-top: 6px;
}
.account-credit-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.account-section-head {
  margin-top: 8px;
}
.account-package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.account-package-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}
.account-package-card:hover {
  transform: translateY(-1px);
  border-color: #cfd8e3;
  box-shadow: var(--shadow);
}
.account-package-card strong {
  display: block;
  font-size: 1.6rem;
  color: var(--text);
}
.account-package-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.account-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.empty-account-state {
  padding: 22px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.empty-account-state h3 {
  margin-top: 0;
  margin-bottom: 8px;
}
.empty-account-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 1320px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .account-hero,
  .account-package-grid {
    grid-template-columns: 1fr;
  }
}


.stage-box {
  align-items: flex-start;
}
.stage-content {
  flex: 1;
}
.stage-content > strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.stage-content > p {
  margin: 0;
  color: var(--muted);
}
.stage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.stage-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  opacity: 0.72;
  transition: 0.2s ease;
}
.stage-item.active {
  opacity: 1;
  border-color: #9ec5fe;
  background: #eef6ff;
  box-shadow: 0 10px 22px rgba(47, 128, 237, 0.12);
}
.stage-item.done {
  opacity: 1;
  border-color: #9ee6d8;
  background: #eefcf8;
}
.stage-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8edf3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 28px;
}
.stage-item.active .stage-dot {
  background: var(--blue);
  color: white;
}
.stage-item.done .stage-dot {
  background: var(--teal);
  color: white;
}
.stage-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.stage-item small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 980px) {
  .stage-list {
    grid-template-columns: 1fr;
  }
}

.progress-meta {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.process-form .btn-primary {
  min-width: 180px;
  height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2374e8 0%, #1f8ef1 38%, #13c2b3 100%);
  box-shadow: 0 14px 28px rgba(35, 116, 232, 0.24);
  letter-spacing: 0.01em;
}
.process-form .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(35, 116, 232, 0.3);
  filter: brightness(1.02);
}
.process-form .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.library-layout {
  align-items: start;
}
.library-items {
  display: grid;
  gap: 16px;
}
.library-item-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 18px;
}
.library-item-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.library-item-head h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.library-item-head p {
  margin: 0;
  color: var(--muted);
}
.library-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.library-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 720px) {
  .library-item-actions,
  .library-item-head {
    flex-direction: column;
    align-items: stretch;
  }
}

.guest-side-note p {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.76);
  line-height: 1.6;
}
.guest-panel {
  padding: 28px;
}
.guest-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 420px);
  gap: 24px;
  align-items: start;
}
.guest-copy h2 {
  margin: 10px 0 12px;
  font-size: 2.2rem;
  line-height: 1.08;
}
.guest-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
}
.guest-points {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.guest-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.guest-point strong {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  flex: 0 0 28px;
}
.guest-point span {
  color: var(--text);
  line-height: 1.6;
}
.guest-auth-card {
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
@media (max-width: 1080px) {
  .guest-hero {
    grid-template-columns: 1fr;
  }
}

.pix-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 20px;
}
.billing-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.billing-strip strong {
  display: block;
  margin-bottom: 6px;
}
.billing-strip span {
  color: var(--muted);
  font-size: 0.95rem;
}
.pix-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.pix-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.pix-qr-card,
.pix-copy-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 16px;
}
.pix-qr-image {
  width: 100%;
  max-width: 240px;
  display: block;
  margin: 0 auto;
}
.pix-copy-card label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}
.pix-copy-card textarea {
  min-height: 140px;
  margin-bottom: 14px;
}
.btn-light.compact,
.btn-primary.compact {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal-card {
  width: min(520px, 100%);
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.pix-modal-card {
  width: min(860px, 100%);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 900px) {
  .billing-strip {
    align-items: stretch;
    flex-direction: column;
  }
  .pix-layout {
    grid-template-columns: 1fr;
  }
  .modal-actions {
    flex-direction: column;
  }
}
