:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #BBDEFB;
    --secondary-color: #64B5F6;
    --success-color: #4CAF50;
    --danger-color: #f44336;
    --warning-color: #FF9800;
    --dark-text: #212121;
    --light-text: #757575;
    --bg-light: #F5F7FA;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --card-shadow-lg: 0 10px 40px rgba(33,150,243,0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-danger: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom right, #f8f9fa, #e9ecef);
    color: var(--dark-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    letter-spacing: 0.5px;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1565C0);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: white;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-outline-primary:hover::before {
    width: 300%;
    height: 300%;
}

.btn-outline-primary:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.btn-outline-primary span,
.btn-outline-primary i {
    position: relative;
    z-index: 1;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #667eea, var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 1.2rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, var(--primary-color) 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite reverse;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    opacity: 0.3;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.section-subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.testimonial-card .rating {
    color: #FFC107;
    margin-bottom: 1rem;
}

.stats-card {
    text-align: center;
    padding: 2rem;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

footer {
    background: #1a1a2e;
    color: white;
    padding: 3rem 0 1rem;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, var(--primary-color) 100%);
    padding: 2rem 0;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    padding: 3rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-card h2 {
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-control {
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
    background: white;
    transform: translateY(-2px);
}

.form-control:hover {
    border-color: var(--primary-light);
    background: white;
}

.dashboard-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
    padding: 1.5rem 0;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(0,0,0,0.05);
}

.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    transition: all 0.3s ease;
}

.dashboard-sidebar .brand:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.dashboard-sidebar .brand {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.dashboard-sidebar .brand img {
    height: 32px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 1.5rem;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sidebar-menu a:hover::before,
.sidebar-menu a.active::before {
    transform: scaleX(1);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-right: 3px solid var(--primary-color);
}

.dashboard-sidebar {
    background: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
    padding: 1.5rem 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.dashboard-sidebar.collapsed {
    transform: translateX(-260px);
}

.dashboard-content {
    margin-left: 260px;
    padding: 1.5rem;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.dashboard-content.expanded {
    margin-left: 0;
}

.dashboard-topbar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin: -2rem -2rem 2rem -2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-topbar .brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.dashboard-topbar .brand img {
    height: 32px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

@media (min-width: 768px) {
    .dashboard-topbar .brand{
        display: none;
    }
}

.dashboard-topbar .brand {
    position: relative;
    padding: 10px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dashboard-topbar .brand:hover {
    transform: scale(1.05);
    cursor: pointer;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(102, 126, 234, 0.1));
}

#toggleSidebar {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

#toggleSidebar:hover {
    transform: scale(1.1);
}

.breadcrumb-item a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-widget:hover {
    border-left-width: 6px;
    padding-left: 1.8rem;
}

.breadcrumb-item.active {
    color: var(--dark-text);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light-text);
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.balance-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(33, 150, 243, 0.4);
}

.sidebar-menu a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.balance-card h5 {
    opacity: 0.95;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.balance-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.balance-card small {
    opacity: 0.9;
    font-size: 0.85rem;
}

.stat-widget {
    padding: 1.8rem;
    border-left: 5px solid var(--primary-color);
    position: relative;
    background: white;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.05));
    transition: width 0.4s ease;
}

.stat-widget:hover::after {
    width: 100%;
}

.stat-widget:hover {
    border-left-width: 8px;
    padding-left: 1.5rem;
    box-shadow: var(--card-shadow-lg);
    transform: translateX(5px);
}

.stat-widget h6 {
    color: var(--light-text);
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-widget h4 {
    font-weight: 800;
    color: var(--dark-text);
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.table-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.table-card h5 {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: var(--card-shadow);
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.table thead th {
    border-bottom: 3px solid var(--primary-color);
    color: var(--dark-text);
    font-weight: 700;
    padding: 1.2rem 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.table tbody td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.05), transparent);
    box-shadow: inset 0 -1px 0 rgba(33,150,243,0.15);
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.badge-success {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.badge-warning {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.badge-danger {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-light), #90CAF9);
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
}

@media (max-width: 992px) {
    .dashboard-sidebar {
        width: 260px;
        transform: translateX(-260px);
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-content {
        margin-left: 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        position: fixed;
        left: 0;
        z-index: 1000;
        width: 260px;
        transform: translateX(-260px);
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-content {
        margin-left: 0;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 1rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-left: auto;
    margin-right: auto;
}

.user-avatar {
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.table-card {
    animation: none;
}

.chart-container {
    animation: none;
}

.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

input, select, textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-link {
    transition: all 0.3s ease;
}

.page-link:hover {
    transform: translateY(-2px);
}

.profile-avatar {
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.05);
}

.chart-container {
    position: relative;
    height: 300px;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.chart-container:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-success-custom {
    color: var(--success-color) !important;
}

.text-danger-custom {
    color: var(--danger-color) !important;
}

.deposit-address-container {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px dashed var(--primary-light);
}

.qr-code-box {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: var(--card-shadow);
}

.instruction-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.instruction-item:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

.step-number {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

.instruction-item h6 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

/* Utility Classes */
.bg-primary-light {
    background-color: var(--primary-light) !important;
}

/* Modern Sidebar Menu */
.sidebar-menu a {
    position: relative;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: width 0.3s ease;
}

.sidebar-menu a:hover::before,
.sidebar-menu a.active::before {
    width: 4px;
}

.sidebar-menu a:hover {
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.1), transparent);
    padding-left: 25px;
}

.sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.05));
    color: var(--primary-color);
    font-weight: 600;
}

/* Breadcrumb Enhancements */
.breadcrumb {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    transform: translateX(2px);
}

/* Animated Icons */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light), rgba(33, 150, 243, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover .feature-icon {
    animation: pulse 2s ease-in-out infinite;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Copy Button Effect */
.btn-light {
    background: white;
    border: 2px solid var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #388E3C);
    border: none;
    color: white;
}

/* Text Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Header Improvements */
.card.p-4 {
    background: linear-gradient(135deg, white, #f8f9fa);
}

/* Hover Effects for Interactive Elements */
button, a, input[type="button"], input[type="submit"] {
    cursor: pointer;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Page Transitions */
.dashboard-content > * {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

/* Input Group Styling */
.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* =========================================
   DASHBOARD V2 — NEW COMPONENT STYLES
   ========================================= */

/* Topbar Toggle Button */
.topbar-toggle-btn {
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--light-text);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.topbar-toggle-btn:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: scale(1.05);
}

/* Welcome Banner */
.welcome-banner {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    color: white;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(102,126,234,0.35);
}
.welcome-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.welcome-greeting {
    font-size: 0.9rem;
    opacity: 0.85;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}
.welcome-name {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.welcome-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}
.welcome-badge-success { background: rgba(76,175,80,0.35); border-color: rgba(76,175,80,0.5); }
.welcome-badge-warning { background: rgba(255,152,0,0.35); border-color: rgba(255,152,0,0.5); }

.btn-welcome {
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    padding: 9px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-welcome:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: #5a6fd6;
}
.btn-welcome-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 10px;
    padding: 7px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.btn-welcome-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Financial Cards */
.fin-card {
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.fin-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}
.fin-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.fin-card-blue  { background: linear-gradient(135deg, #2196F3, #1565C0); }
.fin-card-green { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.fin-card-orange { background: linear-gradient(135deg, #FF9800, #E65100); }

.fin-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.fin-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.fin-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
}
.fin-card-value {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 4px 0 2px;
}
.fin-card-sub {
    font-size: 0.78rem;
    opacity: 0.8;
}

/* Stat Widgets V2 */
.stat-widget-v2 {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.stat-widget-v2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.stat-widget-v2:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.stat-widget-v2:hover::before { opacity: 1; }

.stat-widget-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.stat-icon-blue   { background: rgba(33,150,243,0.12); color: #2196F3; }
.stat-icon-green  { background: rgba(76,175,80,0.12);  color: #4CAF50; }
.stat-icon-orange { background: rgba(255,152,0,0.12);  color: #FF9800; }
.stat-icon-purple { background: rgba(156,39,176,0.12); color: #9C27B0; }

.stat-widget-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.stat-widget-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark-text);
    letter-spacing: -0.5px;
    line-height: 1;
}
.stat-widget-sub {
    font-size: 0.75rem;
    color: var(--light-text);
}

/* Referral Card V2 */
.referral-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    color: white;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15,52,96,0.3);
}
.referral-card-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(33,150,243,0.12) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(102,126,234,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.referral-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}
.referral-desc {
    font-size: 0.83rem;
    opacity: 0.65;
}
.referral-link-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.referral-input-group {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(4px);
}
.referral-input-icon {
    padding: 0 12px;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.referral-input {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.82rem;
    padding: 10px 0 !important;
    box-shadow: none !important;
    transform: none !important;
    flex: 1;
    min-width: 0;
}
.referral-input:focus {
    outline: none;
    box-shadow: none !important;
    background: transparent !important;
}
.referral-copy-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    white-space: nowrap;
}
.referral-copy-btn:hover { background: var(--primary-dark); }
.referral-copy-btn.copied { background: #4CAF50; }

.referral-stats-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.referral-stat-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
}
.referral-stat-box:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}
.referral-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(33,150,243,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #90CAF9;
    margin: 0 auto 8px;
}
.referral-stat-icon-green  { background: rgba(76,175,80,0.25);  color: #A5D6A7; }
.referral-stat-icon-orange { background: rgba(255,152,0,0.25);  color: #FFCC80; }
.referral-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}
.referral-stat-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* Info Card */
.info-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}
.info-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.info-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-card-body { padding: 1.25rem 1.5rem; }
.info-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.info-row:last-child { margin-bottom: 0; }
.info-item { flex: 1; }
.info-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--light-text); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.info-value { display: block; font-size: 0.95rem; font-weight: 700; color: var(--dark-text); }

/* Income Statistics Donut */
.inc-donut-wrap { position: relative; width: 180px; height: 180px; flex-shrink: 0; margin: 0.5rem auto 0; }
.inc-donut-wrap canvas { display: block; }
.inc-donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.inc-donut-pct { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary-color); line-height: 1.1; }
.inc-donut-lbl { display: block; font-size: 0.65rem; font-weight: 700; color: var(--light-text); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 3px; }
/* Progress bar */
.inc-progress-wrap { width: 100%; height: 7px; background: #EEF2FF; border-radius: 99px; overflow: hidden; margin-top: 1rem; }
.inc-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary-color), #22c55e); border-radius: 99px; transition: width 0.8s ease; min-width: 4px; }
.inc-progress-labels { display: flex; justify-content: space-between; font-size: 0.65rem; font-weight: 600; color: var(--light-text); margin-top: 4px; }
/* Stat boxes */
.inc-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inc-stat-item { background: var(--bg-light); border-radius: 12px; padding: 12px 10px; text-align: center; border-top: 3px solid transparent; }
.inc-stat-blue { border-top-color: var(--primary-color); }
.inc-stat-red  { border-top-color: #EF4444; }
.inc-stat-icon { display: block; font-size: 1.1rem; margin-bottom: 5px; }
.inc-stat-blue .inc-stat-icon { color: var(--primary-color); }
.inc-stat-red  .inc-stat-icon { color: #EF4444; }
.inc-stat-label { display: block; font-size: 0.68rem; font-weight: 600; color: var(--light-text); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.inc-stat-value { display: block; font-size: 1rem; font-weight: 800; color: var(--dark-text); }
.inc-stat-blue .inc-stat-value { color: var(--primary-color); }
.inc-stat-red  .inc-stat-value { color: #EF4444; }

/* Binary Tree */
.binary-tree-grid {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.binary-box {
    flex: 1;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
}
.binary-left  { border-top: 3px solid var(--primary-color); }
.binary-right { border-top: 3px solid #4CAF50; }
.binary-side-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--light-text);
    margin-bottom: 0.75rem;
}
.binary-left  .binary-side-label { color: var(--primary-color); }
.binary-right .binary-side-label { color: #4CAF50; }
.binary-metric { margin-bottom: 0.5rem; }
.binary-metric:last-child { margin-bottom: 0; }
.binary-metric-val { display: block; font-size: 1.5rem; font-weight: 800; color: var(--dark-text); line-height: 1; }
.binary-metric-lbl { font-size: 0.7rem; color: var(--light-text); font-weight: 600; }
.binary-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Table Card Header */
.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.table-card-header h5 { margin: 0; font-weight: 700; color: var(--dark-text); font-size: 1rem; }
.btn-view-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    background: var(--primary-light);
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.btn-view-all:hover { background: var(--primary-color); color: white; }

/* Transaction Amount Formatting */
.amount-credit { color: #2E7D32; font-weight: 700; }
.amount-debit  { color: #C62828; font-weight: 700; }
.balance-val   { font-weight: 700; color: var(--dark-text); }

/* Empty State */
.empty-state { display: flex; flex-direction: column; align-items: center; color: var(--light-text); }
.empty-state i { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.4; }
.empty-state p { margin: 0; font-size: 0.9rem; }

/* Pair Matching Table Rows */
.pair-row-achieved { --bs-table-bg: transparent; --bs-table-striped-bg: transparent; --bs-table-hover-bg: transparent; background: linear-gradient(90deg, rgba(76,175,80,0.22) 0%, rgba(76,175,80,0.07) 100%) !important; border-left: 3px solid #4caf50; }
.pair-row-current  { --bs-table-bg: transparent; --bs-table-striped-bg: transparent; --bs-table-hover-bg: transparent; background: linear-gradient(90deg, rgba(255,152,0,0.26) 0%, rgba(255,152,0,0.08) 100%) !important; border-left: 3px solid #ff9800; }
.pair-table-footer td {
    text-align: center;
    font-size: 0.82rem;
    color: var(--light-text);
    background: var(--bg-light);
    padding: 0.85rem !important;
}

/* =========================================
   DEPOSIT PAGE — MOBILE-FIRST
   ========================================= */

/* Balance Row */
.dep-balance-row {
    display: grid;
    gap: 12px;
}
.dep-balance-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    color: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}
.dep-balance-card:active { transform: scale(0.98); }
.dep-balance-blue   { background: linear-gradient(135deg, #2196F3, #1565C0); }
.dep-balance-green  { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.dep-balance-orange { background: linear-gradient(135deg, #FF9800, #E65100); }
.dep-balance-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.dep-balance-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}
.dep-balance-val {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

/* Network Chips scrollable row */
.dep-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    /* Prevent the scrollable row from leaking into page width */
    max-width: 100%;
    width: 100%;
}
.dep-chips::-webkit-scrollbar { display: none; }
.dep-chip {
    flex-shrink: 0;
    background: white;
    border: 1px solid rgba(33,150,243,0.2);
    color: var(--primary-dark);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Warning Banner */
.dep-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid #ffe082;
    border-left: 4px solid #FF9800;
    border-radius: 14px;
    padding: 1rem 1.15rem;
}
.dep-warning-icon {
    font-size: 1.25rem;
    color: #F57C00;
    flex-shrink: 0;
    margin-top: 1px;
}
.dep-warning-text {
    font-size: 0.83rem;
    color: #5d4037;
    line-height: 1.5;
}

/* Main Deposit Card */
.dep-main-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

/* QR Section */
.dep-qr-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dep-qr-wrap {
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    display: inline-block;
}
.dep-qr-img {
    display: block;
    width: min(200px, 60vw);
    height: auto;
    border-radius: 8px;
}
.dep-qr-hint {
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-weight: 600;
}

/* Address Section */
.dep-address-section {
    padding: 1.25rem 1.25rem 1rem;
}
.dep-address-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--light-text);
    margin-bottom: 8px;
}
.dep-address-box {
    background: var(--bg-light);
    border: 2px solid rgba(33,150,243,0.15);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    word-break: break-all;
}
.dep-address-text {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--dark-text);
    font-weight: 600;
    line-height: 1.6;
    user-select: all;
    -webkit-user-select: all;
}
.dep-copy-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(33,150,243,0.3);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.dep-copy-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(33,150,243,0.4); }
.dep-copy-btn:active { transform: scale(0.98); }
.dep-copy-btn-success {
    background: linear-gradient(135deg, #4CAF50, #2E7D32) !important;
    box-shadow: 0 4px 14px rgba(76,175,80,0.4) !important;
}

/* Divider */
.dep-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
    margin: 0 1.25rem;
}

/* How-To Steps */
.dep-steps { padding: 1.25rem; }
.dep-steps-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
    margin-bottom: 1rem;
}
.dep-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.1rem;
}
.dep-step:last-child { margin-bottom: 0; }
.dep-step-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(33,150,243,0.3);
}
.dep-step-head {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 2px;
}
.dep-step-body {
    font-size: 0.8rem;
    color: var(--light-text);
    line-height: 1.5;
}

/* Sticky Confirm Bar */
.dep-confirm-bar {
    position: sticky;
    bottom: 16px;
    z-index: 100;
    padding: 0 0;
}
.dep-confirm-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102,126,234,0.5);
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.dep-confirm-btn:hover  { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(102,126,234,0.55); }
.dep-confirm-btn:active { transform: scale(0.98); }
.dep-confirm-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Deposit History Card */
.dep-history-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.dep-history-header {
    padding: 1.15rem 1.25rem 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.dep-history-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
}
.dep-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.dep-history-item:last-child { border-bottom: none; }
.dep-history-item:active { background: var(--bg-light); }
.dep-history-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.dep-history-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(76,175,80,0.12);
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.dep-history-amount {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-text);
}
.dep-history-amount span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dep-history-meta {
    font-size: 0.72rem;
    color: var(--light-text);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}
.dep-history-hash {
    font-family: 'Courier New', monospace;
}
.dep-history-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 8px;
}
.dep-history-badge {
    background: rgba(76,175,80,0.12);
    color: #2E7D32;
    border: 1px solid rgba(76,175,80,0.3);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dep-history-date {
    font-size: 0.72rem;
    color: var(--light-text);
    font-weight: 600;
    text-align: right;
    line-height: 1.4;
}
.dep-history-date span {
    font-size: 0.68rem;
    opacity: 0.7;
}
.dep-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--light-text);
    gap: 8px;
}
.dep-history-empty i {
    font-size: 2.5rem;
    opacity: 0.25;
}
.dep-history-empty p {
    font-weight: 700;
    margin: 0;
    font-size: 1rem;
    color: #999;
}
.dep-history-empty small {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Toast notification */
.dep-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    border-radius: 14px;
    padding: 12px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-text);
    z-index: 9999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    white-space: normal;
    word-break: break-word;
    width: max-content;
    max-width: min(90vw, 340px);
    text-align: center;
}
.dep-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Desktop: show side-by-side QR + Address */
@media (min-width: 768px) {
    .dep-balance-val { font-size: 1.5rem; }
    .dep-balance-card { padding: 1.25rem 1.5rem; }

    .dep-qr-section {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
    }
    .dep-qr-hint { margin-top: 0.5rem; }
    .dep-qr-img { width: 160px; }

    .dep-confirm-bar {
        position: static;
        margin-top: 1rem;
    }
    .dep-confirm-btn {
        max-width: 480px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 380px) {
    .dep-balance-row { grid-template-columns: 1fr; }
    .dep-balance-val { font-size: 1.1rem; }
    .dep-chip { font-size: 0.7rem; padding: 5px 10px; }
}

/* =========================================
   ACTIVATION PAGE
   ========================================= */

/* Alerts */
.act-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.act-alert i { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.act-alert-success {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-left: 4px solid #4CAF50;
    color: #1B5E20;
}
.act-alert-danger {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border-left: 4px solid #f44336;
    color: #B71C1C;
}

/* Stats Row */
.act-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.act-stat {
    background: white;
    border-radius: 16px;
    padding: 1rem 0.75rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}
.act-stat:active { transform: scale(0.97); }
.act-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin: 0 auto 8px;
}
.act-stat-blue   { background: rgba(33,150,243,0.12); color: #2196F3; }
.act-stat-green  { background: rgba(76,175,80,0.12);  color: #4CAF50; }
.act-stat-purple { background: rgba(156,39,176,0.12); color: #9C27B0; }
.act-stat-val {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--dark-text);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 3px;
}
.act-stat-lbl {
    font-size: 0.67rem;
    font-weight: 700;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Card */
.act-form-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

/* Package Banner */
.act-package-banner {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}
.act-package-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 10% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.act-package-content { position: relative; z-index: 1; }
.act-package-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 4px;
}
.act-package-price {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
}
.act-package-sub {
    font-size: 0.77rem;
    opacity: 0.75;
}
.act-package-icon {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    opacity: 0.25;
}

/* Form Body */
.act-form-body { padding: 1.25rem; }
.act-field { margin-bottom: 1.15rem; }
.act-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--light-text);
    margin-bottom: 7px;
}
.act-input {
    width: 100%;
    background: var(--bg-light);
    border: 2px solid rgba(0,0,0,0.07);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
    transition: all 0.25s ease;
    outline: none;
    -webkit-appearance: none;
}
.act-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(33,150,243,0.12);
}
.act-field-hint {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-top: 5px;
    line-height: 1.4;
}

/* Single wallet display (no radio) */
.act-wallet-single {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,152,0,0.06);
    border: 2px solid rgba(255,152,0,0.3);
    border-radius: 14px;
    padding: 12px 14px;
}

/* Wallet Radio Options */
.act-wallet-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.act-wallet-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.act-wallet-opt {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.act-wallet-opt-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 12px 12px;
    transition: all 0.25s ease;
    position: relative;
}
.act-wallet-opt-inner:active { transform: scale(0.97); }
.act-wallet-opt-selected .act-wallet-opt-inner {
    border-color: var(--primary-color);
    background: rgba(33,150,243,0.05);
    box-shadow: 0 0 0 3px rgba(33,150,243,0.1);
}
.act-wallet-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.act-wallet-blue   { background: rgba(33,150,243,0.15); color: #2196F3; }
.act-wallet-orange { background: rgba(255,152,0,0.15);  color: #FF9800; }
.act-wallet-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.2;
}
.act-wallet-bal {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--light-text);
}
.act-wallet-check {
    margin-left: auto;
    color: var(--primary-color);
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.act-wallet-opt-selected .act-wallet-check { opacity: 1; }

/* Wallet warning */
.act-wallet-warn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border-left: 3px solid #FF9800;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #E65100;
    margin-bottom: 1rem;
}
.act-wallet-warn i { flex-shrink: 0; }

/* Submit button */
.act-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    margin-top: 0.25rem;
}
.act-submit-btn:hover  { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(102,126,234,0.5); }
.act-submit-btn:active { transform: scale(0.98); }

/* How-it-works Steps (inside card) */
.act-steps {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.act-steps-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
    margin-bottom: 0.85rem;
}
.act-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.75rem;
}
.act-step:last-child { margin-bottom: 0; }
.act-step-num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.act-step-text {
    font-size: 0.82rem;
    color: var(--light-text);
    line-height: 1.5;
    padding-top: 3px;
}

/* Top-Up page extras */
.act-package-banner-topup { background: linear-gradient(135deg, #0f4c8a 0%, #1976D2 60%, #42a5f5 100%); }
.act-history-icon-topup { background: rgba(33,150,243,0.12); color: var(--primary-color); }
.dep-history-badge-topup { background: rgba(33,150,243,0.12); color: #1565C0; border-color: rgba(33,150,243,0.3); }

/* History item extras */
.act-history-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(102,126,234,0.12);
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.act-self-tag {
    display: inline-block;
    background: rgba(33,150,243,0.12);
    color: var(--primary-dark);
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 4px;
    vertical-align: middle;
}
.act-wallet-tag {
    display: inline-block;
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 0.68rem;
    font-weight: 700;
}
.act-wallet-tag-blue   { background: rgba(33,150,243,0.1);  color: #1565C0; }
.act-wallet-tag-orange { background: rgba(255,152,0,0.12);  color: #E65100; }

/* User ID lookup preview */
.act-user-preview {
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.82rem;
}
.act-user-preview-loading {
    padding: 10px 12px;
    background: var(--bg-light);
    color: var(--light-text);
    border-radius: 12px;
    font-weight: 600;
}
.act-user-found {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
    border: 1px solid rgba(76,175,80,0.35);
    border-radius: 12px;
    padding: 10px 14px;
}
.act-user-found-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(76,175,80,0.15);
    color: #2E7D32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.act-user-found-info { flex: 1; min-width: 0; }
.act-user-found-name {
    font-weight: 800;
    color: #1B5E20;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.act-user-found-pkg {
    font-size: 0.75rem;
    color: #388E3C;
    margin-top: 1px;
}
.act-user-found-ok {
    color: #4CAF50;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.act-user-error {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border: 1px solid rgba(244,67,54,0.3);
    border-radius: 12px;
    padding: 10px 14px;
    color: #C62828;
    font-weight: 600;
}

/* Disabled submit state */
.act-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* =====================================================
   WITHDRAWAL PAGE
   ===================================================== */
.wdw-form-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid var(--border-color);
}

/* Banner */
.wdw-banner {
    background: linear-gradient(135deg, #1a237e 0%, #283593 40%, #3949ab 100%);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.wdw-banner-icon {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; flex-shrink: 0;
}
.wdw-banner-title { font-size: 18px; font-weight: 700; color: #fff; }
.wdw-banner-sub   { font-size: 12px; color: rgba(255,255,255,0.72); margin-top: 2px; }

/* Body */
.wdw-body { padding: 24px; }

/* Info chips */
.wdw-info-chips {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.wdw-chip {
    display: inline-flex; align-items: center;
    background: rgba(102,126,234,0.1);
    color: #5c6bc0;
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px; font-weight: 600;
}
.wdw-chip-red {
    background: rgba(244,67,54,0.08);
    color: #e53935;
    border-color: rgba(244,67,54,0.2);
}

/* Field group */
.wdw-field-group { margin-bottom: 20px; }
.wdw-label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.wdw-field-hint {
    font-size: 12px; color: var(--text-secondary); margin-top: 6px;
}
.wdw-link { color: #667eea; font-weight: 600; text-decoration: none; }
.wdw-link:hover { text-decoration: underline; }

/* Amount input */
.wdw-amount-wrap {
    display: flex; align-items: center;
    background: var(--input-bg, #f8f9fa);
    border: 1.5px solid var(--border-color);
    border-radius: 12px; overflow: hidden;
    transition: border-color .2s;
}
.wdw-amount-wrap:focus-within { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.12); }
.wdw-amount-prefix {
    padding: 0 14px;
    font-size: 18px; font-weight: 700;
    color: #667eea;
    background: rgba(102,126,234,0.07);
    border-right: 1.5px solid var(--border-color);
    height: 52px; display: flex; align-items: center;
}
.wdw-amount-input {
    flex: 1; border: none; background: transparent;
    padding: 0 16px; height: 52px;
    font-size: 20px; font-weight: 700;
    color: var(--text-primary);
    outline: none;
}
.wdw-amount-input::placeholder { color: var(--text-secondary); font-weight: 400; font-size: 16px; }

/* Preview breakdown */
.wdw-preview {
    background: var(--input-bg, #f8f9fa);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
    animation: fadeInUp .25s ease;
}
.wdw-preview-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.wdw-preview-row:last-child { margin-bottom: 0; }
.wdw-preview-lbl      { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.wdw-preview-lbl-red  { color: #e53935; }
.wdw-preview-lbl-green{ color: #43a047; font-weight: 700; }
.wdw-preview-val      { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.wdw-preview-val-red  { color: #e53935; }
.wdw-preview-val-green{ color: #43a047; font-size: 16px; }
.wdw-preview-divider  { height: 1px; background: var(--border-color); margin: 8px 0; }

/* Address box */
.wdw-address-box {
    background: var(--input-bg, #f8f9fa);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex; align-items: flex-start; gap: 12px;
}
.wdw-address-network {
    flex-shrink: 0;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; font-size: 10px; font-weight: 800;
    padding: 3px 8px; border-radius: 6px; letter-spacing: .5px;
    margin-top: 2px;
}
.wdw-address-text {
    font-family: 'Courier New', monospace;
    font-size: 13px; color: var(--text-primary);
    word-break: break-all; line-height: 1.5;
}

/* Disabled note */
.wdw-disabled-note {
    text-align: center;
    font-size: 12px; color: #e53935;
    margin-top: 10px; padding: 8px 12px;
    background: rgba(244,67,54,0.07);
    border-radius: 8px;
}

@media (max-width: 576px) {
    .wdw-body { padding: 16px; }
    .wdw-banner { padding: 16px; gap: 12px; }
    .wdw-banner-title { font-size: 16px; }
    .wdw-amount-input { font-size: 18px; }
}

/* =====================================================
   REFERRAL PAGE
   ===================================================== */

/* Stats row */
.ref-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ref-stat-card {
    border-radius: 18px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.ref-stat-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
}
.ref-stat-body { display: flex; flex-direction: column; }
.ref-stat-val  { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.1; }
.ref-stat-lbl  { font-size: 11px; color: rgba(255,255,255,0.8); font-weight: 600; margin-top: 3px; text-transform: uppercase; letter-spacing: .4px; }

.ref-stat-blue   { background: linear-gradient(135deg, #1565c0, #1e88e5); }
.ref-stat-orange { background: linear-gradient(135deg, #e65100, #fb8c00); }
.ref-stat-purple { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.ref-stat-green  { background: linear-gradient(135deg, #1b5e20, #388e3c); }

/* Links Card */
.ref-links-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid var(--border-color);
}
.ref-links-header {
    background: linear-gradient(135deg, #0d1b6e 0%, #1a237e 50%, #283593 100%);
    padding: 20px 24px;
    display: flex; align-items: center; gap: 14px;
}
.ref-links-header-icon {
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff; flex-shrink: 0;
}
.ref-links-title { font-size: 17px; font-weight: 700; color: #fff; }
.ref-links-sub   { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.ref-links-body  { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }

.ref-link-row {}
.ref-link-label {
    font-size: 12px; font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 7px;
}
.ref-link-input-group {
    display: flex; align-items: center;
    background: var(--input-bg, #f8f9fa);
    border: 1.5px solid var(--border-color);
    border-radius: 12px; overflow: hidden;
    transition: border-color .2s;
}
.ref-link-input-group:focus-within { border-color: #667eea; }
.ref-link-input {
    flex: 1; border: none; background: transparent;
    padding: 12px 14px;
    font-size: 13px; color: var(--text-primary);
    font-family: 'Courier New', monospace;
    outline: none; min-width: 0;
}
.ref-copy-btn {
    flex-shrink: 0;
    padding: 0 16px; height: 44px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none; color: #fff;
    font-size: 14px; cursor: pointer;
    transition: opacity .2s;
}
.ref-copy-btn:hover { opacity: .85; }
.ref-copy-btn-done { background: linear-gradient(135deg, #43a047, #2e7d32) !important; }

/* Team grid */
.ref-team-grid {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}
.ref-team-box {
    flex: 1; padding: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px;
}
.ref-team-left  { border-right: 1px solid var(--border-color); }
.ref-team-divider {
    width: 50px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #667eea;
    background: rgba(102,126,234,0.06);
    flex-shrink: 0;
}
.ref-team-side {
    font-size: 11px; font-weight: 800; letter-spacing: 1px;
    color: var(--text-secondary); text-transform: uppercase;
}
.ref-team-metrics { display: flex; gap: 20px; }
.ref-team-metric  { display: flex; flex-direction: column; align-items: center; }
.ref-team-metric-val {
    font-size: 28px; font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.ref-team-metric-lbl { font-size: 11px; color: var(--text-secondary); font-weight: 600; }

/* Referral list items */
.ref-list-item { align-items: flex-start !important; }
.ref-list-avatar {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; color: #fff;
}
.ref-uid {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: rgba(102,126,234,0.1);
    color: #5c6bc0;
    padding: 1px 6px; border-radius: 5px;
}
.ref-list-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.ref-meta-row  { display: flex; align-items: center; gap: 4px; }
.ref-meta-lbl  { font-size: 10px; color: var(--text-secondary); font-weight: 700; text-transform: uppercase; }
.ref-meta-val  { font-size: 12px; font-weight: 700; color: var(--text-primary); min-width: 18px; text-align: center; }

.ref-count-badge {
    font-size: 12px; font-weight: 600;
    background: rgba(102,126,234,0.12);
    color: #5c6bc0;
    padding: 3px 10px; border-radius: 20px;
}
.ref-show-more {
    text-align: center;
    padding: 14px;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .ref-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ref-stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ref-stat-val  { font-size: 18px; }
    .ref-links-body { padding: 16px; }
    .ref-links-header { padding: 16px; }
    .ref-team-box { padding: 14px 10px; }
    .ref-team-metric-val { font-size: 22px; }
}