:root {
    --bg: #f3f7ff;
    --sidebar: #0f2f5f;
    --sidebar-soft: #174478;
    --surface: rgba(255,255,255,0.96);
    --surface-2: #eef5ff;
    --text: #102033;
    --muted: #5d6b7c;
    --brand: #1455a3;
    --brand-2: #2f80ed;
    --accent: #d9eaff;
    --line: rgba(20, 85, 163, 0.14);
    --success: #0f766e;
    --warning: #b45309;
    --shadow: 0 24px 60px rgba(15, 47, 95, 0.10);
    --shadow-soft: 0 10px 28px rgba(15, 47, 95, 0.06);
    --radius: 26px;
    --radius-sm: 18px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
            radial-gradient(circle at top left, rgba(47, 128, 237, 0.12), transparent 24%),
            radial-gradient(circle at bottom right, rgba(20, 85, 163, 0.08), transparent 28%),
            linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

a { color: inherit; text-decoration: none; }

.admin-dashboard .app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.admin-dashboard .sidebar {
    background: linear-gradient(180deg, var(--sidebar) 0%, #071d3d 100%);
    color: #fff;
    padding: 28px 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-dashboard .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-dashboard .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-2), #8ec5ff);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 24px;
    flex-shrink: 0;
}

.admin-dashboard .brand-copy h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.05;
    font-family: Georgia, "Times New Roman", serif;
}

.admin-dashboard .brand-copy p {
    margin: 6px 0 0;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-dashboard .nav-group {
    display: grid;
    gap: 8px;
}

.admin-dashboard .nav-label {
    color: rgba(255,255,255,0.58);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 8px 0 4px;
}

.admin-dashboard .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    color: rgba(255,255,255,0.82);
    font-weight: 700;
    transition: 0.22s ease;
}

.admin-dashboard .nav-link:hover,
.admin-dashboard .nav-link.active {
    background: #2f4f85;
    color: #ffffff;
}

.admin-dashboard .sidebar-note {
    margin-top: auto;
    padding: 16px;
    border-radius: 18px;
    background: #5a2e12;
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    line-height: 1.7;
    font-size: 14px;
}

.admin-dashboard .main {
    padding: 28px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.admin-dashboard .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.admin-dashboard .topbar h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.02;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.03em;
}

.admin-dashboard .topbar p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.admin-dashboard .btn {
    appearance: none;
    border: none;
    cursor: pointer;
    padding: 13px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.22s ease;
}

.admin-dashboard .btn.primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 16px 26px rgba(20, 85, 163, 0.24);
}

.admin-dashboard .btn.secondary {
    background: #fff;
    color: var(--brand);
    border: 1px solid var(--line);
}

.admin-dashboard .btn.small {
    padding: 10px 14px;
    font-size: 13px;
}

.admin-dashboard .page {
    display: none;
    width: 100%;
    max-width: 100%;
}

.admin-dashboard .page.active {
    display: block;
}

.admin-dashboard .grid,
.admin-dashboard .stats,
.admin-dashboard .cards,
.admin-dashboard .two-col,
.admin-dashboard .table-head,
.admin-dashboard .table-row,
.admin-dashboard .bank-grid {
    display: grid;
    gap: 18px;
}

.admin-dashboard .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.admin-dashboard .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-dashboard .two-col {
    grid-template-columns: 1.1fr 0.9fr;
}

.admin-dashboard .stacked-sections {
    display: grid;
    gap: 22px;
}

.admin-dashboard .surface,
.admin-dashboard .stat-card,
.admin-dashboard .card,
.admin-dashboard .table,
.admin-dashboard .activity-item,
.admin-dashboard .login-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-dashboard .surface,
.admin-dashboard .card,
.admin-dashboard .table,
.admin-dashboard .login-card {
    padding: 24px;
}

.admin-dashboard .stat-card {
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.9));
}

.admin-dashboard .stat-card small,
.admin-dashboard .section-label,
.admin-dashboard .pill,
.admin-dashboard .status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-dashboard .section-label,
.admin-dashboard .pill {
    background: var(--accent);
    color: var(--brand);
}

.admin-dashboard .status.active,
.admin-dashboard .status.published {
    background: rgba(47,125,79,0.12);
    color: var(--success);
}

.admin-dashboard .status.completed {
    background: rgba(176,114,29,0.12);
    color: var(--warning);
}

.admin-dashboard .stat-card h3,
.admin-dashboard .card h3,
.admin-dashboard .surface h3,
.admin-dashboard .login-card h3 {
    margin: 14px 0 8px;
    font-size: 28px;
    line-height: 1.08;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.03em;
}

.admin-dashboard .stat-card p,
.admin-dashboard .card p,
.admin-dashboard .surface p,
.admin-dashboard .activity-item p,
.admin-dashboard .login-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.admin-dashboard .stat-number {
    display: block;
    margin-top: 16px;
    font-size: 34px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--brand);
}

.admin-dashboard .section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-dashboard .section-head h3 {
    margin: 10px 0 0;
    font-size: 32px;
    line-height: 1.02;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.03em;
}

.admin-dashboard .field-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-dashboard .field-grid.single {
    grid-template-columns: 1fr;
}

.admin-dashboard .field {
    display: grid;
    gap: 8px;
}

.admin-dashboard .field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.admin-dashboard .input,
.admin-dashboard .textarea,
.admin-dashboard .select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-dashboard .textarea {
    min-height: 130px;
    resize: vertical;
}

.admin-dashboard .input:focus,
.admin-dashboard .textarea:focus,
.admin-dashboard .select:focus {
    border-color: rgba(47,128,237,0.42);
    box-shadow: 0 0 0 4px rgba(47,128,237,0.12);
}

.admin-dashboard .form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.admin-dashboard .table {
    overflow: hidden;
}

.admin-dashboard .table-head,
.admin-dashboard .table-row {
    grid-template-columns: 1.2fr 0.9fr 0.8fr 0.7fr 0.8fr;
    align-items: center;
    padding: 16px 0;
}

/* Status — center align */
.admin-dashboard .table-head div:nth-child(2),
.admin-dashboard .table-row > div:nth-child(2) {
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
}

/* Required — center align */
.admin-dashboard .table-head div:nth-child(3),
.admin-dashboard .table-row > div:nth-child(3) {
    text-align: center;
}

/* Collected — center align */
.admin-dashboard .table-head div:nth-child(4),
.admin-dashboard .table-row > div:nth-child(4) {
    text-align: center;
}

/* Actions header — center */
.admin-dashboard .table-head div:nth-child(5) {
    text-align: center;
}

.admin-dashboard .table-head {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line);
}

.admin-dashboard .table-row {
    border-bottom: 1px solid rgba(107,63,24,0.08);
}

.admin-dashboard .table-head > div:last-child{
    padding-right: 80px;
}

.admin-dashboard .table-row > div:last-child {
    padding-right: 10px;
}

.admin-dashboard .table-title {
    font-weight: 700;
}

.admin-dashboard .table-sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.admin-dashboard .row-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 180px;
}

.admin-dashboard .row-actions .btn.small {
    min-width: 100px;
    text-align: center;
    justify-content: center;
}

.admin-dashboard .activity-list {
    display: grid;
    gap: 14px;
}

.admin-dashboard .activity-item {
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.94));
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.admin-dashboard .activity-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.admin-dashboard .meta {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.admin-dashboard .bank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.admin-dashboard .upload-dropzone {
    border: 2px dashed rgba(107, 63, 24, 0.22);
    background: var(--surface-2);
    border-radius: 22px;
    padding: 34px 24px;
    text-align: center;
}

.admin-dashboard .upload-dropzone strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.admin-dashboard .upload-dropzone p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.admin-dashboard .preview-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-dashboard .editable-table {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
}

.admin-dashboard .editable-row {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.8fr 0.9fr;
    gap: 0;
}

.admin-dashboard .editable-row + .editable-row {
    border-top: 1px solid rgba(107,63,24,0.08);
}

.admin-dashboard .editable-cell {
    padding: 14px 16px;
    border-right: 1px solid rgba(107,63,24,0.08);
    min-height: 54px;
    display: flex;
    align-items: center;
    background: #fff;
}

.admin-dashboard .editable-row .editable-cell:last-child {
    border-right: none;
}

.admin-dashboard .editable-row.header .editable-cell {
    background: var(--surface-2);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.admin-dashboard .bank-item {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.admin-dashboard .bank-item small {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
}

.admin-dashboard .bank-item strong {
    display: block;
    line-height: 1.5;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 900;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

body.admin-dashboard .sidebar {
    z-index: 1000;
}

.admin-dashboard .top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.admin-dashboard .mobile-menu-btn {
    display: none;
}

.mobile-modal {
    display: none;
}

.admin-dashboard .sidebar-logout {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-dashboard .btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1455a3, #0f3d75);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.22s ease;
    box-shadow: 0 10px 20px rgba(20, 85, 163, 0.22);
}

.admin-dashboard .btn-logout:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #ffffff;
    transform: translateY(-2px);
}

/* Error box */
.admin-dashboard .error-box {
    background: rgba(107, 63, 24, 0.04);
    border: 1px solid rgba(107, 63, 24, 0.2);
    border-left: 3px solid var(--brand);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.admin-dashboard .error-title {
    color: var(--brand);
    font-weight: 700;
    font-size: 13px;
    margin: 0 0 6px 0;
}

.admin-dashboard .error-box ul {
    margin: 0;
    padding-left: 16px;
}

.admin-dashboard .error-box ul li {
    color: var(--brand);
    font-size: 13px;
    line-height: 1.6;
}

/* Prevent inner sections from overflowing */
.admin-dashboard .surface,
.admin-dashboard .stacked-sections {
    display: grid;
    gap: 22px;
    width: 100%;
    max-width: 100%;
}

.sms-registrations-page .top-actions {
    gap: 10px;
}

.sms-registrations-page .sms-registration-table {
    margin-top: 22px;
}

.sms-registrations-page .sms-registration-row {
    grid-template-columns: 1.45fr 1.45fr 1.15fr 1.25fr 72px;
    align-items: center;
    width: 100%;
    column-gap: 18px;
}

.sms-registrations-page .actions-heading {
    text-align: right;
    justify-self: end;
    width: 100%;
}

.sms-registrations-page .row-actions {
    display: flex;
    justify-content: flex-end;
    justify-self: end;
    width: 100%;
}

.sms-registrations-page .row-actions .btn {
    margin-right: 0;
}




.sms-registrations-page .delete-btn {
    color: #b42318;
}

.sms-registrations-page .delete-btn:hover {
    background: rgba(180, 35, 24, 0.08);
    border-color: rgba(180, 35, 24, 0.2);
}








/* ========================
   MEDIA QUERIES
   ======================== */

@media (max-width: 1180px) {
    .admin-dashboard .stats,
    .admin-dashboard .cards,
    .admin-dashboard .two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .admin-dashboard .field-grid,
    .admin-dashboard .table-head,
    .admin-dashboard .table-row,
    .admin-dashboard .bank-grid,
    .admin-dashboard .stats,
    .admin-dashboard .cards,
    .admin-dashboard .two-col {
        grid-template-columns: 1fr;
    }

    .admin-dashboard .row-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .admin-dashboard .main,
    .admin-dashboard .sidebar {
        padding: 18px;
    }

    .admin-dashboard .surface,
    .admin-dashboard .card,
    .admin-dashboard .table,
    .admin-dashboard .login-card {
        padding: 18px;
    }
}

@media (max-width: 768px) {

    /* Layout */
    body.admin-dashboard .app {
        grid-template-columns: 1fr;
    }

    body.admin-dashboard .sidebar {
        display: none !important;
    }

    /* Topbar */
    .admin-dashboard .topbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-dashboard .topbar-left {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .admin-dashboard .topbar-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .admin-dashboard .topbar-row h2 {
        margin: 0;
    }

    .admin-dashboard .topbar-left > p {
        margin-top: 8px;
        width: 100%;
    }

    .admin-dashboard .mobile-menu-btn {
        display: block;
        font-size: 24px;
        cursor: pointer;
        flex-shrink: 0;
        margin-left: 12px;
    }


    .admin-dashboard .top-actions {
        display: flex;
        margin-top: 14px;
        width: 100%;
    }

    .admin-dashboard .top-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Table */
    .admin-dashboard .table {
        overflow: hidden;
        width: 100%;
    }

    .admin-dashboard .table-head {
        display: none;
    }

    .admin-dashboard .table-row {
        display: grid !important;
        padding: 16px;
        margin-bottom: 14px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(107, 63, 24, 0.08);
        word-break: break-word;
    }

    /* All divs — block layout */
    .admin-dashboard .table-row > div {
        display: block;
        margin-bottom: 6px;
    }

    /* Work — title + description */
    .admin-dashboard .table-row > div:nth-child(1) {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(107, 63, 24, 0.08);
    }


    .admin-dashboard .table-row > div:nth-child(2),
    .admin-dashboard .table-row > div:nth-child(3),
    .admin-dashboard .table-row > div:nth-child(4) {
        display: flex;
        align-items: center;
        margin-bottom: 6px;
    }

    .admin-dashboard .table-row > div:nth-child(2)::before,
    .admin-dashboard .table-row > div:nth-child(3)::before,
    .admin-dashboard .table-row > div:nth-child(4)::before {
        font-size: 10px;
        font-family: monospace;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        width: 110px;
        min-width: 100px;
        flex-shrink: 0;
    }

    .admin-dashboard .table-row > div:nth-child(2) {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 8px;
    }

    .admin-dashboard .table-row > div:nth-child(2)::before {
        content: "Status";
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;

        /* CHANGE THIS */
        width: 80px;
        min-width: 80px;
    }


    /* Rupee amounts — mono font for neat alignment */
    .admin-dashboard .table-row > div:nth-child(3),
    .admin-dashboard .table-row > div:nth-child(4) {
        font-family: "Courier New", Courier, monospace;
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
    }

    .admin-dashboard .table-row > div:nth-child(3)::before {
        content: "Required";
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;

        width: 95px;
        min-width: 80px;
    }

    .admin-dashboard .table-row > div:nth-child(4)::before {
        content: "Collected";
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        width: 100px;
        min-width: 100px;
        flex-shrink: 0;
    }

    .admin-dashboard .table-title {
        font-size: 15px;
        font-weight: 700;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .admin-dashboard .table-sub {
        font-size: 12px;
        color: var(--muted);
        margin-top: 2px;
        word-break: break-word;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* Actions */
    .admin-dashboard .row-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid rgba(107, 63, 24, 0.08);
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admin-dashboard .row-actions .btn {
        flex: 1;
        text-align: center;
        min-width: 80px;
    }

    .admin-dashboard .stacked-sections {
        display: block !important;
        gap: 16px;
    }

    .admin-dashboard .stacked-sections > * {
        margin-bottom: 16px;
    }

    .admin-dashboard .stacked-sections > *:last-child {
        margin-bottom: 0;
    }

    /* Preview card fix */
    .admin-dashboard .card {
        overflow: hidden;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .admin-dashboard .card h3 {
        word-break: break-word;
        overflow-wrap: break-word;
        overflow: hidden;
    }

    .admin-dashboard .card p {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Form actions — vertical (create/edit page) */
    .admin-dashboard .form-actions {
        flex-direction: column;
    }

    /* Table row actions — horizontal (index page) */
    .admin-dashboard .table-row > .row-actions {
        flex-direction: row !important;
        flex-wrap: wrap;
    }

    .admin-dashboard .table-row > .row-actions .btn {
        flex: 1;
        min-width: 70px;
        text-align: center;
    }

    .admin-dashboard .rupee {
        font-family: "Noto Sans", sans-serif;
        margin-right: 2px;
    }

    /* ========================
       MOBILE MODAL
       ======================== */

    .mobile-modal.show {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 2000;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .mobile-modal-box {
        background: linear-gradient(180deg, #0f2f5f 0%, #123d78 100%);
        width: 75%;
        max-width: 325px;
        height: 100vh;
        border-radius: 0;
        padding: 16px 24px 28px;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        animation: slideInRight 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    @keyframes slideInRight {
        from { transform: translateX(100%); }
        to   { transform: translateX(0); }
    }

    .mobile-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        margin-left: -24px;
        margin-right: -24px;
        padding: 0 24px 28px;
        font-size: 20px;
        font-weight: 700;
        color: #ffffff;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .modal-close-btn {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #ffffff;
        padding: 4px 8px;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .modal-close-btn:hover {
        background: rgba(255,255,255,0.12);
    }

    .mobile-modal-links .nav-link {
        display: block;
        padding: 14px 0;
        font-size: 17px;
        color: rgba(255,255,255,0.92);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        text-decoration: none;
        font-weight: 700;
    }

    .mobile-modal-links {
        flex: 1;
    }



    .mobile-modal-footer input[type="submit"]:hover {
        background: #cc0000;
        color: #ffffff;
    }

    .mobile-modal-links .nav-link:last-child {
        border-bottom: none;
    }

    .mobile-modal-links .nav-link.active {
        background: #2f4f85;
        color: #ffffff;
        padding-left: 14px;
        border-radius: 14px;
        font-weight: 800;
    }

    .mobile-modal-links .nav-link:hover {
        background: linear-gradient(135deg, #1455a3, #0f3d75);
        color: #ffffff;
        border-radius: 14px;
        padding-left: 14px;
    }

    .mobile-modal-footer {
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid rgba(94, 58, 23, 0.12);
    }


    .mobile-modal-footer form {
        width: 100%;
        margin: 0;
        padding: 0;
        background: transparent;
    }


    .mobile-modal-footer form button {
        display: block;
        width: 100%;
        padding: 13px 14px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--brand-2), #8ec5ff);
        color: #ffffff;
        font-weight: 700;
        font-size: 15px;
        border: none;
        box-shadow: 0 10px 20px rgba(20, 85, 163, 0.22);
        cursor: pointer;
        transition: 0.22s ease;
        font-family: inherit;
        text-align: center;
    }

    .mobile-modal-footer form button:hover {
        background: linear-gradient(135deg, var(--brand), var(--brand-2));
        color: #ffffff;
        transform: translateY(-2px);
    }
}





:root {
    --bg: #f3f7ff;
    --bg-soft: #f8fbff;
    --surface: rgba(255,255,255,0.96);
    --surface-strong: #ffffff;
    --text: #102033;
    --muted: #5d6b7c;
    --brand: #1455a3;
    --brand-2: #2f80ed;
    --brand-soft: #d9eaff;
    --line: rgba(20, 85, 163, 0.14);
    --shadow: 0 24px 60px rgba(15, 47, 95, 0.10);
    --shadow-soft: 0 10px 30px rgba(15, 47, 95, 0.06);
    --radius: 28px;
    --radius-sm: 18px;
    --max: 1220px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
            radial-gradient(circle at top left, rgba(47, 128, 237, 0.12), transparent 25%),
            radial-gradient(circle at right center, rgba(20, 85, 163, 0.08), transparent 22%),
            linear-gradient(180deg, #f8fbff 0%, #f3f7ff 42%, #eef5ff 100%);
}

img { max-width: 100%; display: block; }

a {
    color: inherit;
    text-decoration: none;
}

.app {
    min-height: 100vh;
}

.shell {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: rgba(248, 251, 255, 0.86);
    border-bottom: 1px solid rgba(20, 85, 163, 0.10);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: 24px;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.brand-copy h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.brand-copy p {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    padding: 11px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--surface-strong);
    color: var(--brand);
    box-shadow: var(--shadow-soft);
}

main.shell {
    padding-top: 26px;
    padding-bottom: 24px;
}

.page {
    padding: 12px 0 56px;
}

.page-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.page-label {
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    background:
            linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.58)),
            url('https://s3.ap-south-1.amazonaws.com/zionpuram.com/zion-church.jpg') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 29, 61, 0.72), rgba(20, 85, 163, 0.24));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 860px);
    padding: 72px 52px 56px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(6px);
}

.hero h2 {
    margin: 20px 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    max-width: 11ch;
}

.hero p {
    margin: 0;
    max-width: 62ch;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    appearance: none;
    border: none;
    cursor: pointer;
    padding: 14px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    transition: 0.24s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn.primary {
    background: linear-gradient(135deg, #d9eaff, #ffffff);
    color: var(--brand);
    box-shadow: 0 16px 26px rgba(0,0,0,0.14);
}

.btn.secondary {
    background: rgba(255,255,255,0.94);
    color: var(--brand);
    border: 1px solid rgba(94, 58, 23, 0.12);
}

.btn.ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
}

.btn:hover {
    transform: translateY(-1px);
}

.section {
    margin-top: 28px;
    padding: 34px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.section-head h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 10px 0 0;
    max-width: 66ch;
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px;
}

.grid-3,
.grid-2,
.stats,
.cards,
.footer-details {
    display: grid;
    gap: 20px;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mini-card,
.event-card,
.donation-card,
.ministry-card,
.copy-block,
.timeline,
.info-tile,
.bank-card,
.form-card,
.stat {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88));
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.mini-card,
.event-card,
.donation-card,
.ministry-card,
.copy-block,
.timeline,
.info-tile,
.bank-card,
.form-card {
    padding: 24px;
}

.mini-card h4,
.event-card h4,
.donation-card h4,
.ministry-card h4,
.copy-block h4,
.timeline h4,
.bank-card h4 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.15;
}

.mini-card p,
.event-card p,
.donation-card p,
.ministry-card p,
.copy-block p,
.timeline p,
.bank-card p,
.info-tile strong,
.note,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 20px;
}

.timeline {
    background: linear-gradient(180deg, #fff9f3, #fffefb);
}

.timeline + .timeline {
    margin-top: 18px;
}

.timeline small,
.badge,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: #d9eaff;
    color: #1455a3;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 15px 16px;
    background: #f4f8ff;
    border: 1px solid rgba(94, 58, 23, 0.08);
    border-radius: 16px;
}

.list-item strong { font-size: 14px; }
.list-item span { color: var(--muted); text-align: right; }

.progress {
    height: 10px;
    background: #d9eaff;
    border-radius: 999px;
    overflow: hidden;
    margin: 18px 0 12px;
}

.progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.stat {
    padding: 28px 20px;
    text-align: center;
}

.stat strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    color: var(--brand);
    margin-bottom: 10px;
}

.stat span {
    color: var(--muted);
    font-weight: 600;
}

.info-tile small {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.74);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-tile strong {
    display: block;
    font-size: 18px;
    color: #fff;
}

.section-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input,
.field-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #cfe0f7;
    background: #ffffff !important;
    color: #222;
    font-size: 15px;
    outline: none;
    transition: all 0.25s ease;
}

.search-input {
    min-width: 240px;
    max-width: 300px;
}

.search-input:focus,
.field-input:focus {
    border-color: #9fc5ff;
    background: #ffffff !important;
    box-shadow:
            0 0 0 4px rgba(47, 128, 237, 0.12),
            0 4px 12px rgba(47, 128, 237, 0.08);
}

.form-card {
    max-width: 620px;
    margin: 0 auto;
    padding: 34px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.bank-card {
    max-width: 720px;
    margin: 0 auto;
}

.note {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #eef5ff;
    border: 1px solid rgba(139, 90, 43, 0.14);
}

.footer {
    background: linear-gradient(180deg, #0f2f5f 0%, #071d3d 100%);
    color: #fff;
    padding: 54px 0 30px;
    margin-top: 24px;
}

.footer-inner {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1;
    margin: 0;
}

.footer-subtitle {
    margin-top: 10px;
    color: rgba(255,255,255,0.74);
    max-width: 60ch;
    line-height: 1.7;
}

.footer .info-tile {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: none;
}

.footer-bottom {
    margin-top: 26px;
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    text-align: center;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--brand);
    line-height: 1;
    padding: 6px 10px;
}

.timeline {
    background: linear-gradient(180deg, #eef5ff, #ffffff);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 24px;
}


.timeline + .timeline {
    margin-top: 20px !important;
}


.timeline small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 14px;
    text-transform: uppercase;
}


.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.split > div {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    align-self: stretch;
}

.split > div > .copy-block,
.split > div > .timeline {
    height: 100%;
    margin-top: 0 !important;
}

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

    .split > div {
        grid-template-rows: auto;
    }

    .split > div > .copy-block,
    .split > div > .timeline {
        height: auto;
    }
}

@media (max-width: 1024px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
    .hero { min-height: 620px; }
    .hero-content { width: min(100%, 760px); }
}

@media (max-width: 780px) {
    .nav {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 16px;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 14px 16px;
        border-radius: 14px;
        flex: unset;
    }

    .brand {
        flex: 1;
    }

    .grid-3,
    .grid-2,
    .cards,
    .stats,
    .footer-details {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 44px 24px 34px;
    }

    .hero {
        min-height: 560px;
        border-radius: 24px;
    }

    .section {
        padding: 24px;
    }

    .section-tools {
        width: 100%;
    }

    .search-input {
        min-width: 100%;
        max-width: 100%;
    }

    .form-card {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .shell,
    .footer-inner {
        width: min(calc(100% - 24px), var(--max));
    }

    .brand-copy h1 {
        font-size: 18px;
    }

    .hero h2 {
        font-size: 42px;
    }

    .page {
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {

    .page-label {
        margin-bottom: 12px;
        display: inline-block;
    }

}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 *= require_style
 *= require_admin
 */



.flash-area {
    width: min(calc(100% - 40px), 1220px);
    margin: 16px auto 0;
    position: relative;
    z-index: 20;
}

.flash-popup {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 13px 18px;

    border-radius: 16px;
    background: #fff7f3;
    border: 1px solid rgba(107, 63, 24, 0.22);
    box-shadow: 0 14px 34px rgba(37, 26, 17, 0.10);

    color: #6b3f18;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;

    animation: flashFadeIn 0.25s ease;
}

.flash-notice {
    background: #f5fff8;
    border-color: rgba(47, 125, 79, 0.22);
    color: #2f7d4f;
}

.flash-alert,
.flash-error,
.flash-danger {
    background: #fff7f3;
    border-color: rgba(107, 63, 24, 0.22);
    color: #6b3f18;
}

@keyframes flashFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 780px) {
    .flash-area {
        width: min(calc(100% - 24px), 1220px);
        margin: 10px auto 14px;
    }

    .flash-popup {
        width: 100%;
        max-width: none;
        padding: 11px 14px;
        border-radius: 14px;
        font-size: 12px;
        line-height: 1.4;
    }
}
