/* 1. Global Navbar Spacing & Master Stacking Context */
header {
    position: relative !important;
    z-index: 100000 !important;
}

nav {
    position: relative !important;
    z-index: 100001 !important;
}

.home-section-container,
.hero-left-card,
.hero-right-slider,
.glass-card,
.left {
    position: relative !important;
    z-index: 1 !important;
}

nav ul li {
    margin: 0 12px !important; /* Reduced from 40px to resolve desktop crowding */
}

/* 2. Dashboard Modal Isolation */
.dashboard-modal {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    z-index: 999999 !important;
}

/* 3. Internal Dashboard Spacing */
.dashboard-sidebar {
    padding-top: 25px !important; /* Prevents first item from hugging top edge */
}

.dashboard-content-area {
    padding: 30px 25px !important; /* Added more vertical breathing room */
}

/* 4. Desktop Button Margins */
.user-info.desktop-only {
    margin-right: 20px !important;
}

#register-btn.desktop-only {
    margin-right: 15px !important;
}

/* 5. Mobile Adjustments */
@media (max-width: 992px) {
    nav .menu.mobile-active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 300px !important;
        height: 100vh !important;
        z-index: 9999999 !important;
        background: rgba(15, 15, 26, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9) !important;
        overflow-y: auto !important;
    }
    nav ul li {
        margin: 10px 0 !important;
    }
    .dashboard-content-area {
        padding: 20px 15px !important;
    }
}

/* 6. Social Media Links & Icons Fix */
.social a {
    width: auto !important;
    height: auto !important;
    color: #38bdf8 !important;
    font-size: 2rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    cursor: pointer;
    align-items: center;
    margin-top: 15px !important;
    margin-right: 15px !important;
    transition: all 0.3s ease;
}
.social a:hover {
    color: #fff !important;
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(44, 164, 191, 0.8) !important;
}

/* 7. Premium Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(44, 164, 191, 0.6);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 164, 191, 1);
}
::-webkit-scrollbar-corner {
    background: transparent;
}

/* --- 7. Hero Side-by-Side Section --- */
.hero-main-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 25px;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .hero-main-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.hero-left-card {
    background: rgba(15, 23, 42, 0.85);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-right-slider {
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(44, 164, 191, 0.15);
}

/* --- 8. Home Section Containers (News & Streamers) --- */
.home-section-container {
    max-width: 1350px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    width: 92%;
}

.section-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid rgba(44, 164, 191, 0.3);
    padding-bottom: 12px;
}

/* --- 9. News Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.news-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(44, 164, 191, 0.5);
    box-shadow: 0 12px 30px rgba(44, 164, 191, 0.25);
}

.news-card-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 10px;
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* --- 10. Streamers Grid --- */
.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.streamer-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.streamer-card:hover {
    transform: translateY(-6px);
    border-color: #a855f7;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.streamer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px auto;
    border: 3px solid #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.live-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.platform-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
}

.platform-twitch { background: #9146ff; color: #fff; }
.platform-youtube { background: #ff0000; color: #fff; }
.platform-kick { background: #53fc18; color: #000; }
.platform-facebook { background: #1877f2; color: #fff; }

/* --- 11. Slider Component --- */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
}

.slider-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-item {
    min-width: 100%;
    position: relative;
    height: 440px;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.95) 0%, rgba(10, 15, 30, 0.4) 60%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.slide-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-color, #2ca4bf);
    width: 28px;
    border-radius: 6px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--primary-color, #2ca4bf);
    border-color: var(--primary-color, #2ca4bf);
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

@media (max-width: 1024px) {
    .hero-main-layout {
        flex-direction: column;
    }
    .hero-left-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .slide-item { height: 260px; }
    .slide-title { font-size: 1.1rem; }
    .news-grid, .streamers-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MASTER THEME HARMONIZATION SYSTEM
   Enforces uniform dark cyberpunk / fantasy glassmorphism across all pages,
   inputs, dropdowns, textareas, tables, scrollbars, and placeholders.
   ========================================================================== */

/* 1. Global Form Controls (Overrides Bootstrap & Browser Defaults) */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="date"],
select,
textarea,
.form-control,
.input-modern,
.select-modern {
    background: rgba(12, 14, 24, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    outline: none !important;
}

/* Sizing for inputs */
input[type="text"]:not([size]):not(.small-input),
input[type="password"]:not([size]):not(.small-input),
input[type="email"]:not([size]):not(.small-input),
input[type="number"]:not([size]):not(.small-input),
input[type="url"]:not([size]):not(.small-input),
input[type="search"]:not([size]):not(.small-input),
select:not(.small-select),
textarea,
.form-control,
.input-modern,
.select-modern {
    padding: 11px 16px !important;
    font-size: 0.95rem !important;
}

/* Focus States across all inputs */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
.form-control:focus,
.input-modern:focus,
.select-modern:focus {
    border-color: #2ca4bf !important;
    background: rgba(16, 20, 36, 0.92) !important;
    box-shadow: 0 0 16px rgba(44, 164, 191, 0.35) !important;
    color: #ffffff !important;
}

/* 2. Universal Placeholder Styling across all browsers & form elements */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder {
    color: #64748b !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}
input::-moz-placeholder,
textarea::-moz-placeholder,
.form-control::-moz-placeholder {
    color: #64748b !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
.form-control:-ms-input-placeholder {
    color: #64748b !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}
input::-ms-input-placeholder,
textarea::-ms-input-placeholder,
.form-control::-ms-input-placeholder {
    color: #64748b !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}

/* Disabled & Readonly Form Elements */
.form-control:disabled,
.form-control[readonly],
input:disabled,
input[readonly],
select:disabled,
textarea:disabled {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #64748b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    cursor: not-allowed !important;
}

/* 3. Global Dropdown / Select Enhancements */
select,
.select-modern {
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232ca4bf'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 42px !important;
}

select option,
.select-modern option {
    background-color: #12131f !important;
    color: #f8fafc !important;
    padding: 10px 14px !important;
}

/* 4. Universal Checkboxes, Radios, and File Uploads */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #2ca4bf !important;
    cursor: pointer !important;
}

input[type="file"] {
    background: rgba(12, 14, 24, 0.6) !important;
    border: 1px dashed rgba(255, 255, 255, 0.18) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
}

input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, #2ca4bf, #1a7185) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    margin-right: 12px !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

input[type="file"]::-webkit-file-upload-button:hover {
    filter: brightness(1.15) !important;
}

/* 5. Universal Tables in Action & Dashboard Panels */
table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: #e2e8f0 !important;
}

.legacy-content-container table,
.admin-content-area table,
.glass-pane table,
table.legacy-table,
.dashboard-table {
    width: 100% !important;
    background: rgba(14, 16, 26, 0.45) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin: 15px 0 !important;
}

.legacy-content-container table th,
.admin-content-area table th,
.glass-pane table th,
table.legacy-table th,
.dashboard-table th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    text-transform: uppercase !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.legacy-content-container table td,
.admin-content-area table td,
.glass-pane table td,
table.legacy-table td,
.dashboard-table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #f1f5f9 !important;
    vertical-align: middle !important;
}

.legacy-content-container table tr:hover td,
.admin-content-area table tr:hover td,
.glass-pane table tr:hover td,
.dashboard-table tr:hover td {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* 6. Form Card, Layout Grids & Buttons in Action Panels */
.input-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin-bottom: 18px !important;
}

.form-group label {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    letter-spacing: 0.3px !important;
}

/* Buttons in Legacy & Action Panels */
input[type="submit"],
.btn-action-primary {
    background: linear-gradient(135deg, #2ca4bf 0%, #176577 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 11px 24px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(44, 164, 191, 0.3) !important;
}

input[type="submit"]:hover,
.btn-action-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(44, 164, 191, 0.5) !important;
    filter: brightness(1.1) !important;
}

/* 7. Bootstrap Overrides for Dark Glass Theme */
.modal-content {
    background: rgba(13, 16, 26, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
}

.card {
    background: rgba(18, 20, 32, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
}

/* 8. Neutralize Legacy HTML Attributes */
[bgcolor], td[bgcolor], th[bgcolor], tr[bgcolor] {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #f1f5f9 !important;
}

font[color], font {
    color: inherit !important;
}

/* 9. Bootstrap Dropdowns and Alerts */
.dropdown-menu {
    background: #0f1322 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    border-radius: 12px !important;
}

.dropdown-item {
    color: #cbd5e1 !important;
    transition: 0.2s ease !important;
}

.dropdown-item:hover {
    background: rgba(44, 164, 191, 0.15) !important;
    color: #38bdf8 !important;
}

.alert-dark, .alert-info, .alert-success, .alert-warning, .alert-danger {
    border-radius: 12px !important;
}



