/* ===== Global Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a237e;
    --primary-dark: #0d1445;
    --primary-light: #283593;
    --secondary-color: #ff6f00;
    --secondary-light: #ffa040;
    --success-color: #2e7d32;
    --danger-color: #c62828;
    --warning-color: #f57f17;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-light: #ffffff;
    --bg-primary: #e8eaf0;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --max-width: 1100px;
}

/* ===== Body with Background ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #d5d8e0;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* ===== Main Container - CENTRALIZED BOX ===== */
.main-wrapper {
    max-width: var(--max-width);
    width: 100%;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
}

main {
    flex: 1;
    padding: 2rem 20px;
}

/* ===== Container INSIDE the box ===== */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 0.8rem 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light) !important;
    text-decoration: none;
}

.logo i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu ul li a {
    color: var(--text-light);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu ul li a i {
    font-size: 0.85rem;
}

.nav-menu ul li a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--secondary-light);
}

.btn-login,
.btn-register,
.btn-logout {
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-login {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color) !important;
}

.btn-login:hover {
    background: var(--secondary-color);
    color: white !important;
}

.btn-register {
    background: var(--secondary-color);
    color: white !important;
}

.btn-register:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-logout {
    background: var(--danger-color);
    color: white !important;
}

/* ===== Orange Separator Line ===== */
.nav-separator {
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    width: 100%;
}

/* ===== Session Info Bar ===== */
.session-info {
    background: #f0f2f5;
    padding: 0.3rem 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.session-info .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}

.session-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

.session-info strong {
    color: var(--primary-color);
}

/* ===== Hamburger ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
}

/* ================================================================
   HERO / WELCOME
   ================================================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 3.5rem 2rem;
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* ===== Welcome Page ===== */
.welcome-header {
    text-align: center;
    padding: 2rem 0 1rem;
}

.welcome-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.welcome-header .welcome-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.info-card {
    background: #f8f9ff;
    border-left: 4px solid var(--secondary-color);
    border-radius: 12px;
    height: 100%;
}

.info-card .card-body {
    padding: 1.5rem;
}

.info-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    height: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.feature-card h5 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 0.7rem 2.2rem;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-success {
    background: #2e7d32;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-success:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: white;
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card i {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
}

/* ================================================================
   GRIDS
   ================================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ================================================================
   STAFF
   ================================================================ */
.staff-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 648px;
    margin: 0 auto;
}

.staff-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    width: 200px;
    flex: 0 0 200px;
}

.staff-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.staff-card img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.8rem;
    border: 4px solid var(--primary-color);
}

.staff-card h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: var(--primary-color);
}

.staff-card .student-id {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.staff-card .role {
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.15rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--text-light);
    padding: 1.2rem 20px;
    margin-top: auto;
    text-align: center;
}

footer .container {
    padding: 0;
}

footer .footer-copyright {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    letter-spacing: 0.3px;
}

/* ===== Footer Separator Line ===== */
.footer-separator {
    height: 3px;
    background: linear-gradient(90deg, #ff6f00, #ffa040);
    width: 100%;
}

/* ================================================================
   FORMS
   ================================================================ */
.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-container .card {
    padding: 1.5rem 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group label i {
    width: 18px;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
    background: white;
}

.form-control[readonly] {
    background: #f1f1f1;
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ================================================================
   TABLES
   ================================================================ */
.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

table thead {
    background: var(--primary-color);
    color: white;
}

table th {
    padding: 0.8rem 1.2rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.85rem;
}

table td {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85rem;
}

table tbody tr:hover {
    background: #f8f9ff;
}

/* ================================================================
   BADGES
   ================================================================ */
.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-active { background: #e8f5e9; color: var(--success-color); }
.badge-inactive { background: #ffebee; color: var(--danger-color); }
.badge-suspended { background: #fff3e0; color: var(--warning-color); }
.badge-paid { background: #e8f5e9; color: var(--success-color); }
.badge-pending { background: #fff3e0; color: var(--warning-color); }
.badge-failed { background: #ffebee; color: var(--danger-color); }
.badge-basic { background: #e0e0e0; color: #424242; }
.badge-premium { background: #bbdefb; color: #0d47a1; }
.badge-vip { background: #f8bbd0; color: #880e4f; }

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border-left: 4px solid transparent;
    font-size: 0.9rem;
}

.alert-success {
    background: #e8f5e9;
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-danger {
    background: #ffebee;
    color: var(--danger-color);
    border-left-color: var(--danger-color);
}

.alert-warning {
    background: #fff3e0;
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

.alert-info {
    background: #e1f5fe;
    color: #0277bd;
    border-left-color: #0277bd;
}

/* ================================================================
   ROW / COLUMN HELPERS
   ================================================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.row [class*="col-"] {
    padding: 0 12px;
}

.col-1 { flex: 0 0 8.333%; }
.col-2 { flex: 0 0 16.666%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333%; }
.col-5 { flex: 0 0 41.666%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333%; }
.col-8 { flex: 0 0 66.666%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333%; }
.col-11 { flex: 0 0 91.666%; }
.col-12 { flex: 0 0 100%; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.8rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: 0.8rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2.5rem; }

/* ================================================================
   ADMIN DASHBOARD STAT CARDS
   ================================================================ */
.stat-card {
    border-radius: 12px;
    padding: 1.2rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    color: white;
    height: 120px;
    width: 100%;
    text-decoration: none;
    min-height: 120px;
    max-height: 120px;
}

.stat-card-deepblue {
    background: linear-gradient(135deg, #0d1445, #1a237e);
}

.stat-card-deepblue:hover {
    background: linear-gradient(135deg, #1a237e, #283593);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
}

.stat-card-link .stat-card-deepblue:hover {
    cursor: pointer;
}

.stat-icon {
    font-size: 2.2rem;
    opacity: 0.85;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-content h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-content p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================================
   VIEW BUTTON (Admin Members)
   ================================================================ */
.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    background: #1a237e;
    color: white !important;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.view-btn i {
    font-size: 0.7rem;
}

.view-btn:hover {
    background: #ff6f00;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
    text-decoration: none;
}

/* ================================================================
   PAGINATION (Admin)
   ================================================================ */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
}

.pagination-custom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 0;
}

.pagination-custom .page-item {
    list-style: none;
}

.pagination-custom .page-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.45rem 0.85rem;
    border: 1px solid #dde1e6;
    border-radius: 6px;
    color: #1a1a2e;
    background: white;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.pagination-custom .page-link:hover {
    background: #f0f2f5;
    border-color: #b0b8c4;
}

.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg, #0d1445, #1a237e);
    border-color: #0d1445;
    color: white;
}

.pagination-custom .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

/* ================================================================
   MEMBER DASHBOARD / PROFILE / PAYMENT / PAYMENT-HISTORY
   ================================================================ */

/* ===== Page Title with Orange Underline ===== */
.page-title-wrapper {
    margin-bottom: 0.5rem;
}

.page-title-wrapper h2 {
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.title-underline {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6f00, #ffa040);
    border-radius: 2px;
    margin-top: 0;
}

/* ===== Dashboard Wrapper ===== */
.dashboard-wrapper {
    max-width: 100%;
}

/* ===== Profile Card (Sidebar) ===== */
.profile-card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.profile-card .card-body {
    padding: 1.5rem 1rem;
}

.profile-card .profile-img {
    width: 120px;
    height: 120px;
    border-radius: 0;
    object-fit: cover;
    background: #f0f0f0;
    border: 4px solid #1a237e;
    display: block;
    margin: 0 auto;
}

.profile-card h5 {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.profile-card .text-muted {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Status Badge - Centered */
.status-badge-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.3rem 0;
}

.status-badge-wrapper .badge {
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Dashboard Navigation ===== */
.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dashboard-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dashboard-nav .nav-link:hover {
    background: #f0f2f5;
    color: var(--primary-color);
}

.dashboard-nav .nav-link.active {
    background: linear-gradient(135deg, #0d1445, #1a237e);
    color: white;
}

.dashboard-nav .nav-link i {
    width: 20px;
    text-align: center;
}

.dashboard-nav .nav-link.text-danger:hover {
    background: #ffebee;
    color: var(--danger-color) !important;
}

/* ===== Welcome Card ===== */
.welcome-card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.welcome-card .card-header {
    background: linear-gradient(135deg, #0d1445, #1a237e);
    color: white;
    padding: 12px 20px;
    border-bottom: none;
}

.welcome-card .card-header h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-card .card-body {
    padding: 1.5rem;
}

/* ===== Stats Boxes ===== */
.stats-row {
    margin-bottom: 0.5rem;
}

.stat-box {
    text-align: center;
    padding: 0.8rem 0.5rem;
    background: #f8f9ff;
    border-radius: 10px;
    border: 1px solid #e8eaf0;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: #f0f2ff;
    border-color: var(--primary-color);
}

.stat-box i {
    font-size: 1.8rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
}

.stat-box .stat-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-box small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* ===== Card Headers - Blue Gradient ===== */
.card-header-blue {
    background: linear-gradient(135deg, #0d1445, #1a237e);
    color: white;
    padding: 10px 18px;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.card-header-blue h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-blue h4 i {
    color: white !important;
}

/* ===== Payment Summary Card ===== */
.payment-summary-card,
.fees-card,
.payment-form-card,
.secure-card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.payment-summary-card .card-header,
.fees-card .card-header,
.payment-form-card .card-header {
    background: linear-gradient(135deg, #0d1445, #1a237e);
    color: white;
    padding: 10px 18px;
    border-bottom: none;
}

.payment-summary-card .card-header h4,
.fees-card .card-header h4,
.payment-form-card .card-header h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-summary-card .card-header h4 i,
.fees-card .card-header h4 i,
.payment-form-card .card-header h4 i {
    color: white !important;
}

.payment-summary-card .card-body {
    padding: 1rem 1.2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #666;
    font-size: 0.85rem;
}

.summary-value {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.9rem;
}

/* ===== Fees Card ===== */
.fees-card .card-body {
    padding: 0.5rem 1.2rem;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-tier {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.9rem;
}

.fee-tier::before {
    content: "• ";
    color: var(--secondary-color);
    font-weight: 700;
}

.fee-amount {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.fee-amount small {
    font-weight: 400;
    color: #999;
    font-size: 0.75rem;
}

/* ===== Tier Options ===== */
.tier-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tier-option {
    display: flex;
    align-items: center;
    background: #f8f9ff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tier-option:hover {
    background: #f0f2ff;
    border-color: var(--primary-color);
}

.tier-option input[type="radio"] {
    margin-right: 0.8rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.tier-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
}

.tier-option .tier-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.tier-option:has(input:checked) {
    border-color: var(--primary-color);
    background: #e8edff;
}

/* ===== Secure Payment Card ===== */
.secure-card {
    background: #f8f9ff;
    border: 1px solid #e8eaf0;
}

.secure-card .card-body {
    padding: 1rem 1.2rem;
}

.secure-card h5 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.payment-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.payment-icons i {
    font-size: 2rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ===== Input Group Custom ===== */
.input-group-custom {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group-custom:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.input-group-custom .input-group-prepend {
    background: #f1f1f1;
    padding: 0.6rem 0.8rem;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.input-group-custom .form-control {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: white;
}

.input-group-custom .form-control:focus {
    box-shadow: none !important;
}

/* ===== Form Check ===== */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-check-input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-check-label i {
    margin-right: 4px;
}

/* ================================================================
   MEMBER DETAIL PAGE (Admin)
   ================================================================ */

/* ===== Profile Card ===== */
.profile-card .profile-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: contain;
    background: #f0f0f0;
    padding: 10px;
    border: 4px solid var(--primary-color, #1a237e);
}

/* ===== Detail Table ===== */
.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.detail-table tr:last-child {
    border-bottom: none;
}

.detail-table td {
    padding: 10px 16px;
    vertical-align: middle;
    text-align: left;
    border-right: 1px solid #e0e0e0;
}

.detail-table td:last-child {
    border-right: none;
}

.detail-table .label {
    font-weight: 600;
    color: #333;
    width: 35%;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
}

.detail-table .value {
    font-weight: 500;
    color: #1a1a2e;
    width: 65%;
    font-size: 0.9rem;
    background-color: white;
}

/* ===== Payment Table (for history in detail) ===== */
.payment-table {
    border-collapse: collapse;
    width: 100%;
}

.payment-table th,
.payment-table td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.payment-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #555;
}

.payment-table td {
    font-size: 0.85rem;
}

/* ================================================================
   MAP CONTAINER (Contact Page)
   ================================================================ */
.map-container {
    margin-top: 0.5rem;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-wrapper {
        min-height: calc(100vh - 20px);
        border-radius: var(--radius-md);
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        padding: 0.8rem;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu ul li a {
        justify-content: center;
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .staff-grid {
        flex-direction: column;
        align-items: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .staff-card {
        width: 100%;
        max-width: 280px;
        flex: 0 0 auto;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .row {
        flex-direction: column;
    }

    [class*="col-"] {
        flex: 0 0 100% !important;
        margin-bottom: 0.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container .card {
        padding: 1rem;
    }

    .staff-card img {
        width: 100px;
        height: 100px;
    }

    .session-info .container {
        justify-content: center;
    }

    footer {
        padding: 1rem 15px;
    }

    /* Member responsive */
    .profile-card .profile-img {
        width: 100px;
        height: 100px;
    }

    .profile-card .card-body {
        padding: 1rem;
    }

    .dashboard-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .stat-box {
        margin-bottom: 0.8rem;
    }

    .stat-box .stat-number {
        font-size: 0.95rem;
    }

    .payment-summary-card .card-body {
        padding: 0.8rem 1rem;
    }

    .payment-form-card .card-body {
        padding: 1rem;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .fee-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .tier-option {
        padding: 0.4rem 0.8rem;
    }

    .tier-option label {
        font-size: 0.85rem;
    }

    .input-group-custom {
        flex-wrap: nowrap;
    }

    .payment-icons {
        gap: 0.8rem;
    }

    .payment-icons i {
        font-size: 1.6rem;
    }

    /* Admin responsive */
    .stat-card {
        height: 100px;
        min-height: 100px;
        max-height: 100px;
        padding: 0.8rem;
    }

    .stat-icon {
        font-size: 1.6rem;
        width: 40px;
    }

    .stat-content h3 {
        font-size: 1.3rem;
    }

    .stat-content p {
        font-size: 0.7rem;
    }

    .pagination-custom .page-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .view-btn {
        padding: 3px 10px;
        font-size: 0.7rem;
    }

    .detail-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
        display: block;
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .detail-table tr {
        display: block;
        border-bottom: 2px solid #d0d0d0;
    }

    .detail-table .label {
        background: #f1f1f1;
        width: 100%;
        font-size: 0.75rem;
    }

    .detail-table .value {
        width: 100%;
        padding-left: 16px;
    }

    .payment-table th,
    .payment-table td {
        font-size: 0.75rem;
        padding: 6px 8px;
    }

    .map-container iframe {
        height: 200px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 5px;
    }

    .main-wrapper {
        border-radius: var(--radius-sm);
        min-height: calc(100vh - 10px);
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .logo span {
        font-size: 1rem;
    }

    .container {
        padding: 0 10px;
    }

    main {
        padding: 1rem 10px;
    }

    /* Member responsive */
    .profile-card .profile-img {
        width: 80px;
        height: 80px;
    }

    .welcome-card .card-body {
        padding: 1rem;
    }

    .payment-icons {
        gap: 0.6rem;
    }

    .payment-icons i {
        font-size: 1.3rem;
    }

    .form-check-label {
        font-size: 0.8rem;
    }

    /* Admin responsive */
    .stat-card {
        height: 85px;
        min-height: 85px;
        max-height: 85px;
        padding: 0.6rem;
    }

    .stat-icon {
        font-size: 1.3rem;
        width: 35px;
    }

    .stat-content h3 {
        font-size: 1.1rem;
    }

    .stat-content p {
        font-size: 0.65rem;
    }

    .view-btn {
        padding: 2px 8px;
        font-size: 0.65rem;
    }

    .welcome-header h1 {
        font-size: 1.5rem;
    }

    .welcome-header .welcome-sub {
        font-size: 0.95rem;
    }

    .info-card .card-body {
        padding: 1rem;
    }
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */
.login-card {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    padding: 0;
}

.login-card .card-header-blue {
    text-align: center;
    padding: 15px 20px;
}

.login-card .card-header-blue h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.login-card .card-body {
    padding: 2rem 1.8rem;
}

.login-logo-wrapper {
    text-align: center;
    padding: 1.5rem 0 0.5rem 0;
    background: white;
}

.login-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.login-card .form-group {
    margin-bottom: 1.2rem;
}

.login-card .form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.login-card .form-group label i {
    width: 18px;
    color: var(--primary-color);
}

.login-card .form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.login-card .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
    background: white;
}

.login-card .btn-primary {
    background: linear-gradient(135deg, #0d1445, #1a237e);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-card .btn-primary:hover {
    background: linear-gradient(135deg, #1a237e, #283593);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

/* ===== Responsive Login ===== */
@media (max-width: 576px) {
    .login-logo {
        width: 60px;
        height: 60px;
    }
    .login-card .card-body {
        padding: 1.2rem 1rem;
    }
}
/* ===== Force all table cells to left-align ===== */
#tableContent .table th,
#tableContent .table td,
.members-table th,
.members-table td,
.table th,
.table td {
    text-align: left !important;
}