:root {
    --bg-dark: #050507;
    --bg-card: rgba(20, 20, 25, 0.6);
    --bg-card-hover: rgba(30, 30, 40, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-color: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --success-color: #10b981;
    --sidebar-width: 260px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.globe-1 {
    width: 400px;
    height: 400px;
    background: #4f46e5;
    top: -100px;
    left: -100px;
}

.globe-2 {
    width: 300px;
    height: 300px;
    background: #a855f7;
    bottom: 20%;
    right: -50px;
    animation-delay: -5s;
}

.globe-3 {
    width: 250px;
    height: 250px;
    background: #ec4899;
    bottom: -50px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

/* App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
    flex-shrink: 0;
}

.logo img {
    height: 32px;
}

.close-sidebar-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto; /* Scroll nav if it gets too long */
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    gap: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.badge {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: auto;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: rgba(10, 10, 12, 0.95); /* Ensure visibility over content */
}

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.logout-link {
    color: var(--text-secondary);
    transition: color 0.2s;
    font-size: 1.1rem;
}

.logout-link:hover {
    color: #ef4444;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 0;
    min-height: 100vh;
}

.mobile-header {
    display: none;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(10, 10, 12, 0.9);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(10px);
    width: 100%; /* Fix horizontal scroll */
    box-sizing: border-box; /* Include padding in width */
}

.mobile-logo img {
    height: 28px;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
}

.content-wrapper {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.header-text p {
    color: var(--text-secondary);
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 1.5px;
}

.dxp-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    /*animation: neon-pulse 3s infinite;*/
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.dxp-badge:hover {
    background: rgba(99, 102, 241, 0.1);
}

.dxp-badge i {
    color: #fbbf24;
    /*animation: float-y 2s ease-in-out infinite;*/
}

/* Stats Overview */
.stats-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(99, 102, 241, 0.1) inset;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.05), 
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.5s;
}

.stat-card:hover::after {
    left: 200%;
    transition: 1s ease-in-out;
}

.stat-card.total-dxp {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15) inset;
}

.card-content {
    position: relative;
    z-index: 2;
}

.stat-card .label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
    font-weight: 600;
}

.value-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.value-group h2 {
    font-size: 3rem;
    line-height: 1;
}

.total-dxp .value-group h2 {
    font-size: 3.5rem;
}

#referral-count{
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.value-group .unit {
    color: var(--text-secondary);
    font-weight: 500;
}

.subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.card-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.total-dxp .card-icon {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Glass Card Generic */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.7) 0%, rgba(40, 40, 50, 0.6) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--primary-color);
}

.tag {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Referral Section */
.referral-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.referral-card strong {
    color: #fff;
}

.referral-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    outline: none;
}

.input-wrapper .fade-overlay {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.3));
    border-radius: 0 12px 12px 0;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
}

.share-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.social-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.x-btn:hover { color: #fff; }
.telegram-btn:hover { color: #0088cc; }
.whatsapp-btn:hover { color: #25d366; }

/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.05);
}

.task-item.completed {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

.task-status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.task-item.completed .task-status-icon {
    background: #10b981;
    color: white;
}

.task-item.infinite .task-status-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.task-info-icon {
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}

.task-info-icon:hover {
    color: var(--primary-color);
}

.task-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.task-points {
    font-weight: 700;
    color: #fbbf24; /* Goldish */
    background: rgba(251, 191, 36, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.task-actions-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-xs-primary {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-xs-primary:disabled {
    background: rgba(99, 102, 241, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-xs-primary:not(:disabled):hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* Task Info Tooltip Modal */
.task-info-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.task-info-tooltip.active {
    opacity: 1;
    visibility: visible;
}

.tooltip-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.task-info-tooltip.active .tooltip-content {
    transform: scale(1);
}

.tooltip-content h4 {
    margin: 0 0 12px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.tooltip-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 0.9rem;
}

.tooltip-content strong {
    color: var(--text-primary);
}

.tooltip-content .btn-xs-primary {
    width: 100%;
    padding: 8px 16px;
}

/* Referrals List */
.referrals-list-card {
    height: 100%;
}

.referrals-scrollbox {
    /*max-height: 400px;*/
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar Styling */
.referrals-scrollbox::-webkit-scrollbar {
    width: 4px;
}
.referrals-scrollbox::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}
.referrals-scrollbox::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.referral-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.referral-row:last-child {
    border-bottom: none;
}

.referral-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-right: 12px;
}

.referral-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ref-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.ref-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.referral-reward {
    color: #34d399;
    font-size: 0.8rem;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* Main Table Styles */
.table-container {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.9rem;
}

.modern-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.modern-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.modern-table tr {
    transition: background 0.3s ease, transform 0.2s ease;
}

.modern-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.referral-avatar.small {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    margin-right: 0;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.reward-cell {
    color: #fbbf24;
    font-weight: 600;
}
.toast{
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(30, 30, 35, 0.95);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.toast-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }

    .main-content {
        margin-left: 0;
    }

    .close-sidebar-btn {
        display: block;
    }

    .mobile-header {
        display: flex;
    }

    .content-wrapper {
        padding: 24px;
    }

    .page-header {
        /*flex-direction: column;*/
        /*align-items: flex-start;*/
        /*gap: 16px;*/
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .referral-input-group {
        flex-direction: column;
    }
    
    .btn-primary {
        justify-content: center;
        padding: 12px;
    }
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 10;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 24px;
    display: inline-block;
}

.auth-logo img {
    height: 40px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
    text-align: left;
}

.form-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 14px 16px 14px 44px;
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary-color);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.separator span {
    padding: 0 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: white;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    text-align: left;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Animations & Effects */
@keyframes neon-pulse {
    0% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2), 0 0 10px rgba(99, 102, 241, 0.1); }
    50% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.5), 0 0 20px rgba(99, 102, 241, 0.3); }
    100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2), 0 0 10px rgba(99, 102, 241, 0.1); }
}

@keyframes text-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float-y {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.glow-text {
    animation: text-shimmer 3s linear infinite;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge.new {
    animation: neon-pulse 2s infinite;
    border: 1px solid rgba(99, 102, 241, 0.5);
}

.card-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.stat-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: #fff;
    background: rgba(99, 102, 241, 0.3);
}

/* Scrollbar Polish */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #050507;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile Responsive Improvements for Referrals */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 16px; /* Reduce padding for more width */
    }

    .glass-card {
        padding: 16px; /* Compact card padding */
    }

    .modern-table th, 
    .modern-table td {
        padding: 12px 8px; /* Tighter cell padding */
    }

    /* Hide Date Joined column on mobile to save space */
    .modern-table th:nth-child(2),
    .modern-table td:nth-child(2) {
        display: none;
    }

    .user-cell span {
        max-width: 80px; /* Truncate long usernames */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }
    
    /* Make Header text smaller */
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
}