:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e6eaf0;
  --soft: #f5f8fc;
  --soft-blue: #eef6ff;
  --blue: #0b66ff;
  --blue-dark: #073b8f;
  --green: #1aa37a;
  --nav-height: 72px;
  --shadow: 0 20px 54px rgba(19, 42, 82, 0.12);
}

body {
  min-width: 320px;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(230, 234, 240, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav-grid {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
  align-items: center;
  min-height: var(--nav-height);
  gap: 14px;
}

.back-link {
  justify-self: start;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.back-link:hover,
.nav-links a:hover,
.footer-inner a:hover {
  color: var(--blue);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  font-size: 18px;
  line-height: 1;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}

.brand-title {
  color: var(--ink);
  font-size: 1em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-divider {
  width: 1px;
  height: 1em;
  margin: 0 5px;
  background: #c8d0dc;
}

.brand-partner-logo {
  width: auto;
  height: 1em;
  object-fit: contain;
}

.nav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #172033;
}

.section-pad {
  padding: 96px 0;
  scroll-margin-top: 88px;
}

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 16% 12%, rgba(11, 102, 255, 0.12), transparent 31%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: #475467;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(11, 102, 255, 0.14);
  border-radius: 999px;
  color: #1d3f72;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.phone-showcase {
  position: relative;
  max-width: 410px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(11, 102, 255, 0.14);
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  gap: 6px;
  padding: 4px 8px 12px;
}

.phone-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.phone-content {
  position: relative;
  min-height: 480px;
  padding: 18px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fbff, #eaf2ff);
}

.app-card,
.game-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(19, 42, 82, 0.08);
}

.app-card.compact {
  padding: 12px;
  margin-bottom: 14px;
}

.app-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
}

.app-card small,
.game-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.game-row {
  padding: 14px;
  margin-bottom: 16px;
}

.game-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b66ff, #36c39f);
}

.play-dot {
  width: 18px;
  height: 18px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(26, 163, 122, 0.12);
}

.screen-preview {
  min-height: 260px;
  padding: 18px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(11, 102, 255, 0.12), rgba(11, 102, 255, 0)),
    #ffffff;
}

.dialog-line {
  height: 14px;
  width: 68%;
  margin: 0 0 12px;
  border-radius: 999px;
  background: #d4deee;
}

.dialog-line.wide {
  width: 92%;
}

.dialog-actions {
  display: flex;
  gap: 8px;
  margin-top: 120px;
}

.dialog-actions span {
  width: 52px;
  height: 26px;
  border-radius: 999px;
  background: #eef4ff;
}

.floating-tool {
  position: absolute;
  right: 30px;
  bottom: 34px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(11, 102, 255, 0.78);
  box-shadow: 0 14px 28px rgba(11, 102, 255, 0.28);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.info-card,
.feature-item,
.contact-card {
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.info-card {
  box-shadow: 0 16px 34px rgba(19, 42, 82, 0.06);
}

.info-card p,
.feature-item p,
.contact-card p,
.timeline p {
  color: var(--muted);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.soft-section {
  background: var(--soft);
}

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

.feature-item {
  background: #ffffff;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--blue);
  font-weight: 800;
}

.download-section {
  color: #ffffff;
  background: linear-gradient(135deg, #0a4fc8 0%, #092a66 100%);
}

.download-section h2,
.download-section .eyebrow {
  color: #ffffff;
}

.download-section p {
  color: rgba(255, 255, 255, 0.82);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.contact-card {
  background: #ffffff;
}

.agreement-section {
  background: #ffffff;
}

.agreement-heading {
  max-width: 800px;
}

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

.agreement-card {
  display: flex;
  min-height: 306px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(19, 42, 82, 0.06);
}

.agreement-card p {
  flex: 1;
  color: var(--muted);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.56);
}

.modal-layer.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.modal-heading {
  padding: 30px 72px 18px 30px;
  border-bottom: 1px solid var(--line);
}

.modal-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 40px);
}

.modal-content {
  overflow: auto;
  padding: 8px 30px 30px;
}

.policy-list {
  padding-left: 0;
  margin: 0;
  list-style: none;
  counter-reset: policy;
}

.policy-list li {
  counter-increment: policy;
  position: relative;
  padding: 18px 0 18px 48px;
  border-bottom: 1px solid rgba(11, 102, 255, 0.12);
  color: #344054;
  line-height: 1.72;
}

.policy-list li::before {
  content: counter(policy);
  position: absolute;
  top: 18px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.policy-list li:last-child {
  border-bottom: 0;
}

.policy-list-plain li {
  padding-left: 0;
}

.policy-list-plain li::before {
  content: none;
}

.contact-card.muted {
  background: var(--soft-blue);
}

.contact-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 800;
}

.feedback-stack {
  display: grid;
  gap: 20px;
}

.feedback-heading {
  max-width: 760px;
}

.flash-message {
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-weight: 700;
}

.flash-success {
  color: #0f5132;
  background: #d1e7dd;
}

.flash-error {
  color: #842029;
  background: #f8d7da;
}

.flash-info {
  color: #084298;
  background: #cfe2ff;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-submit-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.feedback-result {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 8px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
}

.feedback-result.is-visible {
  opacity: 1;
  visibility: visible;
}

.thanks-section {
  background: #f8fbff;
}

.thanks-heading {
  max-width: 760px;
}

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

.thanks-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 116px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(19, 42, 82, 0.06);
}

.thanks-avatar {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
}

.thanks-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

.form-row label,
.filter-form label,
.status-form label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea,
.filter-form input,
.filter-form select,
.bulk-actions select,
.status-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.form-row textarea {
  resize: vertical;
}

.admin-page {
  background: #f5f8fc;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.admin-login-card {
  width: min(440px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin: 18px 0 8px;
  font-size: 32px;
}

.admin-login-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.install-card {
  width: min(720px, 100%);
}

.admin-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.admin-actions {
  display: flex;
  gap: 16px;
  color: #344054;
  font-weight: 800;
}

.admin-actions a.active {
  color: var(--blue);
}

.admin-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.admin-toolbar,
.detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-toolbar h1,
.detail-heading h1 {
  margin-bottom: 8px;
  font-size: 40px;
}

.filter-form,
.status-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.filter-form {
  justify-content: flex-end;
}

.filter-form > div {
  min-width: 132px;
}

.bulk-form {
  margin-top: 16px;
}

.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.bulk-actions select {
  width: auto;
  min-width: 160px;
}

.admin-table-wrap,
.feedback-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(19, 42, 82, 0.06);
}

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

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #475467;
  background: #f8fbff;
  font-size: 13px;
  text-transform: uppercase;
}

.admin-table a {
  color: var(--blue);
  font-weight: 800;
}

.model-config-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.admin-table.model-config-table {
  width: max-content;
  min-width: 2200px;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table.model-config-table th,
.admin-table.model-config-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.model-config-inline-list {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.model-config-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.model-config-actions form {
  margin: 0;
}

.model-config-actions .btn {
  white-space: nowrap;
}

.admin-table.model-config-table th.model-config-actions-cell,
.admin-table.model-config-table td.model-config-actions-cell {
  position: sticky;
  right: 0;
  z-index: 3;
  min-width: 380px;
  background: #ffffff;
  box-shadow: -14px 0 22px rgba(19, 42, 82, 0.1);
}

.admin-table.model-config-table th.model-config-actions-cell {
  z-index: 4;
  background: #f8fbff;
}

.model-config-separator {
  color: #98a2b3;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.status-new {
  color: #842029;
  background: #f8d7da;
}

.status-read {
  color: #664d03;
  background: #fff3cd;
}

.status-archived {
  color: #475467;
  background: #eaecf0;
}

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

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  color: var(--muted);
  font-weight: 800;
}

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 800;
}

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

.metric-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(19, 42, 82, 0.05);
}

.metric-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 24px;
}

.metric-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.balance-trend,
.usage-trend {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.balance-trend-meta,
.usage-trend-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.balance-trend-meta span,
.usage-trend-meta span {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.balance-trend-chart,
.usage-trend-chart {
  display: block;
  width: 100%;
  min-height: 150px;
  aspect-ratio: 16 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.balance-trend-grid,
.usage-trend-grid {
  stroke: rgba(102, 112, 133, 0.22);
  stroke-width: 1;
}

.balance-trend-line,
.usage-trend-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usage-trend-line {
  stroke: #12b76a;
}

.balance-trend-point,
.usage-trend-point {
  fill: #ffffff;
  stroke: var(--blue);
  stroke-width: 3;
}

.usage-trend-point {
  stroke: #12b76a;
}

.balance-trend-point-latest,
.usage-trend-point-latest {
  fill: var(--blue);
}

.usage-trend-point-latest {
  fill: #12b76a;
}

.inline-admin-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.inline-admin-form input,
.inline-admin-form select {
  width: auto;
  min-width: 92px;
}

.feedback-detail {
  padding: 28px;
}

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

.meta-grid div,
.message-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.meta-grid dt {
  margin-bottom: 6px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

.meta-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.message-box {
  margin-top: 16px;
}

.danger-zone {
  border-color: rgba(198, 40, 40, 0.25);
  background: #fff7f7;
}

.message-box h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.message-box p {
  white-space: normal;
  overflow-wrap: anywhere;
}

.message-box pre {
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
}

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

.attachment-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.attachment-card img,
.attachment-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111827;
}

.attachment-file-preview {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafc;
  color: var(--ink);
  text-decoration: none;
}

.attachment-file-preview span {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 102, 255, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.attachment-file-preview strong {
  font-size: 14px;
}

.attachment-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.attachment-card small,
.form-row small {
  color: var(--muted);
}

.clean-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.clean-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(11, 102, 255, 0.12);
  color: #344054;
}

.clean-list li:last-child {
  border-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

.footer-inner > :last-child {
  justify-self: end;
}

.icp-link {
  justify-self: center;
}

@media (max-width: 991.98px) {
  .section-pad {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
  }

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

  .thanks-grid {
    grid-template-columns: 1fr;
  }

  .agreement-panel {
    grid-template-columns: 1fr;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .nav-grid {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    justify-self: center;
  }

  .brand-title {
    font-size: 1em;
  }

  .brand {
    font-size: 16px;
  }

  .brand-divider,
  .brand-partner-logo {
    display: none;
  }

  .back-link {
    font-size: 13px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 34px rgba(19, 42, 82, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .modal-layer {
    padding: 14px;
  }

  .modal-panel {
    max-height: calc(100vh - 28px);
  }

  .modal-heading {
    padding: 24px 66px 16px 20px;
  }

  .modal-content {
    padding: 4px 20px 24px;
  }

  .policy-list li {
    padding-left: 42px;
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 18px;
  }

  .phone-content {
    min-height: 410px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-inner > :last-child,
  .icp-link {
    justify-self: center;
  }

  .form-row.two-columns,
  .meta-grid,
  .attachment-grid,
  .balance-trend-meta,
  .usage-trend-meta,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .admin-header,
  .admin-toolbar,
  .detail-heading,
  .filter-form,
  .status-form,
  .bulk-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-form > div,
  .bulk-actions select {
    width: 100%;
  }

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

  .admin-table {
    min-width: 860px;
  }
}

@media (max-width: 420px) {
  .container,
  .container-fluid {
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-title {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: 38px;
  }

  .hero-actions .btn,
  .download-actions .btn {
    width: 100%;
  }
}
