:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef5ff;
  --ink: #132033;
  --muted: #627187;
  --line: #dbe5f1;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --warn: #b96f07;
  --danger: #c94242;
  --danger-soft: #fff1f1;
  --shadow: 0 18px 45px rgba(25, 52, 86, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #dceaff 0, rgba(220, 234, 255, 0) 280px),
    var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.app-shell {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 18px 14px 96px;
}

.tab-page {
  display: block;
}

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

body.guide-active-page .hero {
  display: none;
}

body.guide-active-page .notification-section {
  margin-top: 0;
}

.hero-locale-slot {
  flex: 0 0 auto;
  margin-left: auto;
}

.channel-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  box-shadow: var(--shadow);
}

.channel-description,
.channel-contact {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero h1,
.section-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.16;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.channel-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.query-panel,
.content-section,
.info-card,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.query-panel {
  position: relative;
  padding: 14px;
}

.query-panel.has-bound-menu-open {
  z-index: 40;
  overflow: visible;
}

.query-panel label,
.card-label,
.meta-label {
  color: var(--muted);
  font-size: 12px;
}

.query-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 10px;
  margin-top: 8px;
}

.input-wrap {
  position: relative;
}

.input-wrap.has-bound-menu-open {
  z-index: 45;
}

.input-wrap.has-bound-list input {
  padding-right: 82px;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 48px 0 12px;
  background: #fbfdfc;
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.install-entry {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.install-entry-bottom {
  margin-top: 0;
}

.install-app-btn {
  width: 100%;
  min-height: 40px;
}

.install-app-btn.is-primary {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
}

.install-app-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.primary-btn,
.danger-btn,
.ghost-btn,
.icon-text-btn,
.text-btn {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 700;
}

.primary-btn {
  background: var(--brand);
  color: #fff;
}

.primary-btn:hover {
  background: var(--brand-dark);
}

.scan-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border-radius: 8px;
  background: transparent;
  color: #9aa7b8;
  padding: 0;
}

.scan-btn:hover {
  background: #f1f4f8;
  color: #718096;
}

.bound-iccid-toggle {
  position: absolute;
  top: 50%;
  right: 42px;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.bound-iccid-toggle::before {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid currentColor;
  content: "";
  transition: transform 0.18s ease;
}

.bound-iccid-toggle.is-open::before {
  transform: rotate(180deg);
}

.bound-iccid-toggle:hover {
  background: #f1f4f8;
  color: var(--brand-dark);
}

.bound-iccid-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  display: grid;
  gap: 4px;
  max-height: min(360px, calc(100vh - 180px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.bound-iccid-option,
.bound-iccid-empty {
  width: 100%;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
}

.bound-iccid-option {
  border: 0;
  display: grid;
  gap: 4px;
  background: #fff;
  color: var(--ink);
}

.bound-iccid-option:hover {
  background: var(--surface-soft);
}

.bound-iccid-option-alias {
  font-weight: 700;
}

.bound-iccid-option-sep,
.bound-iccid-option-iccid,
.bound-iccid-empty {
  color: var(--muted);
  font-size: 13px;
}

.bound-iccid-option-meta {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.scan-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  background:
    linear-gradient(currentColor 0 0) left 2px top 2px / 6px 2px no-repeat,
    linear-gradient(currentColor 0 0) left 2px top 2px / 2px 6px no-repeat,
    linear-gradient(currentColor 0 0) right 2px top 2px / 6px 2px no-repeat,
    linear-gradient(currentColor 0 0) right 2px top 2px / 2px 6px no-repeat,
    linear-gradient(currentColor 0 0) left 2px bottom 2px / 6px 2px no-repeat,
    linear-gradient(currentColor 0 0) left 2px bottom 2px / 2px 6px no-repeat,
    linear-gradient(currentColor 0 0) right 2px bottom 2px / 6px 2px no-repeat,
    linear-gradient(currentColor 0 0) right 2px bottom 2px / 2px 6px no-repeat,
    linear-gradient(currentColor 0 0) center / 12px 2px no-repeat;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.info-card {
  padding: 14px;
}

.info-card strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
  line-height: 1.35;
}

.sim-card {
  padding: 14px;
}

.compact-head {
  margin-bottom: 10px;
}

.compact-head h2 {
  font-size: 20px;
}

.sim-meta-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.alias-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 6px;
  margin-top: 6px;
}

.alias-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.alias-display {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-all;
}

.alias-edit-btn {
  flex: 0 0 auto;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 7px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.alias-editor input,
.alias-editor button {
  min-height: 32px;
  font-size: 13px;
}

.alias-editor button {
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.front-search {
  margin-bottom: 10px;
}

.managed-card-list {
  display: grid;
  gap: 8px;
}

.managed-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.managed-card-main {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

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

.managed-card span,
.managed-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  word-break: break-all;
}

.card-alias-editor {
  margin-top: 0;
}

.content-section {
  margin-top: 12px;
  padding: 14px;
}

.manager-account-section {
  display: grid;
  gap: 12px;
}

.manager-account-tip,
.manager-account-current {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.manager-account-form {
  display: grid;
  gap: 10px;
}

.manager-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.section-head h2 {
  font-size: 20px;
}

.text-btn,
.icon-text-btn {
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.guide-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

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

.package-load-more,
.shop-load-more {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
}

.package-load-more .ghost-btn,
.shop-load-more .ghost-btn {
  min-width: 140px;
}

.meal-card,
.package-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}

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

.item-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.item-title-wrap {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.badge.warn {
  background: #fff7e8;
  color: var(--warn);
}

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

.badge.source {
  width: fit-content;
  background: #eef8f2;
  color: #047857;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
  margin-top: 12px;
}

.meta-value {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  word-break: break-word;
}

.item-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.item-actions button {
  flex: 1;
}

.package-actions {
  justify-content: flex-end;
}

.package-actions button {
  flex: 0 0 auto;
  width: auto;
  min-width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
}

.danger-btn {
  background: var(--danger);
  color: #fff;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.filter-grid label {
  display: grid;
  gap: 5px;
  border: 1px solid #e7edf2;
  border-radius: 8px;
  padding: 8px;
  background: #fbfcfd;
}

.filter-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-grid select {
  min-height: 34px;
  border-color: transparent;
  padding-left: 0;
  background-color: transparent;
}

select {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 26px 0 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.package-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.package-tags span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.region-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.region-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -5px;
  font-size: 18px;
  line-height: 1;
}

.region-logo span:first-child {
  margin-left: 0;
}

.region-logo-image {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}

.region-logo-image + .region-logo-image {
  margin-left: -10px;
  box-shadow: -2px 0 0 #f8fbff;
}

.region-logo svg {
  width: 26px;
  height: 26px;
}

.region-logo-default {
  background: #eef5ff;
}

.region-logo-default .region-logo-image {
  width: 34px;
  height: 34px;
}

.region-logo-multi {
  justify-content: flex-start;
  padding: 0 2px;
}

.package-meta-grid {
  grid-template-columns: 1fr;
}

.package-top {
  justify-content: flex-start;
}

.package-main {
  flex: 1 1 auto;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.package-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.package-title-row .item-title {
  min-width: 0;
}

.package-main .package-tags {
  margin-top: 0;
}

.package-price {
  flex: 0 0 auto;
  min-width: 82px;
  text-align: right;
}

.package-price span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.package-price strong {
  display: block;
  color: #e24a2a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.package-details {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.notice {
  margin-top: 12px;
  padding: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.notice.error {
  border-color: #ffd0d0;
  background: #fff7f7;
  color: #973737;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px 12px;
  color: var(--muted);
  text-align: center;
}

.not-found-panel .empty {
  display: grid;
  gap: 8px;
  padding: 28px 16px;
}

.not-found-panel strong {
  color: var(--ink);
  font-size: 20px;
}

.not-found-panel span {
  font-size: 13px;
  line-height: 1.5;
}

.empty-section {
  box-shadow: var(--shadow);
}

.notification-section {
  --notification-strip-gradient: linear-gradient(90deg, var(--brand), #2f80ed);
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(219, 229, 241, 0.78);
  border-radius: 8px;
  padding: 20px 22px 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(25, 52, 86, 0.08);
}

.notification-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--notification-strip-gradient);
  content: "";
}

.notification-section > * {
  position: relative;
  z-index: 1;
}

.notification-search {
  position: relative;
}

#notificationListView {
  display: grid;
  gap: 14px;
}

.notification-search::before {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M980.48 940.544c-2.048-8.704-8.192-14.848-14.336-20.48-81.92-82.432-163.84-164.864-245.76-246.784-5.12-5.12-6.144-8.192-0.512-13.824 25.6-27.648 46.08-58.88 61.952-93.696 35.328-77.312 43.008-157.696 24.064-240.64-18.944-80.896-60.928-148.48-124.928-200.704-68.608-55.808-146.944-86.528-238.08-84.992-39.936-1.024-79.872 5.632-118.784 19.456-83.968 29.696-150.528 81.408-197.12 158.208-53.248 88.064-68.096 182.784-44.032 283.136 19.456 80.384 61.952 146.944 125.952 199.168 52.736 43.008 112.64 70.656 180.736 79.872 38.4 5.632 76.8 6.144 115.2-0.512 53.248-9.216 101.888-29.696 146.944-59.392 7.68-5.12 12.288-6.656 19.968 1.536 81.408 81.92 163.328 163.328 245.248 244.736 4.096 4.096 8.192 8.192 13.312 11.264 11.264 7.68 26.112 7.68 36.352 0.512 11.776-10.24 17.408-23.04 13.824-36.864zM442.368 721.92c-170.496-0.512-302.592-136.704-302.592-304.64 0-173.568 142.848-305.152 304.128-304.64 166.912 0.512 305.152 137.216 303.616 305.152 0.512 166.4-132.096 304.64-305.152 304.128z' fill='%238D8D92'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
  transform: translateY(-50%);
}

.notification-search::after {
  display: none;
  content: none;
}

.notification-search input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px 0 58px;
  background: #f3f3f4;
  color: var(--ink);
  font-size: 16px;
}

.notification-search input::placeholder {
  color: #9ca3af;
}

.notification-module-tabs {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 2px 14px;
}

.notification-module-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  padding: 0 12px;
  background: transparent;
  color: #5f6673;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.notification-module-tabs button.active {
  background: #ededed;
  color: #232a35;
}

.notification-list {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 16px;
  width: 100%;
  min-height: 122px;
  border: 0;
  border-radius: 8px;
  padding: 18px;
  background: #fafafa;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.notification-item-main {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 10px;
}

.notification-item-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-main span {
  display: -webkit-box;
  overflow: hidden;
  color: #9aa1ad;
  font-size: 15px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-thumb {
  display: grid;
  width: 118px;
  aspect-ratio: 1 / 1;
  place-items: center;
  align-self: center;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 2px;
  background: #fff;
}

.notification-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.notification-thumb.empty-thumb::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 2px solid rgba(31, 111, 235, 0.24);
  border-radius: 8px;
}

.notification-load-more {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
}

.notification-detail {
  display: grid;
  gap: 12px;
}

.notification-back-btn {
  justify-self: start;
}

.notification-detail h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.notification-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.notification-module-tag {
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-weight: 700;
}

.notification-detail-content {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.bottom-tabs {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -12px 32px rgba(25, 52, 86, 0.1);
  backdrop-filter: blur(14px);
}

.bottom-tabs.has-managed {
  grid-template-columns: repeat(4, 1fr);
}

.bottom-tab {
  display: grid;
  min-height: 52px;
  place-items: center;
  gap: 3px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bottom-tab.active {
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.tab-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.tab-icon-query {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tab-icon-query::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.tab-icon-order {
  border: 2px solid currentColor;
  border-radius: 5px;
}

.tab-icon-order::before {
  position: absolute;
  top: -6px;
  left: 5px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.tab-icon-shop {
  border: 2px solid currentColor;
  border-radius: 5px;
}

.tab-icon-shop::before {
  position: absolute;
  top: 4px;
  left: 3px;
  right: 3px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.tab-icon-shop::after {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.tab-icon-managed {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.tab-icon-managed::before,
.tab-icon-managed::after {
  position: absolute;
  right: 4px;
  left: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.tab-icon-managed::before {
  top: 6px;
}

.tab-icon-managed::after {
  top: 12px;
}

.tab-icon-guide {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.tab-icon-guide::before,
.tab-icon-guide::after {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.tab-icon-guide::before {
  top: 6px;
}

.tab-icon-guide::after {
  top: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 23, 21, 0.48);
}

.modal {
  width: min(100%, 380px);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.scan-modal {
  width: min(100%, 400px);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

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

.scan-head h3 {
  margin: 0;
  font-size: 19px;
}

.scan-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 24px;
  line-height: 1;
}

.scan-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: #0d1726;
}

.scan-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-frame {
  position: absolute;
  left: 11%;
  top: 50%;
  width: 78%;
  aspect-ratio: 85.6 / 54;
  transform: translateY(-50%);
  border-radius: 14px;
  background:
    linear-gradient(#11181f, #11181f) left top / 44px 6px no-repeat,
    linear-gradient(#11181f, #11181f) left top / 6px 44px no-repeat,
    linear-gradient(#11181f, #11181f) right top / 44px 6px no-repeat,
    linear-gradient(#11181f, #11181f) right top / 6px 44px no-repeat,
    linear-gradient(#11181f, #11181f) left bottom / 44px 6px no-repeat,
    linear-gradient(#11181f, #11181f) left bottom / 6px 44px no-repeat,
    linear-gradient(#11181f, #11181f) right bottom / 44px 6px no-repeat,
    linear-gradient(#11181f, #11181f) right bottom / 6px 44px no-repeat;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
}

.package-order-disabled {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.scan-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.scan-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.scan-actions .ghost-btn {
  flex: 1;
  min-height: 42px;
  font-weight: 700;
}

.modal h3 {
  margin: 0;
  font-size: 19px;
}

.modal p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

#confirmMessage {
  white-space: pre-line;
}

.install-guide-modal {
  width: min(100%, 420px);
}

.share-poster-modal {
  width: min(100%, 460px);
}

.share-poster-note {
  font-size: 13px;
  line-height: 1.6;
}

.share-poster-preview {
  margin-top: 14px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f8ff 0%, #eef5ff 100%);
}

.share-poster-image {
  display: block;
  width: 100%;
  height: auto;
}

.share-poster-actions {
  grid-template-columns: 1fr !important;
}

.install-guide-intro,
.install-guide-note {
  font-size: 13px;
  line-height: 1.6;
}

.install-guide-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.install-guide-list li {
  margin: 8px 0;
  line-height: 1.6;
}

.install-guide-note {
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-soft);
}

#installGuideModal .modal-actions {
  grid-template-columns: 1fr;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2000;
  width: min(calc(100% - 32px), 420px);
  transform: translateX(-50%);
  border-radius: 8px;
  padding: 12px 14px;
  background: #13201d;
  color: #fff;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.front-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(2px);
}

.front-busy-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: min(280px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  min-height: 54px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.front-busy-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 3px solid rgba(98, 113, 135, 0.22);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: front-busy-spin 0.8s linear infinite;
}

@keyframes front-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

@media (min-width: 680px) {
  .app-shell {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .query-panel,
  .content-section {
    padding: 18px;
  }

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

  .sim-meta-grid {
    grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
  }

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

@media (max-width: 360px) {
  .query-row {
    grid-template-columns: 1fr 76px;
    gap: 8px;
  }

  .primary-btn {
    padding: 0 10px;
  }

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

.tab-icon-my {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tab-icon-my::before {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.tab-icon-my::after {
  position: absolute;
  right: 3px;
  bottom: 2px;
  left: 3px;
  height: 7px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  content: "";
}

.bound-iccid-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.bound-iccid-field label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.user-binding-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.user-binding-hint,
.my-guest-hint,
.user-auth-subtitle,
.my-binding-count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.my-section,
.my-card {
  display: grid;
  gap: 14px;
}

#myUserPanel {
  display: grid;
  gap: 16px;
}

.my-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

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

.my-guest-panel {
  display: grid;
  gap: 14px;
}

.my-guest-actions,
.user-auth-actions,
.my-logout-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.my-guest-actions {
  margin-top: 4px;
}

.user-auth-actions {
  margin-top: 18px;
  justify-content: space-between;
}

.user-recovery-methods {
  display: grid;
  gap: 12px;
}

.user-recovery-methods label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.user-recovery-methods input {
  min-height: 0;
}

.user-recovery-methods input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  padding: 0;
  accent-color: var(--brand-dark);
}

.profile-verify-row {
  display: grid;
  gap: 8px;
  margin-top: -2px;
}

.profile-verify-row.hidden {
  display: none;
}

.profile-verify-row .user-auth-subtitle {
  margin: 0;
}

.user-auth-actions .ghost-btn,
.user-auth-actions .text-btn,
.user-auth-actions .primary-btn {
  flex: 1 1 140px;
}

.my-info-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.my-info-grid div {
  display: grid;
  gap: 6px;
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.my-info-grid span {
  color: var(--muted);
  font-size: 12px;
}

.my-menu-card {
  gap: 12px;
}

.my-menu-list {
  display: grid;
}

.my-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 4px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease;
  touch-action: manipulation;
}

.my-menu-item:last-child {
  border-bottom: 0;
}

button.my-menu-item:hover,
button.my-menu-item:focus-visible,
.my-language-row:hover,
.my-language-row:focus-within {
  background: rgba(24, 165, 138, 0.06);
  outline: none;
}

button.my-menu-item:active,
.my-language-row:active {
  background: rgba(24, 165, 138, 0.12);
}

.my-menu-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.my-menu-chevron {
  color: #9aa7b4;
  font-weight: 900;
}

.my-language-row {
  cursor: pointer;
}

.my-language-row .my-locale-slot,
.my-language-row .locale-switcher,
.my-language-row .locale-switcher select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
}

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

.my-binding-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.my-binding-main,
.my-binding-main > div,
.my-binding-meta {
  display: grid;
  gap: 6px;
}

.my-binding-meta mark {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--accent-soft);
  color: #0e755f;
  font-size: 12px;
  font-weight: 700;
}

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

.user-auth-modal {
  width: min(100%, 420px);
}

.user-auth-form {
  margin-top: 12px;
}

#userRecoveryModal .user-auth-modal {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

#userRecoveryModal .user-auth-form,
#userRecoveryAccountStep,
#userRecoveryVerifyStep {
  display: grid;
  gap: 16px;
}

#userRecoveryVerifyStep.hidden {
  display: none;
}

#userRecoveryModal .user-auth-subtitle {
  line-height: 1.75;
}

#userRecoveryTargetHint {
  margin-bottom: 2px;
}

#userRecoveryModal input {
  min-height: 54px;
}

#userRecoveryModal .captcha-row {
  gap: 10px;
}

#userRecoveryModal .captcha-row button {
  min-height: 54px;
  padding: 0 16px;
  white-space: nowrap;
}

#userRecoveryModal .user-auth-actions {
  margin-top: 6px;
  gap: 12px;
}

.user-remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.user-remember-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.share-entry-section {
  margin-top: 18px;
}

@media (max-width: 560px) {
  .my-info-grid {
    grid-template-columns: 1fr;
  }
}

/* UI refresh */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f6f9;
  --ink: #17212f;
  --muted: #667586;
  --line: #dfe7ee;
  --brand: #176b87;
  --brand-dark: #0f5268;
  --accent: #18a58a;
  --accent-soft: #e9f8f4;
  --warn: #a96805;
  --danger: #c84646;
  --danger-soft: #fff0f0;
  --shadow: 0 12px 30px rgba(23, 33, 47, 0.08);
  --shadow-soft: 0 6px 18px rgba(23, 33, 47, 0.06);
}

body {
  background:
    linear-gradient(180deg, #eaf3f7 0, #f6f8fb 310px),
    var(--bg);
}

.app-shell {
  max-width: 920px;
  padding: 14px 14px 104px;
}

.hero {
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(223, 231, 238, 0.9);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.hero > div {
  min-width: 0;
}

.hero h1 {
  font-size: 28px;
}

.channel-logo {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.channel-description,
.channel-contact {
  max-width: 620px;
  word-break: normal;
  overflow-wrap: anywhere;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0;
}

.channel-pill {
  border-color: rgba(24, 165, 138, 0.28);
  background: var(--accent-soft);
  color: #0e755f;
}

.query-panel,
.content-section,
.info-card,
.notice,
.meal-card,
.package-card,
.managed-card {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.query-panel {
  padding: 16px;
}

.query-panel label {
  display: flex;
  margin-bottom: 6px;
  font-weight: 800;
}

.query-row {
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  margin-top: 0;
}

input,
select {
  border-color: #d7e1e8;
  background: #fff;
}

input {
  min-height: 48px;
}

input:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(24, 165, 138, 0.14);
}

.primary-btn,
.guide-btn {
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(23, 107, 135, 0.18);
}

.primary-btn:hover {
  background: var(--brand-dark);
}

.scan-btn {
  color: var(--brand);
}

.hint {
  margin-top: 10px;
}

.content-section,
.info-card {
  padding: 16px;
}

.section-head {
  align-items: center;
}

.section-head h2,
.compact-head h2 {
  font-size: 18px;
}

.badge {
  background: var(--accent-soft);
  color: #0e755f;
}

.sim-card {
  position: relative;
  overflow: hidden;
}

.sim-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  content: "";
}

.sim-meta-grid,
.meta-grid {
  gap: 10px;
}

.sim-meta-grid > div,
.meal-card .meta-grid > div {
  border: 1px solid #e7edf2;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.meta-label {
  font-weight: 700;
}

.meta-value {
  font-size: 14px;
}

.alias-line {
  margin-top: 4px;
}

.alias-edit-btn {
  border-color: rgba(23, 107, 135, 0.22);
  color: var(--brand-dark);
}

.alias-editor button,
.text-btn,
.icon-text-btn {
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.meal-card,
.package-card,
.managed-card {
  position: relative;
  overflow: hidden;
}

.meal-card::before,
.package-card::before,
.managed-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--accent);
  content: "";
}

.item-title {
  font-size: 15px;
}

.package-price strong {
  color: #d55b26;
}

.package-tags span {
  background: var(--accent-soft);
  color: #0e755f;
}

.filter-grid label {
  border: 1px solid #e7edf2;
  border-radius: 8px;
  padding: 8px;
  background: #fbfcfd;
}

.filter-grid select {
  min-height: 34px;
  border-color: transparent;
  padding-left: 0;
  background-color: transparent;
}

.empty {
  background: #fbfcfd;
}

.notice {
  background: #fbfcfd;
}

.bottom-tabs {
  width: min(100%, 920px);
  border-color: rgba(223, 231, 238, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 -10px 24px rgba(23, 33, 47, 0.1);
}

.bottom-tab {
  min-height: 54px;
  color: #788697;
}

.bottom-tab.active {
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.toast {
  bottom: calc(84px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(23, 33, 47, 0.96);
}

.modal,
.scan-modal {
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(23, 33, 47, 0.2);
}

@media (min-width: 680px) {
  .app-shell {
    padding-top: 22px;
  }

  .query-panel,
  .content-section {
    padding: 18px;
  }

  .sim-meta-grid {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .hero {
    align-items: flex-start;
  }

  .channel-pill {
    display: none;
  }

  .bottom-tab {
    font-size: 11px;
  }
}

/* Minimal blue theme refinement */
:root {
  --bg: #f7f9fd;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --ink: #121c2d;
  --muted: #68778d;
  --line: #e2e8f2;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #3b82f6;
  --accent-soft: #eff6ff;
  --shadow: 0 8px 24px rgba(29, 78, 216, 0.07);
  --shadow-soft: 0 4px 14px rgba(18, 28, 45, 0.05);
}

body {
  background:
    linear-gradient(180deg, #edf4ff 0, #f7f9fd 260px),
    var(--bg);
}

.hero {
  border-color: rgba(226, 232, 242, 0.92);
  background: rgba(255, 255, 255, 0.9);
}

.eyebrow,
.scan-btn,
.channel-pill,
.badge,
.alias-edit-btn,
.alias-editor button,
.text-btn,
.icon-text-btn,
.bottom-tab.active {
  color: var(--brand-dark);
}

.channel-pill,
.badge,
.package-tags span {
  background: var(--accent-soft);
  color: var(--brand-dark);
}

.query-panel,
.content-section,
.info-card,
.notice,
.meal-card,
.package-card,
.managed-card {
  box-shadow: var(--shadow-soft);
}

.sim-card::before {
  background: var(--brand);
}

.meal-card::before,
.package-card::before,
.managed-card::before {
  display: none;
}

.sim-meta-grid > div,
.meal-card .meta-grid > div,
.filter-grid label {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.sim-meta-grid {
  gap: 14px 16px;
}

.meta-grid {
  gap: 10px 14px;
}

.meta-label,
.filter-grid span {
  color: #7a8798;
}

.meta-value {
  font-size: 14px;
}

.query-panel,
.content-section,
.info-card {
  border-radius: 8px;
}

.meal-card,
.package-card,
.managed-card {
  border-radius: 8px;
  padding: 14px;
}

.filter-grid {
  gap: 10px;
}

.filter-grid label {
  gap: 6px;
}

.filter-grid select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-left: 10px;
  background: #fff;
}

.primary-btn,
.guide-btn {
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.package-price strong {
  color: var(--brand-dark);
}

.bottom-tabs {
  box-shadow: 0 -8px 22px rgba(18, 28, 45, 0.08);
}

.toast {
  background: rgba(18, 28, 45, 0.96);
}

@media (max-width: 520px) {
  .app-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero,
  .query-panel,
  .content-section,
  .info-card {
    padding: 14px;
  }

  .sim-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

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

/* Balance and compact action polish */
.hero-company {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.hero-company > div {
  flex: 1 1 auto;
  min-width: 0;
}

.section-balance {
  display: grid;
  justify-items: end;
  gap: 3px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.section-balance span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.section-balance strong {
  color: var(--brand-dark);
  font-size: 18px;
}

.section-balance strong {
  font-size: 16px;
}

.meal-card .item-actions {
  justify-content: flex-end;
  margin-top: 8px;
}

.meal-card .item-actions button {
  flex: 0 0 auto;
  min-height: 28px;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
}

.guide-btn {
  display: block;
  width: fit-content;
  min-height: 32px;
  margin: 12px 0 0 auto;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
}

/* Unified front button and ICCID list polish */
:root {
  --brand: #60a5fa;
  --brand-dark: #2563eb;
  --brand-soft: #eaf3ff;
  --danger: #f87171;
  --danger-soft: #fff1f2;
  --danger-text: #b4232c;
}

.primary-btn,
.danger-btn,
.ghost-btn,
.icon-text-btn,
.text-btn,
.guide-btn,
.alias-editor button,
.item-actions button,
.package-actions button,
#queryBtn,
#reloadPackagesBtn,
#toggleMealsBtn,
#saveAliasBtn,
#cancelConfirmBtn,
#okConfirmBtn {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.primary-btn,
.guide-btn,
.package-actions .primary-btn {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.primary-btn:hover,
.guide-btn:hover,
.package-actions .primary-btn:hover {
  background: #1d4ed8;
  color: #fff;
}

.danger-btn {
  background: var(--danger-text);
  color: #fff;
}

.danger-btn:hover {
  background: #991b1b;
  color: #fff;
}

.ghost-btn,
.text-btn,
.icon-text-btn,
.alias-editor button {
  border: 1px solid #d7e6fb;
  background: #f8fbff;
  color: var(--brand-dark);
}

.query-row {
  grid-template-columns: 1fr 86px;
}

.scan-btn,
.scan-close {
  box-shadow: none;
}

.managed-card {
  gap: 7px;
  padding: 11px 12px;
}

.managed-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.managed-card-main {
  min-width: 0;
}

.managed-card strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  word-break: break-word;
}

.managed-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  word-break: break-word;
}

.managed-card .alias-edit-btn {
  min-height: 28px;
  border-color: #d7e6fb;
  background: #f8fbff;
  padding: 0 9px;
  color: var(--brand-dark);
  font-size: 12px;
}

.card-alias-editor {
  grid-template-columns: minmax(0, 1fr) 56px;
  margin-left: 0;
}

.meal-card .item-actions button,
.guide-btn {
  min-height: 32px;
  font-size: 12px;
}

/* Purchased package compact layout */
#mealList .meal-card {
  padding: 11px 12px;
}

#mealList .item-top {
  align-items: center;
}

#mealList .item-title {
  font-size: 15px;
}

#mealList .meta-grid {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 10px;
}

#mealList .meta-grid > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

#mealList .meta-label {
  font-size: 11px;
}

#mealList .meta-value {
  margin-top: 0;
  font-size: 12px;
}

#mealList .usage-row .meta-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.usage-query-btn {
  min-height: 26px;
  border: 1px solid #d7e6fb;
  border-radius: 7px;
  padding: 0 9px;
  background: #f8fbff;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.daily-usage-row .meta-value {
  color: var(--brand-dark);
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#mealList .item-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

#mealList .item-actions button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

#mealList .meal-reactive-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #d7e6fb;
  border-radius: 8px;
  background: linear-gradient(90deg, #f8fbff, #eef6ff);
  color: #365f91;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

#mealList .meal-reactive-tip span {
  min-width: 0;
}

#mealList .meal-reactive-guide-btn {
  flex: 0 0 auto;
  min-height: 28px;
  border: 1px solid var(--brand-dark);
  border-radius: 7px;
  padding: 0 10px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

#mealList .meal-reactive-guide-btn:hover {
  background: #1d4ed8;
  color: #fff;
}

/* Card info single-row fields */
.sim-meta-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.sim-meta-grid > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.sim-meta-grid > div:first-child {
  border-top: 0;
}

.sim-meta-grid .meta-value,
.sim-meta-grid .alias-line {
  margin-top: 0;
}

.sim-meta-grid .alias-line {
  justify-content: flex-start;
}

.order-card-info {
  margin-bottom: 12px;
}

.order-card-info.summary-grid {
  margin-top: 12px;
}

.order-card-info .sim-card {
  width: 100%;
}

.order-card-fields {
  display: grid;
  gap: 0;
}

.order-card-fields > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.order-card-fields > div:first-child {
  border-top: 0;
}

.order-card-fields span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.order-card-fields strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
}

@media (max-width: 460px) {
  #mealList .meta-grid {
    grid-template-columns: 1fr;
  }

  #mealList .meta-grid > div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sim-meta-grid > div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .order-card-fields > div {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}
.channel-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.channel-login-panel {
  width: min(360px, 100%);
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.channel-login-panel p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
}

.channel-login-panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.channel-login-panel input {
  width: 100%;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.captcha-question {
  color: #64748b;
  font-size: 13px;
}

.locale-switcher {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.locale-switcher select {
  width: auto;
  min-width: 108px;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
}

/* Header utilities */
.hero {
  align-items: flex-start;
}

.hero-locale-slot {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  min-width: 118px;
}

.hero-locale-slot:empty {
  display: none;
  min-width: 0;
}

.locale-switcher {
  display: flex;
  margin: 0;
}

.locale-switcher select {
  min-width: 112px;
  height: 36px;
  border: 1px solid #d7e6fb;
  border-radius: 8px;
  padding: 0 30px 0 10px;
  background-color: #f8fbff;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.channel-contact {
  display: grid;
  gap: 5px;
}

.contact-support-btn {
  width: fit-content;
  min-height: 26px;
  border: 1px solid #d7e6fb;
  border-radius: 7px;
  padding: 0 9px;
  background: #f8fbff;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.support-qr-modal {
  width: min(100%, 340px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(23, 33, 47, 0.2);
}

.support-qr-image {
  display: block;
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin: 8px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 520px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .manager-account-actions {
    grid-template-columns: 1fr;
  }

  .hero-locale-slot {
    min-width: 96px;
  }

  .locale-switcher select {
    min-width: 96px;
    max-width: 112px;
  }
}

.bottom-tabs {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.bottom-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hero-company {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  align-items: start;
  gap: 14px;
}

.hero-company > div {
  min-width: 0;
}

.shop-active-page .hero,
.record-active-page .hero {
  display: none;
}

.channel-description,
.channel-contact {
  max-width: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.channel-contact span {
  min-width: 0;
}

.my-info-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.my-info-grid div.my-info-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-soft);
}

.my-info-grid .my-info-row span {
  font-size: 12px;
  color: var(--muted);
}

.my-info-grid .my-info-row strong {
  justify-self: end;
  text-align: right;
  word-break: break-word;
  line-height: 1.5;
  font-size: 14px;
}

.my-binding-card {
  gap: 8px;
  padding: 14px;
}

.my-binding-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.my-binding-line span {
  color: var(--muted);
  font-size: 12px;
}

.my-binding-line strong {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  word-break: break-word;
}

.my-binding-alias-value {
  margin-top: 0;
}

.my-binding-alias-text {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.my-binding-edit-btn {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 9px;
  white-space: nowrap;
}

.my-binding-actions {
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.my-binding-actions .text-btn,
.my-binding-actions .soft-danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 30px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  text-decoration: none;
}

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

.my-order-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface-soft);
}

.my-order-card .my-binding-line strong {
  font-size: 14px;
  font-weight: 400;
}

.card-order-iccid-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.card-order-iccid-text {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

.card-order-bind-iccid-btn {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.card-order-iccid-bound {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
}

.user-status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.user-status-tag.success {
  background: #dcfce7;
  color: #047857;
}

.user-status-tag.info {
  background: #dbeafe;
  color: #1d4ed8;
}

.user-status-tag.warn {
  background: #fef3c7;
  color: #b45309;
}

.user-status-tag.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.user-status-tag.neutral {
  background: #eef2f7;
  color: #475569;
}

.my-order-card-detail {
  background: #fff;
}

.esim-lpa-qr-block {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding-top: 4px;
}

.esim-lpa-qr-block.my-binding-line {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  justify-items: stretch;
  padding-top: 0;
}

.esim-lpa-qr-block strong {
  display: block;
}

.esim-lpa-qr-block span {
  color: var(--muted);
  font-size: 12px;
}

.esim-lpa-qr {
  width: 168px;
  height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  -webkit-touch-callout: default;
  user-select: auto;
}

.my-order-details {
  display: grid;
  gap: 8px;
}

.my-order-details summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.my-order-details summary::-webkit-details-marker {
  display: none;
}

.my-order-details summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}

.my-order-details[open] summary::after {
  content: "-";
}

.my-order-detail-grid {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.compact-order-btn {
  min-width: 88px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.my-order-pay-actions {
  justify-content: flex-end;
}

.order-record-page {
  width: 100%;
  overflow: visible;
  padding: 16px;
}

.order-record-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -16px -16px 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.order-record-more {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.order-record-more .ghost-btn {
  min-width: 140px;
}

.shop-section {
  --shop-strip-gradient: linear-gradient(90deg, var(--brand), #2f80ed);
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  border-radius: 8px;
}

.shop-section .section-head {
  align-items: center;
}

.shop-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--shop-strip-gradient);
  content: "";
}

.shop-section > * {
  position: relative;
  z-index: 1;
}

.shop-section.shop-list-step .section-head {
  display: none;
}

.shop-section .section-head .ghost-btn {
  min-height: 34px;
  padding: 0 12px;
}

.shop-flow-view {
  display: grid;
  gap: 14px;
}

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

.shop-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 16px;
  min-height: 122px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 18px;
  background: #fafafa;
  cursor: pointer;
}

.shop-product-card img,
.shop-product-image-placeholder {
  width: 118px;
  aspect-ratio: 1;
  align-self: center;
  border: 8px solid #fff;
  border-radius: 2px;
  object-fit: contain;
  background: #fff;
}

.shop-product-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.shop-product-body {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 10px;
}

.shop-product-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.shop-product-title-row h3 {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-product-type {
  flex: 0 0 auto;
  max-width: 120px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 4px;
  padding: 2px 6px;
  background: rgba(37, 99, 235, 0.06);
  color: #2563eb;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-product-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #9aa1ad;
  font-size: 15px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-product-meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.shop-product-meta strong {
  color: #b42318;
  font-size: 16px;
}

.card-checkout-modal,
.card-product-detail-modal {
  width: min(100%, 520px);
  max-height: min(88vh, 760px);
  overflow: auto;
}

.card-logistics-modal {
  width: min(100%, 520px);
  max-height: min(88vh, 760px);
  overflow: auto;
}

.card-logistics-body {
  display: grid;
  gap: 12px;
}

.logistics-summary {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.logistics-summary-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.logistics-summary-row span {
  color: var(--muted);
  font-size: 12px;
}

.logistics-summary-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  word-break: break-word;
}

.logistics-message {
  margin: 0;
  border: 1px solid #d7e6fb;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbff;
  color: var(--brand-dark);
  font-size: 13px;
  line-height: 1.6;
}

.logistics-timeline {
  display: grid;
  gap: 0;
}

.logistics-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  position: relative;
  padding-bottom: 14px;
}

.logistics-item::before {
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: #d7e6fb;
  content: "";
}

.logistics-item:last-child {
  padding-bottom: 0;
}

.logistics-item:last-child::before {
  display: none;
}

.logistics-item i {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #94a3b8;
}

.logistics-item.current i {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.logistics-item div {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.logistics-item:last-child div {
  border-bottom: 0;
  padding-bottom: 0;
}

.logistics-item time {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.logistics-item p {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.logistics-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.shop-flow-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-flow-head h3 {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.shop-flow-head .ghost-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
}

.shop-page-title,
.shop-form-title {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

#shopProductDetailView,
#shopSkuView,
#shopCheckoutView {
  padding-bottom: calc(var(--bottom-nav-height, 74px) + 18px);
}

#shopProductDetailView .shop-bottom-bar,
#shopSkuView .shop-bottom-bar,
#shopCheckoutView .shop-bottom-bar {
  position: static;
  bottom: auto;
  z-index: 1;
  margin-top: 8px;
}

.shop-bottom-bar {
  position: sticky;
  bottom: calc(var(--bottom-nav-height, 74px) + 10px);
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.shop-bottom-bar strong {
  color: #b42318;
  font-size: 20px;
}

.shop-bottom-bar button {
  min-height: 42px;
}

.shop-choice-block {
  display: grid;
  gap: 10px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.shop-choice-block h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.shop-choice-grid,
.shop-choice-list {
  display: grid;
  gap: 10px;
}

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

.shop-sku-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

.shop-sku-filter-grid label {
  display: grid;
  gap: 5px;
  border: 1px solid #e7edf2;
  border-radius: 8px;
  padding: 8px;
  background: #fbfcfd;
}

.shop-sku-filter-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.shop-sku-filter-grid select {
  min-height: 34px;
  border-color: transparent;
  padding-left: 0;
  background-color: transparent;
}

.shop-choice-btn,
.shop-sku-choice {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.shop-choice-btn.active,
.shop-sku-choice.active {
  border-color: var(--brand);
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand);
}

.shop-sku-choice.active {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.shop-sku-choice.disabled,
.shop-sku-choice:disabled {
  cursor: not-allowed;
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  box-shadow: none;
}

.shop-sku-choice.disabled strong,
.shop-sku-choice:disabled strong {
  color: #94a3b8;
}

.shop-sku-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.shop-sku-choice span {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.shop-sku-choice strong {
  flex: 0 0 auto;
  color: #b42318;
}

.shop-package-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "logo name price"
    "logo tags price";
  column-gap: 12px;
  row-gap: 8px;
  min-height: 92px;
  justify-content: stretch;
  align-items: center;
  padding: 14px;
}

.shop-package-choice .region-logo {
  grid-area: logo;
  align-self: start;
}

.shop-package-choice .shop-sku-name {
  grid-area: name;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.shop-package-choice .shop-sku-tags {
  grid-area: tags;
  margin-top: 0;
}

.shop-package-choice strong {
  grid-area: price;
  justify-self: start;
  font-size: 17px;
}

.shop-checkout-form {
  display: grid;
  gap: 12px;
}

#esimEmailFields {
  display: grid;
  gap: 8px;
}

#physicalAddressFields {
  display: grid;
  gap: 8px;
}

.shop-checkout-form input,
.shop-checkout-form select,
.shop-checkout-form textarea {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.shop-checkout-form textarea {
  padding-top: 12px;
  padding-bottom: 12px;
}

.shop-checkout-form .phone-row {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(0, 3fr);
  gap: 8px;
}

.shop-checkout-form .phone-row {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  word-break: normal;
}

.shop-checkout-form .shop-iccid-wrap {
  position: relative;
}

.shop-checkout-form .shop-iccid-wrap input {
  min-height: 46px;
  padding: 0 48px 0 12px;
  background: #fbfdfc;
}

.shop-checkout-form .shop-iccid-wrap .scan-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa7b8;
  padding: 0;
}

.shop-checkout-form .shop-iccid-wrap .scan-btn:hover {
  background: #f1f4f8;
  color: #718096;
}

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

.shop-checkout-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
}

.esim-email-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

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

.card-product-detail-body {
  display: grid;
  gap: 12px;
}

.card-detail-image {
  width: 100%;
  max-height: 280px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--surface-soft);
}

.card-product-detail-body p {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
  white-space: pre-wrap;
}

.rich-html-content {
  color: var(--ink);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.rich-html-content > *:first-child {
  margin-top: 0;
}

.rich-html-content > *:last-child {
  margin-bottom: 0;
}

.rich-html-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.rich-html-content blockquote {
  margin: 10px 0;
  border-left: 3px solid var(--brand);
  padding-left: 10px;
  color: var(--muted);
}

.rich-html-content table {
  width: 100%;
  border-collapse: collapse;
}

.rich-html-content th,
.rich-html-content td {
  border: 1px solid var(--line);
  padding: 8px;
}

@media (max-width: 480px) {
  .notification-section {
    padding: 18px 14px 24px;
  }

  .notification-module-tabs {
    gap: 20px;
  }

  .notification-item {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
    padding: 16px 14px;
  }

  .notification-item-main strong {
    font-size: 18px;
  }

  .notification-item-main span {
    font-size: 14px;
  }

  .notification-thumb {
    width: 104px;
    border-width: 7px;
  }

  .shop-product-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
    padding: 16px 14px;
  }

  .shop-product-card img,
  .shop-product-image-placeholder {
    width: 104px;
    border-width: 7px;
  }

  .shop-product-body h3 {
    font-size: 18px;
  }

  .shop-product-type {
    max-width: 110px;
    font-size: 11px;
  }

  .shop-product-body p {
    font-size: 14px;
  }

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

  .shop-checkout-form .phone-row {
    grid-template-columns: minmax(96px, 1fr) minmax(0, 3fr);
  }

  .my-order-pay-actions {
    justify-content: flex-end;
  }

  .my-order-pay-actions .compact-order-btn {
    width: auto;
    min-width: 76px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
  }

  .shop-bottom-bar {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
  }

  .shop-bottom-bar button {
    justify-self: end;
    width: auto;
    min-width: 86px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}

.order-success-page {
  display: grid;
  justify-items: center;
  text-align: center;
}

.order-success-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
}

.order-success-icon::after {
  position: absolute;
  left: 18px;
  top: 15px;
  width: 18px;
  height: 28px;
  border: solid #fff;
  border-width: 0 5px 5px 0;
  content: "";
  transform: rotate(45deg);
}

.single-action {
  grid-template-columns: 1fr;
  width: 100%;
}

.soft-danger-btn {
  border: 1px solid rgba(200, 70, 70, 0.24);
  background: rgba(200, 70, 70, 0.08);
  color: var(--danger);
  font-weight: 700;
}

#managerMyPanel {
  display: grid;
  gap: 16px;
}

.my-locale-card {
  gap: 12px;
}

.my-locale-slot {
  display: flex;
}

.my-locale-slot .locale-switcher {
  width: 100%;
}

.my-locale-slot .locale-switcher select {
  width: 100%;
  min-width: 0;
  height: 42px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
}

.my-language-row .my-locale-slot,
.my-language-row .my-locale-slot .locale-switcher,
.my-language-row .my-locale-slot .locale-switcher select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}

.my-section {
  display: grid;
  gap: 14px;
}

.my-section > .section-head {
  padding: 0 2px;
}

#myUserPanel,
#managerMyPanel {
  display: grid;
  gap: 14px;
}

.my-page-footer {
  display: flex;
}

.my-page-footer .ghost-btn {
  width: 100%;
  min-height: 42px;
}

@media (max-width: 520px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .hero-locale-slot {
    min-width: 0;
    justify-content: flex-end;
  }

  .locale-switcher {
    margin-left: auto;
  }

  .locale-switcher select {
    min-width: 108px;
    max-width: none;
  }

  .my-info-grid div.my-info-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .my-binding-line {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .esim-lpa-qr-block.my-binding-line {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .shop-sku-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  }
}
