/* Pushpak weds Akshata — shared styles (invitation, share page, admin) */
:root {
  --maroon: #6B1424; --maroon-d: #5A1020; --maroon-dd: #4A0D17; --maroon-ddd: #3E0A14; --night: #1E0408;
  --gold: #C9A04E; --gold-l: #E8C982; --gold-t: #8A5E14; --saffron: #D08A2E;
  --ivory: #FBF6EC; --paper: #FFFDF8; --sand: #F4E8D1; --sand-2: #F1E2C6; --line: #E3D2B2; --line-2: #EFE4CF;
  --ink: #2B1A14; --ink-2: #3D2A20; --muted: #5B4436; --muted-2: #6A5446;
  --head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Mukta', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --script: 'Pinyon Script', 'Cormorant Garamond', serif;
  --tabbar: 78px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--maroon-ddd); color: var(--ink);
  font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--maroon); -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--maroon-ddd); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.shell { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--ivory); box-shadow: 0 0 60px rgba(0,0,0,.35); }

/* type */
.h { font-family: var(--head); font-style: italic; font-weight: 600; letter-spacing: .005em; }
.num { font-family: var(--head); font-style: normal; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.kicker { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-t); }
.page-title { margin: 0; font-size: 40px; line-height: 1.05; color: var(--maroon); }
.page-sub { margin: 4px 0 0; font-size: 17px; color: var(--muted); }
.mono { font-family: var(--script); font-style: normal; font-weight: 400; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px;
  border-radius: 14px; border: 1.5px solid transparent; font-size: 18px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, background .2s ease; line-height: 1.2; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--maroon); color: var(--ivory); }
.btn-primary:hover { background: var(--maroon-d); color: var(--ivory); }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-gold { background: var(--gold-l); color: var(--maroon-ddd); font-weight: 700; }
.btn-gold:hover { color: var(--maroon-ddd); }
.btn-soft { background: var(--sand-2); color: var(--maroon-dd); }
.btn-line { border-color: var(--gold); color: var(--maroon); background: transparent; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(251,246,236,.14); color: var(--ivory);
}
.icon-btn svg { width: 22px; height: 22px; }

/* ornaments */
.zari { height: 16px; background: var(--maroon-d) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M0 0L8 12L16 0Z' fill='%23C9A04E'/%3E%3Ccircle cx='8' cy='3.5' r='1.5' fill='%235A1020'/%3E%3C/svg%3E") repeat-x; }
.zari.up { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M0 16L8 4L16 16Z' fill='%23C9A04E'/%3E%3Ccircle cx='8' cy='12.5' r='1.5' fill='%235A1020'/%3E%3C/svg%3E"); }
.toran { width: 100%; height: auto; }
.divider { display: flex; align-items: center; gap: 10px; width: 100%; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #DCC7A0; }
.divider svg { width: 56px; height: 25px; color: #B8893A; }

/* monogram badge */
.badge-mono { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold); padding: 3px; background: var(--ivory); flex-shrink: 0; }
.badge-mono span { width: 100%; height: 100%; border-radius: 50%; background: var(--maroon); display: flex; align-items: center; justify-content: center; }
.badge-mono svg { width: 32px; height: 32px; }

/* cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pill-sand { background: var(--sand); color: var(--gold-t); }
.pill-maroon { background: var(--maroon); color: var(--ivory); }
.pill-gold { background: var(--gold-l); color: var(--maroon-ddd); }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes ping { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes hint { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }
.rise { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.fade { animation: fade .45s ease both; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 14px); transform: translateX(-50%);
  max-width: min(440px, calc(100% - 32px)); padding: 12px 18px; border-radius: 14px; background: var(--maroon-ddd); color: var(--ivory);
  font-size: 16px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); z-index: 60; animation: rise .3s ease both;
}
