:root {
    --primary-color: #A020F0; /* Purple */
    --primary-color-rgb: 160, 32, 240;
    --secondary-color: #4B0082; /* Indigo */
    --background-dark: #121212;
    --background-light: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --glass-bg: rgb(11 8 29 / 47%);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    background: linear-gradient(rgb(0 0 0 / 50%), rgb(0 0 0 / 50%));
   
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 133px;
    left: 0;
    pointer-events: none;
    background: url('/static/img/bot.png') no-repeat center;
    background-size: contain;
    z-index: 0;
    opacity: 0.3;      /* Lower for more transparency */
    filter: blur(8px); /* Remove or lower for less blur */
}
/* --- Floating Nav Bar --- */
.floating-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    z-index: 1000;
}

.floating-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.floating-nav .nav-link:hover {
    color: var(--primary-color);
}

.floating-nav .nav-link i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.floating-nav .nav-link span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* --- Site Logo --- */
.site-logo {
    position: fixed;
    top: 28px;
    left: 30px;
    z-index: 1001;
}

.site-logo a {
    text-decoration: none;
}

.site-logo svg {
    height: 34px;
    width: auto;
}

.site-logo .logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    fill: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- Menu Toggle Button --- */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
}
.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 20px;
    left: -100%;
    width: 75%;
    max-width: 300px;
    height: calc(100vh - 40px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1.5rem;
    z-index: 1003;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.sidebar.is-open {
    left: 20px;
}
.sidebar-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}
.profile-pic {
    margin: 0 auto;
}
.profile-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.profile-id {
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.sidebar-nav {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: calc(100vh - 220px); /* Adjust for header and padding */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
    position: relative;
}
.sidebar-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Fade-out marker at the bottom of the menu */
.sidebar-nav::after {
    content: '';
    display: block;
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(30,30,30,0) 0%, rgba(30,30,30,0.8) 100%);
    z-index: 2;
}

/* Down arrow icon for scroll hint */
.sidebar-nav .down-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    bottom: 8px;
    left: 0;
    width: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.sidebar-nav.hide-arrow .down-arrow {
    opacity: 0;
    pointer-events: none;
}

.sidebar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 15px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.sidebar-nav a:hover {
    background-color: rgba(160, 32, 240, 0.2);
    color: var(--text-primary);
}
.sidebar-nav a i {
    font-size: 1.2rem;
}

.sidebar-nav a.active {
    background-color: rgba(var(--primary-color-rgb), 0.18);
    color: var(--primary-color) !important;
    box-shadow: 0 4px 16px 0 rgba(var(--primary-color-rgb), 0.18);
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 30px;
    position: relative;
    z-index: 1;
}
.sidebar-nav a.active i {
    color: var(--primary-color);
}

/* --- Main Content & Overlay --- */
.main-content {
    position: relative;
    padding-top: 80px;
    padding-bottom: 120px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s, visibility 0.4s;
}
body.sidebar-open .overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
@media (min-width: 992px) {
body.sidebar-open .main-content {
    transform: translateX(250px) scale(0.9);
    border-radius: 1.5rem;
    overflow: hidden;
}}

/* --- Quick Actions --- */
.quick-action-btn {
    background: rgba(43, 43, 62, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.quick-action-btn:hover {
    background: rgba(43, 43, 62, 0.9);
    color: var(--text-primary);
    transform: translateY(-5px);
}
.quick-action-btn i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.quick-action-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}
.quick-action-btn.deposit i { color: #007bff; }
.quick-action-btn.withdraw i { color: #28a745; }
.quick-action-btn.transfer i { color: #ffc107; }
.quick-action-btn.spin i { color: #17a2b8; }

/* --- Investment Cards --- */
.investments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.investment-card {
    background: rgba(43, 43, 62, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.investment-card .card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.investment-card .card-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.investment-card .card-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}
.investment-card .status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.investment-card .status-badge.active {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}
.investment-card .status-badge.capped {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}
.investment-card .progress {
    height: 8px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 50px;
}
.investment-card .progress-bar {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

/* --- Wallet Card Redesign --- */
.wallet-card {
    border-radius: 1rem;
    padding: 20px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.wallet-card.earning-wallet {
    background: linear-gradient(45deg, #A020F0, #4B0082); /* Purple Gradient */
}

.wallet-card.deposit-wallet {
    background: linear-gradient(45deg, #007bff, #0056b3); /* Blue Gradient */
}

.wallet-card .wallet-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.1;
}

.wallet-card .wallet-title {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.wallet-card .wallet-balance {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.wallet-card .wallet-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

.wallet-card .wallet-total-earnings {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-top: 0.25rem;
}

/* --- Glass Card Effect --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid transparent;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1;
}

/* --- General Component Styling --- */
.card {
    background-color: var(--background-light);
    border: none;
    border-radius: 1rem;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(160, 32, 240, 0.4), 0 0 10px rgba(160, 32, 240, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(160, 32, 240, 0.8), 0 0 30px rgba(160, 32, 240, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(160, 32, 240, 0.4), 0 0 10px rgba(160, 32, 240, 0.3);
    }
}

@keyframes pulse-glow-blue {
    0% {
        box-shadow: 0 4px 15px rgba(27, 77, 130, 0.3), 0 0 8px rgba(0, 198, 255, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(27, 77, 130, 0.6), 0 0 20px rgba(0, 198, 255, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(27, 77, 130, 0.3), 0 0 8px rgba(0, 198, 255, 0.2);
    }
}

@keyframes pulse-glow-purple {
    0% {
        box-shadow: 0 4px 15px rgba(160, 32, 240, 0.3), 0 0 8px rgba(159, 41, 127, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(160, 32, 240, 0.6), 0 0 20px rgba(159, 41, 127, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(160, 32, 240, 0.3), 0 0 8px rgba(159, 41, 127, 0.2);
    }
}

/* --- Site-wide Button Color Scheme ---
 * Purple Gradient (Primary/Success): #a020f0 -> #9f297f (Earning Wallet style) 
 * Blue Gradient (Secondary/Warning): #1b4d82 -> #00c6ff (Trading Wallet style)
 * All buttons throughout the site follow this consistent color pattern
 * 
 * PULSE GLOW EFFECTS:
 * - Purple buttons: 3-4s pulse with purple glow (PRIMARY)
 * - Blue buttons: 3-5s pulse with blue glow (SECONDARY)
 * - Creates living, breathing button effects
 */

.btn-primary {
    background: linear-gradient(238deg, #a020f0 0%, #9f297f 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(160, 32, 240, 0.3);
    animation: pulse-glow-purple 3s infinite ease-in-out;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.3s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(238deg, #9f297f 0%, #a020f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(159, 41, 127, 0.4);
}

.btn-secondary {
    background: linear-gradient(255deg, #1b4d82 0%, #00c6ff 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 77, 130, 0.3);
    animation: pulse-glow-blue 3s infinite ease-in-out;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.3s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(255deg, #00c6ff 0%, #1b4d82 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4);
}

.btn-success {
    background: linear-gradient(238deg, #a020f0 0%, #9f297f 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(160, 32, 240, 0.3);
    animation: pulse-glow-purple 3s infinite ease-in-out;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.3s ease;
}

.btn-success:hover::before {
    left: 100%;
}

.btn-success:hover {
    background: linear-gradient(238deg, #9f297f 0%, #a020f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(159, 41, 127, 0.4);
}

.btn-warning {
    background: linear-gradient(255deg, #1b4d82 0%, #00c6ff 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 77, 130, 0.3);
    animation: pulse-glow-blue 3s infinite ease-in-out;
}

.btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.3s ease;
}

.btn-warning:hover::before {
    left: 100%;
}

.btn-warning:hover {
    background: linear-gradient(255deg, #00c6ff 0%, #1b4d82 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 0.75rem;
}

.form-control:focus {
    background-color: var(--background-light);
    color: var(--text-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(160, 32, 240, 0.25);
}

.alert {
    border-radius: 1rem;
}

/* --- SweetAlert2 Customization --- */
.swal2-popup {
    background-color: var(--background-light) !important;
    border-radius: 1rem !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
}

.swal2-title {
    color: var(--text-primary) !important;
}

.swal2-html-container {
    color: var(--text-secondary) !important;
}

.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long {
    background-color: var(--primary-color) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(160, 32, 240, 0.3) !important;
}

.swal2-styled.swal2-confirm {
    background: linear-gradient(238deg, #a020f0 0%, #9f297f 100%) !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(160, 32, 240, 0.3) !important;
    transition: all 0.3s ease !important;
    animation: pulse-glow-purple 3s infinite ease-in-out !important;
}

.swal2-styled.swal2-confirm:hover {
    background: linear-gradient(238deg, #9f297f 0%, #a020f0 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(159, 41, 127, 0.4) !important;
}

.swal2-styled.swal2-cancel {
    background: linear-gradient(255deg, rgba(27, 77, 130, 0.1), rgba(0, 198, 255, 0.1)) !important;
    border: 2px solid #1b4d82 !important;
    color: #1b4d82 !important;
    border-radius: 0.75rem !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.swal2-styled.swal2-cancel:hover {
    background: linear-gradient(255deg, #1b4d82, #00c6ff) !important;
    border-color: transparent !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4) !important;
}

.swal2-styled:focus {
    box-shadow: none !important;
}

/* Spin Wheel Styles */
.spin-container {
    position: relative;
    width: 350px;
    height: 350px;
    max-width: 90vw;
    max-height: 90vw;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel {
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 90vw;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 5s cubic-bezier(0.25, 1, 0.5, 1);
}

.wheel-text {
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 80px;
    word-wrap: break-word;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid var(--primary-color);
    z-index: 10;
    filter: drop-shadow(0 4px 2px rgba(0,0,0,0.4));
}

.timer-display {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.modal-backdrop.show
 {
    display: none !important;
}
/* --- Modal Visual Styling --- */
/* Modal Visual Styling Only - Let Bootstrap Handle Positioning */
.modal-content {
    background: var(--background-light);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem 0.75rem 0 0;
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 0.75rem 0.75rem;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-body {
    color: var(--text-primary);
}

/* --- Pagination Controls --- */
#pagination-controls {
    background: rgba(43, 43, 62, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#pagination-controls .btn {
    background: linear-gradient(238deg, rgba(160, 32, 240, 0.2), rgba(159, 41, 127, 0.2));
    border: 1px solid rgba(160, 32, 240, 0.3);
    color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    font-weight: 500;
    animation: pulse-glow-purple 4s infinite ease-in-out;
}

#pagination-controls .btn:hover:not(:disabled) {
    background: linear-gradient(238deg, #a020f0, #9f297f);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(159, 41, 127, 0.3);
}

#pagination-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page-info {
    font-weight: 500;
    color: var(--text-secondary);
}

/* --- Transaction Info --- */
#transaction-info {
    background: rgba(43, 43, 62, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    display: inline-block;
    font-weight: 500;
}

/* --- Date Filter Buttons --- */
.btn-group .btn-check:checked + .btn {
    background: linear-gradient(238deg, #a020f0, #9f297f);
    border-color: transparent;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(159, 41, 127, 0.3);
}

.btn-group .btn {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    font-weight: 500;
    background: rgba(160, 32, 240, 0.1);
    border-color: rgba(160, 32, 240, 0.2);
    color: var(--text-primary);
    animation: pulse-glow-purple 5s infinite ease-in-out;
}

.btn-group .btn:hover {
    background: linear-gradient(238deg, rgba(160, 32, 240, 0.3), rgba(159, 41, 127, 0.3));
    border-color: rgba(160, 32, 240, 0.4);
    color: white;
    transform: translateY(-1px);
}

.btn-glow:hover {
    box-shadow: 0 0 15px 5px rgba(var(--primary-color-rgb), 0.4);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.active-menu-glow {
    position: relative;
    overflow: hidden;
    color: var(--primary-color) !important;
    background-color: rgba(var(--primary-color-rgb), 0.15) !important;
    box-shadow: 0 0 10px 2px rgba(var(--primary-color-rgb), 0.3);
    border-radius: 8px;
    z-index: 1;
}

.active-menu-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: skewX(-25deg);
    animation: sweep 3s linear infinite;
    z-index: 2;
}

@keyframes sweep {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

/* --- Active Menu Item Glow --- */

/* Sidebar Active Link (Rectangle) */
.sidebar-nav a.active {
    position: relative;
    overflow: hidden;
    background-color: rgba(160, 32, 240, 0.2);
    color: var(--primary-color) !important;
    box-shadow: 0 0 10px 2px rgba(160, 32, 240, 0.2);
    z-index: 1;
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: skewX(-25deg);
    animation: sweep 3.5s linear infinite;
    z-index: 2;
}

/* Floating Nav Active Link */
.floating-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Floating Nav Active Icon (Circular Glow) */
.floating-nav .nav-link.active i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;  /* Force a square shape */
    height: 44px; /* Force a square shape */
    border-radius: 50%; /* This now creates a perfect circle */
    animation: pulse-glow-icon 2.5s infinite ease-in-out;
}

.sidebar-nav a i {
    font-size: 1.2rem;
}

@keyframes pulse-glow-icon {
    0% {
        box-shadow: 0 0 7px 2px rgba(160, 32, 240, 0.4);
    }
    50% {
        box-shadow: 0 0 14px 6px rgba(160, 32, 240, 0.6);
    }
    100% {
        box-shadow: 0 0 7px 2px rgba(160, 32, 240, 0.4);
    }
}

/* --- General Layout --- */


/* --- Content Loader --- */
.content-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.content-loader.is-active {
    opacity: 1;
    visibility: visible;
}

.content-loader .progress-bar-container {
    width: 60%;
    max-width: 400px;
    height: 10px;
    background-color: var(--glass-border);
    border-radius: 5px;
    overflow: hidden;
}

.content-loader .progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        var(--secondary-color), 
        var(--primary-color),
        var(--secondary-color)
    );
    background-size: 200% 200%;
    border-radius: 5px;
    animation: loading-progress 1.5s linear infinite;
}

@keyframes loading-progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


/* --- V2 Dashboard Components --- */

/* Quick Actions v2 */
.quick-actions-v2 .action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.quick-actions-v2 .action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    animation: pulse-glow-icon 2.5s infinite ease-in-out;
}

.quick-actions-v2 .action-item:hover {
    color: var(--text-primary);
    transform: translateY(-5px);
}

.quick-actions-v2 .action-item:hover .action-icon {
    background: linear-gradient(145deg, rgba(160, 32, 240, 0.2), rgba(160, 32, 240, 0.1));
    color: var(--primary-color);
}

.quick-actions-v2 .action-text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Investment Card v2 */
.investment-card-v2 {
    background-color: var(--background-light);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    /* Subtle background pattern */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.investment-card-v2 .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.investment-card-v2 .detail-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.investment-card-v2 .detail-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.investment-card-v2 .progress {
    height: 12px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50px;
    padding: 2px;
}

.investment-card-v2 .progress-bar {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 50px;
    position: relative;
}

.investment-card-v2 .progress-bar span {
    position: absolute;
    right: 8px;
    top: -2px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* --- Trading Bot Page --- */
.riskometer {
    position: relative;
    width: 180px;
    height: 90px; 
    overflow: hidden;
    margin: 1rem auto 0;
}

.riskometer-bg, .riskometer-fill {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 90px 90px 0 0;
    box-sizing: border-box;
}

.riskometer-bg {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.riskometer-fill {
    background: linear-gradient(90deg, #17a2b8, #28a745 50%, #ffc107 80%, #dc3545);
    clip-path: inset(0 0 0 0); /* This will be animated */
}

.riskometer-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 80px;
    background-color: var(--text-primary);
    transform-origin: bottom center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.riskometer-center {
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--text-primary);
    border-radius: 50%;
    transform: translateX(-50%);
}

.riskometer-value {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bot-perf-item {
    padding: 0.75rem 0;
}

.bot-perf-item .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bot-perf-item .value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Transactions Page --- */
.transaction-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    transition: background-color 0.3s ease;
}

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

.transaction-item:hover {
    background-color: var(--glass-bg);
}

.transaction-item .icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.transaction-item .details {
    flex-grow: 1;
}

.transaction-item .details .description {
    font-weight: 500;
    color: var(--text-primary);
}

.transaction-item .details .date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.transaction-item .amount {
    font-size: 1.1rem;
    font-weight: 600;
}

.text-income { color: #28a745; }
.bg-income { background-color: rgba(40, 167, 69, 0.1); }
.text-transfer { color: #ffc107; }
.bg-transfer { background-color: rgba(255, 193, 7, 0.1); }
.text-deposit { color: #0dcaf0; }
.bg-deposit { background-color: rgba(13, 202, 240, 0.1); }
.text-withdrawal { color: #fd7e14; }
.bg-withdrawal { background-color: rgba(253, 126, 20, 0.1); }

.animated-logo-container {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
}
.animated-logo-container .liquid-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.profile-logo-img {
    border-radius: 50%;
    box-shadow: 0 0 16px 0 rgba(160,32,240,0.15);
    background: #fff;
}
.liquid-ring-anim {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    animation: liquid-move 2.5s linear infinite;
    filter: drop-shadow(0 0 8px #A020F0) drop-shadow(0 0 16px #007bff);
}
@keyframes liquid-move {
    0% {
        stroke-dashoffset: 0;
        filter: drop-shadow(0 0 8px #A020F0) drop-shadow(0 0 16px #007bff);
    }
    50% {
        stroke-dashoffset: 100;
        filter: drop-shadow(0 0 16px #A020F0) drop-shadow(0 0 32px #007bff);
    }
    100% {
        stroke-dashoffset: 0;
        filter: drop-shadow(0 0 8px #A020F0) drop-shadow(0 0 16px #007bff);
    }
}

.liquid-ring-logo-container {
    position: relative;
    width: 180px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.liquid-ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}
.logo-img {
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 16px 0 rgba(160,32,240,0.15);
}
.blob {
    opacity: 0.8;
}
.blob1 {
    animation: moveBlob1 4s infinite alternate ease-in-out;
}
.blob2 {
    animation: moveBlob2 5s infinite alternate-reverse ease-in-out;
}
.blob3 {
    animation: moveBlob3 6s infinite alternate ease-in-out;
}
@keyframes moveBlob1 {
    0% { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(10px, 10px) scale(1.1); }
}
@keyframes moveBlob2 {
    0% { transform: translate(40px, 10px) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.15); }
}
@keyframes moveBlob3 {
    0% { transform: translate(20px, 40px) scale(1); }
    100% { transform: translate(40px, 50px) scale(1.08); }
}

@media (max-width: 500px) {
    .spin-container {
        width: 85vw;
        height: 85vw;
        max-width: 85vw;
        max-height: 85vw;
        padding: 0;
    }
    .wheel {
        width: 100%;
        height: 100%;
        max-width: 85vw;
        max-height: 85vw;
    }
}

.logo-ai-animate {
    font-weight: 700;
    background: none;
    animation: aiColorCycle 3s linear infinite;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

@keyframes aiColorCycle {
    0%   { color: #007bff; }
    25%  { color: #0056b3; }
    50%  { color: #A020F0; }
    75%  { color: #4B0082; }
    100% { color: #007bff; }
}

/* Referral Link Sections */
.referral-link-card {
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.referral-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(160, 32, 240, 0.15);
    border-color: rgba(160, 32, 240, 0.3);
}

.referral-link-card .card-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.referral-link-card .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.referral-link-card .form-control {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.referral-link-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(160, 32, 240, 0.25);
}

.referral-link-card .btn-outline-primary {
    border-color: var(--glass-border);
    color: var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
}

.referral-link-card .btn-outline-primary:hover {
    background: linear-gradient(238deg, #a020f0 0%, #9f297f 100%);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(160, 32, 240, 0.3);
}

/* General outline button styles */
.btn-outline-primary {
    border: 2px solid #a020f0;
    color: #a020f0;
    background: transparent;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    animation: pulse-glow-purple 4s infinite ease-in-out;
}

.btn-outline-primary:hover {
    background: linear-gradient(238deg, #a020f0 0%, #9f297f 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(159, 41, 127, 0.4);
}

.btn-outline-secondary {
    border: 2px solid #1b4d82;
    color: #1b4d82;
    background: transparent;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    animation: pulse-glow-blue 4s infinite ease-in-out;
}

.btn-outline-secondary:hover {
    background: linear-gradient(255deg, #1b4d82 0%, #00c6ff 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4);
}

.referral-link-card .btn-outline-primary i {
    font-size: 1rem;
}

/* Responsive adjustments for referral links */
@media (max-width: 768px) {
    .referral-link-card .form-control {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .referral-link-card .card-title {
        font-size: 0.9rem;
    }
}

/* Gradient backgrounds for referral links */
.referral-link-left {
    background: linear-gradient(255deg, #1b4d82 0%, #00c6ff 100%);
    color: #fff;
}
.referral-link-right {
    background: linear-gradient(238deg, #a020f0 0%, #9f297f 100%);
    color: #fff;
}
.referral-link-left .form-control,
.referral-link-right .form-control {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}
.referral-link-left .form-control:focus,
.referral-link-right .form-control:focus {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.15);
}
.referral-link-left .btn-outline-primary,
.referral-link-right .btn-outline-primary {
    border-color: #fff;
    color: #fff;
}
.referral-link-left .btn-outline-primary:hover,
.referral-link-right .btn-outline-primary:hover {
    background: #fff;
    color: #007bff;
    border-color: #fff;
}
.referral-link-right .btn-outline-primary:hover {
    color: #a020f0;
} 