:root {
    /* Premium Palette - Magenta & Dark Navy */
    --primary-emerald: #1B2038;          /* Dark Navy — primary */
    --primary-emerald-light: #2D3254;    /* Lighter Navy */
    --accent-gold: #E91E63;              /* Magenta — accent */
    --accent-gold-dark: #C51162;         /* Deep Magenta */
    --success-green: #10B981;
    --danger-red: #EF4444;
    --warning-orange: #F59E0B;

    /* Neutral Colors */
    --white: #FFFFFF;
    --bg-light: #F9FAFB;
    --text-main: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;

    /* Elevation & Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 16px 32px -8px rgba(27, 32, 56, 0.1);

    /* Sizing */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Modern Typography Reset */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background-color: var(--bg-light) !important;
    color: var(--text-main) !important;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.inPageTitle {
    font-family: 'Playfair Display', serif !important;
    font-weight: 600 !important;
    color: var(--primary-emerald) !important;
}

/* Glassmorphism Classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Navbar Overrides */
.gt-navbar-green {
    background: var(--primary-emerald) !important;
    border: none !important;
    transition: all 0.3s ease;
}

/* Fix missing icons/squares in navbar */
.navbar i,
.inPrem2Nav i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
}

/* Force white text for all nav items in emerald navbar */
.gt-navbar-green .navbar-nav>li>a,
.gt-navbar-green .navbar-nav>li>a i,
.gt-navbar-green .navbar-nav .navbar-nav>li>a {
    color: var(--white) !important;
    opacity: 0.9 !important;
    font-weight: 500;
    transition: all 0.2s ease;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    background: transparent !important;
}

.gt-navbar-green .navbar-nav>li>a:hover,
.gt-navbar-green .navbar-nav>li.active>a,
.gt-navbar-green .navbar-nav>li>a:focus,
.gt-navbar-green .navbar-nav>li>a:hover i,
.gt-navbar-green .navbar-nav>li.active>a i {
    color: var(--accent-gold) !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure mobile toggle text is visible */
.gt-navbar-green .navbar-toggle span {
    color: var(--primary-emerald) !important;
}

/* Pre-login Home Nav (inPrem2Nav) Override */
.inPrem2Nav {
    background: var(--primary-emerald) !important;
}

.inPrem2Nav li a,
.inPrem2Nav li a.inPrem2Link {
    color: var(--white) !important;
    opacity: 0.9 !important;
    transition: all 0.3s ease;
}

.inPrem2Nav .inPrem2Link:hover,
.inPrem2Nav .inPrem2Link:focus,
.inPrem2Nav li.active a.inPrem2Link {
    color: var(--accent-gold) !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom-color: var(--accent-gold) !important;
}

/* Ensure icons are also white */
.inPrem2Nav li a i {
    color: var(--white) !important;
}

.inPrem2Nav .inPrem2Link:hover i {
    color: var(--accent-gold) !important;
}

.dropdown-menu {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg) !important;
    padding: 8px 0;
}

.dropdown-menu>li>a {
    padding: 10px 20px;
    color: var(--text-secondary);
}

.dropdown-menu>li>a:hover {
    background-color: var(--bg-light);
    color: var(--primary-emerald);
}

/* List Group Refinement */
.list-group-item {
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #F3F4F6 !important;
}

/* Premium Card Style */
.modern-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.profile-card {
    overflow: visible !important;
    /* Prevent button clipping */
    transition: all 0.3s ease;
}

.profile-card .modern-avatar-wrap {
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.profile-card .modern-avatar-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 767px) {
    .profile-card .modern-avatar-wrap {
        height: 220px;
    }

    .profile-card h5 {
        font-size: 15px !important;
        margin-bottom: 5px !important;
    }

    .profile-card .btn-premium,
    .profile-card .btn-accent {
        padding: 8px 5px !important;
        font-size: 11px !important;
        letter-spacing: -0.2px !important;
        min-height: 44px !important;
        /* Standard mobile tap target */
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.1 !important;
        text-align: center !important;
        white-space: normal !important;
        /* Allow wrapping if tight */
    }

    .profile-card .btn-premium i,
    .profile-card .btn-accent i {
        margin-right: 5px !important;
        font-size: 12px !important;
    }
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(27, 32, 56, 0.15);
}

.modern-progress-bar {
    background: linear-gradient(90deg, var(--primary-emerald) 0%, var(--success-green) 100%) !important;
    border-radius: var(--radius-full) !important;
    box-shadow: none !important;
}

/* Chosen.js Modern Overrides */
.chosen-container {
    width: 100% !important;
    font-family: 'Inter', sans-serif !important;
}

.chosen-container-single .chosen-single {
    height: 45px !important;
    line-height: 45px !important;
    background: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
    color: var(--text-main) !important;
}

.chosen-container-multi .chosen-choices {
    background: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 5px 10px !important;
    min-height: 45px !important;
}

.chosen-container-multi .chosen-choices li.search-choice {
    background: var(--primary-emerald) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 5px 20px 5px 10px !important;
    margin-top: 5px !important;
}

.chosen-container .chosen-drop {
    border: 1px solid var(--border-color) !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
}

.chosen-container .chosen-results li.highlighted {
    background: var(--primary-emerald) !important;
    color: var(--white) !important;
}

/* Button Styles with specificity */
.btn-premium {
    background: var(--primary-emerald) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 14px 0 rgba(27, 32, 56, 0.39) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium:hover {
    background: var(--primary-emerald-light) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(27, 32, 56, 0.23) !important;
}

.btn-accent {
    background: var(--accent-gold) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px 0 rgba(212, 175, 55, 0.39) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

a.gt-myhome-caption.btn-premium {
    padding: 15px 10px !important;
    text-transform: none !important;
    font-family: 'Inter', sans-serif !important;
}

/* Badge Styling */
.badge {
    background-color: var(--accent-gold) !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
}

/* Utility Overrides */
.text-emerald {
    color: var(--primary-emerald) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.font-11 {
    font-size: 11px !important;
}

.font-12 {
    font-size: 12px !important;
}

.font-13 {
    font-size: 13px !important;
}

.font-14 {
    font-size: 14px !important;
}

.font-15 {
    font-size: 15px !important;
}

.py-5 {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.py-10 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.py-12 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.py-15 {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.py-20 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.px-20 {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.p-0 {
    padding: 0 !important;
}

.p-15 {
    padding: 15px !important;
}

.p-20 {
    padding: 20px !important;
}

.p-30 {
    padding: 30px !important;
}

.mr-5 {
    margin-right: 5px !important;
}

.mr-10 {
    margin-right: 10px !important;
}

.ml-5 {
    margin-left: 5px !important;
}

.ml-10 {
    margin-left: 10px !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-auto {
    margin-top: auto !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-15 {
    margin-bottom: 15px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.display-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.h-100 {
    height: 100% !important;
}

/* Pricing Plans */
.modern-plan-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-emerald);
}

.modern-plan-card.active {
    border: 2px solid var(--accent-gold);
    background: rgba(212, 175, 55, 0.02);
}

.plan-header {
    padding: 30px;
    text-align: center;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.plan-header i {
    font-size: 40px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.plan-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-emerald);
    font-family: 'Playfair Display', serif;
    margin: 10px 0;
}

.plan-body {
    padding: 20px 30px;
    flex-grow: 1;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li span:first-child {
    font-weight: 500;
}

.plan-footer {
    padding: 20px 30px;
    text-align: center;
    background: var(--bg-light);
}

/* Checkout Panel */
.checkout-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border-left: 5px solid var(--primary-emerald);
}

.checkout-header {
    background: var(--primary-emerald);
    color: var(--white);
    padding: 15px 25px;
    font-weight: 600;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Specific Page Overrides */
.inPageTitle {
    font-size: 36px !important;
    margin-top: 40px !important;
}

.inPageSubTitle {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Profile Image Styles */
.modern-avatar-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #f3f4f6;
}

.modern-avatar-wrap img {
    width: 100%;
    transition: transform 0.5s ease;
}

.modern-avatar-wrap:hover img {
    transform: scale(1.05);
}

/* Gradient Progress Bar */
.modern-progress {
    height: 12px !important;
    background-color: #E5E7EB !important;
    border-radius: var(--radius-full) !important;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
}

/* ===========================
   HERO SECTION (index.php)
   =========================== */
.modern-hero {
    background: linear-gradient(160deg, #022c22, var(--primary-emerald) 50%, var(--primary-emerald-light));
    padding: 48px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modern-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50% 50% 0 0;
}

.modern-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.modern-hero h1 {
    color: var(--white) !important;
    font-size: 32px !important;
    line-height: 1.3;
    margin-bottom: 10px;
}

.modern-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 20px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 24px;
}

.hero-stat {
    text-align: center;
    color: var(--white);
}

.hero-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
}

.hero-stat-label {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 3px;
}

/* Registration Card Float */
.modern-reg-card {
    max-width: 500px;
    margin: -24px auto 32px;
    position: relative;
    z-index: 2;
}

.modern-reg-card .reg-header {
    background: var(--primary-emerald);
    padding: 14px;
    text-align: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modern-reg-card .reg-header h3 {
    color: var(--accent-gold) !important;
    font-size: 15px !important;
    letter-spacing: 1px;
    margin: 0;
}

.modern-reg-card .reg-body {
    padding: 20px;
    background: var(--white);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

/* ===========================
   MODERN FORM INPUTS
   =========================== */
.modern-input-group {
    position: relative;
    margin-bottom: 14px;
}

.modern-input-group i.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-emerald);
    font-size: 14px;
    z-index: 2;
    pointer-events: none;
}

.modern-input-group .gt-form-control,
.modern-input-group select.gt-form-control {
    padding-left: 38px !important;
    height: 44px !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    background: var(--white) !important;
    color: var(--text-main) !important;
    box-shadow: none !important;
    width: 100%;
}

.modern-input-group .gt-form-control:focus {
    border-color: var(--primary-emerald) !important;
    box-shadow: 0 0 0 3px rgba(27, 32, 56, 0.08) !important;
    outline: none !important;
}

.modern-input-group label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    margin-bottom: 4px !important;
    display: block;
}

/* ===========================
   LOGIN PAGE
   =========================== */
.modern-login-hero {
    background: linear-gradient(160deg, #022c22, var(--primary-emerald));
    padding: 40px 20px;
    text-align: center;
}

.modern-login-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 2px solid rgba(212, 175, 55, 0.25);
}

.modern-login-icon i {
    font-size: 28px;
    color: var(--accent-gold);
}

.modern-login-hero h2 {
    color: var(--white) !important;
    font-size: 26px !important;
    margin-bottom: 6px;
}

.modern-login-hero p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    margin: 0;
}

.modern-login-card {
    max-width: 460px;
    margin: -20px auto 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-premium);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-bottom-link {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.login-bottom-link a {
    color: var(--primary-emerald);
    font-weight: 600;
    text-decoration: none;
}

.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 12px;
}

.login-actions label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
}

.login-actions a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.modern-contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.modern-contact-card .contact-header {
    background: var(--primary-emerald);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-contact-card .contact-header i {
    color: var(--accent-gold);
    font-size: 16px;
}

.modern-contact-card .contact-header h4 {
    color: var(--white) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.modern-contact-card .contact-body {
    padding: 20px;
}

.modern-contact-card .contact-body .gt-form-control,
.modern-contact-card .contact-body textarea.gt-form-control {
    border: 1.5px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    padding: 10px 12px !important;
}

.modern-contact-card .contact-body .gt-form-control:focus,
.modern-contact-card .contact-body textarea.gt-form-control:focus {
    border-color: var(--primary-emerald) !important;
    box-shadow: 0 0 0 3px rgba(27, 32, 56, 0.08) !important;
}

/* ===========================
   CMS PAGE
   =========================== */
.modern-cms-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    max-width: 900px;
    margin: 0 auto 30px;
}

.modern-cms-card .cms-header {
    background: var(--primary-emerald);
    padding: 16px 20px;
    text-align: center;
}

.modern-cms-card .cms-header h2 {
    color: var(--accent-gold) !important;
    font-size: 20px !important;
    margin: 0 !important;
}

.modern-cms-card .cms-body {
    padding: 24px;
}

.modern-cms-card .cms-body p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.modern-cms-card .cms-body h3,
.modern-cms-card .cms-body h4 {
    color: var(--primary-emerald) !important;
    font-size: 16px !important;
    margin: 18px 0 8px !important;
}

.modern-cms-card .cms-body ul,
.modern-cms-card .cms-body ol {
    margin-left: 18px;
    margin-bottom: 12px;
}

.modern-cms-card .cms-body ul li,
.modern-cms-card .cms-body ol li {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* ===========================
   FEATURES SECTION
   =========================== */
.modern-features {
    padding: 40px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-emerald);
    font-size: 24px;
    text-align: center;
    margin-bottom: 6px;
}

.section-line {
    width: 50px;
    height: 3px;
    background: var(--accent-gold);
    margin: 8px auto 24px;
    border-radius: 2px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(27, 32, 56, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border: 2px solid rgba(212, 175, 55, 0.25);
}

.feature-card .feature-icon i {
    color: var(--primary-emerald);
    font-size: 20px;
}

.feature-card h4 {
    font-size: 15px !important;
    margin-bottom: 6px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* ===========================
   MODERN FOOTER (pre-login)
   =========================== */
footer.modern-footer {
    background: #022c22 !important;
    padding: 30px 0 16px !important;
    border-top: none !important;
}

.modern-footer h5 {
    color: var(--accent-gold) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    margin-bottom: 12px !important;
}

.modern-footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.modern-footer ul li {
    margin-bottom: 6px !important;
    border: none !important;
    padding: 3px 0 !important;
}

.modern-footer ul li a {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none !important;
    font-size: 12px !important;
    transition: color 0.2s !important;
    font-weight: 400 !important;
}

.modern-footer ul li a:hover {
    color: var(--accent-gold) !important;
}

.modern-footer .social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 14px 0;
}

.modern-footer .social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 14px;
}

.modern-footer .social-icons a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold) !important;
    transform: translateY(-2px);
}

.modern-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    margin-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

.modern-footer .footer-bottom a {
    color: var(--accent-gold) !important;
    font-weight: 600 !important;
}

/* ===========================
   MODERN HEADER (pre-login)
   =========================== */
/* (Moved to Phase 2 section below — clean button layout) */

.modern-header .header-login-form .input-group {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.modern-header .header-login-form .input-group-addon {
    background: var(--primary-emerald) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 8px 12px !important;
}

.modern-header .header-login-form .gt-form-control {
    border: 1.5px solid var(--border-color) !important;
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
    height: 42px !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
}

.modern-header .header-login-form .gt-form-control:focus {
    border-color: var(--primary-emerald) !important;
    box-shadow: 0 0 0 2px rgba(27, 32, 56, 0.08) !important;
}

/* Header Links Contrast */
.modern-header a.gt-text-Grey,
.modern-header .gt-text-Grey {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 12px;
}

.modern-header a.gt-text-Grey:hover {
    color: var(--white) !important;
    text-decoration: underline;
}

/* Info Card (used in membership) */
.modern-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-gold);
    margin-bottom: 20px;
}

.modern-info-card h4 {
    color: var(--primary-emerald) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.modern-info-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeUp 0.5s ease forwards;
}

/* ===========================
   RESPONSIVE OVERRIDES
   =========================== */
@media (max-width: 767px) {
    .modern-hero {
        padding: 30px 15px 44px;
    }

    .modern-hero h1 {
        font-size: 24px !important;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 20px;
    }

    .inPageTitle {
        font-size: 24px !important;
        margin-top: 24px !important;
    }

    .inPageSubTitle {
        font-size: 13px;
    }

    .modern-login-card {
        margin: -16px 12px 24px;
        padding: 18px;
    }

    .modern-reg-card {
        margin: -18px 10px 24px;
    }

    .modern-cms-card .cms-body {
        padding: 16px;
    }
}

@media (min-width: 768px) {
    .modern-hero h1 {
        font-size: 38px !important;
    }

    .modern-reg-card {
        max-width: 520px;
    }
}

/* ─── Membership Tier Badges ──────────────────────────────────────────────── */
.membership-badge-premium,
.membership-badge-elite {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    vertical-align: middle;
    margin-left: 8px;
    font-family: 'Inter', sans-serif !important;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.membership-badge-premium {
    background: linear-gradient(135deg, #FF5E00, #FF8C00);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(255, 94, 0, 0.3);
}

.membership-badge-elite {
    background: linear-gradient(135deg, #1a1a1a, #E91E63);
    color: #E91E63;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.membership-badge-elite::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    animation: badge-shimmer 3s infinite;
}

@keyframes badge-shimmer {
    0%   { left: -100%; }
    20%  { left: 200%; }
    100% { left: 200%; }
}

/* ─── Biodata Download Banner ─────────────────────────────────────────────── */
.biodata-download-banner {
    background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--primary-emerald-light) 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(27, 32, 56, 0.25);
    overflow: hidden;
    position: relative;
}

.biodata-download-banner::before {
    content: '\f1c1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: -20px;
    font-size: 120px;
    opacity: 0.06;
    color: #fff;
    transform: rotate(-15deg);
    pointer-events: none;
}

.biodata-banner-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    position: relative;
    z-index: 1;
}

.biodata-banner-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.biodata-banner-text {
    flex: 1;
    min-width: 0;
}

.biodata-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-biodata-download,
.btn-biodata-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-biodata-download {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-biodata-download:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: #fff !important;
}

.btn-biodata-whatsapp {
    background: #25D366;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-biodata-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    color: #fff !important;
}

@media (max-width: 767px) {
    .biodata-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .biodata-banner-actions {
        width: 100%;
    }

    .btn-biodata-download,
    .btn-biodata-whatsapp {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* ─── Mobile-Friendly Pagination ─────────────────────────────────────────── */
/* Fix: Users on Samsung M34 5G, Moto G05 could not tap pagination links     */
.pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 10px 0 !important;
}

.pagination > li {
    display: inline-block !important;
}

.pagination > li > a,
.pagination > li > span,
.pagination a.page-numbers,
.pagination span.current {
    min-width: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: var(--radius-md) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    -webkit-tap-highlight-color: rgba(27, 32, 56, 0.1) !important;
    touch-action: manipulation !important;
    user-select: none !important;
}

.pagination a.page-numbers {
    background: var(--white) !important;
    color: var(--primary-emerald) !important;
    border: 1px solid var(--border-color) !important;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:active {
    background: var(--primary-emerald) !important;
    color: var(--white) !important;
    border-color: var(--primary-emerald) !important;
    transform: scale(1.05);
}

.pagination span.current {
    background: var(--primary-emerald) !important;
    color: var(--white) !important;
    border: 1px solid var(--primary-emerald) !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(27, 32, 56, 0.3) !important;
}

/* Page info text */
#result #pagination .text-center {
    padding-bottom: 15px !important;
}

@media (max-width: 767px) {
    /* Ensure minimum 44px tap targets on mobile (WCAG / Apple HIG standard) */
    .pagination > li > a,
    .pagination > li > span,
    .pagination a.page-numbers,
    .pagination span.current {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 10px 14px !important;
        font-size: 15px !important;
        margin: 2px !important;
    }

    .pagination {
        gap: 6px !important;
        padding: 15px 5px !important;
    }

    /* Move language button above the fold so it doesn't cover pagination */
    .fixLangugeBtn {
        bottom: 60px !important;
        left: 10px !important;
        z-index: 999 !important;
        font-size: 12px !important;
        padding: 6px 12px !important;
        opacity: 0.85 !important;
        border-radius: 20px !important;
    }

    /* Add safe bottom padding to search results so pagination isn't hidden */
    #result #pagination {
        padding-bottom: 20px !important;
    }

    /* Page count text between top/bottom pagination */
    .pagination + .text-center,
    .text-center:has(.pagination) {
        margin-bottom: 10px;
    }
}

@media (max-width: 400px) {
    /* Very small screens (like some budget phones) need even more spacing */
    .pagination a.page-numbers,
    .pagination span.current {
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 8px 10px !important;
        font-size: 14px !important;
    }

    .fixLangugeBtn {
        bottom: 70px !important;
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
}
/* ─── /Mobile-Friendly Pagination ────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 1 ENHANCEMENTS — Global Form Inputs, Skeleton, Utilities
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Global Form Control Modernization ──────────────────────────────────── */
.gt-form-control {
    height: 44px !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--text-main) !important;
    background: var(--white) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    box-shadow: none !important;
    padding: 8px 14px !important;
}

.gt-form-control:focus {
    border-color: var(--primary-emerald) !important;
    box-shadow: 0 0 0 3px rgba(27, 32, 56, 0.08) !important;
    outline: none !important;
}

.gt-form-control::placeholder {
    color: var(--text-muted) !important;
    font-weight: 400;
}

select.gt-form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
}

textarea.gt-form-control {
    height: auto !important;
    min-height: 100px;
    resize: vertical;
}

/* Input group addon modernization */
.input-group-addon {
    background: var(--primary-emerald) !important;
    color: var(--white) !important;
    border: 1.5px solid var(--primary-emerald) !important;
    border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
    min-width: 44px;
    text-align: center;
    font-size: 14px;
}

.input-group .gt-form-control {
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

/* Form labels */
label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 6px;
}

/* ─── Skeleton Loading Animation ─────────────────────────────────────────── */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-avatar {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-lg);
}

/* ─── Additional Utility Classes ─────────────────────────────────────────── */
.bg-emerald-light {
    background-color: rgba(27, 32, 56, 0.04) !important;
}

.border-gold {
    border-color: var(--accent-gold) !important;
}

.border-emerald {
    border-color: var(--primary-emerald) !important;
}

.gap-10 {
    gap: 10px !important;
}

.gap-20 {
    gap: 20px !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-full {
    border-radius: var(--radius-full) !important;
}

/* Lazy image fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 2 — Pre-login Header Clean Button Layout
   ═══════════════════════════════════════════════════════════════════════════ */

/* Clean pre-login header with logo + buttons only */
.modern-header {
    padding: 14px 0 !important;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.modern-header .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    height: 100%;
    padding-top: 8px;
}

.modern-header .header-actions .btn-header-login {
    padding: 10px 24px;
    border: 1.5px solid var(--primary-emerald);
    color: var(--primary-emerald);
    background: transparent;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modern-header .header-actions .btn-header-login:hover {
    background: var(--primary-emerald);
    color: var(--white);
}

.modern-header .header-actions .btn-header-register {
    padding: 10px 24px;
    background: var(--primary-emerald);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(27, 32, 56, 0.2);
}

.modern-header .header-actions .btn-header-register:hover {
    background: var(--primary-emerald-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27, 32, 56, 0.25);
}

@media (max-width: 767px) {
    .modern-header .header-actions {
        padding-top: 4px;
        gap: 8px;
    }

    .modern-header .header-actions .btn-header-login,
    .modern-header .header-actions .btn-header-register {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 4 — Split-Screen Login Page
   ═══════════════════════════════════════════════════════════════════════════ */

.login-split-container {
    display: flex;
    min-height: calc(100vh - 60px);
    background: var(--bg-light);
}

.login-brand-panel {
    flex: 0 0 42%;
    background: linear-gradient(160deg, #022c22 0%, var(--primary-emerald) 50%, var(--primary-emerald-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.06);
    top: -60px;
    right: -80px;
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.04);
    bottom: -40px;
    left: -60px;
}

.login-brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.login-brand-logo i {
    font-size: 32px;
    color: var(--accent-gold);
}

.login-brand-panel h2 {
    color: var(--white) !important;
    font-size: 28px !important;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.login-brand-panel p {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
    position: relative;
    z-index: 1;
}

.login-brand-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    position: relative;
    z-index: 1;
}

.login-brand-stat {
    text-align: center;
}

.login-brand-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
}

.login-brand-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form-inner {
    width: 100%;
    max-width: 420px;
}

.login-form-inner h3 {
    font-size: 24px !important;
    color: var(--primary-emerald) !important;
    margin-bottom: 4px;
}

.login-form-inner .login-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

@media (max-width: 991px) {
    .login-split-container {
        flex-direction: column;
        min-height: auto;
    }

    .login-brand-panel {
        flex: none;
        padding: 36px 24px;
    }

    .login-brand-panel h2 {
        font-size: 22px !important;
    }

    .login-brand-stats {
        gap: 24px;
        margin-top: 24px;
    }

    .login-brand-stat-number {
        font-size: 22px;
    }

    .login-form-panel {
        padding: 24px 16px;
    }
}

/* ─── Index Page Notice Section ──────────────────────────────────────────── */
.notice-card {
    padding: 24px;
    border: 1px dashed var(--accent-gold);
    border-radius: var(--radius-lg);
    background: rgba(212, 175, 55, 0.03);
}

.notice-card .notice-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.notice-card .notice-list li {
    padding: 4px 0;
    color: var(--primary-emerald);
    font-weight: 600;
    font-size: 14px;
}

.notice-card .notice-list li i {
    color: var(--success-green);
    margin-right: 10px;
}

.notice-card .notice-whatsapp {
    color: var(--primary-emerald);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.notice-card .notice-warning {
    color: var(--danger-red);
    font-size: 12px;
    line-height: 1.6;
}

/* ─── Preloader Replacement ──────────────────────────────────────────────── */
/* Smooth page entry animation instead of display:none hack */
@keyframes page-enter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: page-enter 0.3s ease-out;
}

/* Global preloader neutralization — removes display:none hack from ALL pages */
/* The legacy preloader uses `<div id="body" style="display:none">` which blocks */
/* rendering until jQuery fires. This override makes content visible immediately. */
#body {
    display: block !important;
}

.preloader-wrapper {
    display: none !important;
}