body {
  background: var(--surface);
}

a {
  color: var(--accent-strong);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--accent);
  color: #fff;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a,
.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  cursor: pointer;
}

.site-nav a:hover,
.link-button:hover {
  color: #fff;
}

.theme-toggle-button {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 800;
}

[data-bs-theme="light"] .theme-toggle-button {
  background: #fff;
  color: #111827;
}

.button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

.danger-button {
  background: var(--danger);
}

.flash {
  margin: 12px clamp(16px, 4vw, 48px);
  padding: 10px 12px;
  border-radius: 6px;
  background: #e6f6ff;
  color: #075985;
}

.flash.error {
  background: #fff1f2;
  color: #be123c;
}

.flash.success {
  background: #ecfdf5;
  color: #047857;
}

.page-panel,
.auth-panel,
.recent-blogs,
.app-home {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto;
}

.auth-panel {
  display: grid;
  place-items: center;
}

.form-card,
.admin-card,
.content-card,
.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-card.form-grid {
  /*width: min(980px, 100%);**/
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.08);
}

.form-card {
  width: min(480px, 100%);
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.admin-card.form-grid label,
.admin-card.form-grid .checkbox-grid label {
  gap: 8px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
}

.admin-card.form-grid input,
.admin-card.form-grid textarea,
.admin-card.form-grid select {
  /**min-height: 72px;**/
  padding: 16px 20px;
  border-radius: 10px;
  background: #fff;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 500;
}

.admin-card.form-grid input::placeholder,
.admin-card.form-grid textarea::placeholder {
  color: #5f666d;
}

.admin-card.form-grid input[type="checkbox"] {
  width: 24px;
  min-height: 24px;
  accent-color: var(--accent);
}

textarea {
  min-height: 96px;
}

.admin-card.form-grid textarea {
  min-height: 100px;
}

textarea.large {
  min-height: 720px !important;
}

.card-grid,
.metric-grid,
.admin-grid,
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.content-card img,
.hero-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 6px;
}

.blog-index-shell {
  min-height: 100vh;
  padding: clamp(34px, 5vw, 72px) 0;
  background: var(--surface);
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  color: var(--muted);
  font-weight: 900;
}

.blog-breadcrumb a,
.blog-breadcrumb strong {
  color: var(--muted);
  text-decoration: none;
}

.blog-breadcrumb strong {
  padding: 10px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, var(--text) 12%);
  color: var(--text);
}

.blog-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  overflow: hidden;
  margin-bottom: clamp(40px, 7vw, 74px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.blog-featured-media {
  min-height: clamp(300px, 42vw, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 40%, rgba(229, 72, 77, .2), transparent 32%),
    radial-gradient(circle at 30% 35%, rgba(37, 99, 235, .32), transparent 35%),
    #121a26;
  color: #2f6df6;
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 900;
  text-decoration: none;
}

.blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 52px);
}

.blog-featured-body h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.blog-featured-body h1 a {
  color: inherit;
  text-decoration: none;
}

.blog-featured-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  color: var(--muted);
  font-weight: 900;
}

.blog-featured-meta a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--panel) 78%, #fff 22%);
  color: var(--text);
  font-size: 24px;
  text-decoration: none;
}

.blog-filter-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 42px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.blog-filter-tabs a {
  position: relative;
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
}

.blog-filter-tabs a.active,
.blog-filter-tabs a:hover {
  color: var(--danger);
}

.blog-filter-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--danger);
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.blog-pagination a {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.blog-pagination a.active,
.blog-pagination a:hover {
  background: var(--accent);
  color: #fff;
}

.blog-empty {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--muted);
}

.realtime-globe-card {
  position: relative;
  min-height: clamp(360px, 52vw, 560px);
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #06101f;
  color: #f8fafc;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.realtime-globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.realtime-globe-canvas.is-dragging {
  cursor: grabbing;
}

.realtime-globe-panel,
.realtime-feed {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 24px));
  margin: 12px;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  box-shadow: 0 14px 48px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
}

.realtime-globe-panel {
  padding: 16px 18px;
}

.realtime-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

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

.realtime-brand-row span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.realtime-globe-panel p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: #475569;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.18);
}

.realtime-chip-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.realtime-chip-group span {
  width: 76px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.realtime-chip-group b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
}

.realtime-feed {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.86);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.2);
}

.realtime-feed p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  color: #cbd5e1;
  font-size: 13px;
}

.realtime-feed span {
  min-width: 38px;
  color: #94a3b8;
}

.realtime-feed b {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.app-home {
  width: min(1280px, 100%);
}

.mail-preview {
  min-height: 520px;
  display: grid;
  grid-template-columns: var(--folders-width) var(--message-list-width) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.preview-sidebar,
.preview-list,
.preview-reader {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.preview-list strong,
.preview-list span,
.preview-list p {
  display: block;
  margin: 0 0 8px;
}

.preview-reader h1 {
  max-width: 620px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.04;
}

.blog-content {
  line-height: 1.8;
}

.blog-temp-mail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.temp-mail-label {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-temp-mail-cta strong {
  display: block;
  color: var(--text);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.temp-mail-status {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffe6e9;
  color: #e5484d;
  font-size: 14px;
  font-weight: 800;
}

.temp-mail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.temp-mail-actions button,
.temp-mail-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.temp-mail-actions a {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.temp-mail-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.legal-page {
  line-height: 1.75;
}

.legal-page h2 {
  margin-top: 28px;
  font-size: 22px;
}

.legal-page p {
  max-width: 920px;
}

.tag {
  display: inline-block;
  margin: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
}

.site-footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal {
  width: min(520px, calc(100% - 28px));
  border: 0;
  border-radius: 10px;
  padding: 0;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.modal-close {
  justify-self: end;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: var(--surface);
}

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

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  background: var(--rail);
  color: #fff;
}

.admin-nav-section {
  display: grid;
  gap: 3px;
}

.admin-nav-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.admin-nav-section summary::-webkit-details-marker {
  display: none;
}

.admin-nav-section summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav-section summary span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-nav-section summary b {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.admin-nav-section[open] summary b {
  transform: rotate(180deg);
}

.admin-nav-section[open] summary {
  background: rgba(255, 255, 255, 0.06);
}

.admin-nav-links {
  display: grid;
  gap: 3px;
  padding-top: 4px;
}

.admin-sidebar a {
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: var(--rail-active);
}

.admin-sidebar a.active {
  color: #7dd3fc;
  font-weight: 800;
}

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

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

.filter-bar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-bar label {
  min-width: 180px;
}

.filter-bar select,
.filter-bar input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

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

.metric small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.compact-form {
  margin-bottom: 18px;
}

.admin-card.form-grid.compact-form {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
}

.admin-card.form-grid.compact-form h2 {
  font-size: 24px;
}

.admin-card.form-grid.compact-form label {
  font-size: 14px;
  font-weight: 700;
}

.admin-card.form-grid.compact-form input,
.admin-card.form-grid.compact-form select {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
}

.admin-card.form-grid.compact-form button.button {
  min-height: 46px;
  padding: 10px 18px;
  font-size: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-paid,
.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-pending,
.status-initiated {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-failed,
.status-cancelled,
.status-expired,
.status-refunded {
  background: #fee2e2;
  color: #b91c1c;
}

.status-warning {
  margin-left: 6px;
  background: #fef3c7;
  color: #92400e;
}

.revenue-bars {
  display: grid;
  gap: 12px;
}

.revenue-bar-row {
  display: grid;
  grid-template-columns: 110px minmax(140px, 1fr) 190px;
  align-items: center;
  gap: 12px;
}

.revenue-bar-row span {
  color: var(--muted);
  font-weight: 700;
}

.revenue-bar-row b {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
}

.revenue-bar-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

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

.form-grid h2,
.form-grid textarea,
.form-grid .large,
.form-grid button,
.checkbox-grid {
  grid-column: 1 / -1;
}

.form-grid h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.05;
}

.form-grid h2:not(:first-of-type) {
  margin-top: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.admin-card.form-grid button.button,
.admin-card.form-grid .button {
  width: fit-content;
  min-height: 66px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: clamp(18px, 2vw, 26px);
}

.checkbox-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-actions,
.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-actions {
  grid-column: 1 / -1;
}

.table-actions form {
  margin: 0;
}

.table-actions .button,
.table-actions .danger-button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 14px;
}

.checkbox-row span,
.admin-card.form-grid label:has(input[type="checkbox"]) {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.html-editor {
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
}

.html-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.html-editor-toolbar button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
}

.html-editor-toolbar button:hover,
.html-editor-toolbar button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.html-editor-surface {
  min-height: 720px;
  padding: 18px 20px;
  outline: 0;
  line-height: 1.7;
}

.html-editor-surface:focus {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}

.html-editor + textarea:not([hidden]) {
  grid-column: 1 / -1;
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

textarea[data-html-editor] {
  grid-column: 1 / -1;
}

.code-field {
  grid-column: 1 / -1;
}

.admin-card.form-grid .code-textarea {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.payment-provider-app {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.provider-radio {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.provider-list-pane {
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.provider-list-head {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.provider-list-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.15;
}

.provider-list-head strong,
.provider-summary {
  color: #667085;
  font-size: 13px;
}

.provider-search {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.provider-search input {
  min-height: 42px;
  border-radius: 10px;
  font-size: 14px;
}

.provider-list {
  display: grid;
}

.provider-list-item {
  min-height: 78px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-left: 4px solid transparent;
  color: var(--text);
  cursor: pointer;
}

.provider-list-item:hover {
  background: #fff;
}

.provider-count {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e8efff;
  color: #2f6bff;
  font-size: 15px;
  font-weight: 800;
}

.provider-list-item b,
.provider-editor h2 {
  display: block;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.2;
}

.provider-list-item small {
  display: -webkit-box;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-editor-pane {
  min-width: 0;
  padding: clamp(22px, 4vw, 38px);
  overflow: auto;
}

.provider-editor {
  display: none;
  min-inline-size: 0;
  padding: 0;
  border: 0;
}

.admin-eyebrow {
  margin: 0 0 8px;
  color: #3f72ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.provider-editor h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
}

.provider-summary {
  max-width: 880px;
  margin: 0 0 24px;
  font-weight: 650;
  line-height: 1.5;
}

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

.provider-form-grid label {
  color: #1f2937;
  font-size: 13px;
  font-weight: 750;
}

.provider-form-grid input,
.provider-form-grid select,
.provider-form-grid textarea {
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
}

.provider-form-grid textarea {
  min-height: 92px;
  resize: vertical;
}

.toggle-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.provider-savebar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.payment-provider-app .button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
}

#provider-stripe:checked ~ .provider-list-pane .provider-tab-stripe,
#provider-paypal:checked ~ .provider-list-pane .provider-tab-paypal,
#provider-btcpay:checked ~ .provider-list-pane .provider-tab-btcpay,
#provider-nowpayments:checked ~ .provider-list-pane .provider-tab-nowpayments {
  border-left-color: #3f72ff;
  background: #fff;
}

#provider-stripe:checked ~ .provider-editor-pane .provider-panel-stripe,
#provider-paypal:checked ~ .provider-editor-pane .provider-panel-paypal,
#provider-btcpay:checked ~ .provider-editor-pane .provider-panel-btcpay,
#provider-nowpayments:checked ~ .provider-editor-pane .provider-panel-nowpayments {
  display: block;
}

@media (max-width: 800px) {
  .realtime-globe-card {
    min-height: 620px;
  }

  .realtime-globe-panel,
  .realtime-feed {
    width: calc(100% - 20px);
    margin: 10px;
  }

  .realtime-chip-group span {
    width: 100%;
  }

  .site-header,
  .site-footer,
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-featured-card {
    grid-template-columns: 1fr;
  }

  .blog-featured-media {
    min-height: 240px;
  }

  .blog-featured-body h1 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .mail-preview,
  .admin-shell,
  .form-grid,
  .settings-fieldset,
  .payment-provider-app,
  .provider-form-grid,
  .revenue-bar-row {
    grid-template-columns: 1fr;
  }

  .revenue-bar-row em {
    text-align: left;
  }

  .admin-sidebar {
    position: static;
  }

  .provider-list-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .provider-list-head,
  .provider-search,
  .provider-list-item,
  .provider-editor-pane {
    padding: 18px;
  }

  .provider-list-item {
    min-height: 70px;
    grid-template-columns: 40px 1fr;
  }

  .provider-count {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .provider-list-item b,
  .provider-editor h2 {
    font-size: 20px;
  }

  .provider-list-item small,
  .provider-form-grid label,
  .provider-form-grid input,
  .provider-form-grid select,
  .provider-form-grid textarea {
    font-size: 14px;
  }

  .blog-temp-mail-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .temp-mail-actions a,
  .temp-mail-actions button {
    flex: 1;
  }
}

.page-hero.compact {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 18px;
}

.page-hero.compact h1 {
  margin: 6px 0 8px;
  color: var(--text);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
}

.page-hero.compact p {
  max-width: 760px;
  color: var(--muted);
}

.page-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-hero + .content-card,
.page-hero + .support-form,
.content-card.support-thread,
.support-form.content-card,
section.content-card {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto;
}

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

.account-card label,
.support-form label {
  color: var(--text);
  font-weight: 700;
}

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

.account-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-title-row,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.primary-button.small {
  min-height: 38px;
  padding: 8px 14px;
}

.secondary-button {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

.responsive-table {
  overflow-x: auto;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.support-thread {
  display: grid;
  gap: 14px;
}

.support-message {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 88%, var(--accent) 12%);
}

.support-message.is-admin {
  background: color-mix(in srgb, var(--panel) 82%, #22c55e 18%);
}

.support-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.support-message p {
  margin: 0;
  white-space: pre-wrap;
}

@media (max-width: 800px) {
  .page-grid,
  .section-title-row,
  .form-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }
}
