:root {
  color-scheme: light;
  --bg: #07152e;
  --bg-2: #0f2647;
  --panel: rgba(9, 24, 48, 0.72);
  --panel-strong: rgba(13, 34, 66, 0.86);
  --panel-border: rgba(191, 227, 255, 0.14);
  --text: #eef7ff;
  --muted: #b7cae2;
  --accent: #94f2ff;
  --accent-2: #4b8cff;
  --accent-soft: rgba(148, 242, 255, 0.12);
  --warn: #ffe08a;
  --warn-soft: rgba(255, 224, 138, 0.14);
  --shadow: 0 24px 60px rgba(0, 7, 20, 0.36);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(148, 242, 255, 0.18), transparent 20%),
    radial-gradient(circle at 80% 0%, rgba(75, 140, 255, 0.22), transparent 24%),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #041126 0%, #0a1d39 45%, #112a4e 100%),
    var(--bg);
  color: var(--text);
}

body {
  padding: 14px 14px 104px;
}

.app-shell {
  max-width: 920px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 18px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.topbar h1,
.hero-card h2 {
  margin: 0;
  font-size: clamp(28px, 7vw, 48px);
  line-height: 0.95;
  color: var(--accent-2);
}

.lead {
  margin: 16px 0 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.profile-chip {
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  background: rgba(237, 247, 255, 0.1);
  color: var(--text);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.profile-chip:not(.is-admin) {
  cursor: default;
}

.profile-chip.is-admin {
  background: linear-gradient(135deg, rgba(148, 242, 255, 0.18), rgba(75, 140, 255, 0.18));
}

.chip-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.screen-stack {
  display: block;
}

.screen {
  display: none;
  gap: 16px;
}

.screen.is-active {
  display: grid;
}

.hero-card,
.card,
.product-card,
.support-card,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card {
  padding: 20px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(10, 31, 61, 0.92), rgba(8, 23, 47, 0.88));
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 58%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 242, 255, 0.26), transparent 65%);
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -18px;
  width: 180px;
  height: 180px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 52%),
    radial-gradient(circle at center, rgba(75, 140, 255, 0.2), transparent 68%);
  filter: blur(2px);
  pointer-events: none;
}

.hero-actions,
.product-actions,
.option-pills,
.checkout-actions,
.inline-actions,
.radio-pills,
.stat-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 22px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h3 {
  margin: 0;
  font-size: 20px;
}

.stat-title {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.support-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.support-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(183, 202, 226, 0.45);
  box-shadow: 0 0 0 4px rgba(183, 202, 226, 0.08);
}

.support-status-dot.is-online {
  background: #64f3a3;
  box-shadow: 0 0 0 4px rgba(100, 243, 163, 0.16);
}

.support-status-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-muted {
  background: rgba(102, 114, 122, 0.12);
  color: var(--muted);
}

.badge-success {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-warning {
  background: var(--warn-soft);
  color: var(--warn);
}

.primary-button,
.ghost-button,
.secondary-button,
.option-pill {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, #9ff4ff, #5d9eff);
  color: #072041;
  box-shadow: 0 12px 30px rgba(93, 158, 255, 0.3);
}

.ghost-button {
  background: rgba(239, 247, 255, 0.07);
  color: var(--text);
  border: 1px solid rgba(191, 227, 255, 0.16);
}

.secondary-button {
  background: rgba(148, 242, 255, 0.12);
  color: var(--accent);
}

.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-grid,
.catalog-grid,
.support-layout,
.admin-actions,
.admin-grid,
.checkout-layout,
.topup-layout,
.product-detail-layout,
.product-meta-grid {
  display: grid;
  gap: 16px;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.support-layout {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.checkout-layout,
.topup-layout,
.product-detail-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  align-items: start;
}

.product-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 8px;
}

.featured-product {
  grid-column: span 2;
}

.stat-card,
.support-card,
.purchase-panel,
.checkout-summary {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 227, 255, 0.12);
}

.purchase-panel,
.checkout-summary {
  background:
    linear-gradient(180deg, rgba(159, 244, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.stat-card strong,
.support-card strong {
  display: block;
  margin-top: 8px;
}

.stat-card strong {
  font-size: 28px;
}

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

.stat-card-roomy {
  padding-bottom: 24px;
}

.stat-card p,
.support-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.mini-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
}

.product-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
}

.product-card-accent {
  background:
    linear-gradient(180deg, rgba(159, 244, 255, 0.12), rgba(75, 140, 255, 0.06)),
    var(--panel-strong);
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 242, 255, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

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

.product-price-large {
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  color: #f5fbff;
}

.product-card h3 {
  margin: 14px 0 8px;
  font-size: 24px;
}

.product-card p {
  margin: 0 0 22px;
  line-height: 1.55;
  color: var(--muted);
}

.product-actions {
  margin-top: 8px;
}

.product-card code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(239, 247, 255, 0.08);
}

.option-group {
  margin-bottom: 22px;
}

.option-group-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #f5fbff;
}

.option-pills {
  gap: 8px;
}

.option-pill {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(191, 227, 255, 0.14);
  background: rgba(239, 247, 255, 0.05);
  color: var(--text);
  font-size: 12px;
}

.option-pill.is-selected {
  background: rgba(148, 242, 255, 0.14);
  color: var(--accent);
}

.radio-pills {
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
}

.radio-pill {
  min-height: 44px;
  flex: 1 1 0;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(191, 227, 255, 0.14);
  background: rgba(239, 247, 255, 0.05);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.radio-pill.is-selected {
  background: linear-gradient(135deg, rgba(159, 244, 255, 0.18), rgba(93, 158, 255, 0.18));
  color: #f5fbff;
}

.meta-box,
.feature-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 227, 255, 0.12);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-item strong {
  display: block;
  margin-bottom: 6px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
}

.detail-title {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.05;
}

.purchase-price {
  display: block;
  margin-top: 10px;
  font-size: 38px;
  line-height: 1;
  color: #f5fbff;
}

.checkout-summary h4 {
  margin: 0 0 16px;
  font-size: 20px;
}

.policy-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 227, 255, 0.12);
  color: var(--muted);
  line-height: 1.5;
}

.policy-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.policy-content {
  display: grid;
  gap: 14px;
}

.policy-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.amount-input {
  margin-bottom: 14px;
}

.amount-pills {
  margin-bottom: 18px;
}

.payment-details-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 227, 255, 0.12);
}

.payment-details-card h4 {
  margin: 0 0 14px;
  font-size: 20px;
}

.payment-detail-line {
  margin: 0 0 8px;
  color: #f5fbff;
  font-size: 16px;
}

.payment-detail-line:last-child {
  margin-bottom: 0;
}

.qr-summary {
  align-items: start;
}

.payment-qr {
  width: 100%;
  max-width: 320px;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(191, 227, 255, 0.08);
  color: var(--muted);
}

.summary-row strong {
  color: #f5fbff;
}

.total-row {
  margin-top: 6px;
  border-bottom: 0;
  font-size: 16px;
}

.ticket-list,
.admin-list,
.chat-draft {
  display: grid;
  gap: 12px;
}

.support-compose {
  display: grid;
  gap: 12px;
}

.support-label {
  font-size: 14px;
  font-weight: 700;
  color: #f5fbff;
}

.ticket-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(191, 227, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.ticket-textarea-compact {
  min-height: 88px;
  max-height: 168px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 227, 255, 0.12);
}

.admin-list-item strong {
  display: block;
  font-size: 15px;
}

.admin-list-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.chat-message-group {
  display: grid;
  gap: 8px;
}

.chat-message-group-user {
  justify-items: end;
}

.chat-author {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.chat-message-group {
  display: grid;
  gap: 8px;
}

.chat-message-group-user {
  justify-items: end;
}

.chat-author {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.chat-bubble {
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(191, 227, 255, 0.12);
}

.chat-bubble-user {
  justify-self: end;
  border-radius: 18px 18px 6px 18px;
  background: rgba(148, 242, 255, 0.12);
}

.chat-compose {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.chat-input {
  flex: 1;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(191, 227, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.chat-input-area {
  min-height: 68px;
  resize: none;
  padding: 12px 16px;
  border-radius: 18px;
}

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

.compact-button {
  min-height: 40px;
  padding-inline: 16px;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.option-pill {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(191, 227, 255, 0.14);
  background: rgba(239, 247, 255, 0.05);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.option-pill.is-selected {
  background: rgba(148, 242, 255, 0.14);
  color: var(--accent);
}

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

.info-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 227, 255, 0.12);
}

.info-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.info-item strong {
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
}

.details {
  margin-top: 18px;
}

.details summary {
  cursor: pointer;
  font-weight: 700;
}

.ticket-list {
  display: grid;
  gap: 12px;
}

.support-ticket-scroll,
.support-thread-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.support-thread-scroll {
  align-content: start;
}

.ticket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 227, 255, 0.12);
}

.ticket-item.is-selected,
.admin-list-item.is-selected {
  border-color: rgba(148, 242, 255, 0.38);
  background: rgba(148, 242, 255, 0.1);
}

.ticket-item strong {
  display: block;
  font-size: 15px;
}

.ticket-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.ticket-item > div {
  min-width: 0;
  flex: 1;
}

.support-panel {
  min-height: 0;
}

.ticket-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(148, 242, 255, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.ticket-status-muted {
  background: rgba(239, 247, 255, 0.08);
  color: var(--muted);
}

.support-message {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 227, 255, 0.12);
}

.support-message.support-message-admin {
  background: rgba(148, 242, 255, 0.1);
}

.support-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.support-message-head strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.support-message-head span {
  color: var(--muted);
  font-size: 12px;
}

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

.support-alert {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 224, 138, 0.22);
  background: rgba(255, 224, 138, 0.08);
  color: var(--warn);
  font-size: 14px;
  line-height: 1.45;
}

.support-admin-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.support-ban-panel {
  margin-bottom: 0;
}

.support-compose {
  margin-top: 14px;
}

.support-rating {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 227, 255, 0.12);
}

.support-rating-title {
  margin: 0;
  font-size: 15px;
  color: #f5fbff;
}

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

.star-button {
  min-width: 46px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(191, 227, 255, 0.14);
  background: rgba(239, 247, 255, 0.05);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.star-button.is-active,
.star-button:hover {
  background: rgba(255, 224, 138, 0.16);
  color: var(--warn);
}

.support-note-strong {
  color: #f5fbff;
}

.admin-actions {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.search-panel {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.search-panel-stack {
  margin-bottom: 16px;
}

.search-input {
  flex: 1;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(191, 227, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.admin-user-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 227, 255, 0.12);
}

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

.admin-user-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.admin-mini-panel {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(191, 227, 255, 0.12);
}

.chat-ticket-id {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

pre {
  margin: 12px 0 0;
  padding: 16px;
  overflow: auto;
  border-radius: var(--radius-md);
  background: #031225;
  color: #dff7ff;
  font-size: 12px;
  line-height: 1.5;
}

.bottom-nav {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 24px;
  background: rgba(8, 22, 43, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(191, 227, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 7, 20, 0.3);
}

.nav-item {
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.nav-item.is-active {
  background: linear-gradient(135deg, rgba(159, 244, 255, 0.18), rgba(93, 158, 255, 0.18));
  color: #f5fbff;
}

.checkout-config-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(159, 244, 255, 0.28);
  background: rgba(159, 244, 255, 0.08);
  display: grid;
  gap: 10px;
}

.checkout-config-link {
  word-break: break-all;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  max-width: min(92vw, 380px);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(100, 243, 163, 0.32);
  background: rgba(10, 37, 18, 0.9);
  color: #d6ffe6;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 12px 28px rgba(0, 7, 20, 0.35);
  transform: translateY(0);
  opacity: 1;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .featured-product,
  .checkout-layout,
  .topup-layout,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .featured-product {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body {
    padding-inline: 12px;
  }

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

  .profile-chip {
    width: 100%;
    justify-content: space-between;
  }

  .card-head,
  .ticket-item,
  .admin-list-item,
  .chat-compose,
  .radio-pills,
  .search-panel,
  .admin-user-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-thread-scroll,
  .support-ticket-scroll {
    max-height: 360px;
    padding-right: 0;
  }

  .support-rating-actions {
    width: 100%;
  }

  .star-button {
    flex: 1 1 calc(20% - 8px);
  }

  .radio-pill {
    width: 100%;
  }

  .hero-card,
  .card,
  .product-card,
  .support-card,
  .stat-card {
    padding: 18px;
  }

  .product-price-large,
  .purchase-price,
  .detail-title {
    font-size: 28px;
  }

  .bottom-nav {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .featured-product,
  .checkout-layout,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .toast-stack {
    left: 12px;
    right: 12px;
    bottom: 86px;
  }
}
