.marquee {
    display: inline-block;
    animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

.gradient-1 {
    background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
}

.gradient-2 {
    background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
}

.gradient-3 {
    background-image: linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%);
}

.gradient-4 {
    background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%);
}

.widget-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Auth pages background (login / register) - remove split dark shade */
.authincation.section-padding {
    background-color: #020617;
    min-height: 100vh;
}

body {
    background-color: #020617;
}

/* Dark theme for authentication forms (signin / signup) */
.auth-form.card {
    background: #0f172a; /* dark blue/black */
    border: 1px solid #1f2937;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
}

.auth-form.card .card-body {
    background: transparent;
}

.auth-form.card .form-label {
    color: #e5e7eb;
}

.auth-form.card .form-control {
    background-color: #020617;
    border-color: #334155;
    color: #f9fafb;
}

.auth-form.card .form-control::placeholder {
    color: #9ca3af;
}

.auth-form.card .btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
}

.auth-form.card .btn-primary:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: #16a34a;
}

/* Dashboard dark theme */
.content-body {
    background: radial-gradient(circle at top, #020617 0%, #020617 40%, #000000 100%);
    min-height: 100vh;
    padding-top: 20px;
}

.card {
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.98) 40%,
        #020617 80%,
        #000000 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle at top,
        rgba(148, 163, 184, 0.25),
        transparent 60%);
    opacity: 0.35;
    pointer-events: none;
}

.card .card-body {
    background: transparent !important;
    border-radius: inherit;
}

.card .card-footer {
    background: linear-gradient(to right,
        rgba(15, 23, 42, 0.9),
        rgba(15, 23, 42, 0.95)) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.card .card-title,
.card p,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: #ffffff;
}

.total-balance h4,
.total-balance p {
    color: #f9fafb;
}

.total-balance h2 {
    color: #ffffff !important;
}

/* Balance Stats Cards - Dark Theme with Purple Gradient */
.balance-stats {
    background: linear-gradient(135deg, #6f4ef2 0%, #8b5cf6 50%, #a78bfa 100%) !important;
    border: none !important;
    border-radius: 16px;
    padding: 21px;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(111, 78, 242, 0.4);
}

.balance-stats p {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    opacity: 0.95;
}

.balance-stats h3 {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
}

/* Active state (if needed for hover effects) */
.balance-stats.active,
.balance-stats:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9d5cf6 50%, #b78bfa 100%) !important;
    box-shadow: 0 12px 32px rgba(111, 78, 242, 0.5);
    transform: translateY(-2px);
}

/* Dark header and sidebar */
.header {
    background: #020617 !important;
    border-bottom: 1px solid #111827;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 72px;
}

.sidebar {
    background: #020617 !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
}

.sidebar .menu a,
.sidebar .menu span,
.sidebar .menu i {
    color: #e5e7eb !important;
}

/* Override sidebar hover tooltip (nav-text) to match dark theme */
.menu ul li:hover a .nav-text,
.menu ul li:focus a .nav-text,
.menu ul li:active a .nav-text {
    display: block;
    background: rgba(15, 23, 42, 0.95);
    color: #f9fafb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
    border-radius: 8px;
}

.menu ul li:hover i,
.menu ul li:focus i,
.menu ul li:active i {
    color: #a855f7;
    opacity: 1;
}

.menu ul li.active span {
    color: #ffffff;
}

/* Header logo sizing / alignment */
.header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .brand-logo img {
    display: block;
}

@media (min-width: 992px) {
    /* Desktop: larger logo on top-left */
    .header .brand-logo img {
        width: 190px;
    }
}

@media (max-width: 991.98px) {
    /* Mobile / tablet: keep logo compact */
    .header .brand-logo img {
        width: 40px;
    }
}

/* Gradient stat widgets on dashboard */
.stat-widget {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(15, 23, 42, 0.95) 35%,
        rgba(30, 64, 175, 0.35) 70%,
        rgba(15, 23, 42, 0.98) 100%) !important;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.stat-widget .widget-content p,
.stat-widget .widget-content h3,
.stat-widget .widget-content .h3 {
    color: #f9fafb !important;
}

/* Dark tables used in level / ROI / business pages */
.table-container {
    background-color: #020617 !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.table-container table {
    background-color: #020617 !important;
    color: #e5e7eb !important;
}

.table-container thead {
    background-color: #111827 !important;
    color: #e5e7eb !important;
}

.table-container tbody td {
    color: #d1d5db !important;
}

/* Wallet Address Section Styling */
#walletAddress {
    word-break: break-all;
}

.input-group .btn {
    white-space: nowrap;
}

/* QR Code Container */
#qrCode {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Dark gradient invitation section */
.alert-info {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%) !important;
    border: 1px solid #4c1d95;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #e5e7eb !important;
    padding: 20px;
}

.alert-info .alert-heading {
    color: #c7d2fe !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.alert-info p {
    color: #c7d2fe !important;
    opacity: 0.9;
}

.alert-info .form-control {
    background-color: #0f172a !important;
    border: 1px solid #4c1d95 !important;
    color: #f9fafb !important;
    border-radius: 8px;
}

.alert-info .btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    border-radius: 8px;
}

.alert-info .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

/* Glossy gradient section headings */
.stat-widget.text-center {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.15) 0%, 
        rgba(139, 92, 246, 0.2) 25%,
        rgba(168, 85, 247, 0.25) 50%,
        rgba(139, 92, 246, 0.2) 75%,
        rgba(99, 102, 241, 0.15) 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-widget.text-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: shimmer 3s infinite;
}

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

.stat-widget.text-center h4 {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* Black loading screen */
#preloader {
    background-color: #000000 !important;
}

/* Dark form input fields - apply to all forms (dashboard, profile, etc.) */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="url"],
input[type="search"],
textarea,
select {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f9fafb !important;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    background-color: #0f172a !important;
    border-color: #6366f1 !important;
    color: #f9fafb !important;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
    opacity: 0.8;
}

.form-control:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #64748b !important;
    opacity: 0.6;
}

.form-control[readonly],
input[readonly],
textarea[readonly] {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

/* Password confirmation modal - ensure it's on top and clickable */
.modal {
    z-index: 99999 !important;
    position: fixed !important;
    display: none;
}

.modal.show,
.modal.fade.show {
    display: block !important;
    z-index: 99999 !important;
}

.modal-backdrop,
.modal-backdrop.show,
.modal-backdrop.fade.show {
    z-index: 99998 !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: auto !important;
    opacity: 0.5 !important;
}

.modal-dialog {
    z-index: 100000 !important;
    position: relative !important;
    pointer-events: auto !important;
    margin: 1.75rem auto !important;
    max-width: 500px !important;
}

.modal.show .modal-dialog,
.modal.fade.show .modal-dialog {
    z-index: 100000 !important;
    pointer-events: auto !important;
}

.modal-content {
    z-index: 100001 !important;
    position: relative !important;
    pointer-events: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.modal.show .modal-content,
.modal.fade.show .modal-content {
    z-index: 100001 !important;
    pointer-events: auto !important;
}

.modal.show .modal-content *,
.modal.fade.show .modal-content * {
    pointer-events: auto !important;
}

.modal.show .modal-header,
.modal.show .modal-body,
.modal.show .modal-footer,
.modal.fade.show .modal-header,
.modal.fade.show .modal-body,
.modal.fade.show .modal-footer {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.modal.show button,
.modal.show input,
.modal.show .btn,
.modal.show .form-control,
.modal.fade.show button,
.modal.fade.show input,
.modal.fade.show .btn,
.modal.fade.show .form-control {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Ensure modal is above sidebar and header */
.sidebar {
    z-index: 1000 !important;
}

.header {
    z-index: 1001 !important;
}

/* Prevent other elements from blocking modal */
.content-body,
.card,
.card-body {
    position: relative;
    z-index: 1 !important;
}