html, body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0e0e10;
    color: #EFEFF1; 
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    max-width: 100%;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Prevent specific elements from overflowing (but not rows) */
img, video, iframe, embed, object {
    max-width: 100%;
}

/* Prevent Bootstrap containers from overflowing */
.container, .container-fluid {
    overflow-x: hidden;
}

/* Ensure rows don't overflow */


/* Prevent columns from overflowing */
[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    word-wrap: break-word;
}

body {
    padding-top: 72px; 
}

nav.navbar {
    background: #18181b;
    padding: 1rem 2rem;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: visible !important;
}

.navbar .container {
    overflow: visible !important;
}

.navbar-brand {
    color: #EFEFF1 !important;
    margin-right: 1rem;
    transition: color 0.3s;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.025em;
}

.nav-link {
    color: #EFEFF1 !important;
    margin-right: 1rem;
    transition: color 0.3s;
}

/* Responsive Navbar Styling */
@media (max-width: 991.98px) {
    .navbar .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .navbar-brand {
        margin-right: 1rem !important;
        flex: 0 0 auto;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        font-weight: 700;
        font-size: 1.2rem;
        letter-spacing: -0.025em;
    }
    
    .navbar-toggler {
        border: none !important;
        padding: 0.25rem 0.5rem;
        flex: 0 0 auto;
        margin-left: 0;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
}

/* Fix Dropdown Menu Issues */
.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #18181b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
    z-index: 1050;
}

.navbar .dropdown-item {
    color: #EFEFF1;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.navbar .dropdown-item:hover {
    background: rgba(145, 70, 255, 0.1);
    color: #9146FF;
}

.navbar .dropdown-item:focus {
    background: rgba(145, 70, 255, 0.1);
    color: #9146FF;
}

.navbar .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.navbar .dropdown-header {
    color: #ADADB8;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem 0.25rem;
}

.navbar .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Fix dropdown positioning */
.navbar-nav .dropdown-menu {
    right: 0;
    left: auto;
}

.navbar-nav .dropdown-menu.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Ensure navbar doesn't clip dropdown */
.navbar-collapse {
    overflow: visible;
}

.navbar-nav {
    overflow: visible;
}

/* Desktop dropdown positioning */
@media (min-width: 992px) {
    .navbar-nav .dropdown {
        position: relative;
    }
    
    .navbar-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        z-index: 1050;
        min-width: 200px;
    }
    
    .navbar .container {
        overflow: visible;
    }
}

/* Modern Offcanvas Styling */
.offcanvas {
    background: #18181B !important;
    border: none !important;
    width: 100% !important;
    max-width: none !important;
}

.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.5rem 2rem !important;
    background: transparent !important;
    min-height: 80px;
}

.offcanvas-title {
    color: #EFEFF1 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.025em !important;
    margin: 0 !important;
}

.offcanvas-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    margin: 0 !important;
}

.offcanvas-header .btn-close:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

.offcanvas-body {
    padding: 2rem !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.offcanvas .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.offcanvas .nav-item {
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.offcanvas .nav-item:last-child {
    border-bottom: none !important;
}

.offcanvas .nav-link {
    color: #EFEFF1 !important;
    font-weight: 500 !important;
    font-size: 1.125rem !important;
    padding: 1.25rem 0 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    transition: color 0.3s ease, padding-left 0.3s ease !important;
    display: block !important;
    position: relative !important;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link:focus {
    color: #9146FF !important;
    background: transparent !important;
    text-decoration: none !important;
    padding-left: 1rem !important;
}

.offcanvas .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: #9146FF;
    border-radius: 2px;
    transition: height 0.3s ease;
}

.offcanvas .nav-link:hover::before,
.offcanvas .nav-link:focus::before {
    height: 24px;
}

/* Smooth animations */
.offcanvas.show {
    transform: none !important;
}

.offcanvas {
    transition: transform 0.3s ease-in-out !important;
}

header {
    min-height: 80vh;
    padding: 60px 0;
    background: linear-gradient(135deg, #18181B 0%, #2D1B69 100%);
    position: relative;
    overflow: hidden;
}

/* Hero content styling */
.hero-content {
    position: relative;
    z-index: 2;
}

section {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-gradient {
    background: linear-gradient(45deg, #ffffff, #A970FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-features {
    max-width: 400px;
}

/* ========================================
   GLOBAL BUTTON STYLES
   ======================================== */

/* Primary Button - Purple with rounded edges */
.btn-primary {
    background: #9146FF !important;
    border: 1px solid #9146FF !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #9146FF !important;
    border-color: #9146FF !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.6) !important;
    transform: translateY(-1px);
}

/* Small buttons */
.btn-sm.btn-primary {
    padding: 0.375rem 1rem !important;
    font-size: 0.875rem !important;
}

/* Large buttons */
.btn-lg.btn-primary {
    padding: 0.75rem 2rem !important;
    font-size: 1.125rem !important;
}

/* Secondary/Outline buttons */
.btn-outline-primary,
.btn-outline-light,
.btn-secondary {
    background: transparent !important;
    border: 1px solid #9146FF !important;
    color: #9146FF !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.btn-outline-primary:hover,
.btn-outline-light:hover,
.btn-secondary:hover,
.btn-outline-primary:focus,
.btn-outline-light:focus,
.btn-secondary:focus {
    background: #9146FF !important;
    border-color: #9146FF !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.6) !important;
    transform: translateY(-1px);
}

/* Disabled state */
.btn-primary:disabled,
.btn-primary.disabled,
.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
    background: rgba(145, 70, 255, 0.3) !important;
    border-color: rgba(145, 70, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ======================================== */

.min-vh-75 {
    min-height: 75vh;
}

/* Dashboard mockup styling */
.hero-dashboard {
    position: relative;
    z-index: 2;
}

.dashboard-mockup {
    transform: perspective(800px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.dashboard-mockup:hover {
    transform: perspective(800px) rotateY(-2deg) rotateX(2deg) scale(1.02);
}

.dashboard-screenshot {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dashboard-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.dashboard-content {
    border: 1px solid #e0e0e0;
}

.stat-card {
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease;
    min-height: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.chart-placeholder {
    background: linear-gradient(45deg, #9146FF, #772CE8) !important;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-dashboard {
        margin-top: 40px;
    }
    
    .dashboard-mockup {
        transform: none;
    }
    
    .dashboard-mockup:hover {
        transform: none;
    }
    
    .stat-card:hover {
        transform: none;
    }
}

.btn-twitch-dark,
.btn-twitch-dark:hover,
.btn-twitch-dark:focus {
    color: #EFEFF1;
    background: #2e2e34;
    border-radius: 50px;
}

.btn-twitch,
.btn-twitch:hover,
.btn-twitch:focus {
    color: #EFEFF1;
    background: #9147ff;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fa-twitch {
    color: #a970ff;
}

/* Hero Section Styling */
.hero-section {
    min-height: 80vh;
    padding: 60px 0;
    background: linear-gradient(135deg, #18181B 0%, #2D1B69 100%);
    position: relative;
    overflow: hidden;
}

/* Features Section */
.features-section {
    background: #0E0E10;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(145, 70, 255, 0.2);
    border-color: rgba(145, 70, 255, 0.3);
}

.feature-icon {
    margin-bottom: 1rem;
}

/* How It Works Section */
.how-it-works-section {
    background: #18181B;
}

.step-number {
    display: flex;
    justify-content: center;
}

.step-number .badge {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 2;
}

/* Steps Section - Modern Design */
.steps-container {
    padding: 4rem 0;
}

.step-item {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-10px);
}

.step-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #9146FF, #772CE8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(145, 70, 255, 0.3);
    z-index: 2;
    overflow: hidden;
}

.step-circle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: #18181B;
    border-radius: 50%;
    z-index: 1;
}

.step-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 3rem;
    font-weight: 900;
    z-index: 2;
    user-select: none;
}

.step-icon {
    position: relative;
    z-index: 3;
    color: white;
    font-size: 2.5rem;
}

.step-content {
    text-align: center;
}

.step-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #9146FF, #772CE8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-description {
    color: #ADADB8;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .step-item:hover {
        transform: none;
    }
    
    .step-circle {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }
    
    .step-icon {
        font-size: 2rem;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    background: #0E0E10;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Testimonial card text visibility */
.testimonial-card .text-muted {
    color: #ADADB8 !important;
}

/* Responsive testimonial cards - center content on mobile */
@media (max-width: 767.98px) {
    .testimonial-card .d-flex {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }
    
    .testimonial-card img {
        margin: 0 0 1rem 0 !important;
    }
    
    .testimonial-card h6,
    .testimonial-card small,
    .testimonial-card p {
        text-align: center !important;
    }
    
    .testimonial-card .stats {
        text-align: center !important;
        justify-content: center !important;
    }
}

/* Pricing Section */
.pricing-section {
    background: #18181B;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-featured {
    border-color: #9146FF !important;
    background: rgba(145, 70, 255, 0.1) !important;
}

/* Popular badge positioning */
.popular-badge {
    position: absolute !important;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.3);
}

/* Price centering */
.price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.price .display-4 {
    display: block;
    line-height: 1.2;
}

.price .text-muted {
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
}

/* Pricing card disabled features visibility */
.pricing-card .text-muted {
    color: #ADADB8 !important;
    opacity: 0.7;
}

.pricing-card .text-muted i {
    opacity: 1;
}

/* FAQ Section */
.faq-section {
    background: #0E0E10;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(145, 70, 255, 0.1);
    border-color: rgba(145, 70, 255, 0.3);
    color: #ffffff;
}

.accordion-button:focus {
    box-shadow: none;
}

/* FAQ Accordion Items */
.faq-section .accordion-item {
    border-bottom-color: rgba(255, 255, 255, 0.065) !important;
}

/* FAQ Accordion Button */
.faq-section .accordion-button {
    border: none !important;
    border-bottom: none !important;
}

.faq-section .accordion-button.collapsed {
    border: none !important;
    border-bottom: none !important;
}

.faq-section .accordion-button:not(.collapsed) {
    border: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
}

.faq-section .accordion-button:not(.collapsed):focus {
    border: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
}

.faq-section .accordion-button:focus {
    border: none !important;
        box-shadow: none !important;
    border-bottom: none !important;
}

.faq-section .accordion-button:hover {
    border: none !important;
        box-shadow: none !important;
    border-bottom: none !important;
}

.faq-section .accordion-button:active {
    border: none !important;
        box-shadow: none !important;
    border-bottom: none !important;
}

/* FAQ Accordion Body Text */
.faq-section .accordion-body {
    color: #ADADB8 !important;
        box-shadow: none !important;
}

/* FAQ Accordion White Indicators */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #9146FF 0%, #772CE8 100%);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Section Dividers */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

/* Specific divider backgrounds to match the section they introduce */
.hero-section + .section-divider {
    background: #0E0E10; /* Features section background */
}

.features-section + .section-divider {
    background: #18181B; /* How It Works section background */
}

.how-it-works-section + .section-divider {
    background: #0E0E10; /* Testimonials section background */
}

.testimonials-section + .section-divider {
    background: #18181B; /* Pricing section background */
}

.pricing-section + .section-divider {
    background: #0E0E10; /* FAQ section background */
}

.faq-section + .section-divider {
    background: linear-gradient(135deg, #9146FF 0%, #772CE8 100%); /* CTA section background */
}

/* Special styling for the CTA divider - white elements on transparent background */
.cta-divider {
    background: linear-gradient(135deg, #9146FF 0%, #772CE8 100%) !important;
}

.cta-divider .divider-line {
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    opacity: 0.8;
}

.cta-divider .divider-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* Footer Section */
.footer-section {
    background: #0E0E10;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
}

.footer-brand h5 {
    font-weight: 600;
    font-size: 1.25rem;
}

.footer-brand p {
    color: #ADADB8;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ADADB8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #9146FF;
}

.footer-links h6 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ADADB8;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: #9146FF;
    color: #ffffff;
    transform: translateY(-2px);
    border-color: #9146FF;
}

/* Newsletter Form */
.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.875rem;
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #9146FF;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(145, 70, 255, 0.25);
}

.newsletter-form .form-control::placeholder {
    color: #ADADB8;
}

/* Newsletter button inherits global btn-primary styles */

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 2rem;
}

.footer-badges .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
}

.footer-badges .bg-success {
    background-color: #00B74A !important;
}

.footer-badges .bg-info {
    background-color: #00A8E8 !important;
}

.footer-badges .bg-primary {
    background-color: #9146FF !important;
}

/* Responsive Footer */
@media (max-width: 767.98px) {
    .footer-section {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-badges {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .footer-bottom .row {
        text-align: center;
    }
}

/* Footer Accordion Styling - Copied from FAQ */
.footer-accordion .accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem;
}

.footer-accordion .accordion-button {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem !important;
}

.footer-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(145, 70, 255, 0.1) !important;
    border-color: rgba(145, 70, 255, 0.3) !important;
    color: #ffffff !important;
}

.footer-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(145, 70, 255, 0.25) !important;
}

.footer-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.footer-accordion .accordion-collapse {
    border: none !important;
}

.footer-accordion .accordion-body {
    padding: 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-divider .divider-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.divider-line {
    height: 1px;
    width: 100px;
    background: linear-gradient(90deg, transparent, #9146FF, transparent);
    opacity: 0.6;
}

.divider-icon {
    margin: 0 20px;
    width: 50px;
    height: 50px;
    background: rgba(145, 70, 255, 0.1);
    border: 2px solid rgba(145, 70, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9146FF;
    font-size: 18px;
    transition: all 0.3s ease;
}

.divider-icon:hover {
    background: rgba(145, 70, 255, 0.2);
    border-color: rgba(145, 70, 255, 0.5);
    transform: scale(1.1);
}

/* Responsive divider adjustments */
@media (max-width: 768px) {
    .section-divider {
        padding: 30px 0;
    }
    
    .divider-line {
        width: 60px;
    }
    
    .divider-icon {
        width: 40px;
        height: 40px;
        margin: 0 15px;
        font-size: 16px;
    }
}

/* ===================================
   DASHBOARD STYLES
   =================================== */

/* Dashboard Body */
.dashboard-body {
    background: #0e0e10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0 !important; /* Override the global body padding-top: 72px */
}

/* Modern Dashboard Header */
.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #18181b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1000;
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.dashboard-brand i {
    color: #9146FF;
    font-size: 1.5rem;
}

.brand-text {
    display: none;
}

@media (min-width: 768px) {
    .brand-text {
        display: inline;
    }
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-search {
    position: relative;
}

.header-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.875rem;
}

.header-search .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    color: white;
    width: 250px;
    font-size: 0.875rem;
}

.header-search .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #9146FF;
    box-shadow: none;
}

.header-search .form-control::placeholder {
    color: #666;
}

.header-icon-btn {
    position: relative;
}

.header-icon-btn .btn {
    border-radius: 8px;
    transition: background 0.2s;
}

.header-icon-btn .btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: white;
    font-size: 0.625rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 600;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    color: white;
    transition: all 0.2s;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #9146FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.dashboard-dropdown {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 220px;
}

.dashboard-dropdown .dropdown-header {
    padding: 0.75rem;
    margin-bottom: 0.25rem;
}

.dashboard-dropdown .dropdown-item {
    color: #EFEFF1;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.dashboard-dropdown .dropdown-item:hover {
    background: rgba(145, 70, 255, 0.2);
    color: white;
}

.dashboard-dropdown .dropdown-item i {
    width: 1.25rem;
    text-align: center;
    opacity: 0.7;
}

.dashboard-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Dashboard Layout */
.dashboard-layout {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    background: #0e0e10;
    display: flex;
}

.dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 260px;
    height: calc(100vh - 60px);
    background: #18181b;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

@media (max-width: 991px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
}

.dashboard-main {
    margin-left: 260px;
    padding: 1.5rem;
    min-height: calc(100vh - 60px);
    flex: 1;
    width: calc(100% - 260px);
}

@media (max-width: 991px) {
    .dashboard-main {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
}

@media (min-width: 1400px) {
    .dashboard-main {
        padding: 1.5rem 2rem;
    }
}

.sidebar-header {
    padding: 0 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.sidebar-nav .nav-link {
    color: #EFEFF1;
    padding: 1rem 2rem;
    border: none;
    transition: all 0.3s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
}

.sidebar-nav .nav-link:hover {
    background: rgba(145, 70, 255, 0.1);
    color: #9146FF;
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(90deg, transparent, rgba(145, 70, 255, 0.2));
    border-right: 3px solid #9146FF;
    color: #9146FF;
}

/* Dashboard Cards */
.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    border-color: rgba(145, 70, 255, 0.3);
    box-shadow: 0 8px 25px rgba(145, 70, 255, 0.1);
}

.stats-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: white;
    height: 100%;
    min-height: 140px;
}

.stats-card:hover {
    transform: translateY(-2px);
    border-color: rgba(145, 70, 255, 0.4);
    box-shadow: 0 10px 25px rgba(145, 70, 255, 0.15);
}

.stats-card.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

/* Dashboard Statistics */
.stats-card-body {
    padding: 1.5rem;
}

.stats-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
    height: 100%;
}

.stats-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(239, 239, 241, 0.7);
    margin-bottom: 0.5rem;
}

.stats-card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #EFEFF1;
}

.stats-card-trend {
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.stats-card-trend.positive {
    color: #00F5A0;
}

.stats-card-trend.negative {
    color: #FF6B6B;
}

.stats-card-trend.neutral {
    color: #B0B3B8;
}

.stats-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(145, 70, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(145, 70, 255, 0.9);
    transition: all 0.3s ease;
}

.stats-card:hover .stats-card-icon {
    background: rgba(145, 70, 255, 0.3);
    color: #9146FF;
}

/* Recent Followers */
.recent-followers-list {
    max-height: 400px;
    overflow-y: auto;
}

.recent-follower-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

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

.recent-follower-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
}

.recent-follower-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.recent-follower-info {
    flex: 1;
    min-width: 0;
}

.recent-follower-name {
    font-weight: 600;
    color: #EFEFF1;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-follower-time {
    font-size: 0.875rem;
    color: #ADADB8;
}

/* Custom scrollbar for recent followers */
.recent-followers-list::-webkit-scrollbar {
    width: 6px;
}

.recent-followers-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.recent-followers-list::-webkit-scrollbar-thumb {
    background: rgba(145, 70, 255, 0.6);
    border-radius: 3px;
}

.recent-followers-list::-webkit-scrollbar-thumb:hover {
    background: rgba(145, 70, 255, 0.8);
}

/* Followers Specific */
.follower-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.follower-card:hover {
    transform: translateY(-5px);
    border-color: rgba(145, 70, 255, 0.4);
    box-shadow: 0 15px 35px rgba(145, 70, 255, 0.2);
}

.follower-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transform: scale(1.1);
    opacity: 0.3;
}

.follower-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(2px);
}

.follower-card-content {
    position: relative;
    z-index: 3;
    height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: white;
}

/* Unfollow Button for Following Page */
.follower-action-btn.unfollow-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(220, 53, 69, 0.9);
    border: 1px solid #dc3545;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.follower-action-btn.unfollow-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
    color: white !important;
    border-color: #dc3545;
}

.follower-card:hover .follower-action-btn.unfollow-btn {
    opacity: 1;
    transform: scale(1);
}

.follower-action-btn.unfollow-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);
    outline: none;
}

.follower-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.follower-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
    object-fit: cover;
}

.follower-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.follower-handle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.follower-date {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(145, 70, 255, 0.2);
    border-radius: 12px;
    color: #e0e0e0;
    display: inline-block;
    border: 1px solid rgba(145, 70, 255, 0.3);
}

.follower-date i {
    opacity: 0.7;
}

.follower-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 15px 0;
    min-height: 0;
}

.follower-about {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
    padding: 10px;
    text-align: left;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    display: block;
    height: 140px;
    overflow: hidden;
    word-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
}

.follower-meta {
    font-size: 0.875rem;
    color: rgba(239, 239, 241, 0.7);
}

.follower-footer {
    flex-shrink: 0;
    width: 100%;
    padding-top: 10px;
}

.follower-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.follower-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.follower-action-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.follower-actions .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 50px !important;
    transition: all 0.3s ease;
}

.follower-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.6) !important;
}

/* Form Controls */
.search-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #EFEFF1;
    border-radius: 8px;
}

.search-box:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #9146FF;
    box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.1);
    color: #EFEFF1;
}

.search-box::placeholder {
    color: rgba(239, 239, 241, 0.5);
}

/* Search Icon Styling */
.input-group-text.search-icon {
    background: #9147ff !important;
    border-color: #9147ff !important;
    color: #ffffff !important;
}

.input-group-text.search-icon:hover {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
}

/* Search and Sort Toolbar */
.search-sort-toolbar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.sort-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #EFEFF1;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.sort-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #9147ff;
    box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.1);
    color: #EFEFF1;
    outline: none;
}

.sort-select option {
    background: #18181b;
    color: #EFEFF1;
}

.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #EFEFF1;
    border-radius: 8px;
}

.filter-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #9146FF;
    box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.1);
    color: #EFEFF1;
}

.filter-select option {
    background: #18181b;
    color: #EFEFF1;
}

/* Buttons */
.btn-twitch {
    background: #9146FF !important;
    border: 1px solid #9146FF !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.btn-twitch:hover {
    background: #9146FF !important;
    border-color: #9146FF !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.6) !important;
    transform: translateY(-1px);
}

.btn-outline-twitch {
    background: transparent !important;
    border: 1px solid #9146FF !important;
    color: #9146FF !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.btn-outline-twitch:hover {
    background: #9146FF !important;
    border-color: #9146FF !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.6) !important;
    transform: translateY(-1px);
}

/* Pagination */
#followingPagination,
#followersPagination {
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 2rem;
}

.pagination-custom .page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #EFEFF1;
    border-radius: 8px;
    margin: 0 4px;
}

.pagination-custom .page-link:hover {
    background: rgba(145, 70, 255, 0.2);
    border-color: #9146FF;
    color: #9146FF;
}

.pagination-custom .page-item.active .page-link {
    background: #9146FF;
    border-color: #9146FF;
    color: white;
}

/* View Toggle */
.view-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 5px;
}

.view-toggle .btn {
    border-radius: 50px !important;
    border: none;
    padding: 8px 16px;
    background: transparent;
    color: #EFEFF1;
    flex: 1;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.view-toggle .btn.active {
    background-color: #9146FF !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(145, 70, 255, 0.5);
}

.view-toggle .btn:hover:not(.active) {
    background-color: rgba(145, 70, 255, 0.2);
    box-shadow: 0 0 10px rgba(145, 70, 255, 0.3);
}

/* Search Autocomplete */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(145, 70, 255, 0.1);
}

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

.search-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid rgba(145, 70, 255, 0.3);
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    margin: 0 0 2px 0;
    color: #EFEFF1;
    font-size: 0.9rem;
    font-weight: 500;
}

.search-result-username {
    color: #9146FF;
    font-size: 0.8rem;
}

.search-result-info h6 {
    margin: 0 0 2px 0;
    color: #EFEFF1;
    font-size: 0.9rem;
}

.search-result-info small {
    color: #9146FF;
    font-size: 0.8rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(239, 239, 241, 0.6);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .dashboard-sidebar {
        width: 260px;
    }
    .dashboard-main {
        margin-left: 260px;
    }
}

@media (max-width: 991px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .dashboard-main {
        margin-left: 0;
        padding: 1rem;
    }
    .sidebar-toggle {
        display: block !important;
    }
}

.sidebar-toggle {
    display: none;
}

@media (max-width: 768px) {
    /* Dashboard stats responsive */
    .stats-card-value {
        font-size: 1.5rem;
    }
    
    .stats-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stats-card-body {
        padding: 1rem;
    }
    
    /* Recent followers responsive */
    .recent-follower-avatar {
        width: 35px;
        height: 35px;
    }
    
    .recent-follower-name {
        font-size: 0.9rem;
    }
    
    .recent-follower-time {
        font-size: 0.8rem;
    }
    
    /* Follower cards responsive */
    .follower-card-content {
        height: 380px;
        padding: 15px;
    }
    
    .follower-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }
    
    .follower-name {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .follower-body {
        padding: 10px 0;
    }
    
    .follower-about {
        font-size: 0.8rem;
        height: 120px;
        padding: 8px;
    }
}

/* ===================================
   TABLE STYLES
   =================================== */

/* Custom table styling for better readability */
.table-custom {
    background: transparent !important;
    color: #EFEFF1 !important;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.table-custom * {
    background: transparent !important;
}

/* Force table border with multiple selectors */
table.table-custom,
.table.table-custom,
.table-responsive .table-custom {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
}

/* Also add border to table wrapper for visibility */
.table-responsive {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.table-custom thead th {
    background-color: #9147ff !important;
    background: #9147ff !important;
    color: #FFFFFF !important;
    border: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 0.75rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: none !important;
}

.table-custom thead th::before,
.table-custom thead th::after {
    display: none !important;
}

.table-custom thead th:first-child {
    border-radius: 10px 0 0 0;
}

.table-custom thead th:last-child {
    border-radius: 0 10px 0 0;
}

.table-custom tbody tr {
    background: transparent !important;
    border: none;
    transition: all 0.3s ease;
}

.table-custom tbody tr:nth-child(even) {
    background: rgba(24, 24, 27, 0.3) !important;
}

.table-custom tbody tr:hover {
    background: rgba(145, 70, 255, 0.15) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.2);
}

.table-custom tbody td {
    border: none;
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #444444;
    background: transparent !important;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-custom tbody tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}

.table-custom tbody tr:last-child td:last-child {
    border-radius: 0 0 10px 0;
}

/* Text styling for better readability */
.table-custom .text-username {
    color: #ADADB8 !important;
    font-weight: 500;
    font-size: 0.9rem;
}

.table-custom .text-date {
    color: #9CA3AF !important;
    font-size: 0.85rem;
    opacity: 1;
}

.table-custom .text-name {
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Button styling in tables */
.table-custom .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.table-custom .btn-outline-twitch {
    border-color: #9146FF;
    color: #9146FF;
    background: transparent;
}

.table-custom .btn-outline-twitch:hover {
    background: #9146FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.3);
}

/* Avatar styling in tables */
.table-custom .table-avatar {
    border: 2px solid rgba(145, 70, 255, 0.3);
    transition: all 0.3s ease;
}

.table-custom tr:hover .table-avatar {
    border-color: #9146FF;
    box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.2);
}

/* Override Bootstrap table defaults */
.table-custom.table {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: rgba(24, 24, 27, 0.3) !important;
    --bs-table-hover-bg: rgba(145, 70, 255, 0.15) !important;
    --bs-table-color: #EFEFF1 !important;
    border-color: transparent !important;
}

/* Force purple header background */
.table-custom thead,
.table-custom thead tr,
.table-custom thead tr th {
    background-color: #9147ff !important;
    background: #9147ff !important;
}

.table-custom tbody tr td {
    background-color: transparent !important;
}

/* Ensure header is purple - very specific selector */
.card .table-responsive .table.table-custom thead tr th,
.table-custom thead tr th {
    background-color: #9147ff !important;
    background: #9147ff !important;
    color: #FFFFFF !important;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .table-custom {
        font-size: 0.85rem;
    }
    
    .table-custom thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .table-custom tbody td {
        padding: 0.75rem 0.5rem;
    }
}

/* ===================================
   DASHBOARD FOOTER
   =================================== */

.dashboard-footer {
    background: #18181b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    margin-top: auto;
    margin-left: 260px;
}

@media (max-width: 991px) {
    .dashboard-footer {
        margin-left: 0;
    }
}

.dashboard-footer a:hover {
    color: #9146FF !important;
    transition: color 0.2s;
}
