:root {
    --brand-1: #6f42c1;
    --brand-2: #0d6efd;
    --brand-3: #20c997;
    --soft-bg: #f4f7fb;
}

body {
    background: var(--soft-bg);
}

.public-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #5b2be0 0%, #0d6efd 50%, #20c997 100%);
}

.public-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card, .choice-card {
    width: 100%;
    max-width: 980px;
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .26);
}

.login-card {
    max-width: 460px;
}

.hero-panel {
    background: linear-gradient(160deg, rgba(111,66,193,.95), rgba(13,110,253,.95));
    color: #fff;
}

.choice-tile {
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    transition: .18s ease;
    min-height: 210px;
}

.choice-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(15, 23, 42, .12);
}

.small-box {
    border-radius: 20px !important;
    overflow: hidden;
}

.card {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .08);
}

.card-header {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.announcement-card {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
}

.payment-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pay-box {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}

.payment-boxes-sm .pay-box {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 12px;
}

.pay-box.paid {
    background: #198754;
}

.pay-box.unpaid {
    background: #dc3545;
}

.toggle-pay-btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0 2px 6px 0;
}

.toggle-pay-btn .pay-box {
    cursor: pointer;
    transition: .15s ease;
}

.toggle-pay-btn:hover .pay-box {
    transform: scale(1.08);
}

.table-responsive {
    border-radius: 16px;
}

.table thead th {
    white-space: nowrap;
}

.user-profile-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.badge {
    border-radius: 999px;
    padding: .45rem .7rem;
}

.info-label {
    color: #64748b;
    font-size: .86rem;
    margin-bottom: .2rem;
}

.info-value {
    font-weight: 800;
    color: #0f172a;
}

.comment-box {
    border-left: 4px solid #0d6efd;
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 14px;
}

.admin-reply {
    border-left: 4px solid #198754;
    background: #eefcf4;
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 10px;
}

@media (max-width: 991.98px) {
    .content-header h1 {
        font-size: 1.6rem;
    }
    .pay-box {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }
}

@media (max-width: 575.98px) {
    .public-wrapper {
        padding: 14px;
        align-items: flex-start;
    }
    .choice-card, .login-card {
        border-radius: 22px;
    }
    .main-footer {
        font-size: .8rem;
    }
    .card-body {
        padding: 1rem;
    }
    .pay-box {
        width: 31px;
        height: 31px;
        font-size: 12px;
    }
    .small-box .inner h3 {
        font-size: 1.55rem;
    }
}
