@import url("https://fonts.googleapis.com/css2?family=Anek+Gujarati:wght@400;500;600;700;800&display=swap");

:root {
    --maroon: #6f0d12;
    --maroon-dark: #3f0709;
    --gold: #c9972e;
    --gold-light: #f4d98d;
    --cream: #fff8e8;
    --paper: #fffdf8;
    --ink: #201713;
    --muted: #71635d;
    --blue: #173d73;
    --line: rgba(153, 104, 17, .22);
    --shadow: 0 22px 60px rgba(79, 35, 10, .16);
    --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: "Noto Sans Gujarati", "Shruti", "Nirmala UI", Arial, sans-serif;
    background: var(--cream);
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

.public-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 10%, rgba(230, 184, 70, .19), transparent 24rem),
        radial-gradient(circle at 90% 22%, rgba(124, 15, 18, .08), transparent 27rem),
        linear-gradient(180deg, #fffdf6 0%, #fff8e7 55%, #fffdf7 100%);
}
.page-glow { position: fixed; width: 330px; height: 330px; border-radius: 50%; filter: blur(90px); opacity: .22; pointer-events: none; z-index: -1; }
.glow-one { background: #e5ad2b; left: -110px; top: 30%; }
.glow-two { background: #7d1116; right: -120px; top: 55%; }

.sacred-header {
    border-top: 5px solid var(--gold);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 247, .93);
    backdrop-filter: blur(14px);
    position: relative;
}
.sacred-header::before, .sacred-header::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 70px;
    top: 5px;
    opacity: .16;
    background: radial-gradient(circle, var(--gold) 0 2px, transparent 3px) 0 0/14px 14px;
}
.sacred-header::before { left: 0; }
.sacred-header::after { right: 0; transform: scaleX(-1); }
.top-mantra {
    padding: 8px 16px;
    text-align: center;
    color: var(--maroon);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    border-bottom: 1px solid var(--line);
}
.brand-row {
    max-width: 1180px;
    margin: auto;
    padding: 25px 20px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
}
.brand-row h1 { margin: 5px 0 0; color: var(--maroon); font-size: clamp(27px, 4vw, 48px); line-height: 1.15; }
.eyebrow, .section-kicker { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase; }
.ornament { width: 52px; height: 52px; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; display: grid; place-items: center; font-size: 22px; box-shadow: inset 0 0 0 6px rgba(201,151,46,.08); }

.public-shell { max-width: 1180px; margin: 0 auto; padding: 42px 20px 80px; }
.event-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 30px; align-items: stretch; }
.premium-panel, .poster-card, .premium-form, .success-card, .install-card, .admin-panel, .login-card {
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.event-copy { padding: clamp(28px, 5vw, 52px); position: relative; overflow: hidden; }
.event-copy::after { content: "Рюд"; position: absolute; right: -18px; bottom: -50px; font-size: 180px; color: rgba(201,151,46,.08); transform: rotate(18deg); }
.event-copy h2 { color: var(--maroon); font-size: clamp(32px, 5vw, 60px); line-height: 1.08; margin: 12px 0 18px; }
.lead { color: var(--blue); font-size: 20px; line-height: 1.7; margin: 0 0 28px; max-width: 650px; }
.event-facts { display: grid; gap: 12px; }
.event-facts article { display: flex; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid rgba(201,151,46,.25); border-radius: 17px; background: linear-gradient(135deg, #fffdf8, #fff6dc); }
.fact-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--maroon); font-size: 20px; }
.event-facts small { display: block; color: var(--muted); font-size: 12px; }
.event-facts strong { color: var(--maroon-dark); }
.inviter-box { margin-top: 25px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, var(--maroon), #8d161b); color: white; text-align: center; position: relative; z-index: 1; }
.inviter-box span { color: var(--gold-light); font-weight: 800; display: block; margin-bottom: 5px; }
.inviter-box strong { font-size: 21px; }
.inviter-box p { margin: 4px 0 0; opacity: .86; }

.poster-card { margin: 0; padding: 10px; overflow: hidden; display: flex; flex-direction: column; }
.poster-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 19px; min-height: 560px; }
.poster-card figcaption { text-align: center; color: var(--muted); font-size: 12px; padding: 10px 5px 2px; }

.registration-section { margin-top: 62px; }
.form-heading { text-align: center; max-width: 750px; margin: 0 auto 26px; }
.form-heading h2 { margin: 7px 0 8px; color: var(--maroon); font-size: clamp(28px, 4vw, 45px); }
.form-heading p { color: var(--muted); margin: 0; line-height: 1.7; }
.premium-form { padding: clamp(24px, 5vw, 48px); position: relative; overflow: hidden; }
.premium-form::before { content: ""; height: 5px; position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(90deg, var(--maroon), var(--gold), var(--maroon)); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field-full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 800; color: #493630; margin-bottom: 9px; }
.form-field label span { color: #b5141c; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 2; font-size: 18px; }
.textarea-wrap .input-icon { top: 18px; transform: none; }
input, textarea, select {
    width: 100%;
    border: 1px solid #dfd4c2;
    background: #fffefa;
    border-radius: 14px;
    padding: 14px 15px;
    outline: none;
    transition: .2s ease;
    color: var(--ink);
}
.input-wrap input, .input-wrap textarea { padding-left: 47px; }
textarea { resize: vertical; min-height: 100px; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,151,46,.13); background: white; }
input[readonly] { background: #f7f2e8; color: var(--maroon); font-weight: 900; }
.dob-grid { display: grid; grid-template-columns: .7fr 1.2fr 1fr; gap: 12px; }
.helper { display: block; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.error-text { display: block; min-height: 18px; margin-top: 5px; color: #b51f27; font-size: 12px; }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select { border-color: #b51f27; box-shadow: 0 0 0 3px rgba(181,31,39,.08); }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0; padding: 15px; border-radius: 14px; background: #fff8e8; border: 1px dashed #dab763; cursor: pointer; line-height: 1.6; }
.consent-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--maroon); flex: 0 0 auto; }
.submit-btn {
    border: 0;
    min-height: 54px;
    padding: 14px 24px;
    border-radius: 15px;
    color: white;
    background: linear-gradient(135deg, var(--maroon), #9f1d23);
    box-shadow: 0 13px 25px rgba(111,13,18,.22);
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.premium-form > .submit-btn { width: 100%; font-size: 18px; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(111,13,18,.28); }
.submit-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.privacy-note { text-align: center; color: var(--muted); font-size: 12px; margin: 15px 0 0; }
.alert { padding: 14px 16px; border-radius: 13px; margin: 0 0 18px; line-height: 1.55; font-weight: 700; }
.alert-error { background: #fff0f0; color: #9b1018; border: 1px solid #efbfc2; }
.alert-success { background: #effaf1; color: #166b2c; border: 1px solid #b8dfc1; }

.public-footer { padding: 28px 20px 35px; text-align: center; display: flex; flex-direction: column; gap: 5px; background: var(--maroon-dark); color: white; border-top: 4px solid var(--gold); }
.public-footer span { opacity: .75; }
.public-footer a { margin-top: 10px; color: var(--gold-light); font-size: 12px; }

.success-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: linear-gradient(135deg, #fff8e3, #fff, #f9ead0); }
.success-shell { width: min(650px, 100%); position: relative; z-index: 2; }
.success-card { padding: clamp(30px, 6vw, 58px); text-align: center; }
.success-seal { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #18864a, #0fa65b); color: white; font-size: 42px; margin: 0 auto 22px; box-shadow: 0 16px 35px rgba(15,166,91,.22); }
.success-card h1 { color: var(--maroon); margin: 8px 0 15px; line-height: 1.35; }
.registration-id-box { margin: 28px 0; padding: 22px; border: 2px dashed var(--gold); border-radius: 18px; background: #fff8e9; }
.registration-id-box small { display: block; color: var(--muted); }
.registration-id-box strong { display: block; font-family: Arial,sans-serif; color: var(--maroon); font-size: clamp(28px, 7vw, 46px); letter-spacing: 2px; margin: 6px 0 12px; }
.registration-id-box button, .modal-card button { border: 0; border-radius: 10px; padding: 10px 15px; background: var(--maroon); color: white; cursor: pointer; font-weight: 800; }
.success-info { text-align: left; max-width: 390px; margin: auto; background: #f9f5eb; border-radius: 15px; padding: 15px 22px; }
.success-info p { margin: 8px 0; color: #4c3931; }
.save-note { color: var(--muted); }
.success-link { width: 100%; }
.success-modal { position: fixed; inset: 0; z-index: 20; background: rgba(34,14,10,.72); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; transition: .25s ease; }
.success-modal.hidden { opacity: 0; visibility: hidden; }
.modal-card { width: min(420px,100%); background: white; border: 1px solid var(--gold); border-radius: 25px; padding: 35px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal-icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: #e6f8ec; color: #168345; font-size: 34px; margin: auto; }
.modal-card h2 { color: var(--maroon); margin-bottom: 5px; }
.modal-card strong { display: block; font: 900 30px/1.2 Arial,sans-serif; color: var(--maroon); margin: 10px 0 20px; }

.install-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: #fff7e6; }
.install-card { width: min(700px,100%); padding: 42px; }
.install-card h1 { color: var(--maroon); }
.credential-box { padding: 18px; background: #fff9e9; border: 1px solid var(--gold-light); border-radius: 14px; }
.danger-note { color: #9d151b; font-weight: 800; }

/* Admin */
.admin-page { background: #f5f2ec; min-height: 100vh; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #521013, #2e0709); color: white; padding: 22px 18px; display: flex; flex-direction: column; z-index: 30; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 10px 9px 25px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #4d0b0e; background: linear-gradient(135deg, var(--gold-light), var(--gold)); font-size: 20px; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand small { opacity: .65; margin-top: 2px; }
.sidebar-nav { display: grid; gap: 7px; margin-top: 24px; }
.sidebar-nav a { text-decoration: none; color: rgba(255,255,255,.77); display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 12px; transition: .2s ease; }
.sidebar-nav a span { color: var(--gold-light); width: 22px; text-align: center; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,.11); color: white; transform: translateX(3px); }
.sidebar-footer { margin-top: auto; padding: 17px 13px; border-radius: 15px; background: rgba(255,255,255,.08); }
.sidebar-footer small, .sidebar-footer strong { display: block; }
.sidebar-footer small { opacity: .6; }
.sidebar-footer a { color: var(--gold-light); display: inline-block; margin-top: 9px; font-size: 13px; }
.admin-main { min-width: 0; }
.admin-topbar { height: 88px; padding: 0 28px; display: flex; align-items: center; gap: 16px; justify-content: space-between; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid #e2ddd4; position: sticky; top: 0; z-index: 20; }
.admin-topbar > div:nth-child(2) { margin-right: auto; }
.admin-topbar small { color: var(--muted); }
.admin-topbar h1 { margin: 2px 0 0; color: var(--maroon); font-size: 24px; }
.admin-avatar { width: 45px; height: 45px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--maroon), #a22429); color: white; font-weight: 900; }
.menu-toggle { display: none; border: 0; background: #f2e7d4; color: var(--maroon); width: 43px; height: 43px; border-radius: 12px; font-size: 20px; cursor: pointer; }
.admin-content { padding: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-bottom: 22px; }
.stat-card { background: white; border: 1px solid #e5dfd4; border-radius: 20px; padding: 22px; box-shadow: 0 10px 30px rgba(59,38,25,.06); position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: rgba(201,151,46,.1); right: -25px; bottom: -35px; }
.stat-card span, .stat-card small { display: block; color: var(--muted); }
.stat-card strong { display: block; color: var(--maroon); font-size: 38px; margin: 7px 0 4px; }
.stat-card.primary { background: linear-gradient(135deg, #781016, #4d080b); border-color: transparent; color: white; }
.stat-card.primary span, .stat-card.primary small, .stat-card.primary strong { color: white; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 22px; }
.admin-panel { padding: 24px; background: white; border-radius: 20px; border: 1px solid #e5dfd4; box-shadow: 0 12px 38px rgba(59,38,25,.07); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.panel-header h2, .admin-panel h2 { margin: 4px 0 0; color: var(--maroon); }
.text-link { color: var(--maroon); font-weight: 800; text-decoration: none; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .7px; padding: 12px 11px; border-bottom: 1px solid #e9e4dc; }
.admin-table td { padding: 14px 11px; border-bottom: 1px solid #f0ece5; vertical-align: middle; font-size: 14px; }
.admin-table tr:hover td { background: #fffaf0; }
.code-badge { display: inline-block; padding: 7px 9px; border-radius: 9px; background: #fff1d2; color: var(--maroon); font: 800 12px Arial,sans-serif; white-space: nowrap; }
.view-btn, .print-btn { display: inline-flex; border: 1px solid #d8c7a0; background: white; color: var(--maroon); border-radius: 9px; padding: 8px 11px; text-decoration: none; font-weight: 800; cursor: pointer; }
.empty-state { text-align: center; color: var(--muted); padding: 35px !important; }
.quick-panel { text-align: center; }
.summary-ring { --value: 0; width: 150px; height: 150px; margin: 25px auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--maroon) calc(var(--value) * 1%), #eee6da 0); position: relative; }
.summary-ring::after { content: ""; width: 112px; height: 112px; border-radius: 50%; background: white; position: absolute; }
.summary-ring div { position: relative; z-index: 1; }
.summary-ring strong, .summary-ring small { display: block; }
.summary-ring strong { color: var(--maroon); font-size: 30px; }
.summary-ring small { color: var(--muted); }
.summary-list p { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #eee8df; margin: 0; }
.mini-btn { min-height: 42px; padding: 10px 15px; font-size: 13px; }
.quick-panel .mini-btn { width: 100%; margin-top: 20px; }
.admin-search { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; margin-bottom: 18px; }
.admin-search input { min-width: 0; }
.admin-search button { border: 0; border-radius: 11px; background: var(--maroon); color: white; padding: 0 20px; font-weight: 800; cursor: pointer; }
.admin-search a { display: grid; place-items: center; padding: 0 14px; border: 1px solid #ddd1bd; border-radius: 11px; text-decoration: none; color: var(--muted); }
.address-cell { max-width: 260px; min-width: 200px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.pagination a { text-decoration: none; color: var(--maroon); font-weight: 800; }
.pagination span { color: var(--muted); }
.details-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #eee8df; }
.big-code { padding: 12px 16px; background: #fff1d2; color: var(--maroon); border-radius: 12px; font: 900 17px Arial,sans-serif; }
.details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-top: 22px; }
.details-grid article { padding: 18px; border: 1px solid #e8e1d5; border-radius: 15px; background: #fffdf8; }
.details-grid article.full { grid-column: 1/-1; }
.details-grid small { display: block; color: var(--muted); margin-bottom: 6px; }
.details-grid strong { color: #3e2a22; line-height: 1.6; }
.details-actions { display: flex; justify-content: space-between; gap: 15px; margin-top: 22px; }
.narrow-panel { max-width: 680px; }
.panel-intro { color: var(--muted); }
.password-form { display: grid; gap: 16px; margin-top: 22px; }
.password-form label, .login-form label { display: grid; gap: 8px; font-weight: 800; color: #4c3931; }

/* Login */
.admin-login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: white; }
.login-visual { min-height: 100vh; background: linear-gradient(rgba(54,8,10,.55),rgba(54,8,10,.78)), url('../images/event-poster.png') center/cover; display: flex; align-items: flex-end; padding: 55px; color: white; }
.login-overlay { max-width: 600px; }
.login-overlay span { color: var(--gold-light); font-weight: 900; }
.login-overlay h1 { font-size: clamp(35px,5vw,66px); line-height: 1.05; margin: 10px 0; }
.login-card { border: 0; box-shadow: none; border-radius: 0; padding: clamp(35px,8vw,90px); display: flex; flex-direction: column; justify-content: center; }
.login-brand { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: #fff2d7; color: var(--maroon); font-size: 24px; margin-bottom: 20px; }
.login-card h2 { color: var(--maroon); font-size: 38px; margin: 7px 0; }
.login-card > p { color: var(--muted); }
.login-form { display: grid; gap: 18px; margin-top: 24px; }
.back-link { display: inline-block; color: var(--maroon); margin-top: 22px; font-weight: 800; text-decoration: none; }

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .quick-panel { max-width: none; }
}
@media (max-width: 900px) {
    .event-grid { grid-template-columns: 1fr; }
    .poster-card img { min-height: 0; max-height: 780px; object-fit: contain; background: #f5ead1; }
    .admin-layout { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: -290px; transition: left .25s ease; width: 270px; }
    .sidebar.open { left: 0; box-shadow: 20px 0 50px rgba(0,0,0,.28); }
    .menu-toggle { display: grid; place-items: center; }
    .admin-login-page { grid-template-columns: 1fr; }
    .login-visual { min-height: 320px; padding: 30px; }
    .login-card { min-height: auto; }
}
@media (max-width: 650px) {
    .top-mantra { font-size: 10px; line-height: 1.5; }
    .brand-row { gap: 10px; }
    .ornament { width: 38px; height: 38px; flex: 0 0 auto; }
    .public-shell { padding-left: 14px; padding-right: 14px; }
    .event-copy { padding: 25px 20px; }
    .lead { font-size: 17px; }
    .field-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }
    .dob-grid { grid-template-columns: 1fr; }
    .premium-form { padding: 25px 17px; }
    .admin-content { padding: 16px; }
    .admin-topbar { padding: 0 16px; }
    .admin-topbar small { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .registrations-header { align-items: flex-start; flex-direction: column; }
    .admin-search { grid-template-columns: 1fr 1fr; }
    .admin-search input { grid-column: 1/-1; }
    .details-top, .details-actions { align-items: flex-start; flex-direction: column; }
    .details-grid { grid-template-columns: 1fr; }
    .details-grid article.full { grid-column: auto; }
    .pagination { flex-wrap: wrap; }
    .login-card { padding: 35px 22px; }
}

@media print {
    .sidebar, .admin-topbar, .details-actions { display: none !important; }
    .admin-layout { display: block; }
    .admin-content { padding: 0; }
    .admin-panel { box-shadow: none; border: 1px solid #aaa; }
}


/* =========================================================
   ANEK GUJARATI FONT - GLOBAL OVERRIDE
   બાકી UI, color, size, spacing અને layoutમાં કોઈ ફેરફાર નથી
========================================================= */

html,
body,
button,
input,
textarea,
select,
option,
label,
a,
span,
small,
strong,
p,
h1,
h2,
h3,
h4,
h5,
h6,
table,
thead,
tbody,
tr,
th,
td,
.font-display,
.font-kicker,
.section-kicker,
.eyebrow,
.top-mantra,
.brand-row,
.event-copy,
.event-facts,
.inviter-box,
.form-heading,
.form-field,
.form-badge,
.full-form-note,
.consent-row,
.submit-btn,
.public-footer,
.success-card,
.modal-card,
.install-card,
.sidebar,
.sidebar-brand,
.sidebar-nav,
.sidebar-footer,
.admin-topbar,
.admin-panel,
.stat-card,
.admin-table,
.login-card,
.login-overlay,
.password-form,
.login-form,
.admin-search {
    font-family: "Anek Gujarati", "Nirmala UI", "Shruti", Arial, sans-serif !important;
}