/**
 * Soft Blush — catalog page (from design-previews/03-soft-blush)
 */
:root {
    --bg: #fff5f7;
    --surface: #ffffff;
    --ink: #4a3540;
    --muted: #9a7a85;
    --border: #f0d4dc;
    --accent: #d4737e;
    --accent-dark: #c05f6a;
    --accent-soft: #fce8ec;
    --radius: 16px;
    --font: 'Bai Jamjuree', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.theme {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 15px;
    min-height: 100vh;
}

.shop-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 16px rgba(212, 115, 126, 0.08);
}

.shop-topbar-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    min-height: 56px;
}

.logo {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--accent);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.steps {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 0.85rem;
    gap: 0.25rem;
}

.step {
    flex: 1;
    max-width: 9rem;
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
    white-space: nowrap;
}

.step span {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin: 0 auto 0.3rem;
    border-radius: 50%;
    font-size: 0.8rem;
    background: var(--surface);
    border: 2px solid var(--border);
}

.step.is-active span {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.step.is-done span {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.step.is-active {
    color: var(--ink);
    font-weight: 500;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.hero {
    margin-bottom: 2rem;
    text-align: center;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.kicker {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.65rem;
}

.lead {
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(212, 115, 126, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card-preview {
    height: 130px;
    overflow: hidden;
    background: #f5f5f5;
}

.card-preview img,
.card-preview iframe.preview-frame {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.card-preview img {
    object-fit: cover;
}

.card-preview iframe.preview-frame {
    pointer-events: none;
}

.card-preview-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5f7 0%, #fde8ec 100%);
}

.tmpl-mock {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Love — dark scroll story + envelope */
.tmpl-mock-love {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
}

.mock-love-kicker {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #ff6b9d;
    margin: 0;
}

.mock-love-envelope {
    width: 32px;
    height: 22px;
    background: #ff6b9d;
    border-radius: 3px;
    position: relative;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.mock-love-envelope::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 12px;
    background: #c44569;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.mock-love-text {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    letter-spacing: 0.04em;
}

.mock-love-dots {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}

.mock-love-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.mock-love-dots span.is-active {
    background: #ff6b9d;
}

/* Spotify — dark player UI */
.tmpl-mock-spotify {
    background: #121212;
    padding: 10px 12px 28px;
}

.mock-sp-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: linear-gradient(135deg, #1db954 0%, #169c46 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 6px;
}

.mock-sp-album {
    font-size: 8px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.mock-sp-tracks span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #282828;
    margin-bottom: 3px;
}

.mock-sp-tracks span:nth-child(1) { width: 85%; background: #3a3a3a; }
.mock-sp-tracks span:nth-child(2) { width: 70%; }
.mock-sp-tracks span:nth-child(3) { width: 60%; }

.mock-sp-player {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: #282828;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.mock-sp-play {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1db954;
}

/* Secret Box — PIN lock screen */
.tmpl-mock-secretbox {
    background: linear-gradient(160deg, #fff5f9 0%, #fde8f3 60%, #f9d0e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.mock-sb-card {
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px 10px;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.18);
    text-align: center;
    width: 78%;
}

.mock-sb-lock {
    width: 12px;
    height: 14px;
    border: 2px solid #ec4899;
    border-radius: 2px;
    margin: 0 auto 3px;
    position: relative;
}

.mock-sb-lock::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 6px;
    border: 2px solid #ec4899;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

.mock-sb-title {
    font-size: 8px;
    font-weight: 600;
    color: #db2777;
    margin: 0 0 4px;
}

.mock-sb-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 5px;
}

.mock-sb-dots i {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: 1px solid #f9a8d4;
    background: #ec4899;
}

.mock-sb-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.mock-sb-keypad span {
    height: 8px;
    background: #fdf2f8;
    border-radius: 2px;
    border: 1px solid #fce7f3;
}

/* Photo Puzzle — 3×3 jigsaw */
.tmpl-mock-photopuzzle {
    background: linear-gradient(135deg, #fff5f8 0%, #ffe4ec 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    gap: 4px;
}

.mock-pz-label {
    font-size: 7px;
    font-weight: 600;
    color: #c44569;
    margin: 0;
    letter-spacing: 0.06em;
}

.mock-pz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 72px;
    height: 72px;
    border: 2px solid rgba(196, 69, 105, 0.25);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(196, 69, 105, 0.2);
}

.mock-pz-cell {
    background: linear-gradient(135deg, #ffb3c6, #ff6b9d);
}

.mock-pz-cell.c1 { background: linear-gradient(225deg, #ff8fab, #ff6b9d); }
.mock-pz-cell.c2 { background: linear-gradient(45deg, #ffc2d4, #ff8fab); }
.mock-pz-cell.c3 { background: linear-gradient(180deg, #ff6b9d, #c44569); }
.mock-pz-cell.c4 { background: linear-gradient(90deg, #ffb3c6, #ff6b9d); }
.mock-pz-cell.c5 { background: linear-gradient(315deg, #ff8fab, #ffc2d4); }
.mock-pz-cell.c6 { background: linear-gradient(0deg, #c44569, #ff6b9d); }
.mock-pz-cell.c7 { background: linear-gradient(135deg, #ffc2d4, #ff8fab); }
.mock-pz-cell.c8 { background: linear-gradient(270deg, #ff6b9d, #ffb3c6); }
.mock-pz-cell.c9 { background: linear-gradient(45deg, #ff6b9d, #ffc2d4); }

/* Retro Quest — pixel game */
.tmpl-mock-retroquest {
    background: #0f0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.mock-rq-screen {
    width: 88%;
    height: 88%;
    border: 2px solid #fff;
    outline: 2px solid #7b2ff7;
    outline-offset: -4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    background: #1a1a2e;
}

.mock-rq-title {
    font-size: 7px;
    font-weight: 700;
    color: #ff6b9d;
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mock-rq-hp {
    width: 65%;
    height: 5px;
    background: #333;
    border: 1px solid #fff;
}

.mock-rq-hp span {
    display: block;
    width: 75%;
    height: 100%;
    background: #4ade80;
}

.mock-rq-sub {
    font-size: 6px;
    color: #8888aa;
    margin: 0;
}

.mock-rq-btn {
    font-size: 6px;
    font-weight: 700;
    padding: 2px 8px;
    background: #ff6b9d;
    color: #fff;
    border: 1px solid #fff;
    letter-spacing: 0.05em;
}

.tmpl-mock-generic {
    background: linear-gradient(135deg, #fce8ec, #ffd6e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-generic-heart {
    width: 24px;
    height: 24px;
    background: #d4737e;
    transform: rotate(-45deg);
    border-radius: 4px;
    position: relative;
}

.mock-generic-heart::before,
.mock-generic-heart::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #d4737e;
    border-radius: 50%;
}

.mock-generic-heart::before { top: -12px; left: 0; }
.mock-generic-heart::after { left: 12px; top: 0; }

.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.card-body p {
    font-size: 0.88rem;
    color: var(--muted);
    flex: 1;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.price-wrap {
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-sale {
    margin-bottom: 0;
}

.price-original {
    display: block;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--muted);
    text-decoration: line-through;
    margin-bottom: 0;
}

.price-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(212, 115, 126, 0.35);
    transition: background 0.15s;
}

.btn:hover {
    background: var(--accent-dark);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-icon-line {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.nav-link {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    padding: 0.45rem 1rem;
    background: var(--surface);
    border-radius: 999px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--accent-soft);
}

.nav-link.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.info-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.info-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.info-section .section-lead {
    text-align: center;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.how-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(212, 115, 126, 0.08);
}

.how-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

.how-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.how-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

.faq-list {
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.25rem 1rem;
    box-shadow: 0 4px 16px rgba(212, 115, 126, 0.08);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 500;
    padding: 0.75rem 0;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-bottom: 0.75rem;
}

.contact-card {
    max-width: 28rem;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(212, 115, 126, 0.12);
}

.contact-card p {
    color: var(--muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.25rem;
    align-items: start;
}

.pay-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 1.25rem;
    align-items: start;
}

.pay-grid > .panel {
    min-width: 0;
}

.panel {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(212, 115, 126, 0.1);
}

.panel h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.card-preview-sm {
    height: 100px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.panel-summary .card-preview-sm {
    margin-bottom: 1rem;
}

.card-preview-sm .mock-love-kicker { font-size: 7px; }
.card-preview-sm .mock-love-envelope { width: 26px; height: 18px; }
.card-preview-sm .mock-sp-cover { width: 32px; height: 32px; }
.card-preview-sm .mock-pz-grid { width: 56px; height: 56px; }
.card-preview-sm .mock-rq-title { font-size: 6px; }

.field {
    margin-bottom: 1.15rem;
}

.field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--ink);
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 115, 126, 0.15);
}

.field-turnstile {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.field-turnstile .cf-turnstile {
    width: 100% !important;
    max-width: 100%;
}

.field small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.summary div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.summary div:last-child {
    border-bottom: none;
}

.summary dt {
    color: var(--muted);
}

.summary dd {
    font-weight: 500;
    text-align: right;
}

.summary .price {
    margin-bottom: 0;
}

.panel-pay h2 {
    margin-bottom: 1.15rem;
}

.pay-amount-banner {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.15rem;
    background: linear-gradient(135deg, var(--accent-soft) 0%, #fff 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.pay-amount-label {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
}

.pay-amount-value {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--accent-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pay-card {
    padding: 1.15rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 1rem;
}

.pay-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.pay-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--accent);
}

.pay-card-icon svg {
    width: 22px;
    height: 22px;
}

.pay-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}

.pay-card-sub {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

.pay-bank-details {
    margin: 0 0 1rem;
}

.pay-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.pay-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pay-detail-row:first-child {
    padding-top: 0;
}

.pay-detail-row dt {
    flex-shrink: 0;
    color: var(--muted);
    font-weight: 500;
    min-width: 4.5rem;
}

.pay-detail-row dd {
    margin: 0;
    font-weight: 500;
    text-align: right;
    color: var(--ink);
    word-break: break-word;
}

.pay-detail-row-account dd {
    width: 100%;
    max-width: 16rem;
}

.pay-account-copy {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pay-account-number {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-dark);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent-dark);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-copy:active {
    transform: scale(0.97);
}

.btn-copy.is-copied {
    background: #f3faf5;
    border-color: #c8e6d4;
    color: #2d6a4a;
}

.btn-copy-sm {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
}

.btn-copy-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.pay-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0 1rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.pay-divider::before,
.pay-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.pay-divider span {
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.pay-card-qr .qr-box {
    margin-bottom: 0.75rem;
}

.qr-box {
    text-align: center;
    padding: 1rem;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 12px;
}

.qr-box img {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.pay-qr-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.pay-qr-meta + .pay-qr-meta {
    margin-top: 0.5rem;
}

.pay-promptpay-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.copy-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    padding: 0.65rem 1.1rem;
    background: var(--ink);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(74, 53, 64, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 200;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.slip-preview-box {
    margin: 1rem 0;
    text-align: center;
}

.slip-preview-label {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.slip-preview-img {
    display: block;
    max-width: 100%;
    max-height: 320px;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    object-fit: contain;
}

.upload {
    padding: 2rem 1.25rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    text-align: center;
    color: var(--muted);
    margin-bottom: 1rem;
    background: var(--accent-soft);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.upload:hover,
.upload.is-dragover {
    border-color: var(--accent);
}

.upload input[type='file'] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.upload-text {
    margin: 0 0 0.5rem;
    font-weight: 500;
    color: var(--ink);
}

.upload-hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}

.upload-filename {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--accent-dark);
    font-weight: 500;
    min-height: 1.25rem;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.alert-danger {
    background: #fef5f5;
    color: #8b3030;
    border: 1px solid #f0d0d0;
}

.alert-success {
    background: #f3faf5;
    color: #2d6a4a;
    border: 1px solid #c8e6d4;
}

.alert-info {
    background: var(--accent-soft);
    color: var(--accent-dark);
    border: 1px solid var(--border);
}

.spinner {
    display: none;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.expires-countdown {
    display: block;
    margin-top: 0.25rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
}

.container-narrow {
    max-width: 640px;
}

.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
}

.success-links {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.success-link {
    display: block;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.15s, background 0.15s;
}

.success-link:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.success-link strong {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.success-link span {
    font-size: 0.92rem;
    word-break: break-all;
    color: var(--accent-dark);
}

.password-box {
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--accent-soft);
    margin-bottom: 1.25rem;
}

.password-box strong {
    font-size: 1.15rem;
    color: var(--accent-dark);
    letter-spacing: 0.05em;
}

.password-box small {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* QR share page — clients/{folder}/qr/ */
.qr-share-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.qr-share-main {
    position: relative;
    z-index: 1;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

.qr-hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.qr-hearts span {
    position: absolute;
    font-size: 1.25rem;
    opacity: 0.35;
    animation: qr-float 8s ease-in-out infinite;
}

.qr-hearts span:nth-child(1) { left: 8%; top: 12%; animation-delay: 0s; }
.qr-hearts span:nth-child(2) { left: 82%; top: 18%; animation-delay: 1.2s; font-size: 1.5rem; }
.qr-hearts span:nth-child(3) { left: 15%; top: 72%; animation-delay: 2.4s; }
.qr-hearts span:nth-child(4) { left: 78%; top: 68%; animation-delay: 0.8s; font-size: 1.1rem; }
.qr-hearts span:nth-child(5) { left: 48%; top: 8%; animation-delay: 3s; font-size: 1.6rem; }
.qr-hearts span:nth-child(6) { left: 55%; top: 85%; animation-delay: 1.8s; }

@keyframes qr-float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.25; }
    50% { transform: translateY(-14px) rotate(6deg); opacity: 0.45; }
}

.qr-share-hero h1 {
    font-size: clamp(1.65rem, 4.5vw, 2.15rem);
}

.qr-couple {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.35rem 0.9rem;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--accent-dark);
    font-weight: 500;
    font-size: 0.92rem;
}

.qr-share-panel {
    text-align: center;
}

.qr-share-frame {
    margin-bottom: 1.25rem;
}

.qr-share-box {
    display: inline-block;
    max-width: 280px;
    margin: 0 auto;
    padding: 1.15rem;
    background: #fff;
    border: 2px dashed var(--border);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(212, 115, 126, 0.15);
}

.qr-share-box img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.qr-share-hint {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.qr-share-actions {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.qr-share-footnote {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
        padding: 0.75rem 0;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.35rem;
        padding-top: 0.35rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        text-align: center;
    }

    .steps {
        padding-bottom: 0.65rem;
    }

    .step { font-size: 0; max-width: none; }
    .step span { font-size: 0.8rem; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    .checkout-grid,
    .pay-grid { grid-template-columns: 1fr; }
    .panel-summary { order: -1; }

    .pay-detail-row {
        flex-direction: column;
        gap: 0.35rem;
    }

    .pay-detail-row dd {
        text-align: left;
    }

    .pay-detail-row-account dd {
        max-width: none;
    }

    .pay-account-copy {
        justify-content: space-between;
        width: 100%;
    }
}
