:root {
  --ink: #29130f;
  --wine: #6e1720;
  --wine-dark: #3e0d15;
  --saffron: #ef9f28;
  --gold: #f6c75b;
  --cream: #fff8e9;
  --paper: #fffdf6;
  --muted: #7b655d;
  --line: rgba(72, 30, 21, .14);
  --green: #226c50;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: "DM Sans", sans-serif; background: radial-gradient(circle at 8% 90%, rgba(239,159,40,.18), transparent 28%), linear-gradient(120deg, #fff8e9 0 55%, #f8e6c8 100%); position: relative; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .25; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-header { width: min(1180px, calc(100% - 40px)); height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .18em; font-size: .84rem; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--cream); background: var(--wine); transform: rotate(45deg); border-radius: 8px 2px; }
.brand-mark::first-letter { transform: rotate(-45deg); }
.header-note { color: var(--wine); text-transform: uppercase; font-size: .72rem; letter-spacing: .22em; font-weight: 700; }

.registration-layout { width: min(1240px, calc(100% - 40px)); margin: 42px auto 50px; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 56px); align-items: start; position: relative; z-index: 1; }
.event-story { min-height: 780px; padding: clamp(36px, 5vw, 68px); position: sticky; top: 24px; display: flex; align-items: flex-start; overflow: hidden; color: #fff8e9; border-radius: 5px 54px 5px 54px; box-shadow: 0 32px 80px rgba(62,13,21,.26); isolation: isolate; }
.hero-image { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(37,6,10,.9) 0%, rgba(62,13,21,.7) 42%, rgba(41,6,9,.14) 72%, rgba(26,4,5,.34) 100%), linear-gradient(90deg, rgba(53,8,13,.54), transparent 75%); }
.event-story::after { content: ""; position: absolute; inset: 15px; z-index: -1; border: 1px solid rgba(246,199,91,.36); border-radius: 3px 42px 3px 42px; pointer-events: none; }
.story-content { width: 100%; position: relative; z-index: 1; }
.eyebrow, .step { margin: 0 0 14px; color: var(--wine); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; }
.event-story .eyebrow { color: var(--gold); }
h1, h2 { font-family: "Yeseva One", serif; font-weight: 400; }
.event-story h1 { max-width: 500px; margin: 0; font-size: clamp(3.7rem, 5.8vw, 6.2rem); line-height: .9; letter-spacing: -.045em; text-shadow: 0 4px 32px rgba(23,2,5,.35); }
.event-story h1 em { color: var(--gold); font-style: normal; }
.intro { max-width: 470px; margin: 28px 0; font-size: 1.02rem; line-height: 1.7; color: rgba(255,248,233,.8); text-shadow: 0 2px 16px rgba(23,2,5,.7); }
.event-details { display: flex; gap: 38px; max-width: 470px; padding-top: 24px; border-top: 1px solid rgba(255,248,233,.28); }
.event-details > div { display: flex; align-items: center; gap: 12px; color: rgba(255,248,233,.82); line-height: 1.3; font-size: .88rem; }
.detail-number, .detail-icon { color: var(--gold); font: 2rem/1 "Yeseva One", serif; }
.floating-diya { position: absolute; right: 42px; bottom: 38px; width: 74px; height: 72px; filter: drop-shadow(0 0 22px rgba(255,178,52,.7)); }
.floating-diya .lamp { position: absolute; bottom: 0; left: 4px; width: 66px; height: 30px; background: linear-gradient(180deg, #f6c75b, #b94e1a); border-radius: 10% 10% 55% 55%; transform: perspective(50px) rotateX(-18deg); border-top: 3px solid #ffe49b; }
.floating-diya .flame { position: absolute; z-index: 1; left: 29px; bottom: 28px; width: 17px; height: 30px; background: radial-gradient(circle at 50% 65%, #fff8c9 0 18%, #ffc644 40%, #ee6b1e 70%); border-radius: 70% 20% 65% 35%; transform: rotate(8deg); animation: flicker 2.5s ease-in-out infinite; }

.form-card { padding: clamp(28px, 4vw, 50px); background: rgba(255,253,246,.94); border: 1px solid rgba(110,23,32,.12); border-radius: 4px 42px 4px 42px; box-shadow: 0 30px 80px rgba(71,28,17,.12); backdrop-filter: blur(12px); position: relative; }
.festive-sparkles { position: absolute; top: 24px; right: 28px; color: var(--saffron); pointer-events: none; }
.festive-sparkles span { position: absolute; font-size: .75rem; animation: twinkle 2.8s ease-in-out infinite; }
.festive-sparkles span:nth-child(1) { right: 20px; top: -3px; }.festive-sparkles span:nth-child(2) { right: 1px; top: 14px; animation-delay: .8s; }.festive-sparkles span:nth-child(3) { right: 33px; top: 26px; font-size: .45rem; animation-delay: 1.4s; }
.card-heading { display: flex; justify-content: space-between; gap: 25px; align-items: start; margin-bottom: 35px; }
.card-heading h2, .success-panel h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.price-note { padding: 8px 0 8px 16px; border-left: 2px solid var(--saffron); color: var(--muted); font-size: .77rem; line-height: 1.6; white-space: nowrap; }
form { display: grid; gap: 21px; }
label, legend { color: var(--ink); font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
label > span { color: var(--wine); }
label small { color: var(--muted); font-weight: 400; float: right; }
input:not([type="checkbox"]), textarea { width: 100%; margin-top: 8px; border: 0; border-bottom: 1px solid #cdbcb0; background: transparent; padding: 10px 2px 11px; color: var(--ink); outline: none; border-radius: 0; }
textarea { border: 1px solid #d8c8bd; padding: 12px; resize: vertical; border-radius: 3px 12px 3px 12px; }
input:focus, textarea:focus { border-color: var(--wine); box-shadow: 0 2px 0 -1px var(--wine); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
fieldset { padding: 0; border: 0; margin: 3px 0; }
legend { margin-bottom: 4px; }
.counter-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
.counter-row strong, .counter-row small { display: block; }.counter-row strong { font-size: .9rem; }.counter-row small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.counter { display: flex; align-items: center; gap: 13px; }
.counter button { width: 31px; height: 31px; border: 1px solid #cfbcb0; border-radius: 50%; background: transparent; color: var(--wine); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: .2s; }
.counter button:hover { color: white; background: var(--wine); border-color: var(--wine); transform: scale(1.05); }
.counter output { width: 20px; text-align: center; font-weight: 700; }
.consent { display: flex; gap: 10px; line-height: 1.5; font-weight: 400; color: var(--muted); }
.consent input { margin: 3px 0 0; accent-color: var(--wine); }
.total-row { display: flex; justify-content: space-between; align-items: end; padding: 18px 0 2px; border-top: 1px solid var(--line); }
.total-row span { color: var(--muted); }.total-row strong { font: 2rem/1 "Yeseva One", serif; color: var(--wine); }
.bank-preview { padding: 17px; border: 1px solid rgba(110,23,32,.16); border-radius: 3px 16px 3px 16px; background: linear-gradient(135deg, rgba(239,159,40,.09), rgba(110,23,32,.035)); }
.bank-preview-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.bank-preview-heading strong, .bank-preview-heading small { display: block; }.bank-preview-heading strong { font-size: .82rem; }.bank-preview-heading small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.bank-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; color: var(--cream); background: var(--wine); font: 1rem "Yeseva One", serif; }
.bank-preview dl { display: grid; grid-template-columns: 1.15fr .8fr 1fr; gap: 12px; margin: 0; padding-top: 13px; border-top: 1px solid var(--line); }
.bank-preview dl div { min-width: 0; }.bank-preview dt { color: var(--muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; }.bank-preview dd { margin: 4px 0 0; font-size: .78rem; font-weight: 700; overflow-wrap: anywhere; }
.primary-button { border: 0; padding: 16px 20px; color: #fff9e9; background: var(--wine); border-radius: 3px 14px 3px 14px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; box-shadow: 0 9px 20px rgba(110,23,32,.2); transition: transform .2s, background .2s; }
.primary-button:hover { background: var(--wine-dark); transform: translateY(-2px); }.primary-button:disabled { opacity: .65; cursor: wait; }
.message { padding: 11px 13px; border-radius: 4px; font-size: .82rem; }.error { background: #fce8e5; color: #8b1d1d; }
.success-panel { text-align: center; padding: 20px 0; }.success-icon { display: grid; place-items: center; margin: 0 auto 24px; width: 58px; height: 58px; border-radius: 50%; color: white; background: var(--green); font-size: 1.5rem; }.success-panel > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; max-width: 480px; margin: 20px auto; }.success-panel dl { margin: 30px 0 0; border: 1px solid var(--line); text-align: left; }.success-panel dl div { display: flex; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); }.success-panel dl div:last-child { border: 0; }.success-panel dt { color: var(--muted); }.success-panel dd { margin: 0; font-weight: 700; }
footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; position: relative; z-index: 1; }

.admin-body { background: #f8f1e5; }.admin-header { width: min(1320px, calc(100% - 40px)); }.admin-main { width: min(1320px, calc(100% - 40px)); margin: 55px auto; position: relative; z-index: 1; }.login-card { width: min(450px, 100%); margin: 12vh auto; padding: 42px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px 36px; box-shadow: 0 25px 70px rgba(71,28,17,.1); }.login-card h1 { font-size: 2.5rem; margin: 0 0 12px; }.login-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; margin-bottom: 28px; }.text-button { border: 0; color: var(--wine); background: none; font-weight: 700; cursor: pointer; }.dashboard-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; }.dashboard-title h1 { margin: 0; font-size: 3.4rem; }.search-box { display: flex; gap: 8px; align-items: center; width: min(350px, 100%); background: var(--paper); padding: 4px 14px; border: 1px solid var(--line); border-radius: 30px; }.search-box input { border: 0; margin: 0; padding: 10px; }.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 35px 0 20px; }.summary-grid article { min-height: 130px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px 18px 3px 18px; display: flex; flex-direction: column; }.summary-grid article > span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }.summary-grid strong { display: block; margin-top: auto; font: 2.25rem/1 "Yeseva One", serif; }.summary-grid small { color: var(--muted); margin-top: 8px; }.summary-grid .paid-card { color: white; background: var(--green); }.summary-grid .paid-card > span { color: rgba(255,255,255,.7); }.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 3px 20px; }.table-wrap table { width: 100%; border-collapse: collapse; min-width: 970px; }.table-wrap th { padding: 15px 18px; color: var(--muted); background: #f3eadc; text-align: left; text-transform: uppercase; letter-spacing: .1em; font-size: .65rem; }.table-wrap td { padding: 17px 18px; border-top: 1px solid var(--line); vertical-align: top; font-size: .82rem; }.table-wrap td small { display: block; color: var(--muted); margin-top: 5px; }.table-wrap details { color: var(--muted); margin-top: 8px; max-width: 250px; }.table-wrap summary { color: var(--wine); cursor: pointer; }.status { border: 1px solid; border-radius: 20px; padding: 6px 10px; font-weight: 700; font-size: .75rem; }.status.pending { color: #8b5b0b; border-color: #e5bd70; background: #fff4d8; }.status.paid { color: var(--green); border-color: #8ebda9; background: #e8f5ef; }.empty-state { text-align: center; color: var(--muted); padding: 50px; }

@media (max-width: 850px) {
  .registration-layout { grid-template-columns: 1fr; margin-top: 25px; }.event-story { position: relative; top: auto; min-height: 620px; padding: 46px 38px; }.hero-image { object-position: 57% center; }.event-story h1 { font-size: clamp(3.4rem, 13vw, 5.5rem); }.form-card { padding: 30px 24px; }.summary-grid { grid-template-columns: 1fr 1fr; }.dashboard-title { align-items: start; flex-direction: column; }.search-box { width: 100%; }
}
@media (max-width: 520px) {
  .site-header, .registration-layout, footer, .admin-main, .admin-header { width: calc(100% - 28px); }.site-header { height: 70px; }.registration-layout { gap: 24px; }.event-story { min-height: 560px; padding: 36px 28px; border-radius: 4px 34px; }.event-story::after { inset: 10px; border-radius: 3px 27px; }.hero-image { object-position: 59% center; }.event-story h1 { font-size: clamp(3.25rem, 15vw, 4.7rem); }.intro { font-size: .92rem; }.field-row { grid-template-columns: 1fr; }.form-card { border-radius: 3px 25px; }.card-heading { flex-direction: column; }.price-note { border-left: 0; border-top: 2px solid var(--saffron); padding: 8px 0 0; }.event-details { gap: 20px; }.floating-diya { right: 28px; bottom: 25px; transform: scale(.8); }.summary-grid { grid-template-columns: 1fr; }.login-card { padding: 30px 22px; }.dashboard-title h1 { font-size: 2.8rem; }
}
@media (max-width: 390px) {
  .bank-preview dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .event-story > *, .form-card { animation: reveal .65s both; }.event-story > *:nth-child(2) { animation-delay: .08s; }.event-story > *:nth-child(3) { animation-delay: .16s; }.form-card { animation-delay: .18s; }
  @keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes flicker { 0%, 100% { transform: rotate(8deg) scale(1); } 45% { transform: rotate(-4deg) scale(.92, 1.06); } 70% { transform: rotate(3deg) scale(1.04, .95); } }
  @keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.75) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(25deg); } }
}
