:root {
  --bg: #f6f8fb;
  --bg-top: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #111827;
  --muted: #64748b;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #059669;
  --red: #dc2626;
  --yellow: #b7791f;
  --teal: #0f766e;
  --sidebar: #101828;
  --sidebar-raised: #1d2939;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

body[data-theme="dark"] {
  --bg: #0f172a;
  --bg-top: #020617;
  --surface: #111827;
  --surface-soft: #1f2937;
  --line: #334155;
  --line-strong: #475569;
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #38bdf8;
  --blue-dark: #0284c7;
  --green: #22c55e;
  --red: #f87171;
  --yellow: #facc15;
  --teal: #2dd4bf;
  --sidebar: #020617;
  --sidebar-raised: #111827;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.22);
}

body[data-theme="pink"] {
  --bg: #fff7fb;
  --bg-top: #fce7f3;
  --surface-soft: #fdf2f8;
  --line: #fbcfe8;
  --line-strong: #f9a8d4;
  --blue: #db2777;
  --blue-dark: #be185d;
  --teal: #9333ea;
  --sidebar: #3b0a2a;
  --sidebar-raised: #5b1741;
}

body[data-theme="blue"] {
  --bg: #f6f8fb;
  --bg-top: #eef3f8;
  --surface-soft: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --teal: #0f766e;
  --sidebar: #101828;
  --sidebar-raised: #1d2939;
}

body[data-theme="red"] {
  --bg: #fff7f7;
  --bg-top: #fee2e2;
  --surface-soft: #fef2f2;
  --line: #fecaca;
  --line-strong: #fca5a5;
  --blue: #dc2626;
  --blue-dark: #b91c1c;
  --teal: #f97316;
  --sidebar: #3f1111;
  --sidebar-raised: #5f1717;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 240px), var(--bg);
}

body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea,
body[data-theme="dark"] .search-box,
body[data-theme="dark"] .secondary-button,
body[data-theme="dark"] .table-wrap,
body[data-theme="dark"] .alert-item,
body[data-theme="dark"] .program-item,
body[data-theme="dark"] .queue-item,
body[data-theme="dark"] .question-item,
body[data-theme="dark"] .cart-item,
body[data-theme="dark"] .env-item,
body[data-theme="dark"] .product-card,
body[data-theme="dark"] .provider-option,
body[data-theme="dark"] .bot-channel-card {
  background: #111827;
  color: var(--text);
}

body[data-theme="dark"] th,
body[data-theme="dark"] .conversation-body,
body[data-theme="dark"] .provider-card,
body[data-theme="dark"] .certificate-card,
body[data-theme="dark"] .payment-methods,
body[data-theme="dark"] .segmented {
  background: #1f2937;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 276px 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 18px;
  color: #eef5ff;
  background: var(--sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.brand-mark,
.logo-preview {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.brand-mark img,
.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

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

.brand strong {
  font-size: 19px;
  line-height: 1.1;
}

.brand span,
.sync-box span {
  color: #98a2b3;
  font-size: 12px;
}

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

.nav-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d0d5dd;
  background: transparent;
  text-align: left;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.09);
  background: var(--sidebar-raised);
}

.nav-item.active {
  box-shadow: inset 3px 0 0 #38bdf8;
}

.icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
}

.sync-box {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.sync-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.workspace {
  min-width: 0;
  padding: 24px 28px 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 28px;
  font-weight: 760;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: 0;
}

.panel-header p,
.conversation-top p,
.metric small {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.search-box {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  width: 390px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.search-box span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
}

.primary-button,
.secondary-button,
.icon-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.primary-button {
  padding: 0 18px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.primary-button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.secondary-button {
  padding: 0 16px;
  color: #334155;
  border-color: var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.secondary-button:hover {
  border-color: var(--line-strong);
  background: #f8fafc;
}

.small-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
  font-size: 18px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

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

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.metric span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
  letter-spacing: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel.wide {
  min-height: 390px;
}

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

canvas {
  display: block;
  width: 100%;
  height: 320px;
}

.alert-list,
.program-list,
.publish-queue,
.question-list,
.cart-list,
.env-grid {
  display: grid;
  gap: 10px;
}

.alert-item,
.program-item,
.queue-item,
.question-item,
.cart-item,
.env-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.alert-item,
.program-item,
.queue-item,
.cart-item,
.env-item {
  padding: 12px;
}

.alert-item strong,
.program-item strong,
.queue-item strong {
  display: block;
  margin-bottom: 4px;
}

.alert-item small,
.program-item small,
.queue-item small {
  color: var(--muted);
}

.split-layout,
.settings-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
}

.customers-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 14px;
}

.settings-layout {
  grid-template-columns: 420px minmax(0, 1fr);
}

.digital-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

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

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

.form-stack {
  display: grid;
  gap: 14px;
}

.form-stack label,
fieldset {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 5px;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--text) !important;
  font-weight: 500 !important;
}

.check-row input {
  width: auto;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
  outline: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea {
  resize: vertical;
}

.table-panel {
  overflow: hidden;
}

.full-height {
  min-height: calc(100vh - 116px);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

tbody tr:hover {
  background: #f8fbff;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

.tag.green,
.status-pill.green {
  color: var(--green);
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.tag.red {
  color: var(--red);
  border-color: #fecaca;
  background: #fef2f2;
}

.tag.yellow {
  color: var(--yellow);
  border-color: #fde68a;
  background: #fffbeb;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.segment,
.quick-replies button,
.pay-method {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.segment.active,
.pay-method.active {
  color: var(--text);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.questions-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 14px;
}

.question-list-panel,
.conversation-panel {
  min-height: calc(100vh - 116px);
}

.question-item {
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.question-item.active {
  border-color: #93c5fd;
  background: #f3f8ff;
}

.question-item:hover {
  transform: translateY(-1px);
}

.question-item strong,
.question-item span {
  display: block;
}

.question-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.conversation-panel {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.conversation-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.conversation-body {
  min-height: 320px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.message {
  max-width: 72%;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.message.agent {
  margin-left: auto;
  color: #ffffff;
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.quick-replies {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.quick-replies button {
  color: var(--blue-dark);
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.reply-form {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
  align-items: stretch;
}

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

.digital-table,
.catalog-master,
.settings-wide,
.fiscal-wide,
.bots-wide {
  grid-column: 1 / -1;
}

.bot-channel-list {
  display: grid;
  gap: 10px;
}

.bot-channel-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.bot-channel-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.bot-channel-card strong,
.bot-channel-card span {
  display: block;
}

.bot-channel-card div span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.digital-table table {
  min-width: 880px;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-actions select {
  width: 180px;
}

.program-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.env-item strong,
.env-item span {
  display: block;
}

.env-item strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
}

.env-item span {
  color: var(--muted);
  font-size: 13px;
}

.oauth-missing {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.logo-preview {
  width: 92px;
  height: 92px;
  border: 1px solid var(--line);
  font-size: 34px;
}

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

.theme-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.theme-option input {
  width: auto;
}

.theme-option span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-option span::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px var(--line);
}

.theme-dark span::before {
  background: linear-gradient(135deg, #020617, #38bdf8);
}

.theme-pink span::before {
  background: linear-gradient(135deg, #db2777, #9333ea);
}

.theme-blue span::before {
  background: linear-gradient(135deg, #2563eb, #0f766e);
}

.theme-red span::before {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.theme-custom span::before {
  background: conic-gradient(#2563eb, #db2777, #f97316, #0f766e, #2563eb);
}

.theme-option:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

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

.custom-theme-grid input[type="color"] {
  height: 42px;
  padding: 4px;
}

body[data-theme="dark"] .theme-option {
  background: #111827;
}

.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 14px;
}

.pos-wide {
  grid-column: 1 / -1;
}

.pos-products,
.pos-cart {
  min-height: calc(100vh - 116px);
}

.customer-select-label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.product-card {
  display: grid;
  gap: 10px;
  min-height: 140px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.product-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.product-card strong {
  font-size: 15px;
}

.product-card span {
  color: var(--muted);
  font-size: 13px;
}

.provider-card {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.certificate-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.certificate-card strong,
.certificate-card span {
  display: block;
}

.certificate-card span {
  color: var(--muted);
  font-size: 12px;
}

.provider-card span,
.provider-card small {
  color: var(--muted);
  font-size: 12px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-button {
  width: 28px;
  min-height: 28px;
  font-size: 12px;
}

.discount-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.discount-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.discount-inputs {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
}

.discount-box small {
  color: var(--muted);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-total strong {
  font-size: 26px;
}

.checkout-button {
  width: 100%;
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.48);
  z-index: 20;
}

.modal-backdrop.show {
  display: grid;
}

.checkout-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  padding: 18px;
}

.checkout-body {
  display: grid;
  gap: 14px;
}

.checkout-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.checkout-card h3 {
  margin: 0;
  font-size: 18px;
}

.pix-qr-img {
  display: grid;
  width: 170px;
  height: 170px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

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

.checkout-mode {
  width: fit-content;
}

.checkout-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checkout-footer strong {
  font-size: 24px;
}

body[data-theme="dark"] .checkout-modal,
body[data-theme="dark"] .checkout-card {
  background: #111827;
}

.payment-settings {
  display: grid;
  gap: 12px;
}

.provider-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.provider-option input {
  width: auto;
  margin-top: 3px;
}

.provider-option strong,
.provider-option small {
  display: block;
}

.provider-option small {
  margin-top: 4px;
  color: var(--muted);
}

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

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(18px);
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: #101828;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.account-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.account-gate.show {
  display: grid;
}

.account-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.account-card h2 {
  margin: 4px 0 10px;
  font-size: 26px;
}

.account-card p {
  color: var(--muted);
}

.account-tabs,
.account-actions {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.account-tabs button {
  flex: 1;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.account-tabs button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.account-form {
  display: grid;
  gap: 12px;
}

.account-form.hidden {
  display: none;
}

.account-error {
  min-height: 18px;
  color: var(--red) !important;
  font-weight: 800;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  padding: 2px 0;
}

.account-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-widget .secondary-button {
  min-height: 34px;
}
