/* ============================================
   HACKER DARK THEME - VISUAL EFFECTS
   CardLab Cyberpunk / Terminal Style
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --hk-green: #00ff41;
    --hk-green-dim: #00cc33;
    --hk-green-glow: 0 0 7px rgba(0, 255, 65, 0.4), 0 0 15px rgba(0, 255, 65, 0.15);
    --hk-green-glow-strong: 0 0 10px rgba(0, 255, 65, 0.6), 0 0 30px rgba(0, 255, 65, 0.25), 0 0 60px rgba(0, 255, 65, 0.1);
    --hk-cyan: #0affed;
    --hk-cyan-glow: 0 0 7px rgba(10, 255, 237, 0.4), 0 0 15px rgba(10, 255, 237, 0.15);
    --hk-bg-primary: #050505;
    --hk-bg-secondary: #0a0a0a;
    --hk-bg-card: rgba(10, 10, 10, 0.85);
    --hk-border: rgba(0, 255, 65, 0.12);
    --hk-text: #8a8a8a;
    --hk-text-bright: #c0c0c0;
}

/* ---------- Global Overrides ---------- */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc33;
}

/* Text Selection */
::selection {
    background-color: rgba(0, 255, 65, 0.3) !important;
    color: #fff !important;
    text-shadow: 0 0 5px #00ff41;
}

/* ---------- Scanline Overlay ---------- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.4;
}

/* ---------- Heading Glow Effects ---------- */
h1, h2, h3, h4, h5, h6 {
    text-shadow: 0 0 3px rgba(0, 255, 65, 0.1);
}

.section__title {
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.15), 0 0 20px rgba(0, 255, 65, 0.05);
}

.banner-title {
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.3), 0 0 40px rgba(0, 255, 65, 0.1) !important;
    animation: textFlicker 4s infinite alternate;
}

/* ---------- Terminal Cursor on Banner ---------- */
.banner-title::after {
    content: '_';
    display: inline-block;
    animation: blink-cursor 1s step-end infinite;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
    font-weight: 300;
    margin-left: 4px;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ---------- Text Flicker ---------- */
@keyframes textFlicker {
    0% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

/* ---------- Neon Card Borders ---------- */
.card-item,
.counter__item,
.custom--card,
.post__item,
.choose__item,
.testimonial-item,
.dashboard__item,
.deposit-item {
    border: 1px solid rgba(0, 255, 65, 0.1) !important;
    transition: all 0.4s ease !important;
    position: relative;
}

.card-item:hover,
.counter__item:hover,
.custom--card:hover,
.post__item:hover,
.choose__item:hover,
.testimonial-item:hover,
.dashboard__item:hover,
.deposit-item:hover {
    border-color: rgba(0, 255, 65, 0.4) !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1), 0 0 30px rgba(0, 255, 65, 0.05), inset 0 0 15px rgba(0, 255, 65, 0.02);
}

/* ---------- Button Glow Effects ---------- */
.cmn--btn,
.btn--base,
[class*="btn--"] {
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.cmn--btn:hover,
.btn--base:hover {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4), 0 0 30px rgba(0, 255, 65, 0.15) !important;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Button Sweep Animation */
.cmn--btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.15), transparent);
    transition: left 0.5s ease;
}

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

/* ---------- Form Input Glow ---------- */
.form--control:focus {
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.3), 0 0 20px rgba(0, 255, 65, 0.1) !important;
    border-color: #00ff41 !important;
}

/* ---------- Social Icons Neon ---------- */
.social-icons li a {
    transition: all 0.3s ease !important;
}

.social-icons li a:hover {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5), 0 0 25px rgba(0, 255, 65, 0.2) !important;
}

/* ---------- Section Category Badge ---------- */
.section__category {
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

/* ---------- Scroll To Top Glow ---------- */
.scrollToTop {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3) !important;
}

.scrollToTop:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5), 0 0 40px rgba(0, 255, 65, 0.2) !important;
}

/* ---------- Table Header Glow ---------- */
.cmn--table thead tr th {
    text-shadow: 0 0 3px rgba(0, 255, 65, 0.3);
}

/* ---------- Preloader Hack Style ---------- */
.preloader {
    background: #050505 !important;
}

.loader-line {
    border-color: #00ff41 !important;
}

.loader-circle {
    border-color: rgba(0, 255, 65, 0.2) !important;
}

/* ---------- Banner Section Matrix Rain BG ---------- */
.banner-section {
    position: relative;
    overflow: hidden;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 255, 65, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(10, 255, 237, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-thumb {
    position: relative;
    z-index: 1;
}

/* ---------- Header Bottom Neon Line ---------- */
.header-section .header-bottom {
    border-bottom: 1px solid rgba(0, 255, 65, 0.2) !important;
}

.header-section.active .header-bottom {
    box-shadow: 0 2px 15px rgba(0, 255, 65, 0.08);
}

/* ---------- Footer Glow Accent ---------- */
footer .footer-top {
    border-color: rgba(0, 255, 65, 0.15) !important;
}

/* ---------- Choose Icon Glow ---------- */
.choose__item .choose__icon {
    transition: all 0.3s ease !important;
}

.choose__item:hover .choose__icon {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

/* ---------- Counter Pulse ---------- */
.counter__item .counter__header .title {
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
}

/* ---------- How To Work Steps Glow ---------- */
.how__thumb {
    border-color: #00ff41 !important;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
}

.how__thumb:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3), 0 0 40px rgba(0, 255, 65, 0.1);
}

/* ---------- OWL Carousel Dots ---------- */
.owl-dots .owl-dot.active span,
.owl-dots .owl-dot span {
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* ---------- Pagination Glow ---------- */
.pagination .page-item a.active,
.pagination .page-item span.active,
.pagination .page-item.active span,
.pagination .page-item.active a {
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

/* ---------- Dashboard Icon Special Effects ---------- */
.dashboard__icon {
    transition: all 0.3s ease !important;
}

.dashboard__item:hover .dashboard__icon {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

/* ---------- Link Hover Glow ---------- */
a:hover {
    text-shadow: 0 0 3px rgba(0, 255, 65, 0.15);
}

/* ---------- Account Section CRT Effect ---------- */
.account-section .left {
    position: relative;
    overflow: hidden;
}

.account-section .left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.05) 0px,
        rgba(0, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* ---------- Glitch Hover on Section Headers ---------- */
.section__header:hover .section__title {
    animation: glitch 0.3s ease;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
    100% { transform: translate(0); }
}

/* ---------- Loading Spinner Override ---------- */
.spinner-border {
    border-color: rgba(0, 255, 65, 0.2) !important;
    border-right-color: #00ff41 !important;
}

/* ---------- Nice Select Styling ---------- */
.nice-select {
    background-color: #0a0a0a !important;
    border-color: rgba(0, 255, 65, 0.15) !important;
    color: #c0c0c0 !important;
}

.nice-select .list {
    background: #0a0a0a !important;
    border: 1px solid rgba(0, 255, 65, 0.15) !important;
}

.nice-select .option:hover,
.nice-select .option.selected {
    background-color: rgba(0, 255, 65, 0.1) !important;
    color: #00ff41 !important;
}

/* ---------- Hero Section / Breadcrumb ---------- */
.hero-section {
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    opacity: 0.3;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    body::after {
        opacity: 0.2;
    }

    .banner-title::after {
        display: none;
    }
}

/* ---------- Keyframes for Subtle Ambient Glow ---------- */
@keyframes ambientPulse {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.06; }
}

/* Ambient green light in banner */
.banner-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 6s ease-in-out infinite;
}
