:root {
    --primary: #60c3e6;
    --primary-dark: #2d9cdb;
    --primary-soft: #eaf8ff;

    --gold: #f7c948;
    --gold-dark: #d9a514;
    --gold-soft: #fff7df;

    --success: #17b26a;
    --danger: #ef4444;
    --warning: #f59e0b;

    --white: #ffffff;
    --dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #f3f6fb;
    --line: #e5edf5;

    --shadow-sm: 0 6px 18px rgba(31, 41, 55, 0.06);
    --shadow-md: 0 10px 30px rgba(31, 41, 55, 0.08);
    --shadow-lg: 0 18px 40px rgba(31, 41, 55, 0.12);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(96, 195, 230, 0.12), transparent 25%),
        radial-gradient(circle at bottom right, rgba(247, 201, 72, 0.12), transparent 22%),
        linear-gradient(180deg, #f7fbff 0%, #f4f9fd 100%);
    color: var(--dark);
}

/* Container spacing */
.section-space {
    padding-top: 32px;
    padding-bottom: 40px;
}

/* Page title */
.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}

.page-subtitle {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
    max-width: 720px;
}

/* Global cards */
.card,
.info-panel,
.stat-card {
    border: 1px solid rgba(229, 237, 245, 0.9) !important;
    border-radius: var(--radius-md) !important;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--shadow-md);
}

.card {
    overflow: hidden;
}

.card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%) !important;
    border-bottom: 1px solid var(--line) !important;
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
    padding: 18px 22px !important;
}

.card-body {
    padding: 22px !important;
}

/* Stat cards */
.stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    min-height: 180px;
    transition: all 0.28s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(96, 195, 230, 0.16), rgba(247, 201, 72, 0.14));
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.icon-blue {
    background: linear-gradient(135deg, rgba(96, 195, 230, 0.18), rgba(45, 156, 219, 0.22));
    color: var(--primary-dark);
}

.icon-red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(248, 113, 113, 0.18));
    color: var(--danger);
}

.icon-green {
    background: linear-gradient(135deg, rgba(23, 178, 106, 0.15), rgba(34, 197, 94, 0.20));
    color: var(--success);
}

.icon-gold {
    background: linear-gradient(135deg, rgba(247, 201, 72, 0.18), rgba(217, 165, 20, 0.20));
    color: var(--gold-dark);
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.6px;
}

.muted {
    color: var(--gray);
}

/* Info panel */
.info-panel {
    padding: 22px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.info-panel::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(247, 201, 72, 0.13);
}

/* Prayer list */
.prayer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prayer-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #d7e5f0;
    font-size: 15px;
}

.prayer-list li:last-child {
    border-bottom: none;
}

.prayer-list span {
    color: var(--gray);
    font-weight: 600;
}

.prayer-list strong {
    color: var(--dark);
    font-size: 15px;
    font-weight: 800;
}

/* Table modern */
.table-modern {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: linear-gradient(180deg, #f9fcff 0%, #f0f8ff 100%);
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--line);
    padding: 16px 14px;
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 16px 14px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
    font-size: 14px;
    color: #334155;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background: rgba(96, 195, 230, 0.06);
}

/* Empty state */
.empty-box {
    text-align: center;
    padding: 40px 18px;
    color: var(--gray);
    font-size: 15px;
    font-weight: 500;
}

/* Bootstrap badge override */
.badge {
    font-weight: 700 !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
}

/* Navbar modern */
.topbar {
    background: linear-gradient(135deg, #60c3e6 0%, #7ed6f3 50%, #f7c948 140%);
    box-shadow: 0 8px 28px rgba(45, 156, 219, 0.18);
    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar-brand {
    font-weight: 800;
    color: #fff !important;
    letter-spacing: 0.3px;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 14px !important;
    transition: 0.25s ease;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.dropdown-menu {
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-lg);
    padding: 10px;
}

.dropdown-item {
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
}

.dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    border-radius: 12px !important;
    font-weight: 700 !important;
    transition: all 0.25s ease !important;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
}

.btn-primary-custom:hover {
    color: white;
    box-shadow: 0 10px 24px rgba(45, 156, 219, 0.22);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #ffd76b);
    border: none;
    color: #5b4300;
}

.btn-gold:hover {
    color: #5b4300;
    box-shadow: 0 10px 24px rgba(247, 201, 72, 0.22);
}

.btn-danger-custom {
    background: linear-gradient(135deg, #f87171, #ef4444);
    border: none;
    color: white;
}

.btn-danger-custom:hover {
    color: white;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.20);
}

/* Form modern */
.form-control,
.form-select,
textarea {
    border-radius: 14px !important;
    border: 1px solid #dce7f1 !important;
    min-height: 48px;
    padding: 12px 14px !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(96, 195, 230, 0.16) !important;
}

/* Small helper */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 992px) {
    .page-title {
        font-size: 26px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-card {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .section-space {
        padding-top: 22px;
        padding-bottom: 28px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .card-header,
    .card-body {
        padding: 16px !important;
    }

    .table-modern thead th,
    .table-modern tbody td {
        font-size: 13px;
        padding: 12px 10px;
    }
}

/* =========================
   LOGIN SIMPLE MODERN
========================= */

.login-simple-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #5fc0df 0%, #6ec8e5 35%, #f5f7fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-simple-wrapper {
    width: 100%;
    max-width: 560px;
}

.login-simple-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 28px;
    padding: 38px 32px;
    box-shadow: 0 20px 50px rgba(31, 41, 55, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-simple-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-simple-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: linear-gradient(135deg, #eef8f3 0%, #f8edd2 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-simple-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: #24324a;
}

.login-simple-header p {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
}

.login-label {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.login-input-group {
    position: relative;
}

.login-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.75;
    z-index: 2;
}

.login-input {
    min-height: 54px !important;
    border-radius: 16px !important;
    border: 1px solid #cfe0ea !important;
    background: #f9fbfd !important;
    padding-left: 46px !important;
    padding-right: 16px !important;
    font-size: 15px;
    box-shadow: none !important;
}

.login-input:focus {
    border-color: #67c6e3 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(103, 198, 227, 0.14) !important;
}

.login-password {
    padding-right: 52px !important;
}

.login-toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.75;
    z-index: 3;
}

.login-toggle-password:hover {
    opacity: 1;
}

.login-btn-submit {
    min-height: 54px;
    border: none !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #5bb9dc 0%, #3498db 100%) !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 800 !important;
    box-shadow: 0 14px 28px rgba(52, 152, 219, 0.22);
    transition: all 0.25s ease;
}

.login-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(52, 152, 219, 0.28);
}

.login-alert-simple {
    border: none !important;
    border-radius: 14px !important;
    margin-bottom: 18px;
    font-weight: 600;
}

@media (max-width: 576px) {
    .login-simple-card {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .login-simple-header h2 {
        font-size: 24px;
    }

    .login-simple-icon {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }

    .login-btn-submit {
        font-size: 16px;
    }
}

.prayer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prayer-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #dbe6f0;
}

.prayer-list li:last-child {
    border-bottom: none;
}

.prayer-list span {
    color: #64748b;
    font-weight: 600;
}

.prayer-list strong {
    color: #1f2937;
    font-weight: 800;
}

.donasi-qris-img {
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.10);
}

.donasi-info-box {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid #e4edf5;
    border-radius: 20px;
    padding: 18px;
}

.donasi-nominal-highlight {
    font-size: 28px;
    font-weight: 800;
    color: #17b26a;
}

.badge-status-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-status-valid {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-status-ditolak {
    background: #f8d7da;
    color: #842029;
}

.org-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.org-item {
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e4edf5;
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.05);
}

.org-role {
    font-size: 13px;
    font-weight: 800;
    color: #2d9cdb;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
}

.org-name {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 4px;
}

.org-meta {
    font-size: 14px;
    color: #6b7280;
}

.dashboard-galeri-img {
    height: 420px;
    object-fit: cover;
    border-radius: 18px;
}

.dashboard-galeri-caption {
    left: 20px;
    right: 20px;
    bottom: 20px;
    text-align: left;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
    padding: 18px 20px;
    border-radius: 18px;
}

.dashboard-galeri-caption h5 {
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
}

.dashboard-galeri-caption p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .dashboard-galeri-img {
        height: 260px;
    }

    .dashboard-galeri-caption {
        padding: 12px 14px;
    }

    .dashboard-galeri-caption h5 {
        font-size: 16px;
    }

    .dashboard-galeri-caption p {
        font-size: 13px;
    }
}

/* =========================
   OTP MODERN UI
========================= */

.otp-wrapper-modern {
    max-width: 640px;
}

.otp-card-modern {
    padding-top: 42px;
    padding-bottom: 42px;
}

.otp-box-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin-top: 12px;
}

.otp-input-box {
    width: 56px;
    height: 62px;
    border-radius: 16px;
    border: 1px solid #d9e6ef;
    background: #f9fbfd;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #24324a;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: none;
}

.otp-input-box:focus {
    border-color: #67c6e3;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(103, 198, 227, 0.14);
    transform: translateY(-1px);
}

.otp-note-text {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.6;
}

.otp-timer-box {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #2d9cdb;
}

@media (max-width: 576px) {
    .otp-box-group {
        gap: 8px;
    }

    .otp-input-box {
        width: 44px;
        height: 52px;
        font-size: 20px;
        border-radius: 12px;
    }

    .otp-card-modern {
        padding-top: 28px;
        padding-bottom: 28px;
    }
}

.donasi-login-alert {
    background: linear-gradient(180deg, #f8fcff 0%, #eef8fd 100%);
    border: 1px solid #d7eaf4;
    color: #234;
}

.donasi-public-box {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid #e4edf5;
    border-radius: 20px;
    padding: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.donasi-summary-box {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid #e4edf5;
    border-radius: 18px;
    padding: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed #dbe6f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span {
    color: #64748b;
    font-weight: 600;
}

.summary-row strong {
    color: #1f2937;
    font-weight: 800;
    text-align: right;
}