/* ============================================
   TANZANIA MINING INVESTMENT - MOBILE FIRST CSS
   Version: 2.0 | Fully Responsive
   ============================================ */

/* --------------------------------------------
   GLOBAL VARIABLES & RESET
   -------------------------------------------- */
:root {
    /* Colors */
    --primary-dark: #113745;
    --primary: #000;
    --primary-light: #fff;
    --secondary: #f8f9fa;
    --accent: #ff9f43;
    --accent-dark: #e67e22;
    --success: #28a745;
    --success-light: rgba(40, 167, 69, 0.1);
    --danger: #dc3545;
    --danger-light: rgba(220, 53, 69, 0.1);
    --warning: #ffc107;
    --warning-light: rgba(255, 193, 7, 0.1);
    --info: #17a2b8;
    --dark: #212529;
    --gray-dark: #343a40;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --gray-extra-light: #e9ecef;
    --light: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    
    /* Typography - Responsive Clamp */
    --text-xs: clamp(0.75rem, 2vw, 0.875rem);
    --text-sm: clamp(0.875rem, 2.5vw, 1rem);
    --text-base: clamp(1rem, 3vw, 1.125rem);
    --text-lg: clamp(1.125rem, 3.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 4vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 5vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 6vw, 2.25rem);
    
    /* Spacing */
    --space-xs: clamp(0.25rem, 1vw, 0.5rem);
    --space-sm: clamp(0.5rem, 2vw, 0.75rem);
    --space-md: clamp(0.75rem, 3vw, 1rem);
    --space-lg: clamp(1rem, 4vw, 1.5rem);
    --space-xl: clamp(1.5rem, 5vw, 2rem);
    --space-2xl: clamp(2rem, 6vw, 3rem);
    
    /* Layout */
    --sidebar-width: 280px;
    --header-height: clamp(60px, 10vh, 70px);
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--dark);
    background: gray;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* --------------------------------------------
   TYPOGRAPHY
   -------------------------------------------- */
h1 { font-size: var(--text-3xl); font-weight: 700; line-height: 1.2; }
h2 { font-size: var(--text-2xl); font-weight: 600; line-height: 1.3; }
h3 { font-size: var(--text-xl); font-weight: 600; line-height: 1.3; }
h4 { font-size: var(--text-lg); font-weight: 600; line-height: 1.4; }
h5 { font-size: var(--text-base); font-weight: 600; line-height: 1.4; }
h6 { font-size: var(--text-sm); font-weight: 600; line-height: 1.4; }

p, li, span, a { font-size: var(--text-base); }
small, .text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

/* --------------------------------------------
   UTILITY CLASSES
   -------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid { display: grid; }
.grid-2 { grid-template-columns: 1fr; gap: var(--space-md); }
.grid-3 { grid-template-columns: 1fr; gap: var(--space-md); }
.grid-4 { grid-template-columns: 1fr; gap: var(--space-md); }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------
   ANIMATIONS
   -------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in { animation: fadeIn var(--transition); }
.animate-slide-up { animation: slideUp var(--transition); }
.animate-slide-down { animation: slideDown var(--transition); }
.animate-pulse { animation: pulse 2s infinite; }

/* --------------------------------------------
   BUTTONS
   -------------------------------------------- */
.btn, button, 
.logout-btn, 
.btn-primary, 
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--primary);
    color: var(--white);
    min-height: 44px;
    min-width: 44px;
    white-space: nowrap;
}

.btn:hover, button:hover,
.logout-btn:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: var(--shadow-md);
}

.btn:active, button:active,
.logout-btn:active {
    transform: translateY(0);
}

.btn:disabled, button:disabled,
.logout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-secondary { background: var(--gray); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-warning { background: var(--warning); color: var(--dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: rgba(37, 111, 138, 0.1); }

/* Button Sizes */
.btn-sm { padding: var(--space-xs) var(--space-md); font-size: var(--text-xs); min-height: 36px; }
.btn-lg { padding: var(--space-md) var(--space-xl); font-size: var(--text-base); min-height: 52px; }
.btn-block { width: 100%; display: flex; }

/* Button Groups */
.btn-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1;
}

/* --------------------------------------------
   FORMS & INPUTS
   -------------------------------------------- */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--dark);
    font-size: var(--text-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    background: var(--white);
    color: var(--dark);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 111, 138, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger);
}

.form-group small,
.form-hint {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--gray);
}

/* Password Input with Toggle */
.password-input-group {
    position: relative;
}

.password-input-group input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray);
    transition: color var(--transition-fast);
    font-size: var(--text-sm);
}

.password-toggle:hover {
    color: var(--primary);
}

/* Quick Amount Buttons */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.quick-amount {
    background: var(--light);
    border: 2px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    padding: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--dark);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-amount:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.quick-amount.active {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

@media (min-width: 480px) {
    .quick-amounts {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .quick-amounts {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------
   CARDS
   -------------------------------------------- */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: var(--space-lg);
    transition: all var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--gray-extra-light);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.card-body {
    flex: 1;
}

.card-footer {
    padding-top: var(--space-md);
    margin-top: var(--space-md);
    border-top: 1px solid var(--gray-extra-light);
}

/* Stat Cards */
.stat-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border-left: 4px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: var(--text-sm);
    color: var(--gray);
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
}

/* --------------------------------------------
   TABLES
   -------------------------------------------- */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: var(--space-md) 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px;
}

th {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    font-size: var(--text-sm);
}

td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-extra-light);
    color: var(--dark);
    font-size: var(--text-sm);
}

tr:hover {
    background: var(--light);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active,
.status-badge.approved,
.status-badge.success {
    background: var(--success-light);
    color: var(--success);
}

.status-badge.pending,
.status-badge.inactive {
    background: var(--warning-light);
    color: #856404;
}

.status-badge.rejected,
.status-badge.error {
    background: var(--danger-light);
    color: var(--danger);
}


/* --------------------------------------------
   SIDEBAR NAVIGATION
   -------------------------------------------- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1099;
    display: none;
    animation: fadeIn var(--transition);
}

.sidebar-overlay.active {
    display: block;
}

.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    z-index: 1100;
    overflow-y: auto;
    transition: left var(--transition);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.dashboard-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    color: var(--accent);
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.sidebar-profile {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-profile h4 {
    margin: 0 0 var(--space-xs) 0;
}

.sidebar-profile p {
    font-size: var(--text-sm);
    opacity: 0.8;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-lg) 0;
}

.nav-section {
    margin-bottom: var(--space-lg);
}

.section-title {
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    color: white;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition);
    gap: var(--space-md);
    position: relative;
    min-height: 50px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-left: 3px solid var(--accent);
}

.nav-icon {
    width: 24px;
    text-align: center;
    font-size: var(--text-lg);
}

.nav-text {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 500;
}

.sidebar-badge {
    background: var(--danger);
    color: var(--white);
    font-size: var(--text-xs);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.sidebar-actions {
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-actions .btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.sidebar-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop Sidebar */
@media (min-width: 1024px) {
    .dashboard-sidebar {
        left: 0;
        transform: translateX(0);
    }
    
    .dashboard {
        padding-left: 280px;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .sidebar-close {
        display: none;
    }
    
    .hamburger-btn {
        display: none;
    }
}

/* --------------------------------------------
   HAMBURGER MENU BUTTON
   -------------------------------------------- */
.hamburger-btn {
    background: var(--primary-dark);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--white);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger-btn i {
    font-size: var(--text-xl);
}

/* --------------------------------------------
   DASHBOARD HEADER & NAV
   -------------------------------------------- */
.dashboard {
    display: none;
    min-height: 100vh;
    background: #000;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo a {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.header-logo {
    font-size: var(--text-lg);
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Dashboard Nav */
.dashboard-nav {
    background: var(--white);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 70px;
    z-index: 99;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.brand-name {
    font-weight: 700;
    color: var(--primary-dark);
}

.brand-role {
    font-size: var(--text-xs);
    color: var(--gray);
}

.header-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

/* Bottom Bar (Mobile) */
.bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: var(--space-sm) var(--space-md);
    z-index: 99;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--gray-extra-light);
}

.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    transition: all var(--transition);
    padding: var(--space-xs);
    border-radius: var(--border-radius);
}

.bottom-item.active {
    color: var(--primary);
}

.bottom-icon {
    font-size: var(--text-xl);
    margin-bottom: 2px;
}

.bottom-item span:not(.bottom-icon) {
    font-size: var(--text-xs);
}

@media (min-width: 768px) {
    .bottombar {
        display: none;
    }
}

/* Main Content */
.main-content {
    padding: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-section {
    display: none;
    animation: fadeIn var(--transition);
}

.content-section.active {
    display: block;
}

.section-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    color: white;
}

/* --------------------------------------------
   LANDING PAGE
   -------------------------------------------- */
.landing-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

.landing-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.top-header {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    border-radius: var(--border-radius);
}

.contact-info {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    color: var(--white);
    transition: color var(--transition);
}

.social-links a:hover {
    color: var(--accent);
}

.main-nav {
    padding: var(--space-md) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.nav-container span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-container h1 {
    font-size: var(--text-xl);
    margin: 0;
}

.nav-actions {
    display: flex;
    gap: var(--space-sm);
}

.hero-active {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.hero-content h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.hero-content p {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--space-xl) 0;
}

.landing-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.feature-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.feature-description {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.cta-section {
    text-align: center;
    margin: var(--space-2xl) 0;
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
}

@media (min-width: 640px) {
    .landing-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .landing-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------
   LOGIN / SIGNUP CONTAINER
   -------------------------------------------- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.login-box {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
}

.header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: var(--space-xl);
    text-align: center;
    color: var(--white);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.logo i {
    font-size: var(--text-2xl);
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-extra-light);
}

.tab {
    flex: 1;
    text-align: center;
    padding: var(--space-md);
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: all var(--transition);
    background: none;
    border: none;
}

.tab.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.form-container {
    padding: var(--space-xl);
}

.form {
    display: none;
}

.form.active {
    display: block;
    animation: fadeIn var(--transition);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
}

.footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-extra-light);
    text-align: center;
    font-size: var(--text-sm);
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Admin Password Section */
.admin-password-section {
    display: none;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--warning-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--warning);
}

/* --------------------------------------------
   INVESTMENT PLANS
   -------------------------------------------- */
.investment-plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.investment-plan-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-top: 4px solid;
}

.investment-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.investment-plan-card.copper { border-top-color: #e67e22; }
.investment-plan-card.gold { border-top-color: #f1c40f; }
.investment-plan-card.tanzanite { border-top-color: #9b59b6; }
.investment-plan-card.diamond { border-top-color: #3498db; }

.plan-header {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
}

.plan-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
}

.copper-icon { background: linear-gradient(135deg, #e67e22, #d35400); }
.gold-icon { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.tanzanite-icon { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.diamond-icon { background: linear-gradient(135deg, #3498db, #2980b9); }

.plan-title h4 {
    margin: 0;
    font-size: var(--text-lg);
}

.plan-minimum {
    font-size: var(--text-xs);
    color: var(--gray);
}

.plan-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: bold;
}

.plan-badge.entry { background: #e67e22; color: white; }
.plan-badge.popular { background: #f1c40f; color: #333; }
.plan-badge.exclusive { background: #9b59b6; color: white; }
.plan-badge.premium { background: #3498db; color: white; }

.plan-details {
    padding: var(--space-lg);
}

.return-rate {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.rate-days {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.rate .value {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.rate .label {
    font-size: var(--text-xs);
    color: var(--gray);
}

.divider {
    display: flex;
    align-items: center;
    color: var(--gray-light);
}

.average-rate {
    font-size: var(--text-sm);
    color: var(--gray);
}

.plan-features {
    margin: var(--space-lg) 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
}

.feature-item i {
    color: var(--success);
}

.profit-calculation {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
}

.calculation-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.calc-item {
    display: flex;
    justify-content: space-between;
}

.calc-item.total {
    font-weight: bold;
    color: var(--success);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--gray-extra-light);
}

.plan-actions {
    display: flex;
    gap: var(--space-md);
}

.btn-invest,
.btn-details {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-invest {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-invest:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
}

.btn-details {
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--gray-extra-light);
}

.btn-details:hover {
    background: var(--gray-extra-light);
}

@media (min-width: 640px) {
    .investment-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .investment-plans-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------
   INVESTMENT CALCULATOR
   -------------------------------------------- */
.investment-calculator {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow);
}

.calculator-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.calculator-inputs {
    flex: 1;
}

.calc-input-group {
    margin-bottom: var(--space-lg);
}

.calc-input-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.calc-input-group input,
.calc-input-group select {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    font-size: var(--text-base);
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.result-card {
    background: var(--light);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    text-align: center;
}

.result-label {
    font-size: var(--text-xs);
    color: var(--gray);
    margin-bottom: var(--space-xs);
}

.result-value {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary);
}

.result-value.highlight {
    color: var(--success);
    font-size: var(--text-xl);
}

.btn-calc-invest {
    grid-column: span 2;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--success), #219653);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

@media (min-width: 768px) {
    .calculator-container {
        flex-direction: row;
    }
    
    .calculator-results {
        min-width: 300px;
    }
}

/* --------------------------------------------
   REFERRAL SECTION
   -------------------------------------------- */
.referral-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.referral-code-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow);
}

.referral-code-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.code-display {
    background: var(--light);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px dashed var(--primary);
}

.code-display span {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: 2px;
    font-family: monospace;
}

.referral-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.referral-link span {
    flex: 1;
    padding: var(--space-md);
    background: var(--light);
    border-radius: var(--border-radius);
    font-size: var(--text-sm);
    word-break: break-all;
}

.share-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-width: 120px;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.email {
    background: #EA4335;
    color: white;
}

.share-btn.sms {
    background: #34B7F1;
    color: white;
}

.referrals-table-container {
    overflow-x: auto;
    margin: var(--space-xl) 0;
}

.referrals-table {
    min-width: 600px;
}

@media (min-width: 640px) {
    .referral-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .referral-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------
   REWARDS SYSTEM
   -------------------------------------------- */
.reward-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow);
}

.reward-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.reward-input-group {
    display: flex;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.reward-input-group input {
    flex: 1;
    padding: var(--space-md);
    border: 2px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    text-transform: uppercase;
    font-family: monospace;
    letter-spacing: 2px;
}

.reward-input-group button {
    padding: var(--space-md) var(--space-xl);
}

.reward-info {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin-top: var(--space-lg);
    text-align: left;
}

.reward-info p {
    margin: var(--space-xs) 0;
    font-size: var(--text-sm);
}

/* Admin Rewards */
.admin-rewards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.create-reward-section,
.reward-codes-section,
.reward-history-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
}

.reward-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.reward-code-item {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-left: 4px solid var(--primary);
}

.reward-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.reward-code {
    font-family: monospace;
    font-weight: bold;
    font-size: var(--text-lg);
}

.reward-amount-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-sm);
}

.reward-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.reward-details div {
    flex: 1;
    min-width: 120px;
}

.reward-details span:first-child {
    display: block;
    font-size: var(--text-xs);
    color: var(--gray);
}

.reward-actions {
    display: flex;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .admin-rewards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reward-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .admin-rewards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reward-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Chat Modal */
.admin-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-chat-sidebar {
    border-bottom: 1px solid var(--gray-extra-light);
    max-height: 40vh;
    overflow-y: auto;
}

.chat-search {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-extra-light);
}

.chat-search input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
}

.chat-users-list {
    padding: var(--space-sm);
}

.chat-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background var(--transition);
}

.chat-user-item:hover {
    background: var(--light);
}

.chat-user-item.active {
    background: rgba(37, 111, 138, 0.1);
}

.user-chat-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
}

.last-message {
    font-size: var(--text-xs);
    color: var(--gray);
}

.unread-count {
    background: var(--danger);
    color: white;
    font-size: var(--text-xs);
    padding: 2px 6px;
    border-radius: 10px;
}

.admin-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-chat-header {
    padding: var(--space-md);
    background: var(--light);
    border-bottom: 1px solid var(--gray-extra-light);
}

.admin-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.message {
    max-width: 80%;
    padding: var(--space-sm) var(--space-md);
    border-radius: 18px;
    word-wrap: break-word;
}

.message.support-message {
    background: var(--light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user-message {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: var(--text-xs);
    margin-top: 4px;
    opacity: 0.7;
}

.admin-chat-input {
    padding: var(--space-md);
    border-top: 1px solid var(--gray-extra-light);
}

.quick-responses {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.quick-response {
    background: var(--light);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-size: var(--text-xs);
    cursor: pointer;
    transition: background var(--transition);
}

.quick-response:hover {
    background: var(--primary);
    color: white;
}

.chat-footer {
    display: flex;
    gap: var(--space-sm);
}

.chat-footer textarea {
    flex: 1;
    padding: var(--space-md);
    border: 2px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    resize: none;
    font-family: inherit;
}

.chat-send-btn {
    padding: var(--space-md) var(--space-xl);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

@media (min-width: 768px) {
    .admin-chat-container {
        flex-direction: row;
        height: 70vh;
    }
    
    .admin-chat-sidebar {
        width: 300px;
        border-bottom: none;
        border-right: 1px solid var(--gray-extra-light);
        max-height: none;
    }
    
    .admin-chat-main {
        flex: 1;
    }
}

/* --------------------------------------------
   SUPPORT SECTION
   -------------------------------------------- */
.support-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.support-option {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.support-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.support-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.support-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

@media (min-width: 640px) {
    .support-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .support-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------
   FAQ SECTION
   -------------------------------------------- */
.faq-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow);
}

.faq-search {
    position: relative;
    margin-bottom: var(--space-lg);
}

.faq-search i {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.faq-search input {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) 3rem;
    border: 2px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    font-size: var(--text-base);
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.faq-category {
    padding: var(--space-sm) var(--space-lg);
    background: var(--light);
    border: 2px solid var(--gray-extra-light);
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: var(--text-sm);
    font-weight: 500;
}

.faq-category:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.faq-category.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    border: 2px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-md) var(--space-lg);
    background: var(--light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question i {
    transition: transform var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.faq-item.active .faq-answer {
    padding: var(--space-md) var(--space-lg);
    max-height: 500px;
}



/* --------------------------------------------
   LOADING STATES
   -------------------------------------------- */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-extra-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: var(--space-xl) auto;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --------------------------------------------
   RESPONSIVE UTILITIES
   -------------------------------------------- */
.hide-on-mobile { display: flex; }
.show-on-mobile { display: none; }

@media (max-width: 768px) {
    .hide-on-mobile { display: none; }
    .show-on-mobile { display: flex; }
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------
   PRINT STYLES
   -------------------------------------------- */
@media print {
    .sidebar,
    .bottombar,
    .chat-button,
    .no-print {
        display: none !important;
    }
    
    .dashboard {
        padding: 0 !important;
    }
    
    .card,
    .stat-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* --------------------------------------------
   DARK MODE SUPPORT
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1a1a2e;
        --white: #16213e;
        --dark: #e2e8f0;
        --gray-extra-light: #2d3748;
        --gray-light: #4a5568;
    }
    
    
    
    .card,
    .stat-card,
    .investment-plan-card,
    .reward-card,
    .faq-section,
    .support-option {
        background: var(--white);
        color: var(--dark);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea,
    .faq-search input {
        background: var(--light);
        border-color: var(--gray-extra-light);
        color: var(--dark);
    }
    
    .quick-amount {
        background: var(--light);
        color: var(--dark);
    }
}

/* --------------------------------------------
   ACCESSIBILITY
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* --------------------------------------------
   SCROLLBAR STYLING
   -------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-extra-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* --------------------------------------------
   MINERAL MARKETPLACE & INVESTMENT CARDS
   -------------------------------------------- */
.mineral-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.mineral-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--gray-extra-light);
}

.mineral-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mineral-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.mineral-price {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--success);
    margin: var(--space-sm) 0;
}

.mineral-certified {
    display: inline-block;
    background: var(--success-light);
    color: var(--success);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    margin: var(--space-md) 0;
}

.invest-btn {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.invest-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

@media (min-width: 640px) {
    .mineral-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mineral-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------
   INVESTMENTS CONTAINER (User Investments)
   -------------------------------------------- */
.investments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.mineral-investment-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-left: 4px solid var(--primary);
}

.mineral-investment-card.active {
    border-left-color: var(--success);
}

.mineral-investment-card.completed {
    border-left-color: var(--warning);
    opacity: 0.85;
}

.mineral-investment-header {
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-sm);
    background: linear-gradient(135deg, var(--light), var(--white));
    border-bottom: 1px solid var(--gray-extra-light);
}

.mineral-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.mineral-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.mineral-details {
    flex: 1;
}

.mineral-name {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.investment-amount {
    font-size: var(--text-sm);
    color: var(--gray);
}

.investment-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
}

.status-active {
    background: var(--success-light);
    color: var(--success);
}

.status-completed {
    background: var(--warning-light);
    color: #856404;
}

.investment-details {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.investment-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    border-bottom: 1px dashed var(--gray-extra-light);
}

.investment-detail-row:last-child {
    border-bottom: none;
}

.investment-detail-label {
    font-size: var(--text-sm);
    color: var(--gray);
}

.investment-detail-value {
    font-weight: 600;
    color: var(--dark);
}

.investment-detail-value.profit.positive {
    color: var(--success);
}

.investment-progress-section {
    padding: var(--space-lg);
    background: var(--light);
    border-top: 1px solid var(--gray-extra-light);
}

.investment-progress-bar {
    height: 8px;
    background: var(--gray-extra-light);
    border-radius: 4px;
    overflow: hidden;
    margin: var(--space-sm) 0;
}

.investment-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #2ecc71);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.investment-actions {
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    border-top: 1px solid var(--gray-extra-light);
}

.btn-view-details,
.btn-delete {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.btn-view-details {
    background: var(--primary);
    color: white;
}

.btn-view-details:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-delete {
    background: var(--danger);
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

@media (min-width: 640px) {
    .investments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .investments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------
   TRANSACTION HISTORY TABLES
   -------------------------------------------- */
.transaction-table,
.admin-transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.transaction-table th,
.admin-transactions-table th {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--space-md);
    text-align: left;
    font-size: var(--text-sm);
    font-weight: 600;
}

.transaction-table td,
.admin-transactions-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-extra-light);
    font-size: var(--text-sm);
    vertical-align: middle;
}

.transaction-row:hover {
    background: var(--light);
}

.transaction-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
}

.transaction-type.deposit {
    background: var(--success-light);
    color: var(--success);
}

.transaction-type.withdrawal {
    background: var(--danger-light);
    color: var(--danger);
}

.transaction-type.investment {
    background: var(--info);
    color: white;
}

.transaction-type.bonus {
    background: var(--warning-light);
    color: #856404;
}

.status-approved {
    color: var(--success);
    font-weight: 600;
}

.status-pending {
    color: var(--warning);
    font-weight: 600;
}

.status-rejected {
    color: var(--danger);
    font-weight: 600;
}

.btn-receipt {
    background: var(--info);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--text-xs);
    transition: all var(--transition);
}

.btn-receipt:hover {
    background: #138496;
    transform: translateY(-2px);
}

/* --------------------------------------------
   PROFILE SECTION
   -------------------------------------------- */
.profile-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.profile-header-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    color: white;
    text-align: center;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    position: relative;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.profile-info h2 {
    margin-bottom: var(--space-xs);
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    margin-top: var(--space-sm);
}

.profile-stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.profile-stats-mini .stat {
    text-align: center;
}

.profile-stats-mini .stat-value {
    display: block;
    font-size: var(--text-xl);
    font-weight: 700;
}

.profile-stats-mini .stat-label {
    font-size: var(--text-xs);
    opacity: 0.8;
}

.profile-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.action-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.action-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.action-content h4 {
    margin-bottom: var(--space-xs);
}

.action-content p {
    font-size: var(--text-sm);
    color: var(--gray);
}

.profile-details-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-extra-light);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item label {
    font-weight: 600;
    color: var(--gray);
}

.detail-item span {
    font-weight: 500;
    color: var(--dark);
}

@media (min-width: 640px) {
    .profile-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .profile-container {
        flex-direction: row;
    }
    
    .profile-header-card {
        flex: 1;
    }
    
    .profile-actions-section {
        flex: 2;
    }
}

/* --------------------------------------------
   ABOUT US SECTION
   -------------------------------------------- */
.about-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-subtitle {
    font-size: var(--text-base);
    color: var(--gray);
    margin-top: var(--space-sm);
}

.about-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid var(--gray-extra-light);
    padding-bottom: var(--space-sm);
}

.about-tab {
    padding: var(--space-sm) var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray);
    transition: all var(--transition);
    border-radius: var(--border-radius);
}

.about-tab:hover {
    color: var(--primary);
}

.about-tab.active {
    background: var(--primary);
    color: white;
}

.tab-pane {
    display: none;
    animation: fadeIn var(--transition);
}

.tab-pane.active {
    display: block;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.mission-card,
.vision-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow);
}

.mission-icon,
.vision-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.stat-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-item .stat-number {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon-rotate {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.commitment-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.commitment-icon {
    font-size: 2rem;
    color: var(--primary);
}

.commitment-text h4 {
    margin-bottom: var(--space-xs);
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
    .mission-vision {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .commitment-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------
   ANNOUNCEMENTS SECTION
   -------------------------------------------- */
.announcements-slideshow {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    margin: var(--space-xl) 0;
    position: relative;
    min-height: 250px;
}

.slideshow-container {
    position: relative;
    overflow: hidden;
}

.slideshow-track {
    display: flex;
    transition: transform 0.5s ease;
}

.announcement-slide {
    flex: 0 0 100%;
    padding: var(--space-xl);
    color: white;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.slide-media {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.slide-media img,
.slide-media video {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.slide-content h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.priority-high {
    background: var(--danger);
}

.priority-medium {
    background: var(--warning);
    color: var(--dark);
}

.priority-low {
    background: var(--success);
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.slideshow-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slideshow-prev {
    left: var(--space-md);
}

.slideshow-next {
    right: var(--space-md);
}

.slideshow-dots {
    position: absolute;
    bottom: var(--space-md);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition);
}

.slideshow-dot.active {
    background: white;
    transform: scale(1.2);
}

.dashboard-announcements-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow);
}

.dashboard-single-announcement {
    padding: var(--space-md);
    border-left: 4px solid var(--primary);
    background: var(--light);
    border-radius: var(--border-radius);
}

.dashboard-slideshow-container {
    position: relative;
    overflow: hidden;
}

.dashboard-slide {
    display: none;
    animation: fadeIn var(--transition);
}

.dashboard-slide.active {
    display: block;
}

@media (min-width: 768px) {
    .announcement-slide {
        flex-direction: row;
        align-items: center;
    }
    
    .slide-media {
        flex: 1;
        max-width: 40%;
    }
    
    .slide-content {
        flex: 1;
    }
}

/* --------------------------------------------
   ADMIN CALCULATOR
   -------------------------------------------- */
.admin-calculator-container {
    max-width: 500px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
}

.calculator-input-group {
    margin-bottom: var(--space-lg);
}

.calculator-input-wrapper {
    position: relative;
}

.calculator-input {
    width: 100%;
    padding: var(--space-md);
    padding-left: 3rem;
    border: 2px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    font-size: var(--text-lg);
    font-weight: 600;
}

.calculator-currency {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--primary);
}

.calculator-results {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.calculator-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-extra-light);
}

.calculator-result-item:last-child {
    border-bottom: none;
}

.calculator-result-label {
    font-weight: 500;
    color: var(--gray);
}

.calculator-result-value {
    font-weight: 700;
}

.calculator-result-value.net-amount {
    color: var(--success);
    font-size: var(--text-lg);
}

.calculator-summary {
    background: var(--success-light);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    text-align: center;
    margin: var(--space-lg) 0;
}

.calculator-summary-amount {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--success);
}

.calculator-actions {
    display: flex;
    gap: var(--space-md);
}

.calculator-btn {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.calculator-btn.primary {
    background: var(--primary);
    color: white;
}

.calculator-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.calculator-btn.secondary {
    background: var(--gray);
    color: white;
}

.calculator-btn.secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* --------------------------------------------
   ERROR & EMPTY STATES
   -------------------------------------------- */
.error-container {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 10001;
    max-width: 90%;
    width: 350px;
}

.error-message {
    background: var(--danger);
    color: white;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-sm);
    animation: slideInRight var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    color: var(--gray-light);
}

.empty-state h3 {
    margin-bottom: var(--space-sm);
}

.empty-state p {
    margin-bottom: var(--space-lg);
}

.no-data {
    text-align: center;
    padding: var(--space-xl);
    color: var(--gray);
}

/* --------------------------------------------
   RESPONSIVE BREAKPOINTS SUMMARY
   -------------------------------------------- */
/* 
   Mobile: 0 - 480px
   Large Mobile: 481px - 640px
   Tablet: 641px - 768px
   Desktop: 769px - 1024px
   Large Desktop: 1025px - 1440px
   Ultra Wide: 1441px+
*/

/* Ultra Wide Screens */
@media (min-width: 1441px) {
    .container,
    .main-content {
        max-width: 1400px;
    }
}

/* --------------------------------------------
   HIGH CONTRAST MODE
   -------------------------------------------- */
@media (prefers-contrast: high) {
    .btn,
    .card,
    .modal-content,
    .dashboard-sidebar {
        border: 2px solid currentColor;
    }
    
    .btn-primary {
        background: black;
        color: white;
    }
    
    .btn-primary:hover {
        background: white;
        color: black;
    }
}

/* --------------------------------------------
   SAFE AREA INSETS (Notch Devices)
   -------------------------------------------- */
@supports (padding: max(0px)) {
    .dashboard-header {
        padding-top: max(var(--space-md), env(safe-area-inset-top));
        padding-left: max(var(--space-lg), env(safe-area-inset-left));
        padding-right: max(var(--space-lg), env(safe-area-inset-right));
    }
    
    .bottombar {
        padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
    }
}

/* --------------------------------------------
   END OF CSS
   -------------------------------------------- */
   
   /* --------------------------------------------
   USER MANAGEMENT TABLE STYLES
   -------------------------------------------- */
.user-management-container {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
}

.user-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.user-table-container {
    overflow-x: auto;
    margin: var(--space-xl) 0;
    border-radius: var(--border-radius);
}

.user-table {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
}

.user-table th {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--space-md);
    text-align: left;
    font-size: var(--text-sm);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.user-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-extra-light);
    font-size: var(--text-sm);
    vertical-align: middle;
}

.user-table tr:hover {
    background: var(--light);
}

.user-info-cell {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: var(--text-lg);
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.user-email {
    font-size: var(--text-xs);
    color: var(--gray);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
}

.status-badge.active {
    background: var(--success-light);
    color: var(--success);
}

.status-badge.inactive {
    background: var(--danger-light);
    color: var(--danger);
}

.status-badge.pending {
    background: var(--warning-light);
    color: #856404;
}

.user-actions {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.user-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.user-action-btn.view {
    background: var(--info);
    color: white;
}

.user-action-btn.edit {
    background: var(--warning);
    color: var(--dark);
}

.user-action-btn.delete {
    background: var(--danger);
    color: white;
}

.user-action-btn.suspend {
    background: var(--warning);
    color: var(--dark);
}

.user-action-btn.activate {
    background: var(--success);
    color: white;
}

.user-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.password-cell {
    position: relative;
}

.password-display {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.password-masked {
    font-family: monospace;
    letter-spacing: 2px;
}

.btn-show-password {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    transition: color var(--transition);
}

.btn-show-password:hover {
    color: var(--primary);
}

@media (min-width: 640px) {
    .user-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .user-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------
   ADMIN MANAGEMENT TABLE STYLES
   -------------------------------------------- */
.admin-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.admin-table-container {
    overflow-x: auto;
    margin: var(--space-xl) 0;
    border-radius: var(--border-radius);
}

.admin-table {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--space-md);
    text-align: left;
    font-size: var(--text-sm);
    font-weight: 600;
}

.admin-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-extra-light);
    font-size: var(--text-sm);
    vertical-align: middle;
}

.admin-role {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
}

.admin-role.super-admin {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.admin-role.admin {
    background: var(--primary);
    color: white;
}

.admin-role.moderator {
    background: var(--info);
    color: white;
}

.admin-role.support {
    background: var(--success);
    color: white;
}

.permissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.permission-tag {
    background: var(--light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: var(--text-xs);
    color: var(--gray);
}

@media (min-width: 640px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .admin-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------
   TOP INVESTORS MODAL
   -------------------------------------------- */
.top-investors-content {
    padding: var(--space-md);
}

.period-selector {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.period-btn {
    flex: 1;
    padding: var(--space-md);
    background: var(--light);
    border: 2px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition);
}

.period-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.period-btn:hover:not(.active) {
    background: var(--gray-extra-light);
}

.investors-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-height: 400px;
    overflow-y: auto;
}

.investor-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--light);
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

.investor-item:hover {
    transform: translateX(5px);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.investor-rank {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--text-xl);
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
    color: #333;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #e8a87c);
    color: white;
}

.rank-other {
    background: var(--primary);
    color: white;
}

.investor-info {
    flex: 1;
}

.investor-name {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.investor-stats {
    display: flex;
    gap: var(--space-xl);
}

.investor-amount,
.investor-profit {
    text-align: center;
}

.investor-amount strong,
.investor-profit strong {
    display: block;
    font-size: var(--text-lg);
}

.investor-amount small,
.investor-profit small {
    font-size: var(--text-xs);
    color: var(--gray);
}

.investor-profit strong {
    color: var(--success);
}

@media (max-width: 640px) {
    .investor-item {
        flex-direction: column;
        text-align: center;
    }
    
    .investor-stats {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------
   PASSWORD RESET MODAL
   -------------------------------------------- */
.email-preview {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
    max-height: 300px;
    overflow-y: auto;
}

.email-preview h4 {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.email-content {
    font-family: monospace;
    font-size: var(--text-sm);
    white-space: pre-wrap;
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    margin: var(--space-sm) 0;
}

.email-note {
    background: var(--warning-light);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    font-size: var(--text-xs);
    color: #856404;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

/* --------------------------------------------
   TERMS & CONDITIONS MODAL
   -------------------------------------------- */
.terms-modal-container {
    max-height: 80vh;
    overflow-y: auto;
}

.terms-search-nav {
    margin-bottom: var(--space-lg);
}

.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.quick-nav-btn {
    padding: var(--space-xs) var(--space-md);
    background: var(--light);
    border: 2px solid var(--gray-extra-light);
    border-radius: 20px;
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all var(--transition);
}

.quick-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.terms-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--gray-extra-light);
    padding-bottom: var(--space-sm);
}

.terms-tab {
    padding: var(--space-sm) var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: all var(--transition);
    border-radius: var(--border-radius);
}

.terms-tab.active {
    background: var(--primary);
    color: white;
}

.terms-tab-content {
    display: none;
    animation: fadeIn var(--transition);
}

.terms-tab-content.active {
    display: block;
}

.terms-section {
    margin-bottom: var(--space-xl);
    border: 1px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--light);
    border-bottom: 1px solid var(--gray-extra-light);
}

.section-number {
    font-weight: 700;
    color: var(--primary);
    margin-right: var(--space-sm);
}

.section-copy {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    transition: color var(--transition);
}

.section-copy:hover {
    color: var(--primary);
}

.section-content {
    padding: var(--space-lg);
}

.terms-card {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
}

.warning-box {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    display: flex;
    gap: var(--space-md);
}

.warning-icon {
    font-size: 1.5rem;
    color: var(--warning);
}

.terms-acceptance-footer {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--light);
    border-radius: var(--border-radius);
    text-align: center;
}

.acceptance-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
}

@media (max-width: 640px) {
    .acceptance-actions {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* --------------------------------------------
   INVESTMENT MODAL (Enhanced)
   -------------------------------------------- */
.investment-modal .modal-content {
    max-width: 500px;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.info-card {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    text-align: center;
    border-left: 3px solid var(--primary);
}

.quick-buttons {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}

.quick-btn {
    flex: 1;
    padding: var(--space-xs) var(--space-sm);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all var(--transition);
}

.quick-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.calculation-results {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
}

.calculation-results h4 {
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.insufficient-funds {
    background: var(--danger-light);
    border-left: 4px solid var(--danger);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    display: none;
    align-items: center;
    gap: var(--space-sm);
    color: var(--danger);
}

@media (min-width: 480px) {
    .info-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------
   WITHDRAWAL MODAL
   -------------------------------------------- */
.withdrawal-calc {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
}

.withdrawal-calc h3 {
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px dashed var(--gray-extra-light);
}

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

.withdrawal-reason-section {
    margin-top: var(--space-lg);
}

.reason-category {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: var(--space-md);
}

.status-section {
    background: var(--success-light);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
    text-align: center;
    display: none;
}

.status-section h2 {
    color: var(--success);
    margin-bottom: var(--space-md);
}

.status-pending {
    color: var(--warning);
    font-weight: bold;
}

/* --------------------------------------------
   RECEIPT MODAL
   -------------------------------------------- */
.receipt {
    font-family: 'Courier New', monospace;
    padding: var(--space-lg);
}

.receipt-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px dashed var(--gray);
}

.receipt-header h2 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.receipt-details {
    margin-bottom: var(--space-lg);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px dotted var(--gray-extra-light);
}

.receipt-footer {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 2px dashed var(--gray);
}

.qr-code {
    text-align: center;
    margin: var(--space-lg) 0;
}

.fake-qr-code {
    width: 120px;
    height: 120px;
    background: var(--light);
    margin: 0 auto;
    position: relative;
    border: 2px solid var(--gray);
}

.qr-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 5px, #333 5px, #333 6px),
                      repeating-linear-gradient(90deg, transparent, transparent 5px, #333 5px, #333 6px);
    opacity: 0.1;
}

@media print {
    .receipt {
        padding: 0;
    }
    
    .modal-footer,
    .close-modal {
        display: none;
    }
}

/* --------------------------------------------
   CHAT BUTTON ANIMATIONS
   -------------------------------------------- */
@keyframes chatPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 111, 138, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 111, 138, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 111, 138, 0);
    }
}

.chat-button {
    animation: chatPulse 2s infinite;
}

/* --------------------------------------------
   DROPDOWN MENUS
   -------------------------------------------- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    display: none;
    animation: slideDown var(--transition);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--dark);
    text-decoration: none;
    transition: background var(--transition);
}

.dropdown-item:hover {
    background: var(--light);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-extra-light);
    margin: var(--space-xs) 0;
}

/* --------------------------------------------
   TOOLTIPS
   -------------------------------------------- */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--text-xs);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 1000;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* --------------------------------------------
   PROGRESS BARS
   -------------------------------------------- */
.progress {
    height: 8px;
    background: var(--gray-extra-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* --------------------------------------------
   BREADCRUMBS
   -------------------------------------------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-lg);
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--gray);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: var(--gray);
}

/* --------------------------------------------
   PAGINATION
   -------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin: var(--space-xl) 0;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    background: var(--white);
    border: 1px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    color: var(--dark);
    text-decoration: none;
    transition: all var(--transition);
}

.page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* --------------------------------------------
   BADGES & TAGS
   -------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: var(--dark);
}

.badge-info {
    background: var(--info);
    color: white;
}

/* --------------------------------------------
   ACCORDION
   -------------------------------------------- */
.accordion-item {
    border: 1px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.accordion-header {
    padding: var(--space-md) var(--space-lg);
    background: var(--light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-header i {
    transition: transform var(--transition);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 var(--space-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.accordion-item.active .accordion-content {
    padding: var(--space-md) var(--space-lg);
    max-height: 500px;
}

/* --------------------------------------------
   TABS (Alternative)
   -------------------------------------------- */
.tabs-container {
    margin-bottom: var(--space-lg);
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    border-bottom: 2px solid var(--gray-extra-light);
    margin-bottom: var(--space-lg);
}

.tab-button {
    padding: var(--space-sm) var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: all var(--transition);
}

.tab-button.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    margin-bottom: -2px;
}

.tab-panel {
    display: none;
    animation: fadeIn var(--transition);
}

.tab-panel.active {
    display: block;
}

/* --------------------------------------------
   LOADING SKELETON
   -------------------------------------------- */
.skeleton-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
    animation: loading 1.5s infinite;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin-bottom: var(--space-md);
}

/* --------------------------------------------
   RESPONSIVE TABLES (Card View on Mobile)
   -------------------------------------------- */
@media (max-width: 640px) {
    .responsive-table {
        display: block;
    }
    
    .responsive-table thead {
        display: none;
    }
    
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }
    
    .responsive-table tr {
        margin-bottom: var(--space-md);
        border: 1px solid var(--gray-extra-light);
        border-radius: var(--border-radius);
        padding: var(--space-md);
    }
    
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-sm) 0;
        border: none;
        border-bottom: 1px dashed var(--gray-extra-light);
    }
    
    .responsive-table td:last-child {
        border-bottom: none;
    }
    
    .responsive-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray);
    }
}

/* --------------------------------------------
   END OF CSS - COMPLETE STYLESHEET
   -------------------------------------------- */
   
   /* --------------------------------------------
   MAIN NAVIGATION (main-nav)
   -------------------------------------------- */

/* Top Header Bar */
.top-header {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-xs) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    backdrop-filter: blur(5px);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-xs);
}

.contact-info i {
    font-size: var(--text-sm);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    color: var(--white);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Main Navigation Bar */
.main-nav {
    background: var(--white);
    padding: var(--space-sm) var(--space-md);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo / Brand */
.nav-container span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-container i {
    font-size: var(--text-xl);
    color: var(--primary);
}

.nav-container h1 {
    font-size: var(--text-xl);
    margin: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Actions (Login/Signup Buttons) */
.nav-actions {
    display: flex;
    gap: var(--space-sm);
}

.nav-actions .logout-btn {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-actions .logout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-actions .logout-btn:active {
    transform: translateY(0);
}

/* Hero Section */
.hero-active {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-avatar {
    margin-bottom: var(--space-lg);
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-lg);
}

.hero-content h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--white), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: var(--text-base);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

/* Hero Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: var(--text-xs);
    opacity: 0.8;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--space-xl) 0;
}

.btn-landing {
    padding: var(--space-sm) var(--space-xl);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-landing.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-landing.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-landing.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-landing.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Landing Header */
.landing-header {
    margin: var(--space-xl) 0;
}

.landing-subtitle {
    font-size: var(--text-base);
    opacity: 0.9;
}

/* Landing Features */
.landing-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.feature-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.feature-description {
    font-size: var(--text-sm);
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    margin: var(--space-2xl) 0;
}

.cta-title {
    font-size: var(--text-2xl);
    margin-top: var(--space-xl);
    text-align: center;
}

/* Announcements Slideshow */
.announcements-slideshow {
    margin: var(--space-xl) 0;
    position: relative;
}

.slideshow-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.slideshow-track {
    display: flex;
    transition: transform 0.5s ease;
}

.announcement-slide {
    flex: 0 0 100%;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
}

.slide-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}

.slideshow-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-prev {
    left: var(--space-sm);
}

.slideshow-next {
    right: var(--space-sm);
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition);
}

.slideshow-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Simple Back Link */
.simple-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gray);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition);
}

.simple-back-link:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

/* ============================================
   RESPONSIVE BREAKPOINTS FOR MAIN-NAV
   ============================================ */

/* Tablet (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .top-header {
        padding: var(--space-sm) var(--space-lg);
    }
    
    .contact-info {
        gap: var(--space-lg);
    }
    
    .main-nav {
        padding: var(--space-md) var(--space-lg);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .landing-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .top-header {
        padding: var(--space-sm) var(--space-xl);
    }
    
    .main-nav {
        padding: var(--space-md) var(--space-xl);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .landing-features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-buttons {
        gap: var(--space-lg);
    }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .top-header {
        padding: var(--space-sm) calc((100% - 1200px) / 2);
    }
    
    .main-nav {
        padding: var(--space-md) calc((100% - 1200px) / 2);
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: var(--text-lg);
    }
    
    .landing-features {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-active {
        padding: var(--space-lg) var(--space-md);
    }
    
    .profile-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .landing-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .top-header {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-landing {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .landing-features {
        grid-template-columns: 1fr;
    }
    
    .slideshow-nav {
        width: 32px;
        height: 32px;
    }
}

/* Ultra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .top-header {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .contact-info {
        gap: var(--space-sm);
        font-size: 10px;
    }
    
    .hero-content h1 {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        gap: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 9px;
    }
}

/* Dark Mode Support for Main Nav */
@media (prefers-color-scheme: dark) {
    .main-nav {
        background: var(--white);
        box-shadow: var(--shadow);
    }
    
    .nav-container h1 {
        background: linear-gradient(135deg, var(--primary-light), var(--primary));
        -webkit-background-clip: text;
        background-clip: text;
    }
    
    .simple-back-link {
        color: var(--gray-light);
    }
    
    .simple-back-link:hover {
        color: var(--primary-light);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .main-nav,
    .nav-actions .logout-btn,
    .feature-card,
    .stat-card,
    .slideshow-nav,
    .simple-back-link {
        transition: none;
    }
    
    .feature-card:hover,
    .stat-card:hover {
        transform: none;
    }
    
    .slideshow-track {
        transition: none;
    }
}

/* --------------------------------------------
   LOGIN & SIGN-UP FORMS
   -------------------------------------------- */

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--space-lg);
    background: #000;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

/* Transaction Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.summary-label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Login Box */
.login-box {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    animation: slideUp var(--transition);
}

/* Header */
.login-box .header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: var(--space-xl);
    text-align: center;
    color: var(--white);
    position: relative;
}

.login-box .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.login-box .logo i {
    font-size: var(--text-2xl);
    animation: logoSpin 3s ease-in-out infinite;
}

@keyframes logoSpin {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

.login-box .logo h2 {
    font-size: var(--text-lg);
    margin: 0;
    font-weight: 700;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-extra-light);
    background: var(--white);
}

.tab {
    flex: 1;
    text-align: center;
    padding: var(--space-md);
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: all var(--transition);
    background: none;
    border: none;
    font-size: var(--text-base);
    position: relative;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px 3px 0 0;
}

/* Form Container */
.form-container {
    padding: var(--space-xl);
}

.form {
    display: none;
    animation: fadeIn var(--transition);
}

.form.active {
    display: block;
}

/* Form Controls */
.form-control {
    margin-bottom: var(--space-lg);
    position: relative;
}

.form-control label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--dark);
    font-size: var(--text-sm);
}

.form-control label i {
    margin-right: var(--space-xs);
    color: var(--primary);
}

.form-control input {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    transition: all var(--transition);
    background: var(--white);
    color: var(--dark);
}

.form-control input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 111, 138, 0.1);
}

.form-control input.error {
    border-color: var(--danger);
}

/* Password Toggle */
.password-toggle {
    margin-top: var(--space-xs);
    color: var(--primary);
    font-size: var(--text-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: color var(--transition);
}

.password-toggle:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Admin Password Section */
.admin-password-section {
    display: none;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--warning-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--warning);
    animation: slideDown var(--transition);
}

/* Checkbox Container */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
    padding: var(--space-xs) 0;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-container label {
    font-size: var(--text-sm);
    color: var(--dark);
    cursor: pointer;
}

.checkbox-container a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

/* Footer Links */
.footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-extra-light);
    text-align: center;
    font-size: var(--text-sm);
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.footer a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.footer p {
    margin: var(--space-xs) 0;
    color: var(--gray);
}

/* Login Button */
.btn {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading State for Button */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Simple Back Link */
.simple-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gray);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition);
    margin-top: var(--space-md);
}

.simple-back-link:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

/* Error Messages */
.error-message {
    color: var(--danger);
    font-size: var(--text-xs);
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    display: none;
}

.error-message.show {
    display: flex;
}

/* Success Message */
.success-message {
    color: var(--success);
    font-size: var(--text-sm);
    margin-top: var(--space-sm);
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn var(--transition);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .login-container {
        padding: var(--space-xl);
    }
    
    .login-box {
        max-width: 500px;
    }
    
    .form-container {
        padding: var(--space-xl);
    }
}

/* Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-container {
        padding: var(--space-2xl);
    }
    
    .login-box {
        max-width: 480px;
    }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .login-container {
        padding: var(--space-2xl);
    }
    
    .login-box {
        max-width: 500px;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .login-container {
        padding: var(--space-md);
    }
    
    .form-container {
        padding: var(--space-lg);
    }
    
    .tab {
        padding: var(--space-sm);
        font-size: var(--text-sm);
    }
    
    .form-control input {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 14px;
    }
    
    .footer {
        font-size: var(--text-xs);
    }
}

/* Ultra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .login-container {
        padding: var(--space-sm);
    }
    
    .form-container {
        padding: var(--space-md);
    }
    
    .login-box .logo h2 {
        font-size: var(--text-base);
    }
    
    .login-box .logo i {
        font-size: var(--text-xl);
    }
    
    .tab {
        padding: 10px;
        font-size: 12px;
    }
    
    .form-control label {
        font-size: 12px;
    }
    
    .checkbox-container label {
        font-size: 11px;
    }
    
    .footer {
        font-size: 10px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .login-container {
        min-height: auto;
        padding: var(--space-md);
    }
    
    .login-box {
        max-width: 400px;
    }
    
    .form-container {
        padding: var(--space-md);
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .login-box {
        background: var(--white);
    }
    
    .form-control label {
        color: var(--dark);
    }
    
    .form-control input {
        background: var(--white);
        border-color: var(--gray-extra-light);
        color: var(--dark);
    }
    
    .checkbox-container label {
        color: var(--dark);
    }
    
    .footer {
        border-top-color: var(--gray-extra-light);
    }
    
    .footer p {
        color: var(--gray-light);
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
    .login-box {
        border: 2px solid currentColor;
    }
    
    .form-control input {
        border: 2px solid currentColor;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .tab.active::after {
        height: 4px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .login-box,
    .btn,
    .tab,
    .form-control input,
    .password-toggle,
    .simple-back-link {
        transition: none;
        animation: none;
    }
    
    .login-box .logo i {
        animation: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.form-control input:focus-visible,
.btn:focus-visible,
.tab:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .login-container {
        background: white;
        padding: 0;
    }
    
    .login-box {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn,
    .password-toggle,
    .simple-back-link {
        display: none;
    }
}

/* --------------------------------------------
   PROFILE SECTION
   -------------------------------------------- */

/* Profile Container */
.profile-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Profile Header Card */
.profile-header-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

/* Profile Avatar */
.profile-avatar-large {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
    position: relative;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: var(--shadow-lg);
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid var(--white);
}

.avatar-overlay:hover {
    transform: scale(1.1);
    background: var(--accent-dark);
}

.avatar-overlay i {
    font-size: var(--text-sm);
    color: var(--white);
}

/* Profile Info */
.profile-info {
    position: relative;
    z-index: 1;
}

.profile-info h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
    color: var(--white);
}

.profile-email {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-bottom: var(--space-sm);
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    margin-bottom: var(--space-md);
}

.verification-badge i {
    color: var(--success);
}

/* Profile Stats Mini */
.profile-stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
    position: relative;
    z-index: 1;
}

.profile-stats-mini .stat {
    text-align: center;
}

.profile-stats-mini .stat-value {
    display: block;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--accent);
}

.profile-stats-mini .stat-label {
    font-size: var(--text-xs);
    opacity: 0.8;
}

/* Profile Actions Grid */
.profile-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.action-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-extra-light);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.action-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: all var(--transition);
}

.action-card:hover .action-icon {
    transform: scale(1.1);
}

.action-content {
    flex: 1;
}

.action-content h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
    color: var(--dark);
}

.action-content p {
    font-size: var(--text-sm);
    color: var(--gray);
}

/* Profile Details Card */
.profile-details-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-extra-light);
}

.profile-details-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    color: var(--dark);
}

/* Details Grid */
.details-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-extra-light);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item label {
    font-weight: 600;
    color: var(--gray);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.detail-item span {
    font-weight: 500;
    color: var(--dark);
    font-size: var(--text-sm);
    word-break: break-word;
    text-align: right;
}

.balance-amount {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--success);
}

/* Tab Container */
.tab-container {
    margin-top: var(--space-xl);
}

.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    border-bottom: 2px solid var(--gray-extra-light);
    margin-bottom: var(--space-lg);
}

.dashboard-tab {
    padding: var(--space-sm) var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: all var(--transition);
    font-size: var(--text-sm);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.dashboard-tab:hover {
    color: var(--primary);
}

.dashboard-tab.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    margin-bottom: -2px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn var(--transition);
}

.tab-content.active {
    display: block;
}

/* Calculator Tab */
.calculator {
    background: var(--light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
}

.calc-input {
    width: 100%;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border: 2px solid var(--gray-extra-light);
    border-radius: var(--border-radius);
    font-size: var(--text-base);
}

.calc-result {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: var(--space-md);
}

/* Referrals Tab */
.referral-list-section {
    background: var(--light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
}

.referral-earnings-description {
    margin-bottom: var(--space-xl);
}

.description-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.description-header h3 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.earnings-process {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.process-step {
    display: flex;
    gap: var(--space-md);
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: var(--space-xs);
}

.commission-rates {
    margin: var(--space-md) 0;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: var(--light);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xs);
}

.commission-rate {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
}

.quick-actions {
    margin-top: var(--space-xl);
}

.action-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.btn-action {
    flex: 1;
    padding: var(--space-md);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    transition: all var(--transition);
}

.btn-action:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* My Investments Tab */
#user-investments-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

#profit-breakdown {
    background: var(--light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.profit-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.profit-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    text-align: center;
    border-left: 3px solid var(--primary);
}

.profit-amount {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary);
}

.profit-amount.current {
    color: var(--info);
}

.profit-amount.expected {
    color: var(--warning);
}

#investment-history {
    background: var(--light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.history-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-left: 3px solid var(--primary);
}

.history-item.completed {
    border-left-color: var(--success);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.history-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
}

.history-status.active {
    background: var(--success-light);
    color: var(--success);
}

.history-status.completed {
    background: var(--warning-light);
    color: #856404;
}

.history-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.history-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
}

.history-row .profit-positive {
    color: var(--success);
    font-weight: 600;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .profile-header-card {
        padding: var(--space-xl);
    }
    
    .profile-avatar-large {
        width: 100px;
        height: 100px;
    }
    
    .profile-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profit-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .earnings-process {
        gap: var(--space-md);
    }
    
    .process-step {
        padding: var(--space-md);
    }
}

/* Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .profile-container {
        flex-direction: row;
    }
    
    .profile-header-card {
        flex: 1;
        min-width: 280px;
    }
    
    .profile-actions-section {
        flex: 2;
    }
    
    .profile-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profit-summary {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #user-investments-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .profile-container {
        flex-direction: row;
    }
    
    .profile-header-card {
        flex: 1;
        min-width: 320px;
    }
    
    .profile-actions-section {
        flex: 2;
    }
    
    .profile-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profit-summary {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #user-investments-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .profile-header-card {
        padding: var(--space-lg);
    }
    
    .profile-avatar-large {
        width: 90px;
        height: 90px;
    }
    
    .avatar-overlay {
        width: 30px;
        height: 30px;
    }
    
    .profile-stats-mini .stat-value {
        font-size: var(--text-base);
    }
    
    .profile-stats-mini .stat-label {
        font-size: 10px;
    }
    
    .action-card {
        padding: var(--space-md);
        gap: var(--space-md);
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .action-content h4 {
        font-size: var(--text-sm);
    }
    
    .action-content p {
        font-size: var(--text-xs);
    }
    
    .dashboard-tab {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-xs);
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .history-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Ultra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .profile-header-card {
        padding: var(--space-md);
    }
    
    .profile-avatar-large {
        width: 70px;
        height: 70px;
    }
    
    .profile-info h2 {
        font-size: var(--text-base);
    }
    
    .profile-email {
        font-size: var(--text-xs);
    }
    
    .profile-stats-mini {
        gap: var(--space-sm);
    }
    
    .profile-stats-mini .stat-value {
        font-size: var(--text-sm);
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .detail-item span {
        text-align: left;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .profile-header-card {
        padding: var(--space-md);
    }
    
    .profile-avatar-large {
        width: 70px;
        height: 70px;
    }
    
    .profile-stats-mini .stat-value {
        font-size: var(--text-sm);
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .action-card,
    .profile-details-card {
        background: var(--white);
        border-color: var(--gray-extra-light);
    }
    
    .action-content h4 {
        color: var(--dark);
    }
    
    .calculator {
        background: var(--white);
    }
    
    .referral-list-section {
        background: var(--white);
    }
    
    .process-step {
        background: var(--light);
    }
    
    .rate-item {
        background: var(--white);
    }
    
    .profit-card {
        background: var(--white);
    }
    
    .history-item {
        background: var(--white);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .action-card,
    .dashboard-tab,
    .btn-action,
    .profile-avatar-large img {
        transition: none;
    }
    
    .action-card:hover {
        transform: none;
    }
    
    .tab-content {
        animation: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .profile-actions-grid,
    .dashboard-tabs,
    .btn-action,
    .avatar-overlay {
        display: none;
    }
    
    .profile-header-card {
        background: #f0f0f0;
        color: black;
    }
    
    .profile-details-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* --------------------------------------------
   BOTTOM BAR - ADVANCED FEATURES
   -------------------------------------------- */

/* Bottom Bar Container */
.bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--gray-extra-light);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

/* Bottom Bar Items */
.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gray);
    transition: all var(--transition);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    position: relative;
    flex: 1;
    max-width: 80px;
    min-height: 56px;
}

.bottom-item:hover {
    color: var(--primary);
    background: rgba(37, 111, 138, 0.05);
    transform: translateY(-2px);
}

.bottom-item.active {
    color: var(--primary);
}

.bottom-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

/* Bottom Icons */
.bottom-icon {
    font-size: var(--text-xl);
    margin-bottom: 2px;
    transition: transform var(--transition);
    position: relative;
}

.bottom-item:hover .bottom-icon {
    transform: translateY(-2px) scale(1.05);
}

.bottom-item.active .bottom-icon {
    transform: scale(1.1);
    color: var(--primary);
}

/* Bottom Labels */
.bottom-label {
    font-size: var(--text-xs);
    font-weight: 500;
    transition: all var(--transition);
}

/* Badge for Notifications */
.bottom-badge {
    position: absolute;
    top: 2px;
    right: 15px;
    background: var(--danger);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
    animation: badgePulse 2s infinite;
}

/* Ripple Effect on Click */
.bottom-item {
    position: relative;
    overflow: hidden;
}

.bottom-item .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(37, 111, 138, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Bottom Bar Variants */
.bottombar.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.bottombar.dark {
    background: var(--dark);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.bottombar.dark .bottom-item {
    color: var(--gray-light);
}

.bottombar.dark .bottom-item.active {
    color: var(--accent);
}

.bottombar.dark .bottom-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* With Shadow */
.bottombar.shadow {
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
}

/* With Gradient Border */
.bottombar.gradient-border {
    border-top: none;
    position: relative;
}

.bottombar.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

/* Floating Bottom Bar */
.bottombar.floating {
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    width: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-extra-light);
}

/* Compact Bottom Bar */
.bottombar.compact {
    padding: 4px var(--space-sm);
}

.bottombar.compact .bottom-item {
    min-height: 48px;
}

.bottombar.compact .bottom-icon {
    font-size: var(--text-base);
}

.bottombar.compact .bottom-label {
    font-size: 10px;
}

/* Expanded Bottom Bar (when active item has menu) */
.bottombar.expanded {
    padding-bottom: var(--space-md);
}

/* Bottom Bar Menu (for items with sub-items) */
.bottom-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 1000;
}

.bottom-item.has-menu:hover .bottom-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.bottom-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.bottom-menu-item:hover {
    background: var(--light);
    color: var(--primary);
}

.bottom-menu-item i {
    width: 20px;
    font-size: var(--text-sm);
}

/* Active Indicator Animation */
@keyframes slideUp {
    from {
        transform: translateX(-50%) scaleX(0);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }
}

.bottom-item.active::before {
    animation: slideUp 0.3s ease;
}

/* Badge Pulse Animation */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Loading State for Bottom Items */
.bottom-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.bottom-item.loading .bottom-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Disabled State */
.bottom-item.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* Tooltip on Hover (Desktop only) */
@media (min-width: 769px) {
    .bottom-item {
        position: relative;
    }
    
    .bottom-item .tooltip {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-5px);
        background: var(--dark);
        color: var(--white);
        font-size: var(--text-xs);
        padding: 4px 8px;
        border-radius: var(--border-radius-sm);
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        pointer-events: none;
        z-index: 1001;
    }
    
    .bottom-item:hover .tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .bottom-item .tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: var(--dark) transparent transparent transparent;
    }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .bottombar {
        padding: 6px var(--space-sm);
    }
    
    .bottom-item {
        max-width: 60px;
        min-height: 50px;
        padding: 4px;
    }
    
    .bottom-icon {
        font-size: var(--text-lg);
    }
    
    .bottom-label {
        font-size: 9px;
    }
    
    .bottom-badge {
        top: 0;
        right: 8px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .bottom-item.active::before {
        width: 20px;
        height: 2px;
        top: -6px;
    }
}

/* Ultra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .bottombar {
        padding: 4px var(--space-xs);
    }
    
    .bottom-item {
        max-width: 50px;
        min-height: 45px;
    }
    
    .bottom-icon {
        font-size: var(--text-base);
    }
    
    .bottom-label {
        font-size: 8px;
    }
    
    .bottom-badge {
        top: -2px;
        right: 4px;
        min-width: 14px;
        height: 14px;
        font-size: 8px;
    }
}

/* Tablet (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .bottombar {
        padding: var(--space-xs) var(--space-lg);
    }
    
    .bottom-item {
        max-width: 80px;
        min-height: 60px;
    }
    
    .bottom-icon {
        font-size: var(--text-xl);
    }
    
    .bottom-label {
        font-size: var(--text-xs);
    }
}

/* Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .bottombar {
        display: none;
    }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .bottombar {
        display: none;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .bottombar {
        padding: 4px var(--space-md);
    }
    
    .bottom-item {
        min-height: 48px;
    }
    
    .bottom-icon {
        font-size: var(--text-base);
        margin-bottom: 0;
    }
    
    .bottom-label {
        display: none;
    }
}

/* ============================================
   SPECIAL VARIANTS
   ============================================ */

/* Bottom Bar with Progress Indicator */
.bottombar.with-progress {
    position: relative;
}

.progress-indicator {
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gray-extra-light);
}

.progress-indicator .progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    transition: width 0.3s ease;
}

/* Bottom Bar with Center Action Button */
.bottombar.center-action {
    justify-content: space-between;
    padding: var(--space-xs) var(--space-md);
}

.center-action-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all var(--transition);
    border: 3px solid var(--white);
}

.center-action-btn:hover {
    transform: translateX(-50%) translateY(-5px);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.center-action-btn:active {
    transform: translateX(-50%) translateY(0);
}

/* Bottom Bar with Icons Only */
.bottombar.icons-only .bottom-label {
    display: none;
}

.bottombar.icons-only .bottom-item {
    max-width: 60px;
}

/* Bottom Bar with Labels Only */
.bottombar.labels-only .bottom-icon {
    display: none;
}

.bottombar.labels-only .bottom-label {
    font-size: var(--text-sm);
    font-weight: 600;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .bottombar {
        background: var(--white);
        border-top-color: var(--gray-extra-light);
    }
    
    .bottombar.dark {
        background: var(--dark);
    }
    
    .bottom-item {
        color: var(--gray-light);
    }
    
    .bottom-item.active {
        color: var(--accent);
    }
    
    .bottom-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .bottom-menu {
        background: var(--white);
    }
    
    .bottom-menu-item {
        color: var(--dark); 
    }
    
    .bottom-menu-item:hover {
        background: var(--light);
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
    .bottombar {
        border-top: 2px solid currentColor;
    }
    
    .bottom-item.active::before {
        background: currentColor;
        height: 4px;
    }
    
    .bottom-badge {
        border: 1px solid currentColor;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .bottom-item,
    .bottom-icon,
    .bottom-item::before,
    .bottom-badge,
    .ripple {
        transition: none;
        animation: none;
    }
    
    .bottom-item:hover {
        transform: none;
    }
    
    .bottom-item.active::before {
        animation: none;
    }
    
    .bottom-badge {
        animation: none;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.bottom-item:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--border-radius);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .bottombar {
        display: none !important;
    }
}

/* --------------------------------------------
   LOGO COMPONENT - ADVANCED STYLES
   -------------------------------------------- */

/* Base Logo Container */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

/* Logo Link */
.logo a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

/* Logo Image */
.logo img,
.brand-logo {
    width: clamp(36px, 8vw, 50px);
    height: clamp(36px, 8vw, 50px);
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

/* Logo Icon */
.logo i {
    font-size: clamp(1.5rem, 5vw, 2rem);
    transition: all var(--transition);
}

/* Logo Text */
.logo-text {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 1px;
    transition: all var(--transition);
}

/* Logo Subtitle */
.logo-subtitle {
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    font-weight: 400;
    opacity: 0.8;
    margin-top: -2px;
}

/* ============================================
   LOGO VARIANTS
   ============================================ */

/* 1. Gradient Logo */
.logo.gradient .logo-text {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 2. Logo with Icon Only */
.logo.icon-only .logo-text,
.logo.icon-only .logo-subtitle {
    display: none;
}

.logo.icon-only i {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
}

/* 3. Logo with Text Only */
.logo.text-only i,
.logo.text-only img {
    display: none;
}

/* 4. Logo with Badge */
.logo.with-badge {
    position: relative;
}

.logo-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    animation: badgePulse 2s infinite;
}

/* 5. Animated Logo */
.logo.animated i {
    animation: logoFloat 3s ease-in-out infinite;
}

.logo.animated:hover i {
    animation: logoSpin 0.5s ease;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 6. Logo with Underline Effect */
.logo.underline {
    position: relative;
}

.logo.underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width var(--transition);
}

.logo.underline:hover::after {
    width: 100%;
}

/* 7. Logo with Glow Effect */
.logo.glow:hover i,
.logo.glow:hover img {
    filter: drop-shadow(0 0 8px var(--primary));
}

.logo.glow:hover .logo-text {
    text-shadow: 0 0 10px rgba(37, 111, 138, 0.5);
}

/* 8. Logo with Border */
.logo.bordered {
    padding: var(--space-xs) var(--space-md);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    background: rgba(37, 111, 138, 0.05);
}

.logo.bordered:hover {
    background: rgba(37, 111, 138, 0.1);
    transform: translateY(-2px);
}

/* 9. Logo with Shadow */
.logo.shadow:hover {
    filter: drop-shadow(0 4px 12px rgba(37, 111, 138, 0.3));
}

/* 10. Logo with Pulse Animation on Hover */
.logo.pulse:hover i {
    animation: logoPulse 1s ease infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   BRAND LOGO (Top Bar)
   ============================================ */
.topbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-lg);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.brand-role {
    font-size: var(--text-xs);
    color: var(--gray);
}

/* Premium Badge for Super Admin */
.premium-badge {
    position: relative;
}

.premium-badge::after {
    content: '⭐';
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 12px;
    animation: starGlow 2s infinite;
}

@keyframes starGlow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ============================================
   SIDEBAR LOGO
   ============================================ */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-md);
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
}

.sidebar-logo .logo-text {
    color: var(--white);
    font-size: var(--text-base);
}

.sidebar-logo .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   FOOTER LOGO
   ============================================ */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.footer-logo i {
    font-size: 2rem;
    color: var(--primary);
}

.footer-logo .logo-text {
    font-size: var(--text-lg);
    color: var(--dark);
}

.footer-logo .logo-subtitle {
    font-size: var(--text-xs);
    color: var(--gray);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .logo.icon-only-mobile i {
        font-size: 1.5rem;
    }
    
    .brand-name {
        font-size: var(--text-sm);
    }
    
    .brand-role {
        display: none;
    }
    
    .topbar-brand .brand-text {
        display: none;
    }
    
    .sidebar-logo .logo-text {
        font-size: var(--text-sm);
    }
    
    .sidebar-logo .logo-subtitle {
        display: none;
    }
}

/* Tablet (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .brand-name {
        font-size: var(--text-base);
    }
    
    .brand-role {
        display: block;
    }
}

/* Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo:hover {
        transform: scale(1.02);
    }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .logo-text {
        color: var(--white);
    }
    
    .brand-name {
        color: var(--white);
    }
    
    .brand-role {
        color: var(--gray-light);
    }
    
    .logo.gradient .logo-text {
        background: linear-gradient(135deg, var(--primary-light), var(--accent));
        -webkit-background-clip: text;
        background-clip: text;
    }
    
    .footer-logo .logo-text {
        color: var(--white);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Logo Entrance Animation */
.logo.entrance {
    animation: logoEntrance 0.5s ease-out;
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo Shine Effect */
.logo.shine {
    position: relative;
    overflow: hidden;
}

.logo.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.logo.shine:hover::before {
    left: 100%;
}

/* ============================================
   LOADING STATE
   ============================================ */
.logo.loading {
    opacity: 0.6;
    pointer-events: none;
}

.logo.loading i {
    animation: logoSpin 1s linear infinite;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .logo,
    .logo i,
    .logo img,
    .logo-text,
    .logo.animated i,
    .logo.pulse:hover i,
    .logo.shine::before {
        transition: none;
        animation: none;
    }
    
    .logo:hover {
        transform: none;
    }
    
    .logo.entrance {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.logo:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
    border-radius: var(--border-radius);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .logo {
        text-decoration: none;
        color: black;
    }
    
    .logo i,
    .logo img {
        filter: grayscale(100%);
    }
    
    .logo.gradient .logo-text {
        -webkit-text-fill-color: black;
        background: none;
        color: black;
    }
}

/* ============================================
   SPECIFIC POSITION VARIANTS
   ============================================ */

/* Header Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Landing Page Logo */
.landing-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.landing-logo i {
    font-size: 2rem;
    color: var(--accent);
    animation: logoFloat 3s ease-in-out infinite;
}

.landing-logo .logo-text {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--white), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dashboard Header Logo */
.dashboard-header .logo {
    margin-right: auto;
}

/* ============================================
   RESPONSIVE LOGO SIZES
   ============================================ */
.logo.size-sm i,
.logo.size-sm img {
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
}

.logo.size-sm .logo-text {
    font-size: 0.9rem;
}

.logo.size-lg i,
.logo.size-lg img {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
}

.logo.size-lg .logo-text {
    font-size: 1.8rem;
}

.logo.size-xl i,
.logo.size-xl img {
    width: 80px;
    height: 80px;
    font-size: 3rem;
}

.logo.size-xl .logo-text {
    font-size: 2.2rem;
}




/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .profile-picture {
        width: 35px;
        height: 35px;
    }
    
    .profile-picture.medium {
        width: 45px;
        height: 45px;
    }
    
    .profile-picture.large {
        width: 60px;
        height: 60px;
    }
    
    .sidebar-profile .profile-picture {
        width: 70px;
        height: 70px;
    }
    
    .avatar-container.online::after,
    .avatar-container.offline::after,
    .avatar-container.busy::after,
    .avatar-container.away::after {
        width: 10px;
        height: 10px;
        bottom: 1px;
        right: 1px;
    }
    
    .avatar-group .avatar-container {
        margin-right: -8px;
    }
    
    .avatar-group-more {
        width: 35px;
        height: 35px;
        font-size: 11px;
    }
}

/* Tablet (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .profile-picture.medium {
        width: 55px;
        height: 55px;
    }
    
    .profile-picture.large {
        width: 80px;
        height: 80px;
    }
}

/* Desktop (769px+) */
@media (min-width: 769px) {
    .profile-picture:hover {
        transform: scale(1.05);
    }
    
    .avatar-container:hover img {
        transform: scale(1.05);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes avatarSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.avatar-container.spin:hover img {
    animation: avatarSpin 0.5s ease;
}

/* Avatar Upload Animation */
@keyframes uploadSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 5px rgba(40, 167, 69, 0.3);
    }
    100% {
        transform: scale(1);
    }
}

.avatar-container.upload-success img {
    animation: uploadSuccess 0.5s ease;
}

/* ============================================
   LOADING STATE
   ============================================ */
.avatar-container.loading {
    position: relative;
}

.avatar-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.avatar-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .avatar-container.bordered-white img {
        border-color: var(--dark);
    }
    
    .avatar-container.ring img {
        box-shadow: 0 0 0 3px var(--dark), 0 0 0 6px var(--primary);
    }
    
    .avatar-container.ring:hover img {
        box-shadow: 0 0 0 3px var(--dark), 0 0 0 8px var(--primary);
    }
    
    .avatar-group-more {
        background: var(--gray-dark);
        color: var(--gray-light);
    }
    
    .avatar-group-more:hover {
        background: var(--primary);
        color: var(--white);
    }
}



/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .profile-avatar .profile-picture {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .profile-avatar .avatar-overlay {
        width: 28px;
        height: 28px;
        bottom: 3px;
        right: 3px;
    }
    
    .profile-avatar .avatar-overlay i {
        font-size: 12px;
    }
    
    .profile-avatar.large .profile-picture {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar.online::after,
    .profile-avatar.offline::after,
    .profile-avatar.busy::after,
    .profile-avatar.away::after {
        width: 12px;
        height: 12px;
        bottom: 5px;
        right: 5px;
    }
}

/* Tablet (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .profile-avatar .profile-picture {
        width: 110px;
        height: 110px;
    }
    
    .profile-avatar.large .profile-picture {
        width: 140px;
        height: 140px;
    }
}

/* Desktop (769px+) */
@media (min-width: 769px) {
    .profile-avatar .profile-picture {
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }
    
    .profile-avatar:hover .profile-picture {
        transform: scale(1.08);
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .profile-avatar .profile-picture {
        border-color: var(--accent);
    }
    
    .profile-avatar:hover .profile-picture {
        border-color: var(--accent-dark);
    }
    
    .profile-avatar.ring .profile-picture {
        box-shadow: 0 0 0 3px var(--dark), 0 0 0 6px var(--primary);
    }
    
    .profile-avatar.ring:hover .profile-picture {
        box-shadow: 0 0 0 3px var(--dark), 0 0 0 10px var(--primary);
    }
    
    .profile-avatar .avatar-initials {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .profile-avatar .profile-picture,
    .profile-avatar.animated .profile-picture,
    .profile-avatar.pulse .profile-picture,
    .profile-avatar.online::after {
        transition: none;
        animation: none;
    }
    
    .profile-avatar:hover .profile-picture {
        transform: scale(1.02);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.profile-avatar:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 50%;
}

.profile-avatar .avatar-overlay:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .profile-avatar .profile-picture {
        filter: grayscale(100%);
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .profile-avatar .avatar-overlay,
    .profile-avatar.online::after,
    .profile-avatar.offline::after,
    .profile-avatar.busy::after,
    .profile-avatar.away::after {
        display: none;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Upload Success Animation */
@keyframes uploadSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 5px rgba(40, 167, 69, 0.3);
    }
    100% {
        transform: scale(1);
    }
}

.profile-avatar.upload-success .profile-picture {
    animation: uploadSuccess 0.5s ease;
}

/* Spin Animation for Loading */
@keyframes avatarSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.profile-avatar.spin:hover .profile-picture {
    animation: avatarSpin 0.5s ease;
}

/* --------------------------------------------
   TOP HEADER - LEFT & RIGHT ALIGNMENT
   -------------------------------------------- */

/* Top Header Container */
.top-header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Container - Flex for Left/Right Alignment */
.top-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Contact Info - Left Side */
.top-header .contact-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-header .contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.top-header .contact-info span:hover {
    color: var(--accent);
}

.top-header .contact-info i {
    font-size: 14px;
    color: var(--accent);
}

/* Social Links - Right Side */
.top-header .social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-header .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-size: 14px;
}

.top-header .social-links a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .top-header {
        padding: 8px 12px;
    }
    
    .top-header .header-container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .top-header .contact-info {
        justify-content: center;
        gap: 12px;
    }
    
    .top-header .contact-info span {
        font-size: 11px;
    }
    
    .top-header .contact-info i {
        font-size: 12px;
    }
    
    .top-header .social-links {
        justify-content: center;
    }
    
    .top-header .social-links a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Mobile Landscape (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .top-header {
        padding: 8px 14px;
    }
    
    .top-header .contact-info span {
        font-size: 12px;
    }
    
    .top-header .social-links a {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

/* Tablet (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .top-header {
        padding: 10px 20px;
    }
    
    .top-header .contact-info {
        gap: 20px;
    }
    
    .top-header .contact-info span {
        font-size: 13px;
    }
    
    .top-header .social-links {
        gap: 15px;
    }
    
    .top-header .social-links a {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

/* Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .top-header {
        padding: 10px 24px;
    }
    
    .top-header .contact-info {
        gap: 24px;
    }
    
    .top-header .social-links a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .top-header {
        padding: 12px 32px;
    }
    
    .top-header .contact-info {
        gap: 30px;
    }
    
    .top-header .contact-info span {
        font-size: 14px;
    }
    
    .top-header .social-links a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .top-header .social-links a:hover {
        transform: translateY(-3px);
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .top-header {
        background: rgba(0, 0, 0, 0.5);
    }
    
    .top-header .contact-info span {
        color: rgba(255, 255, 255, 0.85);
    }
    
    .top-header .social-links a {
        background: rgba(255, 255, 255, 0.08);
    }
}

/* ============================================
   VARIATIONS
   ============================================ */

/* Top Header with Solid Background */
.top-header.solid {
    background: var(--primary-dark);
    backdrop-filter: none;
}

/* Top Header with Gradient */
.top-header.gradient {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

/* Top Header Transparent */
.top-header.transparent {
    background: transparent;
}

/* Top Header with Shadow */
.top-header.shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-header {
    animation: slideDown 0.5s ease;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .top-header {
        animation: none;
    }
    
    .top-header .social-links a:hover {
        transform: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .top-header {
        background: #f0f0f0;
        color: #000;
        padding: 5px;
    }
    
    .top-header .contact-info span {
        color: #000;
    }
    
    .top-header .social-links a {
        background: #e0e0e0;
        color: #000;
    }
}

/* --------------------------------------------
   CONTENT GRID - MAIN LAYOUT
   -------------------------------------------- */

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
}

/* ============================================
   COMMISSION RATES SECTION
   ============================================ */

.commission-rates {
    background: linear-gradient(135deg, var(--white), var(--light));
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-extra-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

.commission-rates:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.commission-rates .content-title {
    font-size: var(--text-lg);
    color: var(--primary-dark);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary);
}

.commission-rates .content-title i {
    color: var(--accent);
    font-size: var(--text-xl);
}

/* Rate Items */
.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    transition: all var(--transition);
}

.rate-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.amount-range {
    font-weight: 600;
    color: var(--dark);
    font-size: var(--text-sm);
}

.commission-rate {
    background: linear-gradient(135deg, var(--success), #219653);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: var(--text-sm);
    font-weight: 700;
    white-space: nowrap;
}

/* Copy Referral Button */
.commission-rates .btn-success {
    width: 100%;
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--success), #219653);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.commission-rates .btn-success:hover {
    background: linear-gradient(135deg, #219653, #1e8449);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Description Header */
.description-header {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 2px dashed var(--gray-extra-light);
    text-align: center;
}

.description-header h3 {
    font-size: var(--text-base);
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.description-header h3 i {
    color: var(--accent);
}

.description-header p {
    font-size: var(--text-sm);
    color: var(--gray);
    line-height: 1.5;
}

/* ============================================
   SIDE CONTENT - QUICK ACTIONS
   ============================================ */

.side-content {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-extra-light);
}

.side-content .content-title {
    font-size: var(--text-lg);
    color: var(--primary-dark);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary);
}

/* Activity Items */
.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    background: var(--light);
    border-radius: var(--border-radius);
    transition: all var(--transition);
    cursor: pointer;
}

.activity-item:hover {
    transform: translateX(5px);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.activity-icon i {
    color: var(--white);
}

.activity-item:first-child .activity-icon {
    background: linear-gradient(135deg, var(--success), #219653);
}

.activity-item:last-child .activity-icon {
    background: linear-gradient(135deg, var(--danger), #c82333);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.activity-desc {
    font-size: var(--text-xs);
    color: var(--gray);
}

/* Side Content Footer */
.side-content .footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 2px dashed var(--gray-extra-light);
}

.side-content .footer h3 {
    font-size: var(--text-base);
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.side-content .footer p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--dark);
    word-break: break-word;
}

.side-content .footer p i {
    width: 24px;
    color: var(--primary);
    font-size: var(--text-base);
}

.side-content .footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.side-content .footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    background: linear-gradient(135deg, var(--white), var(--light));
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-extra-light);
}

.contact-section h2 {
    font-size: var(--text-xl);
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
}

.contact-section > p {
    color: var(--gray);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid var(--gray-extra-light);
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.contact-method i {
    font-size: var(--text-xl);
}

.contact-method span {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--dark);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .rate-item {
        padding: var(--space-md) var(--space-lg);
    }
    
    .contact-methods {
        gap: var(--space-md);
    }
    
    .contact-method {
        padding: var(--space-sm) var(--space-md);
    }
}

/* Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .commission-rates,
    .side-content {
        height: 100%;
    }
    
    .contact-methods {
        gap: var(--space-lg);
    }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    
    .commission-rates,
    .side-content {
        height: 100%;
    }
    
    .rate-item {
        padding: var(--space-lg);
    }
    
    .contact-method {
        padding: var(--space-md) var(--space-xl);
    }
    
    .contact-method span {
        font-size: var(--text-base);
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .commission-rates,
    .side-content,
    .contact-section {
        padding: var(--space-lg);
    }
    
    .rate-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    .commission-rate {
        width: fit-content;
        margin: 0 auto;
    }
    
    .activity-item {
        padding: var(--space-sm);
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-method {
        justify-content: center;
    }
    
    .description-header h3 {
        font-size: var(--text-sm);
        flex-direction: column;
    }
    
    .commission-rates .content-title {
        font-size: var(--text-base);
        text-align: center;
        justify-content: center;
    }
}

/* Ultra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .commission-rates,
    .side-content,
    .contact-section {
        padding: var(--space-md);
    }
    
    .rate-item {
        padding: var(--space-sm);
    }
    
    .amount-range {
        font-size: var(--text-xs);
    }
    
    .commission-rate {
        font-size: var(--text-xs);
        padding: 4px 12px;
    }
    
    .activity-title {
        font-size: var(--text-sm);
    }
    
    .activity-desc {
        font-size: 10px;
    }
    
    .side-content .footer p {
        font-size: var(--text-xs);
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .commission-rates,
    .side-content,
    .contact-section {
        background: var(--white);
        border-color: var(--gray-extra-light);
    }
    
    .rate-item {
        background: var(--white);
    }
    
    .activity-item {
        background: var(--white);
    }
    
    .activity-item:hover {
        background: var(--light);
    }
    
    .contact-method {
        background: var(--white);
        border-color: var(--gray-extra-light);
    }
    
    .contact-method:hover {
        border-color: var(--primary);
    }
    
    .amount-range {
        color: var(--dark);
    }
    
    .side-content .footer p {
        color: var(--dark);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.commission-rates,
.side-content,
.contact-section {
    animation: fadeInUp 0.5s ease forwards;
}

.commission-rates { animation-delay: 0.1s; }
.side-content { animation-delay: 0.2s; }
.contact-section { animation-delay: 0.3s; }

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .commission-rates,
    .side-content,
    .contact-section,
    .rate-item,
    .activity-item,
    .contact-method,
    .commission-rates .btn-success {
        animation: none;
        transition: none;
    }
    
    .rate-item:hover,
    .activity-item:hover,
    .contact-method:hover {
        transform: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .commission-rates,
    .side-content,
    .contact-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .commission-rates .btn-success {
        display: none;
    }
    
    .contact-method {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* --------------------------------------------
   HEADER TITLE - COMPLETE STYLES
   -------------------------------------------- */

/* Base Header Title */
.header-title {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
    transition: all var(--transition);
}

/* Header Title with Icon */
.header-title i {
    margin-right: var(--space-sm);
    color: var(--accent);
    font-size: clamp(1rem, 4vw, 1.3rem);
}

/* Header Title Variations */
.header-title.gradient {
    background: linear-gradient(135deg, var(--white), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-title.uppercase {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-title.lowercase {
    text-transform: lowercase;
}

.header-title.capitalize {
    text-transform: capitalize;
}

/* Permission Items Styling */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.permission-item:hover {
    background: #e3f2fd;
    border-color: #3498db;
}

.permission-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.permission-item span {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.permission-item span i {
    width: 18px;
    color: #3498db;
}

/* Form Sections */
.form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Password Input Group */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    flex: 1;
    padding-right: 40px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #7f8c8d;
    padding: 5px;
}

.password-toggle-btn:hover {
    color: #3498db;
}

/* ============================================
   HEADER TITLE WITH SUBTITLE
   ============================================ */
.header-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-subtitle {
    font-size: clamp(0.7rem, 3vw, 0.85rem);
    font-weight: 400;
    opacity: 0.8;
    color: var(--white);
}

/* ============================================
   HEADER TITLE POSITIONS
   ============================================ */

/* Left Aligned */
.header-title.left {
    text-align: left;
}

/* Center Aligned */
.header-title.center {
    text-align: center;
}

/* Right Aligned */
.header-title.right {
    text-align: right;
}

/* ============================================
   HEADER TITLE SIZES
   ============================================ */

/* Small Size */
.header-title.small {
    font-size: clamp(0.85rem, 3.5vw, 1.1rem);
}

.header-title.small i {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
}

/* Medium Size (Default) */
.header-title.medium {
    font-size: clamp(1rem, 4vw, 1.5rem);
}

/* Large Size */
.header-title.large {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
}

.header-title.large i {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
}

/* Extra Large Size */
.header-title.xlarge {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
}

.header-title.xlarge i {
    font-size: clamp(1.6rem, 6vw, 2rem);
}

/* ============================================
   HEADER TITLE WITH UNDERLINE
   ============================================ */
.header-title.underline {
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-xs);
}

.header-title.underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.header-title.underline:hover::after {
    transform: scaleX(1);
}

/* ============================================
   HEADER TITLE WITH DOT
   ============================================ */
.header-title.with-dot {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-title .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

/* ============================================
   HEADER TITLE WITH BADGE
   ============================================ */
.header-title .badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: clamp(0.6rem, 2.5vw, 0.7rem);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: var(--space-sm);
    vertical-align: middle;
}

/* ============================================
   DASHBOARD HEADER TITLE
   ============================================ */
.dashboard-header .header-title {
    font-size: clamp(1rem, 4vw, 1.3rem);
    font-weight: 600;
}

/* Admin Dashboard Header Title */
.admin-dashboard .header-title {
    color: var(--white);
    font-size: clamp(1rem, 4vw, 1.4rem);
}

/* Super Admin Dashboard Header Title */
.super-admin-dashboard .header-title {
    color: var(--white);
    font-size: clamp(1rem, 4vw, 1.4rem);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .header-title {
        font-size: 1rem;
    }
    
    .header-title.large {
        font-size: 1.2rem;
    }
    
    .header-title.xlarge {
        font-size: 1.4rem;
    }
    
    .header-title .badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .header-subtitle {
        font-size: 0.7rem;
    }
}

/* Tablet (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .header-title {
        font-size: 1.2rem;
    }
    
    .header-title.large {
        font-size: 1.5rem;
    }
    
    .header-title.xlarge {
        font-size: 1.8rem;
    }
}

/* Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-title {
        font-size: 1.3rem;
    }
    
    .header-title.large {
        font-size: 1.6rem;
    }
    
    .header-title.xlarge {
        font-size: 2rem;
    }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .header-title {
        font-size: 1.5rem;
    }
    
    .header-title.large {
        font-size: 1.8rem;
    }
    
    .header-title.xlarge {
        font-size: 2.2rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.header-title.animate {
    animation: fadeInLeft 0.5s ease;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
@media (prefers-color-scheme: dark) {
    .header-title {
        color: var(--white);
    }
    
    .header-title.gradient {
        background: linear-gradient(135deg, var(--white), var(--accent));
        -webkit-background-clip: text;
        background-clip: text;
    }
    
    .header-subtitle {
        color: var(--gray-light);
    }
}

/* ============================================
   HEADER TITLE IN SPECIFIC SECTIONS
   ============================================ */

/* Login Header Title */
.login-box .header-title {
    font-size: 1.2rem;
    color: var(--white);
}

/* Landing Page Header Title */
.landing-container .header-title {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    color: var(--white);
}

/* Modal Header Title */
.modal-header .header-title {
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
}

/* Card Header Title */
.card-header .header-title {
    color: var(--dark);
    font-size: 1.1rem;
    margin: 0;
}

/* Sidebar Header Title */
.sidebar-header .header-title {
    color: var(--accent);
    font-size: 1rem;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .header-title {
        animation: none;
        transition: none;
    }
    
    .header-title .dot {
        animation: none;
    }
    
    .header-title.underline::after {
        transition: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header-title {
        color: #000;
        background: none;
        -webkit-text-fill-color: #000;
    }
    
    .header-title.gradient {
        background: none;
        -webkit-text-fill-color: #000;
        color: #000;
    }
    
    .header-title .badge {
        background: #ccc;
        color: #000;
    }
}


/* ============================================
   SECTION TRANSITIONS & MODAL SYSTEM
   ============================================ */

/* Section Transitions */
.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Loading State */
.section-loading {
    position: relative;
    min-height: 200px;
}

.section-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Section Navigation */
.section-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-nav-btn {
    padding: 10px 20px;
    background: var(--light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.section-nav-btn.active {
    background: var(--primary);
    color: white;
}

.section-nav-btn:hover:not(.active) {
    background: var(--gray-extra-light);
}

/* Section Cards */
.section-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-extra-light);
}

.section-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.section-card-actions {
    display: flex;
    gap: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--gray-light);
}

.empty-state h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.empty-state p {
    margin-bottom: 20px;
}

/* ============================================
   DEPOSIT SECTION STYLES
   ============================================ */

/* Deposit Container */
.deposit-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Form Card */
.form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.form-card h3 {
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-extra-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Success Card */
.success-card {
    text-align: center;
    border: 2px solid var(--success);
    background: linear-gradient(135deg, var(--white), var(--success-light));
}

.success-icon {
    font-size: 64px;
    color: var(--success);
    margin-bottom: 20px;
}

.success-icon i {
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Account Info */
.account-info {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--primary);
}

.account-details h4 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-extra-light);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--gray);
}

.detail-value {
    font-weight: 500;
    color: var(--dark);
    font-family: monospace;
}

/* Instructions Card */
.instructions-card {
    background: var(--warning-light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--warning);
}

.instructions-card h4 {
    color: #856404;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions-content {
    color: #856404;
    line-height: 1.6;
}

.instructions-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.instructions-content li {
    margin-bottom: 8px;
}

/* Transaction Info */
.transaction-info {
    background: var(--light);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-extra-light);
}

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

/* Status Info */
.status-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light);
    border-radius: 10px;
}

.info-item i {
    font-size: 24px;
}

.info-item i.fa-check-circle { color: var(--success); }
.info-item i.fa-clock { color: var(--warning); }
.info-item i.fa-bell { color: var(--info); }
.info-item i.fa-headset { color: var(--primary); }

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.info-item span {
    font-size: 12px;
    color: var(--gray);
}

.status-message {
    background: var(--success-light);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    color: var(--success);
    font-weight: 500;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-actions .btn {
    flex: 1;
    padding: 12px 20px;
}

/* Quick Amounts */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.quick-amount {
    padding: 10px;
    background: var(--light);
    border: 2px solid var(--gray-extra-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.quick-amount:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.quick-amount.active {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .form-card {
        padding: 20px;
    }
    
    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-info {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .quick-amounts {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   BANK ACCOUNTS & DEPOSIT STEPS
   ============================================ */

/* Bank Accounts Grid */
.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bank-account-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-extra-light);
    position: relative;
}

.bank-account-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.bank-account-card.inactive {
    opacity: 0.6;
    background: var(--light);
}

.bank-account-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-extra-light);
}

.bank-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.bank-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-dark);
}

.bank-info p {
    margin: 0;
    font-size: 12px;
    color: var(--gray);
}

.account-number {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    background: var(--light);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 10px 0;
}

.account-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 10px;
}

.badge-mobile { background: #25D366; color: white; }
.badge-bank { background: #3498db; color: white; }
.badge-lipa { background: #f39c12; color: white; }

.account-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-extra-light);
}

/* Deposit Steps */
.deposit-step {
    animation: fadeIn 0.3s ease;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.step-header h3 {
    margin: 0;
    flex: 1;
}

.btn-back {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--light);
}

/* Bank Accounts List */
.bank-accounts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.bank-option-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--gray-extra-light);
    text-align: center;
}

.bank-option-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.bank-option-card.selected {
    border-color: var(--success);
    background: var(--success-light);
}

.bank-option-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.bank-option-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.bank-option-number {
    font-family: monospace;
    font-size: 12px;
    color: var(--gray);
}

/* Selected Account Info */
.selected-account-info {
    background: var(--success-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--success);
}

.selected-account-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Payment Window */
.payment-window {
    background: var(--light);
    border-radius: 20px;
    padding: 25px;
}

.payment-info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-extra-light);
}

.payment-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.payment-details h4 {
    margin: 0 0 5px 0;
    color: var(--primary-dark);
}

.payment-details p {
    margin: 0;
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
}

.payment-amount {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
}

.payment-amount label {
    display: block;
    color: var(--gray);
    margin-bottom: 10px;
}

.payment-amount h2 {
    font-size: 32px;
    color: var(--success);
    margin: 0;
}

.payment-instructions-detail {
    background: var(--warning-light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.payment-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Verification Card */
.verification-card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.transaction-summary {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.transaction-summary h4 {
    margin: 0 0 15px 0;
    color: var(--primary-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-extra-light);
}

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

/* Waiting Info */
.waiting-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
    text-align: left;
}

.info-card i {
    font-size: 32px;
}

.info-card h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.info-card p {
    margin: 0;
    font-size: 13px;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .bank-accounts-grid,
    .bank-accounts-list {
        grid-template-columns: 1fr;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .waiting-info {
        grid-template-columns: 1fr;
    }
    
    .step-header {
        flex-wrap: wrap;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   NAVIGATION ENHANCEMENTS
   ============================================ */

/* New Badge */
.new-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Active Navigation Indicator */
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid var(--accent);
    position: relative;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

/* Bottom Bar Active Indicator */
.bottom-item.active {
    color: var(--primary);
    position: relative;
}

.bottom-item.active::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

/* Section Loading */
.section-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.section-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sidebar Section Title */
.nav-section .section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    padding: 15px 20px 5px;
    margin-top: 5px;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 20px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .content-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .content-actions .logout-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .nav-section .section-title {
        font-size: 10px;
        padding: 10px 15px 3px;
    }
}

@media (max-width: 480px) {
    .content-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .content-actions .logout-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ADMIN BANK ACCOUNTS STYLES
   ============================================ */

/* Bank Stats Grid */
.bank-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bank-stats-grid .stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.bank-stats-grid .stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.mobile { background: #25D36620; color: #25D366; }
.stat-icon.bank { background: #3498db20; color: #3498db; }
.stat-icon.lipa { background: #f39c1220; color: #f39c12; }
.stat-icon.active { background: #27ae6020; color: #27ae60; }

.stat-info h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.stat-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--gray);
}

/* Account Type Selector */
.account-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.type-option {
    flex: 1;
    background: var(--light);
    border: 2px solid var(--gray-extra-light);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.type-option i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
    color: var(--gray);
}

.type-option span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
}

.type-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.type-option.active {
    border-color: var(--success);
    background: var(--success-light);
}

.type-option.active i,
.type-option.active span {
    color: var(--success);
}

/* Bank Accounts Grid */
.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bank-account-card {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-extra-light);
    overflow: hidden;
}

.bank-account-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.bank-account-card.inactive {
    opacity: 0.7;
    background: var(--light);
}

.bank-account-card.inactive .card-header {
    background: #e0e0e0;
}

.card-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bank-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.bank-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-header-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.card-header-info .account-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.account-type-badge.mobile { background: #25D366; color: white; }
.account-type-badge.bank { background: #3498db; color: white; }
.account-type-badge.lipa { background: #f39c12; color: white; }

.provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 5px;
}

.provider-badge.vodacom { background: #4CAF50; color: white; }
.provider-badge.tigo { background: #E91E63; color: white; }
.provider-badge.airtel { background: #FF9800; color: white; }
.provider-badge.halotel { background: #2196F3; color: white; }
.provider-badge.crdb { background: #1E88E5; color: white; }
.provider-badge.nmb { background: #E53935; color: white; }

.card-body {
    padding: 20px;
}

.account-number {
    background: var(--light);
    padding: 10px 15px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 5px;
}

.account-details {
    margin: 15px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-extra-light);
    font-size: 13px;
}

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

.detail-label {
    color: var(--gray);
    font-weight: 500;
}

.detail-value {
    color: var(--dark);
    font-weight: 600;
}

.instructions-preview {
    background: var(--warning-light);
    padding: 12px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 12px;
    max-height: 100px;
    overflow-y: auto;
    color: #856404;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-extra-light);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.card-footer .btn {
    padding: 8px 15px;
    font-size: 12px;
}

/* Logo Upload Area */
.logo-upload-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logo-preview-container {
    text-align: center;
}

#logo-preview {
    max-width: 80px;
    max-height: 80px;
    border-radius: 10px;
    border: 1px solid var(--gray-extra-light);
    padding: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .bank-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bank-accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .account-type-selector {
        flex-direction: column;
    }
    
    .card-footer {
        flex-direction: column;
    }
    
    .card-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bank-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
}

/* Bank Account Form Styles */
.type-specific-fields {
    animation: fadeIn 0.3s ease;
}

.account-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.type-option {
    flex: 1;
    min-width: 100px;
    background: var(--light);
    border: 2px solid var(--gray-extra-light);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.type-option i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    color: var(--gray);
}

.type-option span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
}

.type-option:hover {
    border-color: var(--primary);
    background: rgba(37, 111, 138, 0.05);
}

.type-option.active {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.1);
}

.type-option.active i,
.type-option.active span {
    color: var(--success);
}

.logo-preview-container {
    margin-top: 10px;
    text-align: center;
}

#logo-preview {
    max-width: 60px;
    max-height: 60px;
    border-radius: 8px;
    border: 1px solid var(--gray-extra-light);
    padding: 5px;
}

.provider-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-extra-light);
    border-radius: 8px;
    font-size: 14px;
}

/* ============================================
   COMPLETE DEPOSIT SECTION STYLES
   ============================================ */

/* Deposit Container */
.deposit-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Deposit Steps */
.deposit-step {
    animation: fadeIn 0.3s ease;
}

.step-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.step-header .step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 15px;
}

.step-header h3 {
    display: inline-block;
    margin: 0;
    font-size: 20px;
    color: var(--dark);
}

.step-header .step-desc {
    margin: 10px 0 0 55px;
    font-size: 13px;
    color: var(--gray);
}

.btn-back {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--light);
}

/* Bank Accounts List */
.bank-accounts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.bank-option-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--gray-extra-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

.bank-option-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.bank-option-card.selected {
    border-color: var(--success);
    background: var(--success-light);
}

.bank-option-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.bank-option-info {
    flex: 1;
}

.bank-option-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.bank-option-number {
    font-family: monospace;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.bank-option-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.bank-option-badge.mobile { background: #25D36620; color: #25D366; }
.bank-option-badge.bank { background: #3498db20; color: #3498db; }
.bank-option-badge.lipa { background: #f39c1220; color: #f39c12; }

.bank-option-select i {
    color: var(--gray);
    font-size: 14px;
}

/* Selected Account Info */
.selected-account-info {
    background: var(--success-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--success);
}

.selected-account-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-account-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--success);
}

.selected-account-details h4 {
    margin: 0 0 5px;
    color: var(--dark);
}

.selected-account-details .account-number {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px;
}

.selected-account-details .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

/* Payment Instructions */
.payment-instructions {
    background: var(--warning-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--warning);
}

.instructions-card .instructions-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.instructions-card .instructions-header i {
    font-size: 20px;
    color: #856404;
}

.instructions-card .instructions-header h4 {
    margin: 0;
    color: #856404;
}

.instructions-body {
    color: #856404;
    line-height: 1.6;
    font-size: 14px;
}

.instructions-body ol {
    margin: 10px 0;
    padding-left: 20px;
}

.instructions-body li {
    margin-bottom: 8px;
}

.warning-note {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Deposit Form Card */
.deposit-form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
}

/* Quick Amounts */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.quick-amount {
    padding: 10px;
    background: var(--light);
    border: 2px solid var(--gray-extra-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 12px;
}

.quick-amount:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.quick-amount.active {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* Payment Window Card */
.payment-window-card {
    background: var(--light);
    border-radius: 20px;
    padding: 25px;
}

.payment-info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-extra-light);
}

.payment-logo-container {
    width: 70px;
    height: 70px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.payment-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-details h4 {
    margin: 0 0 5px;
    color: var(--dark);
}

.payment-details p {
    margin: 0;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.payment-amount-section {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
}

.payment-amount-section label {
    display: block;
    color: var(--gray);
    margin-bottom: 10px;
    font-size: 14px;
}

.payment-amount-section h2 {
    font-size: 36px;
    color: var(--success);
    margin: 0;
}

.payment-summary {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.payment-summary h4 {
    margin: 0 0 15px;
    color: var(--dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-extra-light);
}

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

.payment-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.payment-actions .btn {
    flex: 1;
}

/* Verification Card */
.verification-card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.transaction-summary {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.transaction-summary h4 {
    margin: 0 0 15px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--white);
    border-radius: 8px;
}

.summary-label {
    font-size: 12px;
    color: var(--gray);
}

.summary-value {
    font-weight: 600;
    color: var(--dark);
}

/* Success Card */
.success-card {
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 2px solid var(--success);
}

.success-icon {
    font-size: 80px;
    color: var(--success);
    margin-bottom: 20px;
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.success-card h2 {
    color: var(--success);
    margin-bottom: 10px;
}

.success-card > p {
    color: var(--gray);
    margin-bottom: 30px;
}

/* Waiting Info Grid */
.waiting-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.waiting-info-grid .info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
    text-align: left;
}

.waiting-info-grid .info-card i {
    font-size: 32px;
}

.waiting-info-grid .info-card h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.waiting-info-grid .info-card p {
    margin: 0;
    font-size: 13px;
    color: var(--gray);
}

/* Transaction Details Summary */
.transaction-details-summary {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.transaction-details-summary h4 {
    margin: 0 0 15px;
    color: var(--dark);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-extra-light);
}

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

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-extra-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
}

.empty-state i {
    font-size: 60px;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.empty-state h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .bank-accounts-list {
        grid-template-columns: 1fr;
    }
    
    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-header {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .waiting-info-grid {
        grid-template-columns: 1fr;
    }
    
    .step-header {
        padding-bottom: 40px;
    }
    
    .btn-back {
        position: static;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quick-amounts {
        grid-template-columns: 1fr;
    }
    
    .bank-option-card {
        flex-direction: column;
        text-align: center;
    }
    
    .selected-account-card {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-amount-section h2 {
        font-size: 28px;
    }
}

/* ============================================
   ADMIN BANK ACCOUNTS STYLES
   ============================================ */

/* Bank Stats Grid */
.bank-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.bank-stats-grid .stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.mobile { background: #25D36620; color: #25D366; }
.stat-icon.bank { background: #3498db20; color: #3498db; }
.stat-icon.lipa { background: #f39c1220; color: #f39c12; }
.stat-icon.active { background: #27ae6020; color: #27ae60; }

.stat-info h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.stat-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--gray);
}

/* Account Type Selector */
.account-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.type-option {
    flex: 1;
    background: var(--light);
    border: 2px solid var(--gray-extra-light);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.type-option i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
    color: var(--gray);
}

.type-option span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
}

.type-option:hover {
    border-color: var(--primary);
    background: rgba(37, 111, 138, 0.05);
}

.type-option.active {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.1);
}

.type-option.active i,
.type-option.active span {
    color: var(--success);
}

/* Provider Preview */
.provider-preview {
    margin-top: 10px;
    padding: 10px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.provider-preview i {
    font-size: 20px;
}

/* Bank Accounts Grid */
.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bank-account-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--gray-extra-light);
}

.bank-account-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.bank-account-card.inactive {
    opacity: 0.7;
    background: var(--light);
}

.bank-account-card.inactive .card-header {
    background: #95a5a6;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bank-logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.bank-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-header-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.account-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.account-type-badge.mobile { background: #25D366; color: white; }
.account-type-badge.bank { background: #3498db; color: white; }
.account-type-badge.lipa { background: #f39c12; color: white; }

.provider-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    margin-left: 8px;
}

.provider-badge.vodacom { background: #4CAF50; color: white; }
.provider-badge.tigo { background: #E91E63; color: white; }
.provider-badge.airtel { background: #FF9800; color: white; }
.provider-badge.halotel { background: #2196F3; color: white; }

.card-body {
    padding: 20px;
}

.account-number {
    background: var(--light);
    padding: 10px 15px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 5px;
}

.account-details {
    margin: 15px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-extra-light);
    font-size: 13px;
}

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

.detail-label {
    color: var(--gray);
    font-weight: 500;
}

.detail-value {
    color: var(--dark);
    font-weight: 600;
}

.instructions-preview {
    background: var(--warning-light);
    padding: 12px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 12px;
    max-height: 100px;
    overflow-y: auto;
    color: #856404;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-extra-light);
    display: flex;
    gap: 10px;
}

.card-footer .btn {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

/* Delete Confirmation */
.delete-confirmation {
    text-align: center;
    padding: 20px;
}

.delete-confirmation i {
    font-size: 60px;
    color: var(--danger);
    margin-bottom: 15px;
}

.delete-warning {
    color: var(--danger);
    font-size: 12px;
    margin-top: 10px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px;
    background: var(--white);
    border-radius: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-extra-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px;
    background: var(--white);
    border-radius: 16px;
}

.empty-state i {
    font-size: 60px;
    color: var(--gray-light);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .bank-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bank-accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .account-type-selector {
        flex-direction: column;
    }
    
    .card-footer {
        flex-direction: column;
    }
    
    .card-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bank-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Bank Account Card Styles */
.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bank-account-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid var(--gray-extra-light);
}

.bank-account-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.bank-account-card.inactive {
    opacity: 0.7;
    background: var(--light);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bank-logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.bank-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-header-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.account-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.account-type-badge.mobile { background: #25D366; color: white; }
.account-type-badge.bank { background: #3498db; color: white; }
.account-type-badge.lipa { background: #f39c12; color: white; }

.card-body {
    padding: 20px;
}

.account-number {
    background: var(--light);
    padding: 10px 15px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 5px;
}

.instructions-preview {
    background: var(--warning-light);
    padding: 12px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 12px;
    max-height: 100px;
    overflow-y: auto;
    color: #856404;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-extra-light);
    display: flex;
    gap: 10px;
}

.card-footer .btn {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

.text-success { color: #27ae60; }
.text-danger { color: #e74c3c; }

.account-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.type-option {
    flex: 1;
    background: var(--light);
    border: 2px solid var(--gray-extra-light);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.type-option i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
    color: var(--gray);
}

.type-option span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
}

.type-option:hover {
    border-color: var(--primary);
}

.type-option.active {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.1);
}

.type-option.active i,
.type-option.active span {
    color: var(--success);
}

.type-specific-fields {
    animation: fadeIn 0.3s ease;
}

.loading-state {
    text-align: center;
    padding: 60px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-extra-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.empty-state {
    text-align: center;
    padding: 60px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* --------------------------------------------
   3. FORM CONTROLS INSIDE MODALS
   -------------------------------------------- */
.form-control, .form-group {
    margin-bottom: 1.25rem;
}
.form-control label, .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}
.form-control input,
.form-group input,
.form-control select,
.form-group select,
.form-control textarea,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color var(--modal-transition);
}
.form-control input:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(37,111,138,0.1);
}
.form-hint, small {
    font-size: 0.7rem;
    color: var(--gray);
    display: block;
    margin-top: 0.25rem;
}

/* Quick Amounts Grid (Mobile First) */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.quick-amount {
    background: var(--gray-light);
    border: 2px solid var(--input-border);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}
.quick-amount:active {
    background: var(--input-focus);
    border-color: var(--input-focus);
    color: white;
    transform: scale(0.98);
}
@media (min-width: 480px) {
    .quick-amounts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) {
    .quick-amounts { grid-template-columns: repeat(4, 1fr); }
}

/* Account Info & Instructions */
.account-info, .instructions {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid var(--input-focus);
}
.account-details h4, .instructions h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #cce5ff;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.detail-item:last-child { border-bottom: none; }
.detail-label { font-weight: 600; color: #2c3e50; }
.detail-value { font-family: monospace; font-weight: 500; }

.instructions-content {
    color: #856404;
    font-size: 0.85rem;
    line-height: 1.5;
}
.instructions-content ol { padding-left: 1.2rem; margin: 0.5rem 0; }
.instructions-content li { margin-bottom: 0.5rem; }
.note { background: rgba(255,255,255,0.7); padding: 0.5rem; border-radius: 8px; margin-top: 0.75rem; }

/* Balance Section */
.balance-section {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
}
.balance-amount { font-size: 1.6rem; font-weight: bold; color: #27ae60; }
.pending-amount { font-size: 0.7rem; opacity: 0.8; margin-top: 0.25rem; }

/* Withdrawal Calculation */
.withdrawal-calc {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}
.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.85rem;
}
.calc-row:last-child { border-bottom: none; }
.calc-row strong { color: var(--success); }

/* Status Sections */
.status-section, .transaction-section {
    background: #d4edda;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}
.status-icon { font-size: 3rem; color: var(--success); margin-bottom: 0.5rem; }
.status-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
.status-info .info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.75rem;
    border-radius: 10px;
}
.status-info .info-item i { font-size: 1.5rem; }
.status-message { margin-top: 1rem; font-weight: 500; }
@media (min-width: 640px) {
    .status-info { grid-template-columns: repeat(2,1fr); }
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.form-actions .btn { width: 100%; justify-content: center; }
@media (min-width: 480px) {
    .form-actions { flex-direction: row; }
    .form-actions .btn { width: auto; flex: 1; }
}

/* --------------------------------------------
   4. DEPOSIT MODAL SPECIFIC
   -------------------------------------------- */
#deposit-modal .modal-content { max-width: 550px; }
#deposit-modal .instructions { background: #fff3cd; border-left-color: var(--warning); }
#deposit-modal .instructions h3 { color: #856404; }

/* --------------------------------------------
   5. ADMIN CHAT MODAL (Split Layout)
   -------------------------------------------- */
.admin-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 60vh;
}
.admin-chat-sidebar {
    border-bottom: 1px solid var(--input-border);
    max-height: 40vh;
    overflow-y: auto;
}
.chat-search { padding: 0.75rem; border-bottom: 1px solid var(--input-border); }
.chat-search input { width: 100%; padding: 0.6rem; border-radius: 20px; border: 1px solid var(--input-border); }
.chat-users-list { padding: 0.5rem; }
.chat-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-user-item:hover { background: var(--gray-light); }
.user-chat-info { flex: 1; }
.user-name { font-weight: 600; }
.last-message { font-size: 0.7rem; color: var(--gray); }
.unread-count {
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}
.admin-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.admin-chat-header { padding: 0.75rem; background: var(--gray-light); border-bottom: 1px solid var(--input-border); }
.admin-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 50vh;
}
.message {
    max-width: 80%;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    word-wrap: break-word;
}
.support-message { background: var(--gray-light); align-self: flex-start; border-bottom-left-radius: 4px; }
.user-message { background: var(--input-focus); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.message-time { font-size: 0.6rem; margin-top: 0.25rem; opacity: 0.7; }
.quick-responses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--input-border);
}
.quick-response {
    background: var(--gray-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
}
.chat-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--input-border);
}
.chat-footer textarea { flex: 1; resize: none; border-radius: 20px; padding: 0.6rem; }
.chat-send-btn {
    background: var(--input-focus);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
}
@media (min-width: 768px) {
    .admin-chat-container { flex-direction: row; height: 70vh; }
    .admin-chat-sidebar { width: 280px; border-bottom: none; border-right: 1px solid var(--input-border); max-height: none; }
    .admin-chat-main { flex: 1; }
}

/* User Chat Modal (simplified) */
#user-chat-modal .modal-content { max-width: 550px; }
#user-chat-modal .chat-header {
    background: var(--modal-header-bg);
    color: white;
    padding: 1rem;
    border-radius: var(--modal-border-radius) var(--modal-border-radius) 0 0;
}
.chat-title { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.chat-status { display: flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; }
.status-indicator.online { width: 10px; height: 10px; background: var(--success); border-radius: 50%; display: inline-block; }
.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-light);
}
.quick-option {
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    border: 1px solid var(--input-border);
}
.chat-footer.minimalist .input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 30px;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--input-border);
}
.chat-footer.minimalist .chat-input { flex: 1; border: none; resize: none; padding: 0.6rem; font-family: inherit; }
.chat-footer.minimalist .input-actions { display: flex; gap: 0.3rem; }
.chat-footer.minimalist .icon-btn, .chat-send {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray);
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.chat-send { background: var(--input-focus); color: white; }

/* --------------------------------------------
   6. TERMS & CONDITIONS MODAL
   -------------------------------------------- */
.terms-modal-container {
    max-height: 80vh;
    overflow-y: auto;
}
.terms-search-nav { margin-bottom: 1rem; }
.quick-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.quick-nav-btn {
    padding: 0.4rem 1rem;
    background: var(--gray-light);
    border: none;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
}
.terms-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    border-bottom: 2px solid var(--input-border);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}
.terms-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-radius: 30px;
}
.terms-tab.active { background: var(--input-focus); color: white; }
.terms-tab-content { display: none; }
.terms-tab-content.active { display: block; }
.terms-section {
    border: 1px solid var(--input-border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--gray-light);
}
.section-content { padding: 1rem; }
.terms-card { display: flex; gap: 1rem; background: var(--gray-light); padding: 1rem; border-radius: 12px; margin: 1rem 0; }
.warning-box { display: flex; gap: 1rem; background: #fff3cd; padding: 1rem; border-left: 4px solid var(--warning); }
.terms-acceptance-footer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 12px;
    text-align: center;
}
.acceptance-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 768px) {
    .acceptance-actions { flex-direction: row; justify-content: center; }
    .terms-sidebar { width: 250px; float: left; }
    .terms-main-content { margin-left: 270px; }
}
@media (max-width: 767px) {
    .terms-sidebar { display: none; }
}

/* --------------------------------------------
   7. ADD ADMIN, CREATE TASK, ADD USER MODALS
   -------------------------------------------- */
#add-admin-modal .modal-content,
#create-task-modal .modal-content,
#add-user-modal .modal-content {
    max-width: 550px;
}
.permissions-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.permissions-list label { display: flex; align-items: center; gap: 0.5rem; font-weight: normal; }
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
    .permissions-list { grid-template-columns: repeat(2,1fr); }
}

/* Delete User Modal */
.delete-confirmation { text-align: center; padding: 1rem; }
.delete-confirmation i { font-size: 3rem; color: var(--danger); margin-bottom: 1rem; }
.delete-options { text-align: left; margin: 1rem 0; }
.option-checkbox { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-direction: column; }
@media (min-width: 480px) {
    .modal-actions { flex-direction: row; justify-content: flex-end; }
}

/* --------------------------------------------
   8. ENHANCED ANNOUNCEMENT MODAL
   -------------------------------------------- */
.media-source-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.media-tab {
    flex: 1;
    padding: 0.5rem;
    background: var(--gray-light);
    border: none;
    border-radius: 30px;
    cursor: pointer;
}
.media-tab.active { background: var(--input-focus); color: white; }
.media-section { display: none; }
.media-section.active { display: block; }
.upload-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.upload-option {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    flex: 1;
}
.preview-container img, .preview-container video { max-width: 100%; border-radius: 8px; }
.announcements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}
.announcement-card {
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 1rem;
}
@media (min-width: 640px) {
    .announcements-grid { grid-template-columns: repeat(2,1fr); }
}

/* --------------------------------------------
   9. QUICK ACTIONS MENU (Floating)
   -------------------------------------------- */
.quick-actions-menu {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 100000;
    min-width: 180px;
    overflow: hidden;
}
.quick-action-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}
.quick-action-item:hover { background: var(--gray-light); }
.quick-action-item.delete { color: var(--danger); }

/* --------------------------------------------
   10. RESPONSIVE ADJUSTMENTS (Mobile First)
   -------------------------------------------- */
@media (max-width: 480px) {
    .modal-content { width: calc(100% - 16px); }
    .modal-header { padding: 0.75rem 1rem; }
    .modal-header h2, .modal-header h3 { font-size: 1rem; }
    .close-modal { width: 32px; height: 32px; font-size: 1.1rem; }
    .balance-amount { font-size: 1.3rem; }
    .quick-amounts { gap: 0.5rem; }
    .quick-amount { padding: 0.6rem 0.3rem; font-size: 0.75rem; }
}

@media (min-width: 768px) {
    .modal-content { min-width: 500px; }
    .modal-footer { flex-direction: row; justify-content: flex-end; }
    .modal-footer .btn { width: auto; }
}

/* --------------------------------------------
   11. DARK MODE SUPPORT
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --modal-bg: #1e1e2e;
        --input-border: #3d3d4d;
        --gray-light: #2d2d3d;
        --dark: #e0e0e0;
    }
    .modal-content { background: var(--modal-bg); color: var(--dark); }
    .modal-footer { border-top-color: #3d3d4d; background: var(--modal-bg); }
    .account-info, .instructions { background: #1a3a4a; }
    .detail-item { border-bottom-color: #2a5a6a; }
    .quick-amount { background: #2d2d3d; color: var(--dark); }
    .withdrawal-calc { background: #2d2d3d; }
    .calc-row { border-bottom-color: #3d3d4d; }
    .status-info .info-item { background: #2d2d3d; }
}

/* --------------------------------------------
   12. REDUCED MOTION
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .modal, .modal-content, .close-modal, .quick-amount {
        transition: none;
        animation: none;
    }
    .modal-content { animation: none; }
}

/* ============================================
   SIMPLIFIED TERMS & CONDITIONS MODAL
   Mobile-First, Clean, Readable, No Complications
   ============================================ */

/* --------------------------------------------
   1. TERMS MODAL CONTAINER
   -------------------------------------------- */
#terms-modal .modal-content {
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.terms-modal-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* --------------------------------------------
   2. TERMS HEADER (Simple)
   -------------------------------------------- */
.terms-modal-header {
    background: linear-gradient(135deg, #113745, #256f8a);
    color: white;
    padding: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.terms-modal-header h2 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.terms-modal-header p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0.5rem 0;
}

.last-updated {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* --------------------------------------------
   3. SEARCH & QUICK NAV (Optional, simplified)
   -------------------------------------------- */
.terms-search-nav {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    margin-bottom: 0.75rem;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 0.7rem 0.7rem 2.2rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.9rem;
    background: white;
}

.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.quick-nav-btn {
    background: #e9ecef;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.quick-nav-btn:hover {
    background: #256f8a;
    color: white;
}

/* --------------------------------------------
   4. TABS NAVIGATION (Simple Tabs)
   -------------------------------------------- */
.terms-tabs-nav {
    background: white;
    border-bottom: 2px solid #e0e0e0;
    padding: 0 0.5rem;
    flex-shrink: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.tabs-container {
    display: inline-flex;
    gap: 0.25rem;
}

.terms-tab {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.terms-tab i {
    font-size: 0.9rem;
}

.terms-tab:hover {
    color: #256f8a;
}

.terms-tab.active {
    color: #256f8a;
    border-bottom-color: #256f8a;
}

/* --------------------------------------------
   5. MAIN CONTENT AREA (Scrollable)
   -------------------------------------------- */
.terms-content-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: white;
}

/* Sidebar - Simplified for mobile (hidden on small screens) */
.terms-sidebar {
    width: 260px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    flex-shrink: 0;
    display: none;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    padding: 0.5rem;
}

.toc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.toc-item:hover {
    background: #e9ecef;
}

.toc-item i {
    font-size: 0.7rem;
    color: #6c757d;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.acceptance-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Main Content - Scrollable */
.terms-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Tab Content */
.terms-tab-content {
    display: none;
    animation: fadeIn 0.2s ease;
}

.terms-tab-content.active {
    display: block;
}

/* --------------------------------------------
   6. TERMS SECTIONS (Clean Cards)
   -------------------------------------------- */
.terms-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.section-number {
    color: #256f8a;
    margin-right: 0.5rem;
}

.section-copy {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.section-copy:hover {
    background: #e9ecef;
    color: #256f8a;
}

.section-content {
    padding: 1rem;
}

.section-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Simple Cards inside Terms */
.terms-card {
    display: flex;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 3px solid #256f8a;
}

.card-icon {
    font-size: 1.5rem;
    color: #256f8a;
}

.card-content h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
}

.card-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
}

/* Warning Box */
.warning-box {
    display: flex;
    gap: 1rem;
    background: #fff3cd;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 3px solid #ffc107;
}

.warning-icon {
    font-size: 1.3rem;
    color: #856404;
}

.warning-content h5 {
    margin: 0 0 0.3rem 0;
    font-size: 0.9rem;
    color: #856404;
}

.warning-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #856404;
}

/* Simple Lists */
.security-list, .violation-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.security-item, .violation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.security-item i, .violation-item i {
    width: 1.5rem;
    color: #256f8a;
}

/* Requirements Grid (Simple) */
.requirements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.requirement-icon {
    font-size: 1.3rem;
    color: #256f8a;
}

.requirement-content h5 {
    margin: 0 0 0.2rem 0;
    font-size: 0.9rem;
}

.requirement-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Tables (Simple, Scrollable) */
.investment-table, .profit-table {
    overflow-x: auto;
    margin: 1rem 0;
}

.investment-table table, .profit-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.investment-table th, .profit-table th {
    background: #f8f9fa;
    padding: 0.6rem;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.investment-table td, .profit-table td {
    padding: 0.6rem;
    border: 1px solid #e0e0e0;
}

.risk-high { color: #dc3545; font-weight: bold; }
.risk-medium { color: #ffc107; font-weight: bold; }
.profit-rate { color: #28a745; font-weight: bold; }

/* Financial Grid */
.financial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.financial-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
}

.financial-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.financial-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.financial-card li {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.schedule-day {
    background: #f8f9fa;
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
}

.schedule-day .day {
    font-weight: bold;
    font-size: 0.9rem;
}

.schedule-day .time {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Fees Table */
.fees-table {
    margin: 1rem 0;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fee-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.fee-amount {
    font-weight: bold;
    color: #dc3545;
}

/* Privacy Points */
.privacy-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}

.privacy-point {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.privacy-point i {
    font-size: 1.3rem;
    color: #256f8a;
}

.privacy-point h6 {
    margin: 0 0 0.2rem 0;
    font-size: 0.9rem;
}

.privacy-point p {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
}

/* --------------------------------------------
   7. ACCEPTANCE FOOTER (Simple)
   -------------------------------------------- */
.terms-acceptance-footer {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 1rem;
    flex-shrink: 0;
}

.acceptance-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #256f8a;
}

.checkbox-container label {
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.checkbox-container label i {
    color: #28a745;
}

.acceptance-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.acceptance-actions .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.acceptance-note {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* --------------------------------------------
   8. RESPONSIVE BREAKPOINTS
   -------------------------------------------- */
@media (min-width: 768px) {
    .terms-sidebar {
        display: block;
    }
    
    .terms-modal-header h2 {
        font-size: 1.6rem;
    }
    
    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .financial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .privacy-points {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .requirements-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .privacy-points {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .terms-card, .warning-box {
        flex-direction: column;
        text-align: center;
    }
    
    .card-icon, .warning-icon {
        text-align: center;
    }
    
    .fee-item {
        flex-direction: column;
        text-align: center;
    }
    
    .acceptance-actions {
        flex-direction: column;
    }
    
    .acceptance-actions .btn {
        width: 100%;
    }
}

/* --------------------------------------------
   9. DARK MODE SUPPORT
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
    .terms-search-nav {
        background: #2d2d3d;
        border-bottom-color: #3d3d4d;
    }
    
    .search-box input {
        background: #1e1e2e;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
    
    .terms-tabs-nav {
        background: #1e1e2e;
        border-bottom-color: #3d3d4d;
    }
    
    .terms-tab {
        color: #adb5bd;
    }
    
    .terms-tab.active {
        color: #3ba0c9;
    }
    
    .terms-content-container {
        background: #1e1e2e;
    }
    
    .terms-sidebar {
        background: #2d2d3d;
        border-right-color: #3d3d4d;
    }
    
    .terms-section {
        background: #2d2d3d;
        border-color: #3d3d4d;
    }
    
    .section-header {
        background: #1e1e2e;
        border-bottom-color: #3d3d4d;
    }
    
    .section-header h3 {
        color: #e0e0e0;
    }
    
    .section-content {
        color: #e0e0e0;
    }
    
    .terms-card, .requirement-item, .financial-card, .privacy-point {
        background: #1e1e2e;
    }
    
    .card-content p, .requirement-content p, .privacy-point p {
        color: #adb5bd;
    }
    
    .security-item, .violation-item, .fee-item {
        border-bottom-color: #3d3d4d;
    }
    
    .terms-acceptance-footer {
        background: #2d2d3d;
        border-top-color: #3d3d4d;
    }
    
    .checkbox-container label {
        color: #e0e0e0;
    }
    
    .investment-table th, .profit-table th {
        background: #1e1e2e;
        color: #e0e0e0;
    }
    
    .investment-table td, .profit-table td {
        border-color: #3d3d4d;
    }
}

/* --------------------------------------------
   10. ANIMATIONS
   -------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .terms-tab-content, .terms-section, .quick-nav-btn, .terms-tab {
        animation: none;
        transition: none;
    }
}

/* --------------------------------------------
   11. PRINT STYLES
   -------------------------------------------- */
@media print {
    .terms-search-nav, .terms-tabs-nav, .terms-sidebar, .terms-acceptance-footer {
        display: none;
    }
    
    .terms-content-container {
        display: block;
    }
    
    .terms-main-content {
        padding: 0;
    }
    
    .terms-section {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
    
    .section-copy {
        display: none;
    }
}

    /* Additional styles for the modal (mobile first) */
    #terms-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(5px);
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    #terms-modal .modal-content {
        background: white;
        border-radius: 24px;
        width: 100%;
        max-width: 900px;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        position: relative;
        animation: modalSlideUp 0.3s ease;
    }
    @keyframes modalSlideUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .close-modal {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255,255,255,0.2);
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 1.3rem;
        cursor: pointer;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .close-modal:hover {
        background: #dc3545;
        transform: rotate(90deg);
    }
    @media (max-width: 640px) {
        #terms-modal { padding: 0.5rem; }
        .terms-modal-header h2 { font-size: 1.2rem; }
        .section-header { flex-direction: column; text-align: center; }
    }
    
    /* ============================================
   CONTACT SUPPORT MODAL - MOBILE FIRST
   Clean, Readable, Fully Responsive
   ============================================ */

/* --------------------------------------------
   1. MODAL OVERLAY & CONTAINER
   -------------------------------------------- */
#contact-support-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#contact-support-modal.show,
#contact-support-modal.active {
    display: flex !important;
}

#contact-support-modal .modal-content {
    background: var(--white, #ffffff);
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------
   2. MODAL HEADER
   -------------------------------------------- */
#contact-support-modal .modal-header {
    background: linear-gradient(135deg, #113745, #256f8a);
    color: white;
    padding: 1.25rem;
    border-radius: 24px 24px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

#contact-support-modal .modal-header h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#contact-support-modal .modal-header h2 i {
    color: #ff9f43;
}

#contact-support-modal .modal-header p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Close Button */
#contact-support-modal .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

#contact-support-modal .close-modal:hover {
    background: #dc3545;
    transform: rotate(90deg);
}

/* --------------------------------------------
   3. MODAL BODY
   -------------------------------------------- */
#contact-support-modal .modal-body {
    padding: 1.25rem;
}

/* --------------------------------------------
   4. SUPPORT OPTIONS GRID (Mobile First)
   -------------------------------------------- */
.support-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.support-option {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.support-option:hover {
    transform: translateY(-3px);
    border-color: #256f8a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.support-option:active {
    transform: translateY(0);
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.support-option:nth-child(1) .support-icon { color: #25D366; }
.support-option:nth-child(2) .support-icon { color: #ea4335; }
.support-option:nth-child(3) .support-icon { color: #256f8a; }
.support-option:nth-child(4) .support-icon { color: #3498db; }

.support-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.support-desc {
    font-size: 0.8rem;
    color: #6c757d;
    word-break: break-word;
}

/* Status Indicator for Live Chat */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.3rem;
}

.status-indicator.online {
    background: #28a745;
    animation: pulseOnline 1.5s infinite;
}

@keyframes pulseOnline {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* --------------------------------------------
   5. CONTACT INFO SECTION
   -------------------------------------------- */
.contact-info-section {
    background: #e8f4fc;
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
}

.contact-info-section h4 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(37, 111, 138, 0.2);
    font-size: 0.85rem;
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-detail i {
    width: 1.5rem;
    color: #256f8a;
}

.contact-detail a {
    color: #2c3e50;
    text-decoration: none;
}

.contact-detail a:hover {
    color: #256f8a;
    text-decoration: underline;
}

/* --------------------------------------------
   6. FOOTER SECTION
   -------------------------------------------- */
#contact-support-modal .modal-footer {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #e9ecef;
    background: white;
    border-radius: 0 0 24px 24px;
}

#contact-support-modal .modal-footer p {
    margin: 0.25rem 0;
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
}

#contact-support-modal .modal-footer a {
    color: #256f8a;
    text-decoration: none;
}

#contact-support-modal .modal-footer a:hover {
    text-decoration: underline;
}

/* --------------------------------------------
   7. RESPONSIVE BREAKPOINTS
   -------------------------------------------- */
@media (min-width: 480px) {
    .support-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 640px) {
    #contact-support-modal .modal-content {
        max-width: 600px;
    }
    .support-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .support-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small screens */
@media (max-width: 480px) {
    #contact-support-modal .modal-header h2 {
        font-size: 1.1rem;
    }
    .support-option {
        padding: 1rem;
    }
    .support-icon {
        font-size: 2rem;
    }
    .support-title {
        font-size: 1rem;
    }
    .support-desc {
        font-size: 0.7rem;
    }
}

/* --------------------------------------------
   8. ANIMATIONS
   -------------------------------------------- */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --------------------------------------------
   9. DARK MODE SUPPORT
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
    #contact-support-modal .modal-content {
        background: #1e1e2e;
    }
    .support-option {
        background: #2d2d3d;
    }
    .support-title {
        color: #e0e0e0;
    }
    .support-desc {
        color: #adb5bd;
    }
    .contact-info-section {
        background: #1a3a4a;
    }
    .contact-info-section h4 {
        color: #e0e0e0;
    }
    .contact-detail {
        border-bottom-color: rgba(59, 160, 201, 0.2);
    }
    .contact-detail a {
        color: #e0e0e0;
    }
    #contact-support-modal .modal-footer {
        background: #1e1e2e;
        border-top-color: #3d3d4d;
    }
    #contact-support-modal .modal-footer p {
        color: #adb5bd;
    }
}

/* --------------------------------------------
   10. REDUCED MOTION
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .support-option,
    .close-modal,
    .status-indicator.online {
        transition: none;
        animation: none;
    }
    .support-option:hover {
        transform: none;
    }
}

/* --------------------------------------------
   11. PRINT STYLES
   -------------------------------------------- */
@media print {
    #contact-support-modal {
        position: relative;
        background: white;
        backdrop-filter: none;
    }
    #contact-support-modal .modal-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .close-modal,
    .support-option {
        break-inside: avoid;
    }
}

/* ============================================
   WITHDRAWAL MODAL - MOBILE FIRST
   Clean, Readable, Fully Responsive
   ============================================ */

/* --------------------------------------------
   1. MODAL OVERLAY & CONTAINER
   -------------------------------------------- */
#withdraw-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#withdraw-modal.show,
#withdraw-modal.active {
    display: flex !important;
}

#withdraw-modal .modal-content {
    background: var(--white, #ffffff);
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------
   2. MODAL HEADER
   -------------------------------------------- */
#withdraw-modal .modal-header {
    background: linear-gradient(135deg, #113745, #256f8a);
    color: white;
    padding: 1.25rem;
    border-radius: 24px 24px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

#withdraw-modal .modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#withdraw-modal .modal-header h3 i {
    color: #ff9f43;
}

/* Close Button */
#withdraw-modal .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

#withdraw-modal .close-modal:hover {
    background: #dc3545;
    transform: rotate(90deg);
}

/* --------------------------------------------
   3. MODAL BODY
   -------------------------------------------- */
#withdraw-modal .modal-body {
    padding: 1.25rem;
}

/* --------------------------------------------
   4. FORM SECTIONS
   -------------------------------------------- */
.form-section {
    margin-bottom: 1.5rem;
}

.form-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #256f8a;
    display: inline-block;
}

/* --------------------------------------------
   5. BALANCE SECTION
   -------------------------------------------- */
.balance-section {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
}

.balance-section h2 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
    border-bottom: none;
    color: white;
}

.balance-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.pending-amount {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* --------------------------------------------
   6. FORM CONTROLS
   -------------------------------------------- */
.form-control {
    margin-bottom: 1.25rem;
}

.form-control label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-control label i {
    color: #256f8a;
    margin-right: 0.3rem;
}

.form-control input,
.form-control select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control input:focus,
.form-control select:focus {
    outline: none;
    border-color: #256f8a;
    box-shadow: 0 0 0 3px rgba(37, 111, 138, 0.1);
}

.form-control input::placeholder {
    color: #adb5bd;
}

.form-control small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #6c757d;
}

/* Currency */
.currency {
    font-size: 0.8rem;
    color: #6c757d;
}

/* --------------------------------------------
   7. QUICK AMOUNT BUTTONS
   -------------------------------------------- */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.quick-amount {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.7rem 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: #2c3e50;
}

.quick-amount:hover {
    background: #256f8a;
    border-color: #256f8a;
    color: white;
    transform: translateY(-2px);
}

.quick-amount:active {
    transform: translateY(0);
}

.quick-amount.active {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

@media (min-width: 480px) {
    .quick-amounts {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) {
    .quick-amounts {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* --------------------------------------------
   8. WITHDRAWAL CALCULATION BOX
   -------------------------------------------- */
.withdrawal-calc {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1rem;
    margin: 1.25rem 0;
    border: 1px solid #e9ecef;
}

.withdrawal-calc h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.withdrawal-calc h3 i {
    color: #256f8a;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85rem;
}

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

.calc-row strong {
    font-weight: 700;
}

#calc-receive {
    color: #28a745;
    font-size: 1rem;
}

#calc-remaining {
    color: #dc3545;
    font-size: 0.9rem;
}

/* --------------------------------------------
   9. WITHDRAWAL REASON SECTION
   -------------------------------------------- */
.withdrawal-reason-section {
    margin: 1.25rem 0;
}

.reason-category {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1rem;
}

.reason-category h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reason-category h3 i {
    color: #ff9f43;
}

.input-group-4 select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.9rem;
    background: white;
    margin-bottom: 1rem;
}

/* Withdraw Button */
#withdraw-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

#withdraw-btn:active {
    transform: translateY(0);
}

#withdraw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --------------------------------------------
   10. STATUS SECTION
   -------------------------------------------- */
.status-section {
    background: #d4edda;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.status-section h2 {
    font-size: 1.1rem;
    color: #155724;
    margin-bottom: 0.75rem;
}

.status-section p {
    font-size: 0.85rem;
    color: #155724;
    margin-bottom: 0.5rem;
}

.status-pending {
    color: #ffc107;
    font-weight: 700;
}

#withdraw-request-amount {
    font-weight: 700;
    color: #28a745;
}

/* --------------------------------------------
   11. ACCOUNT INFO SECTION
   -------------------------------------------- */
#withdraw-account-info {
    background: #e8f4fc;
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
    display: none;
}

#withdraw-account-info .form-control {
    margin-bottom: 0.75rem;
}

#withdraw-account-info .form-control:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------
   12. MODAL FOOTER
   -------------------------------------------- */
#withdraw-modal .modal-footer {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #e9ecef;
    background: white;
    border-radius: 0 0 24px 24px;
}

#withdraw-modal .modal-footer p {
    margin: 0.25rem 0;
    font-size: 0.7rem;
    color: #6c757d;
    text-align: center;
}

/* --------------------------------------------
   13. RESPONSIVE BREAKPOINTS
   -------------------------------------------- */
@media (min-width: 640px) {
    #withdraw-modal .modal-content {
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    #withdraw-modal .modal-header h3 {
        font-size: 1.1rem;
    }
    .balance-amount {
        font-size: 1.4rem;
    }
    .quick-amount {
        padding: 0.5rem 0.3rem;
        font-size: 0.7rem;
    }
    .calc-row {
        font-size: 0.75rem;
    }
    #withdraw-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* --------------------------------------------
   14. ANIMATIONS
   -------------------------------------------- */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --------------------------------------------
   15. DARK MODE SUPPORT
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
    #withdraw-modal .modal-content {
        background: #1e1e2e;
    }
    .form-section h2 {
        color: #e0e0e0;
    }
    .form-control label {
        color: #e0e0e0;
    }
    .form-control input,
    .form-control select {
        background: #2d2d3d;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
    .quick-amount {
        background: #2d2d3d;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
    .withdrawal-calc {
        background: #2d2d3d;
        border-color: #3d3d4d;
    }
    .withdrawal-calc h3 {
        color: #e0e0e0;
    }
    .calc-row {
        border-bottom-color: #3d3d4d;
        color: #e0e0e0;
    }
    .reason-category {
        background: #2d2d3d;
    }
    .reason-category h3 {
        color: #e0e0e0;
    }
    .input-group-4 select {
        background: #1e1e2e;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
    #withdraw-modal .modal-footer {
        background: #1e1e2e;
        border-top-color: #3d3d4d;
    }
    #withdraw-account-info {
        background: #1a3a4a;
    }
}

/* --------------------------------------------
   16. REDUCED MOTION
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .quick-amount,
    #withdraw-btn,
    .close-modal {
        transition: none;
    }
    .quick-amount:hover {
        transform: none;
    }
    #withdraw-btn:hover {
        transform: none;
    }
}

/* --------------------------------------------
   17. PRINT STYLES
   -------------------------------------------- */
@media print {
    #withdraw-modal {
        position: relative;
        background: white;
        backdrop-filter: none;
    }
    #withdraw-modal .modal-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .close-modal,
    .quick-amounts,
    #withdraw-btn {
        display: none;
    }
}

/* ============================================
   INVESTMENT MODAL - MOBILE FIRST
   Clean, Readable, Fully Responsive
   ============================================ */

/* --------------------------------------------
   1. MODAL OVERLAY & CONTAINER
   -------------------------------------------- */
#investment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#investment-modal.show,
#investment-modal.active {
    display: flex !important;
}

#investment-modal .modal-content {
    background: var(--white, #ffffff);
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------
   2. MODAL HEADER
   -------------------------------------------- */
#investment-modal .modal-header {
    background: linear-gradient(135deg, #113745, #256f8a);
    color: white;
    padding: 1.25rem;
    border-radius: 24px 24px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#investment-modal .modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#investment-modal .modal-header h2 i {
    color: #ff9f43;
}

/* Close Button */
#investment-modal .close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

#investment-modal .close-modal:hover {
    background: #dc3545;
    transform: rotate(90deg);
}

/* --------------------------------------------
   3. MODAL BODY
   -------------------------------------------- */
#investment-modal .modal-body {
    padding: 1.25rem;
}

/* --------------------------------------------
   4. MINERAL PRICE & DESCRIPTION
   -------------------------------------------- */
.mineral-price {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.mineral-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #28a745;
}

#modal-description {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.25rem;
}

/* --------------------------------------------
   5. BALANCE INFO
   -------------------------------------------- */
.balance-info {
    background: #e8f4fc;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.balance-info div {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

.balance-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

/* --------------------------------------------
   6. INVESTMENT FORM INPUTS
   -------------------------------------------- */
.calc-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
    background: white;
}

.calc-input:focus {
    outline: none;
    border-color: #256f8a;
    box-shadow: 0 0 0 3px rgba(37, 111, 138, 0.1);
}

.calc-input::placeholder {
    color: #adb5bd;
}

/* Quick Buttons for Grams & Days */
.quick-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quick-btn {
    flex: 1;
    padding: 0.5rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: #2c3e50;
}

.quick-btn:hover {
    background: #256f8a;
    border-color: #256f8a;
    color: white;
    transform: translateY(-2px);
}

/* --------------------------------------------
   7. INSUFFICIENT FUNDS WARNING
   -------------------------------------------- */
.insufficient-funds {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: #721c24;
    font-size: 0.85rem;
    font-weight: 500;
}

.insufficient-funds i {
    font-size: 1.1rem;
    color: #dc3545;
}

/* --------------------------------------------
   8. CALCULATION RESULTS
   -------------------------------------------- */
.calc-result {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
    color: white;
}

.calc-result div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.calc-result div:last-child {
    border-bottom: none;
}

.calc-result span {
    font-weight: 600;
}

#total-cost {
    color: #ff9f43;
    font-weight: 700;
}

#estimated-return {
    color: #28a745;
    font-weight: 700;
}

#daily-profit {
    color: #28a745;
    font-weight: 700;
}

/* --------------------------------------------
   9. PROFIT BREAKDOWN MODAL (Additional info)
   -------------------------------------------- */
#profit-breakdown-modal {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}

#profit-breakdown-modal h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.profit-item {
    background: white;
    padding: 0.75rem;
    border-radius: 12px;
    text-align: center;
}

.profit-item .detail-label {
    font-size: 0.7rem;
    color: #6c757d;
    display: block;
    margin-bottom: 0.25rem;
}

.profit-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #28a745;
}

@media (max-width: 480px) {
    .profit-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------
   10. INVEST BUTTON
   -------------------------------------------- */
.invest-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.invest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.invest-btn:active {
    transform: translateY(0);
}

.invest-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --------------------------------------------
   11. INFO CARDS (For modal)
   -------------------------------------------- */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    border-left: 3px solid #256f8a;
}

.info-label {
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

@media (max-width: 480px) {
    .info-cards {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* --------------------------------------------
   12. WARNING MESSAGE
   -------------------------------------------- */
.warning-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #856404;
    font-size: 0.85rem;
}

.warning-message i {
    font-size: 1.1rem;
    color: #ffc107;
}

/* --------------------------------------------
   13. RESPONSIVE BREAKPOINTS
   -------------------------------------------- */
@media (min-width: 640px) {
    #investment-modal .modal-content {
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    #investment-modal .modal-header h2 {
        font-size: 1.1rem;
    }
    .mineral-price {
        font-size: 1.2rem;
    }
    .balance-amount {
        font-size: 1rem;
    }
    .calc-input {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    .quick-btn {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    .calc-result div {
        font-size: 0.75rem;
    }
    .invest-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* --------------------------------------------
   14. ANIMATIONS
   -------------------------------------------- */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --------------------------------------------
   15. DARK MODE SUPPORT
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
    #investment-modal .modal-content {
        background: #1e1e2e;
    }
    .mineral-price {
        background: #2d2d3d;
    }
    .mineral-price {
        color: #28a745;
    }
    #modal-description {
        color: #adb5bd;
    }
    .balance-info {
        background: #1a3a4a;
    }
    .balance-info div {
        color: #e0e0e0;
    }
    .calc-input {
        background: #2d2d3d;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
    .quick-btn {
        background: #2d2d3d;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
    .calc-result {
        background: linear-gradient(135deg, #1a1a2e, #2d2d3d);
    }
    #profit-breakdown-modal {
        background: #2d2d3d;
        border-color: #3d3d4d;
    }
    #profit-breakdown-modal h4 {
        color: #e0e0e0;
    }
    .profit-item {
        background: #1e1e2e;
    }
    .info-card {
        background: #2d2d3d;
    }
    .info-value {
        color: #e0e0e0;
    }
}

/* --------------------------------------------
   16. REDUCED MOTION
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .quick-btn,
    .invest-btn,
    .close-modal {
        transition: none;
    }
    .quick-btn:hover {
        transform: none;
    }
    .invest-btn:hover {
        transform: none;
    }
}

/* --------------------------------------------
   17. PRINT STYLES
   -------------------------------------------- */
@media print {
    #investment-modal {
        position: relative;
        background: white;
        backdrop-filter: none;
    }
    #investment-modal .modal-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .close-modal,
    .invest-btn,
    .quick-buttons {
        display: none;
    }
}

/* ============================================
   WITHDRAWAL MODAL - MOBILE FIRST
   Based on your HTML structure
   ============================================ */

/* --------------------------------------------
   1. MODAL OVERLAY & CONTAINER
   -------------------------------------------- */
#withdraw-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#withdraw-modal.show,
#withdraw-modal.active {
    display: flex !important;
}

#withdraw-modal .modal-content {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Custom Scrollbar */
#withdraw-modal .modal-content::-webkit-scrollbar {
    width: 4px;
}
#withdraw-modal .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
#withdraw-modal .modal-content::-webkit-scrollbar-thumb {
    background: #256f8a;
    border-radius: 4px;
}

/* --------------------------------------------
   2. CLOSE BUTTON
   -------------------------------------------- */
#withdraw-modal .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.3rem;
    z-index: 10;
    backdrop-filter: blur(4px);
}

#withdraw-modal .close-modal:hover {
    background: #dc3545;
    transform: rotate(90deg);
}

/* --------------------------------------------
   3. CONTENT TITLE
   -------------------------------------------- */
#withdraw-modal .content-title {
    background: linear-gradient(135deg, #113745, #256f8a);
    color: white;
    margin: 0;
    padding: 1.25rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 24px 24px 0 0;
    padding-right: 3.5rem;
}

/* --------------------------------------------
   4. FORM SECTION
   -------------------------------------------- */
#withdraw-modal .form-section {
    padding: 1.25rem;
}

#withdraw-modal .form-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #256f8a;
    display: inline-block;
}

/* --------------------------------------------
   5. BALANCE SECTION
   -------------------------------------------- */
.balance-section {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
}

.balance-section h2 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
    border-bottom: none;
    color: white;
    display: block;
}

.balance-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.pending-amount {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* --------------------------------------------
   6. FORM CONTROLS
   -------------------------------------------- */
.form-control, .form-group {
    margin-bottom: 1.25rem;
}

.form-control label, .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.currency {
    font-size: 0.8rem;
    color: #6c757d;
}

.form-control input,
.form-group input,
.form-control select,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control input:focus,
.form-group input:focus,
.form-control select:focus,
.form-group select:focus {
    outline: none;
    border-color: #256f8a;
    box-shadow: 0 0 0 3px rgba(37, 111, 138, 0.1);
}

.form-control small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #6c757d;
}

/* --------------------------------------------
   7. QUICK AMOUNT BUTTONS
   -------------------------------------------- */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.quick-amount {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.7rem 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: #2c3e50;
}

.quick-amount:hover {
    background: #256f8a;
    border-color: #256f8a;
    color: white;
    transform: translateY(-2px);
}

.quick-amount:active {
    transform: translateY(0);
}

.quick-amount.active {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

@media (min-width: 480px) {
    .quick-amounts {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) {
    .quick-amounts {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 480px) {
    .quick-amount {
        padding: 0.5rem 0.3rem;
        font-size: 0.7rem;
    }
}

/* --------------------------------------------
   8. WITHDRAWAL CALCULATION
   -------------------------------------------- */
.withdrawal-calc {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1rem;
    margin: 1.25rem 0;
    border: 1px solid #e9ecef;
}

.withdrawal-calc h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85rem;
}

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

.calc-row strong {
    font-weight: 700;
}

#calc-receive {
    color: #28a745;
    font-size: 1rem;
}

#calc-remaining {
    color: #dc3545;
    font-size: 0.9rem;
}

/* --------------------------------------------
   9. WITHDRAWAL ACCOUNT INFO
   -------------------------------------------- */
#withdraw-account-info {
    background: #e8f4fc;
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
    display: none;
}

#withdraw-account-info .form-control {
    margin-bottom: 0.75rem;
}

#withdraw-account-info .form-control:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------
   10. WITHDRAWAL REASON SECTION
   -------------------------------------------- */
.withdrawal-reason-section {
    margin: 1.25rem 0;
}

.reason-category {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1rem;
}

.reason-category h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reason-category h3 i {
    color: #ff9f43;
}

.input-group-4 select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.9rem;
    background: white;
    margin-bottom: 1rem;
}

/* Withdraw Button */
#withdraw-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

#withdraw-btn:active {
    transform: translateY(0);
}

#withdraw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --------------------------------------------
   11. STATUS SECTION
   -------------------------------------------- */
.status-section {
    background: #d4edda;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.status-section h2 {
    font-size: 1.1rem;
    color: #155724;
    margin-bottom: 0.75rem;
    border-bottom: none;
    display: block;
}

.status-section p {
    font-size: 0.85rem;
    color: #155724;
    margin-bottom: 0.5rem;
}

.status-pending {
    color: #ffc107;
    font-weight: 700;
}

#withdraw-request-amount {
    font-weight: 700;
    color: #28a745;
}

/* --------------------------------------------
   12. ANIMATIONS
   -------------------------------------------- */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --------------------------------------------
   13. RESPONSIVE BREAKPOINTS
   -------------------------------------------- */
@media (min-width: 640px) {
    #withdraw-modal .modal-content {
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    #withdraw-modal .content-title {
        font-size: 1.1rem;
        padding: 1rem;
        padding-right: 3rem;
    }
    #withdraw-modal .form-section {
        padding: 1rem;
    }
    .balance-amount {
        font-size: 1.4rem;
    }
    .balance-section {
        padding: 1rem;
    }
    .calc-row {
        font-size: 0.75rem;
    }
    #withdraw-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    .reason-category h3 {
        font-size: 0.85rem;
    }
}

/* --------------------------------------------
   14. DARK MODE SUPPORT
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
    #withdraw-modal .modal-content {
        background: #1e1e2e;
    }
    #withdraw-modal .form-section h2 {
        color: #e0e0e0;
    }
    .form-control label, .form-group label {
        color: #e0e0e0;
    }
    .form-control input,
    .form-group input,
    .form-control select,
    .form-group select {
        background: #2d2d3d;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
    .quick-amount {
        background: #2d2d3d;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
    .withdrawal-calc {
        background: #2d2d3d;
        border-color: #3d3d4d;
    }
    .withdrawal-calc h3 {
        color: #e0e0e0;
    }
    .calc-row {
        border-bottom-color: #3d3d4d;
        color: #e0e0e0;
    }
    .reason-category {
        background: #2d2d3d;
    }
    .reason-category h3 {
        color: #e0e0e0;
    }
    .input-group-4 select {
        background: #1e1e2e;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
    #withdraw-account-info {
        background: #1a3a4a;
    }
}

/* --------------------------------------------
   15. REDUCED MOTION
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .quick-amount,
    #withdraw-btn,
    .close-modal {
        transition: none;
        animation: none;
    }
    .quick-amount:hover {
        transform: none;
    }
    #withdraw-btn:hover {
        transform: none;
    }
    #withdraw-modal .modal-content {
        animation: none;
    }
}

/* --------------------------------------------
   16. PRINT STYLES
   -------------------------------------------- */
@media print {
    #withdraw-modal {
        position: relative;
        background: white;
        backdrop-filter: none;
    }
    #withdraw-modal .modal-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .close-modal,
    .quick-amounts,
    #withdraw-btn {
        display: none;
    }
}

/* ============================================
   PROFILE SECTION - MOBILE FIRST
   Clean, Modern, Fully Responsive
   ============================================ */

/* --------------------------------------------
   1. PROFILE SECTION CONTAINER
   -------------------------------------------- */
#profile {
    padding: 0 0 1rem 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #256f8a;
    display: inline-block;
}

/* --------------------------------------------
   2. DASHBOARD CONTENT
   -------------------------------------------- */
.dashboard-content {
    background: transparent;
}

.dashboard-content .content-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-content .content-title i {
    color: #256f8a;
}

/* --------------------------------------------
   3. PROFILE CONTAINER & CARDS
   -------------------------------------------- */
.profile-container {
    margin-bottom: 1.5rem;
}

.profile-btn {
    cursor: pointer;
}

/* Profile Header Card */
.profile-header-card {
    background: linear-gradient(135deg, #113745, #256f8a);
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

/* Profile Avatar */
.profile-picture-section {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.avatar-container {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff9f43;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
}

/* User Details */
.user-details {
    position: relative;
    z-index: 1;
}

.user-details p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.user-details strong {
    font-weight: 600;
}

.balance-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff9f43;
    margin-top: 0.25rem;
}

/* --------------------------------------------
   4. PROFILE ACTIONS GRID
   -------------------------------------------- */
.profile-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #256f8a;
}

.action-card:active {
    transform: translateY(0);
}

.action-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #256f8a, #113745);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.action-card:hover .action-icon {
    transform: scale(1.1);
}

.action-content {
    flex: 1;
}

.action-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
}

.action-content p {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

@media (min-width: 480px) {
    .profile-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .profile-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------
   5. PROFILE DETAILS CARD
   -------------------------------------------- */
.profile-details-card {
    background: white;
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.profile-details-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #256f8a;
    display: inline-block;
}

/* Details Grid */
.details-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.detail-item label i {
    color: #256f8a;
    width: 1.2rem;
}

.detail-item span {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.85rem;
    text-align: right;
    word-break: break-word;
}

.detail-item .balance-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #28a745;
}

@media (max-width: 480px) {
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    .detail-item span {
        text-align: left;
    }
}

/* --------------------------------------------
   6. TAB CONTAINER & TABS
   -------------------------------------------- */
.tab-container {
    margin-top: 1rem;
}

.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-tab {
    padding: 0.7rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    border-radius: 12px 12px 0 0;
    white-space: nowrap;
}

.dashboard-tab:hover {
    color: #256f8a;
    background: #f8f9fa;
}

.dashboard-tab.active {
    color: #256f8a;
    border-bottom: 3px solid #256f8a;
    background: transparent;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------
   7. CALCULATOR TAB
   -------------------------------------------- */
.calculator {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
}

.calculator .content-title {
    margin-top: 0;
    margin-bottom: 1rem;
}

.calc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.calc-input:focus {
    outline: none;
    border-color: #256f8a;
    box-shadow: 0 0 0 3px rgba(37, 111, 138, 0.1);
}

.calc-result {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1rem;
}

/* --------------------------------------------
   8. REFERRAL TAB
   -------------------------------------------- */
.referral-list-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.referrals-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.referrals-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.referrals-table th {
    background: #256f8a;
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-size: 0.8rem;
}

.referrals-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.8rem;
}

/* Referral Earnings Description */
.referral-earnings-description {
    margin-top: 1.5rem;
}

.description-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.description-header h3 {
    font-size: 1rem;
    color: #256f8a;
    margin-bottom: 0.5rem;
}

.description-header p {
    font-size: 0.85rem;
    color: #6c757d;
}

.earnings-process {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.process-step {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border-left: 3px solid #256f8a;
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #256f8a, #113745);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
}

.step-content p {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

.commission-rates {
    margin: 0.5rem 0;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.commission-rate {
    background: #28a745;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.quick-actions {
    margin-top: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    padding: 0.7rem;
    background: #256f8a;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: #113745;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
    }
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    .step-number {
        margin: 0 auto;
    }
}

/* --------------------------------------------
   9. MY INVESTMENTS TAB
   -------------------------------------------- */
#user-investments-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

@media (min-width: 640px) {
    #user-investments-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #user-investments-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

#profit-breakdown {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.25rem;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}

.profit-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .profit-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .profit-summary {
        grid-template-columns: repeat(4, 1fr);
    }
}

.profit-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border-left: 3px solid #256f8a;
}

.profit-label {
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.profit-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
}

#investment-history {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.25rem;
    margin: 1rem 0;
}

.history-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #256f8a;
}

.history-item.completed {
    border-left-color: #ffc107;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.history-status {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.history-status.active {
    background: #d4edda;
    color: #28a745;
}

.history-status.completed {
    background: #fff3cd;
    color: #856404;
}

.history-details {
    font-size: 0.8rem;
    color: #6c757d;
}

/* --------------------------------------------
   10. DARK MODE SUPPORT
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
    .dashboard-content .content-title {
        color: #e0e0e0;
    }
    .action-card {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .action-content h4 {
        color: #e0e0e0;
    }
    .profile-details-card {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .profile-details-card h3 {
        color: #e0e0e0;
    }
    .detail-item {
        border-bottom-color: #3d3d4d;
    }
    .detail-item label {
        color: #adb5bd;
    }
    .detail-item span {
        color: #e0e0e0;
    }
    .calculator {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .calc-input {
        background: #2d2d3d;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
    .referral-list-section {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .section-header h3 {
        color: #e0e0e0;
    }
    .process-step {
        background: #2d2d3d;
    }
    .step-content h4 {
        color: #e0e0e0;
    }
    .rate-item {
        background: #1e1e2e;
    }
    #profit-breakdown {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .profit-card {
        background: #2d2d3d;
    }
    #investment-history {
        background: #1e1e2e;
    }
    .history-item {
        background: #2d2d3d;
    }
    .dashboard-tab {
        color: #adb5bd;
    }
    .dashboard-tab:hover {
        color: #3ba0c9;
    }
    .dashboard-tab.active {
        color: #3ba0c9;
    }
}

/* --------------------------------------------
   11. RESPONSIVE UTILITIES
   -------------------------------------------- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.2rem;
    }
    .dashboard-tabs {
        gap: 0;
    }
    .dashboard-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .profile-header-card {
        padding: 1rem;
    }
    .avatar-container {
        width: 80px;
        height: 80px;
    }
    .balance-amount {
        font-size: 1rem;
    }
    .profile-actions-grid {
        gap: 0.75rem;
    }
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .action-content h4 {
        font-size: 0.85rem;
    }
    .action-content p {
        font-size: 0.65rem;
    }
    .profile-details-card {
        padding: 1rem;
    }
}

/* --------------------------------------------
   12. REDUCED MOTION
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .action-card,
    .profile-picture,
    .dashboard-tab,
    .btn-action {
        transition: none;
        animation: none;
    }
    .action-card:hover {
        transform: none;
    }
    .tab-content {
        animation: none;
    }
}

/* ============================================
   DASHBOARD CONTENT - MOBILE FIRST
   Clean, Modern, Fully Responsive
   ============================================ */

/* --------------------------------------------
   1. DASHBOARD CONTENT CONTAINER
   -------------------------------------------- */
.dashboard-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Content Header */
.dashboard-content .content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.dashboard-content .content-title {
    flex: 1;
}

.dashboard-content .content-title h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.dashboard-content .content-title p {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

.dashboard-content .content-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dashboard-content .content-actions .logout-btn {
    background: linear-gradient(135deg, #256f8a, #113745);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-content .content-actions .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 111, 138, 0.3);
}

/* --------------------------------------------
   2. STATS GRID
   -------------------------------------------- */
.dashboard-content .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-content .stat-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.dashboard-content .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-content .stat-card h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-content .stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #256f8a;
}

.dashboard-content .stat-card i {
    font-size: 1.3rem;
    color: #256f8a;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .dashboard-content .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------
   3. CONTENT GRID (Two Columns)
   -------------------------------------------- */
.dashboard-content .content-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .dashboard-content .content-grid {
        flex-direction: row;
    }
    .dashboard-content .main-content {
        flex: 2;
    }
    .dashboard-content .side-content {
        flex: 1;
    }
}

/* --------------------------------------------
   4. COMMISSION RATES SECTION
   -------------------------------------------- */
.dashboard-content .commission-rates {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.dashboard-content .commission-rates .content-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-content .commission-rates .content-title i {
    color: #ff9f43;
}

.dashboard-content .rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border-left: 3px solid #256f8a;
}

.dashboard-content .amount-range {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2c3e50;
}

.dashboard-content .commission-rate {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dashboard-content .btn-success {
    width: 100%;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.dashboard-content .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.dashboard-content .description-header {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.dashboard-content .description-header h3 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dashboard-content .description-header p {
    font-size: 0.8rem;
    color: #6c757d;
}

/* --------------------------------------------
   5. SIDE CONTENT (Quick Actions)
   -------------------------------------------- */
.dashboard-content .side-content {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
}

.dashboard-content .side-content .content-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-content .activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-content .activity-item:hover {
    transform: translateX(5px);
    background: #e9ecef;
}

.dashboard-content .activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #256f8a, #113745);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.dashboard-content .activity-content {
    flex: 1;
}

.dashboard-content .activity-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.dashboard-content .activity-desc {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Side Content Footer */
.dashboard-content .side-content .footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.dashboard-content .side-content .footer h3 {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.dashboard-content .side-content .footer p {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-break: break-word;
}

.dashboard-content .side-content .footer p i {
    width: 1.2rem;
    color: #256f8a;
}

.dashboard-content .side-content .footer a {
    color: #256f8a;
    text-decoration: none;
}

.dashboard-content .side-content .footer a:hover {
    text-decoration: underline;
}

/* --------------------------------------------
   6. CONTACT SECTION
   -------------------------------------------- */
.dashboard-content .contact-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    margin-top: 1.5rem;
}

.dashboard-content .contact-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.dashboard-content .contact-section > p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.dashboard-content .contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.dashboard-content .contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 0.8rem;
    font-weight: 500;
    color: #2c3e50;
}

.dashboard-content .contact-method i {
    font-size: 1rem;
}

.dashboard-content .contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------
   7. DASHBOARD ANNOUNCEMENTS SECTION
   -------------------------------------------- */
.dashboard-content .dashboard-announcements-section {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.dashboard-content .dashboard-announcements-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.dashboard-content .dashboard-announcements-section .section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.dashboard-content .btn-refresh {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-content .btn-refresh:hover {
    background: #256f8a;
    color: white;
    border-color: #256f8a;
}

/* --------------------------------------------
   8. EMPTY & LOADING STATES
   -------------------------------------------- */
.dashboard-content .loading-state {
    text-align: center;
    padding: 2rem;
}

.dashboard-content .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top-color: #256f8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.dashboard-content .empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.dashboard-content .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #adb5bd;
}

.dashboard-content .empty-state h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.dashboard-content .empty-state p {
    font-size: 0.8rem;
}

/* --------------------------------------------
   9. ANIMATIONS
   -------------------------------------------- */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------
   10. RESPONSIVE BREAKPOINTS
   -------------------------------------------- */
@media (max-width: 768px) {
    .dashboard-content {
        padding: 0.75rem;
    }
    .dashboard-content .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-content .content-actions {
        width: 100%;
    }
    .dashboard-content .content-actions .logout-btn {
        flex: 1;
        justify-content: center;
    }
    .dashboard-content .stat-card .stat-number {
        font-size: 1.2rem;
    }
    .dashboard-content .contact-methods {
        flex-direction: column;
        align-items: stretch;
    }
    .dashboard-content .contact-method {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dashboard-content {
        padding: 0.5rem;
    }
    .dashboard-content .stats-grid {
        gap: 0.75rem;
    }
    .dashboard-content .stat-card {
        padding: 0.75rem;
    }
    .dashboard-content .stat-card .stat-number {
        font-size: 1rem;
    }
    .dashboard-content .commission-rates,
    .dashboard-content .side-content {
        padding: 1rem;
    }
    .dashboard-content .rate-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .dashboard-content .activity-item {
        padding: 0.6rem;
    }
    .dashboard-content .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* --------------------------------------------
   11. DARK MODE SUPPORT
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
    .dashboard-content .content-title h1 {
        color: #e0e0e0;
    }
    .dashboard-content .stat-card {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .dashboard-content .stat-card h3 {
        color: #adb5bd;
    }
    .dashboard-content .stat-card .stat-number {
        color: #3ba0c9;
    }
    .dashboard-content .commission-rates {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .dashboard-content .commission-rates .content-title {
        color: #e0e0e0;
    }
    .dashboard-content .rate-item {
        background: #2d2d3d;
    }
    .dashboard-content .amount-range {
        color: #e0e0e0;
    }
    .dashboard-content .side-content {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .dashboard-content .side-content .content-title {
        color: #e0e0e0;
    }
    .dashboard-content .activity-item {
        background: #2d2d3d;
    }
    .dashboard-content .activity-title {
        color: #e0e0e0;
    }
    .dashboard-content .side-content .footer h3 {
        color: #e0e0e0;
    }
    .dashboard-content .contact-section {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .dashboard-content .contact-section h2 {
        color: #e0e0e0;
    }
    .dashboard-content .contact-method {
        background: #2d2d3d;
        color: #e0e0e0;
    }
    .dashboard-content .dashboard-announcements-section {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .dashboard-content .dashboard-announcements-section .section-header h3 {
        color: #e0e0e0;
    }
    .dashboard-content .btn-refresh {
        background: #2d2d3d;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
}

/* --------------------------------------------
   12. REDUCED MOTION
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .dashboard-content .stat-card,
    .dashboard-content .activity-item,
    .dashboard-content .btn-success,
    .dashboard-content .contact-method,
    .dashboard-content .btn-refresh {
        transition: none;
    }
    .dashboard-content .stat-card:hover,
    .dashboard-content .activity-item:hover {
        transform: none;
    }
    .loading-spinner {
        animation: none;
    }
}

.form-control input:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(37,111,138,0.1);
}

/* ============================================
   DASHBOARD CONTENT WITH CARDS - MOBILE FIRST
   All sections inside styled cards
   ============================================ */

/* --------------------------------------------
   1. DASHBOARD CONTENT CONTAINER
   -------------------------------------------- */
.dashboard-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* --------------------------------------------
   2. SECTION CARD (Base Card for all sections)
   -------------------------------------------- */
.section-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.section-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #256f8a;
}

.section-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-card-header h3 i {
    color: #256f8a;
}

.section-card-header .btn-refresh {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-card-header .btn-refresh:hover {
    background: #256f8a;
    color: white;
    border-color: #256f8a;
}

/* --------------------------------------------
   3. CONTENT HEADER CARD
   -------------------------------------------- */
.content-header-card {
    background: linear-gradient(135deg, #113745, #256f8a);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-header-card .content-title h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.content-header-card .content-title p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
}

.content-header-card .content-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.content-header-card .action-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-header-card .action-btn:hover {
    background: #ff9f43;
    transform: translateY(-2px);
}

/* --------------------------------------------
   4. STATS GRID CARD
   -------------------------------------------- */
.stats-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 3px solid #256f8a;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item .stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #256f8a;
}

.stat-item i {
    font-size: 1.2rem;
    color: #256f8a;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------
   5. CONTENT GRID (Two Columns Layout)
   -------------------------------------------- */
.content-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .content-grid {
        flex-direction: row;
    }
    .main-content-card {
        flex: 2;
    }
    .side-content-card {
        flex: 1;
    }
}

/* --------------------------------------------
   6. COMMISSION RATES CARD
   -------------------------------------------- */
.commission-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
}

.commission-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #256f8a;
}

.commission-card .card-title i {
    color: #ff9f43;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border-left: 3px solid #256f8a;
}

.amount-range {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2c3e50;
}

.commission-rate {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-copy {
    width: 100%;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.description-header {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.description-header h3 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.description-header p {
    font-size: 0.8rem;
    color: #6c757d;
}

/* --------------------------------------------
   7. QUICK ACTIONS CARD
   -------------------------------------------- */
.quick-actions-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
}

.quick-actions-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #256f8a;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(5px);
    background: #e9ecef;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #256f8a, #113745);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.activity-desc {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Contact Info inside Quick Actions Card */
.contact-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.contact-info h4 {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.contact-info p {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-break: break-word;
}

.contact-info p i {
    width: 1.2rem;
    color: #256f8a;
}

.contact-info a {
    color: #256f8a;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* --------------------------------------------
   8. CONTACT SECTION CARD
   -------------------------------------------- */
.contact-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.contact-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-card > p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 0.8rem;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-method i {
    font-size: 1rem;
}

/* --------------------------------------------
   9. ANNOUNCEMENTS CARD
   -------------------------------------------- */
.announcements-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.announcements-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #256f8a;
}

.announcements-container {
    min-height: 100px;
}

/* --------------------------------------------
   10. LOADING & EMPTY STATES
   -------------------------------------------- */
.loading-state {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top-color: #256f8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #adb5bd;
}

.empty-state h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.empty-state p {
    font-size: 0.8rem;
}

/* --------------------------------------------
   11. ANIMATIONS
   -------------------------------------------- */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------
   12. RESPONSIVE BREAKPOINTS
   -------------------------------------------- */
@media (max-width: 768px) {
    .dashboard-content {
        padding: 0.75rem;
    }
    .section-card,
    .stats-card,
    .commission-card,
    .quick-actions-card,
    .announcements-card,
    .contact-card {
        padding: 1rem;
    }
    .content-header-card {
        flex-direction: column;
        text-align: center;
    }
    .content-header-card .content-actions {
        width: 100%;
    }
    .content-header-card .action-btn {
        flex: 1;
        justify-content: center;
    }
    .stat-item .stat-number {
        font-size: 1.1rem;
    }
    .contact-methods {
        flex-direction: column;
        align-items: stretch;
    }
    .contact-method {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dashboard-content {
        padding: 0.5rem;
    }
    .stats-grid {
        gap: 0.75rem;
    }
    .stat-item {
        padding: 0.75rem;
    }
    .rate-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .activity-item {
        padding: 0.6rem;
    }
    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    .section-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --------------------------------------------
   13. DARK MODE SUPPORT
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
    .section-card,
    .stats-card,
    .announcements-card {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .section-card-header h3 {
        color: #e0e0e0;
    }
    .stat-item {
        background: #2d2d3d;
    }
    .stat-item h3 {
        color: #adb5bd;
    }
    .stat-item .stat-number {
        color: #3ba0c9;
    }
    .commission-card {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .commission-card .card-title {
        color: #e0e0e0;
    }
    .rate-item {
        background: #2d2d3d;
    }
    .amount-range {
        color: #e0e0e0;
    }
    .quick-actions-card {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .quick-actions-card .card-title {
        color: #e0e0e0;
    }
    .activity-item {
        background: #2d2d3d;
    }
    .activity-title {
        color: #e0e0e0;
    }
    .contact-info h4 {
        color: #e0e0e0;
    }
    .contact-card {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    .contact-card h2 {
        color: #e0e0e0;
    }
    .contact-method {
        background: #2d2d3d;
        color: #e0e0e0;
    }
    .description-header h3 {
        color: #e0e0e0;
    }
    .content-header-card {
        background: linear-gradient(135deg, #0a2a35, #1a4a5e);
    }
}

/* --------------------------------------------
   14. REDUCED MOTION
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .section-card,
    .stat-item,
    .activity-item,
    .btn-copy,
    .contact-method {
        transition: none;
    }
    .section-card:hover,
    .stat-item:hover,
    .activity-item:hover {
        transform: none;
    }
    .loading-spinner {
        animation: none;
    }
}

/* ============================================
   PROFILE CARD - MOBILE FIRST
   Clean Card Design for Profile Section
   ============================================ */

/* --------------------------------------------
   1. PROFILE CARD CONTAINER
   -------------------------------------------- */
.profile-container {
    margin-bottom: 1.5rem;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------
   2. PROFILE BUTTON (Clickable area)
   -------------------------------------------- */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    transform: translateX(5px);
}

/* --------------------------------------------
   3. PROFILE PICTURE SECTION
   -------------------------------------------- */
.profile-picture-section {
    flex-shrink: 0;
}

.avatar-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #256f8a, #113745);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.profile-btn:hover .avatar-container {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(37, 111, 138, 0.3);
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback for when no image */
.avatar-container .avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #256f8a, #113745);
}

/* --------------------------------------------
   4. USER DETAILS
   -------------------------------------------- */
.user-details {
    flex: 1;
}

.user-details p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.user-details p strong {
    color: #2c3e50;
    font-weight: 600;
}

.user-details .balance-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #28a745;
    margin-top: 0.25rem;
}

/* --------------------------------------------
   5. EDIT ICON (Optional)
   -------------------------------------------- */
.edit-profile-icon {
    margin-left: auto;
    color: #adb5bd;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.profile-btn:hover .edit-profile-icon {
    opacity: 1;
    transform: translateX(0);
}

.edit-profile-icon:hover {
    color: #256f8a;
}

/* --------------------------------------------
   6. RESPONSIVE BREAKPOINTS
   -------------------------------------------- */
@media (max-width: 640px) {
    .profile-card {
        padding: 1rem;
    }
    
    .profile-btn {
        gap: 1rem;
    }
    
    .avatar-container {
        width: 65px;
        height: 65px;
    }
    
    .user-details p {
        font-size: 0.8rem;
    }
    
    .user-details .balance-amount {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 0.875rem;
    }
    
    .profile-btn {
        gap: 0.75rem;
    }
    
    .avatar-container {
        width: 55px;
        height: 55px;
    }
    
    .user-details p {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .user-details .balance-amount {
        font-size: 1rem;
    }
    
    .edit-profile-icon {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------
   7. DARK MODE SUPPORT
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
    .profile-card {
        background: #1e1e2e;
        border-color: #3d3d4d;
    }
    
    .user-details p {
        color: #adb5bd;
    }
    
    .user-details p strong {
        color: #e0e0e0;
    }
    
    .user-details .balance-amount {
        color: #28a745;
    }
    
    .edit-profile-icon {
        color: #6c757d;
    }
    
    .edit-profile-icon:hover {
        color: #3ba0c9;
    }
}

/* --------------------------------------------
   8. ANIMATIONS
   -------------------------------------------- */
@keyframes profileCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    animation: profileCardFadeIn 0.3s ease;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .profile-card,
    .profile-btn,
    .avatar-container,
    .edit-profile-icon {
        transition: none;
        animation: none;
    }
    
    .profile-btn:hover {
        transform: none;
    }
    
    .profile-btn:hover .avatar-container {
        transform: none;
    }
}

/* ============================================
   INVESTMENT MODAL - ENHANCED WITH SPACING
   Mobile First | Proper Padding on Both Sides
   ============================================ */

/* --------------------------------------------
   1. MODAL OVERLAY & CONTAINER
   -------------------------------------------- */
#investment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#investment-modal.show,
#investment-modal.active {
    display: flex !important;
}

#investment-modal .modal-content {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Custom Scrollbar */
#investment-modal .modal-content::-webkit-scrollbar {
    width: 4px;
}
#investment-modal .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
#investment-modal .modal-content::-webkit-scrollbar-thumb {
    background: #256f8a;
    border-radius: 4px;
}

/* --------------------------------------------
   2. MODAL HEADER
   -------------------------------------------- */
#investment-modal .modal-header {
    background: linear-gradient(135deg, #113745, #256f8a);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 24px 24px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#investment-modal .modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#investment-modal .modal-header h2 i {
    color: #ff9f43;
}

/* Close Button */
#investment-modal .close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

#investment-modal .close-modal:hover {
    background: #dc3545;
    transform: rotate(90deg);
}

/* --------------------------------------------
   3. MODAL BODY - ENHANCED SPACING
   -------------------------------------------- */
#investment-modal .modal-body {
    padding: 1.5rem;
}

/* For direct div after modal-header */
#investment-modal .modal-content > div:not(.modal-header) {
    padding: 1.5rem;
}

/* --------------------------------------------
   4. MINERAL PRICE & DESCRIPTION
   -------------------------------------------- */
.mineral-price {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #28a745;
}

#modal-description {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* --------------------------------------------
   5. BALANCE INFO
   -------------------------------------------- */
.balance-info {
    background: #e8f4fc;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.balance-info div {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

.balance-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

/* --------------------------------------------
   6. INVESTMENT FORM INPUTS
   -------------------------------------------- */
.calc-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
    background: white;
}

.calc-input:focus {
    outline: none;
    border-color: #256f8a;
    box-shadow: 0 0 0 3px rgba(37, 111, 138, 0.1);
}

.calc-input::placeholder {
    color: #adb5bd;
}

/* Quick Buttons Row */
.quick-buttons-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.quick-buttons-row .quick-btn {
    flex: 1;
    padding: 0.5rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: #2c3e50;
}

.quick-buttons-row .quick-btn:hover {
    background: #256f8a;
    border-color: #256f8a;
    color: white;
    transform: translateY(-2px);
}

/* Two column layout for quick buttons */
.quick-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.quick-buttons-grid .quick-btn {
    padding: 0.5rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: #2c3e50;
}

.quick-buttons-grid .quick-btn:hover {
    background: #256f8a;
    border-color: #256f8a;
    color: white;
    transform: translateY(-2px);
}

@media (min-width: 480px) {
    .quick-buttons-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------
   7. INSUFFICIENT FUNDS WARNING
   -------------------------------------------- */
.insufficient-funds {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: #721c24;
    font-size: 0.85rem;
    font-weight: 500;
}

.insufficient-funds i {
    font-size: 1.1rem;
    color: #dc3545;
}

/* --------------------------------------------
   8. CALCULATION RESULTS - ENHANCED
   -------------------------------------------- */
.calc-result {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 16px;
    padding: 1.25rem;
    margin: 1.25rem 0;
    color: white;
}

.calc-result div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.calc-result div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.calc-result div:first-child {
    padding-top: 0;
}

.calc-result span {
    font-weight: 600;
}

#total-cost {
    color: #ff9f43;
    font-weight: 700;
}

#estimated-return {
    color: #28a745;
    font-weight: 700;
}

#daily-profit {
    color: #28a745;
    font-weight: 700;
}

/* --------------------------------------------
   9. PROFIT BREAKDOWN MODAL (Additional info)
   -------------------------------------------- */
.profit-breakdown-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}

.profit-breakdown-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profit-breakdown-card h4 i {
    color: #256f8a;
}

.profit-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.profit-breakdown-item {
    background: white;
    padding: 0.75rem;
    border-radius: 12px;
    text-align: center;
}

.profit-breakdown-item .breakdown-label {
    font-size: 0.7rem;
    color: #6c757d;
    display: block;
    margin-bottom: 0.25rem;
}

.profit-breakdown-item .breakdown-value {
    font-size: 1rem;
    font-weight: 700;
    color: #28a745;
}

@media (max-width: 480px) {
    .profit-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------
   10. INVEST BUTTON
   -------------------------------------------- */
.invest-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.invest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.invest-btn:active {
    transform: translateY(0);
}

.invest-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --------------------------------------------
   11. INFO CARDS (For additional info)
   -------------------------------------------- */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    border-left: 3px solid #256f8a;
}

.info-label {
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

@media (max-width: 480px) {
    .info-cards {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* --------------------------------------------
   12. WARNING MESSAGE
   -------------------------------------------- */
.warning-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #856404;
    font-size: 0.85rem;
}

.warning-message i {
    font-size: 1.1rem;
    color: #ffc107;
}

/* --------------------------------------------
   13. ANIMATIONS
   -------------------------------------------- */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --------------------------------------------
   14. RESPONSIVE BREAKPOINTS
   -------------------------------------------- */
@media (min-width: 640px) {
    #investment-modal .modal-content {
        max-width: 600px;
    }
    #investment-modal .modal-body {
        padding: 1.75rem;
    }
    #investment-modal .modal-content > div:not(.modal-header) {
        padding: 1.75rem;
    }
}

@media (min-width: 768px) {
    #investment-modal .modal-content {
        max-width: 650px;
    }
    #investment-modal .modal-body {
        padding: 2rem;
    }
    #investment-modal .modal-content > div:not(.modal-header) {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    #investment-modal .modal-header {
        padding: 1rem 1.25rem;
    }
    #investment-modal .modal-header h2 {
        font-size: 1.1rem;
    }
    #investment-modal .modal-body {
        padding: 1rem;
    }
    #investment-modal .modal-content > div:not(.modal-header) {
        padding: 1rem;
    }
    .mineral-price {
        font-size: 1.2rem;
        padding: 0.75rem;
    }
    .balance-amount {
        font-size: 1rem;
    }
    .calc-input {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    .calc-result div {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }
    .invest-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    .quick-buttons-row .quick-btn,
    .quick-buttons-grid .quick-btn {
        font-size: 0.65rem;
        padding: 0.4rem;
    }
}

/* --------------------------------------------
   15. DARK MODE SUPPORT
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
    #investment-modal .modal-content {
        background: #1e1e2e;
    }
    .mineral-price {
        background: #2d2d3d;
        color: #28a745;
    }
    #modal-description {
        color: #adb5bd;
    }
    .balance-info {
        background: #1a3a4a;
    }
    .balance-info div {
        color: #e0e0e0;
    }
    .calc-input {
        background: #2d2d3d;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
    .quick-buttons-row .quick-btn,
    .quick-buttons-grid .quick-btn {
        background: #2d2d3d;
        border-color: #3d3d4d;
        color: #e0e0e0;
    }
    .calc-result {
        background: linear-gradient(135deg, #1a1a2e, #2d2d3d);
    }
    .profit-breakdown-card {
        background: #2d2d3d;
        border-color: #3d3d4d;
    }
    .profit-breakdown-card h4 {
        color: #e0e0e0;
    }
    .profit-breakdown-item {
        background: #1e1e2e;
    }
    .info-card {
        background: #2d2d3d;
    }
    .info-value {
        color: #e0e0e0;
    }
}

/* --------------------------------------------
   16. REDUCED MOTION
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .quick-buttons-row .quick-btn,
    .quick-buttons-grid .quick-btn,
    .invest-btn,
    .close-modal {
        transition: none;
    }
    .quick-buttons-row .quick-btn:hover,
    .quick-buttons-grid .quick-btn:hover {
        transform: none;
    }
    .invest-btn:hover {
        transform: none;
    }
    #investment-modal .modal-content {
        animation: none;
    }
}

/* --------------------------------------------
   17. PRINT STYLES
   -------------------------------------------- */
@media print {
    #investment-modal {
        position: relative;
        background: white;
        backdrop-filter: none;
    }
    #investment-modal .modal-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .close-modal,
    .invest-btn,
    .quick-buttons-row,
    .quick-buttons-grid {
        display: none;
    }
}

/* Add to your CSS file */

/* Admin Marketplace Styles */
.admin-marketplace-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-marketplace-stats .stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.admin-marketplace-stats .stat-card:hover {
    transform: translateY(-3px);
}

.admin-marketplace-stats .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.admin-marketplace-stats .stat-icon.products { background: #3498db20; color: #3498db; }
.admin-marketplace-stats .stat-icon.active-products { background: #27ae6020; color: #27ae60; }
.admin-marketplace-stats .stat-icon.inactive-products { background: #e74c3c20; color: #e74c3c; }
.admin-marketplace-stats .stat-icon.total-investments { background: #9b59b620; color: #9b59b6; }

.admin-marketplace-stats .stat-info h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.admin-marketplace-stats .stat-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--gray);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-admin-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-extra-light);
}

.product-admin-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-admin-card.inactive {
    opacity: 0.7;
    background: var(--light);
}

.product-admin-card.inactive .card-header {
    background: #95a5a6;
}

.product-admin-card .card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.product-header-info h4 {
    margin: 0 0 5px;
    font-size: 18px;
}

.product-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.product-status-badge.active { background: #27ae60; color: white; }
.product-status-badge.inactive { background: #e74c3c; color: white; }

.product-admin-card .card-body {
    padding: 20px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-extra-light);
}

.product-price .price-tzs {
    font-weight: bold;
    color: var(--primary);
}

.product-price .price-usd {
    font-weight: bold;
    color: var(--success);
}

.product-min-investment {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-extra-light);
}

.product-description {
    padding: 10px 0;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

.product-features {
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.feature-tag {
    background: var(--light);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    color: var(--gray);
}

.product-return-rate {
    padding: 10px 0;
    border-top: 1px solid var(--gray-extra-light);
    font-weight: bold;
    color: var(--success);
}

.product-admin-card .card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-extra-light);
    display: flex;
    gap: 10px;
}

.product-admin-card .card-footer .btn {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

/* Icon Selector */
.icon-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-selector input {
    flex: 1;
}

.icon-preview {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid var(--gray-extra-light);
}

/* User Marketplace Styles */
.mineral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.mineral-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-extra-light);
    position: relative;
}

.mineral-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mineral-card.inactive {
    opacity: 0.5;
    pointer-events: none;
}

.mineral-card .inactive-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.mineral-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.mineral-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.mineral-price {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0;
}

.mineral-price .tzs {
    color: var(--primary);
    display: block;
}

.mineral-price .usd {
    color: var(--success);
    font-size: 14px;
    margin-top: 5px;
}

.mineral-description {
    color: var(--gray);
    font-size: 13px;
    margin: 15px 0;
    line-height: 1.5;
}

.mineral-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
}

.mineral-features span {
    background: var(--light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--gray);
}

.mineral-certified {
    display: inline-block;
    background: var(--success-light);
    color: var(--success);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin: 10px 0;
}

.invest-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.invest-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.invest-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* No Products Message */
.no-products-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
}

.no-products-message i {
    font-size: 60px;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.no-products-message h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.no-products-message p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-marketplace-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .mineral-grid {
        grid-template-columns: 1fr;
    }
    
    .product-admin-card .card-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .admin-marketplace-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CHAT SYSTEM STYLES - MOBILE FIRST
   Complete styling for user and admin chat modals
   ============================================ */

/* CSS Variables for consistent theming */
:root {
    --chat-primary: #256f8a;
    --chat-primary-dark: #1a4d61;
    --chat-primary-light: #3498db;
    --chat-secondary: #113745;
    --chat-success: #2ecc71;
    --chat-danger: #e74c3c;
    --chat-warning: #f39c12;
    --chat-dark: #2c3e50;
    --chat-gray: #7f8c8d;
    --chat-light-gray: #ecf0f1;
    --chat-white: #ffffff;
    --chat-black: #333333;
    --chat-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --chat-shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    --chat-border-radius: 12px;
    --chat-border-radius-sm: 8px;
    --chat-transition: all 0.3s ease;
}

/* ============================================
   BASE MODAL STYLES
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--chat-white);
    margin: 0 auto;
    padding: 0;
    width: 95%;
    max-width: 500px;
    height: 90vh;
    border-radius: var(--chat-border-radius);
    box-shadow: var(--chat-shadow-lg);
    animation: modalSlideUp 0.3s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Tablet and Desktop modal sizing */
@media (min-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 600px;
        height: 85vh;
    }
}

@media (min-width: 1024px) {
    .modal-content {
        max-width: 800px;
    }
}

/* Admin chat modal - larger for desktop */
#admin-chat-modal .modal-content {
    max-width: 1200px;
    height: 90vh;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button - consistent positioning */
.modal .close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--chat-secondary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    border: none;
    z-index: 1001;
    transition: var(--chat-transition);
}

.modal .close-modal:hover {
    background: var(--chat-danger);
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .modal .close-modal {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* ============================================
   CHAT CONTAINER - USER CHAT
   ============================================ */

#user-chat-modal .modal-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.admin-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Chat Header */
.chat-header {
    padding: 16px;
    background: linear-gradient(135deg, var(--chat-primary), var(--chat-secondary));
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.chat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.chat-title > span {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-title > span i {
    font-size: 20px;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.status-indicator.online {
    background-color: var(--chat-success);
    box-shadow: 0 0 5px var(--chat-success);
}

.status-indicator.offline {
    background-color: var(--chat-gray);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* Chat Messages Area */
.admin-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fa;
}

/* Message Bubbles - Mobile First */
.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: messageAppear 0.2s ease-out;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Support/Admin Messages (Left) */
.support-message {
    align-self: flex-start;
}

.support-message .message-content {
    background: linear-gradient(135deg, var(--chat-primary), var(--chat-secondary));
    color: white;
    border-radius: 18px 18px 18px 4px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: var(--chat-shadow);
}

/* User Messages (Right) */
.user-message {
    align-self: flex-end;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--chat-primary-light), var(--chat-primary));
    color: white;
    border-radius: 18px 18px 4px 18px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: var(--chat-shadow);
}

.message-time {
    font-size: 10px;
    color: var(--chat-gray);
    margin-top: 4px;
    margin-left: 8px;
    margin-right: 8px;
}

.support-message .message-time {
    text-align: left;
}

.user-message .message-time {
    text-align: right;
}

/* Tablet and Desktop - message width adjustments */
@media (min-width: 768px) {
    .message {
        max-width: 75%;
    }
    
    .support-message .message-content,
    .user-message .message-content {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* Quick Options (User Chat) */
.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid var(--chat-light-gray);
    flex-shrink: 0;
}

.quick-option {
    background: var(--chat-light-gray);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--chat-dark);
    cursor: pointer;
    transition: var(--chat-transition);
    white-space: nowrap;
}

.quick-option:hover {
    background: var(--chat-primary);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .quick-options {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 10px 12px;
        -webkit-overflow-scrolling: touch;
    }
    
    .quick-option {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Chat Input Area - Minimalist Design */
.chat-footer {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid var(--chat-light-gray);
    flex-shrink: 0;
}

.chat-footer.minimalist {
    padding: 12px 16px;
}

.chat-footer .input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--chat-light-gray);
    border-radius: 24px;
    padding: 6px 12px;
    transition: var(--chat-transition);
}

.chat-footer .input-wrapper:focus-within {
    background: white;
    box-shadow: 0 0 0 2px var(--chat-primary-light);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    max-height: 80px;
    font-family: inherit;
    outline: none;
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--chat-gray);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: var(--chat-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--chat-primary);
}

.chat-send {
    background: var(--chat-primary);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--chat-transition);
}

.chat-send:hover {
    background: var(--chat-primary-dark);
    transform: scale(1.05);
}

/* ============================================
   ADMIN CHAT LAYOUT (Desktop Optimized)
   ============================================ */

#admin-chat-modal .modal-content {
    max-width: 1200px;
    width: 95%;
}

.admin-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Admin Chat Two-Column Layout */
@media (min-width: 768px) {
    .admin-chat-container {
        flex-direction: row;
    }
    
    .admin-chat-sidebar {
        width: 300px;
        border-right: 1px solid var(--chat-light-gray);
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
    }
    
    .admin-chat-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
}

@media (min-width: 1024px) {
    .admin-chat-sidebar {
        width: 350px;
    }
}

/* Chat Search */
.chat-search {
    padding: 16px;
    border-bottom: 1px solid var(--chat-light-gray);
    flex-shrink: 0;
}

.chat-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--chat-light-gray);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: var(--chat-transition);
}

.chat-search input:focus {
    border-color: var(--chat-primary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Chat Users List */
.chat-users-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.chat-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--chat-transition);
    border-left: 3px solid transparent;
}

.chat-user-item:hover {
    background: var(--chat-light-gray);
}

.chat-user-item.active {
    background: rgba(52, 152, 219, 0.1);
    border-left-color: var(--chat-primary);
}

.user-chat-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: var(--chat-dark);
    margin-bottom: 4px;
    font-size: 14px;
}

.last-message {
    font-size: 12px;
    color: var(--chat-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-meta {
    text-align: right;
    flex-shrink: 0;
    margin-left: 10px;
}

.last-seen {
    font-size: 10px;
    color: var(--chat-gray);
    margin-bottom: 4px;
}

.unread-count {
    background: var(--chat-danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

/* Admin Chat Header */
.admin-chat-header {
    padding: 16px;
    background: var(--chat-white);
    border-bottom: 1px solid var(--chat-light-gray);
    flex-shrink: 0;
}

.no-chat-selected {
    text-align: center;
    padding: 40px 20px;
    color: var(--chat-gray);
}

.no-chat-selected i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-chat-selected h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--chat-dark);
}

.no-chat-selected p {
    font-size: 14px;
}

.chat-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Admin Chat Messages */
#admin-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fa;
}

/* Admin Message Styles */
.admin-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: messageAppear 0.2s ease-out;
}

.admin-message.admin {
    align-self: flex-start;
}

.admin-message.user {
    align-self: flex-end;
}

.admin-message .message-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: var(--chat-shadow);
}

.admin-message.admin .message-bubble {
    background: linear-gradient(135deg, var(--chat-primary), var(--chat-secondary));
    color: white;
    border-radius: 18px 18px 18px 4px;
}

.admin-message.user .message-bubble {
    background: linear-gradient(135deg, var(--chat-primary-light), var(--chat-primary));
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.admin-message .message-time {
    font-size: 10px;
    color: var(--chat-gray);
    margin-top: 4px;
}

/* Quick Responses (Admin) */
.quick-responses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: var(--chat-white);
    border-bottom: 1px solid var(--chat-light-gray);
    flex-shrink: 0;
}

.quick-response {
    background: var(--chat-light-gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--chat-dark);
    cursor: pointer;
    transition: var(--chat-transition);
    white-space: nowrap;
}

.quick-response:hover {
    background: var(--chat-primary);
    color: white;
}

@media (max-width: 768px) {
    .quick-responses {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .quick-response {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Admin Chat Input */
#admin-chat-input {
    flex-shrink: 0;
}

.admin-chat-input {
    background: white;
    border-top: 1px solid var(--chat-light-gray);
}

.admin-chat-input .chat-footer {
    padding: 12px 16px;
}

.admin-chat-input .chat-footer textarea {
    flex: 1;
    border: 1px solid var(--chat-light-gray);
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    outline: none;
    transition: var(--chat-transition);
}

.admin-chat-input .chat-footer textarea:focus {
    border-color: var(--chat-primary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.admin-chat-input .chat-footer {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

/* ============================================
   CHAT BUTTON (Floating Action Button)
   ============================================ */

.chat-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--chat-primary), var(--chat-secondary));
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: var(--chat-shadow-lg);
    transition: var(--chat-transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.chat-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--chat-danger);
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chat-pulse-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--chat-primary);
    animation: pulse-ring 1.5s infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Tablet - adjust chat button position */
@media (min-width: 768px) {
    .chat-button {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
}

/* Desktop - keep at bottom right */
@media (min-width: 1024px) {
    .chat-button {
        bottom: 40px;
        right: 40px;
    }
}

/* ============================================
   BOTTOM BAR INTEGRATION
   ============================================ */

.bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    padding: 8px 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--chat-gray);
    text-decoration: none;
    font-size: 12px;
    transition: var(--chat-transition);
    padding: 6px 12px;
    border-radius: 8px;
}

.bottom-item .bottom-icon {
    font-size: 20px;
}

.bottom-item.active {
    color: var(--chat-primary);
    background: rgba(52, 152, 219, 0.1);
}

.bottom-item:hover {
    color: var(--chat-primary);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .bottombar {
        display: none;
    }
}

/* ============================================
   SCROLLBAR STYLES
   ============================================ */

.admin-chat-messages::-webkit-scrollbar,
.chat-users-list::-webkit-scrollbar,
.admin-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.admin-chat-messages::-webkit-scrollbar-track,
.chat-users-list::-webkit-scrollbar-track,
.admin-chat-messages::-webkit-scrollbar-track {
    background: var(--chat-light-gray);
    border-radius: 10px;
}

.admin-chat-messages::-webkit-scrollbar-thumb,
.chat-users-list::-webkit-scrollbar-thumb,
.admin-chat-messages::-webkit-scrollbar-thumb {
    background: var(--chat-primary);
    border-radius: 10px;
}

.admin-chat-messages::-webkit-scrollbar-thumb:hover,
.chat-users-list::-webkit-scrollbar-thumb:hover,
.admin-chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--chat-primary-dark);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Loading state for chat */
.chat-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--chat-gray);
}

.chat-loading i {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty state for chat users */
.no-users {
    text-align: center;
    padding: 40px 20px;
    color: var(--chat-gray);
}

.no-users i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --chat-white: #1e2a3a;
        --chat-light-gray: #2c3e50;
        --chat-dark: #ecf0f1;
        --chat-gray: #bdc3c7;
    }
    
    #user-chat-modal .modal-content {
        background: linear-gradient(135deg, #1a2530 0%, #1e2a3a 100%);
    }
    
    .admin-chat-messages {
        background: #1a2530;
    }
    
    .quick-option,
    .quick-response {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .chat-footer .input-wrapper {
        background: #2c3e50;
    }
    
    .chat-footer .input-wrapper:focus-within {
        background: #34495e;
    }
    
    .chat-input {
        color: #ecf0f1;
    }
    
    .chat-input::placeholder {
        color: #95a5a6;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .chat-button,
    .message,
    .modal-content,
    .status-indicator,
    .chat-pulse-effect,
    .quick-option,
    .quick-response {
        animation: none !important;
        transition: none !important;
    }
    
    .status-indicator {
        animation: none !important;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .chat-user-item,
    .quick-option,
    .quick-response,
    .bottom-item,
    .chat-send,
    .icon-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .chat-user-item {
        padding: 12px 16px;
    }
}

/* VIP Marketplace Styles */
.vip-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

.vip-description {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    border-left: 4px solid #ffd700;
}

.vip-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.vip-package-card {
    background: linear-gradient(135deg, #fff, #fff8f0);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.vip-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #ffd700;
}

.vip-package-card.inactive {
    opacity: 0.6;
}

.vip-package-card .vip-badge-corner {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.vip-package-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.vip-package-media img,
.vip-package-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vip-package-card:hover .vip-package-media img,
.vip-package-card:hover .vip-package-media video {
    transform: scale(1.05);
}

.vip-package-media iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.vip-package-icon {
    position: absolute;
    bottom: -25px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.vip-package-content {
    padding: 30px 20px 20px;
}

.vip-package-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.vip-package-description {
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.vip-package-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.vip-detail-item {
    flex: 1;
    min-width: 100px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
}

.vip-detail-item .detail-label {
    font-size: 11px;
    color: #7f8c8d;
    display: block;
}

.vip-detail-item .detail-value {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.vip-return-rates {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    color: white;
}

.vip-rate {
    flex: 1;
    text-align: center;
}

.vip-rate .rate-label {
    font-size: 11px;
    opacity: 0.8;
}

.vip-rate .rate-value {
    font-size: 20px;
    font-weight: bold;
}

.vip-package-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.vip-benefit-tag {
    background: #e8f4fc;
    color: #256f8a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
}

.vip-package-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.btn-vip-details,
.btn-vip-invest {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-vip-details {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-vip-details:hover {
    background: #bdc3c7;
}

.btn-vip-invest {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #333;
}

.btn-vip-invest:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Admin VIP Stats */
.admin-vip-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-vip-stats .stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-vip-stats .stat-icon.vip-total { background: #3498db20; color: #3498db; }
.admin-vip-stats .stat-icon.vip-active { background: #27ae6020; color: #27ae60; }
.admin-vip-stats .stat-icon.vip-invested { background: #9b59b620; color: #9b59b6; }

/* Media Input Group */
.media-input-group {
    display: flex;
    gap: 10px;
}

.media-input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.media-input-group select {
    width: 120px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.media-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.media-preview img,
.media-preview video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

/* VIP Modal Styles */
.vip-package-full-details {
    padding: 10px;
}

.vip-package-full-details .detail-section {
    margin-bottom: 20px;
}

.vip-package-full-details .detail-section h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-package-full-details .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .vip-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .vip-package-details {
        flex-direction: column;
    }
    
    .vip-return-rates {
        flex-direction: column;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .media-input-group {
        flex-direction: column;
    }
    
    .media-input-group select {
        width: 100%;
    }
}

/* VIP Badge in Sidebar */
.sidebar-badge.vip-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    animation: vipBadgePulse 2s infinite;
}

@keyframes vipBadgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Active VIP nav link styling */
.nav-link.active .vip-badge {
    background: linear-gradient(135deg, #fff, #ffed4e);
    color: #333;
}

/* VIP Marketplace Styles */
.vip-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: bold;
}

.section-subtitle {
    color: #7f8c8d;
    margin-top: 5px;
    font-size: 14px;
}

.vip-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.vip-package-card {
    background: linear-gradient(135deg, #fff, #fff8f0);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
}

.vip-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #ffd700;
}

.vip-package-card.selected {
    border-color: #27ae60;
    box-shadow: 0 5px 25px rgba(39, 174, 96, 0.2);
}

.vip-package-card .vip-corner-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.vip-package-media {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.vip-package-media img,
.vip-package-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vip-package-card:hover .vip-package-media img,
.vip-package-card:hover .vip-package-media video {
    transform: scale(1.05);
}

.vip-package-media iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
}

.vip-package-icon {
    position: absolute;
    bottom: -25px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.vip-package-content {
    padding: 30px 20px 20px;
}

.vip-package-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
}

.vip-package-description {
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.vip-package-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.vip-stat {
    flex: 1;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
}

.vip-stat .stat-label {
    font-size: 11px;
    color: #7f8c8d;
    display: block;
}

.vip-stat .stat-value {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}

.vip-return-badge {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    padding: 12px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    color: white;
}

.return-item {
    flex: 1;
    text-align: center;
}

.return-item .return-label {
    font-size: 10px;
    opacity: 0.8;
}

.return-item .return-value {
    font-size: 18px;
    font-weight: bold;
}

.vip-benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.vip-benefit {
    background: #e8f4fc;
    color: #256f8a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
}

.btn-vip-select {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #333;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-vip-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* VIP Investment Modal Styles */
.quick-amounts-vip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-amount-vip {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #000;
}

.quick-amount-vip:hover {
    background: #ffd700;
    border-color: #ffd700;
    transform: translateY(-2px);
}

.quick-amount-vip.active {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.slider-value {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.slider-value input {
    width: 80px;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.investment-calculator-vip {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.investment-calculator-vip h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.calc-row.total {
    border-bottom: none;
    font-weight: bold;
    color: #27ae60;
}

.calc-row.grand-total {
    border-top: 2px solid #e0e0e0;
    margin-top: 5px;
    padding-top: 12px;
    font-weight: bold;
    font-size: 16px;
    color: #9b59b6;
}

.warning-message {
    background: #f8d7da;
    border-left: 4px solid #e74c3c;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #721c24;
    margin-top: 15px;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Success Modal */
.success-icon {
    font-size: 80px;
    color: #ffd700;
    margin-bottom: 20px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.success-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.success-details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.success-note {
    background: #e8f4fc;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #256f8a;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .vip-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .vip-return-badge {
        flex-direction: column;
        gap: 8px;
    }
    
    .return-item {
        display: flex;
        justify-content: space-between;
    }
    
    .quick-amounts-vip {
        justify-content: center;
    }
}

/* ========================================
   INVESTMENT CARD - MOBILE FIRST APPROACH
   ======================================== */

/* Base Card Container - Mobile First */
.mineral-investment-card {
    background: var(--background-card, #ffffff);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color, #e9ecef);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Active Investment Status */
.mineral-investment-card.active {
    border-left: 4px solid #2ecc71;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

/* Completed Investment Status */
.mineral-investment-card.completed {
    border-left: 4px solid #f39c12;
    background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
    opacity: 0.85;
}

/* Card Hover Effect (Desktop only) */
@media (hover: hover) {
    .mineral-investment-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
}

/* ========================================
   HEADER SECTION
   ======================================== */
.mineral-investment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mineral-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

/* Mineral Icon */
.mineral-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Color variations for different minerals */
.mineral-icon.copper { background: linear-gradient(135deg, #b87333, #8b4513); }
.mineral-icon.gold { background: linear-gradient(135deg, #f1c40f, #e67e22); }
.mineral-icon.tanzanite { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.mineral-icon.diamond { background: linear-gradient(135deg, #3498db, #2c3e50); }

/* Mineral Details */
.mineral-details {
    flex: 1;
    min-width: 0;
}

.mineral-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #2c3e50);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.investment-amount {
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    background: #f0f4ff;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

/* Investment Status Badge */
.investment-status {
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-active {
    background: #2ecc71;
    color: white;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
}

.status-completed {
    background: #f39c12;
    color: white;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

/* ========================================
   INVESTMENT DETAILS SECTION
   ======================================== */
.investment-details {
    background: var(--bg-light, #f8f9fa);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.investment-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.8125rem;
}

.investment-detail-label {
    color: var(--text-secondary, #7f8c8d);
    font-weight: 500;
}

.investment-detail-value {
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
    text-align: right;
}

.investment-detail-value.amount {
    color: #667eea;
    font-size: 0.875rem;
}

.investment-detail-value.profit {
    color: #2ecc71;
}

.investment-detail-value.profit.positive {
    color: #2ecc71;
}

.investment-detail-value.profit.negative {
    color: #e74c3c;
}

.investment-detail-value.expected {
    color: #f39c12;
}

.investment-detail-value.total-received {
    color: #9b59b6;
    font-size: 0.875rem;
}

/* ========================================
   PROGRESS SECTION (Active Investments)
   ======================================== */
.investment-progress-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 0.75rem;
    border-radius: 12px;
    margin-top: 0.25rem;
}

.investment-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
}

.investment-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.investment-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease-out;
}

.investment-time-remaining {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: var(--text-secondary, #7f8c8d);
}

.investment-time-remaining i {
    font-size: 0.625rem;
    color: #667eea;
}

/* ========================================
   COMPLETION INFO SECTION
   ======================================== */
.investment-completion-info {
    background: linear-gradient(135deg, #fff9e6, #ffefc9);
    padding: 0.75rem;
    border-radius: 12px;
    margin-top: 0.25rem;
}

.investment-completion-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-primary, #2c3e50);
    margin-bottom: 0.5rem;
}

.investment-completion-date i {
    color: #f39c12;
}

.investment-success-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #2ecc71;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ACTION BUTTONS SECTION
   ======================================== */
.investment-actions {
    display: flex;
    gap: 0.625rem;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color, #e9ecef);
}

.btn-view-details,
.btn-delete {
    flex: 1;
    padding: 0.625rem 0.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 40px;
}

.btn-view-details {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-view-details:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.btn-delete:active,
.btn-view-details:active {
    transform: translateY(0);
}

/* ========================================
   EMPTY STATE STYLES
   ======================================== */
.empty-investments {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--background-card, #ffffff);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.empty-investments h3 {
    font-size: 1.125rem;
    color: var(--text-primary, #2c3e50);
    margin-bottom: 0.5rem;
}

.empty-investments p {
    font-size: 0.8125rem;
    color: var(--text-secondary, #7f8c8d);
    margin-bottom: 1.25rem;
}

.empty-investments .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

/* ========================================
   GRID LAYOUT FOR INVESTMENTS
   ======================================== */
.investments-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Tablet Styles */
@media (min-width: 640px) {
    .investments-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .mineral-investment-card {
        padding: 1rem;
        height: 100%;
    }
    
    .mineral-icon {
        width: 48px;
        height: 48px;
        font-size: 1.375rem;
    }
    
    .mineral-name {
        font-size: 1.0625rem;
    }
    
    .investment-detail-row {
        font-size: 0.875rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .investments-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .mineral-investment-card {
        padding: 1.25rem;
    }
    
    .mineral-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
    
    .mineral-name {
        font-size: 1.125rem;
    }
    
    .investment-amount {
        font-size: 0.8125rem;
    }
    
    .investment-details {
        padding: 0.875rem;
    }
    
    .investment-detail-row {
        font-size: 0.875rem;
    }
    
    .btn-view-details,
    .btn-delete {
        font-size: 0.8125rem;
        padding: 0.625rem 0.75rem;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .investments-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .mineral-investment-card {
        padding: 1.5rem;
    }
}

/* ========================================
   MOBILE TOUCH OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    .btn-view-details,
    .btn-delete {
        min-height: 44px;
    }
    
    .mineral-investment-card {
        cursor: pointer;
    }
    
    .mineral-investment-card:active {
        transform: scale(0.98);
        transition: transform 0.05s;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --background-card: #1e2a3a;
        --border-color: #2c3e50;
        --text-primary: #ecf0f1;
        --text-secondary: #bdc3c7;
        --bg-light: #2c3e50;
    }
    
    .mineral-investment-card.active {
        background: linear-gradient(135deg, #1e2a3a 0%, #1a252f 100%);
    }
    
    .mineral-investment-card.completed {
        background: linear-gradient(135deg, #1e2a3a 0%, #2d2419 100%);
    }
    
    .investment-progress-section {
        background: linear-gradient(135deg, #2c3e50, #34495e);
    }
    
    .investment-completion-info {
        background: linear-gradient(135deg, #3d321f, #4a3c25);
    }
}

/* ========================================
   ACCESSIBILITY - REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .mineral-investment-card,
    .mineral-icon,
    .btn-view-details,
    .btn-delete,
    .investment-progress-fill {
        transition: none;
    }
    
    .mineral-investment-card:hover {
        transform: none;
    }
    
    @keyframes slideIn {
        from { opacity: 1; }
        to { opacity: 1; }
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .mineral-investment-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .investment-actions {
        display: none;
    }
    
    .investment-status {
        background: #f8f9fa !important;
        color: #000 !important;
        border: 1px solid #ccc;
    }
    
    .mineral-icon {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
}

/* Enhanced Investment Cards CSS */
.enhanced-investment-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.enhanced-investment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.enhanced-investment-card.active {
    border-left: 4px solid #27ae60;
}

.enhanced-investment-card.completed {
    border-left: 4px solid #f39c12;
    opacity: 0.9;
}

.enhanced-investment-card.vip-card {
    background: linear-gradient(135deg, #fff9f0, #fff5e6);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.vip-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #333;
    padding: 5px 30px;
    font-size: 11px;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.vip-ribbon i {
    margin-right: 5px;
}

/* Card Header */
.enhanced-investment-card .card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.investment-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.vip-icon-bg {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.regular-icon-bg {
    background: linear-gradient(135deg, #256f8a, #3ba0c9);
}

.investment-title {
    flex: 1;
}

.investment-title h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.investment-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
}

.investment-type-badge.vip {
    background: rgba(255, 215, 0, 0.2);
    color: #d4a000;
}

.investment-type-badge.regular {
    background: rgba(37, 111, 138, 0.1);
    color: #256f8a;
}

.investment-status {
    margin-left: auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.status-completed {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

/* Card Body */
.enhanced-investment-card .card-body {
    padding: 20px;
}

.investment-amount-section {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    margin-bottom: 20px;
}

.amount-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.amount-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.amount-detail {
    font-size: 11px;
    color: #95a5a6;
    margin-top: 5px;
}

/* Investment Metrics */
.investment-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

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

.metric-icon {
    width: 40px;
    height: 40px;
    background: rgba(37, 111, 138, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #256f8a;
    font-size: 18px;
}

.metric-info {
    flex: 1;
}

.metric-label {
    display: block;
    font-size: 11px;
    color: #7f8c8d;
    margin-bottom: 2px;
}

.metric-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.metric-sub {
    display: block;
    font-size: 10px;
    color: #95a5a6;
}

.metric-value.profit.positive {
    color: #27ae60;
}

.metric-value.profit.negative {
    color: #e74c3c;
}

/* Progress Bar */
.investment-progress {
    margin: 20px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: #7f8c8d;
}

.progress-bar-container {
    height: 8px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    color: #95a5a6;
}

.progress-start, .progress-end {
    display: flex;
    align-items: center;
    gap: 5px;
}

.time-remaining {
    margin-top: 10px;
    padding: 8px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #3498db;
}

/* Completed Info */
.investment-completed-info {
    background: linear-gradient(135deg, #fef9e7, #fff8e7);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.completed-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #f39c12;
    font-weight: 600;
    margin-bottom: 10px;
}

.completed-details {
    font-size: 13px;
}

.completed-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.final-return {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(243, 156, 18, 0.2);
}

.final-return strong {
    color: #27ae60;
    font-size: 16px;
}

/* VIP Benefits Preview */
.vip-benefits-preview {
    background: rgba(255, 215, 0, 0.08);
    border-radius: 12px;
    padding: 12px;
    margin-top: 15px;
}

.benefits-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #d4a000;
    margin-bottom: 10px;
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.benefit-tag {
    background: rgba(255, 215, 0, 0.15);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    color: #d4a000;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.benefit-tag.more {
    background: rgba(0, 0, 0, 0.05);
    color: #7f8c8d;
}

/* Card Footer */
.enhanced-investment-card .card-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-view-details,
.btn-cancel-investment,
.btn-delete-record,
.btn-share-investment {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-view-details {
    background: linear-gradient(135deg, #256f8a, #3ba0c9);
    color: white;
}

.btn-view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 111, 138, 0.3);
}

.btn-cancel-investment {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-cancel-investment:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

.btn-delete-record {
    background: rgba(149, 165, 166, 0.1);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.btn-delete-record:hover {
    background: #95a5a6;
    color: white;
    transform: translateY(-2px);
}

.btn-share-investment {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.btn-share-investment:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* Categories */
.investments-category {
    margin-bottom: 30px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.vip-category .category-icon {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: white;
}

.regular-category .category-icon {
    background: linear-gradient(135deg, #256f8a, #3ba0c9);
    color: white;
}

.category-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.category-count {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #7f8c8d;
}

.investments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

/* Empty State */
.empty-investments {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 60px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-investments h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.empty-investments p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Details Modal */
.investment-details-modal {
    max-width: 700px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.investment-details-modal.vip-details {
    border-top: 4px solid #ffd700;
}

.investment-details-modal.regular-details {
    border-top: 4px solid #256f8a;
}

.details-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.details-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.details-icon.vip {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.details-icon.regular {
    background: linear-gradient(135deg, #256f8a, #3ba0c9);
}

.details-title {
    flex: 1;
}

.details-title h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #2c3e50;
}

.vip-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.regular-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 111, 138, 0.1);
    color: #256f8a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 25px;
}

.detail-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.detail-card.full-width {
    grid-column: span 2;
}

.detail-card h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.detail-row.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.profit-positive {
    color: #27ae60;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 10px;
    font-size: 13px;
}

.benefit-item i {
    color: #27ae60;
}

.profit-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 10px;
}

.breakdown-item.total {
    background: rgba(39, 174, 96, 0.1);
    font-weight: bold;
}

.details-actions {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.details-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close {
    background: #95a5a6;
    color: white;
}

.btn-share {
    background: #3498db;
    color: white;
}

.btn-cancel {
    background: #e74c3c;
    color: white;
}

.btn-delete {
    background: #7f8c8d;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .investments-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-card.full-width {
        grid-column: span 1;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .details-header {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
    
    .empty-actions {
        flex-direction: column;
    }
    
    .details-actions {
        flex-direction: column;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .enhanced-investment-card {
        background: linear-gradient(135deg, #1a1a2e, #16213e);
    }
    
    .investment-title h4,
    .amount-value,
    .metric-value,
    .category-title {
        color: #ecf0f1;
    }
    
    .detail-card {
        background: #1a1a2e;
    }
    
    .details-header {
        background: linear-gradient(135deg, #1a1a2e, #16213e);
    }
    
    .benefit-item {
        background: #16213e;
    }
}


/* Social Links & Verification Styles */
.social-links-section, .verification-settings-section, .verification-stats-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.links-list {
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
}

.link-item.inactive {
    opacity: 0.6;
    border-left-color: #95a5a6;
}

.link-info {
    flex: 1;
}

.link-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-url {
    font-size: 12px;
    color: #7f8c8d;
    word-break: break-all;
}

.link-actions {
    display: flex;
    gap: 8px;
}

.link-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.link-actions button:hover {
    background: rgba(0,0,0,0.1);
}

.link-actions .edit-link:hover { color: #3498db; }
.link-actions .delete-link:hover { color: #e74c3c; }

/* User Verification Modal Styles */
.verification-links-list {
    margin: 20px 0;
}

.verification-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.verification-link-item.verified {
    background: #d4edda;
    border-color: #28a745;
}

.verification-link-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.verification-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3498db;
    color: white;
    font-size: 18px;
}

.verification-link-details {
    flex: 1;
}

.verification-link-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.verification-link-desc {
    font-size: 12px;
    color: #7f8c8d;
}

.verification-link-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-follow-link {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-follow-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-follow-link.verified {
    background: #28a745;
    cursor: default;
}

.btn-follow-link.verified:hover {
    transform: none;
}

.verification-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
}

.verification-status.pending {
    background: #fff3cd;
    color: #856404;
}

.verification-status.verified {
    background: #d4edda;
    color: #155724;
}

.verification-progress {
    margin: 20px 0;
    text-align: center;
}

.progress-bar-container {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.verification-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Admin menu item for social links */
.nav-link.social-links-nav {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    margin-top: 10px;
}

.nav-link.social-links-nav:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: bold;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.form-help {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 5px;
    display: block;
}

/* Admin VIP Management Styles */
.admin-vip-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-vip-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.admin-vip-header h2 {
    color: #2c3e50;
    font-size: 24px;
    margin: 0 0 5px 0;
}

.admin-vip-header p {
    color: #7f8c8d;
    margin: 0;
}

.admin-vip-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.admin-vip-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.admin-vip-card .card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.btn-toggle-form {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #7f8c8d;
    transition: transform 0.3s;
}

.btn-toggle-form.active {
    transform: rotate(180deg);
}

.vip-package-form {
    padding: 20px;
    background: #fff;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    color: #7f8c8d;
    font-size: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-refresh {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-refresh:hover {
    background: #2980b9;
}

/* Admin VIP Grid */
.admin-vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
}

.admin-vip-package-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.admin-vip-package-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.admin-vip-package-card.inactive {
    opacity: 0.7;
    border-color: #e74c3c;
}

.admin-vip-package-card .package-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.package-status.active {
    background: #27ae60;
    color: white;
}

.package-status.inactive {
    background: #e74c3c;
    color: white;
}

.admin-vip-package-card .package-header {
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    gap: 12px;
}

.package-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.package-name {
    flex: 1;
}

.package-name h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #2c3e50;
}

.package-name p {
    margin: 0;
    font-size: 12px;
    color: #7f8c8d;
}

.admin-vip-package-card .package-details {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.detail-row .label {
    color: #7f8c8d;
}

.detail-row .value {
    font-weight: 600;
    color: #2c3e50;
}

.benefits-preview {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.benefits-preview .benefit-tag {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin: 3px;
}

.admin-vip-package-card .package-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.package-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-edit-package {
    background: #3498db;
    color: white;
}

.btn-edit-package:hover {
    background: #2980b9;
}

.btn-toggle-status {
    background: #f39c12;
    color: white;
}

.btn-toggle-status:hover {
    background: #e67e22;
}

.btn-delete-package {
    background: #e74c3c;
    color: white;
}

.btn-delete-package:hover {
    background: #c0392b;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.empty-state h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .admin-vip-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .package-actions {
        flex-direction: column;
    }
}

/* Admin VIP Management Styles */
.vip-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.vip-admin-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.vip-admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vip-admin-card.inactive {
    opacity: 0.7;
    background: #f8f9fa;
}

.vip-admin-card .card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    gap: 15px;
}

.vip-admin-card .package-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.vip-admin-card .package-info {
    flex: 1;
}

.vip-admin-card .package-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.vip-admin-card .card-actions {
    display: flex;
    gap: 8px;
}

.vip-admin-card .btn-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.vip-admin-card .btn-icon.edit:hover {
    background: #3498db;
}

.vip-admin-card .btn-icon.delete:hover {
    background: #e74c3c;
}

.vip-admin-card .card-body {
    padding: 20px;
}

.vip-admin-card .package-details {
    margin-bottom: 15px;
}

.vip-admin-card .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.vip-admin-card .detail-label {
    color: #7f8c8d;
    font-size: 12px;
}

.vip-admin-card .detail-value {
    font-weight: 600;
    color: #2c3e50;
}

.vip-admin-card .package-description {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
}

.vip-admin-card .package-benefits {
    margin: 15px 0;
}

.vip-admin-card .package-benefits strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #7f8c8d;
}

.vip-admin-card .benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vip-admin-card .benefit-tag {
    background: #e8f4fc;
    color: #256f8a;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
}

.vip-admin-card .card-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.vip-admin-card .btn-toggle-status,
.vip-admin-card .btn-view {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vip-admin-card .btn-toggle-status {
    background: #e74c3c;
    color: white;
}

.vip-admin-card .btn-toggle-status:hover {
    background: #c0392b;
}

.vip-admin-card .btn-view {
    background: #3498db;
    color: white;
}

.vip-admin-card .btn-view:hover {
    background: #2980b9;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.active {
    background: #27ae60;
    color: white;
}

.status-badge.inactive {
    background: #95a5a6;
    color: white;
}

/* No data message */
.no-data-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
}

.no-data-message i {
    font-size: 60px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-data-message h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.no-data-message p {
    color: #7f8c8d;
}

/* Admin VIP Stats */
.admin-vip-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-vip-stats .stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.admin-vip-stats .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.admin-vip-stats .stat-icon.vip-total { background: #3498db20; color: #3498db; }
.admin-vip-stats .stat-icon.vip-active { background: #27ae6020; color: #27ae60; }
.admin-vip-stats .stat-icon.vip-inactive { background: #e74c3c20; color: #e74c3c; }
.admin-vip-stats .stat-icon.vip-invested { background: #9b59b620; color: #9b59b6; }

.admin-vip-stats .stat-info h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.admin-vip-stats .stat-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #7f8c8d;
}

/* Admin Toolbar */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-toolbar .search-box {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.admin-toolbar .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.admin-toolbar .search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* Loading state */
.loading-state {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .vip-admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-vip-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-toolbar {
        flex-direction: column;
    }
    
    .admin-toolbar .search-box {
        width: 100%;
    }
    
    .filter-controls {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .vip-admin-card .card-header {
        flex-wrap: wrap;
    }
    
    .vip-admin-card .card-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .admin-vip-stats {
        grid-template-columns: 1fr;
    }
    
    .vip-admin-card .card-footer {
        flex-direction: column;
    }
}

/* Admin VIP Management Styles */
.admin-vip-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-vip-stats .stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.admin-vip-stats .stat-card:hover {
    transform: translateY(-3px);
}

.admin-vip-stats .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.admin-vip-stats .stat-icon.vip-total { background: #3498db20; color: #3498db; }
.admin-vip-stats .stat-icon.vip-active { background: #27ae6020; color: #27ae60; }
.admin-vip-stats .stat-icon.vip-inactive { background: #e74c3c20; color: #e74c3c; }
.admin-vip-stats .stat-icon.vip-invested { background: #9b59b620; color: #9b59b6; }

.admin-vip-stats .stat-info h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.admin-vip-stats .stat-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #7f8c8d;
}

.vip-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.vip-admin-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.vip-admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.vip-admin-card.inactive {
    opacity: 0.7;
    background: #f8f9fa;
}

.vip-admin-card .card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    gap: 15px;
}

.vip-admin-card .package-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.vip-admin-card .package-info {
    flex: 1;
}

.vip-admin-card .package-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.vip-admin-card .card-actions {
    display: flex;
    gap: 8px;
}

.vip-admin-card .btn-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: rgba(255,255,255,0.2);
    color: white;
}

.vip-admin-card .btn-icon.edit:hover {
    background: #3498db;
}

.vip-admin-card .btn-icon.delete:hover {
    background: #e74c3c;
}

.vip-admin-card .card-body {
    padding: 20px;
}

.vip-admin-card .package-details {
    margin-bottom: 15px;
}

.vip-admin-card .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.vip-admin-card .detail-label {
    color: #7f8c8d;
    font-size: 12px;
}

.vip-admin-card .detail-value {
    font-weight: 600;
    color: #2c3e50;
}

.vip-admin-card .package-description {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
}

.vip-admin-card .package-benefits {
    margin: 15px 0;
}

.vip-admin-card .package-benefits strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #7f8c8d;
}

.vip-admin-card .benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vip-admin-card .benefit-tag {
    background: #e8f4fc;
    color: #256f8a;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
}

.vip-admin-card .benefit-tag.more {
    background: #ecf0f1;
    color: #7f8c8d;
}

.vip-admin-card .package-media {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.vip-admin-card .package-media strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #7f8c8d;
}

.vip-admin-card .media-preview {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.vip-admin-card .card-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.vip-admin-card .btn-toggle-status,
.vip-admin-card .btn-view {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vip-admin-card .btn-toggle-status {
    background: #e74c3c;
    color: white;
}

.vip-admin-card .btn-toggle-status:hover {
    background: #c0392b;
}

.vip-admin-card .btn-view {
    background: #3498db;
    color: white;
}

.vip-admin-card .btn-view:hover {
    background: #2980b9;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Data Message */
.no-data-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
}

.no-data-message i {
    font-size: 60px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-data-message h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.no-data-message p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Admin Toolbar */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-toolbar .search-box {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.admin-toolbar .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.admin-toolbar .search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.btn-refresh {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-refresh:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-vip-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vip-admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-toolbar {
        flex-direction: column;
    }
    
    .admin-toolbar .search-box {
        width: 100%;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .vip-admin-card .card-header {
        flex-wrap: wrap;
    }
    
    .vip-admin-card .card-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .vip-admin-card .card-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .admin-vip-stats {
        grid-template-columns: 1fr;
    }
}

/* Admin VIP Management Styles */
.admin-vip-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-vip-stats .stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.admin-vip-stats .stat-card:hover {
    transform: translateY(-3px);
}

.admin-vip-stats .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.admin-vip-stats .stat-icon.vip-total { background: #3498db20; color: #3498db; }
.admin-vip-stats .stat-icon.vip-active { background: #27ae6020; color: #27ae60; }
.admin-vip-stats .stat-icon.vip-inactive { background: #e74c3c20; color: #e74c3c; }
.admin-vip-stats .stat-icon.vip-invested { background: #9b59b620; color: #9b59b6; }

.admin-vip-stats .stat-info h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.admin-vip-stats .stat-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #7f8c8d;
}

.vip-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.vip-admin-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.vip-admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.vip-admin-card.inactive {
    opacity: 0.7;
    background: #f8f9fa;
}

.vip-admin-card .card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    gap: 15px;
}

.vip-admin-card .package-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.vip-admin-card .package-info {
    flex: 1;
}

.vip-admin-card .package-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.vip-admin-card .card-actions {
    display: flex;
    gap: 8px;
}

.vip-admin-card .btn-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: rgba(255,255,255,0.2);
    color: white;
}

.vip-admin-card .btn-icon.edit:hover {
    background: #3498db;
}

.vip-admin-card .btn-icon.delete:hover {
    background: #e74c3c;
}

.vip-admin-card .card-body {
    padding: 20px;
}

.vip-admin-card .package-details {
    margin-bottom: 15px;
}

.vip-admin-card .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.vip-admin-card .detail-label {
    color: #7f8c8d;
    font-size: 12px;
}

.vip-admin-card .detail-value {
    font-weight: 600;
    color: #2c3e50;
}

.vip-admin-card .package-description {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
}

.vip-admin-card .package-benefits {
    margin: 15px 0;
}

.vip-admin-card .package-benefits strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #7f8c8d;
}

.vip-admin-card .benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vip-admin-card .benefit-tag {
    background: #e8f4fc;
    color: #256f8a;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
}

.vip-admin-card .benefit-tag.more {
    background: #ecf0f1;
    color: #7f8c8d;
}

.vip-admin-card .package-media {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.vip-admin-card .package-media strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #7f8c8d;
}

.vip-admin-card .media-preview {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.vip-admin-card .media-preview img,
.vip-admin-card .media-preview video {
    width: 100%;
    max-height: 100px;
    object-fit: cover;
}

.vip-admin-card .card-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.vip-admin-card .btn-toggle-status,
.vip-admin-card .btn-view {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vip-admin-card .btn-toggle-status {
    background: #e74c3c;
    color: white;
}

.vip-admin-card .btn-toggle-status:hover {
    background: #c0392b;
}

.vip-admin-card .btn-view {
    background: #3498db;
    color: white;
}

.vip-admin-card .btn-view:hover {
    background: #2980b9;
}

/* Form Styles */
.vip-form .form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.vip-form .form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.vip-form .form-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.vip-form .form-group {
    margin-bottom: 15px;
}

.vip-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.vip-form .form-group input,
.vip-form .form-group select,
.vip-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.vip-form .form-group input:focus,
.vip-form .form-group select:focus,
.vip-form .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.vip-form .form-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #7f8c8d;
}

/* Icon Selector */
.icon-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-selector input {
    flex: 1;
}

.icon-preview {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid #e0e0e0;
}

/* Media Tabs */
.media-source-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.media-tab {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.media-tab.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.media-section {
    display: none;
}

.media-section.active {
    display: block;
}

.media-input-group {
    display: flex;
    gap: 10px;
}

.media-input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.media-input-group select {
    width: 120px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.media-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.media-preview img,
.media-preview video {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
}

.no-media-message {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.no-media-message i {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* No Data Message */
.no-data-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
}

.no-data-message i {
    font-size: 60px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-data-message h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.no-data-message p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Admin Toolbar */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-toolbar .search-box {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.admin-toolbar .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.admin-toolbar .search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.btn-refresh {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-refresh:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Delete Confirmation */
.delete-confirmation {
    text-align: center;
    padding: 20px;
}

.delete-confirmation i {
    font-size: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.delete-confirmation p {
    margin-bottom: 10px;
}

.delete-warning {
    color: #e74c3c;
    font-size: 12px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #256f8a, #3ba0c9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a556b, #256f8a);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .admin-vip-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vip-admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-toolbar {
        flex-direction: column;
    }
    
    .admin-toolbar .search-box {
        width: 100%;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .vip-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .media-input-group {
        flex-direction: column;
    }
    
    .media-input-group select {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .vip-admin-card .card-header {
        flex-wrap: wrap;
    }
    
    .vip-admin-card .card-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .vip-admin-card .card-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .admin-vip-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* ==============================================
   ADMIN VIP PACKAGES MANAGEMENT - CSS
   ============================================== */

/* Main Container */
.admin-vip-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.admin-vip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-vip-header h2 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1.8rem;
}

.admin-vip-header h2 i {
    color: #f1c40f;
    font-size: 2rem;
}

/* Stats Cards Grid */
.admin-vip-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.stat-icon.primary { background: #e3f2fd; color: #1976d2; }
.stat-icon.success { background: #e8f5e9; color: #2e7d32; }
.stat-icon.warning { background: #fff3e0; color: #ef6c00; }
.stat-icon.info { background: #e0f7fa; color: #00838f; }

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
    color: #2c3e50;
}

.stat-info p {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
}

/* Buttons */
.btn-add-package {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-add-package:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46,204,113,0.3);
}

.btn-refresh {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-refresh:hover {
    background: #5a6268;
}

/* Search and Filter Bar */
.admin-vip-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #f1c40f;
    box-shadow: 0 0 0 3px rgba(241,196,15,0.1);
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* Admin VIP Cards Grid */
.admin-vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

/* Admin VIP Card */
.admin-vip-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    border: 1px solid #eef2f6;
}

.admin-vip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.admin-vip-card.active {
    border-left: 4px solid #2ecc71;
}

.admin-vip-card.inactive {
    border-left: 4px solid #e74c3c;
    opacity: 0.85;
}

.card-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-status-badge.active {
    background: #d4edda;
    color: #155724;
}

.card-status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.admin-vip-card .card-header {
    padding: 20px 20px 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.package-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.package-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.admin-vip-card .card-body {
    padding: 15px 20px;
}

.package-description {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.package-stats {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 15px;
}

.package-stats .stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

.package-stats .stat:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
}

.stat-value {
    font-weight: 700;
    color: #2c3e50;
    font-size: 13px;
}

.package-benefits-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.benefit-tag {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.benefit-tag.more {
    background: #e9ecef;
    color: #495057;
}

.admin-vip-card .card-actions {
    display: flex;
    border-top: 1px solid #eef2f6;
    background: #fafbfc;
}

.admin-vip-card .card-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    color: #495057;
}

.admin-vip-card .card-actions button:hover {
    background: rgba(0,0,0,0.03);
}

.admin-vip-card .card-actions .btn-edit-package:hover {
    color: #3498db;
}

.admin-vip-card .card-actions .btn-toggle-status:hover {
    color: #f39c12;
}

.admin-vip-card .card-actions .btn-delete-package:hover {
    color: #e74c3c;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.empty-state i {
    font-size: 70px;
    color: #f1c40f;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 25px;
}

/* Modal Styles (VIP Package Form) */
.admin-vip-modal .modal-content {
    max-width: 750px;
    border-radius: 24px;
}

.admin-vip-modal .modal-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border-radius: 24px 24px 0 0;
    padding: 20px 25px;
}

.admin-vip-modal .modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-vip-modal .modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

.form-group label i {
    margin-right: 6px;
    color: #f1c40f;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f1c40f;
    box-shadow: 0 0 0 3px rgba(241,196,15,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Benefits Input Group */
.benefits-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
}

.benefit-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.benefit-input-group .benefit-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 13px;
}

.remove-benefit-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f8d7da;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-benefit-btn:hover {
    background: #e74c3c;
    color: white;
}

.btn-add-benefit {
    background: #e9ecef;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-add-benefit:hover {
    background: #dee2e6;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-primary {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #2c3e50;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241,196,15,0.3);
}

.btn-secondary {
    background: #e9ecef;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #dee2e6;
}

/* Loading States */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #f1c40f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-vip-container {
        padding: 15px;
    }
    
    .admin-vip-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-vip-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-vip-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .admin-vip-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls {
        justify-content: stretch;
    }
    
    .filter-select {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .admin-vip-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .stat-info h3 {
        font-size: 22px;
    }
    
    .admin-vip-card .card-header {
        flex-wrap: wrap;
    }
    
    .card-actions button {
        font-size: 11px;
        padding: 10px;
    }
}

/* VIP Details Modal Styles */
.vip-details-container {
    padding: 10px;
}

.vip-details-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ffd700;
}

.vip-details-header .vip-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 40px;
    color: white;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.vip-details-header h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.vip-status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
}

.vip-status-badge.active {
    background: #27ae60;
    color: white;
}

.vip-status-badge.completed {
    background: #9b59b6;
    color: white;
}

.vip-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.vip-detail-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid #ffd700;
}

.vip-detail-card h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.vip-detail-card h4 i {
    color: #ffd700;
}

.vip-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.vip-detail-row:last-child {
    border-bottom: none;
}

.vip-detail-label {
    color: #7f8c8d;
    font-size: 13px;
}

.vip-detail-value {
    font-weight: 600;
    color: #2c3e50;
}

.vip-detail-value.profit {
    color: #27ae60;
}

.vip-detail-value.amount {
    color: #3498db;
    font-size: 16px;
}

.progress-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.progress-bar-container {
    margin: 15px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #7f8c8d;
}

.progress-bar-bg {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    border-radius: 5px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.time-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.time-item {
    text-align: center;
}

.time-label {
    font-size: 11px;
    color: #7f8c8d;
    display: block;
}

.time-value {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.benefit-item {
    background: #e8f4fc;
    color: #256f8a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.benefit-item i {
    font-size: 10px;
}

.returns-breakdown {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    padding: 15px;
    color: white;
    margin: 20px 0;
}

.returns-breakdown h4 {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.returns-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.returns-row.total {
    border-bottom: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #ffd700;
    font-size: 16px;
    font-weight: bold;
}

.cancel-warning {
    text-align: center;
}

.cancel-warning i {
    font-size: 60px;
    color: #ffd700;
    margin-bottom: 15px;
}

.cancel-warning h4 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.cancel-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.cancel-details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.warning-box {
    background: #f8d7da;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .vip-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .time-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .vip-detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .vip-detail-value {
        text-align: left;
    }
}

/* VIP Packages Management Styles */
.vip-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.vip-admin-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vip-stats-grid .stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vip-stats-grid .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.vip-stats-grid .stat-icon.total { background: #3498db20; color: #3498db; }
.vip-stats-grid .stat-icon.active { background: #27ae6020; color: #27ae60; }
.vip-stats-grid .stat-icon.investors { background: #9b59b620; color: #9b59b6; }

.vip-stats-grid .stat-info h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.vip-stats-grid .stat-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #7f8c8d;
}

.vip-search-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.vip-search-filter .search-box {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.vip-search-filter .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.vip-search-filter .search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

/* VIP Packages Grid */
.vip-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* VIP Package Card */
.vip-package-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vip-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.vip-package-card.inactive {
    opacity: 0.6;
}

/* Media Container */
.vip-media-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.vip-media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vip-media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vip-media-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.play-overlay:hover {
    background: rgba(0,0,0,0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Card Content */
.vip-card-content {
    padding: 20px;
}

.vip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vip-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.vip-icon.gold { background: linear-gradient(135deg, #ffd700, #ffb347); }
.vip-icon.platinum { background: linear-gradient(135deg, #e5e4e2, #bdc3c7); color: #333; }
.vip-icon.diamond { background: linear-gradient(135deg, #b9f2ff, #87ceeb); color: #333; }
.vip-icon.emerald { background: linear-gradient(135deg, #50c878, #2ecc71); }

.vip-price {
    text-align: right;
}

.vip-min-amount {
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
}

.vip-max-amount {
    font-size: 11px;
    color: #7f8c8d;
}

.vip-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.vip-description-text {
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.vip-stats-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.vip-stats-row:last-child {
    border-bottom: none;
}

.vip-stat-value.highlight {
    color: #ffd700;
    font-weight: bold;
}

.vip-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.vip-benefit-tag {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
}

/* Card Footer */
.vip-card-footer {
    padding: 15px 20px 20px;
    border-top: 1px solid #eee;
}

.vip-invest-btn, .vip-edit-btn, .vip-delete-btn, .vip-toggle-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vip-invest-btn {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
}

.vip-invest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.admin-buttons {
    display: flex;
    gap: 8px;
}

.admin-buttons button {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

.vip-edit-btn {
    background: #3498db;
    color: white;
}

.vip-toggle-btn {
    background: #f39c12;
    color: white;
}

.vip-delete-btn {
    background: #e74c3c;
    color: white;
}

/* Admin Card Specific */
.vip-admin-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.vip-admin-card .vip-card-header {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    padding: 15px 20px;
    margin-bottom: 0;
}

.vip-admin-card .vip-card-header .vip-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

.vip-admin-card .vip-card-header .vip-card-title {
    color: white;
    margin: 0;
    font-size: 18px;
}

.vip-admin-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.vip-admin-stat {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.vip-admin-stat .stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
}

.vip-admin-stat .stat-label {
    font-size: 10px;
    color: #7f8c8d;
}

/* Media Upload Section */
.media-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.media-tab {
    padding: 8px 16px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
}

.media-tab.active {
    background: #3498db;
    color: white;
}

.media-section {
    display: none;
}

.media-section.active {
    display: block;
}

.media-type-selector {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.media-type-selector label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.media-preview {
    margin-top: 15px;
    text-align: center;
}

.media-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
}

.media-preview video {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
}

.no-media-message {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

/* Return Calculator */
.return-calc {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.calc-row.total {
    border-top: 2px solid #ddd;
    margin-top: 5px;
    padding-top: 12px;
    font-size: 16px;
}

.error-msg {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* VIP Header */
.vip-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vip-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.vip-description {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
    border-left: 4px solid #ffd700;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px;
    background: #f8f9fa;
    border-radius: 16px;
}

.empty-state i {
    font-size: 60px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .vip-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .vip-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vip-search-filter {
        flex-direction: column;
    }
    
    .admin-buttons {
        flex-direction: column;
    }
    
    .vip-card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .vip-price {
        text-align: center;
    }
}

/* --------------------------------------------
   NOTIFICATIONS & TOASTS
   -------------------------------------------- */
.notification,
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    z-index: 10001;
    animation: slideInRight var(--transition);
    max-width: 90%;
    width: 350px;
    box-shadow: var(--shadow-lg);
}

.notification.success,
.toast-success {
    background: var(--success);
}

.notification.error,
.toast-error {
    background: var(--danger);
}

.notification.warning,
.toast-warning {
    background: var(--warning);
    color: var(--dark);
}

.notification.info,
.toast-info {
    background: var(--info);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* VIP Package Card Media Styles */
.vip-admin-card .card-media-preview,
.vip-package-card .card-media {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    position: relative;
}

.vip-admin-card .card-media-preview img,
.vip-package-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vip-admin-card .card-media-preview video,
.vip-package-card .card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vip-admin-card .card-media-preview iframe,
.vip-package-card .card-media iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.vip-admin-card .no-media-placeholder,
.vip-package-card .no-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    color: #ffd700;
}

.vip-admin-card .no-media-placeholder i,
.vip-package-card .no-media-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.vip-admin-card .no-media-placeholder span,
.vip-package-card .no-media-placeholder span {
    font-size: 14px;
    color: #bdc3c7;
}

/* Play overlay for videos */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Admin Card Styles */
.vip-admin-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vip-admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.vip-admin-card.inactive {
    opacity: 0.7;
}

.vip-admin-card .card-content {
    padding: 20px;
}

.vip-admin-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.vip-admin-card .card-info h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.vip-admin-card .stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.vip-admin-card .stat {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.vip-admin-card .stat-label {
    display: block;
    font-size: 11px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.vip-admin-card .stat-value {
    font-size: 14px;
    font-weight: bold;
}

.vip-admin-card .stat-value.highlight {
    color: #ffd700;
}

.vip-admin-card .description {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.vip-admin-card .benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.vip-admin-card .benefit-tag {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
}

.vip-admin-card .card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vip-admin-card .card-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-edit {
    background: #3498db;
    color: white;
}

.btn-toggle {
    background: #f39c12;
    color: white;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-edit:hover, .btn-toggle:hover, .btn-delete:hover {
    transform: translateY(-2px);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.active {
    background: #27ae60;
    color: white;
}

.status-badge.inactive {
    background: #e74c3c;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px;
    background: #f8f9fa;
    border-radius: 16px;
}

.empty-state i {
    font-size: 60px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.empty-state p {
    color: #7f8c8d;
}

/* Close button enhancement for mobile */
#user-chat-modal .close-modal {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 11;
    backdrop-filter: blur(5px);
    min-width: 36px;
    min-height: 36px;
}

#user-chat-modal .close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 480px) {
    #user-chat-modal .close-modal {
        width: 32px;
        height: 32px;
        font-size: 16px;
        right: 12px;
    }
}

/* Enhanced Chat Messages Area - Mobile Optimized */
.admin-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: clamp(15px, 3vw, 20px);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 15px);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    overscroll-behavior: contain;
}

/* Custom scrollbar with responsive sizing */
.admin-chat-messages::-webkit-scrollbar {
    width: clamp(4px, 1vw, 6px);
}

.admin-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 5px 0;
}

.admin-chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.admin-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Enhanced Message Bubbles - Fully Responsive */
.message {
    max-width: 85%;
    padding: clamp(10px, 2.5vw, 14px) clamp(12px, 3vw, 18px);
    border-radius: 18px;
    position: relative;
    animation: messageAppear 0.3s ease-out;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: clamp(14px, 3.5vw, 16px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: clamp(8px, 2vw, 12px);
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.support-message {
    background: white;
    border: 1px solid #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    margin-right: auto;
    max-width: min(85%, 500px);
}

.message.user-message {
    background: linear-gradient(135deg, var(--primary, #256f8a) 0%, var(--primary-light, #3ba0c9) 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-left: auto;
    max-width: min(85%, 500px);
}

.message-time {
    font-size: clamp(10px, 2.5vw, 12px);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
    text-align: right;
    opacity: 0.9;
}

.message.support-message .message-time {
    color: #718096;
}

/* Responsive message width adjustments */
@media (max-width: 768px) {
    .message {
        max-width: 90%;
        padding: 12px 16px;
    }
    
    .message.support-message,
    .message.user-message {
        max-width: min(90%, 400px);
    }
}

@media (max-width: 480px) {
    .message {
        max-width: 95%;
        padding: 10px 14px;
        font-size: 15px;
    }
    
    .message.support-message,
    .message.user-message {
        max-width: min(95%, 350px);
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .message {
        max-width: 98%;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .message.support-message,
    .message.user-message {
        max-width: min(98%, 300px);
    }
}

/* Enhanced Quick Options - Mobile Optimized */
.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 10px);
    padding: clamp(10px, 2.5vw, 15px);
    background: white;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-height: 120px;
}

.quick-options::-webkit-scrollbar {
    display: none;
}

.quick-option {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 16px);
    font-size: clamp(12px, 3vw, 14px);
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: calc(50% - 10px);
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-option:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.quick-option:active {
    transform: translateY(0);
}

/* Responsive quick options layout */
@media (max-width: 480px) {
    .quick-option {
        min-width: 100%;
        font-size: 13px;
        padding: 8px 12px;
        min-height: 36px;
    }
    
    .quick-options {
        max-height: 150px;
        overflow-y: auto;
    }
}

@media (min-width: 769px) {
    .quick-option {
        min-width: calc(25% - 10px);
        max-width: calc(25% - 10px);
    }
}

/* Enhanced Chat Footer - Mobile Optimized */
.chat-footer {
    padding: clamp(10px, 2.5vw, 15px);
    background: white;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* Enhanced Typing Indicator - Mobile Optimized */
.typing-indicator {
    display: none;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    align-self: flex-start;
    margin: 5px 0;
    border-bottom-left-radius: 4px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

.typing-indicator.active {
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typingAnimation 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
    0%, 60%, 100% { 
        transform: translateY(0); 
        opacity: 0.6;
    }
    30% { 
        transform: translateY(-5px); 
        opacity: 1;
    }
}

/* Enhanced Empty State - Mobile Optimized */
.empty-chat-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.empty-chat-state i {
    font-size: clamp(36px, 10vw, 48px);
    margin-bottom: 15px;
    opacity: 0.5;
    color: var(--primary-light, #3ba0c9);
}

.empty-chat-state h3 {
    margin-bottom: 10px;
    color: #475569;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 600;
}

.empty-chat-state p {
    color: #64748b;
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: 1.5;
    max-width: 400px;
}

/* Enhanced Loading Animation */
.loading-messages {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px;
}

.loading-spinner {
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary, #256f8a);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: clamp(18px, 5vw, 20px);
    height: clamp(18px, 5vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: bold;
    animation: bounce 2s infinite;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced Attachment Preview */
.attachment-preview {
    display: none;
    padding: clamp(10px, 2.5vw, 12px);
    background: #f1f5f9;
    border-radius: 8px;
    margin: 10px 0;
    align-items: center;
    gap: 10px;
    animation: slideInUp 0.3s ease;
    flex-wrap: wrap;
}

.attachment-preview.show {
    display: flex;
}

.attachment-preview .file-icon {
    color: var(--primary, #256f8a);
    font-size: clamp(18px, 4.5vw, 20px);
    flex-shrink: 0;
}

.attachment-preview .file-info {
    flex: 1;
    font-size: clamp(12px, 3vw, 14px);
    min-width: 0;
}

.attachment-preview .file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.attachment-preview .remove-attachment {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: clamp(14px, 3.5vw, 16px);
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
    flex-shrink: 0;
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-preview .remove-attachment:hover {
    background: rgba(255, 71, 87, 0.1);
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .chat-title span {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .chat-status {
        display: none; /* Hide on mobile for more space */
    }
    
    .quick-option {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .attachment-preview .file-name {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .chat-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .chat-title span {
        max-width: 180px;
    }
    
    .empty-chat-state {
        padding: 30px 15px;
    }
    
    .attachment-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .attachment-preview .file-info {
        width: 100%;
    }
    
    .attachment-preview .file-name {
        max-width: 100%;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .quick-option:hover {
        transform: none;
        background: #f1f5f9;
    }
    
    .quick-option:active {
        background: #e2e8f0;
        transform: scale(0.98);
    }
    
    .message {
        min-width: 120px;
    }
    
    #user-chat-modal .close-modal {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .attachment-preview .remove-attachment:active {
        background: rgba(255, 71, 87, 0.2);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .message,
    .quick-option,
    #user-chat-modal .close-modal,
    .status-indicator.online,
    .notification-badge,
    .typing-indicator,
    .attachment-preview {
        animation: none;
        transition: none;
    }
    
    .typing-indicator .typing-dot {
        animation: none;
        opacity: 0.6;
    }
    
    .loading-spinner {
        animation: none;
        border-top-color: transparent;
    }
}

/* Dark mode support - Enhanced */
@media (prefers-color-scheme: dark) {
    #user-chat-modal .modal-content {
        background-color: #1a1a1a;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    
    .admin-chat-container {
        background: #1a1a1a;
    }
    
    .admin-chat-messages {
        background: linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
    }
    
    .message.support-message {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .chat-header {
        background: linear-gradient(135deg, #0d2b35 0%, #143945 100%);
    }
    
    .quick-option {
        background: #2d2d2d;
        border-color: #404040;
        color: #b0b0b0;
    }
    
    .quick-option:hover {
        background: #404040;
    }
    
    .chat-footer {
        background: #1a1a1a;
        border-top-color: #404040;
    }
    
    .message-time {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .message.support-message .message-time {
        color: #a0a0a0;
    }
    
    .admin-chat-messages::-webkit-scrollbar-track {
        background: #2d2d2d;
    }
    
    .admin-chat-messages::-webkit-scrollbar-thumb {
        background: #555;
    }
    
    .empty-chat-state {
        color: #a0a0a0;
    }
    
    .empty-chat-state h3 {
        color: #e0e0e0;
    }
    
    .empty-chat-state p {
        color: #b0b0b0;
    }
    
    .typing-indicator {
        background: #2d2d2d;
        border-color: #404040;
        color: #b0b0b0;
    }
    
    .typing-dot {
        background: #808080;
    }
    
    .attachment-preview {
        background: #2d2d2d;
    }
    
    .attachment-preview .file-icon {
        color: #3ba0c9;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .message.support-message {
        border: 2px solid #000;
    }
    
    .message.user-message {
        border: 2px solid #fff;
    }
    
    .quick-option {
        border: 2px solid #000;
    }
    
    .chat-footer {
        border-top: 2px solid #000;
    }
    
    .admin-chat-messages::-webkit-scrollbar-thumb {
        background: #000;
    }
}

/* Print styles */
@media print {
    #user-chat-modal.modal {
        position: static;
        background: white;
        display: block !important;
        padding: 0;
    }
    
    #user-chat-modal .modal-content {
        box-shadow: none;
        border: 1px solid #000;
        height: auto;
        max-height: none;
        page-break-inside: avoid;
    }
    
    .chat-footer,
    .quick-options,
    .close-modal,
    .typing-indicator {
        display: none !important;
    }
    
    .admin-chat-messages {
        max-height: none;
        overflow: visible;
    }
}

/* Enhanced animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Modal Button - Top Right Positioning */
#user-chat-modal .modal-content {
    position: relative;
    /* This is crucial for absolute positioning of child elements */
    /* Keep your existing styles */
}

#user-chat-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-dark, #113745), var(--primary, #256f8a));
}

#user-chat-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    background: #113745;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    /* Remove float: right since we're using absolute positioning */
    /* float: right; */
}

#user-chat-modal .close-modal:hover {
    color: black;
    background: white;
    transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #user-chat-modal .close-modal {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
        background: #113745;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    #user-chat-modal .close-modal {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

/* Close button enhancement for mobile */
#user-chat-modal .close-modal {
    background: var(--primary-dark);
border: none;
width: 36px;
height: 36px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
color: white;
font-size: 20px;
}

#user-chat-modal .close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 480px) {
    #user-chat-modal .close-modal {
        width: 32px;
        height: 32px;
        font-size: 16px;
        right: 12px;
    }
}

/* Enhanced Chat Messages Area - Mobile Optimized */
.admin-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: clamp(15px, 3vw, 20px);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 15px);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    overscroll-behavior: contain;
}

/* Custom scrollbar with responsive sizing */
.admin-chat-messages::-webkit-scrollbar {
    width: clamp(4px, 1vw, 6px);
}

.admin-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 5px 0;
}

.admin-chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.admin-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Enhanced Message Bubbles - Fully Responsive */
.message {
    max-width: 85%;
    padding: clamp(10px, 2.5vw, 14px) clamp(12px, 3vw, 18px);
    border-radius: 18px;
    position: relative;
    animation: messageAppear 0.3s ease-out;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: clamp(14px, 3.5vw, 16px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: clamp(8px, 2vw, 12px);
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.support-message {
    background: white;
    border: 1px solid #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    margin-right: auto;
    max-width: min(85%, 500px);
}

.message.user-message {
    background: linear-gradient(135deg, var(--primary, #256f8a) 0%, var(--primary-light, #3ba0c9) 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-left: auto;
    max-width: min(85%, 500px);
}

.message-time {
    font-size: clamp(10px, 2.5vw, 12px);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
    text-align: right;
    opacity: 0.9;
}

.message.support-message .message-time {
    color: #718096;
}

/* Responsive message width adjustments */
@media (max-width: 768px) {
    .message {
        max-width: 90%;
        padding: 12px 16px;
    }
    
    .message.support-message,
    .message.user-message {
        max-width: min(90%, 400px);
    }
}

@media (max-width: 480px) {
    .message {
        max-width: 95%;
        padding: 10px 14px;
        font-size: 15px;
    }
    
    .message.support-message,
    .message.user-message {
        max-width: min(95%, 350px);
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .message {
        max-width: 98%;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .message.support-message,
    .message.user-message {
        max-width: min(98%, 300px);
    }
}

/* Enhanced Quick Options - Mobile Optimized */
.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 10px);
    padding: clamp(10px, 2.5vw, 15px);
    background: white;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-height: 120px;
}

.quick-options::-webkit-scrollbar {
    display: none;
}

.quick-option {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 16px);
    font-size: clamp(12px, 3vw, 14px);
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: calc(50% - 10px);
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-option:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.quick-option:active {
    transform: translateY(0);
}

/* Responsive quick options layout */
@media (max-width: 480px) {
    .quick-option {
        min-width: 100%;
        font-size: 13px;
        padding: 8px 12px;
        min-height: 36px;
    }
    
    .quick-options {
        max-height: 150px;
        overflow-y: auto;
    }
}

@media (min-width: 769px) {
    .quick-option {
        min-width: calc(25% - 10px);
        max-width: calc(25% - 10px);
    }
}

/* Enhanced Chat Footer - Mobile Optimized */
.chat-footer {
    padding: clamp(10px, 2.5vw, 15px);
    background: white;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* Enhanced Typing Indicator - Mobile Optimized */
.typing-indicator {
    display: none;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    align-self: flex-start;
    margin: 5px 0;
    border-bottom-left-radius: 4px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

.typing-indicator.active {
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typingAnimation 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
    0%, 60%, 100% { 
        transform: translateY(0); 
        opacity: 0.6;
    }
    30% { 
        transform: translateY(-5px); 
        opacity: 1;
    }
}

/* Enhanced Empty State - Mobile Optimized */
.empty-chat-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.empty-chat-state i {
    font-size: clamp(36px, 10vw, 48px);
    margin-bottom: 15px;
    opacity: 0.5;
    color: var(--primary-light, #3ba0c9);
}

.empty-chat-state h3 {
    margin-bottom: 10px;
    color: #475569;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 600;
}

.empty-chat-state p {
    color: #64748b;
    font-size: clamp(14px, 3.5vw, 16px);
    line-height: 1.5;
    max-width: 400px;
}

/* Enhanced Loading Animation */
.loading-messages {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px;
}

.loading-spinner {
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary, #256f8a);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: clamp(18px, 5vw, 20px);
    height: clamp(18px, 5vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: bold;
    animation: bounce 2s infinite;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced Attachment Preview */
.attachment-preview {
    display: none;
    padding: clamp(10px, 2.5vw, 12px);
    background: #f1f5f9;
    border-radius: 8px;
    margin: 10px 0;
    align-items: center;
    gap: 10px;
    animation: slideInUp 0.3s ease;
    flex-wrap: wrap;
}

.attachment-preview.show {
    display: flex;
}

.attachment-preview .file-icon {
    color: var(--primary, #256f8a);
    font-size: clamp(18px, 4.5vw, 20px);
    flex-shrink: 0;
}

.attachment-preview .file-info {
    flex: 1;
    font-size: clamp(12px, 3vw, 14px);
    min-width: 0;
}

.attachment-preview .file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.attachment-preview .remove-attachment {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: clamp(14px, 3.5vw, 16px);
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
    flex-shrink: 0;
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-preview .remove-attachment:hover {
    background: rgba(255, 71, 87, 0.1);
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .chat-title span {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .chat-status {
        display: none; /* Hide on mobile for more space */
    }
    
    .quick-option {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .attachment-preview .file-name {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .chat-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .chat-title span {
        max-width: 180px;
    }
    
    .empty-chat-state {
        padding: 30px 15px;
    }
    
    .attachment-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .attachment-preview .file-info {
        width: 100%;
    }
    
    .attachment-preview .file-name {
        max-width: 100%;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .quick-option:hover {
        transform: none;
        background: #f1f5f9;
    }
    
    .quick-option:active {
        background: #e2e8f0;
        transform: scale(0.98);
    }
    
    .message {
        min-width: 120px;
    }
    
    #user-chat-modal .close-modal {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .attachment-preview .remove-attachment:active {
        background: rgba(255, 71, 87, 0.2);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .message,
    .quick-option,
    #user-chat-modal .close-modal,
    .status-indicator.online,
    .notification-badge,
    .typing-indicator,
    .attachment-preview {
        animation: none;
        transition: none;
    }
    
    .typing-indicator .typing-dot {
        animation: none;
        opacity: 0.6;
    }
    
    .loading-spinner {
        animation: none;
        border-top-color: transparent;
    }
}

/* Dark mode support - Enhanced */
@media (prefers-color-scheme: dark) {
    #user-chat-modal .modal-content {
        background-color: #1a1a1a;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    
    .admin-chat-container {
        background: #1a1a1a;
    }
    
    .admin-chat-messages {
        background: linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
    }
    
    .message.support-message {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .chat-header {
        background: linear-gradient(135deg, #0d2b35 0%, #143945 100%);
    }
    
    .quick-option {
        background: #2d2d2d;
        border-color: #404040;
        color: #b0b0b0;
    }
    
    .quick-option:hover {
        background: #404040;
    }
    
    .chat-footer {
        background: #1a1a1a;
        border-top-color: #404040;
    }
    
    .message-time {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .message.support-message .message-time {
        color: #a0a0a0;
    }
    
    .admin-chat-messages::-webkit-scrollbar-track {
        background: #2d2d2d;
    }
    
    .admin-chat-messages::-webkit-scrollbar-thumb {
        background: #555;
    }
    
    .empty-chat-state {
        color: #a0a0a0;
    }
    
    .empty-chat-state h3 {
        color: #e0e0e0;
    }
    
    .empty-chat-state p {
        color: #b0b0b0;
    }
    
    .typing-indicator {
        background: #2d2d2d;
        border-color: #404040;
        color: #b0b0b0;
    }
    
    .typing-dot {
        background: #808080;
    }
    
    .attachment-preview {
        background: #2d2d2d;
    }
    
    .attachment-preview .file-icon {
        color: #3ba0c9;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .message.support-message {
        border: 2px solid #000;
    }
    
    .message.user-message {
        border: 2px solid #fff;
    }
    
    .quick-option {
        border: 2px solid #000;
    }
    
    .chat-footer {
        border-top: 2px solid #000;
    }
    
    .admin-chat-messages::-webkit-scrollbar-thumb {
        background: #000;
    }
}

/* Print styles */
@media print {
    #user-chat-modal.modal {
        position: static;
        background: white;
        display: block !important;
        padding: 0;
    }
    
    #user-chat-modal .modal-content {
        box-shadow: none;
        border: 1px solid #000;
        height: auto;
        max-height: none;
        page-break-inside: avoid;
    }
    
    .chat-footer,
    .quick-options,
    .close-modal,
    .typing-indicator {
        display: none !important;
    }
    
    .admin-chat-messages {
        max-height: none;
        overflow: visible;
    }
}

/* Enhanced animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Admin Chat Modal Styles */
#admin-chat-modal.modal,
#user-chat-modal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

#admin-chat-modal .modal-content,
#user-chat-modal .modal-content {
    background-color: #fefefe;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Close Button */

/* Admin Chat Container */
.admin-chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: white;
}

/* Sidebar - Mobile First */
.admin-chat-sidebar {
    width: 100%;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    max-height: 40vh;
    min-height: 200px;
}

.chat-search {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
}

#admin-chat-search {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
}

#admin-chat-search:focus {
    border-color: #4a90e2;
}

.chat-users-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

/* Main Chat Area */
.admin-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    min-height: 60vh;
}

.admin-chat-header {
    padding: 20px 15px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, var(--primary-dark, #113745), var(--primary, #256f8a));
    position: sticky;
    top: 0;
    z-index: 10;
}

.no-chat-selected {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-chat-selected i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.no-chat-selected h3 {
    margin: 10px 0;
    color: #333;
    font-size: 20px;
}

.no-chat-selected p {
    color: #888;
    font-size: 14px;
    line-height: 1.4;
}

/* Messages Container */
.admin-chat-messages,
#user-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    -webkit-overflow-scrolling: touch;
}

/* Storage Management */
.storage-management {
    padding: 12px 15px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.btn-storage, .btn-export {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.btn-storage:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #2196f3;
}

.btn-export:hover {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #4caf50;
}

#storageStatus {
    font-size: 12px;
    color: #666;
    text-align: center;
    flex: 1 0 100%;
    margin-top: 5px;
}




/* Modal backdrop click to close */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal exit animation */
.modal.closing {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from { 
        opacity: 1;
        backdrop-filter: blur(5px);
    }
    to { 
        opacity: 0;
        backdrop-filter: blur(0);
    }
}

/* Modal content exit animation */
.modal-content.closing {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    from { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to { 
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

/* Escape key indicator (for accessibility) */
.close-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.modal:hover .close-hint {
    opacity: 1;
}

@media (max-width: 768px) {
    .close-hint {
        display: none; /* Hide on mobile for cleaner UI */
    }
}

/* Chat Actions */
.chat-actions {
    padding: 12px 15px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.btn-clear {
    padding: 12px;
    background: #fff;
    border: 1px solid #ff5252;
    border-radius: 6px;
    color: #ff5252;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    width: 100%;
}

.btn-clear:hover {
    background: #ff5252;
    color: white;
}

.storage-info {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Chat Input Area */
.admin-chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.quick-responses {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.quick-responses::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.quick-response {
    padding: 8px 12px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 16px;
    font-size: 13px;
    color: #1976d2;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.quick-response:hover {
    background: #1976d2;
    color: white;
}

.chat-footer {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.admin-message-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px; /* Larger for mobile touch */
    resize: none;
    outline: none;
    transition: border-color 0.3s;
    min-height: 44px; /* Minimum touch target size */
    max-height: 120px;
    appearance: none;
    line-height: 1.4;
}

#admin-message-input:focus,
#user-message-input:focus {
    border-color: #4a90e2;
}

.chat-send-btn,
.chat-send {
    padding: 12px 20px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
    min-height: 44px; /* Minimum touch target size */
    min-width: 60px;
}

.chat-send-btn:hover,
.chat-send:hover {
    background: #1976d2;
}

/* User Chat Modal Specific Styles */
#user-chat-modal .admin-chat-container {
    height: 100vh;
}

/* Chat Header */
.chat-header {
    padding: 20px 15px;
    background: linear-gradient(135deg, var(--primary-dark, #113745), var(--primary, #256f8a));
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--primary-dark, #113745), var(--primary, #256f8a));
}

.chat-title i {
    font-size: 22px;
}

.chat-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0.9;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Messages */
.message {
    margin-bottom: 12px;
    max-width: 85%;
}

.support-message {
    margin-left: 0;
    margin-right: auto;
}

.message-content {
    padding: 12px 15px;
    border-radius: 18px 18px 18px 4px;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
}

.message-time {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    margin-left: 12px;
}

/* Quick Options */
.quick-options {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.quick-option {
    padding: 12px 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-option:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

/* File Upload */
.file-upload-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    text-align: center;
    min-height: 44px;
}

.file-upload-label:hover {
    border-color: #2196f3;
    background: #e3f2fd;
    color: #1976d2;
}

.file-upload-label i {
    font-size: 20px;
}

#user-file-input {
    display: none;
}

.file-list {
    padding: 10px 15px 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

/* Chat Footer */
.chat-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.input-group-4 {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

/* Scrollbar Styling */
.admin-chat-messages::-webkit-scrollbar,
.chat-users-list::-webkit-scrollbar,
#user-chat-messages::-webkit-scrollbar,
.file-list::-webkit-scrollbar,
.quick-responses {
    width: 4px;
    height: 4px;
}

.admin-chat-messages::-webkit-scrollbar-track,
.chat-users-list::-webkit-scrollbar-track,
#user-chat-messages::-webkit-scrollbar-track,
.file-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.admin-chat-messages::-webkit-scrollbar-thumb,
.chat-users-list::-webkit-scrollbar-thumb,
#user-chat-messages::-webkit-scrollbar-thumb,
.file-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.admin-chat-messages::-webkit-scrollbar-thumb:hover,
.chat-users-list::-webkit-scrollbar-thumb:hover,
#user-chat-messages::-webkit-scrollbar-thumb:hover,
.file-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Design for Larger Screens */
@media (min-width: 768px) {
    #admin-chat-modal .modal-content,
    #user-chat-modal .modal-content {
        margin: 5vh auto;
        width: 90%;
        max-width: 1200px;
        height: 90vh;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        max-height: 90vh !important;
    }
    
    #admin-chat-modal .admin-chat-container {
        flex-direction: row;
        height: calc(90vh - 20px);
    }
    
    .admin-chat-sidebar {
        width: 300px;
        max-height: none;
        min-height: auto;
        border-right: 1px solid #e0e0e0;
        border-bottom: none;
    }
    
    .admin-chat-main {
        min-height: auto;
    }
    
    .quick-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-responses {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .chat-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .btn-clear {
        width: auto;
    }
    
    #storageStatus {
        flex: none;
        margin-top: 0;
        margin-left: auto;
    }
}

@media (min-width: 1024px) {
    .quick-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .storage-management {
        flex-wrap: nowrap;
    }
    
    .btn-storage, .btn-export {
        flex: none;
    }
    
    #storageStatus {
        flex: none;
        margin-left: auto;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    #admin-chat-modal .modal-content,
    #user-chat-modal .modal-content {
        width: 95%;
    }
    
    .admin-chat-sidebar {
        width: 250px;
    }
}

/* Prevent iOS zoom on input focus */
@media (max-width: 768px) {
    input, textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
    
    select {
        font-size: 16px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-storage:hover,
    .btn-export:hover,
    .btn-clear:hover,
    .quick-response:hover,
    .quick-option:hover,
    .file-upload-label:hover,
    .chat-send-btn:hover,
    .chat-send:hover {
        transform: none;
    }
    
    .quick-response:active,
    .quick-option:active {
        background: #1976d2;
        color: white;
    }
    
    .btn-storage:active,
    .btn-export:active {
        opacity: 0.8;
    }
    
    .btn-clear:active {
        background: #ff5252;
    }
}

/* ===== RESPONSIVE TYPOGRAPHY ENHANCEMENTS ===== */

/* Fluid typography with clamp() for better scaling */
.fluid-heading-1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: clamp(1.8rem, 6vw, 2.8rem);
}

.fluid-heading-2 {
    font-size: clamp(1.25rem, 4vw, 2rem);
    line-height: clamp(1.5rem, 5vw, 2.4rem);
}

.fluid-heading-3 {
    font-size: clamp(1.125rem, 3.5vw, 1.75rem);
    line-height: clamp(1.375rem, 4vw, 2rem);
}

.fluid-body {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: clamp(1.25rem, 3.5vw, 1.5rem);
}

/* Responsive text truncation */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== ADDITIONAL MOBILE OPTIMIZATIONS ===== */

/* Safe area insets for modern devices */
.safe-area-top {
    padding-top: env(safe-area-inset-top, 0px);
}

.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.safe-area-left {
    padding-left: env(safe-area-inset-left, 0px);
}

.safe-area-right {
    padding-right: env(safe-area-inset-right, 0px);
}

/* Prevent pull-to-refresh on mobile */
@media (max-width: 768px) {
    body {
        overscroll-behavior-y: contain;
    }
}

/* Better touch targets for mobile forms */
.touch-optimized-form input,
.touch-optimized-form select,
.touch-optimized-form textarea,
.touch-optimized-form button {
    font-size: 16px !important;
    min-height: 44px;
}

.touch-optimized-form .form-control {
    margin-bottom: 20px;
}

/* Mobile-first container queries */
.container-component {
    container-type: inline-size;
    container-name: component;
}

@container component (max-width: 400px) {
    .responsive-card {
        flex-direction: column;
    }
    
    .responsive-card .card-image {
        width: 100%;
        height: 200px;
    }
}

.btn-refresh {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 14px;
    transition: transform 0.3s;
}

.btn-refresh:hover {
    transform: rotate(180deg);
}

.btn-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Optional field styling */
.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #7f8c8d;
}

.form-hint i {
    margin-right: 5px;
}

/* No referrals message */
.no-referrals {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-referrals i {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.no-referrals p {
    margin-bottom: 10px;
    color: #7f8c8d;
}

/* Social Links Management Styles */
.social-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.social-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.social-stats-grid .stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.social-stats-grid .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.social-stats-grid .stat-icon.total { background: #3498db20; color: #3498db; }
.social-stats-grid .stat-icon.active { background: #27ae6020; color: #27ae60; }
.social-stats-grid .stat-icon.followed { background: #9b59b620; color: #9b59b6; }

.social-toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.social-toolbar .search-box {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.social-toolbar .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.social-toolbar .search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

/* Social Links Grid */
.social-links-grid, .social-links-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Admin Social Link Card */
.social-link-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.social-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.social-link-card.inactive {
    opacity: 0.6;
}

.social-link-card .card-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-link-card .social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.social-link-card .card-body {
    padding: 20px;
}

.social-link-card .platform-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.social-link-card .platform-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.social-link-card .platform-type.facebook { background: #1877f220; color: #1877f2; }
.social-link-card .platform-type.instagram { background: #e4405f20; color: #e4405f; }
.social-link-card .platform-type.whatsapp { background: #25d36620; color: #25d366; }
.social-link-card .platform-type.telegram { background: #0088cc20; color: #0088cc; }
.social-link-card .platform-type.youtube { background: #ff000020; color: #ff0000; }
.social-link-card .platform-type.twitter { background: #1da1f220; color: #1da1f2; }

.social-link-card .url {
    font-size: 12px;
    color: #7f8c8d;
    word-break: break-all;
    margin: 10px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.social-link-card .description {
    font-size: 13px;
    color: #5d6d7e;
    margin: 10px 0;
}

.social-link-card .required-action {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    background: #f39c12;
    color: white;
    margin-top: 10px;
}

.social-link-card .card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.social-link-card .card-footer button {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

/* User Social Link Card */
.social-link-user-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.social-link-user-card.completed {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #27ae60;
}

.social-link-user-card .social-icon-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: white;
}

.social-link-user-card h4 {
    margin-bottom: 5px;
}

.social-link-user-card .platform-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    margin-bottom: 10px;
}

.social-link-user-card .action-required {
    font-size: 12px;
    color: #f39c12;
    margin: 10px 0;
}

.social-link-user-card .complete-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
}

.social-link-user-card .follow-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.social-link-user-card .follow-btn:hover {
    transform: translateY(-2px);
}

.social-link-user-card .follow-btn.completed {
    background: #27ae60;
    cursor: default;
}

.social-link-user-card .follow-btn.completed:hover {
    transform: none;
}

/* User Progress Section */
.user-social-progress {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.progress-bar-container {
    margin-bottom: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.progress-bar-bg {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.reward-status {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
}

.reward-status.completed {
    background: #d4edda;
    color: #155724;
}

.reward-status.pending {
    background: #fff3cd;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .social-links-grid, .social-links-user-grid {
        grid-template-columns: 1fr;
    }
    
    .social-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-toolbar {
        flex-direction: column;
    }
} 

/* Social Popup Styles */
.popup-modal {
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-timer {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.timer-text {
    text-align: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #7f8c8d;
}

.timer-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffb347);
    border-radius: 2px;
    transition: width 0.3s linear;
}

.popup-content {
    text-align: center;
}

.reward-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #fff3cd, #ffe69b);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.reward-info i {
    font-size: 40px;
    color: #ffd700;
}

.reward-info h4 {
    margin: 0 0 5px;
    color: #856404;
}

.reward-info p {
    margin: 0;
    font-size: 12px;
    color: #856404;
}

.popup-social-links {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
}

.popup-social-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.popup-social-item:hover {
    background: #f8f9fa;
}

.popup-social-item.completed {
    background: #d4edda;
    opacity: 0.7;
}

.popup-social-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.popup-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.popup-social-icon.facebook { background: #1877f2; }
.popup-social-icon.instagram { background: #e4405f; }
.popup-social-icon.whatsapp { background: #25d366; }
.popup-social-icon.telegram { background: #0088cc; }
.popup-social-icon.youtube { background: #ff0000; }
.popup-social-icon.twitter { background: #1da1f2; }
.popup-social-icon.website { background: #3498db; }
.popup-social-icon.group { background: #9b59b6; }

.popup-social-details {
    flex: 1;
    text-align: left;
}

.popup-social-name {
    font-weight: 600;
    font-size: 14px;
}

.popup-social-action {
    font-size: 11px;
    color: #7f8c8d;
}

.popup-social-status {
    font-size: 12px;
}

.popup-social-status.completed {
    color: #27ae60;
}

.popup-social-status.pending {
    color: #e74c3c;
}

.verify-btn {
    padding: 6px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.verify-btn:hover {
    background: #2980b9;
}

.verify-btn.completed {
    background: #27ae60;
    cursor: default;
}

.popup-progress {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.popup-actions .btn {
    flex: 1;
}

/* Blinking effect for popup button */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.social-reminder-blink {
    animation: blink 1s infinite;
    background: #ffd700 !important;
    color: #333 !important;
}

/* Blinking effect for reminder */
@keyframes blinkReminder {
    0%, 100% { background: transparent; }
    50% { background: rgba(255, 215, 0, 0.3); }
}

.social-reminder-blink {
    animation: blinkReminder 1s infinite !important;
}

/* Celebration Modal */
.celebration-modal {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.celebration-modal .modal-content {
    animation: popupSlideIn 0.4s ease-out;
}

/* Verify button styles */
.verify-btn {
    padding: 6px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.verify-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Reward complete message */
.reward-complete-message {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BANK ACCOUNTS & DEPOSIT STYLES
   ============================================ */

/* Bank Stats Grid */
.bank-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.bank-stats-grid .stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.mobile { background: #25D36620; color: #25D366; }
.stat-icon.bank { background: #3498db20; color: #3498db; }
.stat-icon.lipa { background: #f39c1220; color: #f39c12; }
.stat-icon.active { background: #27ae6020; color: #27ae60; }

.stat-info h3 { margin: 0; font-size: 28px; font-weight: 700; }
.stat-info p { margin: 5px 0 0; font-size: 12px; color: var(--gray); }

/* Account Type Selector */
.account-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.type-option {
    flex: 1;
    background: var(--light);
    border: 2px solid var(--gray-extra-light);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.type-option i { font-size: 24px; display: block; margin-bottom: 8px; color: var(--gray); }
.type-option span { font-size: 13px; font-weight: 500; color: var(--gray); }
.type-option:hover { border-color: var(--primary); background: rgba(37, 111, 138, 0.05); }
.type-option.active { border-color: var(--success); background: rgba(40, 167, 69, 0.1); }
.type-option.active i, .type-option.active span { color: var(--success); }

/* Provider Preview */
.provider-preview {
    margin-top: 10px;
    padding: 10px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

/* Bank Accounts Grid */
.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bank-account-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-extra-light);
}

.bank-account-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bank-account-card.inactive { opacity: 0.7; background: var(--light); }

.card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bank-logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.bank-logo img { width: 100%; height: 100%; object-fit: contain; }

.card-header-info h4 { margin: 0 0 5px; font-size: 16px; }

.account-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.account-type-badge.mobile { background: #25D366; color: white; }
.account-type-badge.bank { background: #3498db; color: white; }
.account-type-badge.lipa { background: #f39c12; color: white; }

.card-body { padding: 20px; }

.account-number {
    background: var(--light);
    padding: 10px 15px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn { background: none; border: none; cursor: pointer; color: var(--primary); padding: 5px; }

.instructions-preview {
    background: var(--warning-light);
    padding: 12px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 12px;
    max-height: 100px;
    overflow-y: auto;
    color: #856404;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-extra-light);
    display: flex;
    gap: 10px;
}
.card-footer .btn { flex: 1; padding: 8px; font-size: 12px; }

/* Deposit Steps */
.deposit-step { animation: fadeIn 0.3s ease; }

.step-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.step-header .step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 15px;
}

.step-header h3 { display: inline-block; margin: 0; font-size: 20px; }
.step-header .step-desc { margin: 10px 0 0 55px; font-size: 13px; color: var(--gray); }

.btn-back {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 8px;
}
.btn-back:hover { background: var(--light); }

/* Bank Accounts List for User */
.bank-accounts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.bank-option-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--gray-extra-light);
    display: flex;
    align-items: center;
    gap: 15px;
}
.bank-option-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow); }
.bank-option-card.selected { border-color: var(--success); background: var(--success-light); }

.bank-option-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.bank-option-info { flex: 1; }
.bank-option-name { font-weight: 600; margin-bottom: 5px; }
.bank-option-number { font-family: monospace; font-size: 12px; color: var(--gray); margin-bottom: 5px; }

.bank-option-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}
.bank-option-badge.mobile { background: #25D36620; color: #25D366; }
.bank-option-badge.bank { background: #3498db20; color: #3498db; }
.bank-option-badge.lipa { background: #f39c1220; color: #f39c12; }

.selected-account-info {
    background: var(--success-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--success);
}

.selected-account-card { display: flex; align-items: center; gap: 15px; }
.selected-account-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--success);
}

.payment-instructions {
    background: var(--warning-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--warning);
}

.instructions-card .instructions-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.instructions-card .instructions-header i { font-size: 20px; color: #856404; }
.instructions-card .instructions-header h4 { margin: 0; color: #856404; }
.instructions-body { color: #856404; line-height: 1.6; font-size: 14px; }
.instructions-body ol { margin: 10px 0; padding-left: 20px; }
.instructions-body li { margin-bottom: 8px; }

.deposit-form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.quick-amount {
    padding: 10px;
    background: var(--light);
    border: 2px solid var(--gray-extra-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 12px;
}
.quick-amount:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-2px); }
.quick-amount.active { background: var(--success); border-color: var(--success); color: white; }

.payment-window-card {
    background: var(--light);
    border-radius: 20px;
    padding: 25px;
}

.payment-info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-extra-light);
}

.payment-logo-container {
    width: 70px;
    height: 70px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.payment-logo { width: 100%; height: 100%; object-fit: contain; }

.payment-details h4 { margin: 0 0 5px; }
.payment-details p { margin: 0; font-family: monospace; font-size: 14px; font-weight: 600; color: var(--primary); }

.payment-amount-section {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
}
.payment-amount-section h2 { font-size: 36px; color: var(--success); margin: 0; }

.payment-summary {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-extra-light); }
.summary-row:last-child { border-bottom: none; }

.payment-actions { display: flex; gap: 15px; margin-top: 20px; }
.payment-actions .btn { flex: 1; }

.verification-card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.transaction-summary {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--white);
    border-radius: 8px;
}
.summary-label { font-size: 12px; color: var(--gray); }
.summary-value { font-weight: 600; color: var(--dark); }

.success-card {
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 2px solid var(--success);
}
.success-icon { font-size: 80px; color: var(--success); margin-bottom: 20px; animation: successPulse 0.5s ease; }

.waiting-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.waiting-info-grid .info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
    text-align: left;
}
.waiting-info-grid .info-card i { font-size: 32px; }
.waiting-info-grid .info-card h4 { margin: 0 0 5px; font-size: 16px; }

.transaction-details-summary {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}
.detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-extra-light); }
.detail-row:last-child { border-bottom: none; }

.loading-state { text-align: center; padding: 60px; }
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-extra-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.empty-state { text-align: center; padding: 60px; }
.empty-state i { font-size: 60px; color: var(--gray-light); margin-bottom: 20px; }

.delete-confirmation { text-align: center; padding: 20px; }
.delete-confirmation i { font-size: 60px; color: var(--danger); margin-bottom: 15px; }
.delete-warning { color: var(--danger); font-size: 12px; margin-top: 10px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes successPulse { 0% { transform: scale(0.8); opacity: 0; } 50% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }

/* Responsive */
@media (max-width: 768px) {
    .bank-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .bank-accounts-list, .bank-accounts-grid { grid-template-columns: 1fr; }
    .quick-amounts { grid-template-columns: repeat(2, 1fr); }
    .payment-header { flex-direction: column; text-align: center; }
    .payment-actions { flex-direction: column; }
    .summary-grid { grid-template-columns: 1fr; }
    .waiting-info-grid { grid-template-columns: 1fr; }
    .step-header { padding-bottom: 50px; }
    .btn-back { position: static; margin-top: 10px; width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .bank-stats-grid { grid-template-columns: 1fr; }
    .quick-amounts { grid-template-columns: 1fr; }
    .bank-option-card, .selected-account-card { flex-direction: column; text-align: center; }
    .payment-amount-section h2 { font-size: 28px; }
}

/* ============================================
   NAVIGATION ENHANCEMENTS
   ============================================ */

/* New Badge */
.new-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Active Navigation Indicator */
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid var(--accent);
    position: relative;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

/* Bottom Bar Active Indicator */
.bottom-item.active {
    color: var(--primary);
    position: relative;
}

.bottom-item.active::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

/* Section Loading */
.section-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.section-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Sidebar Section Title */
.nav-section .section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    padding: 15px 20px 5px;
    margin-top: 5px;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 20px;
}

/* Content Actions */
.content-actions {
    display: flex;
    gap: 12px;
}

.content-actions .logout-btn {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .content-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .content-actions .logout-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .nav-section .section-title {
        font-size: 10px;
        padding: 10px 15px 3px;
    }
}

@media (max-width: 480px) {
    .content-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .content-actions .logout-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   WITHDRAWAL SECTION STYLES
   ============================================ */

/* My Bank Accounts Section */
.my-bank-accounts-section {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.my-bank-accounts-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-extra-light);
}

.my-bank-accounts-section .section-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* User Bank Accounts List */
.user-bank-accounts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.user-bank-card {
    background: var(--light);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--gray-extra-light);
    transition: all 0.3s;
    position: relative;
}

.user-bank-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.user-bank-card.default {
    border: 2px solid var(--success);
    background: linear-gradient(135deg, var(--white), var(--success-light));
}

.user-bank-card .default-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.user-bank-card .bank-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 10px;
}

.user-bank-card .bank-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.user-bank-card .bank-details {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.user-bank-card .bank-number {
    font-family: monospace;
    font-weight: 600;
    margin: 10px 0;
    padding: 8px;
    background: var(--white);
    border-radius: 8px;
}

.user-bank-card .card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-extra-light);
}

.user-bank-card .card-actions button {
    flex: 1;
    padding: 6px;
    font-size: 12px;
}

/* Withdrawal Form Section */
.withdrawal-form-section {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.withdrawal-form-section h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Withdrawal Calculator */
.withdrawal-calc {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.withdrawal-calc h4 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--gray-extra-light);
}

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

/* Empty State */
.empty-accounts {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.empty-accounts i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--gray-light);
}

/* Responsive */
@media (max-width: 768px) {
    .user-bank-accounts-list {
        grid-template-columns: 1fr;
    }
    
    .my-bank-accounts-section .section-header {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   TOAST NOTIFICATION SYSTEM
   ============================================ */

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-radius: 10px;
    padding: 12px 20px;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    animation: slideInRight 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast-success {
    border-left: 4px solid #27ae60;
}
.toast-success::before {
    background: #27ae60;
}
.toast-success .toast-content i {
    color: #27ae60;
}

.toast-error {
    border-left: 4px solid #e74c3c;
}
.toast-error::before {
    background: #e74c3c;
}
.toast-error .toast-content i {
    color: #e74c3c;
}

.toast-info {
    border-left: 4px solid #3498db;
}
.toast-info::before {
    background: #3498db;
}
.toast-info .toast-content i {
    color: #3498db;
}

.toast-warning {
    border-left: 4px solid #f39c12;
}
.toast-warning::before {
    background: #f39c12;
}
.toast-warning .toast-content i {
    color: #f39c12;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.toast-content i {
    font-size: 20px;
}

.toast-content span {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #95a5a6;
    padding: 5px;
    transition: color 0.3s;
    font-size: 14px;
}

.toast-close:hover {
    color: #e74c3c;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .toast {
        padding: 10px 15px;
    }
    
    .toast-content i {
        font-size: 16px;
    }
    
    .toast-content span {
        font-size: 12px;
    }
}

/* Receipt Modal Styles */
.receipt-container {
    font-family: 'Courier New', monospace;
}

.status-approved {
    color: #27ae60;
}

.status-pending {
    color: #f39c12;
}

.status-rejected {
    color: #e74c3c;
}

.btn-receipt {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-receipt:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ============================================
   UNIFIED MODAL SYSTEM - FIXED VERSION
   ============================================ */

/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 99999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show,
.modal.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.modal-content {
    background: var(--white, #ffffff);
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content.large {
    max-width: 800px;
}

.modal-content.small {
    max-width: 400px;
}

.modal-content.full {
    max-width: 95%;
    width: 95%;
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, var(--primary-dark, #113745), var(--primary, #256f8a));
    color: white;
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.modal-header i {
    color: var(--accent, #ff9f43);
}

/* Close Button */
.modal-close-btn,
.close-modal {
    background: var(--primary-dark);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
}

.modal-close-btn:hover,
.close-modal:hover {
    background: #e74c3c;
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 25px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

/* Modal Footer */
.modal-footer {
    padding: 15px 25px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e0e0e0;
    background: white;
    border-radius: 0 0 20px 20px;
}

.modal-footer .btn {
    margin: 0;
    padding: 12px 24px;
}

/* Modal Buttons */
.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary, #256f8a), var(--primary-dark, #113745));
    color: white;
}

.modal-btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-btn-danger {
    background: #dc3545;
    color: white;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2,
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
        padding: 15px 20px 20px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: #1a1a2e;
    }
    
    .modal-footer {
        border-top-color: #2d3748;
        background: #1a1a2e;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .modal-content {
        animation: none;
    }
    
    .modal-close-btn:hover,
    .close-modal:hover {
        transform: none;
    }
}

/* Receipt Modal Styles */
.receipt-loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.receipt-container {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 20px;
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #ccc;
}

.receipt-header h1 {
    color: #2c3e50;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.receipt-details {
    margin: 20px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #eee;
}

.detail-label {
    font-weight: bold;
    color: #2c3e50;
}

.detail-value {
    text-align: right;
    font-weight: 600;
    color: #34495e;
}

.amount-display {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    border-radius: 8px;
}

.qr-section {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.fake-qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qr-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 5px, #2c3e50 5px, #2c3e50 6px),
        repeating-linear-gradient(90deg, transparent, transparent 5px, #2c3e50 5px, #2c3e50 6px);
    opacity: 0.1;
}

.qr-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 3px solid #2c3e50;
}

.qr-corner:nth-child(1) {
    top: 5px;
    left: 5px;
    border-radius: 8px 0 0 0;
}

.qr-corner:nth-child(2) {
    top: 5px;
    right: 5px;
    border-radius: 0 8px 0 0;
}

.qr-corner:nth-child(3) {
    bottom: 5px;
    left: 5px;
    border-radius: 0 0 0 8px;
}

.qr-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: #2c3e50;
    opacity: 0.2;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

.qr-text {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    font-size: 10px;
    text-align: center;
    font-weight: bold;
}

.status-approved {
    color: #27ae60;
    font-weight: bold;
}

.status-rejected {
    color: #e74c3c;
    font-weight: bold;
}

.status-pending {
    color: #f39c12;
    font-weight: bold;
}

.receipt-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #ccc;
}

.receipt-footer p {
    margin: 5px 0;
    color: #7f8c8d;
}

/* Print Styles */
@media print {
    .modal-header, .modal-footer, .close-modal {
        display: none !important;
    }
    
    #receipt-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
    }
    
    .modal-content {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .receipt-container {
        padding: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .receipt-container {
        padding: 10px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .amount-display {
        font-size: 18px;
        padding: 10px;
    }
    
    .fake-qr-code {
        width: 100px;
        height: 100px;
    }
}

.modal {
    display: none !important;
}
.modal.show, .modal.active {
    display: flex !important;
}

.modal {
    display: none !important;
}
.modal.show, 
.modal.active,
.modal[style*="display: flex"] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#enhancedAnnouncementModal.modal {
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(5px) !important;
}

#enhancedAnnouncementModal .modal-content {
    background: white !important;
    position: relative !important;
    margin: 20px auto !important;
}

/* VIP Package Media Preview Styles */
.media-source-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.media-tab {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.media-tab.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.media-section {
    display: none;
    margin-top: 15px;
}

.media-section.active {
    display: block;
}

.media-type-selector {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.media-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.preview-item {
    position: relative;
}

.preview-item img,
.preview-item video,
.preview-item iframe {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.preview-info {
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
    word-break: break-all;
}

.preview-error {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    text-align: center;
}

.remove-preview {
    margin-top: 10px;
    padding: 5px 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.remove-preview:hover {
    background: #c82333;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #3498db;
    background: #e3f2fd;
}

.upload-area i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 10px;
}

.no-media-message {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}

.no-media-message i {
    font-size: 48px;
    margin-bottom: 10px;
}

/* VIP Package Media Styles */
.media-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.media-tab-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.media-tab-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.media-tab-btn i {
    font-size: 14px;
}

.media-section {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.media-section.active {
    display: block;
}

.media-type-selector {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.media-type-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.3s;
}

.media-type-option:hover {
    background: #e9ecef;
}

.media-type-option input {
    margin: 0;
}

.media-preview-container {
    margin-top: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f1f3f5;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
}

.clear-preview {
    background: none;
    border: none;
    cursor: pointer;
    color: #dc3545;
    padding: 5px;
    border-radius: 4px;
}

.clear-preview:hover {
    background: rgba(220, 53, 69, 0.1);
}

.preview-content {
    padding: 15px;
    text-align: center;
}

.preview-item img,
.preview-item video,
.preview-item iframe {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.preview-info {
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
    word-break: break-all;
}

.preview-error {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    text-align: center;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #3498db;
    background: #e3f2fd;
}

.upload-area i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 10px;
}

.no-media-message {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}

.no-media-message i {
    font-size: 48px;
    margin-bottom: 10px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

/* ==============================================
   SND VIP PACKAGES STYLES
   ============================================== */

/* Package Media Placeholders */
.media-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.media-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.media-placeholder span {
    font-size: 18px;
    letter-spacing: 2px;
}

/* SND Package Colors */
.snd-basic { background: linear-gradient(135deg, #667eea, #764ba2); }
.snd-wireless { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.snd-open { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #333; }
.snd-open i, .snd-open span { color: #333; }
.snd-lite { background: linear-gradient(135deg, #fa709a, #fee140); color: #333; }
.snd-lite i, .snd-lite span { color: #333; }
.snd-pro { background: linear-gradient(135deg, #a18cd1, #fbc2eb); color: #333; }
.snd-pro i, .snd-pro span { color: #333; }
.snd-max { background: linear-gradient(135deg, #f093fb, #f5576c); }

/* Package Icons */
.vip-package-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    position: absolute;
    bottom: -25px;
    left: 20px;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.vip-package-icon.basic { background: linear-gradient(135deg, #667eea, #764ba2); }
.vip-package-icon.wireless { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.vip-package-icon.open { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #333; }
.vip-package-icon.lite { background: linear-gradient(135deg, #fa709a, #fee140); color: #333; }
.vip-package-icon.pro { background: linear-gradient(135deg, #a18cd1, #fbc2eb); color: #333; }
.vip-package-icon.max { background: linear-gradient(135deg, #f093fb, #f5576c); }

/* Featured Package */
.vip-package-card.featured {
    border: 2px solid #ffd700;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

.vip-package-card.featured:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
}

/* Hot Badge */
.vip-corner-badge.hot {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    animation: hotPulse 1.5s infinite;
}

@keyframes hotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 65, 108, 0); }
}

/* Max Button */
.btn-vip-select.max-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-vip-select.max-btn:hover {
    background: linear-gradient(135deg, #e082ea, #e4455b);
    box-shadow: 0 5px 20px rgba(240, 147, 251, 0.4);
}

/* VIP Navigation Badge */
.nav-link[data-target="vip-marketplace"] .sidebar-badge {
    background: linear-gradient(135deg, #ffd700, #ff4b2b) !important;
    color: white !important;
    font-weight: bold;
    animation: vipBadgePulse 2s infinite;
}

.bottom-item[data-target="vip-marketplace"] {
    position: relative;
}

.bottom-item[data-target="vip-marketplace"] .bottom-icon {
    color: #ffd700;
}

.bottom-item[data-target="vip-marketplace"].active .bottom-icon {
    color: #ff4b2b;
}

@keyframes vipBadgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* VIP Button in Header */
.content-actions .logout-btn[onclick*="vip-marketplace"] {
    background: linear-gradient(135deg, #ffd700, #ff4b2b) !important;
    color: white !important;
    font-weight: bold;
    animation: headerVIPPulse 2s infinite;
}

@keyframes headerVIPPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
}

/* ==============================================
   snd PACKAGES SECTION - UNIQUE STYLING
   ============================================== */

/* snd Section Header */
#snd-marketplace .section-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

#snd-marketplace .section-title {
    color: white !important;
    border-bottom: none !important;
}

#snd-marketplace .section-title i {
    color: #ffd700 !important;
}

#snd-marketplace .section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* snd Package Cards - Unique border style */
#snd-marketplace .vip-package-card {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea, #764ba2) border-box;
}

#snd-marketplace .vip-package-card:hover {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* snd Badge Colors */
#snd-marketplace .vip-corner-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
}

/* snd Package Icons */
#snd-marketplace .vip-package-icon.basic { background: linear-gradient(135deg, #667eea, #764ba2); }
#snd-marketplace .vip-package-icon.wireless { background: linear-gradient(135deg, #4facfe, #00f2fe); }
#snd-marketplace .vip-package-icon.open { background: linear-gradient(135deg, #43e97b, #38f9d7); }
#snd-marketplace .vip-package-icon.lite { background: linear-gradient(135deg, #fa709a, #fee140); }
#snd-marketplace .vip-package-icon.pro { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
#snd-marketplace .vip-package-icon.max { background: linear-gradient(135deg, #f093fb, #f5576c); }

/* snd Media Placeholders */
#snd-marketplace .snd-basic { background: linear-gradient(135deg, #667eea, #764ba2); }
#snd-marketplace .snd-wireless { background: linear-gradient(135deg, #4facfe, #00f2fe); }
#snd-marketplace .snd-open { background: linear-gradient(135deg, #43e97b, #38f9d7); }
#snd-marketplace .snd-lite { background: linear-gradient(135deg, #fa709a, #fee140); }
#snd-marketplace .snd-pro { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
#snd-marketplace .snd-max { background: linear-gradient(135deg, #f093fb, #f5576c); }

/* snd Return Badge */
#snd-marketplace .vip-return-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    padding: 12px;
    color: white;
}

/* snd Invest Button */
#snd-marketplace .btn-vip-select {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#snd-marketplace .btn-vip-select:hover {
    background: linear-gradient(135deg, #5a6fd6, #6a3f96);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* snd Max Button */
#snd-marketplace .btn-vip-select.max-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

#snd-marketplace .btn-vip-select.max-btn:hover {
    background: linear-gradient(135deg, #e082ea, #e4455b);
    box-shadow: 0 5px 20px rgba(240, 147, 251, 0.4);
}

/* snd Featured Package */
#snd-marketplace .vip-package-card.featured {
    border: 3px solid #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

/* snd Hot Badge */
#snd-marketplace .vip-corner-badge.hot {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    animation: sdnPulse 1.5s infinite;
}

@keyframes sdnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 65, 108, 0); }
}

/* snd Benefits */
#snd-marketplace .vip-benefit {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
}

/* snd Section Title Badge */
#snd-marketplace .vip-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

/* ==============================================
   VIP MARKETPLACE SECTION - DIFFERENT STYLING
   ============================================== */

/* VIP Section Header */
#vip-marketplace .section-header {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

#vip-marketplace .section-title {
    color: #333 !important;
    border-bottom: none !important;
}

#vip-marketplace .section-title i {
    color: #333 !important;
}

#vip-marketplace .section-subtitle {
    color: rgba(0, 0, 0, 0.7) !important;
}

/* VIP Package Cards - Gold border */
#vip-marketplace .vip-package-card {
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, #fff9f0, #fff5e6);
}

#vip-marketplace .vip-package-card:hover {
    border-color: #ffd700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* VIP Badge */
#vip-marketplace .vip-corner-badge {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #333;
    font-weight: bold;
}

/* VIP Invest Button */
#vip-marketplace .btn-vip-select {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #333;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#vip-marketplace .btn-vip-select:hover {
    background: linear-gradient(135deg, #ffed4e, #ffa000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* VIP Return Badge */
#vip-marketplace .vip-return-badge {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    padding: 12px;
    color: #ffd700;
}

/* VIP Benefits */
#vip-marketplace .vip-benefit {
    background: rgba(255, 215, 0, 0.1);
    color: #d4a000;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
}

/* VIP Section Title Badge */
#vip-marketplace .vip-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

/* ==============================================
   snd PACKAGES - UNIQUE STYLES (no vip conflict)
   ============================================== */

/* snd Grid */
.snd-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* snd Package Card */
.snd-package-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.snd-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

/* Featured snd Package */
.snd-package-card.snd-featured {
    border: 3px solid #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    transform: scale(1.02);
}

.snd-package-card.snd-featured:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

/* snd Corner Badge */
.snd-corner-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    letter-spacing: 1px;
}

.snd-corner-badge.popular {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #333;
}

.snd-corner-badge.hot {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    animation: sdnPulse 1.5s infinite;
}

@keyframes sdnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 65, 108, 0); }
}

/* snd Media */
.snd-package-media {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.snd-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.snd-media-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.snd-media-placeholder span {
    font-size: 18px;
    letter-spacing: 2px;
}

/* snd Media Colors */
.snd-media-placeholder.snd-basic { background: linear-gradient(135deg, #667eea, #764ba2); }
.snd-media-placeholder.snd-wireless { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.snd-media-placeholder.snd-open { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.snd-media-placeholder.snd-open i, .snd-media-placeholder.snd-open span { color: #333; }
.snd-media-placeholder.snd-lite { background: linear-gradient(135deg, #fa709a, #fee140); }
.snd-media-placeholder.snd-lite i, .snd-media-placeholder.snd-lite span { color: #333; }
.snd-media-placeholder.snd-pro { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.snd-media-placeholder.snd-pro i, .snd-media-placeholder.snd-pro span { color: #333; }
.snd-media-placeholder.snd-max { background: linear-gradient(135deg, #f093fb, #f5576c); }

/* snd Package Icon */
.snd-package-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    position: absolute;
    bottom: -25px;
    left: 20px;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.snd-package-icon.basic { background: linear-gradient(135deg, #667eea, #764ba2); }
.snd-package-icon.wireless { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.snd-package-icon.open { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #333; }
.snd-package-icon.lite { background: linear-gradient(135deg, #fa709a, #fee140); color: #333; }
.snd-package-icon.pro { background: linear-gradient(135deg, #a18cd1, #fbc2eb); color: #333; }
.snd-package-icon.max { background: linear-gradient(135deg, #f093fb, #f5576c); }

/* snd Package Content */
.snd-package-content {
    padding: 30px 20px 20px;
}

.snd-package-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
}

.snd-package-description {
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* snd Stats */
.snd-package-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.snd-stat {
    flex: 1;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
}

.snd-stat .stat-label {
    font-size: 11px;
    color: #7f8c8d;
    display: block;
}

.snd-stat .stat-value {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}

.snd-stat .stat-value.snd-highlight {
    color: #667eea;
    font-size: 16px;
}

/* snd Return Badge */
.snd-return-badge {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    color: white;
}

.snd-return-badge .return-item {
    flex: 1;
    text-align: center;
}

.snd-return-badge .return-label {
    font-size: 10px;
    opacity: 0.8;
}

.snd-return-badge .return-value {
    font-size: 18px;
    font-weight: bold;
}

/* snd Benefits */
.snd-benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.snd-benefit {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
}

/* snd Invest Button */
.snd-invest-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.snd-invest-btn:hover {
    background: linear-gradient(135deg, #5a6fd6, #6a3f96);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.snd-invest-btn.snd-max-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.snd-invest-btn.snd-max-btn:hover {
    background: linear-gradient(135deg, #e082ea, #e4455b);
    box-shadow: 0 5px 20px rgba(240, 147, 251, 0.4);
}

/* snd Badge */
.snd-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .snd-packages-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .snd-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .snd-packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.h1 {
color: #fff;
}

/* Deposit Section */
.deposit-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.deposit-step {
    animation: fadeIn 0.3s ease;
}
.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.bank-option-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.bank-option-card:hover {
    border-color: #3498db;
    background: #e8f4fc;
}
.bank-option-icon {
    width: 48px;
    height: 48px;
    background: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}
.bank-option-info {
    flex: 1;
}
.bank-option-name {
    font-weight: 600;
}
.bank-option-number {
    font-family: monospace;
    font-size: 14px;
    color: #2c3e50;
}
.bank-option-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #ddd;
}
.bank-option-badge.mobile { background: #27ae60; color: white; }
.bank-option-badge.bank { background: #3498db; color: white; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
}
.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.quick-amount {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}
.quick-amount:hover { background: #3498db; color: white; }
.step-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}
.summary-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}
.summary-row:last-child { border-bottom: none; }
.success-box {
    text-align: center;
    padding: 30px;
}
.success-box i { font-size: 60px; color: #27ae60; margin-bottom: 20px; }
.btn { padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; }
.btn-primary { background: #3498db; color: white; }
.btn-secondary { background: #95a5a6; color: white; }
.btn-success { background: #27ae60; color: white; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Deposit Section Styles */
.deposit-wizard {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}

/* Wizard Steps */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
    color: #7f8c8d;
    transition: all 0.3s;
}

.step.active .step-number {
    background: #3498db;
    color: white;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.3);
}

.step.completed .step-number {
    background: #27ae60;
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
}

.step-label {
    font-size: 12px;
    color: #7f8c8d;
}

.step.active .step-label {
    color: #3498db;
    font-weight: 600;
}

/* Step Content */
.deposit-step {
    animation: fadeIn 0.3s ease;
}

.step-content {
    min-height: 400px;
}

.step-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.step-description {
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 14px;
}

/* Bank Accounts Grid */
.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.bank-option-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.bank-option-card:hover {
    border-color: #3498db;
    background: #e8f4fc;
    transform: translateY(-2px);
}

.bank-option-icon {
    width: 48px;
    height: 48px;
    background: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.bank-option-info {
    flex: 1;
}

.bank-option-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.bank-option-number {
    font-family: monospace;
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.bank-option-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #ddd;
    display: inline-block;
}

.bank-option-badge.mobile { background: #27ae60; color: white; }
.bank-option-badge.bank { background: #3498db; color: white; }

.bank-option-select {
    color: #7f8c8d;
}

/* Selected Account Card */
.selected-account-card {
    background: #e8f5e9;
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-account-icon {
    width: 50px;
    height: 50px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.selected-account-details h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.selected-account-details .account-number {
    font-family: monospace;
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* Instructions Card */
.instructions-card {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.instructions-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.instructions-header i {
    color: #ffc107;
    font-size: 20px;
}

.instructions-header h4 {
    margin: 0;
    color: #856404;
}

.instructions-body {
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

/* Quick Amounts */
.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-amount {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.quick-amount:hover {
    background: #3498db;
    color: white;
}

/* Summary Card */
.summary-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.summary-header i {
    color: #3498db;
    font-size: 20px;
}

.summary-header h4 {
    margin: 0;
    color: #2c3e50;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-label {
    color: #7f8c8d;
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Success Content */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #27ae60;
    margin-bottom: 20px;
}

.success-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

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

.info-box {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.info-box i {
    color: #3498db;
    margin-right: 10px;
}

/* Step Footer */
.step-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-prev, .btn-next, .btn-primary, .btn-success, .btn-secondary {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-prev {
    background: #95a5a6;
    color: white;
}

.btn-prev:hover {
    background: #7f8c8d;
}

.btn-next, .btn-primary {
    background: #3498db;
    color: white;
}

.btn-next:hover, .btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #219a52;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group label i {
    margin-right: 8px;
    color: #3498db;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #7f8c8d;
}

/* Loading State */
.loading-state, .loading-spinner {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .deposit-wizard {
        padding: 15px;
    }
    
    .bank-accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-steps::before {
        top: 15px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .step-footer {
        flex-wrap: wrap;
    }
    
    .step-footer button {
        flex: 1;
    }
}

/* Deposit Section Styles */
.deposit-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.deposit-header {
    text-align: center;
    margin-bottom: 30px;
}

.deposit-header h2 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.deposit-header p {
    color: #7f8c8d;
}

/* Progress Steps */
.deposit-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 50px;
}

.deposit-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    background: transparent;
}

.progress-step .step-circle {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
    color: #7f8c8d;
    transition: all 0.3s;
}

.progress-step.active .step-circle {
    background: #3498db;
    border-color: #3498db;
    color: white;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.3);
}

.progress-step.completed .step-circle {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.progress-step.completed .step-circle::after {
    content: '✓';
}

.progress-step .step-label {
    font-size: 12px;
    font-weight: 500;
    color: #95a5a6;
}

.progress-step.active .step-label {
    color: #3498db;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #27ae60;
}

/* Deposit Steps */
.deposit-step {
    animation: fadeIn 0.3s ease;
}

.step-content {
    min-height: 400px;
}

.step-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.step-desc {
    color: #7f8c8d;
    margin-bottom: 25px;
}

/* Bank Accounts Grid */
.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.bank-option-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.bank-option-card:hover {
    border-color: #3498db;
    background: #e8f4fc;
    transform: translateY(-2px);
}

.bank-option-card.selected {
    border-color: #27ae60;
    background: #e8f5e9;
    box-shadow: 0 2px 8px rgba(39,174,96,0.2);
}

.bank-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.bank-option-icon.mobile { background: #27ae60; }
.bank-option-icon.bank { background: #3498db; }

.bank-option-info {
    flex: 1;
}

.bank-option-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.bank-option-number {
    font-family: monospace;
    font-size: 14px;
    color: #7f8c8d;
}

/* Selected Account Card */
.selected-account-card {
    background: #e8f5e9;
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-account-icon {
    width: 50px;
    height: 50px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.selected-account-details h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.selected-account-details .account-number {
    font-family: monospace;
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* User Bank Accounts */
.user-bank-accounts-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.user-bank-accounts-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.user-bank-accounts-section .section-header h4 {
    margin: 0;
    color: #2c3e50;
}

.btn-add-account {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.user-bank-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-bank-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-bank-card:hover {
    border-color: #3498db;
    background: #e8f4fc;
}

.user-bank-card.selected {
    border-color: #27ae60;
    background: #e8f5e9;
}

.user-bank-card .bank-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.user-bank-card .bank-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.user-bank-card .bank-number {
    font-family: monospace;
    font-size: 12px;
    color: #7f8c8d;
}

/* Quick Amounts */
.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-amount {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.quick-amount:hover {
    background: #3498db;
    color: white;
}

/* Send Money Instructions */
.send-money-instructions {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.instruction-icon {
    width: 60px;
    height: 60px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.instruction-title h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.instruction-title p {
    margin: 0;
    color: #7f8c8d;
    font-family: monospace;
    font-size: 14px;
}

.instruction-steps {
    margin: 20px 0;
    padding-left: 20px;
}

.instruction-steps li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.payment-details {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.payment-label {
    color: #7f8c8d;
}

.payment-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #856404;
}

/* Summary Card */
.summary-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.summary-label {
    color: #7f8c8d;
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Success Content */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #27ae60;
    margin-bottom: 20px;
}

.submission-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.detail-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.detail-line:last-child {
    border-bottom: none;
}

.info-message {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.info-message i {
    font-size: 30px;
    color: #3498db;
}

.info-message p {
    margin: 0;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #219a52;
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.loading-small {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 13px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .deposit-container {
        padding: 20px;
    }
    
    .deposit-progress {
        padding: 10px;
    }
    
    .progress-step .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .bank-accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-wrap: wrap;
    }
    
    .step-actions button {
        flex: 1;
    }
    
    .user-bank-card {
        flex-wrap: wrap;
    }
}

/* Bank Type Badge Styles */
.bank-type-badge {
    margin-top: 6px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.badge.mobile {
    background: #27ae60;
    color: white;
}

.badge.bank {
    background: #3498db;
    color: white;
}

.badge.lipa {
    background: #f39c12;
    color: white;
}

.provider-name-small {
    font-size: 10px;
    color: #7f8c8d;
    margin-top: 3px;
}

.account-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
}

.account-type-badge.mobile {
    background: #27ae60;
    color: white;
}

.account-type-badge.bank {
    background: #3498db;
    color: white;
}

.account-type-badge.lipa {
    background: #f39c12;
    color: white;
}

.provider-name {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 4px;
}

/* Selected card highlight */
.bank-option-card.selected {
    border-color: #27ae60;
    background: #e8f5e9;
    box-shadow: 0 2px 12px rgba(39,174,96,0.3);
    transform: scale(1.01);
}

.bank-option-card.selected .bank-option-select i {
    color: #27ae60;
    transform: translateX(5px);
}

.bank-option-card.selected .bank-option-icon {
    background: #27ae60 !important;
    box-shadow: 0 2px 8px rgba(39,174,96,0.3);
}

/* Hover effect */
.bank-option-card {
    transition: all 0.3s ease;
}

.bank-option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px;
}

.empty-state i {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.empty-state h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-state p {
    color: #7f8c8d;
}

/* Deposit Section - Unique Class Names */
.deposit-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Progress Steps */
.deposit-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 50px;
}

.progress-step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.progress-step-item .step-circle-num {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
    color: #7f8c8d;
    transition: all 0.3s;
}

.progress-step-item.active .step-circle-num {
    background: #3498db;
    border-color: #3498db;
    color: white;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.3);
}

.progress-step-item.completed .step-circle-num {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.progress-step-item .step-label-text {
    font-size: 12px;
    font-weight: 500;
    color: #95a5a6;
}

.progress-step-item.active .step-label-text {
    color: #3498db;
    font-weight: 600;
}

/* Bank Cards */
.bank-option-card-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.bank-option-card-item:hover {
    border-color: #3498db;
    background: #e8f4fc;
    transform: translateY(-2px);
}

.bank-option-card-item.selected {
    border-color: #27ae60;
    background: #e8f5e9;
}

.bank-option-icon-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.bank-option-icon-item.mobile { background: #27ae60; }
.bank-option-icon-item.bank { background: #3498db; }

.badge-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.badge-label.mobile { background: #27ae60; color: white; }
.badge-label.bank { background: #3498db; color: white; }

/* Step Actions */
.step-action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary { background: #3498db; color: white; }
.btn-primary:hover { background: #2980b9; }
.btn-secondary { background: #95a5a6; color: white; }
.btn-success { background: #27ae60; color: white; }

/* Deposit Section Container */
.deposit-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.deposit-header {
    text-align: center;
    margin-bottom: 30px;
}

.deposit-header h2 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.deposit-header p {
    color: #7f8c8d;
}

/* Progress Steps */
.deposit-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 50px;
    position: relative;
}

.deposit-progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.deposit-step-indicator {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    background: transparent;
}

.deposit-step-indicator .step-circle {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
    color: #7f8c8d;
    transition: all 0.3s;
}

.deposit-step-indicator.active .step-circle {
    background: #3498db;
    border-color: #3498db;
    color: white;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.3);
}

.deposit-step-indicator.completed .step-circle {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.deposit-step-indicator .step-text {
    font-size: 12px;
    font-weight: 500;
    color: #95a5a6;
}

.deposit-step-indicator.active .step-text {
    color: #3498db;
    font-weight: 600;
}

.deposit-step-indicator.completed .step-text {
    color: #27ae60;
}

/* Step Panels */
.deposit-step-panel {
    animation: depositFadeIn 0.3s ease;
}

@keyframes depositFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-content {
    min-height: 400px;
}

.step-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.step-description {
    color: #7f8c8d;
    margin-bottom: 25px;
}

/* Admin Accounts Grid */
.admin-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.admin-account-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.admin-account-card:hover {
    border-color: #3498db;
    background: #e8f4fc;
    transform: translateY(-2px);
}

.admin-account-card.selected {
    border-color: #27ae60;
    background: #e8f5e9;
    box-shadow: 0 2px 8px rgba(39,174,96,0.2);
}

.account-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.account-icon.mobile { background: #27ae60; }
.account-icon.bank { background: #3498db; }

.account-info {
    flex: 1;
}

.account-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.account-number {
    font-family: monospace;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.account-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.account-type-badge.mobile { background: #27ae60; color: white; }
.account-type-badge.bank { background: #3498db; color: white; }

.account-select-icon {
    color: #27ae60;
}

/* Selected Account Info */
.selected-account-info {
    background: #e8f5e9;
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-account-icon {
    width: 50px;
    height: 50px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.selected-account-details h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.selected-account-details .account-number {
    margin: 0;
    font-size: 14px;
}

/* Form Groups */
.deposit-form-group {
    margin-bottom: 20px;
}

.deposit-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.deposit-form-group label i {
    margin-right: 8px;
    color: #3498db;
}

.deposit-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.deposit-form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.deposit-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #7f8c8d;
}

.required label::after {
    content: ' *';
    color: #e74c3c;
}

/* Quick Amounts */
.quick-amounts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.deposit-quick-amount {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.deposit-quick-amount:hover {
    background: #3498db;
    color: white;
}

/* Send Instructions Card */
.send-instructions-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.instruction-icon {
    width: 60px;
    height: 60px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.instruction-title h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.payment-details-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.amount-value {
    color: #27ae60;
    font-size: 18px;
}

.instruction-steps {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    line-height: 1.6;
}

/* Warning Alert */
.warning-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #856404;
    margin-top: 20px;
}

/* Transaction Summary */
.transaction-summary-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

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

/* Success Content */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #27ae60;
    margin-bottom: 20px;
}

.submission-details-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.detail-item:last-child {
    border-bottom: none;
}

.info-message-box {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.info-message-box i {
    font-size: 30px;
    color: #3498db;
}

.info-message-box p {
    margin: 0;
}

/* Step Actions */
.deposit-step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.deposit-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.deposit-btn-primary {
    background: #3498db;
    color: white;
}

.deposit-btn-primary:hover {
    background: #2980b9;
}

.deposit-btn-secondary {
    background: #95a5a6;
    color: white;
}

.deposit-btn-secondary:hover {
    background: #7f8c8d;
}

.deposit-btn-success {
    background: #27ae60;
    color: white;
}

.deposit-btn-success:hover {
    background: #219a52;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: depositSpin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes depositSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 40px;
}

.empty-state i {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .deposit-container {
        padding: 20px;
    }
    
    .deposit-progress-steps {
        padding: 10px;
    }
    
    .deposit-step-indicator .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .step-text {
        font-size: 10px;
    }
    
    .admin-accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .deposit-step-actions {
        flex-wrap: wrap;
    }
    
    .deposit-step-actions button {
        flex: 1;
    }
    
    .selected-account-info {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
}

/* Deposit Section Styles */
.deposit-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.deposit-header {
    text-align: center;
    margin-bottom: 30px;
}

.deposit-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 50px;
}

.deposit-step-indicator {
    flex: 1;
    text-align: center;
}

.deposit-step-indicator .step-circle {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
    color: #7f8c8d;
}

.deposit-step-indicator.active .step-circle {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.deposit-step-indicator.completed .step-circle {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.deposit-step-indicator .step-text {
    font-size: 12px;
    color: #95a5a6;
}

.deposit-step-indicator.active .step-text {
    color: #3498db;
    font-weight: 600;
}

/* Bank Cards */
.admin-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.admin-account-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.admin-account-card:hover {
    border-color: #3498db;
    background: #e8f4fc;
    transform: translateY(-2px);
}

.admin-account-card.selected {
    border-color: #27ae60;
    background: #e8f5e9;
}

.account-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.account-icon.mobile { background: #27ae60; }
.account-icon.bank { background: #3498db; }

.account-info {
    flex: 1;
}

.account-name {
    font-weight: 600;
    color: #2c3e50;
}

.account-number {
    font-family: monospace;
    font-size: 14px;
    color: #7f8c8d;
}

.account-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    background: #e9ecef;
}

.selected-account-info {
    background: #e8f5e9;
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-account-icon {
    width: 50px;
    height: 50px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.deposit-form-group {
    margin-bottom: 20px;
}

.deposit-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.deposit-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
}

.quick-amounts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.deposit-quick-amount {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
}

.deposit-quick-amount:hover {
    background: #3498db;
    color: white;
}

.send-instructions-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.instruction-icon {
    width: 60px;
    height: 60px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.payment-details-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.warning-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 12px 15px;
    color: #856404;
}

.transaction-summary-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.deposit-step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.deposit-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.deposit-btn-primary { background: #3498db; color: white; }
.deposit-btn-secondary { background: #95a5a6; color: white; }
.deposit-btn-success { background: #27ae60; color: white; }

.success-content { text-align: center; }
.success-icon { font-size: 80px; color: #27ae60; margin-bottom: 20px; }

.submission-details-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.info-message-box {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
    .deposit-container { padding: 20px; }
    .admin-accounts-grid { grid-template-columns: 1fr; }
    .deposit-step-actions { flex-wrap: wrap; }
    .deposit-step-actions button { flex: 1; }
}

/* Admin Bank Accounts Styles */
.bank-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bank-stats-grid .stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bank-stats-grid .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.bank-stats-grid .stat-icon.mobile { background: #27ae60; }
.bank-stats-grid .stat-icon.bank { background: #3498db; }
.bank-stats-grid .stat-icon.active { background: #f39c12; }

.bank-stats-grid .stat-info h3 {
    font-size: 28px;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.bank-stats-grid .stat-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bank-account-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s;
}

.bank-account-card.inactive {
    opacity: 0.6;
    background: #f8f9fa;
}

.bank-account-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bank-account-card .card-header {
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bank-account-card .bank-logo {
    width: 50px;
    height: 50px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.bank-account-card .card-header-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.bank-account-card .account-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.bank-account-card .account-type-badge.mobile {
    background: #27ae60;
    color: white;
}

.bank-account-card .account-type-badge.bank {
    background: #3498db;
    color: white;
}

.bank-account-card .provider-name {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 3px;
}

.bank-account-card .card-body {
    padding: 15px;
}

.bank-account-card .account-number {
    font-family: monospace;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-account-card .copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #3498db;
}

.bank-account-card .status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.bank-account-card .status-badge.active {
    background: #d4edda;
    color: #155724;
}

.bank-account-card .status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.bank-account-card .account-order {
    margin-top: 10px;
    color: #7f8c8d;
}

.bank-account-card .card-footer {
    padding: 12px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-success {
    background: #27ae60;
    color: white;
}

/* ============================================
   DEPOSIT SYSTEM STYLES
   ============================================ */

/* Deposit Container */
.deposit-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.deposit-header {
    text-align: center;
    margin-bottom: 30px;
}

.deposit-header h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
}

.deposit-header p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Progress Steps */
.deposit-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.deposit-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.deposit-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}

.deposit-step-indicator.active .step-circle {
    background: #3498db;
    color: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.deposit-step-indicator.completed .step-circle {
    background: #27ae60;
    color: white;
}

.step-text {
    margin-top: 8px;
    font-size: 11px;
    color: #7f8c8d;
    text-align: center;
}

.deposit-step-indicator.active .step-text {
    color: #3498db;
    font-weight: 600;
}

/* Step Panels */
.deposit-step-panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-description {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Bank Account Cards */
.admin-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.deposit-bank-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.deposit-bank-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.deposit-bank-card.selected {
    border-color: #27ae60;
    background: #e8f5e9;
}

.bank-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.bank-card-info {
    flex: 1;
}

.bank-card-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.bank-number {
    font-family: monospace;
    font-size: 14px;
    color: #7f8c8d;
}

.bank-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 5px;
}

.bank-type-badge.mobile {
    background: #e3f2fd;
    color: #1976d2;
}

.bank-type-badge.bank {
    background: #e8f5e9;
    color: #388e3c;
}

.provider-name {
    font-size: 11px;
    color: #95a5a6;
    margin-top: 3px;
}

.bank-card-arrow {
    color: #bdc3c7;
    font-size: 20px;
}

/* Selected Account Info */
.selected-account-card {
    background: #e8f5e9;
    border: 2px solid #27ae60;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.selected-icon {
    width: 45px;
    height: 45px;
    background: #27ae60;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.selected-info {
    flex: 1;
}

.selected-info strong {
    display: block;
    color: #2c3e50;
}

.selected-info span {
    display: block;
    font-size: 13px;
    color: #666;
}

.change-account-btn {
    background: white;
    border: 1px solid #27ae60;
    color: #27ae60;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

/* Form Groups */
.deposit-form-group {
    margin-bottom: 20px;
}

.deposit-form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.deposit-form-group input,
.deposit-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.deposit-form-group input:focus,
.deposit-form-group select:focus {
    outline: none;
    border-color: #3498db;
}

/* Quick Amounts */
.quick-amounts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-amount-btn {
    padding: 8px 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.quick-amount-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.quick-amount-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Instruction Card */
.instruction-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.instruction-header i {
    font-size: 24px;
    color: #3498db;
}

.instruction-header h4 {
    margin: 0;
    color: #2c3e50;
}

.instruction-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instruction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.instruction-row .label {
    color: #7f8c8d;
    font-size: 13px;
}

.instruction-row .value {
    font-weight: 600;
    color: #2c3e50;
}

.instruction-row .value.amount {
    color: #27ae60;
    font-size: 18px;
}

.copyable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copyable i {
    color: #3498db;
    font-size: 12px;
}

.instruction-steps {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.instruction-steps h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.steps-content {
    font-size: 13px;
    line-height: 1.6;
    color: #5d6d7e;
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 20px;
}

.summary-card h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #dee2e6;
}

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

.summary-row span {
    color: #7f8c8d;
}

.summary-row strong.amount {
    color: #27ae60;
    font-size: 16px;
}

/* Warning Alert */
.warning-alert {
    background: #fff3cd;
    padding: 12px 15px;
    border-radius: 8px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 13px;
    border-left: 4px solid #ffc107;
}

/* Success Content */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 64px;
    color: #27ae60;
    margin-bottom: 20px;
}

.submission-details-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.submission-details-card .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

.submission-details-card .detail-item:last-child {
    border-bottom: none;
}

.info-message-box {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    text-align: left;
    font-size: 13px;
    color: #0c5460;
    margin: 20px 0;
}

/* Step Actions */
.deposit-step-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.deposit-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.deposit-btn-primary {
    background: #3498db;
    color: white;
}

.deposit-btn-primary:hover {
    background: #2980b9;
}

.deposit-btn-secondary {
    background: #6c757d;
    color: white;
}

.deposit-btn-success {
    background: #27ae60;
    color: white;
}

.deposit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   ADMIN BANK MANAGEMENT STYLES
   ============================================ */

.bank-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.bank-stats-grid .stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.stat-icon.mobile { color: #1976d2; }
.stat-icon.bank { color: #388e3c; }
.stat-icon.lipa { color: #e67e22; }
.stat-icon.active { color: #27ae60; }

.stat-info h3 {
    font-size: 28px;
    margin: 0;
    color: #2c3e50;
}

.stat-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #7f8c8d;
}

/* Admin Toolbar */
.admin-toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 180px;
}

/* Admin Bank Cards Grid */
.bank-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.bank-admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.bank-admin-card.inactive {
    opacity: 0.6;
}

.bank-admin-card .card-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bank-admin-card .bank-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.bank-admin-card .bank-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.card-body {
    padding: 15px 20px;
}

.account-number {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.copy-btn {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 14px;
}

.account-description {
    margin-bottom: 10px;
}

.description-text {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
    line-height: 1.4;
}

.account-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #95a5a6;
}

.card-footer {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.btn-sm {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-edit { background: #ffc107; color: #212529; }
.btn-deactivate { background: #dc3545; color: white; }
.btn-activate { background: #28a745; color: white; }
.btn-delete { background: #6c757d; color: white; }

/* Account Type Selector */
.account-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.type-option {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.type-option:hover {
    border-color: #3498db;
}

.type-option.active {
    border-color: #27ae60;
    background: #e8f5e9;
}

.type-option i {
    font-size: 24px;
}

.type-option span {
    font-size: 13px;
    font-weight: 600;
}

/* Empty State */
.empty-state, .no-accounts-state, .error-state, .loading-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.empty-state i, .no-accounts-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #bdc3c7;
}

/* Responsive */
@media (max-width: 768px) {
    .deposit-progress-steps {
        flex-wrap: wrap;
    }
    
    .deposit-step-indicator {
        flex: 0 0 auto;
    }
    
    .bank-accounts-grid,
    .admin-accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-toolbar {
        flex-direction: column;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .account-type-selector {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .deposit-step-actions {
        flex-direction: column;
    }
    
    .deposit-btn {
        width: 100%;
    }
    
    .card-footer {
        flex-direction: column;
    }
}

/* ============================================
   DEPOSIT WIZARD STYLES
   ============================================ */

/* Deposit Container */
.deposit-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.deposit-header {
    text-align: center;
    margin-bottom: 30px;
}

.deposit-header h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 8px;
}

.deposit-header h2 i {
    color: #27ae60;
}

.deposit-header p {
    color: #7f8c8d;
    font-size: 14px;
}

/* ============================================
   STEP INDICATORS
   ============================================ */
.deposit-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    position: relative;
}

.deposit-progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #ddd;
    transform: translateY(-50%);
    z-index: 0;
}

.deposit-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #7f8c8d;
    transition: all 0.3s;
}

.step-text {
    font-size: 11px;
    color: #7f8c8d;
    text-align: center;
    font-weight: 500;
}

/* Active Step */
.deposit-step-indicator.active .step-circle {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.2);
}

.deposit-step-indicator.active .step-text {
    color: #667eea;
    font-weight: 600;
}

/* Completed Step */
.deposit-step-indicator.completed .step-circle {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.deposit-step-indicator.completed .step-circle::after {
    content: '✓';
}

.deposit-step-indicator.completed .step-text {
    color: #27ae60;
}

/* ============================================
   STEP PANELS
   ============================================ */
.deposit-step-panel {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
}

.step-content h3 {
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-content h3 i {
    color: #667eea;
}

.step-description {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ============================================
   ADMIN ACCOUNTS GRID (Step 1)
   ============================================ */
.admin-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.deposit-account-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.deposit-account-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.deposit-account-card.selected {
    border-color: #27ae60;
    background: #e8f5e9;
    transform: scale(1.02);
}

.deposit-account-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.account-icon img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.account-name-type h4 {
    margin: 0;
    font-size: 14px;
    color: #2c3e50;
}

.type-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e3f2fd;
    color: #1976d2;
}

.deposit-account-card-body {
    margin-bottom: 10px;
}

.account-number-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #2c3e50;
}

.copy-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #667eea;
    color: white;
}

.provider-name {
    font-size: 12px;
    color: #7f8c8d;
    margin: 5px 0 0 0;
}

.deposit-account-card-footer {
    text-align: right;
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

/* ============================================
   SELECTED ACCOUNT INFO (Step 2)
   ============================================ */
.selected-account-card {
    background: #e8f5e9;
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.selected-account-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    margin-bottom: 10px;
}

.selected-account-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.selected-account-details .detail-row:last-child {
    border-bottom: none;
}

/* ============================================
   DEPOSIT FORM FIELDS
   ============================================ */
.deposit-form-group {
    margin-bottom: 20px;
}

.deposit-form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.deposit-form-group label i {
    color: #667eea;
    width: 20px;
}

.deposit-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #fafafa;
}

.deposit-form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.quick-amounts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.deposit-quick-amount {
    flex: 1;
    min-width: 90px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.deposit-quick-amount:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.deposit-quick-amount.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ============================================
   SEND INSTRUCTIONS CARD (Step 3)
   ============================================ */
.send-instructions-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.instruction-header h4 {
    margin: 0;
    color: white;
}

.recipient-card {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.recipient-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.recipient-row.highlight {
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 8px;
    margin: 8px 0;
}

.recipient-row .copyable {
    cursor: pointer;
}

.instructions-text {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
}

.instructions-text h5 {
    margin-top: 0;
    color: white;
}

.instruction-content {
    font-size: 14px;
    line-height: 1.6;
}

/* Warning Alert */
.warning-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 12px 15px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 14px;
}

/* ============================================
   TRANSACTION SUMMARY (Step 4)
   ============================================ */
.transaction-summary-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.transaction-summary h5 {
    color: #2c3e50;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

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

/* ============================================
   SUCCESS CONTENT (Step 5)
   ============================================ */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #27ae60;
    margin-bottom: 20px;
    animation: bounceIn 0.5s ease;
}

.success-content h3 {
    color: #27ae60;
    font-size: 24px;
    margin-bottom: 20px;
}

.submission-details-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.submission-details-card .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.submission-details-card .detail-item:last-child {
    border-bottom: none;
}

.info-message-box {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    color: #1976d2;
    font-size: 14px;
}

.info-message-box i {
    font-size: 24px;
    margin-top: 2px;
}

/* ============================================
   STEP ACTION BUTTONS
   ============================================ */
.deposit-step-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.deposit-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.deposit-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.deposit-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.deposit-btn-secondary {
    background: #6c757d;
    color: white;
}

.deposit-btn-secondary:hover {
    background: #5a6268;
}

.deposit-btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.deposit-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading-state {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.empty-state h4 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.empty-state p {
    color: #7f8c8d;
    font-size: 14px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .deposit-progress-steps {
        padding: 15px 10px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .step-text {
        font-size: 9px;
    }
    
    .admin-accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .deposit-step-panel {
        padding: 20px 15px;
    }
    
    .deposit-step-actions {
        flex-direction: column;
    }
    
    .quick-amounts-container {
        gap: 5px;
    }
    
    .deposit-quick-amount {
        font-size: 11px;
        padding: 6px 10px;
    }
}

    /* Additional CSS for the logo */
    .logo-section {
        text-align: center;
        margin-bottom: 20px;
        padding: 10px 0;
    }
    
    .company-logo {
        max-width: 100%;
        height: auto;
        max-height: 120px;
        width: auto;
        display: inline-block;
    }
    
    /* Adjust header spacing if needed */
    .login-box .header {
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Social Links Popup Styles */
.social-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow-y: auto;
    padding: 20px;
}

.social-popup-content {
    background: white;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.social-link-item {
    transition: transform 0.2s ease;
}

.social-link-item:hover {
    transform: translateX(5px);
}

@media (max-width: 576px) {
    .social-popup-content {
        margin: 20px;
        padding: 20px;
    }
}

/* ============================================ */
/* RECENT TRANSACTIONS STYLES                    */
/* ============================================ */

/* Stats Grid */
.transaction-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-card.deposit-stat .stat-icon {
    background: #e8f5e9;
    color: #27ae60;
}

.stat-card.withdraw-stat .stat-icon {
    background: #fce4ec;
    color: #e74c3c;
}

.stat-card .stat-info h3 {
    margin: 0;
    font-size: 22px;
    color: #2c3e50;
}

.stat-card .stat-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
}

/* Filters */
.transaction-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.transaction-filters .search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.transaction-filters .search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.transaction-filters .search-box input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.transaction-filters .search-box input:focus {
    border-color: #3498db;
    outline: none;
}

.transaction-filters select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.btn-refresh {
    padding: 10px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-refresh:hover {
    background: #2980b9;
}

/* Running Ticker */
.transaction-ticker {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    white-space: nowrap;
    animation: ticker-scroll 20s linear infinite;
    font-size: 13px;
}

.ticker-content span {
    margin-right: 50px;
    display: inline-block;
}

.ticker-content .deposit-ticker {
    color: #2ecc71;
}

.ticker-content .withdraw-ticker {
    color: #e74c3c;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Mini Ticker (User Dashboard) */
.mini-ticker {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.mini-ticker-content {
    white-space: nowrap;
    animation: ticker-scroll 15s linear infinite;
    font-size: 12px;
}

/* Table */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.transactions-table th {
    background: #2c3e50;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    position: sticky;
    top: 0;
}

.transactions-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.transactions-table tr:hover {
    background: #f8f9fa;
}

.transactions-table .type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.type-badge.deposit {
    background: #e8f5e9;
    color: #27ae60;
}

.type-badge.withdrawal {
    background: #fce4ec;
    color: #e74c3c;
}

.status-badge.approved {
    background: #e8f5e9;
    color: #27ae60;
}

.status-badge.pending {
    background: #fff3e0;
    color: #f39c12;
}

.status-badge.rejected {
    background: #fce4ec;
    color: #e74c3c;
}

.amount-positive {
    color: #27ae60;
    font-weight: 700;
}

.amount-negative {
    color: #e74c3c;
    font-weight: 700;
}

/* Loading */
.loading-cell {
    text-align: center;
    padding: 40px !important;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.page-btn {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.page-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.page-info {
    font-size: 13px;
    color: #7f8c8d;
}

/* User Dashboard Card */
.announcement-transactions-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.announcement-transactions-card .card-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-transactions-card .card-header h3 {
    margin: 0;
    font-size: 15px;
}

.live-badge {
    background: #e74c3c;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.recent-transactions-list {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.recent-transaction-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
}

.recent-transaction-item .tx-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.recent-transaction-item .tx-icon.deposit {
    background: #e8f5e9;
    color: #27ae60;
}

.recent-transaction-item .tx-icon.withdrawal {
    background: #fce4ec;
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .transaction-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .transaction-filters {
        flex-direction: column;
    }
    
    .transaction-filters .search-box {
        width: 100%;
    }
}

@keyframes pulse-green {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}
.modal-content {
    animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}