/* Responsive Design — Neftaria
 * İki çalışma modu:
 *   <html.view-mode-desktop> → masaüstü (varsayılan, 1280px+ tasarım)
 *   <html.view-mode-mobile>  → mobil layout (drawer sidebar, full-screen modal, dokunmatik butonlar)
 *
 * Mobil class'ı KULLANICI seçimine bağlıdır (lobby'de checkbox) — sadece ekran genişliğine değil.
 */

:root {
    --mobile: 480px;
    --tablet: 768px;
    --desktop: 1024px;
    --wide: 1440px;
}

/* ===== ORTAK ===== */
img { max-width: 100%; height: auto; display: block; }

.carousel-card img { width: 100%; height: 100%; object-fit: cover; }
.gh-res-icon, .gh-currency-icon { max-width: 100%; height: auto; }

/* ============================================================
   MOBİL GÖRÜNÜM — Travian-tarzı düzen
   Header: sadece kaynaklar + progress bar (logo yok)
   Hero: sol üst (header altında)
   Battle panel: sağ üst (header altında, otomatik)
   İnşaat: alt bar (nav bar üstünde)
   ============================================================ */

/* ── Temel layout ── */
.view-mode-mobile body.game-mode {
    overflow: hidden !important;
    height: 100dvh !important; height: 100vh !important;
}
.view-mode-mobile .game-wrapper {
    position: fixed !important; inset: 0 !important; overflow: hidden !important;
}
.view-mode-mobile #scale-container,
.view-mode-mobile .scale-container {
    transform: none !important; margin: 0 !important;
    width: 100vw !important; height: 100dvh !important; height: 100vh !important;
    position: relative !important;
    overflow: visible !important;
    transition: none !important;
}

/* ── KÖY ALANI ── */
.view-mode-mobile .gm {
    position: absolute !important; inset: 0 !important;
    overflow: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    /* background-attachment: local → arka plan içerikle birlikte kayar */
    background-attachment: local !important;
    background-size: 1920px auto !important;
    background-position: 0 0 !important;
}
.view-mode-mobile .gm-canvas {
    width: 1920px !important; min-height: 1080px !important;
    height: auto !important; padding-top: 0 !important; padding-bottom: 0 !important;
    pointer-events: none !important;
}

/* ── HEADER: sadece kaynaklar, logo yok ── */
.view-mode-mobile header.gh-marble-strip {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 46px !important;
    background: rgba(14, 9, 4, 0.97) !important;
    border-bottom: 1px solid rgba(160,120,60,0.35) !important;
    border-image: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    display: flex !important; align-items: center !important;
    padding: 0 6px !important; gap: 4px !important;
    z-index: 13000 !important; overflow: visible !important; flex-wrap: nowrap !important;
}
.view-mode-mobile header.gh-marble-strip::before,
.view-mode-mobile header.gh-marble-strip::after { display: none !important; }

/* Logo bölümü gizle */
.view-mode-mobile .gh-section-l { display: none !important; }
/* Resource banner opacity override — GameEngine geç yüklenirse gizli kalır */
.view-mode-mobile #gh-resource-banner { opacity: 1 !important; }

/* Kaynaklar: tam genişlik, progress bar görünür */
.view-mode-mobile .gh-section-c {
    flex: 1 !important; min-width: 0 !important;
    overflow-x: auto !important; overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    display: flex !important; align-items: center !important;
}
.view-mode-mobile .gh-section-c::-webkit-scrollbar { display: none; }
.view-mode-mobile .gh-resource-banner {
    min-width: unset !important; height: 40px !important;
    background: none !important; border: none !important; box-shadow: none !important;
    gap: 0 !important; padding: 0 !important; display: flex !important; align-items: stretch !important;
}
.view-mode-mobile .gh-res-group {
    display: flex !important; align-items: stretch !important; gap: 0 !important;
    background: none !important; border-image: none !important; box-shadow: none !important; padding: 0 !important;
}
/* Depo kapasitesi, silo, neft deposu gizle */
.view-mode-mobile [data-tooltip-bottom="Depo Kapasitesi"],
.view-mode-mobile [data-tooltip-bottom="Silo Kapasitesi"],
.view-mode-mobile [data-tooltip-bottom="Neft Deposu Kapasitesi"] { display: none !important; }
/* Her kaynak: ikon+miktar / progress bar dikey */
.view-mode-mobile .gh-res-item {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important;
    gap: 2px !important; padding: 0 5px !important; min-width: unset !important;
}
.view-mode-mobile .gh-res-hourly { display: none !important; }
.view-mode-mobile .gh-res-row { display: flex !important; align-items: center !important; gap: 2px !important; }
.view-mode-mobile .gh-res-icon { width: 13px !important; height: 13px !important; }
.view-mode-mobile .gh-res-amount {
    font-size: 0.6rem !important; font-weight: 700 !important;
    color: #e8d5a3 !important; white-space: nowrap !important;
}
/* Progress bar: ince, görünür */
.view-mode-mobile .gh-res-bar {
    display: block !important;
    width: 36px !important; height: 3px !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 2px !important; overflow: hidden !important;
    flex-shrink: 0 !important;
}
.view-mode-mobile .gh-res-fill { height: 100% !important; border-radius: 2px !important; }
.view-mode-mobile .gh-separator {
    width: 1px !important; min-width: 1px !important;
    background: rgba(139,115,85,0.2) !important; height: 28px !important; margin: auto 1px !important;
}
.view-mode-mobile .gh-thin-sep { width: 1px !important; min-width: 1px !important; }

/* Sağ: altın + burger */
.view-mode-mobile .gh-section-r {
    flex-shrink: 0 !important; display: flex !important; align-items: center !important; gap: 5px !important;
}
.view-mode-mobile .gh-section-r .gh-action-group-frame {
    background: none !important; border: none !important; padding: 0 !important; box-shadow: none !important;
    display: flex !important; align-items: center !important; gap: 5px !important;
}
.view-mode-mobile .gh-currency-item { display: flex !important; align-items: center !important; gap: 2px !important; }
.view-mode-mobile .gh-currency-icon { width: 14px !important; height: 14px !important; }
.view-mode-mobile .gh-currency-value { font-size: 0.68rem !important; font-weight: 700 !important; color: #dfc084 !important; }
.view-mode-mobile .gh-actions { display: none !important; }

/* Burger butonu */
.view-mode-mobile .gh-mobile-burger {
    width: 32px !important; height: 32px !important; flex-shrink: 0 !important;
    background: rgba(139,115,85,0.2) !important;
    border: 1px solid rgba(139,115,85,0.3) !important;
    border-radius: 5px !important; color: #dfc084 !important; font-size: 0.95rem !important;
    display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important;
}
.view-mode-desktop .gh-mobile-burger { display: none !important; }

/* Mobil action menüsü */
.view-mode-mobile .gh-mobile-menu {
    position: fixed !important; top: 44px !important; right: 0 !important;
    background: rgba(10,6,2,0.97) !important;
    border: 1px solid rgba(139,115,85,0.3) !important;
    border-top: none !important; border-radius: 0 0 0 8px !important;
    padding: 6px !important; display: flex !important; flex-direction: column !important; gap: 2px !important;
    z-index: 13001 !important; min-width: 140px !important;
    transform: translateX(110%) !important; transition: transform 0.2s ease !important;
}
.view-mode-mobile .gh-mobile-menu.menu-open { transform: translateX(0) !important; }
.view-mode-mobile .gh-mob-action {
    display: flex !important; align-items: center !important; gap: 8px !important;
    padding: 8px 10px !important; border-radius: 4px !important;
    color: #d4c4a8 !important; font-size: 0.78rem !important; font-weight: 600 !important;
    background: transparent !important; border: none !important; cursor: pointer !important;
    text-decoration: none !important; white-space: nowrap !important;
}
.view-mode-mobile .gh-mob-action img { width: 20px !important; height: 20px !important; }
.view-mode-desktop .gh-mobile-menu { display: none !important; }

/* ── HERO MADALYON: sol üst, header altında ── */
.view-mode-mobile .gh-hero-medallion {
    position: fixed !important;
    top: 48px !important; left: 8px !important;
    bottom: auto !important; right: auto !important;
    width: 54px !important; height: 54px !important;
    z-index: 11300 !important; cursor: pointer !important;
}

/* ── BATTLE PANEL: sağ üst, header altında ── */
.view-mode-mobile #battle-panel,
.view-mode-mobile .battle-panel {
    position: fixed !important;
    top: 48px !important; right: 8px !important;
    left: auto !important; bottom: auto !important;
    width: auto !important; max-width: calc(100vw - 90px) !important;
    z-index: 11500 !important;
    border-radius: 6px !important;
    transform: none !important;
}
.view-mode-mobile .battle-panel-content {
    gap: 3px !important; padding: 5px 8px !important;
}
.view-mode-mobile .battle-item {
    padding: 3px 6px !important; font-size: 0.7rem !important; gap: 5px !important;
}
.view-mode-mobile .battle-arrival { font-size: 0.68rem !important; }

/* ── İNŞAAT PANELİ: köy bar + nav bar üstünde ── */
.view-mode-mobile .gn-construction-panel {
    position: fixed !important;
    bottom: 88px !important; /* 54px nav + 34px vbar */
    left: 0 !important; right: 0 !important; top: auto !important;
    width: 100% !important; box-sizing: border-box !important;
    transform: none !important;
    border-radius: 0 !important; border-image: none !important;
    z-index: 11800 !important;
}
.view-mode-mobile .gn-construction-panel.hidden {
    opacity: 0 !important; pointer-events: none !important;
    transform: translateY(8px) !important;
}
.view-mode-mobile .gn-cq-header {
    padding: 5px 10px !important; font-size: 0.7rem !important; border-radius: 0 !important;
}
.view-mode-mobile .gn-cq-complete-btn {
    padding: 3px 8px !important; font-size: 0.62rem !important; min-width: unset !important;
}
.view-mode-mobile .gn-cq-list { max-height: 72px !important; overflow-y: auto !important; }
.view-mode-mobile .gn-cq-row { padding: 3px 10px !important; }
.view-mode-mobile .gn-cq-name { font-size: 0.7rem !important; }
.view-mode-mobile .gn-cq-duration { font-size: 0.65rem !important; }

/* ── MOBİL KÖY NAVİGASYON BARI ── */
.gn-mobile-vbar {
    display: none; /* masaüstünde gizli */
}
.view-mode-mobile .gn-mobile-vbar {
    display: flex !important;
    position: fixed !important;
    bottom: 54px !important; left: 0 !important; right: 0 !important; top: auto !important;
    height: 34px !important; z-index: 11850 !important;
    background: rgba(20, 13, 5, 0.96) !important;
    border-top: 1px solid rgba(160,120,60,0.3) !important;
    border-image: none !important;
    align-items: center !important;
    flex-direction: row !important;
}
.gn-mvbar-arrow {
    width: 44px !important; height: 34px !important; flex-shrink: 0 !important;
    background: none !important; border: none !important; border-radius: 0 !important;
    color: rgba(200,160,80,0.9) !important; font-size: 0.9rem !important;
    cursor: pointer !important; display: flex !important;
    align-items: center !important; justify-content: center !important;
}
.gn-mvbar-center {
    flex: 1 !important; display: flex !important; align-items: center !important;
    justify-content: center !important; gap: 6px !important; cursor: pointer !important;
    min-width: 0 !important;
}
.gn-mvbar-name {
    font-size: 0.7rem !important; font-weight: 700 !important;
    color: #dfc084 !important; white-space: nowrap !important;
    overflow: hidden !important; text-overflow: ellipsis !important; max-width: 140px !important;
}
.gn-mvbar-coords {
    font-size: 0.6rem !important; color: rgba(180,140,70,0.7) !important; white-space: nowrap !important;
}

/* Sol drawer: köy listesi */
.gn-mobile-vlist-overlay {
    display: none;
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 14000;
}
.gn-mobile-vlist-overlay.open { display: block; }
.gn-mobile-vlist {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 260px; max-width: 80vw;
    background: rgba(18, 12, 5, 0.98);
    border-right: 1px solid rgba(160,120,60,0.4);
    z-index: 14001;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex; flex-direction: column;
}
.gn-mobile-vlist.open { transform: translateX(0); }
.gn-mobile-vlist-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    background: rgba(30, 20, 8, 0.95);
    border-bottom: 1px solid rgba(160,120,60,0.3);
    color: #dfc084; font-size: 0.85rem; font-weight: 700;
}
.gn-mobile-vlist-header button {
    background: none; border: none; color: #999; font-size: 1rem; cursor: pointer;
}
.gn-mobile-vlist-content { flex: 1; overflow-y: auto; padding: 8px 0; }
.gn-mobile-vlist-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; cursor: pointer;
    border-bottom: 1px solid rgba(160,120,60,0.1);
    transition: background 0.15s;
}
.gn-mobile-vlist-item:hover,
.gn-mobile-vlist-item.active { background: rgba(160,120,60,0.15); }
.gn-mobile-vlist-item.active .gn-mvli-name { color: #dfc084; }
.gn-mvli-name { font-size: 0.8rem; font-weight: 600; color: #c8a870; }
.gn-mvli-coords { font-size: 0.68rem; color: #777; }

/* ── BOTTOM NAV BAR — tema rengi ── */
.view-mode-mobile .gn-sidebar-frame {
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important; top: auto !important;
    width: 100% !important; height: 54px !important;
    flex-direction: row !important; justify-content: space-around !important; align-items: center !important;
    padding: 0 !important; gap: 0 !important;
    background: linear-gradient(to bottom, rgba(22,14,6,0.98), rgba(16,10,4,0.99)) !important;
    border-top: 1px solid rgba(160,120,60,0.4) !important; border-image: none !important;
    box-shadow: 0 -3px 16px rgba(0,0,0,0.8) !important;
    z-index: 12000 !important; transform: none !important;
    backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important;
}
.view-mode-mobile .gn-sidebar-frame .gn-nav-item {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important;
    flex: 1 !important; height: 54px !important;
    gap: 2px !important; min-width: 0 !important; cursor: pointer !important;
}
.view-mode-mobile .gn-sidebar-frame .gn-nav-circle {
    width: 28px !important; height: 28px !important;
    background: none !important; border: none !important; box-shadow: none !important;
}
.view-mode-mobile .gn-sidebar-frame .gn-nav-circle img { width: 26px !important; height: 26px !important; }
.view-mode-mobile .gn-sidebar-frame .gn-nav-label {
    display: block !important; position: static !important;
    font-size: 0.43rem !important; color: rgba(180,140,70,0.7) !important;
    white-space: nowrap !important; overflow: hidden !important;
    max-width: 44px !important; text-overflow: ellipsis !important; text-align: center !important;
    background: none !important; border: none !important; border-radius: 0 !important;
    padding: 0 !important; opacity: 1 !important; transform: none !important; transition: none !important;
}

/* ── KISAYOL DOCK ── */
.view-mode-mobile .gn-bottom-dock {
    position: fixed !important;
    bottom: 88px !important; /* nav + vbar */
    left: 0 !important; right: 0 !important; top: auto !important;
    width: 100% !important; box-sizing: border-box !important;
    transform: translateY(110%) !important; transition: transform 0.25s ease !important;
    z-index: 11900 !important;
    background: rgba(10,7,4,0.97) !important;
    border-top: 1px solid rgba(139,115,85,0.2) !important; border-image: none !important;
    padding: 12px 16px 10px !important;
}
.view-mode-mobile .gn-bottom-dock.dock-open { transform: translateY(0) !important; }
.view-mode-mobile .gn-dock-options-btn { display: none !important; }
.view-mode-mobile .gn-bottom-grid {
    grid-template-columns: repeat(auto-fill, 52px) !important;
    gap: 8px 10px !important; justify-content: flex-start !important;
}
.view-mode-mobile .gn-nav-circle.gn-circle-sm { width: 44px !important; height: 44px !important; }
.view-mode-mobile .gn-nav-circle.gn-circle-sm img { width: 34px !important; height: 34px !important; }
.view-mode-mobile .gn-nav-label-bottom {
    display: block !important; font-size: 0.5rem !important; color: #777 !important; text-align: center !important;
    border: none !important; background: none !important; position: static !important;
    opacity: 1 !important; transform: none !important; transition: none !important;
}

/* Sağ sidebar, toggle'lar gizle */
.view-mode-mobile .gn-sidebar-right { display: none !important; }
.view-mode-mobile .gn-drawer-toggle-left,
.view-mode-mobile .gn-drawer-toggle-right { display: none !important; }
.view-mode-desktop .gn-mobile-dock-btn { display: none !important; }
.view-mode-mobile .gn-mobile-dock-btn { display: flex !important; }

/* ── MODALLER ── */
.view-mode-mobile .messages-modal,
.view-mode-mobile .reports-modal,
.view-mode-mobile .alliance-modal,
.view-mode-mobile .statistics-modal,
.view-mode-mobile .gold-shop-modal,
.view-mode-mobile #profile-modal,
.view-mode-mobile #settings-modal,
.view-mode-mobile #hero-modal,
.view-mode-mobile .hero-modal {
    position: fixed !important; inset: 0 !important;
    transform: none !important; width: 100% !important; height: 100% !important;
    border-radius: 0 !important; z-index: 20000 !important;
}
.view-mode-mobile .reports-card,
.view-mode-mobile .messages-card,
.view-mode-mobile .stats-card,
.view-mode-mobile .alliance-card {
    width: 100% !important; height: 100% !important; border-radius: 0 !important;
}

/* ── Tablolar ── */
.view-mode-mobile .stats-table-container,
.view-mode-mobile .reports-list,
.view-mode-mobile .messages-list {
    overflow-x: auto !important; -webkit-overflow-scrolling: touch !important;
}
.view-mode-mobile table { font-size: 0.8rem; }

/* ── Toast ── */
.view-mode-mobile #toast-container {
    left: 10px !important; right: 10px !important;
    top: 48px !important; z-index: 25000 !important;
}

/* ── Harita: fullscreen ── */
.view-mode-mobile .g-center {
    position: fixed !important;
    top: 46px !important; left: 0 !important; right: 0 !important; bottom: 88px !important;
    transform: none !important; width: 100% !important; height: auto !important;
}
.view-mode-mobile .map-frame-wrapper {
    width: 100% !important; height: 100% !important;
    border-radius: 0 !important;
}
.view-mode-mobile .gvw-frame-pro {
    width: 100% !important; height: 100% !important;
    border-image: none !important; border-radius: 0 !important;
}
.view-mode-mobile #map-viewport,
.view-mode-mobile .map-viewport {
    width: 100% !important;
    height: calc(100% - 40px) !important; /* toolbar yüksekliği çıkarılır */
}
.view-mode-mobile #map-canvas {
    touch-action: none !important;
    width: 100% !important; height: 100% !important;
}
.view-mode-mobile .map-toolbar {
    flex-wrap: wrap !important; gap: 4px !important; padding: 4px 8px !important;
    font-size: 0.72rem !important;
}

/* Desktop'ta olan .gn-nav-village-box mobilde gizli — kendi mobile vbar var */
.view-mode-mobile .gn-nav-village-box { display: none !important; }
.view-mode-mobile .gn-village-dropdown { display: none !important; }
.view-mode-mobile .gn-yp-progress { display: none !important; }
.view-mode-mobile .gn-construction-panel { left: 0 !important; width: 100% !important; }

/* ── Lobby ── */
.view-mode-mobile .lobby-container,
.view-mode-mobile .lobby-wrapper {
    grid-template-columns: 1fr !important; padding: 0 8px !important;
}
.view-mode-mobile .panel { padding: 12px !important; }

/* ===== MASAÜSTÜ ===== */
.view-mode-desktop .gn-drawer-toggle-left,
.view-mode-desktop .gn-drawer-toggle-right { display: none; }

/* ============================================================
   PUBLIC SAYFALAR (index / haberler / takvim) — MOBİL
   Ekran genişliği ≤768px'de otomatik devreye girer.
   view-mode class'ından bağımsız — class sistemi sadece oyun içi.
   ============================================================ */
@media (max-width: 768px) {

    /* ── Ortak header ── */
    .main-header { height: 56px; padding: 0.4rem 0.8rem; }
    .main-header .header-center img { height: 36px !important; }
    .burger-btn { font-size: 1.6rem; margin-right: 0.5rem; min-height: 44px; min-width: 44px; padding: 0; }
    .header-right .btn { font-size: 0.72rem; padding: 4px 10px; height: 30px; min-height: 30px; white-space: nowrap; }
    .header-right { gap: 6px; }
    .sidebar, .sidebar-overlay { top: 56px; }
    .sidebar-overlay { height: calc(100% - 56px); }
    #userDropdown { top: 58px !important; right: 8px !important; }

    /* ── INDEX (hero) ── */
    .hero {
        height: auto;
        min-height: unset;
        overflow: visible;
        padding: 70px 12px 24px;
        background-attachment: scroll;
    }
    .tagline { font-size: 0.85rem; margin-bottom: 0.5rem; letter-spacing: 0.5px; }
    .carousel-wrapper { height: 230px; max-width: 100%; }
    .carousel-card { width: 140px; height: 210px; }
    .carousel-card.prev { transform: translateX(-85px) scale(0.78) translateZ(-50px) rotateY(15deg); }
    .carousel-card.next { transform: translateX(85px) scale(0.78) translateZ(-50px) rotateY(-15deg); }
    .carousel-btn { width: 40px; height: 40px; font-size: 1rem; }
    .race-desc-box { margin: 0.8rem auto; }
    .race-desc-box h2 { font-size: 1.3rem; letter-spacing: 1px; margin-bottom: 0.3rem; }
    .race-desc-box p { font-size: 0.8rem; line-height: 1.45; }

    .bottom-area { flex-direction: column; gap: 10px; margin-top: 0.8rem; }
    .play-box { order: -1; }
    .play-btn-large { font-size: 1.15rem; padding: 16px; letter-spacing: 1px; }
    .stat-box { padding: 0.8rem 1rem; }
    .stat-box h3 { font-size: 0.65rem; margin-bottom: 0.3rem; }
    .stat-box p { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

    /* ── index.ejs inline style override: kaydırma açık ── */
    html, html body { height: auto !important; overflow-x: hidden !important; overflow-y: auto !important; }

    /* ── Login/Register modalları ── */
    .modal-overlay { padding: 12px; align-items: flex-start; }
    .modal { padding: 1.4rem; margin-top: 24px; max-height: calc(100dvh - 48px); }
    .modal-header { margin-bottom: 1.2rem; }
    .input-group { margin-bottom: 1rem; }
    .input-group input, .input-group select { padding: 12px 14px; }

    /* ── Footer ── */
    footer { position: static !important; padding: 0.8rem 10px !important; }
    footer > div:first-child { flex-wrap: wrap !important; gap: 6px 10px !important; font-size: 0.68rem !important; line-height: 1.6; }

    /* ── HABERLER (announcements) ── */
    .anns-body { padding-top: 72px; background-attachment: scroll; }
    .anns-container { padding: 0 12px 24px; }
    .anns-header { margin-bottom: 20px; }
    .anns-title { font-size: 1.6rem; }
    .anns-subtitle { font-size: 0.85rem; }
    .anns-filters { gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
    .anns-filter-btn { padding: 8px 14px; font-size: 0.75rem; }
    .ann-list-card { padding: 14px; gap: 8px; }
    .ann-list-title { font-size: 1.05rem; }
    .ann-list-preview { font-size: 0.82rem; }
    .ann-list-date { font-size: 0.68rem; }
    .ann-list-footer { padding-top: 8px; }

    /* ── TAKVİM (calendar) ── */
    .cal-body { padding-top: 72px; background-attachment: scroll; }
    .cal-container { padding: 0 12px 24px; }
    .cal-header { margin-bottom: 20px; }
    .cal-title { font-size: 1.6rem; }
    .cal-subtitle { font-size: 0.85rem; }
    .calendar-table { min-width: 760px; }
    .calendar-table th { padding: 10px 12px; font-size: 0.7rem; }
    .calendar-table td { padding: 10px 12px; font-size: 0.78rem; }
    .server-name-txt { font-size: 0.9rem; }
    .btn-action { padding: 8px 12px; font-size: 0.7rem; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
    #server-info-modal > div { width: 100% !important; max-width: calc(100vw - 20px) !important; max-height: calc(100dvh - 30px); overflow-y: auto; }

}
