/* ============================================================
   Ponvalam CRM - Custom Stylesheet
   Consolidates styles from dashboard.php, sidemenu.php & header.php
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS Variables / Design Tokens
   ============================================================ */
:root {
    --primary-color: #283c78;
    --secondary-color: #B68D40;
    --accent-gold: linear-gradient(135deg, #B68D40 0%, #D4AF37 100%);
    --bg-color: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-main: #1D2445;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;

    --success-bg: #E6FFFA;
    --success-text: #38B2AC;
    --warning-bg: #FFFAF0;
    --warning-text: #DD6B20;
    --danger-bg: #FFF5F5;
    --danger-text: #E53E3E;
    --info-bg: #EBF4FF;
    --info-text: #3182CE;
    --purple-bg: #FAF5FF;
    --purple-text: #805AD5;
}

/* ============================================================
   Base / Typography
   ============================================================ */
body {
    background-color: var(--bg-color) !important;
    font-family: 'Outfit', sans-serif !important;
    color: var(--text-main);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-main);
}

.text-muted-custom {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin: 1.5rem 0 1rem;
}

.adminuiux-content {
    padding-top: 80px;
    padding-bottom: 40px;
}

/* ============================================================
   Header / Navbar
   ============================================================ */
.ponvalam-navbar {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    padding: 0;
    height: 64px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.ponvalam-navbar .navbar-inner {
    height: 100%;
    display: flex;
    align-items: stretch;
}

.ponvalam-navbar .nav-logo-section {
    padding: 0 1.75rem;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 0;
}

.ponvalam-navbar .nav-logo-section img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.ponvalam-navbar .nav-divider {
    width: 1px;
    background: #E5E7EB;
    align-self: stretch;
    flex-shrink: 0;
}

.ponvalam-navbar .nav-hamburger-section {
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.ponvalam-navbar .nav-hamburger-btn {
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.ponvalam-navbar .nav-hamburger-btn:hover {
    color: #1D2445;
}

.ponvalam-navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    padding-right: 1.5rem;
}

/* Notification Bell */
.nav-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #4A5568;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F8F9FA;
    border: 1px solid #E5E7EB;
    transition: all 0.2s;
}

.nav-bell:hover {
    background: #F3F4F6;
    color: #1D2445;
}

.nav-bell .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.55rem;
    padding: 0.25em 0.45em;
    min-width: 16px;
    line-height: 1;
}

/* User Avatar */
.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2E7D32;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-avatar.lg {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

/* Profile Dropdown Toggle */
.nav-profile-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.nav-profile-name {
    font-weight: 700;
    color: #1D2445;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
}

/* Profile Dropdown Menu */
.nav-dropdown-menu {
    border-radius: 12px;
    min-width: 200px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.nav-dropdown-header {
    background: linear-gradient(135deg, #FFF9F0, #FFF2E0);
    border-bottom: 1px solid #E5E7EB;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-dropdown-header .user-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1D2445;
    font-family: 'Outfit', sans-serif;
}

.nav-dropdown-header .user-role {
    font-size: 0.7rem;
    color: #6B7280;
}

.nav-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    color: #1D2445;
}

.nav-dropdown-menu .dropdown-item:hover {
    background: #F8F9FA;
}

.nav-dropdown-menu .dropdown-item.danger {
    color: #E53E3E;
}

.nav-dropdown-menu .dropdown-divider {
    margin: 0.25rem 0;
    border-color: #E5E7EB;
}

/* ============================================================
   Cards Base
   ============================================================ */
.custom-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.card-p {
    padding: 1.5rem;
}

/* ============================================================
   Welcome Banner
   ============================================================ */
.welcome-banner {
    background: linear-gradient(90deg, #FFFDF8 0%, #FFF5E6 100%);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid #FDF0DE;
    min-height: 200px;
    height: 100%;
}

.welcome-banner-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.welcome-banner-img-wrap {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 35%;
    max-width: 280px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.welcome-banner-img-wrap img {
    max-height: 185px;
    width: auto;
    object-fit: contain;
}

/* Navbar logo styling for mobile & desktop */
.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    height: 38px;
    width: auto;
    max-width: 160px;
}

@media (max-width: 991.98px) {
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .welcome-banner {
        padding: 20px;
        min-height: 160px;
    }

    .welcome-banner-content {
        max-width: 65%;
    }

    .welcome-banner-content h5 {
        font-size: 0.95rem !important;
    }

    .welcome-banner-content h2 {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
        line-height: 1.25 !important;
    }

    .welcome-banner-content p {
        font-size: 0.72rem !important;
    }

    .welcome-banner-img-wrap {
        width: 32%;
        right: 10px;
    }

    .welcome-banner-img-wrap img {
        max-height: 120px;
    }
}

/* ============================================================
   Gold Rate Widget
   ============================================================ */
.gold-rate-widget {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gold-rate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.gold-rate-header span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.live-indicator {
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    color: #38B2AC;
    font-weight: 600;
    gap: 4px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #38B2AC;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.gold-rate-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rate-col {
    flex: 1;
}

.rate-col+.rate-col {
    border-left: 1px solid #E5E7EB;
    padding-left: 1rem;
    margin-left: 1rem;
}

.rate-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

.rate-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    font-family: 'Outfit', sans-serif;
}

.rate-change {
    font-size: 0.8rem;
    font-weight: 600;
    color: #38B2AC;
    display: flex;
    align-items: center;
    gap: 2px;
}

.rate-footer {
    border-top: 1px dashed var(--border-color);
    padding-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.rate-update {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.rate-link {
    font-size: 0.75rem;
    color: var(--info-text);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: right;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(56, 178, 172, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(56, 178, 172, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(56, 178, 172, 0);
    }
}

/* ============================================================
   Stat Cards
   ============================================================ */
.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.icon-blue {
    background: var(--info-bg);
    color: var(--info-text);
}

.icon-green {
    background: var(--success-bg);
    color: var(--success-text);
}

.icon-orange {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.icon-purple {
    background: var(--purple-bg);
    color: var(--purple-text);
}

.stat-content .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.stat-content .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-content .stat-sub {
    font-size: 0.7rem;
    font-weight: 600;
}

/* ============================================================
   Large Cards (Purchase & Gain)
   ============================================================ */
.large-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.large-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.large-content .label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.large-content .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

/* ============================================================
   Share & Earn
   ============================================================ */
.share-input-group {
    background: #F9FAFB;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    overflow: hidden;
}

.share-input-group input {
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.share-input-group input:focus {
    outline: none;
}

.btn-copy {
    background: #0D6EFD;
    color: white;
    border: none;
    padding: 0 1.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: #0b5ed7;
}

/* ============================================================
   Business Cards
   ============================================================ */
.business-card {
    background: #FFFBF5;
    border: 1px solid #F3E8D6;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.business-card:hover {
    transform: translateY(-5px);
}

.business-card.green-bg {
    background: #F0FDF4;
    border-color: #DCFCE7;
}

.business-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.business-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #D97706;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-card.green-bg .business-icon {
    background: #16A34A;
}

.business-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0;
    text-align: left;
    line-height: 1.2;
}

.business-img {
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.business-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.business-stats {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    margin-top: auto;
    border: 1px solid var(--border-color);
}

.business-stats p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.business-stats h5 {
    font-size: 1.1rem;
    color: #16A34A;
    font-weight: 700;
    margin-bottom: 1rem;
}

.business-card:not(.green-bg) .business-stats h5 {
    color: #D97706;
}

.btn-business {
    background: #D97706;
    color: white;
    border: none;
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.business-card.green-bg .btn-business {
    background: #16A34A;
}

/* ============================================================
   Announcement Cards
   ============================================================ */
.announcement-card {
    background: #FFFBF5;
    border: 1px solid #F3E8D6;
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.announcement-icon {
    width: 48px;
    height: 48px;
    background: #FFEDD5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #D97706;
    flex-shrink: 0;
}

.announcement-content h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.announcement-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.announcement-content small {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============================================================
   Sidebar - Wealth Card
   ============================================================ */
.wealth-card {
    background: #FFFFFF;
    border: 1px solid #F3E8D6;
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    margin: 20px 15px;
    box-shadow: 0 4px 15px rgba(182, 141, 64, 0.05);
    position: relative;
}

.wealth-card h5 {
    color: #B68D40;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.wealth-card p {
    color: #1D2445;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.wealth-card img {
    width: 110%;
    margin-left: -5%;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.wealth-card .wealth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFFFFF;
    color: #B68D40;
    border: 1px solid #B68D40;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    z-index: 2;
}

.wealth-card .wealth-btn:hover {
    background: #B68D40;
    color: #FFFFFF;
}

/* ============================================================
   Sidebar - Navigation Tweaks
   ============================================================ */
.adminuiux-sidebar {
    background: #FFFFFF;
    border-right: 1px solid #E5E7EB;
}

.adminuiux-sidebar .nav-link {
    color: #4A5568;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 15px;
    margin: 4px 15px;
    border-radius: 8px;
    transition: all 0.2s;
}

.adminuiux-sidebar .nav-link:hover,
.adminuiux-sidebar .nav-link.active {
    background: #FFFBF5;
    color: #B68D40;
}

/* ============================================================
   Sidebar - Navigation (Collapse-based Inline Accordion)
   ============================================================ */

/* Parent nav link */
.adminuiux-sidebar .sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4A5568;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 16px;
    margin: 2px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.adminuiux-sidebar .sidebar-nav .nav-link:hover {
    background: #FFF9F0;
    color: #B68D40;
}

.adminuiux-sidebar .sidebar-nav .nav-link.active {
    background: #FFF5E6 !important;
    color: #B68D40 !important;
    font-weight: 600;
    border-radius: 8px;
}

.adminuiux-sidebar .sidebar-nav .nav-link.active svg {
    color: #B68D40 !important;
}

.adminuiux-sidebar .sidebar-nav .nav-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.adminuiux-sidebar .sidebar-nav .nav-link:hover svg,
.adminuiux-sidebar .sidebar-nav .nav-link.active svg {
    opacity: 1;
}

/* Caret icon */
.adminuiux-sidebar .sidebar-caret {
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.45;
    transition: transform 0.25s ease, opacity 0.2s;
}

.adminuiux-sidebar .sidebar-toggle[aria-expanded="true"] .sidebar-caret {
    transform: rotate(180deg);
    opacity: 1;
    color: #B68D40;
}

.adminuiux-sidebar .sidebar-toggle[aria-expanded="true"] {
    background: #FFF9F0;
    color: #B68D40;
}

.adminuiux-sidebar .sidebar-toggle[aria-expanded="true"] svg:first-child {
    opacity: 1;
    color: #B68D40;
}

/* Submenu container */
.adminuiux-sidebar .sidebar-submenu {
    overflow: hidden;
}

.adminuiux-sidebar .submenu-list {
    list-style: none;
    padding: 4px 0 6px 0;
    margin: 0;
    border-left: 2px solid #F0F0F5;
    margin-left: 28px;
    margin-right: 12px;
}

/* Submenu link */
.adminuiux-sidebar .submenu-link {
    display: flex;
    align-items: center;
    padding: 7px 12px 7px 16px;
    margin: 1px 0;
    border-radius: 8px;
    font-size: 0.84rem;
    color: #6B7280;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all 0.18s ease;
}

.adminuiux-sidebar .submenu-link::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: #B68D40;
    border-radius: 2px;
    transition: height 0.2s ease;
}

.adminuiux-sidebar .submenu-link:hover,
.adminuiux-sidebar .submenu-link.active {
    background: #FFF9F0;
    color: #B68D40;
}

.adminuiux-sidebar .submenu-link:hover::before,
.adminuiux-sidebar .submenu-link.active::before {
    height: 60%;
}

/* Logout red */
.adminuiux-sidebar .sidebar-nav .nav-link.text-danger {
    color: #E53E3E !important;
}

.adminuiux-sidebar .sidebar-nav .nav-link.text-danger:hover {
    background: #FFF5F5;
    color: #C53030 !important;
}

/* ============================================================
   Profile Page Overhaul Styles
   ============================================================ */
.profile-banner-card {
    background: #FAF7EE;
    border-radius: 24px;
    padding: 35px 25px;
    color: #0F172A;
    position: relative;
    overflow: hidden;
    border: 1px solid #E5DFD0;
    box-shadow: 0 10px 30px rgba(163, 122, 50, 0.04);
}

/* Ambient background swirl effect (disabled for light theme) */
.profile-banner-card::after {
    content: none;
}

.profile-info-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #F1F5F9;
    padding: 24px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: all 0.25s ease;
}

.profile-info-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}

/* Inline alignment for keys and values */
.info-row {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    color: #4A5568;
    font-weight: 500;
    width: 140px;
    flex-shrink: 0;
}

.info-separator {
    color: #A0AEC0;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.info-value {
    color: #1A202C;
    font-weight: 600;
    flex-grow: 1;
    word-break: break-all;
}

.btn-gold-profile {
    background: #A37A32 !important;
    color: #FFFFFF !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-gold-profile:hover {
    background: #916C2B !important;
    transform: translateY(-1px);
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metadata-icon {
    opacity: 0.85;
    flex-shrink: 0;
}

.metadata-label {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metadata-value {
    font-size: 0.92rem;
    color: #0F172A;
    margin: 0;
    font-weight: 600;
}

.status-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
}

.card-header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0px;
    cursor: pointer;
    user-select: none;
}

.card-header-title.expanded {
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header-title h5 {
    margin: 0;
    font-weight: 700;
    color: #0F172A;
    font-size: 1.1rem;
}

.icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chevron Rotation */
.chevron-icon {
    transition: transform 0.2s ease-in-out;
    color: #4A5568;
}

.card-header-title[aria-expanded="false"] .chevron-icon {
    transform: rotate(-180deg);
}

/* Adjustments for grid dividers in banner card on mobile */
@media (max-width: 991.98px) {
    .metadata-item {
        border-left: none !important;
        padding-left: 0 !important;
    }
}

/* Mobile View Proportional Reductions */
@media (max-width: 575.98px) {
    .profile-banner-card {
        padding: 24px 16px !important;
        border-radius: 20px !important;
    }

    .profile-banner-card h3 {
        font-size: 1.35rem !important;
    }

    .avatar-container {
        width: 90px !important;
        height: 90px !important;
    }

    .avatar-circle svg {
        width: 48px !important;
        height: 48px !important;
    }

    .avatar-camera-btn {
        width: 28px !important;
        height: 28px !important;
    }

    .avatar-camera-btn svg {
        width: 13px !important;
        height: 13px !important;
    }

    .metadata-label {
        font-size: 0.75rem !important;
    }

    .metadata-value {
        font-size: 0.82rem !important;
    }

    .profile-info-card {
        padding: 18px 15px !important;
        border-radius: 16px !important;
    }

    .info-label {
        width: 115px !important;
        font-size: 0.82rem !important;
    }

    .info-separator {
        width: 12px !important;
        font-size: 0.82rem !important;
    }

    .info-value {
        font-size: 0.85rem !important;
    }

    .card-header-title h5 {
        font-size: 1rem !important;
    }

    .icon-wrapper {
        width: 32px !important;
        height: 32px !important;
    }

    .icon-wrapper svg {
        width: 15px !important;
        height: 15px !important;
    }
}

/* ============================================================
   Profile Edit Page Overhaul Styles
   ============================================================ */
.form-floating-custom {
    position: relative;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 8px 16px;
    height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.form-floating-custom:focus-within {
    border-color: #B68D40 !important;
    box-shadow: 0 0 0 4px rgba(182, 141, 64, 0.1) !important;
}

.form-floating-custom label {
    font-size: 0.72rem;
    color: #64748B;
    font-weight: 500;
    margin-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.form-floating-custom .form-control,
.form-floating-custom .form-select {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: 0.92rem !important;
    color: #0F172A !important;
    font-weight: 600 !important;
    height: auto !important;
    outline: none !important;
    box-shadow: none !important;
}

.form-floating-custom select.form-select {
    cursor: pointer;
}

.form-floating-custom.textarea-custom {
    height: 90px;
    justify-content: flex-start;
    padding-top: 10px;
}

.form-floating-custom.textarea-custom textarea.form-control {
    height: 52px !important;
    resize: none;
}

/* ============================================================
   Scheme 1 Gold Purchase Redesign Styles
   ============================================================ */
.purchase-banner {
    background: linear-gradient(135deg, #283c78 0%, #051322 100%);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    border: 1px solid rgba(182, 141, 64, 0.2);
    min-height: 180px;
}

.purchase-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(182, 141, 64, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.purchase-banner-content {
    position: relative;
    z-index: 2;
    max-width: 65%;
}

.purchase-banner-badge-wrapper {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.purchase-banner-badge-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B68D40 0%, #D4AF37 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.purchase-banner-badge-content {
    text-align: center;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1;
}

.purchase-banner-img-wrap {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30%;
    max-width: 250px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.purchase-banner-img-wrap img {
    max-height: 160px;
    width: auto;
    object-fit: contain;
}

.purchase-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.purchase-pill i,
.purchase-pill svg {
    color: #D4AF37;
}

.purchase-section-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.purchase-section-card.active {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.purchase-section-header {
    padding: 20px 24px;
    background: #FFFFFF;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    color: #283c78;
    cursor: pointer;
    transition: background 0.2s;
}

.purchase-section-header:focus {
    outline: none;
}

.purchase-section-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.purchase-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #283c78;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.purchase-section-header .chevron-icon {
    transition: transform 0.2s ease;
    color: #64748B;
}

.purchase-section-header:not(.collapsed) .chevron-icon {
    transform: rotate(180deg);
}

.purchase-section-body {
    padding: 0 24px 24px 24px;
    border-top: 1px solid #F1F5F9;
    background: #FFFFFF;
}

/* Payment Method Selection Cards */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.payment-method-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
}

.payment-method-card:hover {
    border-color: #B68D40;
    background: #FFFDF9;
}

.payment-method-card.active {
    border-color: #B68D40;
    background: #FFFDF4;
    box-shadow: 0 0 0 4px rgba(182, 141, 64, 0.1);
}

.payment-method-card .method-radio {
    position: absolute;
    top: 12px;
    left: 12px;
    accent-color: #B68D40;
    transform: scale(1.1);
    cursor: pointer;
}

.payment-method-card .method-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F8FAFC;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.3rem;
    transition: all 0.2s;
}

.payment-method-card.active .method-icon-container {
    background: #FFF3E0;
    color: #B68D40;
}

.payment-method-card .method-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0F172A;
    margin-bottom: 4px;
}

.payment-method-card .method-subtitle {
    font-size: 0.72rem;
    color: #64748B;
}

/* Sidebar Customizations */
.summary-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    padding: 24px;
    margin-bottom: 20px;
}

.summary-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #283c78;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-card-title i,
.summary-card-title svg {
    color: #B68D40;
}

.gold-rate-sidebar-widget {
    background: #FFFDF9;
    border: 1px solid #F5E6CC;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.gold-rate-sidebar-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #B68D40;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.gold-rate-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 12px;
}

.gold-rate-sidebar-col {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 10px;
    padding: 12px;
}

.gold-rate-sidebar-label {
    font-size: 0.7rem;
    color: #64748B;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.gold-rate-sidebar-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
}

/* Place Order Button */
.btn-place-order {
    background: linear-gradient(135deg, #B68D40 0%, #D4AF37 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 1.05rem !important;
    transition: all 0.2s ease-in-out !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(182, 141, 64, 0.3) !important;
}

.btn-place-order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(182, 141, 64, 0.45) !important;
    filter: brightness(1.05);
}

.btn-place-order:active {
    transform: translateY(0) !important;
}

/* Media Queries for responsive banner */
@media (max-width: 991.98px) {
    .purchase-banner {
        padding: 20px;
        min-height: 140px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .purchase-banner-content {
        max-width: 100%;
        margin-bottom: 15px;
    }

    .purchase-banner-badge-wrapper {
        position: static;
        transform: none;
        margin-bottom: 15px;
    }

    .purchase-banner-img-wrap {
        display: none;
    }

    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

/* Theme primary and gold utilities */
.btn-outline-theme-primary {
    border-color: #283c78 !important;
    color: #283c78 !important;
    background: transparent !important;
}

.btn-outline-theme-primary:hover {
    background-color: #283c78 !important;
    color: #ffffff !important;
}

.text-theme-primary {
    color: #283c78 !important;
}

.text-gold {
    color: #B68D40 !important;
}

/* ============================================================
   Direct Referrals Redesign Styles
   ============================================================ */
.referrals-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.referral-stats-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    min-width: 250px;
}

.referral-stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F3E8FF;
    color: #7C3AED;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.referrals-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.search-wrapper i,
.search-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #0F172A;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: #B68D40;
    box-shadow: 0 0 0 4px rgba(182, 141, 64, 0.1);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-select {
    padding: 10px 36px 10px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #0F172A;
    background-color: #FFFFFF;
    outline: none;
    cursor: pointer;
    min-width: 140px;
}

.filter-select:focus {
    border-color: #B68D40;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background-color: #FFFFFF;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.btn-export:hover {
    border-color: #B68D40;
    color: #B68D40;
    background-color: #FFFDF9;
}

.referral-table {
    vertical-align: middle !important;
}

.referral-table th {
    font-weight: 700;
    color: #475569;
    background-color: #F8FAFC !important;
    border-bottom: 1.5px solid #E2E8F0 !important;
    padding: 14px 16px !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-table td {
    padding: 16px !important;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.9rem;
    color: #334155;
}

.step-num-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background-color: #F3F4F6;
    color: #4B5563;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.initial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.initial-avatar.avatar-purple {
    background-color: #F3E8FF;
    color: #7C3AED;
}

.initial-avatar.avatar-orange {
    background-color: #FFEDD5;
    color: #EA580C;
}

.initial-avatar.avatar-blue {
    background-color: #E0F2FE;
    color: #0284C7;
}

.initial-avatar.avatar-green {
    background-color: #DCFCE7;
    color: #16A34A;
}

.initial-avatar.avatar-rose {
    background-color: #FFE4E6;
    color: #E11D48;
}

.status-badge {
    display: inline-flex;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 20px;
}

.status-badge.active {
    background-color: #DCFCE7;
    color: #15803D;
}

.status-badge.free {
    background-color: #EFF6FF;
    color: #1D4ED8;
}

.status-badge.disabled {
    background-color: #FEE2E2;
    color: #B91C1C;
}

.btn-actions {
    background: none;
    border: none;
    color: #94A3B8;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-actions:hover {
    background-color: #F1F5F9;
    color: #334155;
}

.custom-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background-color: #FFFFFF;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination-btn:hover {
    border-color: #B68D40;
    color: #B68D40;
}

.pagination-btn.active {
    background-color: #283c78;
    border-color: #283c78;
    color: #FFFFFF;
}

@media (max-width: 767.98px) {
    .referrals-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrapper {
        max-width: 100%;
    }

    .toolbar-right {
        justify-content: space-between;
    }

    /* Mobile Typography Adjustments */
    .adminuiux-content h4 {
        font-size: 1.25rem !important;
    }

    .adminuiux-content h5 {
        font-size: 1.1rem !important;
    }

    .adminuiux-content h6 {
        font-size: 0.95rem !important;
    }

    .breadcrumb {
        font-size: 0.75rem !important;
    }

    .adminuiux-content .table th {
        font-size: 0.75rem !important;
        padding: 10px 8px !important;
    }

    .adminuiux-content .table td {
        font-size: 0.8rem !important;
        padding: 10px 8px !important;
    }

    .purchase-section-header {
        font-size: 0.95rem !important;
        padding: 14px 16px !important;
    }

    .purchase-step-number {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
    }

    .purchase-banner-badge-content {
        font-size: 1.6rem !important;
    }

    .purchase-banner-badge-circle {
        width: 60px !important;
        height: 60px !important;
    }

    .gold-rate-sidebar-val {
        font-size: 1.05rem !important;
    }

    .incentive-input-field {
        font-size: 1.1rem !important;
        padding: 10px 14px !important;
    }

    .incentive-input-prefix {
        font-size: 1.1rem !important;
        padding: 0 14px !important;
    }

    .btn-withdraw,
    .btn-history,
    .btn-place-order {
        font-size: 0.9rem !important;
        padding: 12px 20px !important;
    }

    .referral-stats-card {
        padding: 12px 16px !important;
        min-width: 0 !important;
        gap: 10px !important;
    }

    .referral-stats-card h4 {
        font-size: 1.15rem !important;
    }
}

/* Breadcrumb Separator Override */
.breadcrumb-item+.breadcrumb-item::before {
    content: "\203a" !important;
    /* Single right-pointing angle quotation mark › */
    font-size: 1.1rem !important;
    line-height: 1;
    vertical-align: middle;
    color: #94A3B8 !important;
    padding-right: 8px !important;
    padding-left: 4px !important;
}

/* Global Table & Card Styling to match the premium template */
.adminuiux-content .card {
    background: #FFFFFF !important;
    border-radius: 16px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 24px !important;
}

.adminuiux-content .table {
    width: 100% !important;
    margin-bottom: 0 !important;
    border-collapse: collapse !important;
    vertical-align: middle !important;
}

.adminuiux-content .table th {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: #475569 !important;
    background-color: #F8FAFC !important;
    border-bottom: 1.5px solid #E2E8F0 !important;
    padding: 14px 16px !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.adminuiux-content .table td {
    padding: 16px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    font-size: 0.85rem !important;
    color: #334155 !important;
    background-color: transparent !important;
}

.adminuiux-content .table tr:last-child td {
    border-bottom: none !important;
}

.adminuiux-content .table-bordered {
    border: none !important;
}

.adminuiux-content .table-bordered th,
.adminuiux-content .table-bordered td {
    border-left: none !important;
    border-right: none !important;
}

/* ============================================================
   Incentive Wallet (pro.php) Overhaul Styles
   ============================================================ */
.wallet-card-navy {
    background: linear-gradient(135deg, #000080 0%, #051322 100%) !important;
    border: 1px solid rgba(182, 141, 64, 0.25) !important;
    color: #FFFFFF !important;
}

.stats-circle-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.incentive-input-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.incentive-input-group:focus-within {
    border-color: #B68D40;
    box-shadow: 0 0 0 4px rgba(182, 141, 64, 0.1);
}

.incentive-input-prefix {
    background: #F8FAFC;
    border-right: 1.5px solid #E2E8F0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    color: #475569;
    font-weight: 700;
    font-size: 1.25rem;
}

.incentive-input-field {
    border: none !important;
    outline: none !important;
    padding: 14px 20px !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    flex-grow: 1;
    width: 100%;
}

.incentive-input-suffix {
    background: #FFFFFF;
    padding: 0 20px;
    display: flex;
    align-items: center;
    color: #94A3B8;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-withdraw {
    background: linear-gradient(135deg, #B68D40 0%, #D4AF37 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 15px rgba(182, 141, 64, 0.3) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease-in-out !important;
}

.btn-withdraw:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(182, 141, 64, 0.45) !important;
    filter: brightness(1.05);
}

.btn-withdraw:active {
    transform: translateY(0) !important;
}

.btn-history {
    background: #FFFFFF !important;
    border: 1.5px solid #283c78 !important;
    color: #283c78 !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-size: 1rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease !important;
    text-decoration: none;
}

.btn-history:hover {
    background: #283c78 !important;
    color: #FFFFFF !important;
}

.help-bar-card {
    background: #F8FAFC;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.btn-add-ticket {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #283c78;
    border-radius: 12px;
    background-color: #FFFFFF;
    color: #283c78;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    line-height: normal;
}

.btn-add-ticket:hover {
    background-color: #283c78;
    color: #FFFFFF;
}

/* ============================================================
   KYC Verification Page Styles
   ============================================================ */
.kyc-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px !important;
}

.kyc-card-col {
    margin-bottom: 0 !important;
}

.kyc-upload-zone {
    border: 1.5px dashed #283c78;
    background-color: #F8FAFC;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
}

.kyc-upload-zone:hover {
    background-color: #EDF2F7;
    border-color: #1a2e5c;
}

.kyc-upload-zone.gold {
    border-color: #B68D40;
    background-color: #FFFDF9;
}

.kyc-upload-zone.gold:hover {
    background-color: #FFF8EB;
    border-color: #9C722B;
}

.kyc-upload-icon {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: #283c78;
}

.kyc-upload-zone.gold .kyc-upload-icon {
    color: #B68D40;
}

.btn-kyc-choose {
    background-color: #283c78;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 8px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.btn-kyc-choose:hover {
    background-color: #1a2e5c;
}

.btn-kyc-choose.gold {
    background-color: #B68D40;
}

.btn-kyc-choose.gold:hover {
    background-color: #9C722B;
}

.kyc-field-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kyc-input-wrapper {
    display: flex;
    align-items: center;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    padding: 2px;
    transition: border-color 0.2s;
}

.kyc-input-wrapper:focus-within {
    border-color: #283c78;
}

.kyc-input-wrapper.gold:focus-within {
    border-color: #B68D40;
}

.kyc-icon-prefix {
    width: 38px;
    height: 38px;
    background: #EBF4FF;
    color: #3182CE;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    margin-left: 4px;
    flex-shrink: 0;
}

.kyc-icon-prefix.gold {
    background: #FFF5E6;
    color: #B68D40;
}

.kyc-input-wrapper .form-control {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    padding: 10px 12px !important;
}

.kyc-input-wrapper .form-control::placeholder {
    color: #94A3B8;
}

.kyc-illustration-container {
    position: relative;
    width: 120px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kyc-illustration-check {
    position: absolute;
    bottom: -4px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #10B981;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.kyc-illustration-check.pending {
    background: #F59E0B;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.kyc-illustration-check.rejected {
    background: #EF4444;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.kyc-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ECFDF5;
    color: #065F46;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.kyc-status-pill.warning {
    background-color: #FFFBEB;
    color: #92400E;
}

.kyc-status-pill.danger {
    background-color: #FEF2F2;
    color: #991B1B;
}

.kyc-note-banner {
    background-color: #EFF6FF;
    border: 1px solid #DBEAFE;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1E40AF;
    font-size: 0.85rem;
    font-weight: 500;
}

.kyc-note-banner i,
.kyc-note-banner svg {
    color: #2563EB;
    flex-shrink: 0;
}

/* KYC Mobile Adaptations */
@media (max-width: 767.98px) {
    .kyc-illustration-container {
        width: 75px !important;
        height: 52px !important;
        flex-shrink: 0;
    }

    .kyc-illustration-container svg {
        width: 75px !important;
        height: 52px !important;
    }

    .kyc-illustration-check {
        width: 18px !important;
        height: 18px !important;
        bottom: -2px !important;
        right: 2px !important;
        font-size: 0.6rem !important;
        border-width: 1.5px !important;
    }

    .kyc-illustration-check svg,
    .kyc-illustration-check i {
        width: 10px !important;
        height: 10px !important;
        stroke-width: 3px !important;
    }

    .kyc-card .card-body {
        padding: 16px !important;
    }

    .kyc-card h5 {
        font-size: 1rem !important;
    }

    .kyc-card p.text-muted {
        font-size: 0.75rem !important;
    }

    .kyc-upload-zone {
        padding: 12px !important;
        min-height: 90px !important;
    }

    .kyc-upload-icon {
        font-size: 1.3rem !important;
        margin-bottom: 4px !important;
    }

    .btn-kyc-choose {
        padding: 4px 14px !important;
        font-size: 0.72rem !important;
        margin-top: 2px !important;
    }

    .kyc-icon-prefix {
        width: 32px !important;
        height: 32px !important;
        margin-right: 6px !important;
    }

    .kyc-input-wrapper .form-control {
        font-size: 0.82rem !important;
        padding: 8px 10px !important;
    }

    .kyc-card {
        margin-bottom: 12px !important;
    }

    .kyc-card-col {
        margin-bottom: 12px !important;
    }

    .kyc-card .row.g-4 {
        --bs-gutter-y: 12px !important;
        --bs-gutter-x: 12px !important;
    }

    .kyc-card .mt-4 {
        margin-top: 12px !important;
    }

    .kyc-card .mt-3 {
        margin-top: 8px !important;
    }

    .kyc-card .mb-4 {
        margin-bottom: 12px !important;
    }

    .kyc-note-banner {
        padding: 10px 14px !important;
        font-size: 0.78rem !important;
        gap: 8px !important;
    }
}

/* Custom robust gutters for stats cards to prevent them touching */
.stats-row {
    margin-right: -8px !important;
    margin-left: -8px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

.stats-row>div {
    padding-right: 8px !important;
    padding-left: 8px !important;
}

@media (min-width: 768px) {
    .stats-row {
        margin-right: -12px !important;
        margin-left: -12px !important;
    }

    .stats-row>div {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }
}

/* ============================================================
   SaaS Helpdesk Style - Support Tickets Page
   ============================================================ */
.support-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    margin-bottom: 28px !important;
}

.support-stats-card {
    background: #FFFFFF !important;
    border-radius: 18px !important;
    border: 1px solid #E2E8F0 !important;
    padding: 20px 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    height: 100% !important;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
}

.support-stats-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.07), 0 2px 5px rgba(0, 0, 0, 0.03) !important;
    border-color: #CBD5E1 !important;
}

.support-stats-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
}

.support-stats-details {
    display: flex !important;
    flex-direction: column !important;
}

.support-stats-label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #64748B !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 4px !important;
}

.support-stats-value {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    line-height: 1.1 !important;
}

@media (max-width: 991.98px) {
    .support-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 575.98px) {
    .support-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }

    .support-stats-card {
        padding: 16px 20px !important;
        gap: 14px !important;
    }

    .support-stats-value {
        font-size: 1.35rem !important;
    }
}

    /* ============================================================
       Gold Purchase Estimation Sheet Template Override Styles
       ============================================================ */
    .est-container {
        max-width: 1100px;
        margin: 0 auto 50px;
        background: #FFFFFF !important;
        border: 1px solid #E2E8F0 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
        padding: 40px !important;
        border-radius: 12px !important;
    }

    .est-header-title {
        color: #283c78;
        font-family: 'Playfair Display', serif;
        font-size: 2.2rem;
        font-weight: 800;
        letter-spacing: 0.5px;
        text-align: center;
    }

    /* Top Right Badge */
    .est-badge-box {
        border: 1px solid #283c78 !important;
        border-radius: 6px;
        overflow: hidden;
        width: 180px;
        text-align: center;
        background: #FFFFFF;
    }

    .est-badge-header {
        background: #283c78 !important;
        color: #FFFFFF !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        letter-spacing: 1px;
        padding: 6px 12px !important;
        text-transform: uppercase !important;
    }

    .est-badge-body {
        padding: 10px !important;
    }

    .est-badge-body .text-theme-primary {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        color: #E28743 !important;
        /* Orange accent */
    }

    /* Detail Cards Layout */
    .est-card {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        height: auto !important;
        margin-bottom: 20px;
    }

    .est-card-header {
        background: #283c78 !important;
        color: #FFFFFF !important;
        padding: 10px 15px !important;
        font-weight: 700;
        font-size: 0.82rem;
        display: flex;
        align-items: center;
        gap: 8px;
        border-bottom: none !important;
        border-radius: 6px 6px 0 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .est-card-body {
        padding: 15px !important;
        border: 1px solid #E2E8F0 !important;
        border-top: none !important;
        border-radius: 0 0 6px 6px;
        background: #FFFFFF;
    }

    .est-table-keyval td {
        padding: 6px 0 !important;
        font-size: 0.85rem !important;
        vertical-align: top !important;
    }

    .est-table-keyval td:first-child {
        color: #283c78 !important;
        width: 110px !important;
        font-weight: 500 !important;
    }

    .est-table-keyval td:nth-child(2) {
        width: 15px !important;
        color: #94A3B8 !important;
    }

    .est-table-keyval td:last-child {
        color: #0F172A !important;
        font-weight: 600 !important;
    }

    /* Summary list column alignment */
    .est-summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: 1px solid #F1F5F9;
        font-size: 0.88rem;
    }

    .est-summary-row:last-child {
        border-bottom: none;
    }

    .est-summary-row.net-value {
        padding-top: 10px;
        margin-top: 5px;
        border-top: 1.5px solid #CBD5E1 !important;
        color: #0A2540 !important;
        font-weight: 700;
    }

    .est-summary-row.net-value .text-gold {
        color: #E28743 !important;
        font-size: 1.25rem;
    }

    /* Table Details styling */
    .est-details-header-banner {
        background: #B68D40 !important;
        color: #FFFFFF !important;
        padding: 10px 15px !important;
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 6px 6px 0 0;
    }

    .est-details-table {
        border-collapse: collapse;
        width: 100%;
        border: 1px solid #E2E8F0 !important;
    }

    .est-details-table th {
        background: #F8FAFC !important;
        color: #475569 !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: 1px solid #E2E8F0 !important;
        padding: 10px 12px !important;
    }

    .est-details-table td {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
        border: 1px solid #E2E8F0 !important;
        color: #334155;
    }

    .est-total-row {
        background: #FEFBF0 !important;
        font-weight: 700;
        color: #B68D40;
    }

    .est-total-row td {
        border: 1px solid #E2E8F0 !important;
    }

    /* Warning disclaimer card */
    .est-info-banner-card {
        background: #FFFDF5 !important;
        border: 1px solid #FCD34D !important;
        border-radius: 8px;
        padding: 15px 20px !important;
        font-size: 0.85rem;
        color: #78350F;
        line-height: 1.5;
        display: flex;
        gap: 12px;
        align-items: center;
        height: 100%;
    }

    /* Seal & Signatures block */
    .signature-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .signature-img-line {
        font-family: 'Alex Brush', cursive;
        font-size: 2.2rem;
        color: #283c78;
        line-height: 1;
        margin-bottom: 2px;
        height: 38px;
    }

    .signature-line-border {
        width: 180px;
        height: 1px;
        background: #CBD5E1;
        margin: 4px 0 8px;
    }

    .est-footer {
        border-top: 1px solid #E2E8F0;
        margin-top: 40px;
        padding-top: 20px;
        font-size: 0.78rem;
        color: #64748B;
        line-height: 1.6;
    }

    .btn-action-outline {
        border: 1.5px solid #283c78;
        color: #283c78;
        background: transparent;
        font-weight: 600;
        font-size: 0.85rem;
        padding: 10px 24px;
        border-radius: 8px;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
    }

    .btn-action-outline:hover {
        background: #283c78;
        color: #FFFFFF;
    }

    @media (max-width: 767.98px) {
        .est-container {
            padding: 20px 15px !important;
        }

        .est-header-title {
            font-size: 1.6rem;
        }

        .est-badge-box {
            margin: 15px auto 0;
        }
    }

    @media print {
        body {
            background: #FFFFFF !important;
        }

        .adminuiux-header,
        .adminuiux-sidebar,
        .sidebar-wrap,
        .btn-action-outline,
        .breadcrumb,
        .back-link,
        .print-btn-section {
            display: none !important;
        }

        .adminuiux-content {
            padding: 0 !important;
            margin: 0 !important;
        }

        .est-container {
            border: none !important;
            box-shadow: none !important;
            padding: 0 !important;
            max-width: 100% !important;
        }
    }

/* ============================================================
   My Team Page Styles (group.php)
   ============================================================ */
.active-badge {
    background-color: #DCFCE7 !important;
    color: #15803D !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}
.free-badge {
    background-color: #FEF9C3 !important;
    color: #854D0E !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}
.disabled-badge {
    background-color: #F1F5F9 !important;
    color: #64748B !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}
.step-num-badge {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #64748B !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
}
.team-table th {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.5px !important;
}
.team-table td {
    font-family: 'Outfit', sans-serif !important;
    padding: 14px 12px !important;
}
.member-row {
    border-bottom: 1px solid #F1F5F9 !important;
    transition: background-color 0.2s ease !important;
}
.member-row:hover {
    background-color: #FAFAFB !important;
}

.pagination-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    border: 1px solid #E2E8F0 !important;
    background-color: #FFFFFF !important;
    color: #64748B !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.pagination-btn.active {
    background-color: #0b2239 !important;
    color: #FFFFFF !important;
    border-color: #0b2239 !important;
}
.pagination-btn.pagination-arrow {
    color: #CBD5E1 !important;
    cursor: not-allowed !important;
}

.stat-card {
    height: 100% !important;
}

@media (max-width: 767.98px) {
    .stat-card {
        padding: 14px 12px !important;
        gap: 10px !important;
        min-height: 95px !important;
    }
    .stat-card h3 {
        font-size: 1.3rem !important;
    }
    .stat-card span {
        font-size: 0.8rem !important;
    }
    .nav-tabs .nav-link {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
    }
    .filter-select {
        max-width: 100% !important;
        flex-grow: 1 !important;
    }
    .btn-theme {
        flex-grow: 1 !important;
        justify-content: center !important;
    }
}

@media (max-width: 575.98px) {
    .stat-card .d-flex.justify-content-between {
        flex-direction: column !important;
        gap: 6px !important;
    }
    .stat-card .text-end {
        text-align: left !important;
    }
}