:root {
    --ink:   #0f3f4b;
    --teal:  #2a9fb5;
    --gold:  #c9a961;
    --paper: #ffffff;
    --wash:  #faf6ee;
    --sand:  #f4ede0;
    --muted: #6b7c80;
    --line:  #e0ddd8;
    --serif: 'Playfair Display', Georgia, serif;
    --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--sans);
    background: var(--wash);
    color: var(--ink);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    width: 100%;
    max-width: 480px;
    padding: 0 1.25rem 3rem;
}

/* ── Header ── */
.hdr {
    text-align: center;
    padding: 1.8rem 0 1.4rem;
}
.hdr-logo {
    width: 120px;
    height: 68px;
    border-radius: 10px;
    object-fit: contain;
    border: 0;
    box-shadow: 0 2px 8px rgba(15,63,75,.15);
}
.hdr-name {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink);
    margin: .55rem 0 .2rem;
    line-height: 1.2;
}
.hdr-tag { font-size: .82rem; color: var(--muted); }

/* ── Reservation fee callout ── */
.resvfee {
    background: linear-gradient(135deg, #e8c46a 0%, var(--gold) 100%);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    color: #4a3000;
}
.resvfee-icon { font-size: 1.75rem; flex-shrink: 0; line-height: 1; }
.resvfee-amt  { font-size: 1.05rem; font-weight: 700; display: block; margin-bottom: .1rem; }
.resvfee-note { font-size: .78rem; opacity: .85; line-height: 1.4; }

.booking-ref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: .75rem 1rem;
    margin-bottom: .4rem;
}
.booking-ref-label { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.booking-ref-id { display: block; font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: .03em; }
.booking-ref-note { font-size: .76rem; color: var(--muted); margin: 0 0 1.4rem; line-height: 1.4; }

/* ── Section labels ── */
.sec-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 1.15rem 0 .55rem;
}

/* ── Payment card ── */
.pay-card {
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: .65rem;
    position: relative;
    overflow: hidden;
}
.pay-card.paypal-card { --accent: #003087; border-color: #c7d4ec; }
.pay-card.gotyme-card { --accent: #7b2ff7; border-color: #ddd0f7; }
.pay-card.bdo-card { --accent: #c41e3a; }
.pay-card.bpi-card { --accent: #bf0c10; }
.pay-card.unionbank-card { --accent: #003f8c; }
.pay-preferred {
    display: inline-block;
    background: #003087;
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 20px;
    vertical-align: middle;
    letter-spacing: .04em;
}
.pay-num-small { font-size: 1rem; letter-spacing: 0; }
.pay-num-large { font-size: 1.3rem; letter-spacing: .03em; }
.pay-num-plain { font-size: 1rem; letter-spacing: 0; }
.gotyme-local { text-align: center; padding: 4px 0 14px; }
.pay-local-label,
.pay-international-label {
    margin: 0;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}
.pay-local-note { margin: 8px 0 0; font-size: .75rem; color: var(--muted); }
.divider.pay-divider { margin: 0 0 14px; }
.wa-sub.other-messaging { margin-top: -.55rem; margin-bottom: .65rem; }
.pay-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent, var(--teal));
    border-radius: 12px 0 0 12px;
}
.pay-card-hdr {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .7rem;
}
.pay-logo   { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.pay-name   { font-size: .93rem; font-weight: 700; color: var(--ink); display: block; }
.pay-desc   { font-size: .73rem; color: var(--muted); }
.pay-num    {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .03em;
    font-variant-numeric: tabular-nums;
    margin-bottom: .15rem;
}
.pay-acct   { font-size: .76rem; color: var(--muted); margin-bottom: .75rem; }
.pay-acts   { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .65rem; }
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .52rem .95rem;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    transition: opacity .15s;
}
.copy-btn:active { opacity: .8; }
.ext-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .82rem;
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    padding: .52rem .1rem;
}
.ext-link:active { opacity: .7; }
.pay-how {
    font-size: .74rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ── Cash note ── */
.cash-note {
    background: var(--sand);
    border-radius: 12px;
    padding: .9rem 1.1rem;
    font-size: .83rem;
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 1.3rem;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}
.cash-note-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }

/* ── WhatsApp confirm ── */
.wa-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .95rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: var(--sans);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: .5rem;
    transition: opacity .15s;
    line-height: 1.2;
    text-align: center;
}
.wa-confirm:active { opacity: .85; }
.wa-sub {
    text-align: center;
    font-size: .74rem;
    color: var(--muted);
    margin-bottom: .9rem;
}
.confirm-alt-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.4rem;
}
.confirm-alt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .7rem;
    border-radius: 10px;
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: opacity .15s;
}
.confirm-alt:active { opacity: .85; }
.confirm-alt.line  { background: #06C755; }
.confirm-alt.email { background: #4b5563; }
.confirm-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
    margin: -.55rem 0 1.4rem;
}
.confirm-channel-grid .confirm-alt {
    min-width: 0;
    padding: .65rem .35rem;
    font-size: .76rem;
    text-align: center;
}
.confirm-alt.kakaotalk { background: #3c1e1e; }
.confirm-alt.wechat { background: #07c160; }
.confirm-alt.viber { background: #665cac; }
@media (max-width: 380px) {
    .confirm-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── QR popup ── */
.qr-popup-trigger {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1.1rem;
    background: #fff;
    color: var(--ink);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: var(--sans);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
}
.qr-popup-trigger:active { opacity: .8; }
.qr-popup-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.qr-popup-backdrop.open { display: flex; }
.qr-popup-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 300px;
    width: 100%;
    text-align: center;
    position: relative;
}
.qr-popup-box img { width: 100%; height: auto; border-radius: 10px; }
.qr-popup-title { margin: 0 0 12px; font-size: .9rem; font-weight: 800; }
.qr-popup-fallback {
    display: grid;
    gap: .65rem;
    padding: .9rem;
    color: var(--ink);
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .82rem;
    line-height: 1.45;
}
.qr-popup-fallback[hidden] { display: none; }
.qr-popup-fallback-link {
    display: inline-flex;
    justify-content: center;
    padding: .65rem .8rem;
    color: #fff;
    background: #25D366;
    border-radius: 8px;
    font-weight: 800;
}
.qr-popup-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: var(--wash);
    color: var(--ink);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}

/* ── Footer ── */
.divider     { border: none; border-top: 1px solid var(--line); margin: .2rem 0 1.2rem; }
.footer-link {
    display: block;
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
    text-decoration: none;
    padding: .3rem;
}
.footer-link:hover { color: var(--teal); }

/* ── Copy toast ── */
.copy-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(.5rem);
    background: var(--ink);
    color: #fff;
    padding: .65rem 1.3rem;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    pointer-events: none;
    white-space: nowrap;
    z-index: 100;
}
.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
