:root {
    --bg-dark: #0b0c10;
    --bg-card: #14161d;
    --accent: #00d4ff;
    --accent-hover: #00a8cc;
    --text-main: #f0f0f1;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --glass: rgba(20, 22, 29, 0.8);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-bottom: 70px;
    /* Space for bottombar on mobile */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Navbar custom */
.navbar {
    background: var(--glass) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* Custom Searchbar */
.search-container {
    position: relative;
    max-width: 300px;
}

.search-input {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: white !important;
    border-radius: 20px !important;
    padding-left: 35px !important;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Profile Dropdown */
.dropdown-menu-dark {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-item:hover {
    background-color: var(--accent) !important;
    color: #000 !important;
}

/* Bottom Bar Mobile */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    display: none;
    padding: 0.5rem 0;
}

@media (max-width: 991px) {
    .bottom-bar {
        display: block;
    }
}

.bottom-nav-item {
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    flex: 1;
    transition: color 0.3s ease;
}

.bottom-nav-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--accent);
}

/* Offcanvas */
.offcanvas {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
}

/* Premium Buttons */
.btn-accent {
    background: var(--accent);
    color: #000;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    transition: transform 0.2s;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Modal Search */
.modal-content {
    background-color: var(--bg-card);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

/* Footer Section */
footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #1e293b;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
}

/* Mobile Full Width Optimization */
@media (max-width: 576px) {
    main.container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }

    main.container>.row {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    /* Ensure Carousel touches edges */
    .animeSwiper {
        border-radius: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    /* Adjust general column padding for mobile to be minimal or zero where needed */
    .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

    /* Add padding back to text content content if necessary, 
       but for now we assume the user wants the blocks to be edge-to-edge 
       or will handle internal padding */

    /* Fix potential overflow */
    body {
        overflow-x: hidden;
    }
}