* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    touch-action: pan-x pan-y;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #0b0f19;
    color: #c9d1d9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;         /* Standart */
    zoom: 95% !important;
}

img {
    pointer-events: none; /* Görsellerin sürüklenerek kopyalanmasını engeller */
}

/* Arka Plan Sabitlemesi */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Ana Sarıcı */
.main-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 28px;
    max-width: 95vw;
}
/* 
.main-wrapper.farm-layout {
    overflow: visible;
    gap: 64px;
} */

.main-wrapper.farm-layout {
    display: flex !important;
    flex-direction: row !important; /* Yakınlaşsa bile asla alt alta geçme, yan yana kal */
    flex-wrap: nowrap !important;   /* Videoları alt satıra fırlatmayı engeller */
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;           /* Aradaki boşluğu sabit tutar */
    width: 100% !important;
    max-width: 100vw !important;
}

/* .main-wrapper.farm-layout .navigation-panel {
    transform: translateX(-56px);
    overflow-x: hidden;
    overflow-y: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
} */

/* Farm ↔ GIF siber bağlantı (canvas overlay) */
.farm-cyber-canvas {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100% !important;;
    height: 100% !important;;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    max-width: 100vw;
}


.main-wrapper.farm-layout .farm-cyber-canvas {
    opacity: 1;
}

/* Farm wiki kartından siber çıkış noktası */
.main-wrapper.farm-layout .wiki-content-container.farm-wiki-active {
    position: relative;
}

.main-wrapper.farm-layout .wiki-content-container.farm-wiki-active::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 12%;
    width: 3px;
    height: 76%;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent 0%, #10b981 20%, #34d399 50%, #10b981 80%, transparent 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.85), 0 0 24px rgba(16, 185, 129, 0.4);
    animation: farmWikiAnchorPulse 2s ease-in-out infinite;
}

@keyframes farmWikiAnchorPulse {
    0%, 100% { opacity: 0.7; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
    50% { opacity: 1; box-shadow: 0 0 16px rgba(16, 185, 129, 1); }
}

/* Farm önizleme paneli */

.farm-preview-panel.visible {
    width: auto;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    overflow: visible;
}

.farm-preview-panel.visible .farm-videos-cluster {
    animation: farmVideosSlowReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes farmVideosSlowReveal {
    from {
        opacity: 0;
        transform: translateX(48px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

.farm-videos-cluster {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    position: relative;
}

.farm-preview-video {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    border: 2px solid rgba(16, 185, 129, 0.85);
    box-shadow:
        0 0 12px rgba(16, 185, 129, 0.7),
        0 0 28px rgba(16, 185, 129, 0.45),
        0 0 48px rgba(16, 185, 129, 0.25),
        inset 0 0 14px rgba(16, 185, 129, 0.12);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    animation: farmNeonPulse 2.5s ease-in-out infinite;
    background: #0b0f19;
}

.farm-preview-video--sm {
    position: relative;
    z-index: 3;
    max-width: min(380px, 34vw);
    max-height: 72vh;
    transform: translateY(-42px);
    transform-origin: left center;
}

.farm-preview-video--lg {
    position: relative;
    z-index: 1;
    max-width: min(560px, 46vw);
    max-height: 88vh;
    transform: translateY(48px) translateX(-32px);
    transform-origin: left center;
}

.farm-videos-cluster:hover .farm-preview-video--sm {
    transform: translateY(-42px) scale(1.08);
}

.farm-videos-cluster:hover .farm-preview-video--lg {
    transform: translateY(48px) translateX(-32px) scale(1.14);
    border-color: rgba(16, 185, 129, 1);
    box-shadow:
        0 0 18px rgba(16, 185, 129, 0.85),
        0 0 36px rgba(16, 185, 129, 0.55),
        0 0 56px rgba(16, 185, 129, 0.3),
        inset 0 0 18px rgba(16, 185, 129, 0.18);
}

@keyframes farmNeonPulse {
    0%, 100% {
        border-color: rgba(16, 185, 129, 0.75);
        box-shadow:
            0 0 12px rgba(16, 185, 129, 0.6),
            0 0 28px rgba(16, 185, 129, 0.35),
            0 0 48px rgba(16, 185, 129, 0.2),
            inset 0 0 14px rgba(16, 185, 129, 0.1);
    }
    50% {
        border-color: rgba(52, 211, 153, 1);
        box-shadow:
            0 0 18px rgba(52, 211, 153, 0.85),
            0 0 36px rgba(16, 185, 129, 0.55),
            0 0 60px rgba(16, 185, 129, 0.3),
            inset 0 0 18px rgba(16, 185, 129, 0.18);
    }
}

@media (max-width: 900px) {
    .main-wrapper.farm-layout .navigation-panel {
        transform: translateX(-28px);
    }

    .farm-videos-cluster {
        gap: 12px;
    }

    .farm-preview-video--sm {
        max-width: min(260px, 38vw);
        max-height: 65vh;
        transform: translateY(-24px);
    }

    .farm-preview-video--lg {
        max-width: min(340px, 48vw);
        max-height: 78vh;
        transform: translateY(28px) translateX(-18px);
    }

    .farm-videos-cluster:hover .farm-preview-video--sm {
        transform: translateY(-24px) scale(1.08);
    }

    .farm-videos-cluster:hover .farm-preview-video--lg {
        transform: translateY(28px) translateX(-18px) scale(1.12);
    }

    .main-wrapper.farm-layout {
        gap: 40px;
    }
}

/* Ana Panel */
.navigation-panel {
    overflow-x: hidden;
    container-type: inline-size;
    container-name: nav-panel;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: clamp(14px, 3vw, 24px) clamp(12px, 2.5vw, 20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 180, 216, 0.35);
    width: clamp(260px, 92vw, 340px);
    max-width: 100%;
    max-height: 85vh;
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.15), 
                0 0 50px rgba(0, 180, 216, 0.08);
    display: flex;
    position: relative;
    z-index: 5;
    flex-direction: column;
    gap: clamp(8px, 2vw, 12px);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
                
    
}

.panel-settings-container {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 120;
}

.navigation-panel .icon-wrapper svg {
    width: clamp(18px, 6cqi, 22px);
    height: clamp(18px, 6cqi, 22px);
}

/* PANEL BAŞLIĞI VE LOGO ALANI */
.panel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
    animation: fadeIn 0.4s ease forwards;
    z-index: 9999 !important;
}
.panel-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -10px;
}
.panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f0f6fc;
    background: linear-gradient(135deg, #fff 30%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.panel-version {
    font-size: 0.75rem;
    color: #484f58;
    font-weight: 600;
}

/* STATUS / AMBLEM ROZETİ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 10px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
    text-transform: uppercase;
}
.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
    animation: pulse 1.8s infinite;
}

/* İSTATİSTİK SATIRI */
.panel-stats-row {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: #8b949e;
    animation: fadeIn 0.4s ease forwards;
}
.stat-item span {
    color: #00b4d8;
    font-weight: 600;
}

/* Ortak Kategori Buton Stili */
.category-item {
    position: relative; /* Çizgi konumlandırması için EKLENDİ */
    overflow: hidden;   /* Kenar yuvarlamalarına çizgiyi uydurmak için EKLENDİ */
    display: flex;
    align-items: center;
    gap: clamp(8px, 3cqi, 14px);
    padding: clamp(10px, 3.5cqi, 14px) clamp(12px, 4cqi, 18px);
    color: #f0f6fc;
    text-decoration: none;
    font-size: clamp(0.82rem, 4.5cqi, 1.05rem);
    font-weight: 500;
    min-width: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.category-item > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ÜST GLOBAL GERİ DÖNÜŞ BUTONU */
.global-back-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #8b949e;
    font-size: 0.95rem;
    padding: 10px 16px;
}
.global-back-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f0f6fc;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* ANA GİRİŞ BUTONLARI */
.entrance-btn {
    animation: fadeIn 0.4s ease forwards;
}

/* FpX PVP Altın Sarısı */
#mainEntranceBtn {
    background: rgba(240, 165, 0, 0.04); 
    border-color: rgba(240, 165, 0, 0.4);
    color: #f0a500;
    box-shadow: 0 0 8px rgba(240, 165, 0, 0.08);
}
#mainEntranceBtn:hover {
    background: rgba(240, 165, 0, 0.12); 
    border-color: rgba(240, 165, 0, 0.8);
    color: #ffbc2b;
    box-shadow: 0 0 22px rgba(240, 165, 0, 0.4);
}

/* CS2 External Zümrüt Yeşili */
#cs2ExternalBtn {
    background: rgba(16, 185, 129, 0.04); 
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.08);
}
#cs2ExternalBtn:hover {
    background: rgba(16, 185, 129, 0.12); 
    border-color: rgba(16, 185, 129, 0.8);
    color: #10e59f;
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.5);
}

/* Discord Blurple Rengi */
.discord-main-btn {
    background: rgba(88, 101, 242, 0.06);
    border-color: rgba(88, 101, 242, 0.4);
    color: #5865f2;
    box-shadow: 0 0 8px rgba(88, 101, 242, 0.1);
}
.discord-main-btn:hover {
    background: rgba(88, 101, 242, 0.16);
    border-color: rgba(88, 101, 242, 0.9);
    color: #7289da;
    box-shadow: 0 0 26px rgba(88, 101, 242, 0.45);
}

.main-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

/* SERVERS BUTONU RENKLERİ */
#serversBtn:hover { 
    background: rgba(0, 180, 216, 0.08); 
    border-color: rgba(0, 180, 216, 0.7); 
    color: #00b4d8;
    box-shadow: 0 0 18px rgba(0, 180, 216, 0.4);
}
#serversBtn.active {
    background: rgba(0, 180, 216, 0.12);
    border-color: rgba(0, 180, 216, 0.8);
    color: #00b4d8;
    box-shadow: 0 0 22px rgba(0, 180, 216, 0.3);
}

/* =========================================
   SERVERS, WIKI VE BUY BUTON SOL ÇİZGİLERİ
   ========================================= */

/* Ortak çizgi yapısı */
#serversBtn::before, 
#wikiBtn::before, 
#buyBtn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    border-radius: 10px 0 0 10px;
    transition: width 0.2s ease, box-shadow 0.2s ease;
}

/* Hover ve Active (Tıklanmış) durumunda çizginin kalınlaşması */
#serversBtn:hover::before, #serversBtn.active::before,
#wikiBtn:hover::before, #wikiBtn.active::before,
#buyBtn:hover::before, #buyBtn.active::before {
    width: 4px;
}

/* Servers Butonu Çizgi Rengi (Mavi) */
#serversBtn::before {
    background: #00b4d8;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.7);
}
#serversBtn:hover::before, #serversBtn.active::before {
    box-shadow: 0 0 14px rgba(0, 180, 216, 1);
}

/* Wiki Butonu Çizgi Rengi (Yeşil) */
#wikiBtn::before {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}
#wikiBtn:hover::before, #wikiBtn.active::before {
    box-shadow: 0 0 14px rgba(16, 185, 129, 1);
}

/* Buy Butonu Çizgi Rengi (Turuncu) */
#buyBtn::before {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}
#buyBtn:hover::before, #buyBtn.active::before {
    box-shadow: 0 0 14px rgba(245, 158, 11, 1);
}







/* WIKI BUTONU RENKLERİ */
#wikiBtn:hover { 
    background: rgba(16, 185, 129, 0.08); 
    border-color: rgba(16, 185, 129, 0.7); 
    color: #10b981;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
}
#wikiBtn.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.8);
    color: #10b981;
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.3);
}

/* BUY BUTONU RENKLERİ */
#buyBtn:hover { 
    background: rgba(245, 158, 11, 0.08); 
    border-color: rgba(245, 158, 11, 0.7); 
    color: #f59e0b;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.4);
}
#buyBtn.active {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.8);
    color: #f59e0b;
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.3);
}

/* CS2 COMING SOON BUTONU RENKLERİ */
#cs2ComingSoonBtn {
    justify-content: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8b949e;
    font-style: italic;
}
#cs2ComingSoonBtn:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

/* Alt Wiki Dünyası */
.wiki-sub-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: clamp(9px, 3cqi, 12px) clamp(10px, 3.5cqi, 16px);
    padding-left: clamp(14px, 4cqi, 18px);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: clamp(0.78rem, 4cqi, 0.95rem);
    color: #c9d1d9;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fadeIn 0.3s ease forwards;
}

.wiki-sub-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
    border-radius: 8px 0 0 8px;
    transition: width 0.2s ease, box-shadow 0.2s ease;
}

.wiki-sub-item:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.wiki-sub-item:hover::before {
    width: 4px;
    box-shadow: 0 0 14px rgba(16, 185, 129, 1);
}

.wiki-sub-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #10b981;
}

.wiki-sub-icon svg {
    width: clamp(16px, 5cqi, 18px);
    height: clamp(16px, 5cqi, 18px);
}

.wiki-sub-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wiki-sub-arrow {
    width: clamp(12px, 4cqi, 16px);
    height: clamp(12px, 4cqi, 16px);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
    color: #8b949e;
}

.wiki-sub-item:hover .wiki-sub-arrow {
    transform: translateX(3px);
    color: #10b981;
}

.wiki-sub-item:hover .wiki-sub-icon {
    color: #34d399;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
}

/* Buy Alt Seçenekleri */
.buy-sub-item {
    position: relative; /* Çizgi konumlandırması için EKLENDİ */
    overflow: hidden;   /* Kenar yuvarlamalarına çizgiyi uydurmak için EKLENDİ */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(8px, 3cqi, 12px) clamp(10px, 3.5cqi, 14px);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #c9d1d9;
    text-decoration: none;
    font-size: clamp(0.78rem, 4cqi, 0.95rem);
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
}
.buy-sub-item:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding-left: 20px;
}
.buy-sub-item svg { transition: transform 0.2s ease; color: #8b949e; }
.buy-sub-item:hover svg { transform: translateX(3px); color: #f59e0b; }

.icon-wrapper { display: flex; align-items: center; justify-content: center; color: inherit; }
.back-icon { display: none; }

/* Arama Kutusu ve Üst Alan Yapısı */
.search-wrapper {
    display: none;
    position: relative;
    animation: fadeIn 0.25s ease forwards;
    margin-top: 4px;
}
.search-inner-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.search-input-box {
    position: relative;
    flex-grow: 1;
}
.search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #f0f6fc;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}
.search-input:focus { border-color: rgba(0, 180, 216, 0.5); box-shadow: 0 0 10px rgba(0, 180, 216, 0.1); }
.search-input::placeholder { color: #484f58; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8b949e; pointer-events: none; }

/* Tooltip */
.info-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.info-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8b949e;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.info-btn:hover {
    background: rgba(0, 180, 216, 0.08);
    border-color: rgba(0, 180, 216, 0.4);
    color: #00b4d8;
}

.info-tooltip {
    position: absolute;
    bottom: 48px;
    right: 0;
    width: 220px;
    background: #161b22;
    border: 1px solid rgba(0, 180, 216, 0.3);
    color: #c9d1d9;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.info-tooltip.show { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.info-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 14px;
    width: 10px;
    height: 10px;
    background: #161b22;
    border-right: 1px solid rgba(0, 180, 216, 0.3);
    border-bottom: 1px solid rgba(0, 180, 216, 0.3);
    transform: rotate(45deg);
}

/* Konteynerler */
.server-list-container, .buy-page-container {
    display: none;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
    max-height: 340px;
    margin-top: 4px;
}

.wiki-page-container,
.wiki-content-container {
    display: none;
    flex-direction: column;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-right: 0;
    max-height: none;
    margin-top: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wiki-page-container::-webkit-scrollbar,
.wiki-content-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.wiki-page-container.wiki-reveal-open,
.wiki-content-container.wiki-reveal-open {
    animation: wikiPanelSlowReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wikiPanelSlowReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* WIKI KART TASARIMI */
.wiki-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(11, 15, 25, 0.6) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: clamp(12px, 3.5cqi, 16px);
    min-width: 0;
    box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.05), 0 4px 12px rgba(0,0,0,0.3);
    animation: wikiCardSlowIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    position: relative;
    overflow: hidden;
}

.wiki-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.wiki-card-header {
    display: flex;
    align-items: center;
    gap: clamp(6px, 2cqi, 10px);
    color: #10b981;
    font-size: clamp(0.9rem, 5cqi, 1.1rem);
    font-weight: 600;
    min-width: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    padding-bottom: 6px;
}

.wiki-card-body {
    font-size: clamp(0.78rem, 3.8cqi, 0.92rem);
    line-height: 1.5;
    color: #d1d5db;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes wikiCardSlowIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.server-list-container::-webkit-scrollbar, .buy-page-container::-webkit-scrollbar { width: 4px; }
.server-list-container::-webkit-scrollbar-thumb, .buy-page-container::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

/* Server Satır Yapısı */
.server-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #c9d1d9;
    text-decoration: none;
    transition: all 0.2s ease;
    animation: fadeIn 0.3s ease forwards;
    cursor: pointer;
}
.server-entry:hover { 
    background: rgba(0, 180, 216, 0.05); 
    border-color: rgba(0, 180, 216, 0.5); 
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.15);
    color: #00b4d8; 
    padding-left: 18px; 
}
.server-left-content { display: flex; align-items: center; gap: 12px; }
.server-favicon { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; flex-shrink: 0; }
.server-fallback-icon { width: 18px; height: 18px; color: #8b949e; flex-shrink: 0; }
.server-entry:hover .server-fallback-icon { color: #00b4d8; }
.server-link-icon { color: #484f58; transition: all 0.2s ease; flex-shrink: 0; display: flex; align-items: center; }
.server-entry:hover .server-link-icon { color: #00b4d8; transform: translate(2px, -2px); }

.status-msg { font-size: 0.9rem; color: #8b949e; text-align: center; padding: 10px; font-style: italic; }

/* Panel daraldıkça wiki içeriği ölçeklenir */
@container nav-panel (max-width: 320px) {
    .category-item {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .wiki-sub-item {
        font-size: 0.86rem;
        padding: 9px 11px;
        padding-left: 14px;
    }

    .wiki-card-header {
        font-size: 0.98rem;
    }

    .wiki-card-body {
        font-size: 0.84rem;
    }

    .panel-title {
        font-size: 1.1rem;
    }

    .panel-stats-row {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

@container nav-panel (max-width: 280px) {
    .category-item {
        font-size: 0.84rem;
        padding: 8px 10px;
        gap: 8px;
    }

    .wiki-sub-item {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .wiki-card {
        padding: 10px;
    }

    .wiki-card-header {
        font-size: 0.9rem;
    }

    .wiki-card-body {
        font-size: 0.78rem;
    }

    .global-back-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

@media (max-width: 1200px) {
    .main-wrapper {
        max-width: 100vw;
        padding: 0 10px;
    }

    .main-wrapper.farm-layout {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 260px;
    }

    .main-wrapper.farm-layout .navigation-panel {
        transform: none;
    }
}

@media (max-width: 900px) {
    .panel-title {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }

    .panel-version {
        font-size: 0.7rem;
    }

    .status-badge {
        font-size: 0.68rem;
        padding: 3px 8px;
    }
}

@media (max-height: 720px) {
    .navigation-panel {
        max-height: 92vh;
        gap: 6px;
    }

    .category-item,
    .wiki-sub-item {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .wiki-page-container,
    .wiki-content-container {
        gap: 6px;
    }
}

.initial-hidden { display: none !important; }
.hidden { display: none !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* =========================================
   BUY ALT MENÜ BUTONLARI SOL ÇİZGİLERİ
   ========================================= */

/* Ortak alt çizgi yapısı */
.buy-sub-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    border-radius: 8px 0 0 8px;
    background: #f59e0b; /* Buy teması rengi (Turuncu) */
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    transition: width 0.2s ease, box-shadow 0.2s ease;
}

/* Üzerine gelindiğinde (Hover) çizginin kalınlaşması ve parlaması */
.buy-sub-item:hover::before {
    width: 4px;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.95);
}



/* =========================================
   AYAR BUTONU VE BALONU (DARK/LIGHT MODE)
   ========================================= */

   .version-settings-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Çark butonu sağ üst konumlandırma */
.settings-btn {
    background: none;
    border: none;
    color: #484f58;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -6px;
    right: -16px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.settings-btn:hover {
    color: #00b4d8;
    transform: rotate(45deg); /* Üzerine gelince tatlıca döner */
}

/* Açılır Balon Stili */
/* Sağ üst köşeden, panelin içine (aşağı ve sola) doğru açılan kutu */
.settings-bubble {
    position: absolute;
    top: 38px;            /* Ayar ikonunun tam altına hizalar */
    right: 0;             /* Sağ köşeyi ikona yaslar, böylece sola doğru uzayarak panelin içinde kalır */
    transform: scale(0.95);
    transform-origin: top right; /* Animasyonun sağ üstten (ikondan) başlayarak büyümesini sağlar */
    
    /* 1. KESİN ÇÖZÜM: TRANSPARANLIĞI VE BLUR'U TAMAMEN KALDIRIP %100 KATI RENK VERİYORUZ */
    background: #0b0f19;  /* Projenin ana koyu rengi (Arkasını sızdırması imkansızdır) */
    
    border: 1px solid rgba(0, 180, 216, 0.45); /* Hatalı 225 değeri yerine standart 0.45 yapıldı */
    border-radius: 8px;
    padding: 10px 14px;
    
    /* 2. DERİNLİK HİSSİ: Arkası katı olduğu için kutunun panelle birleşmemesi adına gölgeyi güçlendiriyoruz */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95), 0 0 15px rgba(0, 180, 216, 0.15);
    
    /* 3. KATMAN ÖNCELİĞİ: Paneldeki diğer elemanların (border parlamaları vb.) kesinlikle üstünde kalması için */
    z-index: 9999;        
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    min-width: 145px;
    
    /* İçeriklerin alt alta düzgün hizalanması için gerekli flex yapıları */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Kutu görünür olduğunda aktifleşen stil */
.settings-bubble.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* LIGHT MODE (AÇIK TEMA) İÇİN DE TAMAMEN KATI ARKA PLAN */
body.light-mode .settings-bubble {
    background: #ffffff;  /* %100 katı beyaz */
    border-color: rgba(0, 180, 216, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}






body.light-mode .settings-btn {
    color: #57606a;
}
body.light-mode .settings-btn:hover {
    color: #0077b6;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.78rem;
    color: #c9d1d9;
    white-space: nowrap;
    font-weight: 500;
}

/* iOS Tarzı Şık Switch Toggle Yapısı */
.switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #21262d;
    transition: .25s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #8b949e;
    transition: .25s;
}

/* Switch Aktifken (On) */
input:checked + .slider {
    background-color: rgba(0, 180, 216, 0.2);
    border-color: rgba(0, 180, 216, 0.6);
}

input:checked + .slider:before {
    transform: translateX(14px);
    background-color: #00b4d8;
    box-shadow: 0 0 6px rgba(0, 180, 216, 0.8);
}

.slider.round {
    border-radius: 18px;
}

.slider.round:before {
    border-radius: 50%;
}

/* -----------------------------------------
   LIGHT MODE (AÇIK TEMA) RENK DEĞİŞİMLERİ 
   ----------------------------------------- */
body.light-mode {
    background-color: #f6f8fa;
    color: #24292f;
}
body.light-mode .navigation-panel {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 180, 216, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 0 15px rgba(0, 180, 216, 0.1);
}
body.light-mode .panel-title {
    background: linear-gradient(135deg, #24292f 30%, #0077b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-mode .panel-version {
    color: #57606a;
}
body.light-mode .panel-stats-row {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
    color: #57606a;
}
body.light-mode .category-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.12);
    color: #24292f;
}
body.light-mode .buy-sub-item {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.1);
    color: #24292f;
}
body.light-mode .settings-bubble {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 180, 216, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
body.light-mode .settings-item {
    color: #24292f;
}
body.light-mode .slider {
    background-color: #d0d7de;
    border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .slider:before {
    background-color: #ffffff;
}




/* =========================================
   AYARLAR BALONU DİL SEÇENEKLERİ STİLLERİ
   ========================================= */

/* Ayarlar kutusunun alt alta elementleri düzgün sıralaması için flex ekledik */
.settings-bubble {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Ayırıcı Çizgi */
.settings-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2px 0;
}

/* Dil Seçim Kutusu (Select) Stili */
.settings-select {
    background: #161b22;
    color: #c9d1d9;
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.settings-select:hover, .settings-select:focus {
    border-color: #00b4d8;
}

/* -----------------------------------------
   LIGHT MODE (AÇIK TEMA) UYUMLULUĞU
   ----------------------------------------- */
body.light-mode .settings-divider {
    background: rgba(0, 0, 0, 0.08);
}

body.light-mode .settings-select {
    background: #ffffff;
    color: #24292f;
    border-color: rgba(0, 120, 180, 0.2);
}

body.light-mode .settings-select:hover {
    border-color: #0077b6;
}

/* Discord ikon sarmalayıcısına, logolarla aynı sağ boşluğu tanımlıyoruz */
.discord-main-btn .icon-wrapper {
    margin-right: 8px; /* Eğer logolardaki boşluk farklıysa burayı 8px veya 10px gibi ayarlayabilirsin */
    display: inline-flex; /* İkonun dikeyde hizalı kalması için */
    align-items: center;
}







/* 2. Ön panelin ve videoların kabloların üstüne çıkması için */
.farm-preview-panel {
    display: flex;
    align-items: center;
    justify-content: center; /* İçerikleri merkeze toplar */
    flex-shrink: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    gap: 40px;               /* Sol pano ile videolar arasındaki boşluğu daralttık */
    position: relative;
    z-index: 10;             /* Canvas'ın (z-index: 1) kesinlikle üstünde olmasını sağladık */
    padding: 20px;
    box-sizing: border-box;
    transform: translateX(24px);
    transition: width 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 1200px;

}


/* 3. Soldaki bilgilendirme kısmını sağa (videolara doğru) yanaştırmak için */
.farm-info-cluster {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 0;         /* Gereksiz sol boşluğu sıfırlayarak sağa yanaşmasını kolaylaştırıyoruz */
    width: 320px;            /* Sol panelin sabit genişliği */
    min-width: 320px;        /* Daralırken ezilmemesi için */
    z-index: 12;
}







/* Ekran küçüldüğünde dikey düzende aradaki boşluğu kapatıyoruz */
@media (max-width: 992px) {
    .main-wrapper.farm-layout {
        flex-direction: column !important;
        justify-content: center !important;
        gap: 10px !important; /* Panel ile videolar arasındaki ana boşluğu minimuma indirdik */
    }

    .main-wrapper.farm-layout .navigation-panel {
        transform: translateY(0) !important; /* Dikeyde ekstra gereksiz kaymayı sıfırladık */
        margin-bottom: 0 !important;
    }

    .farm-preview-panel {
        gap: 15px !important; /* Videoların kendi arasındaki boşluğu daralttık */
        padding: 10px !important; /* Dış dolguyu küçülterek alanı sıkıştırdık */
        transform: translateY(0) !important; /* Yukarı-aşağı yönlü kayma açıklarını kapattık */
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .main-wrapper.farm-layout {
        gap: 5px !important; /* Daha da küçük ekranlarda boşluğu iyice sıfıra yaklaştırıyoruz */
    }
}



/* Sol Alt Köşe Sayacı */
.daily-counter {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 9999; /* Her şeyin üzerinde görünmesi için */
    background: rgba(11, 15, 25, 0.75);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    pointer-events: none; /* Tıklamayı engeller, arkadaki ögelere engel olmaz */
    letter-spacing: 0.5px;
}

/* Durum göstergesi gibi minik yeşil/mavi nokta */
.counter-dot {
    width: 6px;
    height: 6px;
    background-color: #00f2fe; /* Temanıza uygun cyan rengi */
    border-radius: 50%;
    box-shadow: 0 0 8px #00f2fe;
}

#visitorCount {
    color: #00f2fe;
    font-weight: bold;
}