/* ========================================================
   TEMEL DÜZEN VE SIFIRLAMA KURALLARI
   ======================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}

html, body {
    width: 100vw;
    height: 100vh;
    background-color: #0f172a; 
    color: #fff; 
    overflow-x: hidden;
}

/* ========================================================
   DERİN UZAY TEMALI ARAYÜZ VE UZAY KATMANLARI
   ======================================================== */
.space-theme-body {
    background: radial-gradient(ellipse at bottom, #0d1527 0%, #020617 100%) !important;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stars-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-repeat: repeat;
}

.layer-1 {
    background-image: radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
                      radial-gradient(2px 2px at 150px 80px, #00e5ff, rgba(0,0,0,0)),
                      radial-gradient(1.5px 1.5px at 280px 120px, #fff, rgba(0,0,0,0));
    background-size: 300px 300px;
    opacity: 0.8;
    animation: twinkle 4s ease-in-out infinite alternate;
}

.layer-2 {
    background-image: radial-gradient(2px 2px at 50px 180px, #39ff14, rgba(0,0,0,0)),
                      radial-gradient(1.5px 1.5px at 220px 240px, #a855f7, rgba(0,0,0,0));
    background-size: 400px 400px;
    opacity: 0.6;
    animation: twinkle 6s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    50% { opacity: 0.9; }
    100% { opacity: 0.4; }
}

.shooting-star {
    position: absolute;
    top: 15%; left: 80%;
    width: 120px; height: 2px;
    background: linear-gradient(90deg, #00e5ff, transparent);
    animation: shoot 7s linear infinite;
    transform: rotate(-35deg);
    opacity: 0;
}
.shooting-star:nth-child(2) {
    top: 35%; left: 60%;
    animation-delay: 3.5s;
    background: linear-gradient(90deg, #39ff14, transparent);
}

@keyframes shoot {
    0% { transform: translateX(0) translateY(0) rotate(-35deg); opacity: 1; }
    20% { transform: translateX(-400px) translateY(280px) rotate(-35deg); opacity: 0; }
    100% { transform: translateX(-400px) translateY(280px) rotate(-35deg); opacity: 0; }
}

/* ========================================================
   HERO CONTAINER VE SOL LOGİN PANELİ
   ======================================================== */
.login-hero-container {
    position: relative;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    background: transparent;
    display: flex;
    overflow: hidden;
}

.login-panel {
    flex: 0 0 480px !important;
    width: 480px !important;
    padding: 50px 45px !important;
    background: rgba(2, 6, 23, 0.94) !important;
    backdrop-filter: blur(25px) !important;
    border-right: 1px solid rgba(0, 229, 255, 0.25) !important;
    box-shadow: 15px 0 45px rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    z-index: 100 !important;
}

.neon-title, .login-panel .neon-title {
    color: #00f3ff !important;
    font-size: 38px !important;
    font-weight: 800 !important;
    text-shadow: 0 0 15px #00f3ff !important;
    margin-bottom: 6px !important;
    text-align: left !important;
    letter-spacing: 1px;
}

.subtitle, .login-panel .subtitle {
    color: #cbd5e1 !important;
    font-size: 16px !important;
    text-align: left !important;
    margin-bottom: 30px !important;
    font-weight: 500 !important;
}

.input-group {
    margin-bottom: 22px !important;
}

.input-group input {
    width: 100% !important;
    height: 56px !important;
    padding: 0 20px !important;
    background: #0f172a !important;
    border: 1.5px solid #334155 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 16px !important;
    outline: none !important;
    transition: 0.3s !important;
    box-sizing: border-box !important;
}

.input-group input:focus {
    border-color: #00f3ff !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3) !important;
}

.neon-btn, .login-panel .neon-btn {
    width: 100% !important;
    height: 56px !important;
    padding: 0 20px !important;
    background: transparent !important;
    color: #39ff14 !important;
    border: 2px solid #39ff14 !important;
    border-radius: 10px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 15px !important;
    letter-spacing: 1px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.neon-btn:hover {
    background: #39ff14 !important;
    color: #0f172a !important;
    box-shadow: 0 0 25px #39ff14 !important;
    transform: translateY(-2px) !important;
}

.legal-check-group {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    color: #94a3b8 !important;
}

.legal-check-group input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #00f3ff !important;
}

.license-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
}

.lic-box {
    width: 22%;
    padding: 12px 0;
    text-align: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 8px;
    color: #39ff14;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    outline: none;
    text-transform: uppercase;
    transition: 0.3s;
}

.lic-box:focus {
    border-color: #00f3ff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* ========================================================
   FOSFORLU KAYAN YAZI (ANNOUNCEMENT TICKER) MOTORU
   ======================================================== */
.topbar-announcement-box, 
.ticker-wrap, 
.announcement-ticker {
    overflow: hidden !important;
    white-space: nowrap !important;
}

.ticker-move, 
.announcement-ticker p, 
.announcement-text {
    display: inline-block !important;
    white-space: nowrap !important;
    padding-left: 100% !important;
    animation: tickerAnimation 20s linear infinite !important;
    color: #39ff14 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.9), 0 0 15px rgba(57, 255, 20, 0.6) !important;
}

.ticker-wrap:hover .ticker-move,
.topbar-announcement-box:hover .ticker-move {
    animation-play-state: paused !important;
}

@keyframes tickerAnimation {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ========================================================
   SAĞ SHOWCASE SLİDER PANELİ
   ======================================================== */
.showcase-panel {
    flex: 1;
    height: 100vh;
    padding: 30px 50px 20px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: radial-gradient(circle at center, rgba(15,23,42,0.3) 0%, rgba(2,6,23,0.92) 100%);
}

.slider-wrapper { 
    position: relative; 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 100%;
    height: 100%;
}

.showcase-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    text-align: center;
    padding-top: 15px;
}

.showcase-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.slide-badge {
    display: inline-block;
    padding: 8px 28px !important;
    background: rgba(0, 229, 255, 0.15);
    border: 1.5px solid rgba(0, 229, 255, 0.5);
    color: #00e5ff;
    font-size: 15px !important;
    font-weight: 800;
    border-radius: 25px;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.slide-title { 
    font-size: 42px !important; 
    font-weight: 900 !important; 
    color: #ffffff !important; 
    margin-bottom: 10px !important; 
    letter-spacing: 0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
}

.neon-green { color: #39ff14 !important; text-shadow: 0 0 20px rgba(57,255,20,0.8) !important; }
.neon-cyan { color: #00e5ff !important; text-shadow: 0 0 20px rgba(0,229,255,0.8) !important; }
.neon-purple { color: #c084fc !important; text-shadow: 0 0 20px rgba(192,132,252,0.8) !important; }
.neon-yellow { color: #facc15 !important; text-shadow: 0 0 20px rgba(250,204,21,0.8) !important; }

.slide-desc { 
    color: #e2e8f0 !important; 
    font-size: 19px !important; 
    margin-bottom: 20px; 
    max-width: 1100px; 
    font-weight: 600 !important; 
    line-height: 1.6 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
}

.mockup-frame {
    width: 100%;
    max-width: 1500px;
    flex: 1;
    max-height: 68vh;
    margin: 0 auto;
    border: none;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 30px rgba(0, 229, 255, 0.25));
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-bottom: 25px;
    z-index: 30;
}

.dot {
    width: 32px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #00e5ff;
    width: 55px;
    box-shadow: 0 0 15px #00e5ff;
}

/* ========================================================
   GÜVENLİK VE ARAYÜZ TEMİZLİK KURALLARI
   ======================================================== */
.sidebar a[href*="admin"], 
.nav-item[data-page="admin"],
a.admin-only {
    display: none !important;
}

.user-profile, 
.profile-area, 
.header-profile, 
.user-info, 
.admin-info,
.profile-dropdown-menu,
.global-user-dropdown-wrapper,
#globalUserWrapper,
.global-profile-popover,
.header-right .user-details,
.header-right .profile,
.top-bar .user-profile {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ========================================================
   DERİN UZAY TEMALI VE NEON IŞIKLI SİDEBAR STİLLERİ
   ======================================================== */
.sidebar {
    background: #020617 !important;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(0, 229, 255, 0.25) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.9), inset -1px 0 15px rgba(0, 229, 255, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100vh !important;
    padding-bottom: 10px !important;
}

.nav-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    list-style: none !important;
}

.nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    color: #cbd5e1 !important;
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(12px) !important;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
}

.nav-menu li:nth-child(1) { --neon-color: #00e5ff; --neon-rgb: 0, 229, 255; }
.nav-menu li:nth-child(2) { --neon-color: #39ff14; --neon-rgb: 57, 255, 20; }
.nav-menu li:nth-child(3) { --neon-color: #a855f7; --neon-rgb: 168, 85, 247; }
.nav-menu li:nth-child(4) { --neon-color: #facc15; --neon-rgb: 250, 204, 21; }
.nav-menu li:nth-child(5) { --neon-color: #ec4899; --neon-rgb: 236, 72, 153; }

.nav-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--neon-color, #00e5ff);
    box-shadow: 0 0 8px var(--neon-color, #00e5ff);
    border-radius: 4px 0 0 4px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: #ffffff !important;
    background: rgba(var(--neon-rgb, 0, 229, 255), 0.18) !important;
    border-color: var(--neon-color, #00e5ff) !important;
    box-shadow: 
        0 0 20px rgba(var(--neon-rgb, 0, 229, 255), 0.45),
        inset 0 0 12px rgba(var(--neon-rgb, 0, 229, 255), 0.25) !important;
    transform: translateX(8px) scale(1.02) !important;
    text-shadow: 0 0 10px var(--neon-color, #00e5ff) !important;
}

.nav-item.active {
    color: #ffffff !important;
    background: rgba(var(--neon-rgb, 0, 229, 255), 0.28) !important;
    border-color: var(--neon-color, #00e5ff) !important;
    box-shadow: 
        0 0 25px rgba(var(--neon-rgb, 0, 229, 255), 0.6),
        inset 0 0 15px rgba(var(--neon-rgb, 0, 229, 255), 0.35) !important;
    text-shadow: 0 0 12px var(--neon-color, #00e5ff) !important;
}

/* ========================================================
   TELEGRAM YÖNLENDİRME BUTONU STİLİ
   ======================================================== */
.telegram-contact-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(0, 136, 204, 0.2) !important;
    border: 1px solid #0088cc !important;
    color: #38bdf8 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-top: 4px !important;
}

.telegram-contact-link:hover {
    background: #0088cc !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.7) !important;
    transform: translateY(-2px) !important;
}

.telegram-contact-link i {
    font-size: 15px !important;
}

/* ========================================================
   SOL ALT KULLANICI KARTI (VARSAYILAN KAPALI)
   ======================================================== */
.sidebar-user-card {
    width: calc(100% - 24px) !important;
    margin: 10px 12px 6px 12px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    text-align: left !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.sidebar-user-header {
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    text-align: left !important;
    background: rgba(255, 255, 255, 0.03) !important;
    cursor: pointer !important;
    user-select: none !important;
}

.sidebar-user-email {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 180px !important;
}

.sidebar-user-arrow {
    transition: transform 0.3s ease !important;
}

.sidebar-user-arrow.active {
    transform: rotate(180deg) !important;
}

.sidebar-user-details {
    display: none !important;
    padding: 12px !important;
    text-align: left !important;
    background: rgba(2, 6, 23, 0.9) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sidebar-user-details.active {
    display: block !important;
    opacity: 1 !important;
}

.user-detail-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 6px !important;
    font-size: 12px !important;
    text-align: left !important;
}

.sidebar-logout-btn {
    width: calc(100% - 24px) !important;
    margin: 0 12px 10px 12px !important;
    padding: 9px !important;
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid #ef4444 !important;
    color: #f87171 !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
}

.sidebar-logout-btn:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6) !important;
}

.sidebar-footer, .sidebar-footer-links {
    padding: 0 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 10px !important;
    color: #64748b !important;
    text-align: center !important;
}

.sidebar-footer a, .sidebar-footer-links a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 10px !important;
}