/* PMJ Gold — shared cream/gold theme */

/* Design tokens. Warm neutrals, three elevation steps, one motion curve. */
:root {
    --ink: #211a14;
    --muted: #8b7a66;
    --hair: rgba(120, 84, 30, 0.13);
    --hair-strong: rgba(120, 84, 30, 0.22);
    --surface: #ffffff;
    --surface-2: #fffdf8;
    --elev-1: 0 1px 2px rgba(60, 32, 8, .05), 0 2px 6px rgba(60, 32, 8, .04);
    --elev-2: 0 1px 2px rgba(60, 32, 8, .05), 0 8px 24px -6px rgba(60, 32, 8, .10), 0 2px 6px rgba(60, 32, 8, .05);
    --elev-3: 0 2px 4px rgba(60, 32, 8, .06), 0 24px 48px -12px rgba(60, 32, 8, .18), 0 8px 16px -8px rgba(60, 32, 8, .10);
    --ring: 0 0 0 3px rgba(201, 168, 76, .30);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body { font-family: 'Inter', sans-serif; background-color: #fbf7ee; background-image: radial-gradient(1100px 520px at 8% -10%, rgba(212, 163, 71, .10), transparent 62%), radial-gradient(900px 480px at 100% -4%, rgba(74, 18, 42, .055), transparent 58%); background-attachment: fixed; background-repeat: no-repeat; color: var(--ink); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { letter-spacing: -.018em; }
::selection { background: #f0dcb0; color: #3c2a16; }
* { scrollbar-width: thin; scrollbar-color: rgba(180, 140, 60, .45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(#dcc084, #b98c37); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#cfae66, #a37a2c); background-clip: padding-box; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: none; box-shadow: var(--ring); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.gold-gradient { background: linear-gradient(135deg, #fbf2d5 0%, #d4a347 50%, #86541b 100%); box-shadow: var(--elev-2), inset 0 1px 0 rgba(255, 255, 255, .28); }
.gold-text-gradient { background: linear-gradient(135deg, #86541b, #d4a347, #86541b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.maroon-btn { background: linear-gradient(135deg, #5c142b 0%, #3c1021 100%); transition: transform var(--transition), box-shadow var(--transition), filter var(--transition); box-shadow: 0 1px 2px rgba(40, 10, 20, .18), 0 6px 18px -8px rgba(60, 16, 33, .55); }
.maroon-btn:hover { background: linear-gradient(135deg, #4A122A 0%, #2a0a16 100%); box-shadow: 0 10px 26px -8px rgba(60, 16, 33, .6), inset 0 1px 0 rgba(255, 255, 255, .12); transform: translateY(-1px); }
.maroon-btn:active, .gold-gradient:active { transform: translateY(0) scale(.985); }
.card-hover { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--elev-3); border-color: rgba(201, 168, 76, .38); }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.header { background-color: rgba(251, 247, 238, 0.72); border-bottom: 1px solid var(--hair); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px) saturate(1.35); -webkit-backdrop-filter: blur(18px) saturate(1.35); transition: box-shadow var(--transition), background-color var(--transition); }
.header.scrolled { background-color: rgba(251, 247, 238, 0.92); box-shadow: 0 10px 30px -12px rgba(60, 32, 8, .18); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; height: 88px; }

/* Surfaces — one card language for the whole app */
.panel { background: var(--surface); border: 1px solid var(--hair); border-radius: 22px; box-shadow: var(--elev-2); }
.panel-flat { background: #fdf8ec; border: 1px solid rgba(212, 163, 71, .28); border-radius: 18px; box-shadow: var(--elev-1); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.5rem; border-bottom: 1px solid var(--hair); }
.panel-title { font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #3f2d1c; }
.eyebrow { font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Brand lockup — values copied verbatim from pmjgold.in/css/base/styles.css */
:root { --gold: #c9a84c; --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1); --font-logo: 'Outfit', 'Segoe UI', sans-serif; --logo-plum: #4a152c; --logo-gold-text: #b59449; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; color: inherit; transition: transform var(--transition); }
.logo:hover { transform: translateY(-1px); }
.logo-mark { flex-shrink: 0; padding: 4px; background: linear-gradient(145deg, #1a1a1a, #0a0a0a); border-radius: 12px; border: 2px solid rgba(212, 175, 55, 0.45); box-shadow: 0 3px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(212, 175, 55, 0.15); transition: box-shadow var(--transition), border-color var(--transition); transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.logo:hover .logo-mark { border-color: var(--gold); box-shadow: 0 6px 24px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(212, 175, 55, 0.25); }
.logo-icon-img { display: block; height: 58px; width: auto; max-width: none; border-radius: 8px; object-fit: contain; image-rendering: -webkit-optimize-contrast; image-rendering: high-quality; -webkit-user-drag: none; user-select: none; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.logo-brand { display: flex; flex-direction: column; gap: 4px; line-height: 1; min-width: 0; }
.logo-name { display: flex; align-items: baseline; gap: 7px; position: relative; padding-bottom: 6px; }
.logo-name::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: linear-gradient(90deg, var(--logo-plum) 0%, var(--logo-plum) 42%, var(--logo-gold-text) 100%); border-radius: 1px; }
.logo-pmj, .logo-gold { font-family: var(--font-logo); font-size: 1.72rem; font-weight: 800; font-style: normal; letter-spacing: 0.07em; line-height: 1; text-transform: uppercase; }
.logo-pmj { color: var(--logo-plum); -webkit-text-fill-color: var(--logo-plum); }
.logo-gold { color: var(--logo-gold-text); -webkit-text-fill-color: var(--logo-gold-text); }
.logo-tagline { font-family: var(--font-logo); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--logo-plum); white-space: nowrap; }
.logo-footer { display: inline-flex; margin-bottom: 16px; }
.logo-footer-full { display: block; height: clamp(110px, 22vw, 148px); width: auto; max-width: min(220px, 70vw); border-radius: 14px; border: 2px solid rgba(212, 175, 55, 0.3); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(201, 168, 76, 0.12); object-fit: contain; image-rendering: auto; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.logo-footer:hover .logo-footer-full { transform: translateY(-3px) translateZ(0); border-color: rgba(212, 175, 55, 0.55); box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25); }
@media (min-width: 769px) and (max-width: 1100px) { .logo-tagline { display: none; } }
/* Phone header — one unwrapping row: the tagline is dropped rather than ellipsized,
   the brand shrinks, and the secondary actions become equal square icon buttons. */
@media (max-width: 768px) { .header-inner { height: 66px; gap: 10px; padding-inline: 1rem; } .logo { gap: 8px; flex: 0 1 auto; min-width: 0; } .logo-mark { padding: 3px; } .logo-brand { gap: 0; justify-content: center; overflow: visible; } .logo-name { gap: 5px; padding-bottom: 4px; white-space: nowrap; } .logo-icon-img { height: 38px; } .logo-pmj, .logo-gold { font-size: 1.1rem; letter-spacing: 0.06em; } .logo-tagline { display: none; } .hdr-icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 14px; } .logo-footer-full { height: clamp(96px, 28vw, 128px); } }
@media (max-width: 430px) { .header-inner { padding-inline: .75rem; gap: 8px; } .logo { gap: 6px; } .logo-icon-img { height: 34px; } .logo-pmj, .logo-gold { font-size: .98rem; letter-spacing: 0.05em; } }
/* Modals — deeper wash, single elevated card language */
.modal-backdrop { position: fixed; inset: 0; background: rgba(38, 24, 8, .5); backdrop-filter: blur(10px) saturate(1.25); -webkit-backdrop-filter: blur(10px) saturate(1.25); z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 1rem; overflow-y: auto; }
.modal-backdrop.open { display: flex; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px) scale(.98) } to { opacity: 1; transform: none } }
/* auto margins keep the card centred when it fits, and pin it to the top so the
   backdrop can scroll to the rest on short screens */
.modal-card { margin: auto; animation: slideUp .32s var(--ease); box-shadow: var(--elev-3); }
/* Dialog chrome — every dialog opens with the brand lockup above a hairline */
.dialog-head { margin-bottom: 1.15rem; }
.dialog-brand-row { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.dialog-brand-row .logo-mark-sm { padding: 2px; border-radius: 9px; border-width: 1px; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.dialog-brand-row .logo-icon-sm { height: 24px; border-radius: 6px; }
.logo-name-sm { gap: 4px; padding-bottom: 0; }
.logo-name-sm::after { display: none; }
.logo-name-sm .logo-pmj, .logo-name-sm .logo-gold { font-size: .92rem; letter-spacing: .06em; }
.dialog-title { margin: .9rem 0 .25rem; font-size: 1.18rem; font-weight: 900; color: var(--ink); }
.dialog-sub { font-size: .75rem; color: var(--muted); }
.dialog-x { margin-left: auto; width: 2rem; height: 2rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #9ca3af; transition: color .18s var(--ease), background-color .18s var(--ease); }
.dialog-x:hover { color: #374151; background: #f3f4f6; }
.dialog-cta { padding: .7rem 1rem; border-radius: 14px; font-size: .8rem; font-weight: 800; letter-spacing: .01em; box-shadow: var(--elev-1); transition: background-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease), filter .18s var(--ease); }
.dialog-cta:active { transform: translateY(1px); }
.dialog-cta:focus-visible { outline: none; box-shadow: var(--ring); }
.cta-primary { background: linear-gradient(135deg, #5c142b, #3c1021); color: #f5edd3; box-shadow: var(--elev-2), inset 0 1px 0 rgba(255, 255, 255, .14); }
.cta-primary:hover { filter: brightness(1.14); }
.cta-danger { background: linear-gradient(135deg, #be123c, #881337); color: #fff; box-shadow: var(--elev-2), inset 0 1px 0 rgba(255, 255, 255, .16); }
.cta-danger:hover { filter: brightness(1.1); }
.cta-quiet { background: var(--surface-2); border: 1px solid var(--hair-strong); color: #6f441c; }
.cta-quiet:hover { background: #fbf3e2; }
.toast-logo { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; background: #fffdf8; padding: 2px; flex-shrink: 0; }
/* Auth cards — the same lockup the dialogs open with, centred above the page title */
.auth-head { text-align: center; margin-bottom: 1.75rem; }
.auth-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 1.15rem; }
.auth-brand .logo-mark { padding: 3px; border-radius: 13px; border-width: 1.5px; }
.auth-brand .logo-icon-img { height: 36px; border-radius: 8px; }
.auth-brand .logo-pmj, .auth-brand .logo-gold { font-size: 1.24rem; }
.auth-title { font-size: 1.5rem; font-weight: 900; color: var(--ink); }
.auth-sub { font-size: .75rem; color: var(--muted); margin-top: .35rem; }
@keyframes shimmer { 0% { background-position: -400px 0 } 100% { background-position: 400px 0 } }
.shimmer { background: linear-gradient(90deg, #f3ead2 25%, #fdfaf1 50%, #f3ead2 75%); background-size: 800px 100%; animation: shimmer 1.6s infinite linear; }
.spin-hover:hover i.fa-arrows-rotate { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* Data tables — quiet hairlines, one gold accent on the active row */
.table-lux { font-variant-numeric: tabular-nums; }
.table-lux thead th { background: linear-gradient(135deg, #3c1021, #4A122A); color: #f5edd3; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding-block: .8rem; box-shadow: inset 0 -1px 0 rgba(201, 168, 76, .35); }
.table-lux thead th:first-child { padding-left: 1.5rem; }
.table-lux thead th:last-child { padding-right: 1.5rem; }
.table-lux tbody td { vertical-align: middle; }
.table-lux tbody td:first-child { padding-left: 1.5rem; }
.table-lux tbody td:last-child { padding-right: 1.5rem; }
.table-lux tbody tr { border-bottom: 1px solid var(--hair); transition: background-color .16s var(--ease), box-shadow .16s var(--ease); }
.table-lux tbody tr:nth-child(even) { background-color: #fdfbf5; }
.table-lux tbody tr:hover { background-color: #fbf3e2; box-shadow: inset 3px 0 0 #d4a347; }
.table-lux tbody tr:last-child { border-bottom: 0; }
/* Empty table placeholder: quiet hatch, and no row-hover affordance on a row with no data */
.table-empty { padding: 2.25rem 1.5rem; text-align: center; color: var(--muted); font-size: .8rem; font-weight: 600; background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(201, 168, 76, .05) 12px 24px); }
.table-lux tbody tr:has(.table-empty):hover { background-color: transparent; box-shadow: none; }
.badge-lux { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(120, 84, 30, .10); box-shadow: var(--elev-1); white-space: nowrap; }

/* Fields — inset paper, gold ring on focus, chevron on selects */
.form-lux { width: 100%; border-radius: 14px; border: 1px solid var(--hair-strong); background-color: var(--surface-2); color: var(--ink); padding: .65rem .9rem; font-size: .875rem; outline: none; box-shadow: inset 0 1px 2px rgba(60, 32, 8, .045); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease); }
.form-lux:hover:not(:disabled):not(:focus) { border-color: rgba(201, 168, 76, .55); }
.form-lux:focus { border-color: var(--gold); background-color: var(--surface); box-shadow: var(--ring); }
.form-lux::placeholder { color: #b5a795; }
.form-lux:disabled, .form-lux[readonly] { background-color: #f6f1e4; color: var(--muted); cursor: not-allowed; }
select.form-lux { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' fill='none' stroke='%238b7a66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 12px; padding-right: 2.3rem; }
textarea.form-lux { min-height: 5rem; resize: vertical; }

/* ── Gifting ───────────────────────────────────────────────────────────────
   One card language for both the studio preview and the public reveal page:
   three themes on the same element, selected chips driven by ARIA state so the
   JS never has to know about colour classes. */
.gift-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; padding: 2.1rem 1.5rem 1.9rem; text-align: center; border: 1px solid rgba(201, 168, 76, .4); box-shadow: var(--elev-2); background: linear-gradient(150deg, #fffdf7, #f7ecd4); color: #3f2d1c; transition: box-shadow var(--transition), transform var(--transition); }
.gift-card[data-theme="velvet"] { background: linear-gradient(150deg, #5c142b, #3c1021 55%, #2a0a16); border-color: rgba(212, 163, 71, .5); color: #f5edd3; box-shadow: var(--elev-3); }
.gift-card[data-theme="ivory"] { background: #fffefb; border-color: rgba(120, 84, 30, .18); color: var(--ink); box-shadow: var(--elev-1); }
.gift-card-ribbon { position: absolute; inset: -40% -60%; z-index: -1; background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%); animation: giftSheen 6.5s var(--ease) infinite; pointer-events: none; }
.gift-card[data-theme="velvet"] .gift-card-ribbon { background: linear-gradient(100deg, transparent 38%, rgba(235, 216, 167, .28) 50%, transparent 62%); }
@keyframes giftSheen { 0% { transform: translateX(-55%) } 55%, 100% { transform: translateX(55%) } }
.gift-card-occasion { color: #a77020; margin: 0 0 .9rem; }
.gift-card[data-theme="velvet"] .gift-card-occasion { color: #ebd8a7; }
.gift-card[data-theme="ivory"] .gift-card-occasion { color: #86541b; }
.gift-card-to { font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .55; margin: 0; }
.gift-card-name { font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; margin: .15rem 0 .8rem; line-height: 1.2; }
.gift-card[data-theme="velvet"] .gift-card-name { background: linear-gradient(135deg, #f5edd3, #d4a347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gift-card-metal { display: inline-block; font-size: .74rem; font-weight: 900; letter-spacing: .05em; padding: .4rem .85rem; border-radius: 999px; background: rgba(201, 168, 76, .16); border: 1px solid rgba(201, 168, 76, .38); margin-bottom: .9rem; }
.gift-card[data-theme="velvet"] .gift-card-metal { background: rgba(235, 216, 167, .14); color: #f5edd3; }
.gift-card-message { font-size: .84rem; font-weight: 500; line-height: 1.7; white-space: pre-line; max-width: 30ch; margin: 0 auto .9rem; opacity: .85; min-height: 1.4em; }
.gift-card-from { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin: 0; }
.gift-card-seal { position: absolute; right: 1rem; bottom: 1rem; width: 3.4rem; height: 3.4rem; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: linear-gradient(135deg, #fbf2d5, #d4a347 55%, #86541b); color: #3c1021; font-size: 1.15rem; box-shadow: var(--elev-2), inset 0 1px 0 rgba(255, 255, 255, .4); border: 1px solid rgba(255, 255, 255, .45); }
.gift-card[data-state="sealed"] > :not(.gift-card-ribbon):not(.gift-card-seal) { opacity: .22; filter: blur(3px); }
.gift-card[data-state="open"][data-unseal] .gift-card-seal { animation: giftUnseal .55s var(--ease) both; }
.gift-card[data-state="open"] > :not(.gift-card-ribbon):not(.gift-card-seal) { animation: giftPop .5s var(--ease) both; }
.gift-card[data-state="open"] > :nth-child(3) { animation-delay: .1s }
.gift-card[data-state="open"] > :nth-child(4) { animation-delay: .18s }
.gift-card[data-state="open"] > :nth-child(5) { animation-delay: .26s }
.gift-card[data-state="open"] > :nth-child(6) { animation-delay: .34s }
.gift-card[data-state="open"] > :nth-child(7) { animation-delay: .42s }
@keyframes giftUnseal { to { opacity: 0; transform: scale(.35) rotate(28deg) } }
@keyframes giftPop { from { opacity: 0; transform: translateY(14px) scale(.97) } to { opacity: 1; filter: none; transform: none } }

/* Choice chips and mode tabs — state comes from ARIA, so markup stays static */
.gift-occasion, .gift-theme, .gift-preset, .gift-part { border: 1px solid var(--hair-strong); background: var(--surface-2); color: #6f441c; border-radius: 14px; font-size: .68rem; font-weight: 800; letter-spacing: .01em; padding: .5rem .85rem; box-shadow: var(--elev-1); transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.gift-occasion:hover, .gift-theme:hover, .gift-preset:hover, .gift-part:hover { border-color: var(--gold); background: #fdf6e6; }
.gift-occasion[aria-pressed="true"], .gift-theme[aria-pressed="true"], .gift-preset[aria-pressed="true"], .gift-part[aria-pressed="true"] { background: linear-gradient(135deg, #5c142b, #3c1021); border-color: #3c1021; color: #f5edd3; box-shadow: var(--elev-2), inset 0 1px 0 rgba(255, 255, 255, .14); transform: translateY(-1px); }
.gift-tab { border: 1px solid var(--hair-strong); background: var(--surface-2); color: #6f441c; border-radius: 18px; font-size: .74rem; font-weight: 800; padding: .65rem 1.1rem; box-shadow: var(--elev-1); transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.gift-tab:hover { border-color: var(--gold); background: #fdf6e6; }
.gift-tab[aria-selected="true"] { background: linear-gradient(135deg, #5c142b, #3c1021); border-color: #3c1021; color: #f5edd3; box-shadow: var(--elev-2), inset 0 1px 0 rgba(255, 255, 255, .14); }
.gift-member-ok { color: #047857; }
.gift-member-no { color: #92400e; }

/* Printed gift certificate — the reveal page is the only thing on the sheet */
@media print {
    .topbar, .header, .site-footer, #toast-root, .gift-no-print { display: none !important; }
    body { background: #fff !important; }
    .gift-print { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
    .gift-card { box-shadow: none !important; break-inside: avoid; }
}
