@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
    --bg: #f7f4ee;
    --bg-soft: #f0eadd;
    --card: #fffefb;
    --text: #1e1b18;
    --muted: #6a6258;
    --accent: #d35400;
    --accent-strong: #9f3d00;
    --ok: #166534;
    --danger: #b91c1c;
    --line: #e9dfcf;
    --shadow: 0 14px 28px rgba(145, 90, 30, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at top right, #ffe8cf 0%, var(--bg) 35%, #f8f7f4 100%);
    font-family: "Space Grotesk", "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.45;
}

h1,
h2,
h3,
h4 {
    font-family: "Sora", "Avenir Next", "Helvetica Neue", sans-serif;
    letter-spacing: -0.02em;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: var(--accent);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 20px 44px;
    position: relative;
    z-index: 2;
}

.narrow {
    max-width: 520px;
}

.dashboard-bg {
    overflow-x: hidden;
}

.shape {
    position: fixed;
    border-radius: 999px;
    filter: blur(0.5px);
    z-index: 0;
}

.shape-one {
    width: 360px;
    height: 360px;
    background: rgba(211, 84, 0, 0.14);
    top: -120px;
    right: -80px;
}

.shape-two {
    width: 280px;
    height: 280px;
    background: rgba(38, 98, 255, 0.08);
    bottom: -80px;
    left: -80px;
}

.header-row,
.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-header {
    margin-bottom: 18px;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.page-title {
    font-size: clamp(1.6rem, 3.8vw, 2.6rem);
    margin-top: 4px;
}

.page-subtitle {
    color: var(--muted);
    margin-top: 6px;
    max-width: 660px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.card,
.wizard-shell,
.side-card,
.selected-event {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.card {
    padding: 18px;
    margin: 14px 0;
    text-decoration: none;
    color: inherit;
}

.status-banner {
    min-height: 38px;
    display: flex;
    align-items: center;
    background: #f5f3ec;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--ok);
    margin-bottom: 16px;
}

.status-banner.error {
    color: var(--danger);
    border-color: #f5c9c9;
    background: #fff2f2;
}

.policy-note {
    border: 1px solid #ffcfa8;
    background: #fff4ea;
    color: #8a3f00;
    padding: 9px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 18px;
}

.wizard-shell {
    padding: 16px;
}

.wizard-head {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.step {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    background: #fdfaf4;
    transition: all 0.2s ease;
}

.step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    font-weight: 700;
    margin-bottom: 5px;
}

.step p {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}

.step.active {
    border-color: var(--accent);
    background: #fff2e7;
}

.step.active span,
.step.completed span {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
}

.step.completed {
    border-color: #ffccab;
    background: #fff5ed;
}

.wizard-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: #fffdf9;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.event-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.compact-event {
    padding: 10px;
}

.event-card p {
    color: var(--muted);
    margin: 6px 0 10px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.87rem;
    margin-bottom: 10px;
}

.price {
    font-weight: 700;
    color: var(--accent-strong);
}

.selected-event {
    padding: 14px;
}

.dynamic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.form-unit,
label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92rem;
}

.form-unit span {
    font-weight: 600;
}

.auth-helper-links {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.auth-helper-links .ghost-link {
    flex: 1;
    text-align: center;
}

.auth-inline-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.inline-forgot-link {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffd9b3;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.inline-forgot-link:hover {
    color: #ffffff;
}

.field-builder-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.inline-check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.inline-check input {
    width: auto;
}

.member-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.member-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.leader-flag {
    margin-top: 10px;
    flex-direction: row;
    align-items: center;
    font-weight: 600;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.review-grid section {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}

.review-grid ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.team-confirmation .confirm-card {
    border: 1px solid #ffd6b5;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff4e9;
}

.payment-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.upi-preview-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.upi-pay-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 12px;
    align-items: center;
}

.upi-intent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 46px;
}

.upi-qr-image {
    width: 220px;
    height: 220px;
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 6px;
}

.thankyou-card {
    border: 1px solid #cbe9d5;
    border-radius: 12px;
    padding: 18px;
    background: #effbf3;
    margin-top: 10px;
    text-align: center;
}

.thankyou-card h3 {
    color: #166534;
    margin-bottom: 8px;
}

.telegram-join-wrap {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.telegram-join-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(90deg, #1d9bf0, #0d78c9);
    border: 1px solid rgba(144, 211, 255, 0.65);
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(14, 120, 201, 0.34);
}

.telegram-join-link:hover {
    transform: translateY(-1px);
}

.maps-location-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(90deg, #198754, #157347);
    border: 1px solid rgba(155, 229, 182, 0.7);
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(21, 115, 71, 0.28);
}

.maps-location-link:hover {
    transform: translateY(-1px);
}

.google-form-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border: 1px solid rgba(147, 197, 253, 0.65);
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.26);
}

.google-form-action-link:hover {
    transform: translateY(-1px);
}

.action-link-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    background: rgba(255, 255, 255, 0.16);
}

.action-link-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* Override theme-level dashboard anchor colors for pill action buttons */
body.dashboard-bg .telegram-join-link,
body.dashboard-bg .telegram-join-link:visited,
body.dashboard-bg .maps-location-link,
body.dashboard-bg .maps-location-link:visited,
body.dashboard-bg .google-form-action-link,
body.dashboard-bg .google-form-action-link:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.google-form-action-link[aria-disabled="true"] .action-link-icon {
    opacity: 0.88;
}

.telegram-icon-pulse {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    animation: telegramPulse 1.5s ease-in-out infinite;
}

.telegram-icon-pulse svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

@keyframes telegramPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 155, 240, 0.55);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(29, 155, 240, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(29, 155, 240, 0);
    }
}

.side-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.side-card {
    padding: 14px;
}

.simple-shell {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
}

.list-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.mini-card h4 {
    margin-bottom: 6px;
}

.mini-card p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.compact-member-list {
    margin: 6px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.score-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.grid-form .full-span {
    grid-column: 1 / -1;
}

.event-poster-preview {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.55);
}

.event-poster-preview img {
    width: min(100%, 420px);
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.event-poster-preview.qr-preview .qr-preview-image {
    width: min(100%, 820px);
    max-height: none;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: #fff;
}

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-copy-row {
    align-items: flex-end;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

input,
textarea,
select,
button {
    width: 100%;
    font: inherit;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

button {
    width: auto;
    cursor: pointer;
    color: #fff;
    background: var(--accent);
    border: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ghost-btn,
.ghost-link {
    color: var(--accent-strong);
    background: #fff;
    border: 1px solid #f1c9ac;
    font-weight: 700;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 10px;
}

.ghost-btn.small {
    padding: 6px 10px;
    font-size: 0.82rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.status-pill.active {
    background: #e8f8ee;
    color: #166534;
    border: 1px solid #b7e4c6;
}

.status-pill.inactive {
    background: #fff2f2;
    color: #b91c1c;
    border: 1px solid #f4c7c7;
}

.status-pill.pending {
    background: #fff7e9;
    color: #9a6700;
    border: 1px solid #f4dbab;
}

.status-pill.hold {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f6d28b;
}

.next-btn {
    background: linear-gradient(90deg, #d35400, #e37322);
}

.danger-btn {
    background: #111827;
}

.danger-outline {
    color: #b42318;
    border-color: #f2b6b2;
    background: #fff7f7;
}

.output {
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
    background: #1e293b;
    color: #f0f5ff;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #2b3c57;
}

.top-gap {
    margin-top: 12px;
}

.hidden {
    display: none !important;
}

.muted {
    color: var(--muted);
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.podium-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 136px;
}

.podium-card h3 {
    font-size: 1.05rem;
    line-height: 1.2;
    margin: 0;
}

.podium-card p {
    margin: 0;
    color: #5f5a52;
}

.podium-rank {
    font-weight: 800;
    color: var(--accent-strong);
    margin-bottom: 6px;
}

.podium-score {
    font-weight: 700;
    color: var(--accent);
}

.rank-1 {
    background: #fff2e1;
    border-color: #ffcf9e;
}

.rank-2 {
    background: #f5f8ff;
}

.rank-3 {
    background: #fff9ef;
}

body.dashboard-bg .podium-card {
    background: linear-gradient(160deg, rgba(8, 18, 44, 0.92), rgba(11, 28, 67, 0.88));
    border-color: rgba(130, 165, 255, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dashboard-bg .podium-card h3 {
    color: #f5f8ff;
}

body.dashboard-bg .podium-card p {
    color: #c3d1f0;
}

body.dashboard-bg .podium-rank {
    color: #ffc686;
}

body.dashboard-bg .podium-score {
    color: #9fddff;
}

body.dashboard-bg .rank-1 {
    background: linear-gradient(150deg, rgba(104, 56, 12, 0.65), rgba(157, 86, 25, 0.48));
    border-color: rgba(255, 189, 122, 0.5);
}

body.dashboard-bg .rank-2 {
    background: linear-gradient(150deg, rgba(34, 50, 92, 0.68), rgba(49, 71, 129, 0.48));
    border-color: rgba(160, 188, 255, 0.44);
}

body.dashboard-bg .rank-3 {
    background: linear-gradient(150deg, rgba(87, 58, 23, 0.62), rgba(128, 83, 29, 0.44));
    border-color: rgba(245, 190, 129, 0.45);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(17, 24, 39, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-card {
    width: min(94vw, 460px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
    padding: 18px;
}

.modal-overlay.error .modal-card {
    background: #fff8f8;
    border-color: #f2c1c1;
}

.modal-title {
    margin-bottom: 8px;
}

.modal-body {
    color: var(--muted);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.auth-page {
    min-height: 100vh;
}

.auth-shell {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.faculty-auth {
    border-color: #d7d0f8;
    background: linear-gradient(160deg, #fffefb 0%, #f7f5ff 100%);
}

.faculty-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.faculty-nav .ghost-link {
    white-space: nowrap;
}

.faculty-nav .active-nav {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.faculty-nav .active-nav:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.faculty-hub-grid .hub-card {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.faculty-hub-grid .hub-card p {
    margin-top: 8px;
    color: var(--muted);
}

body.dashboard-bg .faculty-hub-grid .hub-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(154, 186, 255, 0.36);
    background:
        radial-gradient(220px circle at -8% -16%, rgba(255, 145, 58, 0.2), rgba(255, 145, 58, 0) 62%),
        linear-gradient(165deg, rgba(10, 22, 52, 0.94), rgba(8, 16, 38, 0.94));
    color: #eef4ff;
    box-shadow:
        0 14px 30px rgba(4, 8, 24, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dashboard-bg .faculty-hub-grid .hub-card::after {
    content: "";
    position: absolute;
    inset: auto -18% -40% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 136, 255, 0.22), rgba(99, 136, 255, 0));
    pointer-events: none;
}

body.dashboard-bg .faculty-hub-grid .hub-card h3 {
    color: #f7fbff;
    font-size: 1.65rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

body.dashboard-bg .faculty-hub-grid .hub-card p {
    color: #c7d5f3;
    font-size: 1.08rem;
    line-height: 1.4;
}

body.dashboard-bg .faculty-hub-grid .hub-card:hover {
    border-color: rgba(255, 190, 132, 0.8);
    box-shadow:
        0 18px 32px rgba(4, 8, 24, 0.56),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dashboard-bg .faculty-hub-grid .hub-card:hover h3 {
    color: #ffd6ab;
}

/* Organizer access cards use light panels inside auth pages; force high-contrast text. */
body.auth-page .organizer-access-grid .card {
    color: #132652;
    background: linear-gradient(165deg, #ffffff 0%, #f3f6ff 100%);
    border: 1px solid rgba(135, 168, 255, 0.38);
}

body.auth-page .organizer-access-grid .card h3 {
    color: #132652;
}

body.auth-page .organizer-access-grid .card p {
    color: #4a5f92;
}

body.auth-page .organizer-access-grid .card:hover {
    border-color: #8ab1ff;
    background: linear-gradient(165deg, #ffffff 0%, #e8eeff 100%);
}

.home-page {
    min-height: 100vh;
    background: radial-gradient(circle at 5% 10%, #ffe5cc 0%, #f7f4ee 30%, #f5f5ff 65%, #eef4ff 100%);
}

.home-shell {
    padding-top: 20px;
    padding-bottom: 56px;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.home-brand {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
}

.home-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-nav a {
    text-decoration: none;
    border: 1px solid #e8d9c8;
    background: #fffaf1;
    color: #86400c;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.86rem;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.home-copy,
.home-visual {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #ecdcc8;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.home-title {
    font-size: clamp(2rem, 4.8vw, 3rem);
    line-height: 1.08;
    margin-top: 8px;
}

.home-description {
    color: #5f5b55;
    margin-top: 10px;
    max-width: 660px;
}

.home-cta-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
}

.home-slider {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #e9dece;
    background: #fff;
    height: 100%;
}

.home-slide-track {
    display: flex;
    width: max-content;
    animation: homeSlide 26s linear infinite;
}

.home-slide-card {
    width: 240px;
    min-height: 170px;
    border-right: 1px solid #f1e7d9;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, #fffdf8 0%, #f9f5ef 100%);
}

.home-slide-card h3 {
    margin-bottom: 8px;
}

.home-slide-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-feature {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #ead9c2;
    border-radius: 14px;
    padding: 16px;
}

.home-feature p {
    color: var(--muted);
    margin-top: 6px;
}

.home-action-band {
    background: linear-gradient(120deg, #0f172a 0%, #273b6a 55%, #4e5b8c 100%);
    color: #e9edff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #33406a;
}

.home-action-band .row {
    margin-top: 10px;
}

.home-action-band .ghost-link {
    border-color: #5e6ea6;
    color: #e9edff;
    background: rgba(255, 255, 255, 0.06);
}

.home-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes homeSlide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .wizard-head {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 14px;
    }

    .dashboard-header,
    .section-title-row,
    .wizard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    button,
    .ghost-btn,
    .ghost-link {
        width: 100%;
        text-align: center;
    }

    .shape {
        display: none;
    }

    .score-row {
        grid-template-columns: 1fr;
    }

    .home-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-helper-links {
        flex-direction: column;
    }

    .auth-inline-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Advanced visual polish across the app */
.card,
.wizard-shell,
.side-card,
.simple-shell,
.event-card,
.mini-card,
.selected-event,
.auth-shell {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover,
.wizard-shell:hover,
.side-card:hover,
.simple-shell:hover,
.event-card:hover,
.mini-card:hover,
.selected-event:hover,
.auth-shell:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px rgba(106, 60, 12, 0.16);
    border-color: #e7c8a7;
}

button,
.ghost-btn,
.ghost-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

button:hover,
.ghost-btn:hover,
.ghost-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(95, 48, 7, 0.14);
}

/* Advanced home page */
:root {
    --mx: 50%;
    --my: 35%;
}

.home-neo {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    color: #edf2ff;
    background:
        radial-gradient(1200px circle at var(--mx) var(--my), rgba(245, 123, 36, 0.2), rgba(245, 123, 36, 0) 45%),
        radial-gradient(1000px circle at 85% 20%, rgba(74, 99, 255, 0.22), rgba(74, 99, 255, 0) 42%),
        linear-gradient(130deg, #080f1f 0%, #0c1632 45%, #101c3f 100%);
}

.home-grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2) 75%);
    z-index: 0;
}

.home-glow {
    position: fixed;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
    z-index: 0;
    animation: homeGlowDrift 15s ease-in-out infinite;
}

.home-glow-a {
    width: 340px;
    height: 340px;
    background: rgba(255, 129, 45, 0.32);
    top: -120px;
    right: -90px;
}

.home-glow-b {
    width: 280px;
    height: 280px;
    background: rgba(88, 110, 255, 0.34);
    bottom: -90px;
    left: -80px;
    animation-delay: -5s;
}

.home-glow-c {
    width: 220px;
    height: 220px;
    background: rgba(63, 190, 255, 0.26);
    top: 28%;
    left: 48%;
    animation-delay: -9s;
}

.home-shell-v2 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding-top: 20px;
    padding-bottom: 22px;
}

.home-v2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.home-logo {
    color: #f6f1ff;
    text-decoration: none;
    font-family: "Sora", "Avenir Next", sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.home-logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(5, 16, 49, 0.48);
}

.home-logo-text {
    line-height: 1;
}

.home-v2-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-v2-nav a {
    text-decoration: none;
    color: #f3edff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 8px 13px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.86rem;
}

.home-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    min-height: 62vh;
}

.home-rings {
    position: absolute;
    width: min(72vw, 760px);
    aspect-ratio: 1 / 1;
    pointer-events: none;
}

.home-rings span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    animation: ringSpin 20s linear infinite;
}

.home-rings span:nth-child(2) {
    inset: 8%;
    border-color: rgba(255, 166, 79, 0.36);
    animation-duration: 15s;
    animation-direction: reverse;
}

.home-rings span:nth-child(3) {
    inset: 20%;
    border-color: rgba(126, 169, 255, 0.34);
    animation-duration: 11s;
}

.home-title-main {
    margin: 0;
    z-index: 2;
    font-family: "Sora", "Avenir Next", sans-serif;
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-size: clamp(2.4rem, 11vw, 7.6rem);
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    background: linear-gradient(120deg, #fff2de 5%, #ffffff 36%, #bdd2ff 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-ready .title-line {
    animation: titleRise 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.home-ready .title-line:nth-child(2) {
    animation-delay: 0.14s;
}

.home-v2-actions {
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.home-primary-btn,
.home-secondary-btn {
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.home-primary-btn {
    color: #fff;
    background: linear-gradient(95deg, #e85d0f, #ff8d31);
    box-shadow: 0 12px 24px rgba(242, 120, 37, 0.35);
}

.home-secondary-btn {
    color: #edf2ff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.home-events-shell {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 14px;
    margin-bottom: 14px;
}

.home-events-shell h2 {
    color: #f5f8ff;
}

.home-events-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
    justify-content: start;
    gap: 12px;
}

.home-event-card {
    border: 1px solid rgba(174, 194, 255, 0.32);
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(8, 20, 48, 0.9), rgba(10, 28, 66, 0.78));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.home-event-poster {
    height: 128px;
    min-height: 128px;
    border-bottom: 1px solid rgba(164, 186, 255, 0.28);
    background: linear-gradient(120deg, rgba(255, 138, 43, 0.16), rgba(89, 117, 255, 0.16));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.home-event-poster img {
    width: 100%;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
    display: block;
    border-radius: 8px;
}

.home-event-poster-fallback {
    width: 100%;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Sora", "Avenir Next", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #f9fbff;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.home-event-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-event-content h3 {
    color: #f7fbff;
}

.home-event-about {
    color: #c6d4f2;
    margin: 0;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-event-meta {
    color: #9fafd2;
    font-size: 0.86rem;
    margin: 0;
}

.home-event-actions {
    margin-top: 4px;
}

.home-event-register {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(95deg, #e85d0f, #ff8d31);
    box-shadow: 0 10px 20px rgba(242, 120, 37, 0.28);
}

.home-event-register.disabled {
    pointer-events: none;
    opacity: 0.65;
    background: rgba(145, 162, 204, 0.35);
    box-shadow: none;
}

.home-marquee-wrap {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.home-marquee-track {
    display: flex;
    gap: 32px;
    width: max-content;
    padding: 10px 18px;
    animation: homeMarquee 22s linear infinite;
}

.home-marquee-track span {
    color: rgba(240, 246, 255, 0.9);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    white-space: nowrap;
}

@keyframes homeGlowDrift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(16px, -18px, 0);
    }
}

@keyframes ringSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes titleRise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes homeMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    .home-shell-v2 {
        min-height: 100vh;
    }

    .home-v2-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-v2-nav {
        width: 100%;
    }

    .home-rings {
        width: 88vw;
    }
}

@media (max-width: 640px) {
    .home-events-grid {
        grid-template-columns: 1fr;
    }

    .home-v2-nav a,
    .home-primary-btn,
    .home-secondary-btn {
        width: 100%;
        text-align: center;
    }

    .home-v2-actions {
        width: 100%;
    }

    .home-events-shell .section-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .home-event-register {
        width: 100%;
    }

    .home-marquee-track {
        gap: 18px;
        padding: 8px 12px;
    }
}

/* Synced advanced theme for all non-home pages */
body.dashboard-bg,
body.auth-page {
    min-height: 100vh;
    position: relative;
    color: #e8efff;
    background:
        radial-gradient(900px circle at 12% -8%, rgba(255, 124, 34, 0.22), transparent 45%),
        radial-gradient(900px circle at 88% -5%, rgba(95, 122, 255, 0.24), transparent 42%),
        linear-gradient(140deg, #070f22 0%, #0b1734 48%, #111f47 100%);
}

body.dashboard-bg::before,
body.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.16) 76%);
}

body.dashboard-bg::after,
body.auth-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(620px circle at 52% 32%, rgba(74, 141, 255, 0.14), rgba(74, 141, 255, 0) 58%);
}

body.dashboard-bg .container,
body.auth-page .container {
    z-index: 2;
}

body.dashboard-bg .shape-one,
body.auth-page .shape-one {
    width: 380px;
    height: 380px;
    background: rgba(255, 138, 45, 0.28);
    top: -150px;
    right: -90px;
    filter: blur(2px);
    animation: neoOrbFloat 14s ease-in-out infinite;
}

body.dashboard-bg .shape-two,
body.auth-page .shape-two {
    width: 320px;
    height: 320px;
    background: rgba(96, 123, 255, 0.26);
    bottom: -120px;
    left: -110px;
    filter: blur(2px);
    animation: neoOrbFloat 16s ease-in-out infinite reverse;
}

body.dashboard-bg .dashboard-header,
body.auth-page .dashboard-header,
body.auth-page .auth-shell,
body.dashboard-bg .simple-shell,
body.dashboard-bg .wizard-shell,
body.dashboard-bg .side-card,
body.dashboard-bg .event-card,
body.dashboard-bg .mini-card,
body.dashboard-bg .selected-event,
body.dashboard-bg .member-card,
body.dashboard-bg .wizard-panel,
body.dashboard-bg .field-builder-row,
body.dashboard-bg .score-row,
body.dashboard-bg .team-confirmation .confirm-card,
body.dashboard-bg .thankyou-card,
body.dashboard-bg .policy-note,
body.dashboard-bg .status-banner,
body.auth-page .status-banner {
    background: rgba(11, 24, 54, 0.66);
    border: 1px solid rgba(158, 182, 255, 0.24);
    box-shadow: 0 18px 36px rgba(7, 12, 30, 0.45);
    backdrop-filter: blur(14px);
}

body.dashboard-bg .dashboard-header,
body.auth-page .dashboard-header {
    border-radius: 16px;
    padding: 14px 16px;
}

body.auth-page .auth-shell {
    border-radius: 18px;
}

body.dashboard-bg .page-title,
body.auth-page .page-title {
    color: #f5f8ff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dashboard-bg .page-subtitle,
body.auth-page .page-subtitle,
body.dashboard-bg .muted,
body.auth-page .muted,
body.dashboard-bg .event-card p,
body.dashboard-bg .mini-card p,
body.dashboard-bg .meta-row,
body.dashboard-bg label,
body.auth-page label {
    color: #b8c6e6;
}

body.dashboard-bg .eyebrow,
body.auth-page .eyebrow {
    color: #ffba7a;
}

body.dashboard-bg input,
body.dashboard-bg textarea,
body.dashboard-bg select,
body.auth-page input,
body.auth-page textarea,
body.auth-page select {
    background: rgba(8, 18, 42, 0.86);
    color: #f3f6ff;
    border: 1px solid rgba(151, 177, 255, 0.36);
}

body.dashboard-bg input::placeholder,
body.dashboard-bg textarea::placeholder,
body.auth-page input::placeholder,
body.auth-page textarea::placeholder {
    color: #99abd2;
}

body.dashboard-bg input:focus,
body.dashboard-bg textarea:focus,
body.dashboard-bg select:focus,
body.auth-page input:focus,
body.auth-page textarea:focus,
body.auth-page select:focus {
    outline: none;
    border-color: #8ab1ff;
    box-shadow: 0 0 0 3px rgba(87, 145, 255, 0.24);
}

body.dashboard-bg button,
body.auth-page button,
body.dashboard-bg .next-btn,
body.auth-page .next-btn {
    color: #fff;
    background: linear-gradient(92deg, #e35f13, #ff9335);
    box-shadow: 0 12px 24px rgba(235, 109, 26, 0.28);
}

body.dashboard-bg .ghost-btn,
body.dashboard-bg .ghost-link,
body.auth-page .ghost-btn,
body.auth-page .ghost-link {
    color: #eef2ff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(167, 188, 255, 0.38);
}

body.dashboard-bg .danger-btn,
body.auth-page .danger-btn {
    background: linear-gradient(92deg, #10224b, #1a3367);
    border: 1px solid rgba(126, 165, 255, 0.4);
}

body.dashboard-bg .danger-outline,
body.auth-page .danger-outline {
    color: #ffccc8;
    border-color: rgba(255, 161, 154, 0.56);
    background: rgba(123, 36, 36, 0.22);
}

body.dashboard-bg .status-banner,
body.auth-page .status-banner {
    color: #9ddbb4;
}

body.dashboard-bg .status-banner.error,
body.auth-page .status-banner.error {
    color: #ffbeb8;
    border-color: rgba(255, 151, 146, 0.45);
    background: rgba(88, 24, 24, 0.45);
}

body.dashboard-bg .policy-note {
    color: #f9d8af;
    border-color: rgba(255, 187, 125, 0.4);
    background: rgba(97, 52, 13, 0.28);
}

body.dashboard-bg .step,
body.auth-page .step {
    border-color: rgba(149, 178, 255, 0.35);
    background: rgba(10, 19, 43, 0.72);
}

body.dashboard-bg .step span,
body.auth-page .step span {
    border-color: rgba(149, 178, 255, 0.4);
}

body.dashboard-bg .step p,
body.auth-page .step p {
    color: #afc0e4;
}

body.dashboard-bg .step.active,
body.auth-page .step.active {
    border-color: #ffb479;
    background: rgba(123, 70, 20, 0.3);
}

body.dashboard-bg .step.active span,
body.dashboard-bg .step.completed span,
body.auth-page .step.active span,
body.auth-page .step.completed span {
    background: linear-gradient(95deg, #e45d12, #ff9335);
    border-color: transparent;
}

body.dashboard-bg .status-pill.active {
    background: rgba(66, 207, 140, 0.2);
    color: #a4eac4;
    border-color: rgba(121, 224, 168, 0.5);
}

body.dashboard-bg .status-pill.inactive {
    background: rgba(242, 93, 93, 0.2);
    color: #ffb8b8;
    border-color: rgba(251, 145, 145, 0.5);
}

body.dashboard-bg .status-pill.pending {
    background: rgba(255, 193, 94, 0.2);
    color: #ffd9a0;
    border-color: rgba(255, 208, 134, 0.46);
}

body.dashboard-bg .status-pill.hold {
    background: rgba(255, 176, 84, 0.2);
    color: #ffd1a1;
    border-color: rgba(255, 193, 122, 0.5);
}

body.dashboard-bg .output,
body.auth-page .output {
    background: #060f23;
    border-color: rgba(128, 162, 255, 0.34);
}

body.dashboard-bg a,
body.auth-page a {
    color: #f3f6ff;
}

body.dashboard-bg .simple-shell,
body.dashboard-bg .wizard-shell,
body.dashboard-bg .side-card,
body.dashboard-bg .auth-shell,
body.dashboard-bg .event-card,
body.dashboard-bg .mini-card,
body.dashboard-bg .selected-event,
body.dashboard-bg .wizard-panel,
body.auth-page .auth-shell {
    animation: neoPanelIn 0.55s ease both;
}

/* Review step cards need dark-theme contrast inside dashboard mode. */
body.dashboard-bg .review-grid section {
    background: linear-gradient(160deg, rgba(8, 19, 47, 0.9), rgba(11, 26, 63, 0.84));
    border: 1px solid rgba(140, 173, 255, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dashboard-bg .review-grid section h3 {
    color: #f4f8ff;
}

body.dashboard-bg .review-grid section p,
body.dashboard-bg .review-grid section li {
    color: #c8d7f5;
}

body.dashboard-bg .review-grid section strong {
    color: #ffd4a6;
}

/* Keep popup dialogs readable on dark themed pages. */
body.dashboard-bg .modal-card,
body.auth-page .modal-card {
    background: linear-gradient(160deg, rgba(10, 21, 50, 0.95), rgba(12, 28, 66, 0.92));
    border: 1px solid rgba(150, 180, 255, 0.42);
    color: #f4f8ff;
    box-shadow: 0 22px 42px rgba(4, 8, 24, 0.56);
}

body.dashboard-bg .modal-title,
body.auth-page .modal-title {
    color: #f7fbff;
}

body.dashboard-bg .modal-body,
body.auth-page .modal-body {
    color: #c8d7f5;
}

body.dashboard-bg .modal-overlay.error .modal-card,
body.auth-page .modal-overlay.error .modal-card {
    background: linear-gradient(160deg, rgba(79, 20, 20, 0.9), rgba(113, 30, 30, 0.82));
    border-color: rgba(255, 151, 146, 0.56);
}

@keyframes neoPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes neoOrbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(16px, -14px, 0);
    }
}

/* Device friendliness hardening */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(100%, 1140px);
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

.header-row,
.section-title-row,
.meta-row,
.member-header,
.payment-box,
.row {
    flex-wrap: wrap;
}

.header-row > *,
.dashboard-header > *,
.section-title-row > *,
.meta-row > * {
    min-width: 0;
}

.page-title,
.page-subtitle,
.event-card h3,
.mini-card h4,
.status-banner,
.modal-body,
.output,
code {
    overflow-wrap: anywhere;
}

.event-card p,
.mini-card p,
#selectedTeamBox,
#deploymentSummary {
    overflow-wrap: anywhere;
}

.faculty-nav {
    justify-content: flex-start;
}

.faculty-nav .ghost-link {
    white-space: normal;
}

.row > input,
.row > select,
.row > textarea {
    flex: 1 1 260px;
    min-width: 0;
}

.row > button,
.row > .ghost-btn,
.row > .ghost-link {
    flex: 0 0 auto;
}

.payment-box label {
    min-width: 220px;
    flex: 1 1 260px;
}

.payment-box label.payment-checkbox-row {
    min-width: 0;
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    justify-content: flex-start;
    gap: 8px;
}

.payment-box label.payment-checkbox-row input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
}

.home-v2-nav a {
    text-align: center;
}

@media (max-width: 1100px) {
    .container {
        padding-top: 22px;
        padding-bottom: 36px;
    }

    .home-stage {
        min-height: 56vh;
    }

    .home-rings {
        width: min(82vw, 660px);
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        gap: 14px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }

    .event-cards {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }

    .meta-row {
        align-items: flex-start;
    }

    .meta-row strong,
    .meta-row .price {
        display: block;
    }
}

@media (max-width: 760px) {
    .container {
        padding: 14px 12px 26px;
    }

    .dashboard-header,
    .header-row,
    .section-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions,
    .faculty-nav,
    .home-v2-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .header-actions > *,
    .faculty-nav > *,
    .home-v2-nav > a {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
        text-align: center;
    }

    .wizard-head {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .wizard-actions {
        justify-content: stretch;
    }

    .wizard-actions > * {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    .home-rings {
        display: none;
    }

    .home-stage {
        min-height: 50vh;
        padding-block: 8px;
    }

    .home-title-main {
        font-size: clamp(2.2rem, 12vw, 4rem);
    }
}

@media (max-width: 560px) {
    .container {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }

    .event-cards,
    .card-grid,
    .grid-form,
    .dynamic-grid,
    .member-grid,
    .review-grid,
    .podium-grid,
    .home-quick-links {
        grid-template-columns: 1fr;
    }

    .row,
    .payment-box,
    .wizard-actions,
    .header-actions,
    .faculty-nav,
    .home-v2-nav {
        flex-direction: column;
    }

    .upi-pay-grid {
        grid-template-columns: 1fr;
    }

    .row > *,
    .payment-box > *,
    .wizard-actions > *,
    .header-actions > *,
    .faculty-nav > *,
    .home-v2-nav > a {
        width: 100%;
        flex: 1 1 100%;
    }

    .upi-pay-grid > * {
        width: 100%;
    }

    .wizard-head {
        grid-template-columns: 1fr;
    }

    .score-row {
        grid-template-columns: 1fr;
    }

    .shape {
        display: none;
    }
}

@media (max-width: 420px) {
    .page-title {
        font-size: clamp(1.35rem, 9vw, 1.95rem);
    }

    .page-subtitle {
        font-size: 0.92rem;
    }

    .home-logo {
        width: 100%;
        justify-content: center;
    }

    .home-logo-text {
        font-size: 0.9rem;
    }

    .home-title-main {
        font-size: clamp(1.9rem, 13vw, 2.8rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Reference palette override: blue + light gray + orange (no layout changes). */
:root {
    --bg: #e8edf7;
    --bg-soft: #dde5f2;
    --card: #ffffff;
    --text: #222832;
    --muted: #80889a;
    --accent: #f39f12;
    --accent-strong: #de8b06;
    --ok: #26814a;
    --danger: #d44747;
    --line: #d7deea;
    --shadow: 0 14px 30px rgba(43, 72, 130, 0.12);
}

body {
    color: var(--text);
    background: linear-gradient(180deg, #edf2fb 0%, #e7edf8 100%);
}

body.dashboard-bg,
body.auth-page {
    color: var(--text);
    background: linear-gradient(180deg, #edf2fb 0%, #e6edf8 100%);
}

body.dashboard-bg::before,
body.dashboard-bg::after,
body.auth-page::before,
body.auth-page::after {
    display: none;
}

body.dashboard-bg .shape-one,
body.auth-page .shape-one {
    background: rgba(49, 98, 233, 0.1);
    filter: blur(1px);
}

body.dashboard-bg .shape-two,
body.auth-page .shape-two {
    background: rgba(243, 159, 18, 0.11);
    filter: blur(1px);
}

body.dashboard-bg .dashboard-header,
body.auth-page .dashboard-header {
    background: linear-gradient(92deg, #2347b2, #2f66e8);
    border: 1px solid #2d5fd7;
    box-shadow: 0 14px 28px rgba(32, 65, 152, 0.27);
    border-radius: 16px;
}

body.auth-page .auth-shell,
body.dashboard-bg .simple-shell,
body.dashboard-bg .wizard-shell,
body.dashboard-bg .side-card,
body.dashboard-bg .event-card,
body.dashboard-bg .mini-card,
body.dashboard-bg .selected-event,
body.dashboard-bg .member-card,
body.dashboard-bg .wizard-panel,
body.dashboard-bg .field-builder-row,
body.dashboard-bg .score-row,
body.dashboard-bg .team-confirmation .confirm-card,
body.dashboard-bg .thankyou-card,
body.dashboard-bg .policy-note,
body.dashboard-bg .status-banner,
body.auth-page .status-banner {
    background: #ffffff;
    border: 1px solid #d7deea;
    box-shadow: 0 10px 22px rgba(52, 79, 137, 0.11);
    backdrop-filter: none;
}

body.dashboard-bg .page-title,
body.auth-page .page-title {
    color: #1f2635;
    text-shadow: none;
}

body.dashboard-bg .dashboard-header .page-title,
body.auth-page .dashboard-header .page-title {
    color: #f6f9ff;
}

body.dashboard-bg .page-subtitle,
body.auth-page .page-subtitle,
body.dashboard-bg .muted,
body.auth-page .muted,
body.dashboard-bg .event-card p,
body.dashboard-bg .mini-card p,
body.dashboard-bg .meta-row,
body.dashboard-bg label,
body.auth-page label {
    color: #818a9c;
}

body.dashboard-bg .dashboard-header .page-subtitle,
body.auth-page .dashboard-header .page-subtitle {
    color: #d9e5ff;
}

body.dashboard-bg .eyebrow,
body.auth-page .eyebrow {
    color: #f2a71b;
}

body.dashboard-bg .dashboard-header .eyebrow,
body.auth-page .dashboard-header .eyebrow {
    color: #ffc54e;
}

body.dashboard-bg input,
body.dashboard-bg textarea,
body.dashboard-bg select,
body.auth-page input,
body.auth-page textarea,
body.auth-page select {
    background: #f8faff;
    color: #1f2635;
    border: 1px solid #d4dced;
}

body.dashboard-bg input::placeholder,
body.dashboard-bg textarea::placeholder,
body.auth-page input::placeholder,
body.auth-page textarea::placeholder {
    color: #97a1b6;
}

body.dashboard-bg input:focus,
body.dashboard-bg textarea:focus,
body.dashboard-bg select:focus,
body.auth-page input:focus,
body.auth-page textarea:focus,
body.auth-page select:focus {
    outline: none;
    border-color: #3d6cdf;
    box-shadow: 0 0 0 3px rgba(61, 108, 223, 0.18);
}

body.dashboard-bg button,
body.auth-page button,
body.dashboard-bg .next-btn,
body.auth-page .next-btn {
    color: #ffffff;
    background: linear-gradient(92deg, #eea11d, #f6b642);
    border: 1px solid #e09a1f;
    box-shadow: 0 10px 20px rgba(228, 152, 30, 0.24);
}

body.dashboard-bg .ghost-btn,
body.dashboard-bg .ghost-link,
body.auth-page .ghost-btn,
body.auth-page .ghost-link {
    color: #334665;
    background: #f4f7fd;
    border: 1px solid #ccd7eb;
}

body.dashboard-bg .dashboard-header .ghost-link,
body.auth-page .dashboard-header .ghost-link {
    color: #f2f6ff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(236, 244, 255, 0.34);
}

body.dashboard-bg .danger-btn,
body.auth-page .danger-btn {
    color: #f6f9ff;
    background: linear-gradient(92deg, #1f3168, #24448f);
    border: 1px solid #3556a9;
}

body.dashboard-bg .danger-outline,
body.auth-page .danger-outline {
    color: #ad2b2b;
    border-color: #efc4c4;
    background: #fff4f4;
}

body.dashboard-bg .status-banner,
body.auth-page .status-banner {
    color: #335ea9;
    background: #edf3ff;
    border-color: #d1ddf2;
}

body.dashboard-bg .status-banner.error,
body.auth-page .status-banner.error {
    color: #b33a3a;
    border-color: #efc3c3;
    background: #fff3f3;
}

body.dashboard-bg .policy-note {
    color: #8a580a;
    border-color: #f2d5a1;
    background: #fff7e8;
}

body.dashboard-bg .step,
body.auth-page .step {
    border-color: #d6deed;
    background: #f8faff;
}

body.dashboard-bg .step span,
body.auth-page .step span {
    border-color: #d6deed;
}

body.dashboard-bg .step p,
body.auth-page .step p {
    color: #8590a5;
}

body.dashboard-bg .step.active,
body.auth-page .step.active {
    border-color: #efc07a;
    background: #fff6e8;
}

body.dashboard-bg .step.active span,
body.dashboard-bg .step.completed span,
body.auth-page .step.active span,
body.auth-page .step.completed span {
    background: linear-gradient(95deg, #ed9e1a, #f5b43e);
    border-color: transparent;
}

body.dashboard-bg .status-pill.active {
    background: #e8f6ee;
    color: #1c7d44;
    border-color: #bfe3cd;
}

body.dashboard-bg .status-pill.inactive {
    background: #fdeeee;
    color: #b53a3a;
    border-color: #f2c0c0;
}

body.dashboard-bg .status-pill.pending {
    background: #fff7e8;
    color: #a36411;
    border-color: #f3d4a0;
}

body.dashboard-bg .status-pill.hold {
    background: #eef3ff;
    color: #355fbb;
    border-color: #c9d7f5;
}

body.dashboard-bg .review-grid section {
    background: #ffffff;
    border: 1px solid #d6deec;
    box-shadow: none;
}

body.dashboard-bg .review-grid section h3,
body.dashboard-bg .review-grid section p,
body.dashboard-bg .review-grid section li,
body.dashboard-bg .review-grid section strong {
    color: #273247;
}

body.dashboard-bg .modal-card,
body.auth-page .modal-card {
    background: #ffffff;
    border: 1px solid #d4ddec;
    color: #243049;
    box-shadow: 0 20px 36px rgba(53, 83, 142, 0.2);
}

body.dashboard-bg .modal-title,
body.auth-page .modal-title {
    color: #1f2b41;
}

body.dashboard-bg .modal-body,
body.auth-page .modal-body {
    color: #5f6a82;
}

body.dashboard-bg .modal-overlay.error .modal-card,
body.auth-page .modal-overlay.error .modal-card {
    background: #fff6f6;
    border-color: #f2c4c4;
}

body.dashboard-bg .output,
body.auth-page .output {
    background: #f8faff;
    border-color: #d4dcec;
    color: #26334b;
}

body.dashboard-bg a,
body.auth-page a {
    color: #2e5fd9;
}

body.auth-page .organizer-access-grid .card {
    background: #ffffff;
    border: 1px solid #d7deea;
}

body.auth-page .organizer-access-grid .card h3 {
    color: #2a3349;
}

body.auth-page .organizer-access-grid .card p {
    color: #7f8899;
}

.inline-forgot-link {
    color: #2f5fd6;
}

.inline-forgot-link:hover {
    color: #22489f;
}

/* Home page aligned to same palette */
body.home-neo {
    color: #202a3d;
    background: linear-gradient(180deg, #eef3fc 0%, #e7edf8 100%);
}

.home-grid-overlay {
    opacity: 0.12;
    background-image:
        linear-gradient(to right, rgba(32, 56, 108, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(32, 56, 108, 0.12) 1px, transparent 1px);
    mask-image: none;
}

.home-glow-a {
    background: rgba(48, 98, 232, 0.12);
}

.home-glow-b {
    background: rgba(243, 159, 18, 0.14);
}

.home-glow-c {
    background: rgba(44, 73, 176, 0.1);
}

.home-v2-header {
    background: linear-gradient(92deg, #2347b2, #2f66e8);
    border: 1px solid #2d5fd7;
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: 0 14px 28px rgba(32, 65, 152, 0.27);
}

.home-logo {
    color: #f5f9ff;
    border: 1px solid rgba(244, 250, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.home-v2-nav a {
    color: #f5f9ff;
    border: 1px solid rgba(244, 250, 255, 0.38);
    background: rgba(255, 255, 255, 0.13);
}

.title-line {
    background: linear-gradient(120deg, #24345c 6%, #325ebd 56%, #5d7fce 94%);
    -webkit-background-clip: text;
    background-clip: text;
}

.home-primary-btn {
    color: #ffffff;
    background: linear-gradient(95deg, #eea11d, #f6b642);
    box-shadow: 0 12px 22px rgba(228, 152, 30, 0.24);
}

.home-secondary-btn {
    color: #324c77;
    border-color: #c7d5ec;
    background: #f5f8fe;
}

.home-events-shell,
.home-marquee-wrap {
    border: 1px solid #d8dfea;
    background: #ffffff;
    backdrop-filter: none;
}

.home-events-shell h2 {
    color: #243049;
}

.home-event-card {
    border: 1px solid #d7deea;
    background: #ffffff;
}

.home-event-poster {
    border-bottom: 1px solid #d7deea;
    background: #f4f7fd;
}

.home-event-poster-fallback {
    color: #2f4f98;
    text-shadow: none;
}

.home-event-content h3 {
    color: #25324a;
}

.home-event-about {
    color: #7e889a;
}

.home-event-meta {
    color: #8a93a7;
}

.home-marquee-track span {
    color: #4f5f81;
}

/* Trial card style (preview only). */
body.dashboard-bg .card,
body.dashboard-bg .simple-shell,
body.dashboard-bg .wizard-shell,
body.dashboard-bg .side-card,
body.dashboard-bg .event-card,
body.dashboard-bg .mini-card,
body.dashboard-bg .selected-event,
body.dashboard-bg .member-card,
body.dashboard-bg .wizard-panel,
body.dashboard-bg .field-builder-row,
body.dashboard-bg .score-row,
body.dashboard-bg .team-confirmation .confirm-card,
body.dashboard-bg .thankyou-card,
body.auth-page .auth-shell,
body.auth-page .card,
body.home-neo .home-events-shell,
body.home-neo .home-event-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #ccd8ee;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow:
        0 16px 30px rgba(28, 59, 126, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.dashboard-bg .card::before,
body.dashboard-bg .simple-shell::before,
body.dashboard-bg .wizard-shell::before,
body.dashboard-bg .side-card::before,
body.dashboard-bg .event-card::before,
body.dashboard-bg .mini-card::before,
body.dashboard-bg .selected-event::before,
body.dashboard-bg .member-card::before,
body.dashboard-bg .wizard-panel::before,
body.dashboard-bg .field-builder-row::before,
body.dashboard-bg .score-row::before,
body.dashboard-bg .team-confirmation .confirm-card::before,
body.dashboard-bg .thankyou-card::before,
body.auth-page .auth-shell::before,
body.auth-page .card::before,
body.home-neo .home-events-shell::before,
body.home-neo .home-event-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2f66e8, #f4ac30);
    opacity: 0.95;
}

body.dashboard-bg .card:hover,
body.dashboard-bg .simple-shell:hover,
body.dashboard-bg .wizard-shell:hover,
body.dashboard-bg .side-card:hover,
body.dashboard-bg .event-card:hover,
body.dashboard-bg .mini-card:hover,
body.dashboard-bg .selected-event:hover,
body.dashboard-bg .member-card:hover,
body.dashboard-bg .wizard-panel:hover,
body.auth-page .auth-shell:hover,
body.auth-page .card:hover,
body.home-neo .home-event-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 22px 34px rgba(28, 59, 126, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

body.dashboard-bg .event-card,
body.dashboard-bg .mini-card {
    border-left: 4px solid #2f66e8;
}

body.home-neo .home-event-card {
    border-left: 4px solid #2f66e8;
}

body.home-neo .home-events-shell {
    border-left: 4px solid #f4ac30;
}
