:root {
    --primary: #00F0FF;
    --primary-gradient: linear-gradient(135deg, #00F0FF 0%, #0066FF 100%);
    --secondary: #FF00E5;
    --accent: #7B61FF;
    --bg-dark: #0B0D1A;
    --bg-card: rgba(18, 20, 35, 0.85);
    --text-primary: #FFFFFF;
    --text-secondary: #8B95B0;
    --border-glow: rgba(0, 240, 255, 0.4);
    --success: #00FFB8;
    --warning: #FFB800;
    --danger: #FF0055;
    --purple: #8B5CF6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #0B0D1A;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}
html {
    overflow-x: hidden;
}

/* ── Fix Bootstrap .g-5 negative-margin bleed on mobile ── */
@media (max-width: 991px) {
    .row.g-5,
    .row.g-4 {
        --bs-gutter-x: 1.5rem;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 229, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(123, 97, 255, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(4px 4px at 10% 20%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(3px 3px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(4px 4px at 35% 10%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(3px 3px at 45% 45%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(4px 4px at 50% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(3px 3px at 60% 70%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(4px 4px at 70% 25%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(3px 3px at 75% 40%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(3px 3px at 80% 10%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(4px 4px at 85% 65%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(4px 4px at 90% 60%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(3px 3px at 15% 80%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(3px 3px at 25% 55%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(4px 4px at 33% 85%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(3px 3px at 55% 15%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(3px 3px at 65% 90%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(4px 4px at 95% 35%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(3px 3px at 5% 50%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes particleFloat {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

/* Content Layering */
section, .container, main {
    position: relative;
    z-index: 10;
}

/* Glassmorphism Card Effect */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.25);
    border-color: var(--border-glow);
}

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Glow Button */
.btn-glow {
    background: var(--primary-gradient);
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.6);
    color: white;
}

.btn-outline-glow {
    background: transparent;
    border: 2px solid;
    border-image: var(--primary-gradient) 1;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    z-index: 10;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: rgba(18, 20, 35, 0.95);
    border-color: var(--border-glow);
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 240, 255, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.4);
}

/* Navbar */
.navbar-custom {
    background: rgba(11, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 240, 255, 0.4));
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    background: rgba(18, 20, 35, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 240, 255, 0.15);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    padding: 2rem 0;
    z-index: 1050;
}

.sidebar-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 240, 255, 0.3));
    transition: transform 0.3s ease;
}

.sidebar-logo:hover {
    transform: scale(1.05);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.sidebar-nav li {
    margin: 0.5rem 0;
}

.sidebar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(0, 240, 255, 0.1);
    border-left-color: var(--primary);
    color: var(--primary);
}

/* Dashboard Content */
.dashboard-content {
    margin-left: 260px;
    padding: 2rem 1rem;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.wallet-info-card {
    background: var(--primary-gradient);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.balance-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 1.8rem;
    transition: all 0.3s ease;
}

.balance-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Table Styles */
.table-dark-custom {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.table-dark-custom thead {
    background: rgba(0, 102, 255, 0.1);
}

.table-dark-custom thead tr {
    background: transparent !important;
}

.table-dark-custom th {
    color: var(--primary);
    font-weight: 600;
    border: none;
    padding: 1rem;
    background: transparent !important;
}

.table-dark-custom tbody tr {
    background: transparent !important;
}

.table-dark-custom td {
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    background: transparent !important;
}

.table-dark-custom tbody tr:hover {
    background: rgba(0, 212, 255, 0.05) !important;
}

/* Status Badges */
.badge-success {
    background: var(--success);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.badge-pending {
    background: var(--warning);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.badge-failed {
    background: var(--danger);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Form Styles */
.form-control-custom {
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 10px;
    color: white;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background: rgba(18, 20, 35, 0.95);
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
    color: white;
}

.form-label-custom {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer-custom {
    background: rgba(11, 13, 26, 0.95);
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

/* Loading Animation */
.loader {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 240, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 991px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }
    
    /* Overlay when sidebar is open */
    .dashboard-sidebar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 260px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .dashboard-content {
        margin-left: 0;
    }
    
    nav[style*="margin-left: 260px"] {
        margin-left: 0 !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00FFFF, #0080FF);
}

/* Breadcrumb Styles */
.breadcrumb-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
}

.breadcrumb {
    --bs-breadcrumb-divider: '›';
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(148, 163, 184, 0.5);
    font-weight: 300;
}

.breadcrumb-item a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
}

.breadcrumb-item a:hover {
    color: var(--primary) !important;
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(2px);
}

.breadcrumb-item a i {
    transition: transform 0.3s ease;
}

.breadcrumb-item a:hover i {
    transform: scale(1.1);
}

.breadcrumb-item.active {
    font-weight: 500;
    color: #FFFFFF !important;
}

.breadcrumb-item.active i {
    color: var(--primary);
}

/* Mobile Breadcrumb Adjustments */
@media (max-width: 991.98px) {
    .breadcrumb-wrapper {
        padding: 0.5rem 1rem;
    }
    
    .breadcrumb-item {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        font-size: 1rem;
    }
    
    div[style*="margin-left: 260px"] {
        margin-left: 0 !important;
    }
}