* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #fff1f1 0%, #ffffff 35%, #f8f8f8 100%);
  color: #1d1d1f;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  width: 100%;
  padding: 22px max(7%, calc((100vw - 1180px) / 2 + 24px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.theme-logo-dark {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #333;
  text-decoration: none;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 999px;
  transition: 0.25s;
}

.site-nav a:hover,
.site-nav a.active,
.account-menu-button:hover,
.account-menu-button.active {
  background: #fff1f1;
  color: #dd1f26;
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
}

.account-menu summary {
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #333;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s;
  user-select: none;
}

.account-menu-button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.account-menu[open] .account-menu-button::after {
  transform: rotate(225deg) translateY(-2px);
}

.account-menu-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 240px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #f0eeee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,0.12);
}

.account-menu-list a {
  justify-content: flex-start;
  border-radius: 16px;
  padding: 11px 12px;
}

.logout-link {
  color: #8a1c20 !important;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  fill: currentColor;
}

.language-switcher {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 7px;
  border-radius: 999px;
  border: 1px solid #eee;
  box-shadow: 0 10px 35px rgba(0,0,0,0.06);
}

.language-switcher button {
  border: 0;
  background: transparent;
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  color: #555;
  transition: 0.25s;
}

.language-switcher button.active,
.language-switcher button:hover {
  background: #dd1f26;
  color: #fff;
}

.theme-toggle {
  border: 1px solid #f0d6d6;
  background: #fff;
  color: #dd1f26;
  padding: 12px 15px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(0,0,0,0.06);
  transition: 0.25s;
}

.theme-toggle:hover {
  background: #fff1f1;
  transform: translateY(-1px);
}

.page-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 34px 24px 80px;
}

.auth-shell {
  min-height: calc(100vh - 102px);
  display: grid;
  place-items: center;
  padding: 34px 24px 80px;
}

.hero {
  max-width: 860px;
  margin-bottom: 32px;
}

.section-label {
  display: inline-flex;
  color: #dd1f26;
  background: #fff1f1;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.intro {
  color: #555;
  line-height: 1.75;
  font-size: 18px;
  max-width: 760px;
}

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

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

.card,
.auth-card {
  background: #fff;
  border: 1px solid #f0eeee;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.06);
}

.auth-card {
  width: min(100%, 520px);
}

.card h2,
.card h3,
.auth-card h1 {
  margin-bottom: 12px;
}

.card p,
.muted {
  color: #555;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.card-link,
.btn {
  margin-top: 18px;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 18px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  min-height: 50px;
  line-height: 1.2;
  text-align: center;
  touch-action: manipulation;
}

.btn {
  width: 100%;
}

.card-link,
.btn-primary {
  background: #dd1f26;
  color: #fff;
  box-shadow: 0 18px 35px rgba(221, 31, 38, 0.24);
}

.btn-secondary {
  background: #fff;
  color: #dd1f26;
  border: 1px solid #f0d6d6;
}

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

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

label {
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
  color: #333;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 14px 15px;
  font-size: 16px;
  outline: none;
  background: #fff;
  color: #1d1d1f;
  min-height: 50px;
}

textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
}

audio {
  max-width: 100%;
}

audio::-webkit-media-controls-panel {
  min-height: 44px;
}

:focus-visible {
  outline: 3px solid rgba(221, 31, 38, 0.42);
  outline-offset: 3px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #dd1f26;
  box-shadow: 0 0 0 4px rgba(221, 31, 38, 0.10);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #555;
  line-height: 1.6;
}

.checkbox-row input {
  width: auto;
  margin-top: 5px;
}

.alert {
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.6;
  font-weight: 800;
  margin-bottom: 18px;
}

.alert-error {
  background: #fff1f1;
  color: #8a1c20;
  border: 1px solid #f0d6d6;
}

.alert-info {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid #f0eeee;
  background: #fff;
}

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

th,
td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid #f0eeee;
  vertical-align: top;
}

th {
  color: #555;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.badge-success {
  background: #ecfdf3;
  color: #166534;
}

.badge-danger {
  background: #fff1f1;
  color: #8a1c20;
}

.badge-muted {
  background: #f1f5f9;
  color: #475569;
}

.table-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff1f1;
  color: #dd1f26;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.table-action-link:hover {
  background: #dd1f26;
  color: #fff;
}

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

.table-action-form {
  margin: 0;
}

.table-action-primary {
  background: #dd1f26;
  color: #fff;
  box-shadow: 0 10px 24px rgba(221, 31, 38, 0.18);
}

.table-action-primary:hover {
  background: #b91c1c;
}

.table-action-danger {
  background: #fff;
  color: #8a1c20;
  border: 1px solid #f0d6d6;
}

.table-action-danger:hover {
  background: #fff1f1;
  color: #8a1c20;
}

.stat {
  font-size: 30px;
  font-weight: 900;
  color: #dd1f26;
  margin-top: 8px;
}

.detail-list {
  display: grid;
  gap: 14px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #f0eeee;
  padding-bottom: 14px;
}

.detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-row span {
  color: #555;
  font-weight: 800;
}

.detail-row strong {
  text-align: right;
}

.upgrade-section {
  margin-top: 28px;
}

.dashboard-level-section {
  margin-top: 28px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

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

.dashboard-level-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--level-border);
  border-radius: 22px;
  background: var(--level-bg);
  color: var(--level-color);
  text-decoration: none;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.dashboard-level-card:hover {
  transform: translateY(-2px);
  border-color: var(--level-color);
  box-shadow: 0 18px 38px rgba(0,0,0,0.10);
}

.dashboard-level-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--level-color);
  font-weight: 900;
}

.dashboard-level-code {
  display: block;
  margin-top: 18px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-level-action {
  margin-top: 8px;
  color: #555;
  font-size: 13px;
  font-weight: 800;
}

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

.plan-card {
  background: #fff;
  border: 1px solid #f0eeee;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-card-enterprise {
  grid-column: 1 / -1;
}

.plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.plan-card-header h3 {
  margin-top: 8px;
}

.plan-price {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
  line-height: 1.15;
}

.plan-card-header strong {
  display: block;
  color: #dd1f26;
  font-size: 20px;
  text-align: right;
  white-space: nowrap;
}

.plan-bank-fee {
  color: #555;
  display: block;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.plan-total-with-fee {
  color: #1d1d1f;
  display: block;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.plan-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1f1;
  color: #dd1f26;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #555;
  line-height: 1.5;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #dd1f26;
  font-weight: 900;
}

.plan-action-form {
  margin-top: auto;
}

.plan-card .btn {
  width: auto;
  min-width: 132px;
}

.btn:disabled {
  background: #f1f5f9;
  color: #64748b;
  box-shadow: none;
  cursor: not-allowed;
}

.support-layout {
  align-items: start;
}

.support-ticket-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: start;
}

.support-form-card {
  max-width: 720px;
}

.support-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.support-card-header h2 {
  margin-bottom: 6px;
}

.support-card-header .btn {
  margin-top: 6px;
  flex-shrink: 0;
}

.support-ticket-list-card .support-card-header {
  display: grid;
  gap: 14px;
}

.support-ticket-list-card .support-card-header .btn {
  width: 100%;
  margin-top: 0;
  justify-content: center;
}

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

.support-ticket-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #f0eeee;
  border-radius: 18px;
  background: #fff;
  color: #1d1d1f;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.support-ticket-item:hover,
.support-ticket-item.active {
  border-color: #f0d6d6;
  box-shadow: 0 14px 30px rgba(221, 31, 38, 0.10);
  transform: translateY(-1px);
}

.support-ticket-item-title {
  font-weight: 900;
  line-height: 1.25;
}

.support-ticket-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.support-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.support-status-pill.open {
  background: #ecfdf3;
  color: #166534;
}

.support-status-pill.closed {
  background: #f1f5f9;
  color: #475569;
}

.support-thread-card {
  min-width: 0;
}

.support-thread-messages {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.support-message-row {
  display: flex;
}

.support-message-row.mine {
  justify-content: flex-end;
}

.support-message-row.theirs {
  justify-content: flex-start;
}

.support-message-bubble {
  max-width: min(82%, 620px);
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 18px;
  background: #f8fafc;
  color: #1d1d1f;
  border: 1px solid #e2e8f0;
}

.support-message-row.mine .support-message-bubble {
  background: #fff1f1;
  border-color: #f0d6d6;
}

.support-message-bubble p {
  margin: 0;
  line-height: 1.55;
}

.support-message-bubble span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.support-message-image-link img {
  display: block;
  max-width: 260px;
  max-height: 240px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.support-reply-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f0eeee;
}

.support-form .btn {
  margin-top: 18px;
}

.support-contact-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: #fff1f1;
  border: 1px solid #f0d6d6;
  display: grid;
  gap: 8px;
}

.support-contact-box span {
  color: #8a1c20;
  font-weight: 900;
}

.support-contact-box strong {
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 24px;
  color: #777;
  line-height: 1.7;
  font-weight: 700;
}

.site-footer {
  padding: 30px max(7%, calc((100vw - 1180px) / 2 + 24px));
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 48%, #f8f8f8 100%);
  color: #1d1d1f;
  border-top: 1px solid #f0eeee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

html[data-theme="dark"] .theme-logo-light {
  display: none;
}

html[data-theme="dark"] .theme-logo-dark {
  display: inline-block;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 800;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #333;
  text-decoration: none;
}

.footer-links a:hover {
  color: #dd1f26;
}

.footer-copy {
  color: #777;
  font-weight: 700;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: radial-gradient(circle at top left, #2a1114 0%, #101318 38%, #090b10 100%);
  color: #f8fafc;
}

html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .account-menu-button,
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] label,
html[data-theme="dark"] .detail-row strong,
html[data-theme="dark"] .plan-total-with-fee,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .auth-card h1 {
  color: #f8fafc;
}

html[data-theme="dark"] .logout-link {
  color: #ff9ca0 !important;
}

html[data-theme="dark"] .language-switcher,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .account-menu-list,
html[data-theme="dark"] .card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .table-wrap {
  background: rgba(17, 24, 39, 0.94);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}

html[data-theme="dark"] .dashboard-level-card {
  background: color-mix(in srgb, var(--level-color) 24%, #0f172a);
  box-shadow: 0 18px 48px rgba(0,0,0,0.24);
}

html[data-theme="dark"] .dashboard-level-icon {
  background: rgba(15,23,42,0.62);
}

html[data-theme="dark"] .dashboard-level-action {
  color: #cbd5e1;
}

html[data-theme="dark"] .language-switcher button,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .intro,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .detail-row span,
html[data-theme="dark"] .plan-features,
html[data-theme="dark"] .plan-bank-fee,
html[data-theme="dark"] .footer-note,
html[data-theme="dark"] .footer-copy {
  color: #cbd5e1;
}

html[data-theme="dark"] .language-switcher button.active,
html[data-theme="dark"] .language-switcher button:hover,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a.active,
html[data-theme="dark"] .account-menu-button:hover,
html[data-theme="dark"] .account-menu-button.active,
html[data-theme="dark"] .account-menu-list a:hover,
html[data-theme="dark"] .account-menu-list a.active {
  background: #dd1f26;
  color: #fff;
}

html[data-theme="dark"] .section-label,
html[data-theme="dark"] .plan-pill,
html[data-theme="dark"] .table-action-link {
  background: rgba(221, 31, 38, 0.14);
  color: #ff9ca0;
  border-color: rgba(221, 31, 38, 0.32);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.28);
  color: #f8fafc;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  border-color: #ff7478;
  box-shadow: 0 0 0 4px rgba(221, 31, 38, 0.18);
}

html[data-theme="dark"] .support-contact-box {
  background: rgba(221, 31, 38, 0.14);
  border-color: rgba(221, 31, 38, 0.32);
}

html[data-theme="dark"] .support-ticket-item,
html[data-theme="dark"] .support-message-bubble {
  background: rgba(17, 24, 39, 0.94);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .support-ticket-item-meta,
html[data-theme="dark"] .support-message-bubble span {
  color: #cbd5e1;
}

html[data-theme="dark"] .support-ticket-item:hover,
html[data-theme="dark"] .support-ticket-item.active,
html[data-theme="dark"] .support-message-row.mine .support-message-bubble {
  background: rgba(221, 31, 38, 0.14);
  border-color: rgba(221, 31, 38, 0.36);
}

html[data-theme="dark"] .support-status-pill.open {
  background: rgba(22, 101, 52, 0.28);
  color: #bbf7d0;
}

html[data-theme="dark"] .support-status-pill.closed {
  background: #1e293b;
  color: #cbd5e1;
}

html[data-theme="dark"] .support-reply-form {
  border-top-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .support-contact-box span {
  color: #ff9ca0;
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .table-action-danger {
  background: rgba(15, 23, 42, 0.92);
  color: #ff9ca0;
  border-color: rgba(221, 31, 38, 0.36);
}

html[data-theme="dark"] .btn:disabled {
  background: #1e293b;
  color: #94a3b8;
}

html[data-theme="dark"] .site-footer {
  background: linear-gradient(135deg, #111827 0%, #0f172a 48%, #090b10 100%);
  color: #f8fafc;
  border-top-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] .detail-row {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] th {
  color: #cbd5e1;
}

html[data-theme="dark"] .badge-muted {
  background: #1e293b;
  color: #cbd5e1;
}

html[data-theme="dark"] .badge-success {
  background: rgba(22, 101, 52, 0.28);
  color: #bbf7d0;
}

html[data-theme="dark"] .badge-danger,
html[data-theme="dark"] .alert-error {
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.28);
}

html[data-theme="dark"] .alert-info {
  background: rgba(30, 41, 59, 0.72);
  color: #dbeafe;
  border-color: rgba(148, 163, 184, 0.22);
}

@media (max-width: 1180px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .plan-card-enterprise {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .language-switcher {
    flex-wrap: wrap;
    justify-content: center;
    align-self: center;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
    row-gap: 10px;
  }

  .grid,
  .grid.two,
  .support-ticket-layout,
  .plan-grid,
  .dashboard-level-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-level-grid {
    gap: 8px;
  }

  .dashboard-level-card {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--level-bg);
    border-color: var(--level-border);
    color: var(--level-color);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
  }

  .dashboard-level-card:hover {
    transform: none;
    border-color: var(--level-color);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  }

  .dashboard-level-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    background: rgba(255,255,255,0.78);
    color: var(--level-color);
  }

  .dashboard-level-code {
    margin-top: 0;
    font-size: 18px;
    color: inherit;
  }

  .dashboard-level-action {
    margin-top: 0;
    margin-left: auto;
    color: #555;
  }

  html[data-theme="dark"] .dashboard-level-card {
    background: color-mix(in srgb, var(--level-color) 24%, #0f172a);
    border-color: var(--level-border);
    color: var(--level-color);
    box-shadow: 0 12px 30px rgba(0,0,0,0.24);
  }

  html[data-theme="dark"] .dashboard-level-card:hover {
    border-color: var(--level-color);
    box-shadow: 0 12px 30px rgba(0,0,0,0.30);
  }

  html[data-theme="dark"] .dashboard-level-icon {
    background: rgba(15,23,42,0.62);
    color: var(--level-color);
  }

  html[data-theme="dark"] .dashboard-level-action {
    color: #cbd5e1;
  }
}

@media (max-width: 600px) {
  .site-header {
    gap: 12px;
    padding: 14px 14px 12px;
  }

  .logo {
    justify-content: center;
  }

  .logo img {
    height: 42px;
  }

  .page-shell,
  .auth-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-shell {
    padding-top: 18px;
    padding-bottom: 96px;
  }

  .hero {
    margin-bottom: 20px;
  }

  h1 {
    font-size: clamp(32px, 11vw, 44px);
    letter-spacing: -1.2px;
    line-height: 1.04;
  }

  .intro {
    font-size: 16px;
    line-height: 1.6;
  }

  .card,
  .auth-card {
    border-radius: 24px;
    padding: 20px;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 14px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav:has(.account-menu[open]) {
    overflow: visible;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    gap: 5px;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid #f0eeee;
  }

  .account-menu-button {
    gap: 5px;
    min-height: 44px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid #f0eeee;
  }

  .account-menu {
    align-self: flex-start;
  }

  .account-menu-list {
    position: fixed;
    top: 118px;
    left: 14px;
    right: 14px;
    z-index: 100;
    min-width: 0;
    margin-top: 8px;
    max-height: min(420px, calc(100vh - 140px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .language-switcher button {
    padding: 8px 10px;
  }

  .theme-toggle {
    align-self: center;
    min-height: 44px;
    padding: 10px 14px;
  }

  html[data-theme="dark"] .site-nav a,
  html[data-theme="dark"] .account-menu-button {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.28);
    color: #f8fafc;
  }

  html[data-theme="dark"] .site-nav a:hover,
  html[data-theme="dark"] .site-nav a.active,
  html[data-theme="dark"] .account-menu-button:hover,
  html[data-theme="dark"] .account-menu-button.active {
    background: #dd1f26;
    border-color: #dd1f26;
    color: #fff;
  }

  .btn,
  .card-link,
  input,
  select,
  textarea {
    min-height: 54px;
    font-size: 16px;
  }

  .detail-row {
    display: block;
  }

  .detail-row strong {
    display: block;
    text-align: left;
    margin-top: 6px;
  }
}

