:root {
    /* Premium Palette - Emerald & Gold */
    --primary-emerald: #064E3B;
    --primary-emerald-light: #065F46;
    --accent-gold: #D4AF37;
    --accent-gold-dark: #B8860B;
    --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(6, 78, 59, 0.1);

    /* Sizing */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Modern Typography Reset */
body {
    font-family: 'Inter', 'Poppins', 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;
}

.gt-navbar-green .navbar-nav>li>a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: all 0.2s ease;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.gt-navbar-green .navbar-nav>li>a:hover,
.gt-navbar-green .navbar-nav>li.active>a {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1) !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(6, 78, 59, 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(6, 78, 59, 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(6, 78, 59, 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;
}