.language-switcher-modern { justify-self: end; }
.lang-select-modern {
    background: linear-gradient(180deg, rgba(20,20,30,0.8), rgba(15,15,24,0.8));
    color: #fff;
    border: 1px solid rgba(167,139,90,0.35);
    border-radius: 10px;
    padding: 8px 12px;
    outline: none;
}

/* Grid tweaks for mobile header layout */
@media (max-width: 768px) {
  .nav-container {
    grid-template-columns: auto auto 1fr; /* logo | toggle | language */
  }
  .mobile-menu-toggle { justify-self: start; }
  .language-switcher-modern { justify-self: end; }
}
/* Modern UI Styles for Lineage2.ICU */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure hamburger never appears on desktop */
@media (min-width: 769px) {
  .mobile-menu-toggle { display: none !important; }
}

.hero-slide.slide-1 {
    background-image: url('/images/hero-bg-1.jpg');
}

.hero-slide.slide-2 {
    background-image: url('/images/hero-bg-2.jpg');
}

.hero-slide.slide-3 {
    background-image: url('/images/hero-bg-3.jpg');
}

body {
    font-family: 'Lineage2Font', 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Hero Section with Slider */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(26,26,46,0.5) 50%, rgba(22,33,62,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Lineage2Font', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: glow 2s ease-in-out infinite alternate;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-modern {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

/* Enhanced Navigation */
.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-modern.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Overlay for mobile navigation */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999; /* just beneath navbar (1000) */
    pointer-events: none; /* do not block when hidden */
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* clickable only when active */
}

/* Prevent body scroll when mobile menu opened */
body.scroll-locked {
    overflow: hidden;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto; /* logo | centered menu | language */
    align-items: center;
    column-gap: 20px;
    padding: 0 20px;
}

.nav-logo {
    font-family: 'Lineage2Font', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b6b;
    text-decoration: none;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    text-shadow: 0 0 25px rgba(255, 107, 107, 0.8);
    transform: scale(1.05);
}

/* Small navbar utility buttons */
.ui-sound-toggle,
.music-toggle {
    display:inline-flex; align-items:center; justify-content:center;
    width: 36px; height: 28px; border-radius: 8px;
    border:1px solid rgba(167,139,90,0.35);
    background: rgba(0,0,0,0.25);
    color:#fff; font-size:16px; line-height:1; cursor:pointer;
    transition: all .2s ease; margin-right: 6px;
}
.ui-sound-toggle:hover, .music-toggle:hover { filter: brightness(1.15); transform: translateY(-1px); }
.ui-sound-toggle.muted, .music-toggle.muted { border-color: rgba(255,107,107,0.55); box-shadow: 0 0 10px rgba(255,107,107,0.25); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0px;
    justify-content: center;
    justify-self: center; /* center in grid column */
}

.nav-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    letter-spacing: 0.4px;
}

.nav-item a:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

.nav-item a.active {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.4);
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.7);
}


/* Enhanced Server Status Section */
.servers-section {
    padding: 120px 0;
    background: transparent; /* remove any overlay background */
    position: relative;
    overflow: hidden;
}

.servers-section::before { display: none; }

.servers-section .container {
    position: relative;
    z-index: 1;
}

/* Server Statistics */
.servers-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.total-online, .servers-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    width: 240px;
    height: 180px;
    background:
        linear-gradient(180deg, rgba(18,18,30,0.82) 0%, rgba(25,25,40,0.76) 100%),
        radial-gradient(120% 100% at 50% 0%, rgba(255,215,160,0.08) 0%, rgba(255,215,160,0) 60%);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167,139,90,0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.total-online::after, .servers-count::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: radial-gradient(60% 40% at 50% 0%, rgba(255,184,108,0.12), transparent 60%);
    pointer-events: none;
}

.total-online::before, .servers-count::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,107,107,0.1), rgba(78,205,196,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.total-online:hover::before, .servers-count:hover::before {
    opacity: 1;
}

.total-online:hover, .servers-count:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255,107,107,0.3);
}

.total-online i, .servers-count i {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(255,184,108,0.25), rgba(255,184,108,0.05) 70%);
    border: 1px solid rgba(255,184,108,0.35);
    box-shadow: 0 0 20px rgba(255,184,108,0.3);
    color: #ffb86c;
    font-size: 1.6rem;
}

.total-online .count, .servers-count .count {
    font-family: 'Lineage2Font', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #4ecdc4;
    text-shadow: 0 0 22px rgba(78,205,196,0.55);
    animation: countPulse 3s ease-in-out infinite;
    line-height: 1;
}

.total-online .label, .servers-count .label {
    font-size: 0.95rem;
    color: #d6d6d6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Site analytics compact widget */
.site-analytics-widget { margin: 20px auto 10px; width: 100%; display: flex; justify-content: center; }
.site-analytics { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; align-items:center; }
.site-analytics .metric { display:flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid rgba(167,139,90,0.3); border-radius:12px; background: rgba(0,0,0,0.35); color:#f2f2f2; white-space: nowrap; }
.site-analytics .metric i { color:#e5c650; }
.site-analytics .metric .value { font-weight:800; color:#ffb86c; }
.footer-analytics { display:flex; gap:14px; align-items:center; justify-content:center; margin-top: 10px; opacity:.9; }
.footer-analytics span { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid rgba(167,139,90,0.25); border-radius:10px; background: rgba(0,0,0,0.25); color:#eaeaea; font-size: 13px; }
.footer-analytics i { color:#e5c650; }
.footer-analytics strong { color:#ffb86c; font-weight:800; }
@media (max-width: 768px) {
  .site-analytics { gap:10px; }
  .site-analytics .metric { padding:8px 10px; font-size: 14px; }
}

.news-card.news-detail {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
}

.news-card.news-detail .news-title {
    font-size: 2.4rem;
    line-height: 1.2;
    display: block;
    -webkit-line-clamp: initial;
    line-clamp: initial;
    min-height: 0;
    margin-bottom: 16px;
}

@media (min-width: 1200px) {
  .news-card.news-detail .news-title {
    font-size: 2.8rem;
  }
}

.news-card.news-detail .news-date {
    font-size: 1rem;
    margin-bottom: 20px;
}

.news-card.news-detail .news-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    display: block;
    -webkit-line-clamp: initial;
    line-clamp: initial;
    overflow: visible;
}

.news-nav { display:flex; gap:12px; margin-top: 20px; align-items:center; flex-wrap: wrap; }

.news-side { display:flex; flex-direction:column; gap:12px; position: sticky; top: 100px; align-self: start; }
.news-side-title { font-weight: 800; color:#ffb86c; letter-spacing:.6px; text-transform: uppercase; margin: 4px 0; }
.news-side-item { display:grid; grid-template-columns: 72px 1fr; align-items:center; gap:10px; padding:8px; border:1px solid rgba(167,139,90,0.25); border-radius:12px; background: rgba(0,0,0,0.25); color:#eaeaea; text-decoration:none; transition: all .2s ease; }
.news-side-item:visited { color:#eaeaea; }
.news-side-item:hover { filter: brightness(1.05); transform: translateY(-1px); border-color: rgba(229,198,80,0.6); }
.news-side-item img, .news-side-thumb { width:72px; height:48px; object-fit:cover; border-radius:8px; display:block; background: rgba(255,255,255,0.08); }
.news-side-text { font-size: .95rem; font-weight:700; color:#fff; }
.news-side-date { font-size: .8rem; color:#aaa; }

@media (max-width: 1024px) {
  .news-detail-layout { grid-template-columns: 1fr; }
  .news-side { position: static; }
}

@media (max-width: 768px) {
  .news-detail-layout {
    padding-left: 10px;
    padding-right: 10px;
    gap: 15px;
    display: block !important;
  }
  
  .news-card.news-detail {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  
  .news-card.news-detail .news-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  .news-card.news-detail .news-content {
    padding: 15px 0;
  }
  
  .news-card.news-detail .news-date {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .news-card.news-detail .news-excerpt {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .news-media--fluid {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .news-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 25px;
  }
  
  .news-nav .btn-modern {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .news-side {
    margin-top: 20px;
    position: static;
  }
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* News detail layout (single article view) */
.news-detail-layout {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
    gap: 40px;
    align-items: start;
}

/* Wider content on very large screens */
@media (min-width: 1600px) {
  .news-detail-layout {
    max-width: 1600px;
    grid-template-columns: minmax(0, 4fr) minmax(320px, 1fr);
    gap: 50px;
  }
}

.servers-grid {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    justify-content: center;
    width: auto;
}

/* Precise centering depending on server count */
.servers-grid.count-1 {
    display: grid;
    grid-template-columns: minmax(320px, 560px);
    justify-content: center;
}
.servers-grid.count-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 560px));
    justify-content: center;
}

.server-card.enhanced {
    background:
        linear-gradient(180deg, rgba(14,14,20,0.9) 0%, rgba(20,20,30,0.82) 100%),
        radial-gradient(120% 100% at 0% 0%, rgba(167,139,90,0.08), transparent 60%);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167,139,90,0.25);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 40px rgba(78,205,196,0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Flex width for nice centering and multi-column layout */
    flex: 1 1 520px;
    max-width: 560px;
    min-width: 360px;
}

.server-card.enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(167,139,90,0), rgba(167,139,90,0.65), rgba(167,139,90,0));
    opacity: 0.9;
}

/* Online Server Effects */
.server-card.enhanced[data-status="online"] {
    animation: serverOnlinePulse 4s ease-in-out infinite;
    border-color: rgba(78,205,196,0.4);
    box-shadow: 0 0 30px rgba(78,205,196,0.2), inset 0 0 30px rgba(78,205,196,0.05);
}

.server-card.enhanced[data-status="online"]:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 30px 80px rgba(78,205,196,0.4), 0 0 50px rgba(78,205,196,0.3), inset 0 0 50px rgba(78,205,196,0.1);
    border-color: rgba(78,205,196,0.8);
}

/* Offline Server Effects */
.server-card.enhanced[data-status="offline"] {
    animation: serverOfflinePulse 6s ease-in-out infinite;
    border-color: rgba(255,107,107,0.3);
    box-shadow: 0 0 20px rgba(255,107,107,0.1), inset 0 0 20px rgba(255,107,107,0.03);
    filter: grayscale(0.3) brightness(0.8);
}

.server-card.enhanced[data-status="offline"]:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255,107,107,0.3), 0 0 30px rgba(255,107,107,0.2);
    border-color: rgba(255,107,107,0.6);
    filter: grayscale(0.1) brightness(0.9);
}

.server-card.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.server-card.enhanced[data-status="online"]::before {
    background: radial-gradient(circle at 30% 30%, rgba(78,205,196,0.15) 0%, rgba(78,205,196,0.05) 50%, transparent 100%);
    animation: onlineShimmer 8s ease-in-out infinite;
}

.server-card.enhanced[data-status="offline"]::before {
    background: radial-gradient(circle at 70% 70%, rgba(255,107,107,0.1) 0%, rgba(255,107,107,0.03) 50%, transparent 100%);
    animation: offlineFlicker 10s ease-in-out infinite;
}

.server-card.enhanced:hover::before {
    opacity: 1;
}

.server-card.enhanced:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 60px rgba(255,107,107,0.4), 0 0 40px rgba(78,205,196,0.3);
    border-color: rgba(255,107,107,0.6);
}

.server-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.server-card.enhanced[data-status="online"] .server-glow {
    background: radial-gradient(circle, rgba(78,205,196,0.15) 0%, rgba(78,205,196,0.05) 40%, transparent 70%);
    animation: onlineGlowRotate 15s linear infinite;
}

.server-card.enhanced[data-status="offline"] .server-glow {
    background: radial-gradient(circle, rgba(255,107,107,0.08) 0%, rgba(255,107,107,0.02) 40%, transparent 70%);
    animation: offlineGlowRotate 20s linear infinite;
}

.server-card.enhanced:hover .server-glow {
    opacity: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Server Card Header */
.server-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.server-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-card.enhanced[data-status="online"] .server-icon {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    box-shadow: 0 5px 20px rgba(78,205,196,0.5), 0 0 30px rgba(78,205,196,0.3);
    animation: iconOnlinePulse 3s ease-in-out infinite;
}

.server-card.enhanced[data-status="offline"] .server-icon {
    background: linear-gradient(45deg, #ff6b6b, #ff8c00);
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
    animation: iconOfflineDim 4s ease-in-out infinite;
}

.server-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.server-card.enhanced:hover .server-icon::before {
    left: 100%;
}

.server-icon i {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.server-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.server-status-badge.online {
    background: linear-gradient(45deg, rgba(78,205,196,0.25), rgba(78,205,196,0.1));
    color: #66fff3;
    border: 1px solid rgba(78,205,196,0.5);
    box-shadow: 0 0 18px rgba(78,205,196,0.35), inset 0 0 10px rgba(78,205,196,0.15);
    animation: onlineBadgeGlow 2s ease-in-out infinite alternate;
}

.server-status-badge.offline {
    background: linear-gradient(45deg, rgba(255,107,107,0.2), rgba(255,107,107,0.08));
    color: #ff8b8b;
    border: 1px solid rgba(255,107,107,0.45);
    box-shadow: 0 0 16px rgba(255,107,107,0.25);
    animation: offlineBadgeFlicker 3s ease-in-out infinite;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.server-status-badge.online .status-dot {
    background: #4ecdc4;
    box-shadow: 0 0 15px rgba(78,205,196,0.8), 0 0 30px rgba(78,205,196,0.4);
    animation: onlineDotPulse 1.5s ease-in-out infinite;
}

.server-status-badge.online .status-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(78,205,196,0.3);
    animation: onlineDotRipple 2s ease-out infinite;
}

.server-status-badge.offline .status-dot {
    background: #ff6b6b;
    box-shadow: 0 0 10px rgba(255,107,107,0.6);
    animation: offlineDotFlicker 2.5s ease-in-out infinite;
}

.server-status-badge.offline .status-dot::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255,107,107,0.2);
    animation: offlineDotFade 3s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Server Stats */
.server-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(15,15,24,0.55);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255,107,107,0.1);
    border-color: rgba(255,107,107,0.3);
    transform: translateY(-2px);
}

.stat-item i {
    font-size: 1.2rem;
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(255,107,107,0.5);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Lineage2Font', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78,205,196,0.5);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Server Info */
.server-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #ccc;
}

.info-item i {
    color: #ff6b6b;
    width: 16px;
}

/* Server Actions */
.server-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.btn-server-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-server-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-server-action:hover::before {
    left: 100%;
}

.btn-server-action.primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8c00);
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.btn-server-action.primary:hover {
    background: linear-gradient(45deg, #ff7b7b, #ffac20);
    box-shadow: 0 6px 20px rgba(255,107,107,0.6);
    transform: translateY(-2px);
}

.btn-server-action.secondary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(78,205,196,0.4);
}

.btn-server-action.secondary:hover {
    background: linear-gradient(45deg, #5eddd4, #54b09d);
    box-shadow: 0 6px 20px rgba(78,205,196,0.6);
    transform: translateY(-2px);
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,107,107,0.1), rgba(78,205,196,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.server-card:hover::before {
    opacity: 1;
}

.server-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255,107,107,0.4), 0 0 30px rgba(78,205,196,0.3);
    border-color: rgba(255,107,107,0.5);
}

.server-name {
    font-family: 'Lineage2Font', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffb86c, #ffe3a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 18px rgba(167,139,90,0.35);
    letter-spacing: 1px;
}

.server-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-online {
    color: #4ecdc4;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(78,205,196,0.6);
    animation: statusGlow 2s ease-in-out infinite alternate;
}

.status-offline {
    color: #ff6b6b;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255,107,107,0.6);
    animation: statusGlow 2s ease-in-out infinite alternate;
}

.online-count {
    font-family: 'Lineage2Font', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #45b7d1;
    text-shadow: 0 0 10px rgba(69,183,209,0.5);
    animation: countPulse 3s ease-in-out infinite;
}

/* News Section */
.news-section {
    padding: 100px 0;
}

/* Page layout helpers for content pages (login/register/download) */
.content-wrapper { flex: 1 0 auto; padding-top: 100px; padding-bottom: 40px; }
.footer-modern { margin-top: auto; }

/* Form styling safety (in case style_updates.css misses something) */
.form-section { max-width: 560px; margin: 0 auto; }
.user-form .form-group { margin-bottom: 16px; }
.user-form .input-group { position: relative; display: flex; align-items: center; }
.user-form .input-group .input-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-right: none; border-radius: 10px 0 0 10px; }
.user-form .input-group .form-control { flex: 1; height: 38px; padding: 8px 12px; border-radius: 0 10px 10px 0; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.25); color: #fff; }

.news-section .news-container {
    max-width: 1140px; /* equals 3*360 + 2*30 gap */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
    display: block !important;            /* keep normal block flow */
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Detail page wrapper must not be flex (legacy style_updates.css sets .news-container to flex) */
.news-container--detail { display: block !important; }
@media (max-width: 768px) {
  .news-container--detail { 
    padding: 0 10px;
    margin-top: 80px;
  }
}

/* Make news detail section transparent and roomy, even if legacy CSS adds bg */
.news-container--detail .news-section {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 92px !important;
    padding: 40px 0 !important;
}
@media (max-width: 768px) {
  .news-container--detail .news-section { 
    padding: 15px 0 !important;
    margin: 0 !important;
  }
  .news-side { 
    margin-top: 15px;
    gap: 8px;
  }
  .news-side-item {
    padding: 6px;
    grid-template-columns: 60px 1fr;
    gap: 8px;
  }
  .news-side-item img, .news-side-thumb {
    width: 60px;
    height: 40px;
  }
  .news-side-text {
    font-size: 0.85rem;
  }
  .news-side-date {
    font-size: 0.75rem;
  }
}

.news-grid {
    display: inline-flex !important;     /* shrink-wrap to content */
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center !important;  /* center row items */
    width: auto !important;              /* let inline-flex size to content */
    max-width: 1140px;                   /* cap at 3 columns */
    margin-left: auto !important;
    margin-right: auto !important;       /* center grid block */
}

/* No fixed grid columns needed — flex wraps automatically to 3/2/1 columns based on width */

.news-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 522px; /* fixed card height */
    min-height: 420px;
    width: 360px !important; /* fixed card width */
    flex: 0 0 360px !important;           /* lock width as flex-basis */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.news-image {
    position: relative;
    width: 100%;
    height: 220px; /* align with .news-media height */
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}
.news-image img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}

/* New media wrapper: fixed height in cards so image/video scales to fit */
.news-media {
    position: relative;
    width: 100%;
    height: 220px !important; /* default desktop height, enforce */
    min-height: 220px !important;
    max-height: 220px !important;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    overflow: hidden;
}

.news-card .news-media {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    flex: 0 0 220px; /* lock media height in the flex layout */
}

.news-media img,
.news-media video,
.news-media iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* always fill: upscale small, downscale big */
    object-position: center !important;
    display: block !important;
}

.news-media iframe {
    border: 0;
}

/* Prevent accidental pause on click in cards */
.news-media video,
.news-media iframe {
    pointer-events: none;
}

/* Fluid variant for detail page (keeps 16:9 ratio, full width) */
.news-media--fluid {
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
}
.news-media--fluid img,
.news-media--fluid video,
.news-media--fluid iframe {
    position: static;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .news-grid { width: 100% !important; max-width: 100%; justify-content: center !important; }
    .news-media { height: 180px !important; }
    .news-card { height: auto !important; min-height: 0 !important; width: 100% !important; flex: 1 1 100% !important; }
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2; /* standard property for compatibility */
    min-height: 3.2em; /* reserve space for 2 lines to stabilize card height */
}

.news-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-excerpt {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* limit lines to keep equal card height */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3; /* standard property for compatibility */
}

.read-more {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto; /* push to bottom within flex content */
}

.read-more:hover {
    color: #ff6b6b;
}

/* News placeholders */
.news-placeholder {
    grid-column: 1/-1;
    text-align: center;
    color: #cccccc;
    padding: 60px 20px;
    opacity: 0.9;
}

.news-placeholder.error {
    color: #ff6b6b;
}

.news-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.6;
}

.news-placeholder-text {
    font-size: 1.1rem;
}

/* Utility */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; /* added line */
    border: 0;
    padding: 0;
    margin: -1px;
}

/* Spacing utilities */
.spacer-md { margin-top: 28px; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255,107,107,0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(78,205,196,0.8);
    }
}

/* Mobile menu dropdown animation */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes serverPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255,255,255,0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255,107,107,0.2), 0 0 40px rgba(78,205,196,0.1);
    }
}

@keyframes statusGlow {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.3);
    }
}

@keyframes countPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Enhanced Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(45deg, rgba(255,107,107,0.2), rgba(255,140,0,0.2));
    color: #ffffff;
    border: 2px solid rgba(255,107,107,0.4);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.mobile-menu-toggle:hover {
    background: linear-gradient(45deg, rgba(255,107,107,0.3), rgba(255,140,0,0.3));
    border-color: rgba(255,107,107,0.6);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        background: linear-gradient(135deg, rgba(10,10,10,0.98) 0%, rgba(26,26,46,0.98) 100%);
        padding: 20px;
        border-top: 2px solid rgba(255,107,107,0.3);
        backdrop-filter: blur(20px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-item a {
        padding: 4px 20px;
        margin: 5px 0;
        border-radius: 15px;
        text-align: center;
        font-size: 1.1rem;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
    }

    .nav-item a:hover {
        background: rgba(255,107,107,0.2);
        border-color: rgba(255,107,107,0.5);
        transform: translateX(10px);
    }
    
    .servers-stats {
        gap: 30px;
        margin-bottom: 40px;
    }

    .total-online, .servers-count {
        padding: 25px;
        min-width: 150px;
    }

    .servers-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .server-card.enhanced {
        min-height: 350px;
        padding: 25px;
    }

    .server-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .server-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .nav-logo {
        font-size: 1.6rem;
    }
}

/* Advanced Server Status Animations */
@keyframes serverOnlinePulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(78,205,196,0.2), inset 0 0 30px rgba(78,205,196,0.05);
        border-color: rgba(78,205,196,0.4);
    }
    50% {
        box-shadow: 0 0 50px rgba(78,205,196,0.4), inset 0 0 50px rgba(78,205,196,0.1);
        border-color: rgba(78,205,196,0.6);
    }
}

@keyframes serverOfflinePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255,107,107,0.1), inset 0 0 20px rgba(255,107,107,0.03);
        border-color: rgba(255,107,107,0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255,107,107,0.2), inset 0 0 30px rgba(255,107,107,0.05);
        border-color: rgba(255,107,107,0.4);
    }
}

@keyframes onlineShimmer {
    0%, 100% { opacity: 0.3; transform: translateX(-20px) translateY(-20px); }
    50% { opacity: 0.7; transform: translateX(20px) translateY(20px); }
}

@keyframes offlineFlicker {
    0%, 90%, 100% { opacity: 0.1; }
    5%, 85% { opacity: 0.3; }
    10%, 80% { opacity: 0.1; }
    15%, 75% { opacity: 0.2; }
}

@keyframes onlineGlowRotate {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
}

@keyframes offlineGlowRotate {
    from { transform: rotate(0deg) scale(0.8); }
    to { transform: rotate(360deg) scale(0.8); }
}

@keyframes iconOnlinePulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(78,205,196,0.5), 0 0 30px rgba(78,205,196,0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(78,205,196,0.7), 0 0 50px rgba(78,205,196,0.5);
        transform: scale(1.05);
    }
}

@keyframes iconOfflineDim {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.98); }
}

@keyframes onlineBadgeGlow {
    from {
        box-shadow: 0 0 15px rgba(78,205,196,0.3), inset 0 0 15px rgba(78,205,196,0.1);
        text-shadow: 0 0 10px rgba(78,205,196,0.5);
    }
    to {
        box-shadow: 0 0 25px rgba(78,205,196,0.5), inset 0 0 25px rgba(78,205,196,0.2);
        text-shadow: 0 0 20px rgba(78,205,196,0.8);
    }
}

@keyframes offlineBadgeFlicker {
    0%, 95%, 100% { opacity: 1; }
    96%, 98% { opacity: 0.7; }
    97% { opacity: 0.9; }
}

@keyframes onlineDotPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(78,205,196,0.8), 0 0 30px rgba(78,205,196,0.4);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 25px rgba(78,205,196,1), 0 0 50px rgba(78,205,196,0.6);
    }
}

@keyframes onlineDotRipple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes offlineDotFlicker {
    0%, 90%, 100% { opacity: 1; }
    5%, 85% { opacity: 0.3; }
    10%, 80% { opacity: 1; }
    15%, 75% { opacity: 0.5; }
}

@keyframes offlineDotFade {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: particle-float 20s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Language Switcher Modern */
.language-switcher-modern {
    position: relative;
    display: inline-block;
}

.lang-select-modern {
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,107,107,0.05));
    color: #ffffff;
    border: 2px solid rgba(255,107,107,0.3);
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.lang-select-modern:hover {
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,107,107,0.1));
    border-color: rgba(255,107,107,0.5);
    box-shadow: 0 5px 15px rgba(255,107,107,0.2);
    transform: translateY(-2px);
}

.lang-select-modern:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255,107,107,0.4);
}

/* Language flags (desktop) */
.language-switcher-modern {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-flags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}

.lang-flag:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(255,107,107,0.5);
    box-shadow: 0 12px 30px rgba(255,107,107,0.25);
}

.lang-flag.active {
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78,205,196,0.4), inset 0 0 10px rgba(78,205,196,0.2);
}

/* Hide dropdown on desktop, show flags */
.lang-select-form { display: none; }

/* On mobile, show dropdown and hide flags */
@media (max-width: 991px) {
    .lang-flags { display: none; }
    .lang-select-form { display: block; }
}

/* Footer Modern */
.footer-modern {
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(26,26,46,0.9) 100%);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4ecdc4;
}

.footer-copyright {
    color: #888888;
    font-size: 0.9rem;
}

/* =====================
   Slide-out Chat Widget
   ===================== */
.slide-chat {
  position: fixed;
  top: 90px; /* below navbar */
  /* bottom: 20px;  disabled per request */
  width: 90%;
  height: calc(100vh - 100px); /* a bit taller than before */
  max-width: 92vw;
  background:
    linear-gradient(180deg, rgba(14,14,20,0.96) 0%, rgba(18,18,28,0.94) 100%),
    radial-gradient(140% 120% at 0% 0%, rgba(167,139,90,0.08), transparent 60%);
  border: 1px solid rgba(167,139,90,0.35);
  border-right: none;
  border-left: none;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 30px rgba(78,205,196,0.15);
  z-index: 1200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform .3s ease-in-out;
}

.slide-chat.right { right: 0; border-radius: 12px 0 0 12px; transform: translateX(110%); }
.slide-chat.left  { left: 0;  border-radius: 0 12px 12px 0; transform: translateX(-110%); }
.slide-chat.open  { transform: translateX(0) !important; }

.slide-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; gap: 8px;
  background: linear-gradient(180deg, rgba(20,20,30,0.9), rgba(15,15,24,0.9));
  border-bottom: 1px solid rgba(167,139,90,0.3);
}
.slide-chat-header .title { font-weight: 800; letter-spacing: .6px; color: #ffb86c; }
.slide-chat-header .actions { display: flex; gap: 6px; }
.slide-chat-header .actions .btn-close,
.slide-chat-header .actions .btn-side {
  display:inline-flex; align-items:center; justify-content:center;
  width: 28px; height: 28px; border-radius: 8px;
  border:1px solid rgba(167,139,90,0.35);
  background: rgba(0,0,0,0.25); color:#fff; cursor:pointer;
  transition: all .2s ease; font-size: 14px;
}
.slide-chat-header .actions .btn-close:hover,
.slide-chat-header .actions .btn-side:hover { filter: brightness(1.15); transform: translateY(-1px); }

.slide-chat-inner { display: flex; flex-direction: column; height: 100%; }
.slide-chat-frame { flex: 1; width: 100%; border: 0; background: #0b0f17; }

.slide-chat-toggle {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 42px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(167,139,90,0.35);
  background: linear-gradient(180deg, rgba(20,20,30,0.9), rgba(15,15,24,0.9));
  color: #fff; border-radius: 12px 0 0 12px; cursor: pointer;
  z-index: 1201; box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.slide-chat-toggle.right { right: 0; border-radius: 12px 0 0 12px; border-right: none; }
.slide-chat-toggle.left  { left: 0;  border-radius: 0 12px 12px 0;  border-left: none; }
.slide-chat-toggle .ico { filter: drop-shadow(0 0 6px rgba(78,205,196,0.5)); }
.slide-chat-toggle:hover { filter: brightness(1.1); transform: translateY(-50%) scale(1.02); }

@media (max-width: 768px) {
  .slide-chat { top: 80px; height: calc(100vh - 90px); width: min(96vw, 420px); }
  .slide-chat-toggle { top: auto; bottom: 24px; transform: none; }
  .slide-chat-toggle.right { right: 8px; }
  .slide-chat-toggle.left  { left: 8px; }
}
