/* Modern Dark Theme for EXCELLERS MLM */
:root {
    /* Dark Theme Colors */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #252542;
    --bg-card: #1e1e35;
    --bg-hover: #2a2a4a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8b8d0;
    --text-muted: #8888a0;
    
    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #3b82f6;
    
    /* Border Colors */
    --border-color: #2a2a4a;
    --border-light: #3a3a5a;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #252542 100%);
    
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Container Updates */
.container {
    max-width: 1200px;
}

/* Header Section */
.header-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Modern Navigation */
.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}

.menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu li a i {
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.menu li a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Dropdown Menu */
.menu-item-has-children {
    position: relative;
}

@media (min-width: 992px) {
    .menu-item-has-children > a {
        position: relative;
    }

    .menu-item-has-children > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        margin-left: 0.5rem;
        font-size: 0.75rem;
        transition: transform 0.3s ease;
    }

    .menu-item-has-children:hover > a::after {
        transform: rotate(180deg);
    }
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 200px;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.menu-item-has-children:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
}

.submenu li a i {
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
}

.submenu li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Custom Button */
.custom-button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.custom-button.theme {
    background: var(--gradient-primary);
    color: white;
}

.custom-button.theme:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Button */
.header-bar {
    display: none !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    position: relative;
    width: 30px;
    height: 25px;
    z-index: 10000;
}

.header-bar span {
    width: 25px;
    height: 3px;
    background: var(--text-primary) !important;
    border-radius: 3px;
    transition: var(--transition-fast);
    position: absolute;
    left: 0;
}

.header-bar span:first-child {
    top: 0;
}

.header-bar span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.header-bar span:last-child {
    bottom: 0;
}

.header-bar.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.header-bar.active span:nth-child(2) {
    opacity: 0;
}

.header-bar.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar Mobile Menu */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    display: none;
}

.mobile-sidebar.active {
    right: 0;
    display: block !important;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block !important;
}

@media (max-width: 991px) {
    .mobile-sidebar {
        display: block;
    }
    
    .mobile-sidebar-overlay {
        display: block;
    }
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 0.5rem;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.mobile-menu a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.mobile-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-submenu {
    list-style: none;
    padding-left: 1rem;
    margin: 0.5rem 0;
    display: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.mobile-submenu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.mobile-submenu a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mobile-submenu-toggle .toggle-icon {
    font-size: 0.75rem;
}

.mobile-submenu-toggle .toggle-icon.fa-chevron-up {
    transform: rotate(180deg);
}

/* Modern Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.card-body {
    color: var(--text-secondary);
}

/* Modern Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table thead {
    background: var(--bg-tertiary);
}

.table th {
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    color: var(--text-secondary);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-info);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

/* Form Elements */
.form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.form-control:focus {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b8b8d0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Contact Form */
.contact-form-group {
    margin-bottom: 1.5rem;
}

.contact-form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.contact-form-group button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.contact-form-group button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Auth Pages */
.account-section {
    min-height: 100vh;
    display: flex;
    background: var(--bg-primary);
}

.account-section .left {
    flex: 1;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.account-section .left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
}

.account-section .left-inner {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.account-section .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: var(--bg-secondary);
}

.account-section .middle {
    max-width: 450px;
    margin: 0 auto;
}

.account-section .title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.account-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.dashboard-card .icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dashboard-card .icon.primary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

.dashboard-card .icon.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-success);
}

.dashboard-card .icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-warning);
}

.dashboard-card .icon.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
}

.dashboard-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dashboard-card .label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Dashboard Items */
.dashboard-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
    margin-bottom: 1rem;
}

.dashboard-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.dashboard-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.dashboard-content {
    flex: 1;
}

.dashboard-content .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dashboard-content .title,
.dashboard-content h5,
.dashboard-content h6 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

/* Modal Cards */
.modal-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    z-index: 2000;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
}

.modal-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-card__header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.modal-status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-warning);
}

.modal-status-badge.awaiting {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-info);
}

.modal-status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
}

.modal-card__body {
    color: var(--text-secondary);
}

.modal-amount {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-amount .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-success);
    margin-bottom: 0.5rem;
}

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

.modal-bank-details {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.modal-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

.modal-detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.modal-countdown-box {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-timer {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

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

.modal-info-box {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.modal-info-box.pending {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent-warning);
}

.modal-info-box.awaiting {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-info);
}

.modal-info-box.rejected {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent-danger);
}

.modal-info-box p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

.modal-info-box .highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
}

.modal-btn.pay {
    background: var(--gradient-primary);
    color: white;
    width: 100%;
    justify-content: center;
}

.modal-btn.pay:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modal-btn.approve {
    background: var(--accent-success);
    color: white;
}

.modal-btn.approve:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modal-btn.reject {
    background: var(--accent-danger);
    color: white;
}

.modal-btn.reject:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modal-btn.whatsapp {
    background: #25D366;
    color: white;
    width: 100%;
    justify-content: center;
}

.modal-btn.whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modal-btn.dismiss {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    width: 100%;
    justify-content: center;
}

.modal-btn.dismiss:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Modal Overlays */
#payment-overlay,
#confirmation-overlay,
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1999;
    backdrop-filter: blur(5px);
}

/* Deposit Table */
.deposite-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.deposite-table thead {
    background: var(--bg-tertiary);
}

.deposite-table th {
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.875rem;
}

.deposite-table td {
    color: var(--text-secondary);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.deposite-table tbody tr {
    transition: var(--transition-fast);
}

.deposite-table tbody tr:hover {
    background: var(--bg-hover);
}

.deposite-table tbody tr:last-child td {
    border-bottom: none;
}

/* Custom Table */
.custom--table {
    background: var(--bg-tertiary);
}

/* Referral Input */
.referral-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.referral-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.copytext {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.copytext:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Alert */
.alert {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent-danger);
}

.alert-danger h5 {
    color: var(--accent-danger);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.alert-danger p {
    color: var(--text-secondary);
    margin: 0;
}

.alert-danger a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.alert-danger a:hover {
    text-decoration: underline;
}

/* Dashboard Section */
.dashboard-section {
    min-height: 100vh;
}

.padding-top {
    padding-top: 2rem;
}

.padding-bottom {
    padding-bottom: 2rem;
}

.mb-30-none {
    margin-bottom: 0;
}

/* Custom Card */
.custom--card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.primary-bg {
    background: var(--bg-card);
}

/* Button Base */
.btn--base {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn--base:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.bg--base {
    background: var(--gradient-primary);
}

.border--base {
    border-color: var(--accent-primary);
}

/* Form Control */
.form--control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.form--control:focus {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    outline: none;
}

/* Card Header Customization */
.card-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-body {
    padding: 1.5rem;
}

.card-body.p-0 {
    padding: 0;
}

/* Navigation Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: var(--transition-fast);
    font-weight: 500;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-tabs .nav-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--accent-primary);
}

.nav-tabs .nav-link i {
    margin-right: 0.5rem;
}

/* Transaction Section */
.transaction-section {
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--bg-secondary);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb li a:hover {
    color: var(--accent-primary);
}

.breadcrumb li.active {
    color: var(--text-primary);
}

/* Footer */
.footer-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-section .text-white {
    color: var(--text-secondary);
}

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

.footer-section a:hover {
    color: var(--accent-secondary);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .header-bar {
        display: flex !important;
    }
    
    .menu {
        display: none !important;
    }
    
    .right-area {
        display: none !important;
    }
    
    .account-section {
        flex-direction: column;
    }
    
    .account-section .left {
        padding: 3rem 1rem;
    }
    
    .account-section .right {
        padding: 2rem 1rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-theme {
    color: var(--accent-primary) !important;
}

.text-green {
    color: var(--accent-success) !important;
}

.text-danger {
    color: var(--accent-danger) !important;
}

.text-warning {
    color: var(--accent-warning) !important;
}

.bg-theme {
    background: var(--accent-primary) !important;
}

.hover-cl-light:hover {
    color: var(--accent-secondary) !important;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.overlay.active {
    display: block;
}

/* Scroll to Top */
.scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 997;
    box-shadow: var(--shadow-lg);
}

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

.scrollToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* Input Popup (Password Strength) */
.input-popup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 0.5rem;
}

.input-popup p {
    color: var(--text-secondary);
    margin: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.input-popup p::before {
    position: absolute;
    left: 0;
    font-family: 'Line Awesome Free';
    font-weight: 900;
}

.input-popup p.error::before {
    content: "\f057";
    color: var(--accent-danger);
}

.input-popup p.success::before {
    content: "\f058";
    color: var(--accent-success);
}

/* Cookies Card */
.cookies-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: var(--text-secondary);
}

.cookies-card__icon {
    background: var(--gradient-primary);
    color: white;
}

.cookies-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.cookies-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

/* Copy Animation */
.copyInput {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.copied::after {
    background: var(--accent-primary);
    color: white;
}

/* Tree Node Styling */
.tree-node {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: var(--transition-fast);
}

.tree-node:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.tree-node .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.tree-node .username {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tree-node .status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Genealogy Tree */
.genealogy-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
}

.genealogy-level {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    flex-wrap: wrap;
}

.genealogy-node {
    position: relative;
    min-width: 150px;
}

.genealogy-connector {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: var(--border-color);
}

.genealogy-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
}

/* Genealogy Container */
.genealogy-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    overflow-x: auto;
}

.genealogy-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.genealogy-controls .form-control {
    min-width: 200px;
}

.genealogy-controls button {
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.genealogy-controls button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Payment Cards */
.payment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.payment-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.payment-card .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-success);
    margin-bottom: 0.5rem;
}

.payment-card .receiver {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.payment-card .status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Lock Overlay */
.form-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 26, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    z-index: 10;
}

.lock-content {
    text-align: center;
    padding: 2rem;
}

.lock-icon-wrap {
    margin-bottom: 1rem;
}

.lock-title {
    color: var(--accent-danger);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lock-subtitle {
    color: var(--text-secondary);
}

/* Select Item */
.select-item {
    position: relative;
}

.select-bar {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    appearance: none;
    cursor: pointer;
}

.select-bar:focus {
    border-color: var(--accent-primary);
    outline: none;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.input-group-text {
    background: var(--bg-card);
    border: none;
    color: var(--text-secondary);
    padding: 0.875rem 1rem;
    border-right: 1px solid var(--border-color);
}

.input-group .form-control {
    border: none;
    background: transparent;
}

/* Checkgroup */
.checkgroup {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkgroup input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
}

.checkgroup label {
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Filter */
.show-filter {
    display: none;
}

@media (max-width: 767px) {
    .responsive-filter-card {
        display: none;
    }
    
    .show-filter {
        display: block;
    }
}

/* Button Focus */
.btn-check:focus + .btn,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Required Label */
label.required:after {
    content: '*';
    color: var(--accent-danger);
    margin-left: 2px;
}

/* Text Colors */
.text--danger {
    color: var(--accent-danger);
}

.text--success {
    color: var(--accent-success);
}

.text--warning {
    color: var(--accent-warning);
}

/* Margin Utilities */
.mb--25 {
    margin-bottom: 1.5rem;
}

/* Mobile Device Classes */
.mobile-device .mobile-sidebar {
    width: 280px;
}

.tablet-device .mobile-sidebar {
    width: 320px;
}

/* PWA Mode */
.pwa-mode .header-section {
    padding-top: env(safe-area-inset-top);
}

.pwa-mode .mobile-sidebar {
    padding-top: calc(2rem + env(safe-area-inset-top));
}
