::-webkit-scrollbar {
    width: 1px;
}
::-webkit-scrollbar-thumb:vertical {
    color: #0077ff;
    background: #0077ff;
    border-radius: 10px;
}
.page-content {
  animation: slideUp 0.8s ease both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
html {
    scroll-behavior: smooth;
}
:root {
  color-scheme: dark;
  --page: #071426;
  --panel: #0d2038;
  --panel-raised: #112b48;
  --line: rgba(91, 177, 225, 0.2);
  --blue: #38bdf8;
  --blue-bright: #24b8f5;
  --blue-soft: #91dcff;
  --text: #eaf4ff;
  --muted: #a9bed3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: "Anuphan", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(5, 20, 39, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 20, 39, 0.84);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.header-inner,
.section-inner {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(125, 211, 252, 0.35);
}

.brand-accent {
  color: var(--blue);
}

.main-nav {
  gap: clamp(16px, 3vw, 36px);
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding-block: 8px;
  color: #c1d3e5;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.28s ease, transform 0.28s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav .home,
.main-nav .premium-active {
  color: var(--blue);
}

.main-nav a:hover {
  transform: translateY(-1px);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav .home::after,
.main-nav .premium-active::after {
  transform: scaleX(1);
}


.premium-page {
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 9vh, 88px) 24px 80px;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(0, 133, 255, 0.09), transparent 52%),
    var(--page);
}

.premium-section {
  width: min(100%, 900px);
  margin-inline: auto;
}



.premium-section > h1 {
  margin: 0 0 26px;
  color: #eef6ff;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.premium-section > h1 span {
  color: var(--blue-bright);
}

.premium-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(48, 135, 205, 0.24);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(12, 39, 69, 0.98), rgba(7, 28, 52, 0.98));
}

.premium-picker {
  width: min(100%, 620px);
  margin-inline: auto;
}

.plan-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid rgba(75, 143, 196, 0.18);
  border-radius: 11px;
  background: rgba(4, 20, 38, 0.58);
}

.plan-switch::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 7px);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(10, 169, 222, 0.3), rgba(23, 107, 190, 0.28));
  transition: transform 320ms cubic-bezier(0.22, 0.8, 0.25, 1);
  pointer-events: none;
}

#personal-plan:checked ~ .plan-switch::before {
  transform: translateX(calc(100% + 4px));
}

.plan-switch label {
  position: relative;
  z-index: 1;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9bb2c9;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.plan-switch label:hover {
  color: #e7f6ff;
}

#guild-plan:checked ~ .plan-switch label[for="guild-plan"],
#personal-plan:checked ~ .plan-switch label[for="personal-plan"] {
  color: #e9faff;
}

#guild-plan:focus-visible ~ .plan-switch label[for="guild-plan"],
#personal-plan:focus-visible ~ .plan-switch label[for="personal-plan"] {
  outline: 2px solid var(--blue-soft);
  outline-offset: 2px;
}

.plan-views {
  display: grid;
}

.plan-view {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.975);
  transform-origin: center top;
  z-index: 0;
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.22, 0.8, 0.25, 1),
    transform 360ms cubic-bezier(0.22, 0.8, 0.25, 1),
    visibility 0s linear 360ms;
}

.plan-view.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  z-index: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.plan-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(18, 173, 238, 0.32), rgba(21, 101, 187, 0.28));
  color: #dff7ff;
}

.plan-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-heading h2 {
  margin: 0 0 2px;
  color: #eaf4ff;
  font-size: 17px;
  line-height: 1.35;
}

.plan-heading p {
  margin: 0;
  color: #91a9bf;
  font-size: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 10px;
}

.plan-price strong {
  color: #15c5f4;
  font-family: system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.25;
}

.plan-price span {
  color: #a9bed3;
  font-size: 12px;
}

.premium-benefits {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.premium-benefits li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c5d7e8;
  font-size: 13px;
  line-height: 1.45;
}

.premium-benefits img {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  object-fit: contain;
}

.discord-id-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(75, 143, 196, 0.17);
  border-radius: 9px;
  background: rgba(18, 48, 79, 0.72);
  color: #93acc4;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.discord-id-field:focus-within {
  border-color: rgba(56, 189, 248, 0.66);
  background: rgba(18, 52, 86, 0.9);
}

.discord-id-field > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discord-id-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.discord-id-field input::placeholder {
  color: #8199b1;
  opacity: 1;
}

.payment-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  border: 1px solid rgba(57, 200, 255, 0.48);
  border-radius: 9px;
  background: linear-gradient(100deg, #08b9ec, #159fe9);
  color: #f4fcff;
  font-family: "Anuphan", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.payment-button:hover {
  filter: brightness(1.08);
  transform: scale(1.03);
}

.payment-button span {
  font-size: 16px;
  line-height: 1;
}

.payment-button:disabled {
  cursor: wait;
  filter: grayscale(0.25);
  opacity: 0.75;
  transform: none;
}

.api-status {
  min-height: 18px;
  margin: 2px 1px 0;
  color: var(--muted, #a9bed3);
  font-size: 11px;
  line-height: 1.5;
}

.api-status[data-state="success"] {
  color: #6ee7b7;
}

.api-status[data-state="error"] {
  color: #fca5a5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 640px) {
  .premium-page {
    min-height: calc(100vh - 66px);
    padding: 48px 16px 64px;
  }

  .premium-section > h1 {
    margin-bottom: 20px;
  }

  .premium-card {
    padding: 18px;
  }

  .plan-switch label {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-view,
  .plan-switch::before {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }
}

.discord-contact-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: clamp(182px, 6vw, 2px);
  padding: 0 16px 12px;
  text-align: center;
}

.partnership-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.discord-contact-mark h2 {
  margin: 0;
  color: #eaf4ff;
  font-size: clamp(22px, 3vw, 30px);
}

.partnership-description {
  margin: 0 0 2px;
  color: #91a9bf;
  font-size: 13px;
}

.discord-contact-mark a {
  display: inline-flex;
  padding: 7px;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.discord-contact-mark a:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: scale(1.2);
}

.discord-contact-mark img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.88;
}

.footer-inner {
  width: min(100% - 48px, 1200px);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-inline: auto;
  color: #8299af;
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid rgba(56, 189, 248, 0.24);
  background: #061222;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-links a {
  color: #a9bed3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--blue);
}

.payment-button:disabled {
  cursor: wait;
  filter: grayscale(0.25);
  opacity: 0.75;
  transform: none;
}

.api-status {
  min-height: 18px;
  margin: 2px 1px 0;
  color: var(--muted, #a9bed3);
  font-size: 11px;
  line-height: 1.5;
}

.api-status[data-state="success"] {
  color: #6ee7b7;
}

.api-status[data-state="error"] {
  color: #fca5a5;
}

.discord-id-field.has-error {
  border-color: #fb7185;
  background: rgba(127, 29, 29, 0.16);
  box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.12);
}

.discord-id-field.has-error:focus-within {
  border-color: #fb7185;
  background: rgba(127, 29, 29, 0.2);
}

.button-spinner {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 2px solid rgba(244, 252, 255, 0.45);
  border-top-color: #f4fcff;
  border-radius: 50%;
  animation: premium-button-spin 0.7s linear infinite;
}

@keyframes premium-button-spin {
  to { transform: rotate(360deg); }
}

.discord-id-field.has-success {
  border-color: #34d399;
  background: rgba(6, 78, 59, 0.2);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.12);
}

.discord-id-field.has-success:focus-within {
  border-color: #34d399;
  background: rgba(6, 78, 59, 0.24);
}

.premium-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 9px;
  background: rgba(10, 38, 63, 0.72);
  color: #b9ccdc;
  font-size: 11px;
  line-height: 1.55;
}

.premium-notice img {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
}

.premium-notice p {
  margin: 0;
}



.payment-button.is-payment-ready {
  border-color: rgba(52, 211, 153, 0.58);
  background: linear-gradient(100deg, #16a66a, #0f9b72);
  color: #f1fff8;
}

.payment-button.is-payment-ready:hover {
  filter: brightness(1.08);
}

.order-page {
  width: min(720px, calc(100% - 28px));
  margin: 38px auto 54px;
}

.order-card {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 36, 58, 0.98), rgba(7, 20, 38, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  color: #eaf4ff;
}

.order-back {
  color: #7dd3fc;
  font-size: 13px;
  text-decoration: none;
}

.order-back:hover { color: #fff; }

.order-kicker {
  margin: 28px 0 4px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.order-card h1 {
  margin: 0;
  color: #f4faff;
  font-size: clamp(25px, 5vw, 34px);
}

.order-intro {
  margin: 6px 0 20px;
  color: #a9bed3;
  font-size: 14px;
}

.order-status {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  background: rgba(10, 38, 63, 0.74);
  color: #bae6fd;
  font-size: 14px;
  font-weight: 600;
}

.order-status[data-state="checking"] {
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(113, 63, 18, 0.2);
  color: #fde68a;
}

.order-status[data-state="success"] {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(6, 78, 59, 0.28);
  color: #a7f3d0;
}

.order-status[data-state="error"] {
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(127, 29, 29, 0.18);
  color: #fecdd3;
}

.order-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
  padding: 4px 0 18px;
  border-bottom: 1px solid rgba(169, 190, 211, 0.16);
}

.order-details > div { padding: 10px 0; }
.order-details dt { color: #8fa9c1; font-size: 12px; }
.order-details dd { margin: 4px 0 0; color: #eef7ff; font-size: 14px; overflow-wrap: anywhere; }
.order-details code { color: #d7edff; font-size: 12px; }
.order-details .order-price { color: #38d4f8; font-size: 21px; font-weight: 700; }

.order-payment-choice, .promptpay-panel { margin-top: 22px; }
.order-payment-choice h2, .promptpay-panel h2 { margin: 0 0 12px; font-size: 17px; }

.payment-method-card {
  display: flex;
  width: 100%;
  min-height: 74px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  background: rgba(13, 43, 69, 0.88);
  color: #eaf4ff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.payment-method-card:hover {
  transform: translateY(-1px);
  border-color: #38bdf8;
  background: rgba(15, 56, 86, 0.94);
}

.promptpay-mark {
  display: block;
  width: 110px;
  height: 54px;
  flex: 0 0 110px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.promptpay-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }

.payment-method-card strong, .payment-method-card small { display: block; }
.payment-method-card small { margin-top: 3px; color: #a9bed3; font-size: 12px; }
.method-arrow { margin-left: auto; color: #7dd3fc; font-size: 20px; }

.promptpay-panel > p { color: #a9bed3; font-size: 13px; }
.promptpay-qr-frame {
  display: grid;
  width: min(100%, 340px);
  margin: 18px auto 10px;
  padding: 10px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
}

.promptpay-qr-frame img { display: block; width: 100%; height: auto; border-radius: 9px; }
.promptpay-panel .qr-amount { margin: 10px 0 20px; color: #d5e8f8; text-align: center; }
.qr-amount strong { margin-left: 5px; color: #38d4f8; font-size: 24px; }

.slip-upload {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 13px 15px;
  border: 1px dashed rgba(125, 211, 252, 0.5);
  border-radius: 10px;
  background: rgba(10, 38, 63, 0.62);
  cursor: pointer;
}

.slip-upload-title { color: #eef7ff; font-size: 14px; font-weight: 600; }
.slip-upload-hint { color: #9bb4ca; font-size: 12px; overflow-wrap: anywhere; }
.slip-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.slip-submit { margin-top: 12px; }
.slip-submit:disabled { cursor: not-allowed; filter: grayscale(0.3); opacity: 0.6; }
.slip-submit[aria-busy="true"] { cursor: wait; filter: none; opacity: 1; }
.loading-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 7px;
  vertical-align: -3px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: slip-spinner 0.75s linear infinite;
}
@keyframes slip-spinner { to { transform: rotate(360deg); } }
.order-help { margin: 20px 0 0; color: #8fa9c1; font-size: 12px; line-height: 1.6; }
.order-countdown { margin: 8px 0 0; color: #7dd3fc; font-size: 13px; line-height: 1.6; }
.order-countdown[data-state="ready"] { color: #8fa9c1; }

@media (max-width: 540px) {
  .order-page { margin: 20px auto 36px; }
  .order-details { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .order-details > div { padding: 8px 0; }
}

/* Small screens: give the brand and navigation separate rows, and keep controls easy to tap. */
@media (max-width: 640px) {
  .premium-page {
    min-height: calc(100svh - 104px);
    padding: 26px 10px 34px;
  }

  .premium-section > h1 { margin-bottom: 16px; font-size: clamp(21px, 6vw, 28px); }
  .premium-card { padding: 12px; border-radius: 12px; }
  .plan-switch { margin-bottom: 14px; }
  .plan-switch label { min-height: 40px; padding-inline: 4px; font-size: 10.5px; }
  .plan-heading { gap: 9px; }
  .plan-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .plan-heading h2 { font-size: 14px; }
  .plan-heading p { font-size: 11px; }
  .plan-price { margin-block: 9px 7px; }
  .plan-price strong { font-size: 23px; }
  .premium-benefits { gap: 7px; margin-bottom: 12px; }
  .premium-benefits li { align-items: flex-start; font-size: 11.5px; line-height: 1.4; }
  .premium-benefits img { margin-top: 1px; }
  .premium-notice { gap: 7px; margin-bottom: 8px; padding: 8px; font-size: 10.5px; }

  .discord-id-field { min-height: 46px; }
  .discord-id-field input { font-size: 10px; }
  .payment-button { min-height: 46px; font-size: 13px; }

  .order-page { width: calc(100% - 24px); margin: 14px auto 28px; }
  .order-card { padding: 18px 15px; border-radius: 14px; }
  .order-kicker { margin-top: 22px; }
  .order-card h1 { font-size: clamp(24px, 7vw, 31px); }
  .order-intro { font-size: 13px; line-height: 1.55; }
  .order-details { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .order-details > div { padding: 8px 0; }
  .order-details dd,
  .order-details code { font-size: 13px; }
  .order-details .order-price { font-size: 20px; }

  .payment-method-card { min-height: 68px; gap: 10px; padding: 10px; }
  .promptpay-mark { width: 86px; height: 48px; flex-basis: 86px; }
  .payment-method-card small { font-size: 11px; }
  .promptpay-qr-frame { width: min(100%, 320px); padding: 8px; }
  .slip-upload { min-height: 72px; padding: 12px; }

  .footer-inner {
    width: calc(100% - 32px);
    min-height: 64px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: visible;
    padding-block: 10px;
    white-space: normal;
    font-size: 10px;
  }

  .footer-inner > p { flex: initial; max-width: 100%; text-align: center; }
  .footer-links {
    flex: initial;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 6px;
    font-size: 10px;
    text-align: center;
  }
  .footer-links a { min-width: 0; overflow-wrap: anywhere; }
}

/* Match the home page header breakpoint and mobile sizing. */
@media (max-width: 560px) {
  html { scroll-padding-top: 76px; }

  .header-inner {
    width: min(100% - 32px, 1200px);
    min-height: 0;
    flex-wrap: wrap;
    gap: 2px 12px;
    padding-block: 9px 7px;
  }

  .brand { gap: 7px; font-size: 14px; }
  .brand-logo { width: 32px; height: 32px; }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .main-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 7px 2px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .header-inner { width: calc(100% - 24px); }
  .main-nav { gap: 4px; }
  .main-nav a { font-size: 12px; }
  .premium-page { padding: 22px 9px 30px; }
  .premium-section > h1 { font-size: 21px; }
  .premium-card { padding: 10px; }
  .plan-switch { gap: 3px; padding: 3px; }
  .plan-switch::before { top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); }
  #personal-plan:checked ~ .plan-switch::before { transform: translateX(calc(100% + 3px)); }
  .plan-switch label { min-width: 0; padding-inline: 3px; font-size: 10px; line-height: 1.25; }
  .plan-heading { gap: 9px; }
  .plan-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .plan-heading h2 { font-size: 14px; }
  .plan-heading p { font-size: 11px; }
  .plan-price { margin-block: 12px 9px; }
  .premium-benefits li { font-size: 11px; }
  .premium-notice { font-size: 10px; }
  .order-page { width: calc(100% - 16px); }
  .order-card { padding-inline: 12px; }
}

@media (min-width: 361px) and (max-width: 420px) {
  .premium-card { padding: 11px; }
  .plan-switch label { font-size: 10.5px; }
  .premium-benefits li { font-size: 11px; }
}

@media (hover: none) {
  .payment-button:hover,
  .payment-method-card:hover,
  .main-nav a:hover { transform: none; }
}
