.mod-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.mod-page-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 640px;
}

.mod-section {
  margin-top: 30px;
}

.mod-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.mod-section-head h2 {
  font-size: 20px;
  color: var(--brand-800);
  line-height: 1.4;
}

html[data-theme="dark"] .mod-section-head h2 {
  color: var(--brand-200);
}

.mod-section-head .mod-hint {
  color: var(--muted);
  font-size: 14px;
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 16px;
}

.mod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.mod-card:hover {
  box-shadow: var(--shadow-lift);
}

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

.mod-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html[data-theme="dark"] .mod-icon-box {
  background: var(--surface-2);
  color: var(--brand-300);
}

.mod-icon-box .icon svg {
  width: 24px;
  height: 24px;
}

.mod-card h3 {
  font-size: 18px;
  line-height: 1.45;
  margin-top: 12px;
  color: var(--brand-900);
}

html[data-theme="dark"] .mod-card h3 {
  color: var(--text);
}

.mod-desc {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
  min-height: 44px;
}

.mod-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.mod-state-label {
  font-size: 14px;
  font-weight: 700;
}

.mod-state-on {
  color: var(--brand-600);
}

html[data-theme="dark"] .mod-state-on {
  color: var(--brand-300);
}

.mod-state-off {
  color: var(--muted);
}

.mod-card-locked {
  padding: 0;
}

.mod-locked-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--brand-200), var(--gold-200) 60%, var(--brand-100));
  filter: blur(14px) saturate(1.2);
  transform: scale(1.15);
}

.mod-locked-panel {
  position: relative;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(6px);
  padding: 18px;
  height: 100%;
}

.mod-card-locked .mod-icon-box {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--gold-600);
}

.mod-lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid var(--gold-200);
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.mod-lock-chip .icon svg {
  width: 13px;
  height: 13px;
}

.mod-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-800);
}

html[data-theme="dark"] .mod-price {
  color: var(--brand-200);
}

.mod-price small {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
}

.mod-empty {
  color: var(--muted);
  font-size: 15px;
  padding: 18px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.mod-note {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--brand-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.mod-note h3 {
  font-size: 17px;
  color: var(--brand-800);
  margin-bottom: 10px;
}

html[data-theme="dark"] .mod-note h3 {
  color: var(--brand-200);
}

.mod-menu-demo {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mod-menu-col {
  flex: 1;
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.mod-menu-col .mod-cap {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.mod-menu-col ul {
  list-style: none;
  font-size: 15px;
}

.mod-menu-col li {
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mod-menu-col li .icon svg {
  width: 15px;
  height: 15px;
  color: var(--brand-600);
  flex-shrink: 0;
}

.mod-menu-col li.mod-hidden-item {
  color: var(--muted);
  opacity: 0.6;
  text-decoration: line-through;
}

.mod-sa {
  margin-top: 34px;
  background: var(--surface);
  border: 1.5px solid var(--gold-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.mod-sa-head {
  background: var(--gold-50);
  border-bottom: 1px solid var(--gold-200);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

html[data-theme="dark"] .mod-sa-head {
  background: var(--gold-soft-bg);
}

.mod-sa-head h2 {
  font-size: 19px;
  color: var(--brand-900);
  line-height: 1.4;
}

html[data-theme="dark"] .mod-sa-head h2 {
  color: var(--gold-200);
}

.mod-sa-only {
  margin-inline-start: auto;
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid var(--gold-200);
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.mod-sa-body {
  padding: 18px;
}

.mod-field-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--brand-900);
}

html[data-theme="dark"] .mod-field-label {
  color: var(--text);
}

.mod-inst-select {
  max-width: 420px;
}

.mod-sa-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.mod-sa-table th {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
}

.mod-sa-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 15px;
  text-align: center;
}

.mod-sa-table tr:last-child td {
  border-bottom: none;
}

.mod-mod-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  color: var(--brand-900);
}

html[data-theme="dark"] .mod-mod-name {
  color: var(--text);
}

.mod-mod-name .mod-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.mod-mod-name .mod-icon-box .icon svg {
  width: 19px;
  height: 19px;
}

.mod-price-input {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.mod-price-input .input {
  width: 110px;
}

.mod-period-select {
  width: 150px;
  flex: none;
}

.mod-sa-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .mod-grid {
    grid-template-columns: 1fr;
  }
  .mod-sa-table thead {
    display: none;
  }
  .mod-sa-table,
  .mod-sa-table tbody,
  .mod-sa-table tr,
  .mod-sa-table td {
    display: block;
    width: 100%;
  }
  .mod-sa-table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 6px;
    margin-bottom: 10px;
  }
  .mod-sa-table td {
    border-bottom: none;
    padding: 6px 10px;
  }
  .mod-price-input .input {
    flex: 1;
    width: auto;
  }
  .mod-period-select {
    flex: 1;
    width: auto;
  }
}

.mod-support {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.mod-support-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--brand-900);
}

html[data-theme="dark"] .mod-support-title {
  color: var(--text);
}

.mod-support-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.mod-support-fields .input {
  width: 100%;
}

@media (max-width: 640px) {
  .mod-support-fields {
    grid-template-columns: 1fr;
  }
}
