:root {
  color-scheme: light;
  --ink: #07132f;
  --muted: #607293;
  --soft: #8ca0c0;
  --line: #d9e5f5;
  --panel: rgba(255, 255, 255, 0.9);
  --blue: #135cff;
  --blue-2: #10bde3;
  --cyan: #19d1d4;
  --green: #11b981;
  --red: #f43f5e;
  --shadow: 0 24px 80px rgba(30, 73, 128, 0.14);
  --radius: 14px;
  font-family:
    Inter, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(241, 248, 255, 0.9), rgba(255, 255, 255, 0.96) 42%),
    #f7fbff;
  overflow-x: hidden;
}

.admin-body {
  background:
    radial-gradient(circle at 80% 0%, rgba(29, 217, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 240px 1fr 160px;
  gap: 24px;
  align-items: center;
  min-height: 78px;
  padding: 0 clamp(18px, 6vw, 92px);
  border-bottom: 1px solid rgba(217, 229, 245, 0.75);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.admin-body .topbar {
  grid-template-columns: 1fr auto;
}

.brand,
.nav-links,
.outline-action,
.benefit-pills,
.card-title,
.product-tags,
.safe-line,
.service-strip article,
.button-row,
.box-title {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
  font-size: 20px;
  font-weight: 1000;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #050608;
  box-shadow: 0 14px 30px rgba(19, 92, 255, 0.24);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  justify-content: center;
  gap: clamp(18px, 5vw, 68px);
  color: #17264b;
  font-size: 15px;
  font-weight: 850;
}

.nav-links a {
  position: relative;
  padding: 27px 0 24px;
}

.nav-links a.is-active {
  color: var(--blue);
}

.nav-links a.is-active::after {
  position: absolute;
  right: -28px;
  bottom: 0;
  left: -28px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  content: "";
  background: var(--blue);
}

.language-switcher {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
  min-height: 42px;
  border: 1px solid #cddcf2;
  border-radius: 10px;
  padding: 0 12px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(30, 73, 128, 0.06);
}

.language-switcher svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.language-switcher select {
  min-width: 108px;
  border: 0;
  color: #17264b;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 1000;
  cursor: pointer;
}

.language-switcher select:focus-visible {
  box-shadow: 0 0 0 3px rgba(19, 92, 255, 0.14);
}

.outline-action {
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid #cddcf2;
  border-radius: 10px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

main {
  position: relative;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.product-view {
  display: none !important;
}

body.product-page .home-view {
  display: none;
}

body.product-page .product-view {
  display: grid !important;
}

.admin-main {
  width: min(1180px, calc(100% - 48px));
}

.hero-section {
  position: relative;
  min-height: 232px;
  padding: 48px 0 34px;
  overflow: hidden;
  isolation: isolate;
}

.admin-hero {
  min-height: 190px;
  padding-bottom: 20px;
}

.hero-wave {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.98;
  pointer-events: none;
}

.hero-section::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.82) 42%, rgba(247, 251, 255, 0.14) 100%);
  pointer-events: none;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
.benefit-pills span,
.ai-card-meta small,
.steps li,
.service-strip p,
.purchase-notice p,
.guide-card li {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 strong {
  color: var(--blue);
}

.hero-lede {
  margin: 18px 0 28px;
  color: #334668;
  font-size: 18px;
  line-height: 1.65;
}

.benefit-pills {
  flex-wrap: wrap;
  gap: 18px;
}

.benefit-pills span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid #e0ebf8;
  border-radius: 10px;
  padding: 0 20px;
  color: #213759;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 32px rgba(30, 73, 128, 0.08);
  font-size: 15px;
  font-weight: 850;
}

.benefit-pills svg {
  width: 23px;
  height: 23px;
  color: var(--blue);
  stroke-width: 2.6;
}

.catalog-section {
  margin: 10px 0 30px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.section-heading span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0;
}

.section-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.catalog-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.25fr) repeat(3, minmax(0, 0.75fr));
  gap: 16px;
  align-items: stretch;
}

.ai-card {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 464px;
  overflow: hidden;
  border: 1px solid #d7e4f5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(30, 73, 128, 0.1);
}

.ai-card.is-available {
  grid-template-rows: 170px 1fr;
  border-color: rgba(19, 92, 255, 0.24);
}

.ai-card.is-coming {
  grid-template-rows: 170px 1fr;
  align-content: stretch;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.88)),
    #fff;
}

.ai-card.is-coming::after {
  display: none;
}

.ai-card-media {
  position: relative;
  min-height: 0;
  background: #050608;
}

.ai-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.availability-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  padding: 9px 12px;
  color: #fff;
  background: linear-gradient(135deg, #ff3f75, #ff8a1f);
  box-shadow: 0 14px 34px rgba(255, 87, 51, 0.32);
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: 0;
}

.ai-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.ai-card.is-coming .ai-card-body {
  height: 100%;
  padding: 18px;
}

.ai-card.is-coming .ai-vendor {
  color: #536985;
}

.ai-vendor {
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
  line-height: 1.35;
  min-height: 17px;
}

.ai-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.22;
  min-height: 59px;
}

.ai-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  min-height: 76px;
}

.ai-price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
  min-height: 60px;
  border: 1px solid rgba(19, 92, 255, 0.22);
  border-radius: 12px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 255, 0.94)),
    #f8fbff;
}

.ai-price div {
  display: grid;
  gap: 3px;
  align-content: center;
}

.ai-price span {
  color: #6f819b;
  font-size: 11px;
  font-weight: 900;
}

.ai-price strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 1000;
}

.ai-price div:first-child strong {
  color: #8a9ab3;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.ai-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  min-height: 31px;
}

.ai-card-meta small {
  border: 1px solid #dbe7f6;
  border-radius: 999px;
  padding: 6px 10px;
  color: #415a7a;
  background: #f6faff;
  font-size: 12px;
  font-weight: 900;
}

.catalog-action {
  width: 100%;
  min-height: 56px;
  margin-top: auto;
}

.ai-card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 170px;
  place-items: center;
  border: 0;
  border-bottom: 1px solid rgba(215, 228, 245, 0.82);
  border-radius: 0;
  color: var(--blue);
  background:
    radial-gradient(circle at 50% 44%, rgba(19, 92, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfdff, #f3f8ff);
}

.ai-card-icon svg {
  width: 44px;
  height: 44px;
}

.ai-card.is-coming .ghost-button {
  min-height: 56px;
  color: #6f819b;
  background: #edf4fd;
  cursor: not-allowed;
}

.ai-card.is-coming .ghost-button:disabled {
  opacity: 1;
}

.product-head {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 34px 0 22px;
  border: 1px solid #d7e4f5;
  border-radius: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.back-home-button {
  width: auto;
  min-height: 44px;
  padding: 0 15px;
}

.product-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.product-head h2 {
  margin: 6px 0 6px;
  font-size: clamp(28px, 4vw, 42px);
}

.product-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.right-column {
  display: grid;
  gap: 14px;
  grid-template-rows: auto 1fr;
}

.glass-card,
.admin-card {
  border: 1px solid rgba(203, 221, 245, 0.94);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.purchase-card,
.redeem-card,
.guide-card {
  padding: 26px;
}

.purchase-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 100%;
}

.card-title {
  gap: 12px;
  margin-bottom: 22px;
  min-height: 32px;
}

.card-title svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.card-title h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: 0;
}

.purchase-form,
.activation-form,
.admin-form {
  display: grid;
  gap: 18px;
}

.purchase-main {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.product-preview {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid #dce8f7;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(12, 39, 83, 0.12);
}

.product-preview img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  object-position: center;
}

.product-copy {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 18px;
  text-align: center;
}

.product-copy span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 900;
}

.product-copy h3 {
  margin: 7px 0 8px;
  font-size: 24px;
  letter-spacing: 0;
}

.product-copy p {
  max-width: 230px;
  margin: 0 auto 13px;
  color: var(--muted);
  line-height: 1.55;
}

.product-tags {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.product-tags small {
  border: 1px solid #d8e5f5;
  border-radius: 999px;
  padding: 7px 12px;
  color: #405678;
  background: #f6faff;
  font-size: 12px;
  font-weight: 850;
}

.field-grid {
  display: grid;
  gap: 18px;
  align-content: start;
}

.purchase-notice {
  display: grid;
  gap: 9px;
  border: 1px solid #dce8f7;
  border-radius: 10px;
  padding: 13px 14px;
  background: #f7fbff;
}

.purchase-notice p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #4c607f;
  font-size: 13px;
  line-height: 1.45;
}

.purchase-notice svg {
  flex: 0 0 auto;
  color: var(--blue);
}

label {
  display: grid;
  gap: 9px;
  color: #10213e;
  font-size: 14px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cedcf0;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input {
  min-height: 52px;
  padding: 0 16px;
}

textarea {
  min-height: 116px;
  padding: 12px 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8da0be;
}

input:focus,
textarea:focus {
  border-color: #9dbbff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(19, 92, 255, 0.1);
}

.quantity-control {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  overflow: hidden;
  border: 1px solid #cedcf0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.quantity-control input {
  border: 0;
  border-right: 1px solid #e1eaf6;
  border-left: 1px solid #e1eaf6;
  border-radius: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 1000;
  box-shadow: none;
}

.quantity-control button {
  display: grid;
  border: 0;
  place-items: center;
  color: #536985;
  background: transparent;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font-weight: 1000;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  color: #fff;
  background: linear-gradient(100deg, var(--blue), var(--blue-2));
  box-shadow: 0 18px 34px rgba(19, 92, 255, 0.24);
}

.ghost-button {
  min-height: 48px;
  border: 1px solid #cbdaf0;
  color: var(--blue);
  background: #fff;
}

.primary-button:hover,
.ghost-button:hover,
.outline-action:hover {
  transform: translateY(-1px);
}

.helper-copy {
  margin: -8px 0 0;
  color: #6c7e99;
  text-align: center;
  font-size: 13px;
}

.order-result {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  border: 1px solid #cbdaf0;
  border-radius: 12px;
  padding: 16px;
  background: rgba(249, 252, 255, 0.9);
}

.order-result.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

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

.result-header span,
.summary-box span,
.result-list dt {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 1000;
}

.result-header strong,
.summary-box strong,
.result-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
}

.compact-button {
  width: auto;
  min-height: 42px;
  padding: 0 16px;
}

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

.code-list code {
  border: 1px solid #dce8f7;
  border-radius: 9px;
  padding: 13px 16px;
  color: var(--ink);
  background: #fff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: 0.18em;
}

.safe-line {
  gap: 8px;
  margin: 0;
  color: #556b89;
  font-size: 13px;
}

.safe-line svg {
  color: var(--cyan);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 26px;
  padding: 4px 12px 0;
  list-style: none;
}

.steps::before {
  position: absolute;
  top: 20px;
  right: 70px;
  left: 70px;
  height: 2px;
  content: "";
  background: #dfe9f6;
}

.steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #6f7f99;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #dbe6f5;
  border-radius: 50%;
  color: #5c708e;
  background: #f8fbff;
  font-size: 18px;
  font-weight: 1000;
}

.steps li.is-active {
  color: var(--blue);
}

.steps li.is-active span,
.steps li.is-complete span {
  border-color: transparent;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(19, 92, 255, 0.24);
}

.step-panel {
  display: none;
}

.step-panel.is-active {
  display: block;
}

.activation-form p {
  margin: -8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.summary-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.summary-box div,
.result-list div {
  border: 1px solid #dce8f7;
  border-radius: 10px;
  padding: 13px;
  background: #f9fcff;
}

.button-row {
  gap: 12px;
}

.button-row .ghost-button {
  width: 130px;
}

.done-state {
  display: grid;
  justify-items: center;
  gap: 15px;
  padding: 12px 0 2px;
  text-align: center;
}

.done-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 18px 34px rgba(17, 185, 129, 0.24);
}

.done-state h2 {
  margin: 0;
  font-size: 24px;
}

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

.result-list {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.guide-card {
  background: rgba(239, 247, 255, 0.84);
}

.guide-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #3f5574;
}

.guide-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}

.guide-card li svg {
  flex: 0 0 auto;
  color: var(--blue);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 22px;
  border: 1px solid #cbdaf0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.service-strip article {
  gap: 18px;
  padding: 22px 28px;
}

.service-strip article + article {
  border-left: 1px solid #dce8f7;
}

.service-strip article > svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 50%;
  color: var(--blue);
  background: #edf5ff;
}

.service-strip h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.service-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

:lang(pt) .hero-copy {
  max-width: 760px;
}

:lang(pt) .hero-copy h1 {
  max-width: 640px;
}

:lang(pt) h1 {
  font-size: clamp(42px, 5.9vw, 66px);
  line-height: 1.08;
}

:lang(pt) .section-heading p {
  max-width: 610px;
}

:lang(pt) .benefit-pills span {
  padding-inline: 18px;
}

:lang(pt) .ai-card p {
  min-height: 84px;
}

:lang(pt) .ai-price span {
  font-size: 10px;
}

:lang(ja) .hero-copy {
  max-width: 860px;
}

:lang(ja) .hero-copy h1 {
  max-width: 860px;
}

:lang(ja) h1 {
  font-size: clamp(42px, 5.2vw, 60px);
  line-height: 1.12;
  word-break: keep-all;
}

:lang(ja) .hero-lede,
:lang(ja) .section-heading p,
:lang(ja) .ai-card p,
:lang(ja) .product-head p,
:lang(ja) .activation-form p,
:lang(ja) .service-strip p {
  word-break: keep-all;
}

.admin-card {
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 6px;
}

.admin-card-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
}

.admin-card-head h2 {
  margin: 6px 0 0;
  font-size: 23px;
}

.admin-card details {
  padding: 0;
}

.admin-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
}

.admin-card summary span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
}

.admin-card summary strong {
  font-size: 19px;
}

.admin-status-line,
.admin-login,
.admin-toolbar,
.admin-form,
.inventory-stats,
.inventory-list {
  margin: 0 24px 20px;
}

.admin-status-line {
  color: #52637f;
  font-size: 13px;
  font-weight: 900;
}

.admin-login {
  max-width: 420px;
}

.admin-toolbar {
  display: flex;
  justify-content: flex-end;
}

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

.admin-grid.single-column {
  grid-template-columns: 1fr;
}

.admin-grid .inventory-list {
  margin: 0;
}

.order-row {
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1.3fr);
}

.inventory-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.inventory-stats span {
  border: 1px solid #dce8f7;
  border-radius: 10px;
  padding: 12px;
  color: #445b7a;
  background: #f9fcff;
  font-size: 12px;
  font-weight: 900;
}

.inventory-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 22px;
}

.inventory-list {
  display: grid;
  max-height: 260px;
  overflow: auto;
  gap: 8px;
}

.inventory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #dce8f7;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.inventory-row code {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 1000;
}

.inventory-row small {
  overflow-wrap: anywhere;
  color: #647696;
}

.status-badge {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: #647696;
  font-size: 11px;
  font-weight: 1000;
}

.status-badge[data-status="available"] {
  background: var(--cyan);
}

.status-badge[data-status="sold"] {
  background: var(--blue);
}

.status-badge[data-status="reserved"] {
  background: #8b5cf6;
}

.status-badge[data-status="redeemed"] {
  background: #52637f;
}

.status-badge[data-status="failed"] {
  background: var(--red);
}

.empty-copy {
  color: var(--muted);
}

.footer-note {
  padding: 16px 0 44px;
  color: #7d8da6;
  text-align: center;
  font-size: 12px;
}

.footer-note p {
  margin: 7px 0 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: min(380px, calc(100% - 48px));
  border-radius: 11px;
  padding: 14px 16px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

@media (max-width: 1060px) {
  .topbar {
    grid-template-columns: 180px 1fr auto;
  }

  .nav-links {
    display: none;
  }

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

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

  .hero-wave {
    width: 100%;
    opacity: 0.72;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 16px;
  }

  .brand {
    gap: 10px;
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .outline-action {
    width: 46px;
    min-height: 46px;
    font-size: 0;
  }

  .language-switcher {
    max-width: 96px;
    min-height: 40px;
    padding: 0 10px;
  }

  .language-switcher svg {
    display: none;
  }

  .language-switcher select {
    width: 76px;
    min-width: 0;
    max-width: 76px;
    font-size: 12px;
  }

  main {
    width: min(100% - 24px, 1280px);
  }

  .hero-section {
    padding: 34px 0 26px;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    max-width: 100%;
  }

  .hero-wave {
    top: 28px;
    right: 0;
    left: 0;
    width: 100%;
    height: 210px;
    opacity: 0.56;
  }

  h1 {
    max-width: min(100%, 8.2em);
    font-size: clamp(32px, 9.4vw, 38px);
    line-height: 1.12;
  }

  :lang(pt) .hero-copy h1,
  :lang(ja) .hero-copy h1 {
    max-width: min(100%, 8.4em);
  }

  :lang(pt) h1,
  :lang(ja) h1 {
    font-size: clamp(30px, 8.8vw, 36px);
    line-height: 1.14;
  }

  .benefit-pills {
    gap: 10px;
  }

  .benefit-pills span {
    width: 100%;
    min-height: 50px;
  }

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

  .ai-card,
  .ai-card.is-available {
    min-height: 0;
  }

  .ai-card.is-coming {
    grid-template-rows: 132px 1fr;
  }

  .ai-card-icon {
    height: 132px;
  }

  .ai-card h3,
  .ai-card p,
  .ai-card-meta {
    min-height: 0;
  }

  .product-head {
    grid-template-columns: 1fr;
  }

  .purchase-card,
  .redeem-card,
  .guide-card {
    padding: 18px;
  }

  .product-preview,
  .purchase-main,
  .field-grid,
  .admin-grid,
  .summary-box,
  .result-list,
  .service-strip,
  .inventory-stats {
    grid-template-columns: 1fr;
  }

  .product-preview img {
    aspect-ratio: 1.65;
  }

  .button-row {
    display: grid;
  }

  .button-row .ghost-button {
    width: 100%;
  }

  .service-strip article + article {
    border-top: 1px solid #dce8f7;
    border-left: 0;
  }

  .inventory-row {
    grid-template-columns: 1fr;
  }
}
