:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --text: #16233b;
  --muted: #5f6b7a;
  --line: rgba(22, 35, 59, 0.10);
  --shadow: 0 20px 50px rgba(22, 35, 59, 0.10);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --amazon: linear-gradient(180deg, #ffd814 0%, #f7ca00 100%);
  --dark-btn: linear-gradient(180deg, #20304f 0%, #16233b 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.site-shell { min-height: 100vh; }
.light-surface { background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%); }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section-block { padding: 72px 0; }
.no-top-gap { padding-top: 0; }
.narrow-wrap .container { width: min(860px, calc(100% - 32px)); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(22,35,59,0.08);
}

.glass-header { background: rgba(245,245,247,0.72); }
.simple-header { background: rgba(255,255,255,0.92); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand-mark {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand,
.brand-mark-image {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  width: clamp(112px, 9vw, 152px);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(22,35,59,0.08);
  color: var(--text);
}

.cta-signup {
  background: var(--amazon);
  color: #16233b !important;
  font-weight: 700;
  border: 1px solid rgba(22,35,59,0.10);
}

.cta-login,
.nav-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(22,35,59,0.12);
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-weight: 700;
}

.nav-inline-form { margin: 0; }
.nav-logout-btn { cursor: pointer; }

.cta-login-with-icon {
  gap: 8px;
}

.nav-mypage-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-mypage-icon img {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
}

.nav-mypage-icon-hover { opacity: 0; }

.cta-login-with-icon:hover .nav-mypage-icon-default,
.cta-login-with-icon.active .nav-mypage-icon-default { opacity: 0; }

.cta-login-with-icon:hover .nav-mypage-icon-hover,
.cta-login-with-icon.active .nav-mypage-icon-hover { opacity: 1; }

.auth-login-actions,
.signup-complete-actions {
  justify-content: center;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 18px !important;
}

.nav-cart-icon {
  position: relative;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: 0 0 26px;
}

.nav-cart-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.nav-cart-icon-default { opacity: 1; }
.nav-cart-icon-hover { opacity: 0; }

.nav-cart-link:hover .nav-cart-icon-default,
.nav-cart-link.active .nav-cart-icon-default {
  opacity: 0;
}

.nav-cart-link:hover .nav-cart-icon-hover,
.nav-cart-link.active .nav-cart-icon-hover {
  opacity: 1;
}

.nav-cart-label {
  display: inline-block;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d11a2a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

/* Hero */
.hero-section {
  padding: 110px 0 20px;
  background:
    radial-gradient(circle at top left, rgba(22, 35, 59, 0.10), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(255, 196, 0, 0.15), transparent 24%),
    linear-gradient(180deg, #f9f9fb 0%, #f5f5f7 100%);
}

.hero-grid,
.detail-layout,
.cart-layout,
.checkout-layout,
.form-shell,
.split-panel {
  display: grid;
  gap: 32px;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.detail-panel h1,
.section-head h1,
.section-head h2,
.signup-intro h1,
.success-shell h1 {
  margin: 0 0 18px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head h2{
	margin-bottom: 26px;
}

.hero-copy h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); }

.lp-copy h1 {margin-top:28px;}

.hero-text,
.section-copy,
.detail-description,
.signup-intro p,
.section-head p {
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow { display: none; }

.hero-actions,
.button-row,
.button-stack,
.form-actions,
.center-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-meta div,
.mini-feature,
.feature-item {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(22,35,59,0.06);
}

.hero-meta strong,
.mini-feature strong {
  display: block;
  font-size: 0.94rem;
}

.hero-meta span,
.mini-feature span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Floating sample cards */
.device-stage {
  position: relative;
  min-height: 520px;
  border-radius: 42px;
  background: linear-gradient(180deg, #ffffff 0%, #ececf1 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0,0,0,0.05), transparent 30%);
}

.device-card {
  position: absolute;
  width: 240px;
  border-radius: 28px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.card-a { top: 72px; left: 32px; transform: rotate(-10deg); }
.card-b { top: 170px; right: 30px; transform: rotate(7deg); }
.card-c { bottom: 34px; left: 120px; transform: rotate(-4deg); }

.floating-card { animation: floatCard 6s ease-in-out infinite; }
.card-b { animation-delay: .8s; }
.card-c { animation-delay: 1.5s; }

@keyframes floatCard {
  0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}

.card-a { --r: -10deg; }
.card-b { --r: 7deg; }
.card-c { --r: -4deg; }

.page-hero { padding: 48px 0 24px; }
.center-head { text-align: center; }
.muted-section { background: rgba(255,255,255,0.55); }
.section-head { margin-bottom: 26px; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.product-card,
.card-panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(22,35,59,0.06);
}

.elevated:hover,
.product-card:hover {
  transform: translateY(-4px);
  transition: 0.25s ease;
}

.product-card-image {
  display: grid;
  place-items: center;
  padding: 28px;
  min-height: 260px;
  border-bottom: 1px solid rgba(22,35,59,0.05);
  background: linear-gradient(180deg, #fbfbfd 0%, #f0f1f5 100%);
}

.tall-image { min-height: 320px; }

.product-card-image-stack {
  align-content: center;
  gap: 14px;
}

.product-card-image-stack img {
  width: 100%;
  max-width: 360px;
  display: block;
}

.product-card-image-stack.tall-image {
  min-height: 420px;
}


.product-card-image-blank {
  min-height: 260px;
  background: linear-gradient(180deg,#f7f8fb 0%,#eef1f6 100%);
}

.product-card-image-blank::after {
  content: "";
  width: calc(100% - 56px);
  height: calc(100% - 56px);
  border-radius: 28px;
  border: 2px dashed rgba(22,35,59,0.08);
  background: rgba(255,255,255,0.78);
}

.product-card-body { padding: 24px; }
.product-card-kicker { display: none; }

.product-card h2,
.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.product-title-split {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

.product-title-split .product-title-brand { display: block; }
.no-gap-title { gap: 0; line-height: 1.18; }
.no-gap-title .product-title-brand { margin-bottom: 0; }
.product-title-split span:last-child { margin-top: 0; }

.product-card-desc {
  color: var(--muted);
  min-height: 72px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vertical-footer {
  align-items: stretch;
  flex-direction: column;
}

.price-text {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.product-card-action-stack { gap: 18px; }

.product-card-order-form,
.product-detail-order-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-card-qty-box,
.detail-qty-box {
  width: 100%;
  justify-content: center;
}

.product-card-action-stack .price-text {
  display: block;
  width: 100%;
  text-align: right;
}

.full-row { width: 100%; }
.full-grow { flex: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.25s ease;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-large { min-height: 54px; padding: 0 28px; }

.btn-dark {
  background: var(--dark-btn);
  color: #fff;
  box-shadow: 0 12px 30px rgba(22,35,59,0.22);
}

.btn-light {
  background: rgba(255,255,255,0.92);
  color: #16233b;
  border-color: rgba(22,35,59,0.10);
}

.btn-amazon {
  background: var(--amazon);
  color: #16233b;
  border-color: rgba(22,35,59,0.10);
  box-shadow: 0 10px 25px rgba(247, 202, 0, 0.3);
}

.text-link {
  color: #0066cc;
  font-weight: 600;
}

.text-link-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.text-button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.notice-banner {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(22,35,59,0.08);
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

.notice-banner.success {
  background: #f0fdf4;
  border-color: rgba(34,197,94,0.28);
  color: #166534;
}

.notice-banner.warn {
  background: #fff7ed;
  border-color: rgba(249,115,22,0.22);
  color: #9a3412;
}

.btn.is-disabled, .btn[aria-disabled="true"], .btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn.is-disabled:hover, .btn[aria-disabled="true"]:hover, .btn:disabled:hover {
  transform: none;
}

.danger-text { color: #d11a2a; font-weight: 700; }
.notice-text,
.field-error {
  color: #d11a2a;
  font-size: 0.92rem;
}

/* Detail */
.action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 22px;
}

.detail-layout {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.detail-image {
  padding: 28px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f0f1f5 100%);
}

.detail-image-gallery {
  display: grid;
  gap: 18px;
}

.detail-main-image {
  width: 100%;
  border-radius: 28px;
  background: #fff;
}

.detail-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-thumb-card {
  margin: 0;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(22,35,59,0.08);
  display: grid;
  gap: 10px;
}

.detail-thumb-label {
  font-weight: 700;
  color: var(--text);
}

.detail-thumb-card img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.detail-panel { padding: 8px 4px; }

.detail-price {
  font-size: 2rem;
  margin: 8px 0 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
  width: 100%;
  text-align: right;
}

.mini-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.purchase-box {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(22,35,59,0.06);
}

.detail-bottom-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.detail-bottom-actions .btn { min-width: 180px; }

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

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(22,35,59,0.08);
  align-items: start;
}

.detail-list dt { color: var(--muted); }

.detail-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  max-width: 58%;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-empty-visual {
  min-height: 320px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
  border: 2px dashed rgba(22,35,59,0.08);
}

/* Quantity */
.qty-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modern-qty-box {
  padding: 8px;
  border-radius: 999px;
  background: #eef1f6;
  border: 1px solid rgba(22,35,59,0.08);
}

.qty-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(22,35,59,0.10);
}

.qty-input {
  width: 64px;
  text-align: center;
  border: none;
  background: transparent;
  outline: none;
  font-weight: 700;
}

/* Forms */
.form-page { padding-top: 48px; }

.form-shell {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: stretch;
}

.form-shell-wide { grid-template-columns: 1fr; }
.form-shell-single { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }

.dark-panel {
  background: linear-gradient(180deg, #20304f 0%, #16233b 100%);
  color: #fff;
  padding: 34px;
}

.benefit-list {
  margin: 24px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.75);
}

.form-panel,
.wide-panel {
  padding: 30px;
}

.grand-form-panel { padding: 34px; }

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

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label { font-weight: 700; }

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(22,35,59,0.10);
  background: #fff;
  outline: none;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.checkout-layout .form-grid > .form-field textarea#shippingAddress {
  min-height: 150px;
}

.full-width { grid-column: 1 / -1; }

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.compact-field { margin-bottom: 18px; }

.card-check-row {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(17,17,17,0.03);
  border: 1px solid rgba(17,17,17,0.06);
}

.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 56px; }

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(22,35,59,0.08);
  cursor: pointer;
}

.postal-inline-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.postal-inline-group input { flex: 1; }
.postal-auto-btn { white-space: nowrap; }

/* Cart */
.compact-cart-section { padding-top: 40px; }
.compact-cart-head { margin-bottom: 18px; }

.cart-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.cart-summary-sticky {
  position: sticky;
  top: 104px;
}

.cart-list {
  display: grid;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.cart-item-image {
  display: grid;
  place-items: center;
  min-height: 156px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f0f1f5 100%);
}

.cart-item-image-stack {
  align-content: center;
  gap: 10px;
  padding: 16px;
}

.cart-item-image-stack img {
  width: 100%;
  max-width: 180px;
  display: block;
}

.cart-item-top,
.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-update-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-sub-desc {
  margin: 6px 0 0;
  color: var(--muted);
}

.cart-subtotal {
  margin: 12px 0 0;
  font-size: 1.08rem;
  display: flex;
  justify-content: flex-end;
  text-align: right;
  align-items: center;
  gap: 4px;
}

.bottom-cart-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.bottom-cart-cta { min-width: 260px; }

.empty-cart-actions { justify-content: center; }

.cart-item-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.upload-status-inline {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(209,26,42,0.08);
  color: #d11a2a;
  font-weight: 700;
}

.upload-status-inline.is-complete {
  background: rgba(13,164,74,0.10);
  color: #0d8f43;
}

.cart-item-upload-box {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-upload-box.is-complete {
  background: linear-gradient(180deg, rgba(13,164,74,0.08) 0%, rgba(13,164,74,0.03) 100%);
}

.cart-item-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-item-upload-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.cart-clear-form {
  margin-top: 18px;
  text-align: center;
}

/* Summary / checkout */
.cart-summary,
.checkout-summary,
.summary-panel,
.success-shell {
  padding: 28px;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(22,35,59,0.08);
}

.summary-list dt { color: var(--muted); }

.summary-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.mini-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(22,35,59,0.06);
}

.mini-cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  background: #f3f4f6;
}

.mini-cart-item p {
  margin: 0 0 4px;
  font-weight: 700;
}

.mini-cart-item small { color: var(--muted); }

.confirm-shell { display: grid; gap: 18px; }
.compact-summary { margin-top: 16px; }

.checkout-upload-list { display: grid; gap: 18px; }

.checkout-upload-item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(17,17,17,0.06);
}

.checkout-upload-item h4 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

/* Success */
.success-shell { text-align: center; }
.success-shell-hero {
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(245,245,247,0.98) 100%);
}

.success-badge {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: linear-gradient(180deg, #2ad15f 0%, #0da44a 100%);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 18px 40px rgba(13,164,74,0.28);
}

.success-badge.is-error {
  background: linear-gradient(180deg, #ff6666 0%, #d93025 100%);
  box-shadow: 0 18px 40px rgba(217,48,37,0.28);
}

.single-complete-action { justify-content: center; }
.order-complete-panel { text-align: center; }
.notice-success { color: #0f7a3a; font-weight: 700; }

/* CTA band */
.cta-band { background: #101114; color: #fff; }

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.feature-list { display: grid; gap: 14px; }
.inline-form { display: inline; }

/* Alternate hero / utility */
.page-hero-extended {
  padding-top: 52px;
  padding-bottom: 64px;
}

.compact-hero-grid { grid-template-columns: 1.08fr 0.92fr; }

.hero-stack-preview {
  position: relative;
  min-height: 420px;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(235,236,241,0.96) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-stack-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(77,122,255,0.16), transparent 30%),
    radial-gradient(circle at 80% 82%, rgba(255,196,0,0.18), transparent 26%);
}

.hero-stack-card {
  position: absolute;
  width: 240px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 40px rgba(17,17,17,0.14);
}

.stack-one { top: 56px; left: 34px; transform: rotate(-10deg); }
.stack-two { top: 132px; right: 34px; transform: rotate(8deg); }
.stack-three { bottom: 30px; left: 120px; transform: rotate(-4deg); }

.utility-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  margin-bottom: 28px;
}

.utility-strip h2 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.card-button-grid { width: 100%; }

.showcase-panel {
  padding: 30px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dark-showcase {
  background: linear-gradient(180deg, #17181b 0%, #0d0d0f 100%);
  color: #fff;
}

.bright-benefits { color: rgba(255,255,255,0.8); }

.subtle-cart-hero {
  background:
    radial-gradient(circle at top left, rgba(77, 122, 255, 0.08), transparent 25%),
    radial-gradient(circle at 82% 16%, rgba(42, 209, 95, 0.12), transparent 24%),
    linear-gradient(180deg, #f9f9fb 0%, #f5f5f7 100%);
}

.no-margin-summary { margin: 16px 0 0; }

.refined-empty-state {
  padding: 42px 30px;
  text-align: center;
}

.refined-empty-state h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.empty-state-icon {
  margin: 0 0 10px;
  font-size: 2.5rem;
}

.always-open-nav {
  position: static;
  display: flex;
}

/* Simple page sections */
.simple-page-top { padding-bottom: 22px; }
.first-section-tight { padding-top: 34px; }

.simple-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 30px 34px;
}

.slim-page-head { border-radius: 32px; }

.simple-page-head h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.compact-actions { justify-content: flex-end; }
.simple-page-summary { min-width: 300px; }
.summary-actions { justify-content: flex-end; }
.compact-cta-band { padding-top: 42px; }

/* Signup scroll */
.signup-scroll-wrap { margin-top: 24px; }

.signup-scroll-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  min-height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(22,35,59,0.10);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 24px rgba(17,17,17,0.08);
  cursor: pointer;
  transition: 0.25s ease;
  font-weight: 700;
}

.signup-scroll-button:hover { transform: translateY(-2px); }
.signup-scroll-label { font-size: 0.98rem; }

.signup-scroll-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 1rem;
}

.signup-form-head { margin-bottom: 20px; }

/* Upload */
.upload-target-card {
  display: grid;
  grid-template-columns: 140px minmax(0,1fr);
  gap: 18px;
  padding: 20px;
  margin-bottom: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f0f1f5 100%);
}

.upload-target-card img {
  width: 100%;
  max-width: 140px;
  border-radius: 20px;
  background: #fff;
  padding: 10px;
}

.compact-upload-target { padding: 18px; }

.upload-target-card-single {
  grid-template-columns: minmax(0, 1fr);
}

.upload-target-card-single h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.25;
  word-break: keep-all;
}

.upload-target-card-single .cart-sub-desc {
  margin: 0 0 14px;
  max-width: 34rem;
  line-height: 1.7;
}

.upload-target-card-single .cart-subtotal {
  justify-content: flex-start;
  text-align: left;
  flex-wrap: wrap;
  gap: 6px;
}

.upload-status-card {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #f8fafc;
}

.upload-status-card.is-complete {
  background: #f0fdf4;
  border-color: rgba(34, 197, 94, 0.28);
}

.upload-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #14532d;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.upload-badge.pending { background: #9f1239; }

.compact-detail-list { gap: 0.75rem; }
.compact-detail-list dt { min-width: 120px; }

.small-inline-btn {
  display: inline-flex;
  width: auto;
  margin-top: 0.8rem;
}

.small-text { font-size: 0.95rem; }
.margin-top-lg { margin-top: 24px; }
.helper-text { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; }

.upload-preview-layout { grid-template-columns: minmax(0, 1fr) 380px; }
.upload-preview-side { position: sticky; top: 96px; }
.preview-helper { margin: 0 0 16px; }

.upload-preview-frame {
  display: flex;
  justify-content: center;
  align-items: center;
}

.template-preview-shell,
.original-preview-shell {
  display: grid;
  gap: 16px;
}

.template-preview-card,
.original-preview-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfbfd 0%, #eceef5 100%);
  border: 1px solid rgba(22,35,59,0.10);
  aspect-ratio: 242.65 / 161.69;
  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.08);
}

.template-preview-base,
.original-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.template-logo-slot,
.template-qr-slot {
  position: absolute;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.template-logo-image,
.template-qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.template-logo-placeholder,
.template-qr-placeholder {
  display: none !important;
}

.original-preview-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(243,244,246,0.96) 100%);
  border: 1px dashed rgba(17,17,17,0.16);
  border-radius: 20px;
  padding: 18px;
  font-weight: 700;
  min-height: 260px;
  align-content: center;
  gap: 10px;
}

.original-preview-placeholder span {
  font-weight: 500;
  line-height: 1.6;
}

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

.preview-meta-line {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(17,17,17,0.06);
}

.preview-meta-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-actions-centered {
  justify-content: center;
}

.full-width-actions {
  grid-column: 1 / -1;
}

/* Preview themes */
.theme-google .template-logo-slot,
.theme-instagram .template-logo-slot,
.theme-line .template-logo-slot {
  right: 1.6%;
  bottom: 5.9%;
  left: auto;
  top: auto;
  width: 16%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  padding: 0;
}

.theme-google .template-qr-slot,
.theme-instagram .template-qr-slot,
.theme-line .template-qr-slot {
  left: 5.85%;
  top: 25.7%;
  right: auto;
  bottom: auto;
  width: 12.8%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  padding: 0;
}

.theme-default .template-logo-slot {
  top: 10%;
  left: 10%;
}

.theme-default .template-qr-slot {
  right: 10%;
  bottom: 10%;
}

.simple-preview-clean .template-preview-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
}

.clean-card-preview {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 242.65 / 161.69;
}

.clean-card-preview .template-preview-base {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  transform: none;
}

.slot-qr-lefttop {
  position: absolute;
  left: 5.85%;
  top: 25.7%;
  width: 12.8%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.slot-logo-rightbottom {
  position: absolute;
  right: 1.6%;
  bottom: 5.9%;
  width: 16%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.multi-preview-stack {
  display: grid;
  gap: 18px;
}

.three-set-preview,
.single-separate-preview {
  grid-template-columns: 1fr;
}

.multi-preview-stack .mini-card-preview,
.clean-card-preview {
  position: relative;
  aspect-ratio: 242.65/161.69;
}

.upload-mode-switch {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border: 1px solid rgba(22,35,59,.10);
  border-radius: 18px;
  background: #fff;
}

.upload-mode-switch label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
}

.triple-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  grid-column: 1 / -1;
}

.mini-upload-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(22,35,59,.08);
  display: grid;
  gap: 12px;
}

.upload-form-actions-centered { justify-content: center; }

.upload-priority-button,
.upload-secondary-button {
  min-width: 260px;
}

.upload-back-panel { padding-top: 18px; }

.upload-back-link {
  background: linear-gradient(180deg, rgba(22,35,59,0.08) 0%, rgba(22,35,59,0.04) 100%);
  color: var(--text);
  border: 1px solid rgba(22,35,59,0.10);
  min-height: 54px;
  font-weight: 700;
}

.upload-back-link:hover {
  background: linear-gradient(180deg, rgba(22,35,59,0.12) 0%, rgba(22,35,59,0.06) 100%);
}

/* Flow cards */
.hero-flow-stage {
  display: grid;
  gap: 18px;
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.flow-row {
  overflow: hidden;
  border-radius: 0;
}

.flow-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.flow-right .flow-track { animation: flowRight 28s linear infinite; }
.flow-left .flow-track { animation: flowLeft 28s linear infinite; }
.flow-delay .flow-track { animation-duration: 34s; }
.flow-delay-2 .flow-track { animation-duration: 31s; }

.flow-card {
  flex: 0 0 152px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  opacity: 1;
}

.flow-card img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

@keyframes flowRight {
  from { transform: translateX(-12%); }
  to { transform: translateX(-52%); }
}

@keyframes flowLeft {
  from { transform: translateX(-52%); }
  to { transform: translateX(-12%); }
}

/* Mypage */
.mypage-side-menu .button-stack { width: 100%; }
.mypage-side-menu .btn { width: 100%; }

/* Responsive */
@media (max-width: 1100px) {
  .product-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .hero-grid,
  .detail-layout,
  .cart-layout,
  .checkout-layout,
  .form-shell,
  .split-panel,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta,
  .mini-feature-grid,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cart-summary,
  .checkout-summary {
    position: static;
  }

  .compact-hero-grid { grid-template-columns: 1fr; }

  .utility-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .simple-page-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .simple-page-summary { min-width: 0; }

  .compact-actions,
  .summary-actions {
    justify-content: flex-start;
  }

  .upload-preview-layout { grid-template-columns: 1fr; }
  .upload-preview-side { position: static; }
}

@media (max-width: 900px) {
  .triple-form-grid { grid-template-columns: 1fr; }
  .flow-card { flex-basis: 130px; }
}

@media (max-width: 768px) {
  .product-grid-four { grid-template-columns: 1fr; }
  .cart-summary-sticky { position: static; }
  .compact-cart-section { padding-top: 24px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1120px); }
  .section-block { padding: 54px 0; }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,0.95);
    padding: 14px;
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }

  .compact-nav {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .hero-copy h1 { font-size: 2.4rem; }

  .hero-meta,
  .mini-feature-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .device-stage { min-height: 360px; }

  .device-card {
    width: 170px;
    padding: 12px;
  }

  .card-a { top: 46px; left: 16px; }
  .card-b { top: 122px; right: 18px; }
  .card-c { bottom: 22px; left: 76px; }

  .action-bar,
  .cta-band-inner,
  .cart-item,
  .cart-item-top,
  .cart-controls,
  .button-row,
  .hero-actions {
    align-items: stretch;
  }

  .button-row,
  .hero-actions,
  .cta-band-inner {
    flex-direction: column;
  }

  .cart-item { grid-template-columns: 1fr; }

  .detail-list div,
  .summary-list div {
    flex-direction: column;
  }

  .detail-list dd,
  .summary-list dd {
    text-align: left;
    max-width: none;
  }

  .page-hero-extended {
    padding-top: 30px;
    padding-bottom: 38px;
  }

  .hero-stack-preview { min-height: 300px; }

  .hero-stack-card {
    width: 160px;
    padding: 12px;
  }

  .stack-one { top: 36px; left: 16px; }
  .stack-two { top: 96px; right: 16px; }
  .stack-three { bottom: 18px; left: 70px; }

  .utility-strip { padding: 22px; }

  .always-open-nav {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .first-section-tight { padding-top: 18px; }

  .simple-page-head { padding: 24px 20px; }

  .upload-target-card { grid-template-columns: 1fr; }

  .empty-cart-actions,
  .detail-bottom-actions,
  .upload-form-actions-centered {
    justify-content: center;
  }

  .detail-bottom-actions .btn,
  .upload-priority-button,
  .upload-secondary-button {
    width: 100%;
  }

  .postal-inline-group {
    flex-direction: column;
    align-items: stretch;
  }

  .clean-card-preview { max-width: 100%; }

  .slot-qr-lefttop {
    left: 6.5%;
    top: 16.5%;
    width: 11.8%;
  }

  .slot-logo-rightbottom {
    right: 7%;
    bottom: 12%;
    width: 13.8%;
  }
}

@media (max-width: 720px) {
  .cart-badge {
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  body { line-height: 1.55; }
  .container { width: min(100% - 20px, 1120px); }
  .site-header { backdrop-filter: blur(14px); }
  .nav-wrap { min-height: 64px; gap: 12px; }
  .brand-logo { width: 132px; }
  .site-nav {
    top: 66px;
    left: 10px;
    right: 10px;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }
  .site-nav a, .nav-logout-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }
  .nav-inline-form { width: 100%; }
  .hero-section { padding: 24px 0 40px; }
  .hero-copy h1, .hero-title {
    font-size: clamp(2rem, 10vw, 2.9rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    margin-bottom: 14px;
  }
  .hero-text, .section-copy, .detail-description, .signup-intro p, .section-head p {
    font-size: 0.98rem;
  }
  .hero-actions .btn,
  .button-row .btn,
  .compact-actions .btn,
  .empty-cart-actions .btn,
  .button-stack .btn,
  .product-card-order-form .btn {
    width: 100%;
  }
  .hero-flow-stage {
    gap: 12px;
    padding: 16px;
    border-radius: 28px;
  }
  .flow-row { border-radius: 20px; }
  .flow-card {
    flex-basis: 118px;
    padding: 10px;
    border-radius: 18px;
  }
  .flow-card img { border-radius: 12px; }
  .flow-delay-2 { display: none; }
  .section-block { padding: 42px 0; }
  .simple-page-top { padding-bottom: 14px; }
  .first-section-tight { padding-top: 14px; }
  .simple-page-head,
  .slim-page-head,
  .card-panel,
  .product-card,
  .form-panel,
  .wide-panel,
  .cart-summary,
  .checkout-summary,
  .summary-panel,
  .success-shell {
    border-radius: 24px;
  }
  .simple-page-head,
  .form-panel,
  .wide-panel,
  .cart-summary,
  .checkout-summary,
  .summary-panel,
  .success-shell {
    padding: 22px 18px;
  }
  .simple-page-head h1,
  .page-hero h1,
  .detail-panel h1,
  .section-head h1,
  .section-head h2,
  .signup-intro h1,
  .success-shell h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    margin-bottom: 12px;
  }
  .product-grid, .product-grid-four { gap: 18px; }
  .product-card-image {
    min-height: 210px;
    padding: 18px 14px;
  }
  .tall-image { min-height: 270px; }
  .product-card-body { padding: 20px 18px; }
  .product-card h2, .product-card h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
  }
  .product-card-desc {
    min-height: 0;
    font-size: 0.96rem;
  }
  .product-card-action-stack { gap: 14px; }
  .price-text, .detail-price { font-size: 1.45rem; }
  .svg-display-stack { gap: 10px; }
  .svg-card-face { width: min(100%, 240px); border-radius: 18px; }
  .product-card-image-stack.tall-image .svg-card-face { width: min(100%, 220px); }
  .product-card-image-blank::before { width: min(100%, 240px); border-radius: 18px; font-size: 0.9rem; }
  .bottom-cart-cta-wrap {
    position: sticky;
    bottom: 10px;
    z-index: 12;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    margin-top: 20px;
  }
  .bottom-cart-cta {
    width: 100%;
    min-width: 0;
    box-shadow: 0 14px 30px rgba(22,35,59,0.22);
  }
  .cart-layout { gap: 18px; }
  .cart-item {
    gap: 14px;
    padding: 16px;
  }
  .cart-item-image {
    min-height: 128px;
    padding: 12px;
  }
  .cart-item-body h2 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
  }
  .cart-update-form,
  .cart-controls,
  .cart-item-upload-head {
    align-items: stretch;
  }
  .cart-update-form .btn,
  .cart-item-upload-box .btn {
    width: 100%;
  }
  .modern-qty-box {
    width: 100%;
    justify-content: space-between;
  }
  .qty-button {
    width: 44px;
    height: 44px;
  }
  .qty-input {
    width: 56px;
    font-size: 1rem;
  }
  .cart-subtotal {
    justify-content: flex-start;
    text-align: left;
    font-size: 1rem;
  }
  .cart-svg-display-stack .svg-card-face { width: min(100%, 148px); }
}

@media (max-width: 480px) {
  .container { width: min(100% - 16px, 1120px); }
  .nav-wrap { min-height: 60px; }
  .brand-logo { width: 118px; }
  .site-nav { top: 62px; left: 8px; right: 8px; }
  .nav-toggle { width: 40px; height: 40px; }
  .hero-section { padding: 18px 0 34px; }
  .hero-copy h1, .hero-title { font-size: clamp(1.8rem, 10.6vw, 2.5rem); }
  .hero-text, .section-copy { font-size: 0.94rem; }
  .hero-flow-stage { padding: 14px; border-radius: 24px; }
  .flow-card { flex-basis: 104px; padding: 8px; }
  .simple-page-head,
  .form-panel,
  .wide-panel,
  .cart-summary,
  .checkout-summary,
  .summary-panel,
  .success-shell,
  .product-card { border-radius: 20px; }
  .simple-page-head,
  .form-panel,
  .wide-panel,
  .cart-summary,
  .checkout-summary,
  .summary-panel,
  .success-shell { padding: 18px 16px; }
  .product-card-image { min-height: 190px; padding: 14px 12px; }
  .tall-image { min-height: 248px; }
  .product-card-body { padding: 18px 16px; }
  .product-card h2, .product-card h3 { font-size: 1.04rem; }
  .svg-card-face { width: min(100%, 210px); border-radius: 16px; }
  .product-card-image-stack.tall-image .svg-card-face { width: min(100%, 196px); }
  .product-card-image-blank::before { width: min(100%, 210px); border-radius: 16px; font-size: 0.84rem; }
  .cart-item { padding: 14px; }
  .cart-item-body h2 { font-size: 1.2rem; }
  .cart-summary h2, .checkout-summary h2 { font-size: 1.5rem; }
  .cart-svg-display-stack .svg-card-face { width: min(100%, 132px); }
  .upload-status-inline { min-height: 38px; padding: 0 12px; font-size: 0.85rem; }
}

.cart-next-step { margin-top: -2px; text-align: center; }


.signup-input-actions { justify-content: center; }
.signup-input-actions .btn { min-width: 200px; }
.nav-mypage-icon img { transition: opacity 0.2s ease; display: block; }


/* Trust / reassurance */
.trust-section-top { padding-top: 24px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.trust-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(22,35,59,0.08);
  border-radius: 24px;
  padding: 24px 26px;
  box-shadow: 0 16px 36px rgba(22,35,59,0.06);
}
.trust-card-accent {
  background: linear-gradient(180deg, rgba(255,248,210,0.85) 0%, rgba(255,255,255,0.95) 100%);
}
.trust-card h2, .detail-assurance h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}
.trust-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.trust-list li {
  display: grid;
  gap: 4px;
}
.trust-list strong { font-size: 0.95rem; }
.trust-list span, .trust-card p { color: var(--muted); }
.trust-card.compact { padding: 18px 20px; }
.detail-assurance {
  margin: 28px 0 0;
  padding: 24px 24px 28px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(22,35,59,0.08);
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(22,35,59,0.06);
}
.detail-assurance h2 {
  text-align: left;
  margin-bottom: 18px;
}
.detail-trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.detail-trust-grid .trust-card.compact {
  height: 100%;
  min-height: 100%;
}

.detail-trust-grid .trust-card-wide {
  grid-column: 1 / -1;
  min-height: auto;
  padding: 18px 22px;
}

.detail-trust-grid .trust-card-wide h3 {
  margin-bottom: 10px;
}

.detail-trust-grid .trust-card-wide p {
  max-width: none;
  line-height: 1.75;
}

.trust-card-alert.trust-card-accent {
  background: rgba(245, 166, 35, 0.10);
  border: 1px solid rgba(245, 166, 35, 0.20);
}

.trust-card-alert.trust-card-accent h3,
.trust-card-alert.trust-card-accent p {
  color: #7a4d00;
}
.order-assurance-box {
  margin-top: 18px;
  padding: 18px 18px 12px;
  border: 1px solid rgba(22,35,59,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
}
.order-assurance-box h3 { margin: 0 0 12px; font-size: 1rem; }
.compact-list { gap: 10px; }

@media (max-width: 1180px) {
  .detail-trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .trust-grid, .detail-trust-grid { grid-template-columns: 1fr; }
}

.center-head p { margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 26px; color: #5F6B7A;}
.lineup-head p { max-width: 86ch; }

.site-footer {
  margin-top: 96px;
  padding: 48px 0 24px;
  background: linear-gradient(180deg, #f8f9fc 0%, #eef2f7 100%);
  border-top: 1px solid rgba(22, 35, 59, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  width: 164px;
  height: auto;
  display: block;
}

.footer-copy {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 42ch;
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 35, 59, 0.08);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}



@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 72px;
    padding: 40px 0 20px;
  }

  .footer-logo {
    width: 148px;
  }

  .footer-copy,
  .footer-note-list,
  .footer-bottom p {
    font-size: 0.92rem;
  }
}

.lp-usecase-grid.lp-usecase-grid-polished {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.lp-usecase-card.lp-usecase-card-rich {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(22, 35, 59, 0.08);
    min-width: 0;
}

.lp-usecase-media {
    width: 100%;
    aspect-ratio: 1.35 / 1;
    overflow: hidden;
}

.lp-usecase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-usecase-card-rich strong {
    display: block;
    padding: 18px 22px 10px;
    font-size: 18px;
    font-weight: 700;
    color: #16233B;
}

.lp-usecase-card-rich p {
    margin: 0;
    padding: 0 22px 22px;
    font-size: 16px;
    line-height: 1.8;
    color: #5F6B7A;
}

@media (max-width: 1200px) {
    .lp-usecase-grid.lp-usecase-grid-polished {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .lp-usecase-grid.lp-usecase-grid-polished {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* ===== Home hero spacing and point cards fix ===== */
.home-lp-c .lp-copy-c-refined .hero-text{
  margin-bottom: 36px;
}

.home-lp-c .hero-actions{
  gap: 18px;
  margin-bottom: 70px;
}

.home-lp-c .lp-mini-points,
.home-lp-c .lp-mini-points-polished,
.home-lp-c .lp-mini-points-horizontal{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.home-lp-c .lp-mini-point{
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(22,35,59,0.08);
  box-shadow: 0 14px 30px rgba(22,35,59,0.06);
  position: relative;
  overflow: hidden;
}

.home-lp-c .lp-mini-point::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #16233b 0%, #f7ca00 100%);
}

.home-lp-c .lp-mini-point strong{
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.home-lp-c .lp-mini-point span{
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 900px){
  .home-lp-c .hero-actions{
    margin-bottom: 34px;
  }

  .home-lp-c .lp-mini-points,
  .home-lp-c .lp-mini-points-polished,
  .home-lp-c .lp-mini-points-horizontal{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px){
  .home-lp-c .lp-copy-c-refined .hero-text{
    margin-bottom: 26px;
  }

  .home-lp-c .hero-actions{
    gap: 14px;
    margin-bottom: 28px;
  }

  .home-lp-c .lp-mini-points,
  .home-lp-c .lp-mini-points-polished,
  .home-lp-c .lp-mini-points-horizontal{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-lp-c .lp-mini-point{
    padding: 16px 16px;
  }
}


.home-lp-c .lp-mini-point{
  padding: 24px 20px;
}

@media (max-width: 640px){
  .home-lp-c .lp-mini-point{
    padding: 20px 16px;
  }
}
/* ===== Home hero top slider layout ===== */
.home-lp-c .lp-shell-c-refined,
.home-lp-c .lp-shell-c,
.home-lp-c .lp-shell{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(440px, 580px);
  column-gap:44px;
  row-gap:22px;
  align-items:start;
}

.home-lp-c .lp-copy-c-refined{
  min-width:0;
}

.home-lp-c .lp-copy-c-refined .hero-text{
  margin-bottom:34px;
}

.home-lp-c .hero-actions{
  gap:18px;
  margin-bottom:0;
}

.home-lp-c .lp-hero-visual-polished{
  min-width:0;
  justify-self:end;
  width:100%;
  max-width:520px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  margin-top:42px;
  padding-top:0;
}

.home-lp-c .hero-top-slider{
  position:relative;
  width:100%;
  max-width:560px;
  overflow:hidden;
  background:transparent;
  border:none;
  box-shadow:none;
  margin-top:auto;
  -webkit-mask-image: linear-gradient(
    90deg,
	rgba(0,0,0,0) 0%,
	rgba(0,0,0,0.12) 6%,
	rgba(0,0,0,0.30) 12%,
	rgba(0,0,0,0.58) 18%,
	rgba(0,0,0,0.88) 24%,
	rgba(0,0,0,1) 30%,
	rgba(0,0,0,1) 70%,
	rgba(0,0,0,0.88) 76%,
	rgba(0,0,0,0.58) 82%,
	rgba(0,0,0,0.30) 88%,
	rgba(0,0,0,0.12) 94%,
	rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    90deg,
	rgba(0,0,0,0) 0%,
	rgba(0,0,0,0.12) 6%,
	rgba(0,0,0,0.30) 12%,
	rgba(0,0,0,0.58) 18%,
	rgba(0,0,0,0.88) 24%,
	rgba(0,0,0,1) 30%,
	rgba(0,0,0,1) 70%,
	rgba(0,0,0,0.88) 76%,
	rgba(0,0,0,0.58) 82%,
	rgba(0,0,0,0.30) 88%,
	rgba(0,0,0,0.12) 94%,
	rgba(0,0,0,0) 100%
  );
}

.home-lp-c .hero-top-slider-track{
  display:flex;
  align-items:flex-end;
  gap:18px;
  width:max-content;
  animation:heroTopSliderScroll 30s linear infinite;
  will-change:transform;
}

.home-lp-c .hero-top-slide{
  flex:0 0 452px;
}

.home-lp-c .hero-top-slide img{
  display:block;
  width:100%;
  height:auto;
  border-radius:0;
  box-shadow:none;
}

.home-lp-c .lp-mini-points-horizontal{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
  margin-top:60px;
}

@keyframes heroTopSliderScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-470px * 6)); }
}

@media (max-width: 1180px){
  .home-lp-c .lp-shell-c-refined,
  .home-lp-c .lp-shell-c,
  .home-lp-c .lp-shell{
    grid-template-columns:minmax(0, 1fr) minmax(340px, 470px);
    column-gap:30px;
  }

  .home-lp-c .lp-hero-visual-polished,
  .home-lp-c .hero-top-slider{
    max-width:560px;
    margin-top:18px;
  }

  .home-lp-c .hero-top-slide{
    flex-basis:380px;
  }

  .home-lp-c .lp-mini-points-horizontal{
    gap:18px;
    margin-top:28px;
  }

  @keyframes heroTopSliderScroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-398px * 6)); }
  }
}

@media (max-width: 900px){
  .home-lp-c .lp-shell-c-refined,
  .home-lp-c .lp-shell-c,
  .home-lp-c .lp-shell{
    grid-template-columns:1fr;
    row-gap:24px;
  }

  .home-lp-c .lp-hero-visual-polished{
    justify-self:center;
    margin-top:0;
    padding-top:0;
    max-width:520px;
  }

  .home-lp-c .lp-mini-points-horizontal{
    grid-template-columns:1fr 1fr;
    margin-top:18px;
  }
}

@media (max-width: 640px){
  .home-lp-c .lp-copy-c-refined .hero-text{
    margin-bottom:26px;
  }

  .home-lp-c .hero-actions{
    gap:14px;
  }

  .home-lp-c .lp-hero-visual-polished,
  .home-lp-c .hero-top-slider{
    max-width:100%;
  }

  .home-lp-c .hero-top-slider-track{
    gap:11px;
  }

  .home-lp-c .hero-top-slide{
    flex-basis:240px;
  }

  .home-lp-c .lp-mini-points-horizontal{
    grid-template-columns:1fr;
    gap:14px;
    margin-top:12px;
  }

  @keyframes heroTopSliderScroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-251px * 6)); }
  }
}


/* Support / FAQ / Contact */
.support-page-wrap {
  display: grid;
  gap: 24px;
}

.support-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.support-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}


.product-page-head {
  align-items: end;
}

.product-head-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.footer-inline-form {
  margin: 0;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.footer-link-button:hover {
  color: var(--primary);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 28px;
}

.faq-item h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

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

.support-contact-form {
  grid-template-columns: 1fr 1fr;
}

.support-side-panel,
.upload-preview-summary {
  display: grid;
  gap: 14px;
}

.support-info-stack {
  display: grid;
  gap: 12px;
}

.support-info-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(22,35,59,0.08);
}

.support-info-box h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.support-info-box p {
  margin: 0;
  color: var(--muted);
}

.notice-success {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(60, 154, 88, 0.10);
  border: 1px solid rgba(60, 154, 88, 0.22);
  color: #1f6e3b;
  font-weight: 700;
}

.mypage-menu-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.upload-section-head {
  gap: 8px;
}

.upload-section-head p {
  margin: 0;
  color: var(--muted);
}

.preview-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.upload-preview-summary .upload-preview-frame {
  margin-top: 4px;
}

.upload-preview-summary {
  gap: 18px;
}

.upload-preview-summary h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}

.upload-preview-summary .upload-preview-frame {
  margin-top: 6px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245,247,250,0.9) 0%, rgba(236,239,245,0.9) 100%);
  border: 1px solid rgba(22,35,59,0.08);
}

.upload-preview-summary .template-preview-card,
.upload-preview-summary .original-preview-card {
  border-radius: 18px;
}

.upload-preview-frame-original {
  align-items: stretch;
}

.original-card-preview {
  background: linear-gradient(180deg, #f4f6fa 0%, #e9edf3 100%);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(22,35,59,0.10);
}

.original-preview-image {
  object-fit: contain;
  background: linear-gradient(180deg, #eef2f7 0%, #e7ebf2 100%);
}

.original-preview-placeholder {
  min-height: 240px;
  border-radius: 18px;
  padding: 24px;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(242,245,249,0.96) 100%);
}

.original-preview-placeholder strong {
  font-size: 1rem;
  color: var(--text);
}

.original-preview-placeholder span {
  font-weight: 500;
  line-height: 1.7;
  color: var(--muted);
}

.footer-links-wrap,
.footer-support {
  display: grid;
  gap: 10px;
}

@media (max-width: 1024px) {
  .support-page-head,
  .support-contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav a,
  .nav-logout-btn {
    width: 100%;
    justify-content: center;
  }

  .support-head-actions {
    justify-content: stretch;
  }

  .support-head-actions .btn {
    width: 100%;
  }

  .footer-inline-form {
    width: 100%;
  }

  .footer-link-button {
    width: 100%;
    text-align: left;
  }

  .faq-item {
    padding: 22px 18px;
  }

  .upload-preview-summary {
    gap: 12px;
  }
}


.confirm-actions-wrap {
  width: 100%;
  display: block;
  margin-top: 32px;
}

.confirm-actions-centered {
  display: flex !important;
  width: 100%;
  justify-content: center !important;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  text-align: center;
}

.confirm-actions-centered .inline-form {
  display: inline-flex !important;
  flex: 0 0 auto;
}

.faq-page-wrap {
  gap: 24px;
}

.faq-list-clean {
  display: grid;
  gap: 16px;
}

.faq-item-clean {
  padding: 26px 28px;
}

.faq-item-clean h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.4;
}

.faq-item-clean p {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
}


@media (max-width: 768px) {
  .confirm-actions-centered {
    flex-direction: column;
  }

  .confirm-actions-centered .inline-form,
  .confirm-actions-centered .btn {
    width: 100%;
  }

  .faq-item-clean {
    padding: 20px 18px;
  }

  .faq-item-clean h2 {
    font-size: 1.15rem;
  }
}

/* Orders page refresh */
.orders-page-shell {
  display: grid;
  gap: 28px;
}

.orders-page-head {
  align-items: end;
}

.orders-page-head-plain {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.orders-head-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.orders-content-panel {
  padding: 28px;
}

.orders-table-wrap {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.orders-table thead th {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(22,35,59,0.12);
  background: rgba(22,35,59,0.04);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.orders-table tbody td {
  padding: 16px;
  border-bottom: 1px solid rgba(22,35,59,0.08);
  vertical-align: top;
  line-height: 1.7;
}

.orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.orders-table a {
  color: var(--primary);
  word-break: break-all;
}

.orders-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22,35,59,0.08);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.orders-empty {
  min-height: 190px;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.orders-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .orders-page-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .orders-content-panel {
    padding: 18px;
  }

  .orders-head-actions {
    width: 100%;
    justify-content: stretch;
  }

  .orders-head-actions .btn {
    width: 100%;
  }
}


/* Orders history card layout */
.orders-card-list {
  display: grid;
  gap: 16px;
}

.orders-history-card {
  background: #fff;
  border: 1px solid rgba(22,35,59,0.10);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(22,35,59,0.06);
}

.orders-history-head,
.orders-history-payment {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(22,35,59,0.10);
}

.orders-history-payment {
  grid-template-columns: 1fr 1fr;
}

.orders-history-topcell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.orders-history-topcell-center {
  align-items: center;
  text-align: center;
}

.orders-history-topcell-right {
  align-items: flex-end;
  text-align: right;
}

.orders-history-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.orders-history-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.5;
}

.orders-history-topcell-order {
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

.orders-history-order-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.orders-history-order-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.orders-history-order-meta-between {
  justify-content: space-between;
}

.btn-receipt-inline {
  min-height: 30px;
  padding: 5px 12px;
  font-size: 0.82rem;
  margin-left: auto;
}

.orders-history-receipt-note {
  margin-left: auto;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: right;
}

.orders-history-detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(22,35,59,0.10);
}

.orders-history-detail-row-last {
  border-bottom: 0;
}

.orders-history-detail-label {
  font-weight: 800;
  color: var(--primary);
}

.orders-history-detail-value {
  min-width: 0;
  color: var(--primary);
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.orders-history-detail-list {
  display: grid;
  gap: 8px;
}

.orders-history-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
}

.orders-history-line-index {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.orders-history-detail-value a {
  color: var(--primary);
  word-break: break-all;
}

@media (max-width: 760px) {
  .orders-history-head,
  .orders-history-payment {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .orders-history-topcell-center,
  .orders-history-topcell-right {
    align-items: flex-start;
    text-align: left;
  }

  .orders-history-order-meta {
    justify-content: flex-start;
  }

  .orders-history-order-meta-between {
    justify-content: flex-start;
  }

  .btn-receipt-inline {
    margin-left: 0;
  }

  .orders-history-receipt-note {
    margin-left: 0;
    text-align: left;
  }

  .orders-history-detail-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .orders-history-line {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.upload-preview-simple-side {
  gap: 18px;
}

.upload-preview-summary,
.upload-back-panel {
  padding: 26px;
}

.upload-back-panel {
  border-radius: 22px;
}

.upload-back-link {
  min-height: 56px;
  border-radius: 16px;
}

.compact-upload-target {
  align-items: center;
}

.compact-upload-target h3 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  line-height: 1.3;
}

.compact-upload-target .cart-sub-desc {
  margin: 0 0 14px;
}


/* Admin */
.admin-auth-wrap{max-width:560px;margin:0 auto;}
.admin-auth-card{background:#fff;border:1px solid #dde5ef;border-radius:24px;padding:32px;box-shadow:0 20px 50px rgba(22,35,59,.08);}
.notice-error{color:#b42318;font-size:14px;margin:10px 0 0;}
.admin-page-shell{display:grid;gap:24px;}
.admin-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.admin-kpi-card{background:#fff;border:1px solid #dde5ef;border-radius:20px;padding:20px;display:grid;gap:8px;}
.admin-kpi-card span{font-size:13px;color:#5f6b7a;}
.admin-kpi-card strong{font-size:28px;color:#16233b;}
.admin-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;}
.admin-order-list{display:grid;gap:12px;}
.admin-order-row-link{text-decoration:none;color:inherit;}
.admin-order-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:16px;align-items:center;padding:18px;border:1px solid #e3eaf2;border-radius:18px;background:#fff;}
.admin-order-row-detailed{grid-template-columns:minmax(180px,1.5fr) repeat(4,minmax(120px,1fr));}
.admin-order-row p{margin:6px 0 0;color:#5f6b7a;font-size:14px;}
.admin-order-main{display:grid;gap:6px;}
.admin-order-main strong{font-size:1.05rem;color:#16233b;}
.admin-order-meta{display:grid;gap:6px;justify-items:start;}
.admin-order-meta-label{font-size:12px;color:#6a7788;font-weight:700;}
.admin-order-amount strong{font-size:1.15rem;color:#16233b;}
.admin-detail-grid{display:grid;grid-template-columns:minmax(320px,380px) minmax(0,1fr);gap:24px;align-items:start;}
.admin-info-list{display:grid;gap:14px;margin:18px 0 0;}
.admin-info-list div{display:grid;gap:4px;border-bottom:1px solid #edf2f7;padding-bottom:12px;}
.admin-info-list dt{font-size:13px;color:#5f6b7a;}
.admin-info-list dd{margin:0;color:#16233b;font-weight:600;word-break:break-word;}
.admin-status-form{margin-top:18px;display:grid;gap:10px;}
.admin-status-inline{display:flex;gap:12px;align-items:center;}
.admin-status-inline select{flex:1;border:1px solid #cfd8e3;border-radius:12px;padding:12px 14px;background:#fff;}
.admin-item-block{border:1px solid #e3eaf2;border-radius:18px;padding:18px;margin-top:16px;background:#fff;}
.admin-item-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding-bottom:12px;border-bottom:1px solid #edf2f7;}
.admin-item-body{display:grid;gap:12px;padding-top:14px;}
.admin-item-body p{display:grid;gap:6px;margin:0;color:#5f6b7a;}
.admin-item-body p span{font-size:13px;color:#5f6b7a;}
.admin-item-body p a,.admin-item-body p strong{color:#16233b;word-break:break-all;}
.admin-download-actions{display:flex;flex-wrap:wrap;gap:10px;}
.receipt-actions{padding-top:18px;justify-content:flex-end;}
@media (max-width: 960px){.admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.admin-detail-grid{grid-template-columns:1fr;}.admin-order-row,.admin-order-row-detailed{grid-template-columns:repeat(2,minmax(0,1fr));}.admin-orders-panel{padding:22px;}}
@media (max-width: 640px){.admin-kpi-grid,.admin-order-row,.admin-order-row-detailed{grid-template-columns:1fr;}.admin-auth-card{padding:24px;}.admin-item-head{flex-direction:column;align-items:flex-start;}.admin-filter-bar,.admin-filter-actions{align-items:stretch;}.btn-admin-compact{width:100%;}.admin-filter-item{width:100%;}}

.admin-filter-bar{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:18px;}
.admin-filter-item{display:grid;gap:8px;min-width:220px;}
.admin-filter-item span{font-size:13px;font-weight:700;color:#5f6b7a;}
.admin-filter-item input{min-height:46px;border:1px solid #cfd8e3;border-radius:12px;padding:0 14px;background:#fff;color:#16233b;}
.admin-filter-actions{display:flex;gap:10px;flex-wrap:wrap;}
.btn-admin-compact{min-height:42px;padding-inline:18px;}
.admin-orders-panel{padding:28px;}
.admin-panel-head{display:grid;gap:6px;margin-bottom:18px;}
.admin-panel-head h2{margin:0;}
.admin-panel-head p{margin:0;color:#5f6b7a;font-size:14px;line-height:1.7;}
.admin-info-panel-refined,.admin-download-panel-refined{padding:28px;}
.admin-status-inline{align-items:stretch;}
.admin-status-inline select{min-height:52px;}
.admin-item-block{padding:20px;border-radius:20px;}
.admin-download-actions .btn{min-height:42px;padding-inline:16px;}


.orders-status-badge.status-gray {
  background: #eef1f5;
  color: #4f6077;
}

.orders-status-badge.status-yellow {
  background: #fff4cc;
  color: #9a6b00;
}

.orders-status-badge.status-green {
  background: #dcf5e5;
  color: #1c6b3b;
}

.orders-status-badge.status-red {
  background: #fde4e4;
  color: #a53a3a;
}


.btn-copy-url {
  cursor: pointer;
}

.admin-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-order-row-detailed {
  align-items: center;
}

.admin-info-panel-refined,
.admin-download-panel-refined {
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(22, 35, 59, 0.06);
}

.admin-panel-head h2 {
  margin: 0 0 8px;
}

.admin-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.orders-history-row-value {
  overflow-wrap: anywhere;
  word-break: break-word;
}


.lp-template-download-section {
  padding-top: 72px;
  padding-bottom: 0;
}

.lp-template-download-panel {
  margin-top: 72px;
  padding: 0;
  background: linear-gradient(180deg, #dfe7f3 0%, #dbe5f2 100%);
  border: 1px solid rgba(22,35,59,0.08);
  border-radius: 34px;
  box-shadow: 0 16px 40px rgba(22,35,59,0.05);
  overflow: hidden;
}

.lp-template-download-panel h2 {
  margin: 0;
  padding: 24px 38px 10px;
  font-size: clamp(1.72rem, 3.05vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #16233b;
}

.lp-template-download-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 10px 38px 18px;
  border-top: 1px solid rgba(22,35,59,0.10);
}

.lp-template-download-bottom p {
  margin: 0;
  max-width: 640px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #5f6b7a;
}

.lp-template-download-button {
  min-width: 278px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 1.02rem;
}

.detail-template-section,
.upload-template-panel {
  margin-top: 26px;
  display: grid;
  gap: 16px;
  padding: 28px 30px 30px;
}

.detail-template-section {
  padding: 30px 34px 32px;
}

.upload-template-panel {
  padding: 26px 28px 28px;
}

.detail-template-head h2,
.upload-template-head h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.28;
}

.detail-template-head p,
.upload-template-head p,
.template-download-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

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

.template-download-grid-compact {
  gap: 12px;
}

.template-download-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(22,35,59,0.14);
  text-decoration: none;
  color: #16233b;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.template-download-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(22,35,59,0.08);
  border-color: rgba(22,35,59,0.22);
}

.template-app-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 0;
  color: #16233b;
}

.app-ai { background: #ff8d2f; color: #111; }
.app-word { background: #3b82f6; color: #fff; }
.app-powerpoint { background: #f59e0b; color: #111; }
.app-canva { background: #33b9d4; color: #fff; }

.template-download-label {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.28;
}

.upload-caution-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(245, 166, 35, 0.10);
  border: 1px solid rgba(245, 166, 35, 0.20);
  color: #7a4d00;
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .lp-template-download-panel {
    margin-top: 56px;
  }

  .lp-template-download-panel h2 {
    padding: 22px 22px 10px;
    font-size: clamp(1.58rem, 5.3vw, 2.25rem);
  }

  .lp-template-download-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 10px 22px 18px;
  }

  .lp-template-download-button {
    min-width: 0;
    width: 100%;
    min-height: 50px;
    font-size: 0.96rem;
  }

  .detail-template-section,
  .upload-template-panel {
    padding: 22px 20px 22px;
  }
}

@media (max-width: 760px) {
  .lp-template-download-section {
    padding-top: 54px;
    padding-bottom: 0;
  }

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

  .template-download-card {
    min-height: 70px;
    padding: 12px 14px;
  }

  .template-app-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .detail-template-head h2,
  .upload-template-head h3 {
    font-size: 1.2rem;
  }
}


.warranty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 18px 22px 18px;
  border-top: 1px solid var(--line-soft);
}

.warranty-grid .orders-history-topcell {
  padding: 0;
}

.warranty-history-card .orders-history-detail-row {
  margin-top: 18px;
}

@media (max-width: 767px) {
  .warranty-grid {
    grid-template-columns: 1fr;
  }
}


body.is-loading {
  overflow: hidden;
}

.global-loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(22, 35, 59, 0.38);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 9999;
}

.global-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.global-loading-popup {
  width: min(420px, calc(100% - 32px));
  padding: 28px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(22, 35, 59, 0.24);
  border: 1px solid rgba(22, 35, 59, 0.08);
  text-align: center;
}

.global-loading-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 999px;
  border: 4px solid rgba(22, 35, 59, 0.12);
  border-top-color: #16233b;
  animation: globalLoadingSpin 0.9s linear infinite;
}

.global-loading-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.global-loading-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

@keyframes globalLoadingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


body.is-action-popup-open {
  overflow: hidden;
}

.global-action-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(22, 35, 59, 0.42);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 10001;
}

.global-action-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.global-action-popup {
  width: min(460px, calc(100% - 32px));
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(22, 35, 59, 0.24);
  border: 1px solid rgba(22, 35, 59, 0.08);
  text-align: center;
}

.global-action-popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #16233b;
  background: rgba(22, 35, 59, 0.08);
}

.global-action-popup.is-success .global-action-popup-icon {
  color: #0f7a3a;
  background: rgba(15, 122, 58, 0.12);
}

.global-action-popup.is-alert .global-action-popup-icon {
  color: #0f4ea6;
  background: rgba(15, 78, 166, 0.12);
}

.global-action-popup-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.global-action-popup-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.global-action-popup-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.global-action-popup-actions .btn {
  min-width: 140px;
}

.admin-history-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.admin-history-filter-item {
  display: grid;
  gap: 8px;
}

.admin-history-filter-item span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.admin-history-filter-item input,
.admin-history-filter-item select {
  width: 100%;
}

.admin-history-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-history-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-history-summary-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f5f8fc;
  border: 1px solid #d6deeb;
  font-size: 0.9rem;
  font-weight: 700;
  color: #16233b;
}

.mail-history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

.mail-history-table th,
.mail-history-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}

.mail-history-table thead th {
  border-bottom: 1px solid #d6deeb;
}

.mail-history-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mail-history-status.status-success {
  background: rgba(15, 122, 58, 0.12);
  color: #0f7a3a;
}

.mail-history-status.status-file {
  background: rgba(15, 78, 166, 0.12);
  color: #0f4ea6;
}

.mail-history-status.status-failed {
  background: rgba(176, 35, 35, 0.12);
  color: #b02323;
}

.mail-history-recipient {
  line-height: 1.7;
}

.mail-history-meta-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .admin-history-filter-bar {
    grid-template-columns: 1fr;
  }
}
