/* ==========================================================================
   EXCLUSIVE DLC - TRANSLUCENT FROSTED GLASS & NIGHT SKY DESIGN SYSTEM
   Full-screen atmospheric background with transparent glassmorphic UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #000000;
    --font-primary: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, html, body, button, input, select, textarea, table, th, td, h1, h2, h3, h4, h5, h6, p, span, a, div {
    font-family: var(--font-primary) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    user-select: none;
}

body {
    background-color: #030508;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 50% 15%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.78) 100%),
        url('bg_main.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Subtle Ambient Glow */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}

.glow-top {
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(140, 180, 255, 0.08), transparent 70%);
}

/* Custom Translucent Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* PURE TRANSPARENT FLOATING NAVBAR */
.glass-nav {
    background: rgba(10, 14, 24, 0.4) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 999px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* TRANSLUCENT FROSTED GLASS CARDS */
.glass-card {
    background: rgba(10, 15, 26, 0.38) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 1px 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
    background: rgba(16, 24, 42, 0.55) !important;
    transform: translateY(-6px);
    border-top-color: rgba(255, 255, 255, 0.35) !important;
    border-left-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 255, 255, 0.08);
}

.card-glass-violet,
.card-glass-pink,
.card-glass-emerald,
.card-glass-cyan,
.card-glass-red {
    background: rgba(10, 15, 26, 0.38) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* FROSTED GLASS BUTTONS */
.btn-glass-primary,
.btn-glass-purple-gradient,
.btn-glass-emerald {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #000000 !important;
    font-weight: 700 !important;
    border-radius: 14px;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}
.btn-glass-primary:hover,
.btn-glass-purple-gradient:hover,
.btn-glass-emerald:hover {
    background: rgba(255, 255, 255, 0.98) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(255, 255, 255, 0.4);
}

.btn-glass-dark,
.btn-glass-pill {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #ffffff;
    font-weight: 600;
    border-radius: 14px;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.btn-glass-dark:hover,
.btn-glass-pill:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-top-color: rgba(255, 255, 255, 0.45);
    border-left-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.btn-hero-primary {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #000000;
    font-weight: 700;
    border-radius: 999px;
    padding: 12px 28px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 35px rgba(255, 255, 255, 0.25);
}
.btn-hero-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 45px rgba(255, 255, 255, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #ffffff;
    font-weight: 600;
    border-radius: 999px;
    padding: 12px 28px;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-top-color: rgba(255, 255, 255, 0.5);
    border-left-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Glass Panels */
.glass-panel {
    background: rgba(10, 14, 24, 0.45) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* MODAL BACKDROPS WITH FULL BLUR OVER MAIN BACKGROUND */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(6, 8, 16, 0.6) 0%, rgba(0, 0, 0, 0.88) 100%), url('bg_main.png') center top / cover no-repeat fixed;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* MODAL WINDOWS - TRANSLUCENT FROSTED GLASS */
.modal-window {
    background: rgba(10, 14, 24, 0.65) !important;
    backdrop-filter: blur(35px) saturate(190%);
    -webkit-backdrop-filter: blur(35px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 28px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.94) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 32px;
}

.modal-backdrop.active .modal-window {
    transform: scale(1) translateY(0);
}

html {
    color-scheme: dark;
}

/* Translucent Input & Select Fields */
.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff !important;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}
.glass-input:focus {
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

select.glass-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    background-color: rgba(10, 14, 26, 0.95) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    cursor: pointer;
}

select.glass-input option {
    background-color: #080c16 !important;
    color: #ffffff !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
}

select.glass-input option:hover,
select.glass-input option:focus,
select.glass-input option:checked {
    background-color: #1a2238 !important;
    color: #ffffff !important;
}

/* Fix browser autofill styling */
.glass-input:-webkit-autofill,
.glass-input:-webkit-autofill:hover, 
.glass-input:-webkit-autofill:focus, 
.glass-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(12, 16, 28, 0.9) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Role Badges */
.badge-admin {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
}
.badge-media {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #e0e0e0;
}
.badge-user {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cccccc;
}
.badge-default {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888888;
}

/* Video Container with Glass Border */
.video-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

/* Payment Tariff Pills */
.pay-pill {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.pay-pill:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}
.pay-pill.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* FULLSCREEN STANDALONE ADMIN & MEDIA DASHBOARDS */
#admin-modal.modal-backdrop,
#media-modal.modal-backdrop {
    padding: 0 !important;
    background: radial-gradient(circle at 50% 20%, rgba(4, 6, 12, 0.45) 0%, rgba(0, 0, 0, 0.85) 100%), url('bg_main.png') center top / cover no-repeat fixed !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    overflow: hidden !important;
}

#admin-modal .modal-window,
#media-modal .modal-window {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
}

/* SUB-MODALS & DIALOGS ALWAYS OVERLAY ON TOP OF DASHBOARDS */
#admin-grant-modal,
#admin-pwd-modal,
#hwid-modal,
#key-redeem-modal,
#password-modal,
#email-modal,
#admin-user-modal {
    z-index: 10050 !important;
}

/* GLASS ACTION BUTTONS FOR ADMIN TABLE */
.admin-action-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 5px 10px !important;
    border-radius: 10px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}
.admin-action-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-top-color: rgba(255, 255, 255, 0.45) !important;
    border-left-color: rgba(255, 255, 255, 0.45) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

.admin-action-btn-danger {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
}
.admin-action-btn-danger:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #ffffff !important;
}

.admin-action-btn-success {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #6ee7b7 !important;
}
.admin-action-btn-success:hover {
    background: rgba(16, 185, 129, 0.3) !important;
    color: #ffffff !important;
}

/* PROFILE MODAL GLASS CARDS WITH SUBTLE TOP-LEFT & BOTTOM-RIGHT ACCENT BORDER */
.profile-glass-card {
    background: rgba(10, 15, 28, 0.45) !important;
    backdrop-filter: blur(26px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(26px) saturate(190%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 1px 1px 0 rgba(255, 255, 255, 0.08) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.profile-glass-card:hover {
    background: rgba(16, 24, 44, 0.6) !important;
    border-top-color: rgba(255, 255, 255, 0.35) !important;
    border-left-color: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), inset 1px 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Modals with Night Glass */
#auth-modal .modal-window,
#docs-modal .modal-window,
#profile-modal .modal-window,
#password-modal .modal-window,
#email-modal .modal-window,
#key-redeem-modal .modal-window,
#hwid-modal .modal-window,
#admin-grant-modal .modal-window,
#admin-pwd-modal .modal-window,
#admin-user-modal .modal-window {
    background: rgba(8, 12, 22, 0.65) !important;
    backdrop-filter: blur(35px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(190%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 255, 255, 0.06) !important;
}

#payment-modal .modal-window {
    background: rgba(6, 9, 16, 0.75) !important;
    backdrop-filter: blur(35px) !important;
    -webkit-backdrop-filter: blur(35px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}



