/* ITHUN portal — clean minimal theme */
:root {
  --ithun-accent: #0f766e;
  --ithun-accent-hover: #0d9488;
  --ithun-accent-soft: #f0fdfa;
  --ithun-text: #0f172a;
  --ithun-muted: #64748b;
  --ithun-border: #e2e8f0;
  --ithun-bg: #f8fafc;
  --ithun-surface: #ffffff;
  --ithun-radius: 12px;

  --green: var(--ithun-accent);
  --green-dark: var(--ithun-accent-hover);
  --green-light: var(--ithun-accent-soft);
  --green-bg: var(--ithun-accent-soft);
  --text: var(--ithun-text);
  --muted: var(--ithun-muted);
  --border: var(--ithun-border);
  --card: var(--ithun-surface);
  --bg: var(--ithun-bg);
  --ithun-accent-dark: var(--ithun-accent-hover);
  --ithun-accent-glow: rgba(15, 118, 110, 0.2);
}

body {
  background: var(--ithun-bg);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ithun-text);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  overflow: visible;
}

#mainNav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.btn-outline {
  background: var(--ithun-surface);
  border: 1px solid var(--ithun-border);
  color: var(--ithun-text);
}

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

a:focus-visible {
  outline: 2px solid var(--ithun-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.header,
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ithun-surface);
  border-bottom: 1px solid var(--ithun-border);
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ithun-text) !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-mark {
  height: 2.25rem;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.btn-green {
  background: var(--ithun-accent);
  color: #fff;
}
.btn-green:hover { background: var(--ithun-accent-hover); }
.btn-accent {
  background: var(--ithun-accent);
  color: #fff;
  border: none;
  cursor: pointer;
}
.btn-accent:hover { background: var(--ithun-accent-hover); }
.btn-accent:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-outline:hover {
  border-color: var(--ithun-accent);
  color: var(--ithun-accent);
}

.user-chip {
  color: var(--ithun-accent);
  background: var(--ithun-accent-soft);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}
.user-chip-btn {
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.user-chip-btn:hover {
  background: var(--ithun-accent);
  color: #fff;
}

.profile-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ithun-border);
}
.profile-section h3 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.profile-payment-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 420px;
  overflow-y: auto;
}
.profile-payment-item {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--ithun-border);
  border-radius: 8px;
  background: var(--ithun-bg);
}
.profile-payment-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.profile-payment-item-head strong {
  font-size: 0.88rem;
  color: var(--ithun-text);
}
.profile-payment-item-head span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ithun-accent);
  white-space: nowrap;
}
.profile-payment-meta {
  font-size: 0.75rem;
  color: var(--ithun-muted);
}
.profile-payment-order-id strong {
  color: var(--ithun-text);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.profile-guest-order-notice {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #115e59;
  font-size: 0.84rem;
  line-height: 1.55;
}
.profile-guest-order-notice p { margin: 0; }
.profile-guest-order-notice a {
  color: #0f766e;
  font-weight: 700;
}
.profile-payment-meta a {
  color: var(--ithun-accent);
  font-weight: 600;
}
.profile-payment-actions {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.profile-payment-product {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--ithun-border);
}
.profile-payment-product:first-of-type {
  margin-top: 0.5rem;
}
.profile-payment-product-name {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.profile-payment-license,
.profile-payment-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #99f6e4;
  background: var(--ithun-accent-soft);
  color: var(--ithun-accent);
  cursor: pointer;
  font-family: inherit;
}
.profile-payment-license--done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}
.profile-payment-license--pending {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}
.profile-payment-license-code {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.profile-payment-download {
  border-color: var(--ithun-border);
  background: #fff;
  text-decoration: none;
}
.profile-payment-download--disabled {
  border-color: var(--ithun-border);
  background: #f8fafc;
  color: var(--ithun-muted);
  cursor: not-allowed;
  opacity: 0.85;
}
.profile-payment-license-done,
.profile-payment-download-disabled {
  font-size: 0.75rem;
  color: var(--ithun-muted);
  font-weight: 600;
}
.profile-license-modal .license-code {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--ithun-bg);
  border: 1px dashed var(--ithun-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}
.profile-license-notice {
  font-size: 0.82rem;
  color: #dc2626;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.profile-license-preview {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(15, 118, 110, 0.35);
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
  margin-bottom: 0.85rem;
}
.profile-license-preview-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--ithun-accent);
  background: rgba(15, 118, 110, 0.12);
}
.profile-license-preview h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 900;
}
.profile-license-preview p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ithun-text);
}
.profile-license-preview-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 0.82rem;
  color: var(--ithun-muted);
  line-height: 1.55;
}
.profile-license-preview-list li {
  padding: 0.35rem 0 0.35rem 1.15rem;
  position: relative;
}
.profile-license-preview-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ithun-accent);
  font-weight: 900;
}
.profile-license-certificate {
  margin-bottom: 0.85rem;
}
.profile-license-certificate-head {
  text-align: center;
  margin-bottom: 0.85rem;
}
.profile-license-certificate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ithun-accent);
  background: var(--ithun-accent-soft);
  border: 1px solid #99f6e4;
}
.profile-license-certificate-head h3 {
  margin: 0.55rem 0 0.15rem;
  font-size: 1.15rem;
  font-weight: 900;
}
.profile-license-certificate-date {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ithun-muted);
}
.profile-license-certificate-code-wrap {
  padding: 1rem;
  border-radius: 14px;
  border: 2px solid rgba(15, 118, 110, 0.22);
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
  margin-bottom: 0.85rem;
}
.profile-license-certificate-code-label {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ithun-accent);
  margin-bottom: 0.45rem;
}
.profile-license-certificate-code-wrap .license-code {
  margin: 0;
  border: none;
  background: transparent;
  font-size: 1.05rem;
}
.profile-payment-cancel {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  cursor: pointer;
}
.profile-payment-cancel:hover {
  background: #fee2e2;
}
.profile-payment-cancel:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.profile-payment-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ithun-muted);
}
.profile-payment-status.is-cancelled {
  color: #dc2626;
}
.profile-payment-empty {
  font-size: 0.85rem;
  color: var(--ithun-muted);
}
.modal-profile {
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
}
.profile-license-modal .modal-profile {
  max-width: min(680px, 96vw);
}
#licenseModalActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.profile-download-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
.profile-license-expired-note {
  margin: 0.5rem 0 0;
  color: #b45309;
  font-size: 0.92rem;
  font-weight: 600;
}
.profile-download-consent p {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}
.profile-download-consent-note {
  color: var(--muted, #64748b);
  font-size: 0.92rem;
}
.profile-license-confirm-btn {
  width: 100%;
}
.profile-license-apps-script-note {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ithun-text);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, 0.2);
  margin-bottom: 0.85rem;
}
.landing-cta.store-copy {
  background: #0d9488;
}
.landing-cta.store-copy:hover {
  background: #0f766e;
}
.profile-license-pdf-btn {
  width: 100%;
}
@media (min-width: 480px) {
  .profile-license-pdf-btn {
    width: auto;
    min-width: 10rem;
  }
}
.profile-license-preamble {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ithun-text);
  margin-bottom: 1rem;
}
.profile-license-document {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ithun-border);
  border-radius: 12px;
  background: var(--ithun-bg);
  margin-bottom: 0.85rem;
}
.profile-license-section + .profile-license-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ithun-border);
}
.profile-license-section h3 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
  color: var(--ithun-text);
}
.profile-license-section p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ithun-muted);
  margin-bottom: 0.45rem;
}
.profile-license-section ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}
.profile-license-section li {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ithun-muted);
  margin-bottom: 0.35rem;
}
.profile-license-contact {
  font-size: 0.82rem;
  color: var(--ithun-muted);
  margin-top: 0.5rem;
}
.profile-license-contact a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.profile-license-hint,
.profile-license-done {
  font-size: 0.82rem;
  color: var(--ithun-muted);
  line-height: 1.55;
  margin-top: 0.25rem;
}
.profile-license-done {
  color: #15803d;
  font-weight: 600;
}
.profile-summary {
  font-size: 0.85rem;
  color: var(--ithun-muted);
  margin-bottom: 0.25rem;
}
.profile-danger {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
}
.profile-danger h2,
.profile-danger h3 {
  color: #b91c1c;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.profile-account-desc {
  font-size: 0.85rem;
  color: var(--ithun-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.profile-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.profile-account-logout {
  border: 1px solid var(--ithun-border);
  background: #fff;
  color: var(--ithun-text);
  cursor: pointer;
}
.profile-withdraw-notes {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: #991b1b;
  line-height: 1.55;
}
.profile-withdraw-notes li + li {
  margin-top: 0.25rem;
}
.profile-withdraw-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #7f1d1d;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  cursor: pointer;
}
.profile-withdraw-agree input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.profile-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.profile-danger p {
  font-size: 0.78rem;
  color: #991b1b;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}
.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
}
.btn-danger:hover {
  background: #b91c1c;
}
.form-msg.ok { color: var(--ithun-accent); }

.auth-page,
.profile-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.auth-page--login {
  max-width: 560px;
}
.auth-card,
.profile-card {
  background: var(--ithun-surface);
  border: 1px solid var(--ithun-border);
  border-radius: var(--ithun-radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
.auth-card--login {
  padding-top: 0;
}
.auth-mode-tabs {
  display: flex;
  border-bottom: 1px solid var(--ithun-border);
  margin: 0 -1.75rem 1.75rem;
}
.auth-mode-tabs button {
  flex: 1;
  padding: 1rem 0.75rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.auth-mode-tabs button.active {
  color: var(--ithun-accent);
  border-bottom-color: var(--ithun-accent);
}
.auth-panel-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.auth-panel-logo img {
  display: block;
  width: 36px;
  height: auto;
}
.auth-panel-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.auth-panel-logo + .auth-panel-title {
  text-align: center;
}
.auth-form-note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--ithun-muted);
  line-height: 1.5;
}
.auth-member-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}
.auth-member-links-sep {
  color: var(--ithun-muted);
  user-select: none;
}
.auth-member-signup {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ithun-border);
  text-align: center;
}
.auth-member-signup-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.auth-member-signup-icon img {
  display: block;
  width: 36px;
  height: auto;
}
.auth-member-signup-lead {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.auth-member-signup-copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ithun-muted);
  line-height: 1.5;
}
.auth-link-btn--accent {
  color: var(--ithun-accent);
  font-weight: 800;
}
.auth-guest-order-intro {
  margin-bottom: 1.5rem;
}
.auth-guest-order-title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.auth-guest-order-lead {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}
.auth-guest-order-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ithun-muted);
  line-height: 1.55;
}
.auth-guest-order-submit {
  background: #f3f4f6;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
}
.auth-guest-order-submit:not(:disabled) {
  background: var(--ithun-accent);
  color: #fff;
  border-color: var(--ithun-accent);
}
.auth-guest-order-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ithun-border);
  text-align: center;
}
.auth-guest-order-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ithun-muted);
  line-height: 1.5;
}
.auth-card h1,
.profile-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.auth-lead {
  font-size: 0.9rem;
  color: var(--ithun-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.auth-tabs button {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ithun-border);
  background: var(--ithun-bg);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--ithun-muted);
}
.auth-tabs button.active {
  background: var(--ithun-accent-soft);
  border-color: var(--ithun-accent);
  color: var(--ithun-accent);
}
.auth-submit,
.profile-submit {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
}
.auth-back {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}
.auth-back a {
  color: var(--ithun-muted);
  font-weight: 600;
}
.auth-back a:hover {
  color: var(--ithun-accent);
}
.auth-forgot-link {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.85rem;
}
.auth-guest-checkout {
  margin-top: 1.25rem;
}
.auth-guest-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--ithun-muted);
  font-size: 0.82rem;
}
.auth-guest-divider::before,
.auth-guest-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ithun-border);
}
.auth-guest-lead {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--ithun-muted);
  line-height: 1.5;
  text-align: center;
}
.auth-guest-btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
}
.auth-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ithun-muted);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-link-btn:hover {
  color: var(--ithun-accent);
}
.profile-page .profile-section-first {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}
.profile-page .profile-section h2 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.profile-page .profile-payment-list {
  max-height: none;
}

/* ── 마이페이지 프리미엄 ── */
.profile-page--premium {
  max-width: 920px;
  padding: 1.5rem 1.25rem 4rem;
}
.profile-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.25rem;
  color: #fff;
  box-shadow:
    0 20px 50px rgba(15, 118, 110, 0.22),
    0 4px 16px rgba(15, 23, 42, 0.08);
}
.profile-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #042f2e 0%, #0f766e 38%, #14b8a6 72%, #5eead4 100%);
  z-index: 0;
}
.profile-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
.profile-hero-glow--a {
  width: 220px;
  height: 220px;
  background: #99f6e4;
  top: -80px;
  right: -40px;
}
.profile-hero-glow--b {
  width: 180px;
  height: 180px;
  background: #2dd4bf;
  bottom: -60px;
  left: 10%;
}
.profile-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f766e;
  background: linear-gradient(145deg, #fff 0%, #ecfdf5 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.profile-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.profile-hero-copy h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.profile-hero-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.88;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.profile-page--premium .profile-summary {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}
.profile-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.profile-badge--admin {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(253, 224, 71, 0.45);
  color: #fef9c3;
}
.profile-badge--manager {
  background: rgba(45, 212, 191, 0.2);
  border-color: rgba(94, 234, 212, 0.42);
  color: #ccfbf1;
}
.profile-badge--guest {
  background: rgba(125, 211, 252, 0.18);
  border-color: rgba(125, 211, 252, 0.42);
  color: #e0f2fe;
}
.profile-quick-links {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.profile-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 72px;
  padding: 0.65rem 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  backdrop-filter: blur(8px);
}
.profile-quick-link i {
  font-size: 1.1rem;
  opacity: 0.95;
}
.profile-quick-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.profile-card--main {
  border-radius: 20px;
  padding: 1.35rem 1.35rem 1.75rem;
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.profile-page--premium .profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  padding: 0.35rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
}
.profile-page--premium .profile-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 64px;
  margin: 0;
  padding: 0.55rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 11px;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ithun-muted);
  transition: all 0.18s ease;
}
.profile-page--premium .profile-tabs button i {
  font-size: 1rem;
}
.profile-page--premium .profile-tabs button span {
  font-size: 0.78rem;
}
.profile-page--premium .profile-tabs button:hover {
  color: var(--ithun-accent);
  background: rgba(255, 255, 255, 0.75);
}
.profile-page--premium .profile-tabs button.active {
  color: var(--ithun-accent);
  background: #fff;
  border-color: rgba(15, 118, 110, 0.18);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.12);
}
.profile-panel {
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--ithun-border);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.profile-page--premium .profile-section {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}
.profile-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.profile-panel-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.profile-panel-lead {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ithun-muted);
  line-height: 1.5;
}
.profile-panel-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--ithun-accent);
  background: linear-gradient(145deg, #ecfdf5, #ccfbf1);
  border: 1px solid #99f6e4;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.12);
}
.profile-panel-icon--lock { color: #0369a1; background: linear-gradient(145deg, #eff6ff, #dbeafe); border-color: #93c5fd; }
.profile-panel-icon--account { color: #475569; background: linear-gradient(145deg, #f8fafc, #f1f5f9); border-color: #cbd5e1; }
.profile-panel-icon--orders { color: #7c3aed; background: linear-gradient(145deg, #f5f3ff, #ede9fe); border-color: #c4b5fd; }
.profile-panel-icon--danger { color: #dc2626; background: linear-gradient(145deg, #fef2f2, #fee2e2); border-color: #fecaca; }
.profile-form-grid .profile-submit {
  margin-top: 0.25rem;
}
.profile-page--premium .profile-payment-list {
  gap: 0.85rem;
}
.profile-page--premium .profile-payment-item {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: linear-gradient(135deg, #fff 0%, #f0fdfa 120%);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.profile-page--premium .profile-payment-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f766e, #2dd4bf, #5eead4);
}
.profile-page--premium .profile-payment-item.is-cancelled::before {
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}
.profile-payment-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.profile-payment-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--ithun-accent);
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.15);
}
.profile-payment-item-title-wrap {
  flex: 1;
  min-width: 0;
}
.profile-payment-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.profile-payment-status-pill.is-paid {
  color: #047857;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
}
.profile-payment-status-pill.is-cancelled {
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}
.profile-page--premium .profile-payment-item-head strong {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.profile-page--premium .profile-payment-item-head span {
  font-size: 1rem;
  font-weight: 900;
  color: #0f766e;
}
.profile-page--premium .profile-payment-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2.5rem 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(15, 118, 110, 0.25);
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
  color: var(--ithun-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}
.profile-payment-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--ithun-accent);
  background: rgba(15, 118, 110, 0.1);
}
.profile-page--premium .profile-danger {
  background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
  border-color: #fecaca;
}
@media (max-width: 640px) {
  .profile-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-quick-links {
    grid-template-columns: 1fr;
  }
  .profile-page--premium .profile-tabs {
    grid-template-columns: 1fr;
  }
  .profile-page--premium .profile-tabs button {
    flex-direction: row;
    min-height: auto;
    padding: 0.75rem 1rem;
  }
}

/* ── 마이페이지 (사이드바 + 주문내역) ── */
.profile-page--mypage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}
.profile-mypage-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.profile-main {
  min-width: 0;
}
.profile-sidebar {
  position: sticky;
  top: calc(var(--ithun-header-offset, 60px) + 1rem);
}
.profile-sidebar-title {
  margin: 0 0 1.25rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.profile-sidebar-user {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ithun-border);
}
.profile-sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ithun-accent);
  background: var(--ithun-accent-soft);
  flex-shrink: 0;
}
.profile-sidebar-user-copy strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.profile-sidebar-user-copy p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ithun-muted);
}
.profile-sidebar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.profile-sidebar-badges .profile-badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
}
.profile-sidebar-group + .profile-sidebar-group {
  margin-top: 1.35rem;
}
.profile-sidebar-group-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ithun-text);
}
.profile-sidebar-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ithun-muted);
  cursor: pointer;
}
.profile-sidebar-link:hover,
.profile-sidebar-link.active {
  color: var(--ithun-text);
  font-weight: 700;
}
.profile-sidebar-link--external.active {
  font-weight: inherit;
  color: var(--ithun-muted);
}
.profile-sidebar-link--admin {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.profile-sidebar-link--admin i {
  width: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ithun-muted);
  flex-shrink: 0;
}
.profile-sidebar-link--admin:hover i,
.profile-sidebar-link--admin:focus-visible i {
  color: var(--ithun-accent);
}
.profile-sidebar-admin-nav {
  display: grid;
  gap: 0.15rem;
}
.profile-main-head {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ithun-border);
}
.profile-main-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.profile-tab-panel[hidden] { display: none !important; }
.profile-page--mypage .profile-panel {
  background: var(--ithun-surface);
  border: 1px solid var(--ithun-border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
}
.profile-page--mypage .profile-panel-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
}
.profile-order-toolbar {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.profile-order-admin-tools {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.profile-order-admin-tools[hidden] {
  display: none !important;
}
.profile-order-admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.profile-order-buyer-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.profile-order-buyer-type {
  min-width: 3.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--ithun-border);
  border-radius: 6px;
  background: var(--ithun-surface);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ithun-muted);
  cursor: pointer;
}
.profile-order-buyer-type:hover {
  border-color: var(--ithun-accent);
  color: var(--ithun-accent);
}
.profile-order-buyer-type.active {
  border-color: var(--ithun-accent);
  color: var(--ithun-accent);
  box-shadow: inset 0 0 0 1px var(--ithun-accent);
}
.profile-order-sort {
  min-width: 8.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--ithun-border);
  border-radius: 6px;
  background: var(--ithun-surface);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ithun-text);
  cursor: pointer;
}
.profile-order-sort:focus {
  outline: none;
  border-color: var(--ithun-accent);
  box-shadow: 0 0 0 3px var(--ithun-accent-glow);
}
.profile-order-search {
  display: grid;
  gap: 0.55rem;
}
@media (min-width: 640px) {
  .profile-order-search {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
.profile-order-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--ithun-border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  background: #fff;
  color: var(--ithun-text);
}
.profile-order-search-input:focus {
  outline: none;
  border-color: var(--ithun-accent);
  box-shadow: 0 0 0 3px var(--ithun-accent-glow);
}
.profile-order-search-btn {
  width: 100%;
  padding: 0.62rem 1rem;
  font-size: 0.88rem;
}
@media (min-width: 640px) {
  .profile-order-search-btn {
    width: auto;
    min-width: 5.5rem;
  }
}
.profile-order-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.profile-order-period {
  min-width: 3.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--ithun-border);
  border-radius: 6px;
  background: var(--ithun-surface);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ithun-muted);
  cursor: pointer;
}
.profile-order-period:hover {
  border-color: var(--ithun-accent);
  color: var(--ithun-accent);
}
.profile-order-period.active {
  border-color: var(--ithun-accent);
  color: var(--ithun-accent);
  box-shadow: inset 0 0 0 1px var(--ithun-accent);
}
.profile-order-meta {
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: var(--ithun-muted);
}
.profile-order-meta:empty {
  display: none;
}
.profile-order-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.profile-order-more {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.profile-order-more:empty {
  display: none;
}
.profile-order-more-btn {
  min-width: 16rem;
}
.profile-order-more-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}
.profile-order-card {
  background: var(--ithun-surface);
  border: 1px solid var(--ithun-border);
  border-radius: 0;
  overflow: hidden;
  min-width: 0;
}
.profile-order-card + .profile-order-card {
  border-top: none;
}
.profile-order-card:first-child {
  border-radius: 10px 10px 0 0;
}
.profile-order-card:last-child {
  border-radius: 0 0 10px 10px;
}
.profile-order-card:only-child {
  border-radius: 10px;
}
.profile-order-card.is-cancelled {
  opacity: 0.88;
}
.profile-order-card-total {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ithun-text);
}
.profile-order-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1.1rem;
  background: #fafafa;
  border-bottom: 1px solid var(--ithun-border);
  font-size: 0.84rem;
}
.profile-order-card-id {
  font-weight: 700;
  color: #2563eb;
}
.profile-order-card-id i {
  font-size: 0.72rem;
  margin-left: 0.15rem;
}
.profile-order-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border: 1px solid #fdba74;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c2410c;
  background: #fff7ed;
}
.profile-order-card-badge.is-cancelled {
  border-color: #fca5a5;
  color: #b91c1c;
  background: #fef2f2;
}
.profile-order-card-date {
  margin-left: auto;
  color: var(--ithun-muted);
  font-size: 0.8rem;
}
.profile-order-card-buyer {
  width: 100%;
  font-size: 0.78rem;
  color: var(--ithun-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.profile-order-buyer-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
}
.profile-order-buyer-badge--guest {
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
}
.profile-order-buyer-badge--member {
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
}
.profile-order-product-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 88px) minmax(0, 136px);
  gap: 1rem;
  align-items: start;
  padding: 1.1rem;
  border-top: 1px solid var(--ithun-border);
  min-width: 0;
}
.profile-order-product-row:first-child {
  border-top: none;
}
.profile-order-product-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid var(--ithun-border);
  background: #f8fafc;
  display: grid;
  place-items: center;
  color: var(--ithun-accent);
  font-size: 1.35rem;
  overflow: hidden;
}
.profile-order-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.profile-order-store {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ithun-text);
  margin-bottom: 0.25rem;
}
.profile-order-store i {
  color: var(--ithun-muted);
  margin-right: 0.2rem;
}
.profile-order-product-name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}
a.profile-order-product-name:hover {
  color: var(--ithun-accent);
}
a.profile-order-product-thumb:hover {
  border-color: var(--ithun-accent);
}
.profile-order-product-price {
  font-size: 0.95rem;
  font-weight: 800;
}
.profile-order-product-status {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ithun-text);
}
.profile-order-product-status-sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563eb;
}
.profile-order-product-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.profile-order-product-actions .profile-payment-license,
.profile-order-product-actions .profile-payment-download,
.profile-order-product-actions .profile-payment-cancel {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  white-space: normal;
  line-height: 1.35;
}
.profile-order-card-foot {
  padding: 0.65rem 1.1rem 0.85rem;
  border-top: 1px solid var(--ithun-border);
  font-size: 0.78rem;
  color: var(--ithun-muted);
}
.profile-order-card-foot a {
  color: #2563eb;
  font-weight: 600;
}
.profile-page--mypage .profile-payment-empty {
  padding: 3rem 1rem;
  border: 1px dashed var(--ithun-border);
  border-radius: 10px;
  background: var(--ithun-surface);
}
@media (max-width: 900px) {
  .profile-mypage-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .profile-sidebar {
    position: static;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ithun-border);
  }
  .profile-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
  }
  .profile-sidebar-group + .profile-sidebar-group {
    margin-top: 0;
  }
  .profile-order-product-row {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "thumb info"
      "status actions";
    gap: 0.75rem 1rem;
  }
  .profile-order-product-thumb { grid-area: thumb; width: 64px; height: 64px; }
  .profile-order-product-info { grid-area: info; min-width: 0; }
  .profile-order-product-status { grid-area: status; text-align: left; min-width: 0; }
  .profile-order-product-actions {
    grid-area: actions;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .profile-order-card-date {
    margin-left: 0;
    width: 100%;
  }
}

.cart-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.cart-page--wide {
  max-width: 980px;
}
.cart-card {
  background: var(--ithun-surface);
  border: 1px solid var(--ithun-border);
  border-radius: var(--ithun-radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
.cart-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.cart-lead {
  font-size: 0.9rem;
  color: var(--ithun-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.cart-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ithun-muted);
}
.cart-empty p { margin-bottom: 1rem; }

.cart-table-head,
.cart-item--table {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 72px 56px 96px;
  align-items: center;
  gap: 0.75rem;
}
.cart-table-head {
  padding: 0.65rem 0.85rem;
  border-bottom: 2px solid #111827;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
}
.cart-col-ship,
.cart-col-qty,
.cart-col-amount {
  text-align: center;
}
.cart-list--table {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}
.cart-item--table {
  padding: 1rem 0.85rem;
  border: 1px solid var(--ithun-border);
  border-radius: 12px;
  background: #f8fafc;
  margin-top: 0.75rem;
}
.cart-check {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-check input {
  width: 18px;
  height: 18px;
  accent-color: #f97316;
  cursor: pointer;
}
.cart-item-product {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}
.cart-item-ship,
.cart-item-qty,
.cart-item-amount {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
}
.cart-item-amount {
  font-weight: 800;
}
.cart-item-tag {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--ithun-muted);
}
.cart-item-price-mobile {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ithun-accent);
}
.cart-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
  flex-wrap: wrap;
}
.cart-storage-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ithun-muted);
  flex: 1;
  min-width: 220px;
}
.cart-delete-selected {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
}
.cart-total-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  padding: 1.35rem 0.5rem;
  border-top: 1px solid var(--ithun-border);
  border-bottom: 1px solid var(--ithun-border);
  margin-bottom: 1.25rem;
}
.cart-total-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 120px;
}
.cart-total-item strong {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
}
.cart-total-item--final strong {
  font-size: 1.35rem;
  color: #111827;
}
.cart-total-label {
  font-size: 0.82rem;
  color: var(--ithun-muted);
  font-weight: 600;
}
.cart-total-op {
  font-size: 1.4rem;
  color: #9ca3af;
  font-weight: 300;
  line-height: 1;
}
.cart-buy-selected {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: #111827;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}
.cart-buy-selected:hover:not(:disabled) {
  background: #0f766e;
}
.cart-buy-selected:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checkout-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.checkout-page-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
}
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.25rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 88px;
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}
.checkout-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 1rem;
}
.checkout-step.is-active {
  color: #111827;
}
.checkout-step.is-active .checkout-step-icon {
  border-color: #f97316;
  color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}
.checkout-step.is-done {
  color: #6b7280;
}
.checkout-step.is-done .checkout-step-icon {
  border-color: #cbd5e1;
  color: #64748b;
}
.checkout-step-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 0 0.35rem;
  margin-bottom: 1.35rem;
  max-width: 72px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.75rem;
  align-items: start;
}
.checkout-main section + section {
  margin-top: 2rem;
}
.checkout-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.checkout-product-card {
  border: 1px solid var(--ithun-border);
  border-radius: 14px;
  background: #f8fafc;
  padding: 1.1rem 1.15rem;
}
.checkout-product-card + .checkout-product-card {
  margin-top: 0.75rem;
}
.checkout-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 96px;
  gap: 0.75rem;
  align-items: start;
}
.checkout-product-info {
  display: flex;
  gap: 0.85rem;
  min-width: 0;
}
.checkout-product-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--ithun-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.checkout-product-copy h3 {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 0.45rem;
}
.checkout-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.checkout-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
}
.checkout-product-tag--type {
  background: #ede9fe;
  color: #6d28d9;
}
.checkout-product-qty,
.checkout-product-price {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #374151;
  padding-top: 0.35rem;
}
.checkout-product-price {
  font-weight: 800;
}
.checkout-product-price-mobile {
  display: none;
  margin-top: 0.35rem;
  font-weight: 800;
  color: var(--ithun-accent);
}
.checkout-form-grid {
  display: grid;
  gap: 0.85rem;
}
.checkout-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.35rem;
}
.checkout-field label .req {
  color: #ef4444;
}
.checkout-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ithun-border);
  border-radius: 8px;
  padding: 0.72rem 0.85rem;
  font: inherit;
  background: #fff;
}
.checkout-field input:read-only {
  background: #f8fafc;
  color: #374151;
}
.checkout-field-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #2563eb;
}
.checkout-field-hint i {
  margin-right: 0.25rem;
}
.guest-order-result-card {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ithun-border);
  text-align: left;
}
.guest-order-result-card h2,
.guest-order-result-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}
.guest-order-dl {
  margin: 0 0 1rem;
}
.guest-order-dl div {
  display: flex;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.88rem;
}
.guest-order-dl dt {
  width: 5rem;
  flex-shrink: 0;
  color: var(--ithun-muted);
  font-weight: 600;
}
.guest-order-dl dd {
  margin: 0;
  font-weight: 700;
  word-break: break-all;
}
.guest-order-items {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.6;
  font-size: 0.88rem;
}
.guest-order-receipt {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}
.guest-order-receipt a {
  color: var(--ithun-accent);
  font-weight: 700;
}
.checkout-guest-lookup-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ithun-muted);
  text-align: center;
}
.checkout-guest-lookup-note a {
  color: var(--ithun-accent);
  font-weight: 700;
}
.checkout-pay-methods {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
  max-width: 280px;
}
.checkout-pay-method {
  border: 1px solid var(--ithun-border);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 0.65rem;
  text-align: center;
  color: #6b7280;
}
.checkout-pay-method.is-active {
  border-color: #f97316;
  color: #f97316;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.15);
}
.checkout-pay-method i {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}
.checkout-pay-method span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}
.checkout-widgets {
  border: 1px solid var(--ithun-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 0.75rem 0.85rem 0.85rem;
}
.checkout-toss-agreement {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ithun-border);
}
.checkout-widget-unavailable {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--ithun-border);
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ithun-muted);
  background: #f8fafc;
}
.checkout-widget-unavailable code {
  font-size: 0.82rem;
}
.checkout-sidebar {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--ithun-border);
  border-radius: 14px;
  background: #fff;
  padding: 1.25rem 1.35rem;
}
.checkout-sidebar h2 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.checkout-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.checkout-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #374151;
}
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ithun-border);
  margin-bottom: 1rem;
  font-weight: 800;
}
.checkout-summary-total strong {
  font-size: 1.35rem;
  color: #111827;
}
.checkout-consent {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.checkout-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #4b5563;
}
.checkout-consent-row input {
  margin-top: 0.15rem;
  accent-color: #f97316;
  flex-shrink: 0;
}
.checkout-consent-row label {
  flex: 1;
}
.checkout-consent-btn {
  flex-shrink: 0;
  border: 1px solid var(--ithun-border);
  background: #fff;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  color: #374151;
}
.checkout-consent-btn:hover {
  border-color: #cbd5e1;
}
.checkout-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem 0;
  color: var(--ithun-muted);
  font-size: 0.88rem;
}
.checkout-pay-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: #111827;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}
.checkout-pay-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.checkout-pay-btn:not(:disabled):hover {
  background: #0f766e;
}
.checkout-widgets [data-testid="sandbox-banner"],
.checkout-widgets [class*="SandboxNotice"],
.checkout-widgets [class*="sandbox-banner"],
.checkout-widgets [class*="Sandbox"],
.checkout-widgets [class*="TestEnvironment"],
.checkout-widgets [role="alert"],
.toss-widget [role="alert"],
#toss-payment-methods [role="alert"] {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}
.checkout-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.checkout-modal-overlay.is-open {
  display: flex;
}
.checkout-modal {
  width: min(640px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
.checkout-modal h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.checkout-modal-body {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #374151;
}
.checkout-modal-body h4 {
  font-size: 0.88rem;
  margin: 1rem 0 0.35rem;
}
.checkout-modal-body ul,
.checkout-modal-body ol {
  padding-left: 1.1rem;
  margin: 0.35rem 0;
}
.checkout-modal-close {
  margin-top: 1rem;
  width: 100%;
  border: 1px solid var(--ithun-border);
  background: #fff;
  border-radius: 8px;
  padding: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}
.toss-agreement-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-sidebar {
    position: static;
  }
  .checkout-product-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .checkout-product-qty,
  .checkout-product-price {
    display: none;
  }
  .checkout-product-price-mobile {
    display: block;
  }
  .cart-table-head {
    display: none;
  }
  .cart-item--table {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
      "check product"
      "check product";
  }
  .cart-item-ship,
  .cart-item-qty,
  .cart-item-amount {
    display: none;
  }
  .cart-item-price-mobile {
    display: block;
  }
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--ithun-border);
  border-radius: 10px;
  background: var(--ithun-bg);
}
.cart-item-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ithun-accent-soft);
  overflow: hidden;
}
.cart-item-body {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.cart-item-name:hover { color: var(--ithun-accent); }
.cart-item-price {
  font-size: 0.85rem;
  color: var(--ithun-muted);
  font-weight: 600;
}
.cart-item-remove {
  border: none;
  background: transparent;
  color: var(--ithun-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
}
.cart-item-remove:hover {
  color: #dc2626;
  background: #fef2f2;
}
.cart-summary {
  padding-top: 1rem;
  border-top: 1px solid var(--ithun-border);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.cart-summary-row strong {
  font-size: 1.15rem;
  color: var(--ithun-accent);
}
.cart-checkout-btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
}
.header-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--ithun-border);
  background: var(--ithun-surface);
  color: var(--ithun-muted);
  flex-shrink: 0;
}
.header-cart-link:hover,
.header-cart-link.is-active {
  color: var(--ithun-accent);
  border-color: var(--ithun-accent);
  background: var(--ithun-accent-soft);
}
.header-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ithun-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.purchase-callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}
.cart-add-btn {
  padding: 0.75rem 1.1rem;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--ithun-surface);
  border-radius: 16px;
  padding: 1.75rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--ithun-muted);
  cursor: pointer;
}
.modal h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.cart-feedback-modal .modal {
  max-width: 420px;
  padding: 1.5rem 1.5rem 1.35rem;
  animation: cartFeedbackIn 0.28s ease;
}
@keyframes cartFeedbackIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cart-feedback-modal__icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.cart-feedback-modal__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.cart-feedback-modal--success .cart-feedback-modal__icon {
  background: var(--ithun-accent-soft);
  color: var(--ithun-accent);
}
.cart-feedback-modal--duplicate .cart-feedback-modal__icon {
  background: #fff7ed;
  color: #ea580c;
}
.cart-feedback-modal--error .cart-feedback-modal__icon {
  background: #fef2f2;
  color: #dc2626;
}
.cart-feedback-modal h2 {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.cart-feedback-modal__message {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ithun-muted);
  line-height: 1.5;
  margin: 0 0 1rem;
}
.cart-feedback-modal__product {
  display: none;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  background: var(--ithun-bg);
  border: 1px solid var(--ithun-border);
  border-radius: 12px;
}
.cart-feedback-modal__product.is-visible { display: flex; }
.cart-feedback-modal__product-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ithun-surface);
  border-radius: 10px;
  border: 1px solid var(--ithun-border);
  overflow: hidden;
}
.cart-feedback-modal__product-icon .software-icon-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}
.cart-feedback-modal__product-icon .software-icon-emoji {
  font-size: 1.65rem;
  line-height: 1;
}
.cart-feedback-modal__product-body {
  min-width: 0;
  flex: 1;
}
.cart-feedback-modal__product-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ithun-text);
  margin-bottom: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-feedback-modal__product-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ithun-accent);
}
.cart-feedback-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.cart-feedback-modal__actions .btn {
  width: 100%;
  padding: 0.72rem 0.75rem;
  border-radius: 10px;
}
.cart-feedback-modal__actions .btn-outline {
  background: var(--ithun-surface);
}
.cart-feedback-modal__actions--single {
  grid-template-columns: 1fr;
}

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-group input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--ithun-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
}
.form-group input:focus {
  outline: none;
  border-color: var(--ithun-accent);
  box-shadow: 0 0 0 3px var(--ithun-accent-glow);
}
.form-msg {
  font-size: 0.8rem;
  min-height: 1.2rem;
  margin-bottom: 0.5rem;
}
.purchase-panel {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--ithun-border);
  border-radius: var(--ithun-radius);
  background: var(--ithun-surface);
  max-width: 480px;
}
.purchase-panel h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.purchase-desc { font-size: 0.95rem; margin-bottom: 0.35rem; }
.purchase-note { font-size: 0.8rem; color: var(--ithun-muted); margin-bottom: 1rem; }
.toss-widget { margin-bottom: 0.75rem; }
.purchase-btn { width: 100%; justify-content: center; padding: 0.75rem; }
.purchase-guest-note {
  font-size: 0.85rem;
  color: var(--ithun-muted);
  line-height: 1.55;
  margin: 0.75rem 0 1rem;
}
.purchase-guest-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.purchase-callout { margin-top: 1rem; }

/* ── Hero ── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}
.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--ithun-text);
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ithun-muted);
  max-width: 540px;
}

/* ── Section ── */
.section-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ithun-text);
}

.badge-upd {
  background: var(--ithun-accent-soft);
  color: var(--ithun-accent);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* ── Software cards ── */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.software-card-wrap {
  position: relative;
}

.software-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: var(--ithun-surface);
  border: 1px solid var(--ithun-border);
  border-radius: var(--ithun-radius);
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.software-card-hit {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
.software-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.software-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ithun-accent-soft);
  margin-bottom: 1rem;
  overflow: hidden;
}
.software-card-icon .software-icon-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
}
.software-card-icon .software-icon-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.software-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.software-card p {
  font-size: 0.875rem;
  color: var(--ithun-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.25rem;
}

.software-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}
.software-card-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.software-card-meta-line {
  font-size: 0.75rem;
  color: var(--ithun-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  line-height: 1.4;
}
.software-card-meta-line .price-chip {
  color: var(--ithun-accent);
  font-weight: 700;
}
.software-card-type {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  line-height: 1.2;
}
.software-card-footer .platform-chip {
  font-size: 0.75rem;
  color: var(--ithun-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}
.software-card-footer-end {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.software-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.software-card-action {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--ithun-border);
  background: var(--ithun-bg);
  color: var(--ithun-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.software-card-action:hover {
  color: var(--ithun-accent);
  border-color: var(--ithun-accent);
  background: var(--ithun-accent-soft);
}
.software-card-action--buy {
  color: var(--ithun-accent);
  border-color: #99f6e4;
  background: var(--ithun-accent-soft);
}
.software-card-action--buy:hover {
  background: var(--ithun-accent);
  color: #fff;
  border-color: var(--ithun-accent);
}
.software-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--ithun-accent);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
button.software-card-cta { line-height: 1.2; }
.software-card-cta:hover { background: var(--ithun-accent-hover); }
.software-card-cta--more {
  color: var(--ithun-accent);
  background: var(--ithun-accent-soft);
  border: 1px solid #99f6e4;
  box-shadow: none;
}
.software-card-cta--more:hover {
  background: #ccfbf1;
  color: var(--ithun-accent-hover);
}

.empty-grid {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ithun-muted);
  padding: 2.5rem 1rem;
  background: var(--ithun-surface);
  border: 1px dashed var(--ithun-border);
  border-radius: var(--ithun-radius);
}

.card-admin {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
}

/* ── Footer ── */
.footer {
  background: var(--ithun-surface);
  border-top: 1px solid var(--ithun-border);
  color: var(--ithun-muted);
  font-size: 0.8rem;
  margin-top: 1rem;
  -webkit-user-select: none;
  user-select: none;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 1.5rem;
}
.footer strong { color: var(--ithun-text); }
.footer-copyright {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--ithun-muted);
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}
.footer-links a {
  color: var(--ithun-muted);
  font-weight: 600;
  white-space: nowrap;
}
.footer-links a:hover { color: var(--ithun-accent); }
.footer-links .sep { color: var(--ithun-border); user-select: none; }

/* ── Legal pages ── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  -webkit-user-select: none;
  user-select: none;
}
.legal-page h1 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--ithun-text);
}
.legal-page .legal-updated {
  font-size: 0.85rem;
  color: var(--ithun-muted);
  margin-bottom: 2rem;
}
.legal-page h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 1.75rem 0 0.65rem;
  color: var(--ithun-text);
}
.legal-page p,
.legal-page li {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ithun-muted);
  margin-bottom: 0.65rem;
}
.legal-page ol,
.legal-page ul {
  margin: 0 0 0.75rem 1.1rem;
  padding: 0;
}
.legal-page li { margin-bottom: 0.35rem; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ithun-accent);
  box-shadow: 0 0 0 3px var(--ithun-accent-glow);
}
.price-chip {
  font-weight: 700;
  color: var(--ithun-accent, #0f766e);
}

.short-link-form {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ithun-border);
  border-radius: 10px;
  background: var(--ithun-surface);
}
.short-link-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}
@media (max-width: 640px) {
  .short-link-form-grid { grid-template-columns: 1fr; }
}
.short-link-form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.label-hint {
  font-weight: 500;
  color: var(--ithun-muted);
  font-size: 0.78rem;
}
.short-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.short-link-item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--ithun-border);
  border-radius: 8px;
  background: var(--ithun-bg);
}
.short-link-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.short-link-item-head a {
  color: var(--ithun-accent);
  font-weight: 700;
  word-break: break-all;
}
.short-link-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ithun-text);
}
.short-link-item-target {
  font-size: 0.78rem;
  color: var(--ithun-muted);
  word-break: break-all;
  margin-bottom: 0.45rem;
}
.short-link-item-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.short-link-item-actions button {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--ithun-border);
  background: var(--ithun-surface);
  color: var(--ithun-text);
  cursor: pointer;
}
.short-link-item-actions button:hover {
  border-color: var(--ithun-accent);
  color: var(--ithun-accent);
}
.short-link-item-actions button.danger:hover {
  border-color: #fecaca;
  color: #dc2626;
  background: #fef2f2;
}

.upload-progress {
  margin: 0.85rem 0 0.25rem;
}
.upload-progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.upload-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #14b8a6, #2dd4bf);
  transition: width 0.15s ease;
}
.upload-progress-text {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ithun-accent);
}

/* Support inquiry board */
.support-page-hero {
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.support-page-hero p {
  max-width: none;
}
.support-board-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 1.5rem 3rem;
  box-sizing: border-box;
}
.support-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.support-sidebar {
  position: sticky;
  top: calc(var(--ithun-header-offset, 60px) + 1rem);
  background: var(--ithun-surface, #fff);
  border: 1px solid var(--ithun-border, #e2e8f0);
  border-radius: 12px;
  padding: 0.85rem;
}
.support-section-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ithun-border, #e2e8f0);
}
.support-section-nav__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.72rem 0.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ithun-muted, #64748b);
  font-family: inherit;
  cursor: pointer;
}
.support-section-nav__count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.78rem;
  font-weight: 700;
}
.support-section-nav__btn:hover {
  background: var(--ithun-accent-soft, #f0fdfa);
  color: var(--ithun-accent, #0f766e);
}
.support-section-nav__btn.is-active {
  background: var(--ithun-accent-soft, #f0fdfa);
  color: var(--ithun-accent, #0f766e);
}
.support-faq-categories {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.support-faq-categories[hidden] {
  display: none !important;
}
.support-faq-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0.62rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ithun-text, #0f172a);
  font-family: inherit;
  cursor: pointer;
}
.support-faq-category:hover,
.support-faq-category.is-active {
  color: var(--ithun-accent, #0f766e);
  background: var(--ithun-accent-soft, #f0fdfa);
}
.support-faq-category__count {
  font-size: 0.75rem;
  color: var(--ithun-muted, #64748b);
  font-weight: 600;
}
.support-main {
  min-width: 0;
}
.support-inquiry-panel[hidden] {
  display: none !important;
}
.support-faq-search {
  margin-bottom: 1rem;
}
.support-faq-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ithun-border, #e2e8f0);
}
.support-faq-head__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.support-faq-count {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.78rem;
  font-weight: 700;
}
.support-faq-list {
  display: flex;
  flex-direction: column;
}
.support-faq-item {
  border-bottom: 1px solid var(--ithun-border, #e2e8f0);
}
.support-faq-item:last-child {
  border-bottom: 0;
}
.support-faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.95rem 0;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ithun-text, #0f172a);
  font-family: inherit;
  cursor: pointer;
}
.support-faq-question:hover {
  color: var(--ithun-accent, #0f766e);
}
.support-faq-question i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--ithun-muted, #64748b);
  transition: transform 0.2s;
}
.support-faq-item.is-open .support-faq-question i {
  transform: rotate(180deg);
}
.support-faq-answer {
  display: none;
  padding: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ithun-muted, #64748b);
}
.support-faq-item.is-open .support-faq-answer {
  display: block;
}
@media (max-width: 900px) {
  .support-layout {
    grid-template-columns: 1fr;
  }
  .support-sidebar {
    position: static;
  }
  .support-section-nav {
    flex-direction: row;
  }
  .support-section-nav__btn {
    flex: 1;
    text-align: center;
  }
}
.support-board-panel {
  background: var(--ithun-surface, #fff);
  border: 1px solid var(--ithun-border, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.support-board-search {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .support-board-search {
    grid-template-columns: 180px minmax(0, 1fr) auto;
    align-items: center;
  }
  .support-board-search-btn {
    width: auto;
    min-width: 5.5rem;
    min-height: 100%;
    justify-self: end;
  }
}
/* FAQ 검색: 입력 + 버튼 2칸 (3칸 그리드 규칙 덮어쓰기) */
@media (min-width: 768px) {
  .support-board-search.support-faq-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.support-board-select,
.support-board-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--ithun-border, #e2e8f0);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #fff;
  color: var(--ithun-text, #0f172a);
}
.support-board-select:focus,
.support-board-input:focus {
  outline: none;
  border-color: var(--ithun-accent);
  box-shadow: 0 0 0 3px var(--ithun-accent-glow);
}
.support-board-search-btn {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}
.support-board-list {
  border-top: 1px solid var(--ithun-border, #e2e8f0);
}
.support-board-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--ithun-border, #e2e8f0);
  background: transparent;
  padding: 0.95rem 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.support-board-item:hover {
  background: var(--ithun-accent-soft, #f0fdfa);
}
.support-board-item__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}
.support-board-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--ithun-accent, #0f766e);
}
.support-board-badge--wait {
  background: #64748b;
}
.support-board-badge--done {
  background: var(--ithun-accent, #0f766e);
}
.support-board-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}
.support-board-item__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--ithun-muted, #64748b);
}
.support-board-item__sep {
  color: #cbd5e1;
}
.support-board-empty {
  text-align: center;
  color: var(--ithun-muted, #64748b);
  font-size: 0.9rem;
  padding: 1.5rem 0 0.5rem;
}
.support-board-write-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.78rem 1rem;
}
.support-board-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.support-board-panel-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}
.support-board-back-btn {
  border: 1px solid var(--ithun-border, #e2e8f0);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.support-board-form .form-group select,
.support-board-form .form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--ithun-border, #e2e8f0);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
}
.support-board-form .form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.support-board-private-row,
.support-board-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ithun-muted, #64748b);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.support-board-private-row input,
.support-board-consent-row input {
  margin-top: 0.2rem;
}
.support-board-submit-btn {
  width: 100%;
  margin-top: 0.35rem;
}
.support-attachment-label-note {
  font-weight: 500;
  color: var(--ithun-muted, #64748b);
}
.support-attachment-upload {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.support-attachment-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 132px;
  padding: 1.1rem 1rem;
  border: 1.5px dashed var(--ithun-border, #cbd5e1);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ithun-text, #0f172a);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.support-attachment-dropzone:hover,
.support-attachment-dropzone.is-dragover {
  border-color: var(--ithun-accent, #0f766e);
  background: var(--ithun-accent-soft, #f0fdfa);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}
.support-attachment-dropzone.is-compact {
  min-height: 88px;
}
.support-attachment-dropzone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ithun-accent, #0f766e);
  font-size: 1.1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.support-attachment-dropzone__title {
  font-size: 0.92rem;
  font-weight: 700;
}
.support-attachment-dropzone__hint {
  font-size: 0.78rem;
  color: var(--ithun-muted, #64748b);
  text-align: center;
  line-height: 1.45;
}
.support-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.65rem;
}
.support-attachment-item {
  position: relative;
  border: 1px solid var(--ithun-border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.support-attachment-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f1f5f9;
}
.support-attachment-name {
  display: block;
  padding: 0.35rem 0.45rem;
  font-size: 0.72rem;
  color: var(--ithun-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.support-attachment-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.65rem;
  height: 1.65rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.support-attachment-remove:hover {
  background: rgba(15, 23, 42, 0.9);
}
.support-board-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.support-board-attachment-thumb {
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--ithun-accent-soft, #f0fdfa);
  color: var(--ithun-accent, #0f766e);
}
.support-board-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--ithun-muted, #64748b);
}
.support-board-detail__message {
  font-size: 0.92rem;
  line-height: 1.75;
  white-space: pre-wrap;
  margin-bottom: 1rem;
}
.support-board-detail__attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.support-board-attachment-link img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--ithun-border, #e2e8f0);
}
.support-board-detail__answer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--ithun-border, #e2e8f0);
}
.support-board-detail__answer h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
}
.support-board-detail__answer-meta {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--ithun-muted, #64748b);
}
.support-board-detail__answer-body {
  font-size: 0.92rem;
  line-height: 1.75;
  background: var(--ithun-accent-soft, #f0fdfa);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.support-board-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 1rem 0 0.75rem;
}
.support-board-pagination__info {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ithun-muted, #64748b);
  margin-bottom: 0.15rem;
}
.support-board-pagination__btn {
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.55rem;
  border: 1px solid var(--ithun-border, #e2e8f0);
  border-radius: 8px;
  background: #fff;
  color: var(--ithun-text, #0f172a);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.support-board-pagination__btn:hover:not(:disabled) {
  border-color: var(--ithun-accent, #0f766e);
  color: var(--ithun-accent, #0f766e);
}
.support-board-pagination__btn.is-active {
  background: var(--ithun-accent, #0f766e);
  border-color: var(--ithun-accent, #0f766e);
  color: #fff;
}
.support-board-pagination__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.support-board-admin-answer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--ithun-border, #e2e8f0);
}
.support-board-admin-answer h3 {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  font-weight: 800;
}
.support-board-admin-answer textarea {
  width: 100%;
  min-height: 140px;
  box-sizing: border-box;
  padding: 0.85rem;
  border: 1px solid var(--ithun-border, #e2e8f0);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
}
.support-board-admin-answer textarea:focus {
  outline: none;
  border-color: var(--ithun-accent, #0f766e);
  box-shadow: 0 0 0 3px var(--ithun-accent-glow);
}
.support-board-admin-answer .btn {
  margin-top: 0.75rem;
}
.support-board-detail__contact {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--ithun-muted, #64748b);
}
.support-board-aside {
  font-size: 0.85rem;
  color: var(--ithun-muted, #64748b);
  line-height: 1.6;
}
.support-board-aside a {
  color: var(--ithun-accent, #0f766e);
  font-weight: 600;
}
.support-board-modal[hidden] {
  display: none !important;
}
.support-board-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.support-board-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.support-board-modal__dialog {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}
.support-board-modal__dialog h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.support-board-modal__lead {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--ithun-muted, #64748b);
}
.support-board-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.support-board-modal__actions .btn {
  width: 100%;
}
.form-msg.ok { color: var(--ithun-accent, #0f766e); }
.form-msg.err { color: #dc2626; }

.admin-support-detail {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--ithun-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
}
.admin-support-detail textarea {
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  margin-top: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--ithun-border, #e2e8f0);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

