
:root {
    --primary-color: #111216;
    --secondary-color: #64748b;
    --background-color: #111216;
    --text-color: #e2e8f0;
    --text-primary: #e2e8f0;
    --dark-color: #111216;
    --light-color: #f1f5f9;
    
    --border-color: #334155;
    --card-bg: #1a1a1f;
    --accent-color: #06b6d4;
    
    --gradient-start: #111216;
    --gradient-end: #1a1a1f;
    
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-shadow-color: rgba(0, 0, 0, 0.4);
    
    --success-color: #10b981;
    --error-color: #dc2626;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --server-card-bg: #1e1e1e;
    --server-card-border: #333;
    --server-card-hover-border: #ff4444;
    --server-online-color: #28a745;
    --server-offline-color: #dc3545;
    --server-player-color: #ff4444;
    --server-progress-bg: rgba(255, 255, 255, 0.1);
    --server-progress-bar: linear-gradient(90deg, #ff4444, #ff6666);
    
    --btn-primary-bg: #ff4444;
    --btn-primary-hover: #ff3333;
    --btn-success-bg: linear-gradient(135deg, #28a745, #20c997);
    --btn-discord-bg: linear-gradient(45deg, #5865f2, #7289da);
    --btn-discord-hover: linear-gradient(45deg, #7289da, #5865f2);
    --btn-store-bg: linear-gradient(45deg, #dc2626, #ef4444);
    --btn-store-hover: linear-gradient(45deg, #ef4444, #dc2626);
    
    --rules-general-color: #ff4444;
    --rules-gameplay-color: #00ff88;
    --rules-discord-color: #5865f2;
    --rules-punishment-color: #ffaa00;
    
    --discord-primary: #5865f2;
    --discord-secondary: #7289da;
    
    --rust-accent: #dc2626;
    --rust-accent-hover: #ef4444;
    
    --social-bg: var(--card-bg);
    --social-border: var(--border-color);
    --social-hover-bg: linear-gradient(135deg, var(--card-bg) 0%, rgba(6, 182, 212, 0.1) 100%);
    --social-hover-border: var(--accent-color);
}

.lb-main { background: #111216; }

.lb-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.lb-hero { padding: 32px 0 12px 0; }
.lb-title { margin: 0; font-size: 28px; font-weight: 700; color: #e5e7eb; }
.lb-sub { margin: 4px 0 0 0; color: #9ca3af; }

.lb-controls { padding: 8px 0 0 0; }
.lb-toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }

.lb-search input,
.lb-selects select { background: #111216; color: #e5e7eb; border: 1px solid #232531; padding: 10px 12px; outline: none; border-radius: 0; }
.lb-search input { width: 100%; }

.lb-selects { display: flex; gap: 8px; }

.lb-toggle { display: inline-flex; border: 1px solid #232531; border-radius: 0; }
.lb-switch { background: #111216; color: #e5e7eb; padding: 10px 14px; border: none; border-right: 1px solid #232531; border-radius: 0; cursor: pointer; }
.lb-switch:last-child { border-right: none; }
.lb-switch.active { background: #232531; }

.lb-list { padding: 16px 0 32px 0; }
.lb-cards { display: grid; grid-template-columns: 1fr; gap: 2px; }

.lb-head,
.lb-card { background: #111216; border: 1px solid #232531; border-radius: 0; display: grid; grid-template-columns: 72px 1fr repeat(8, minmax(72px, 104px)); align-items: center; color: #e5e7eb; }
.lb-head { color: #9ca3af; }

.lb-cell { padding: 12px 14px; }
.lb-stat { text-align: center; }
.lb-rankwrap { display: flex; align-items: center; gap: 10px; }
.lb-rank { color: #9ca3af; }
.lb-name { color: #e5e7eb; }
.lb-avatar { width: 34px; height: 34px; }
.lb-name.link-plain { color: #e5e7eb; text-decoration: none; padding: 0; background: none; border: 0; border-radius: 0; }
.lb-name.link-plain:hover { color: #cbd5e1; text-decoration: underline; }

.lb-pagination { list-style: none; padding: 0; margin: 16px 0 0 0; display: flex; gap: 6px; justify-content: center; }
.lb-pagination .page-item a { color: #e5e7eb; text-decoration: none; padding: 8px 12px; border: 1px solid #232531; background: #111216; display: inline-block; }
.lb-pagination .page-item.active a { background: #232531; }

.lb-skeleton-row { display: grid; grid-template-columns: 72px 1fr repeat(8, minmax(72px, 104px)); gap: 0; }
.lb-skeleton-row .lb-cell { padding: 12px 14px; }
.lb-skel-box { height: 12px; width: 100%; background: linear-gradient(90deg, #14151a 25%, #1a1b21 37%, #14151a 63%); background-size: 400% 100%; animation: lb-shimmer 1.2s ease-in-out infinite; }
@keyframes lb-shimmer { 0% { background-position: 0% 0; } 100% { background-position: -135% 0; } }

.lb-modal { background: #111216; color: #e5e7eb; border: 1px solid #232531; border-radius: 0; }
.lb-modal .modal-header { border-bottom: 1px solid #232531; }
.lb-modal .modal-title { color: #e5e7eb; }
.lb-modal .stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lb-modal .stat-card { border: 1px solid #232531; background: #111216; padding: 12px; }
.lb-modal .stat-label { color: #9ca3af; font-size: 12px; letter-spacing: .04em; }
.lb-modal .stat-value { color: #e5e7eb; font-weight: 600; font-size: 16px; }
@media (max-width: 768px) {
    .lb-modal .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    .lb-head, .lb-card { grid-template-columns: 56px 1fr repeat(5, minmax(60px, 1fr)); }
}

@media (max-width: 640px) {
    .lb-toolbar { grid-template-columns: 1fr; }
    .lb-selects { width: 100%; }
    .lb-selects select { flex: 1; }
    /* Keep only Rank, Name, K, D, KDR on phones */
    .lb-head, .lb-card { grid-template-columns: 56px 1fr repeat(3, minmax(56px, 1fr)); }
    .lb-head .lb-cell:nth-child(n+6),
    .lb-card .lb-cell:nth-child(n+6) { display: none; }
    .lb-cell { padding: 10px 10px; }
    .lb-name { font-size: 0.95rem; }
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-color);
    min-height: 100vh;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

main {
    min-height: calc(100vh - 200px);
}

.display-4 {
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lead {
    color: var(--secondary-color);
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card {
    border: none;
    background-color: var(--card-bg);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px var(--hover-shadow-color);
    border-color: var(--accent-color);
}

.card-title {
    color: var(--text-color);
    font-weight: 600;
}

.card-text {
    color: var(--secondary-color);
}

.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--hover-shadow-color);
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: white;
}

footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--gradient-end) 0%, var(--gradient-start) 100%);
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

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

.card {
    animation: fadeInUp 0.6s ease-out;
}

.list-group-item {
    border: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.list-group-item:last-child {
    border-bottom: none;
}

.text-muted {
    color: var(--secondary-color) !important;
}

.navbar {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%) !important;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-color);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-color);
}

.hero-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: 0 16px 40px var(--hover-shadow-color), 0 0 20px rgba(99, 102, 241, 0.2);
}

.btn:hover {
    box-shadow: 0 8px 20px var(--hover-shadow-color), 0 0 15px rgba(6, 182, 212, 0.3);
}

.navbar .discord-btn {
    background: var(--btn-discord-bg);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.navbar .discord-btn:hover {
    background: var(--btn-discord-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    color: white;
    text-decoration: none;
}

.navbar .discord-btn .discord-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.navbar .discord-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.3rem;
}

@media (max-width: 768px) {
    .navbar .discord-btn {
        margin: 0.5rem 0;
        justify-content: center;
        width: 100%;
    }
}

.hero-image-container {
    margin: 2rem 0;
}

.hero-placeholder {
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--hover-shadow-color);
}

.navbar-brand svg {
    transition: transform 0.3s ease;
}

.navbar-brand:hover svg {
    transform: scale(1.05);
}

.hero-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.hero-content {
    padding: 3rem 0;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section {
    background: linear-gradient(135deg, rgba(17, 18, 22, 0.9) 0%, rgba(26, 26, 31, 0.9) 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(6, 182, 212, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.rust-accent {
    color: var(--rust-accent);
    text-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
    position: relative;
}

.rust-accent::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rust-accent), var(--rust-accent-hover));
    border-radius: 2px;
    opacity: 0.8;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-discord {
    background: var(--btn-discord-bg);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    font-size: 1rem;
}

.btn-discord:hover {
    background: var(--btn-discord-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
    color: white;
    text-decoration: none;
}

.btn-store {
    background: var(--btn-store-bg);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    font-size: 1rem;
}

.btn-store:hover {
    background: var(--btn-store-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    color: white;
    text-decoration: none;
}

.discord-icon, .store-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.store-icon {
    stroke: currentColor;
    fill: none;
}

.discord-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.online-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    
    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);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    color: var(--accent-color);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-arrow:hover {
    color: var(--text-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.about-section {
    background: var(--background-color);
    padding: 8rem 0 5rem 0;
    margin-top: 9rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.3s ease;
    height: 100%;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px var(--hover-shadow-color);
    border-color: var(--accent-color);
}

.about-icon {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.about-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.about-card-text {
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
}

.stats-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--hover-shadow-color);
    border-color: var(--accent-color);
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(6, 182, 212, 0.3);
}

.stats-label {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
}

.faq-section {
    background: var(--background-color);
    padding: 5rem 0;
}

.accordion {
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.accordion-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.accordion-button {
    background: var(--card-bg);
    color: var(--text-color);
    border: none;
    padding: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--accent-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(6, 182, 212, 0.25);
    border-color: var(--accent-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2306b6d4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2306b6d4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    background: var(--card-bg);
    color: var(--secondary-color);
    padding: 2rem;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
}

.accordion-button:hover {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(6, 182, 212, 0.05) 100%);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }
    
    .accordion-button {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-discord, .btn-store {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

.footer-section {
    background: linear-gradient(135deg, var(--gradient-end) 0%, var(--gradient-start) 100%);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0 1rem 0;
    margin-top: 0rem;
}

.footer-title {
    color: var(--accent-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: var(--secondary-color);
    line-height: 1.4;
    margin: 0;
    font-size: 0.9rem;
}

.footer-heading {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    background: var(--social-bg);
    border: 1px solid var(--social-border);
}

.social-link:hover {
    color: var(--accent-color);
    background: var(--social-hover-bg);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
    border-color: var(--social-hover-border);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-text {
    font-weight: 500;
}

.no-socials {
    color: var(--secondary-color);
    font-style: italic;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.footer-copyright {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 1.5rem 0 1rem 0;
        margin-top: 2rem;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 576px) {
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
}

.server-card {
    background: var(--server-card-bg);
    border: 1px solid var(--server-card-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--server-card-hover-border);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background-color: var(--server-online-color);
}

.status-dot.offline {
    background-color: var(--server-offline-color);
}

.status-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ccc;
}

.server-title {
    margin-bottom: 1rem;
}

.server-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.server-description {
    font-size: 0.875rem;
    color: #ccc;
    line-height: 1.3;
    font-weight: 400;
}

.server-info {
    margin-bottom: 1.5rem;
}

.server-details {
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #999;
    font-size: 0.875rem;
}

.detail-value {
    color: #fff;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.player-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.player-count {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    gap: 0.25rem;
}

.player-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--server-player-color);
}

.player-separator {
    font-size: 1.25rem;
    color: #ccc;
    font-weight: 500;
}

.player-max {
    font-size: 1.25rem;
    color: #ccc;
    font-weight: 500;
}

.player-label {
    font-size: 0.875rem;
    color: #ccc;
    margin-left: 0.5rem;
}

.progress-container {
    width: 100%;
}

.progress {
    height: 8px;
    background-color: var(--server-progress-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: var(--server-progress-bar);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.server-actions {
    display: flex;
    justify-content: center;
}

.btn-connect {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--btn-primary-bg);
    border: none;
    color: white;
}

.btn-connect:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
    background: var(--btn-primary-hover);
}

.btn-connect:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666;
}

.btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.btn-success {
    background: var(--btn-success-bg) !important;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.rules-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.rules-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.rules-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.rules-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rules-icon svg {
    width: 32px;
    height: 32px;
}

.rules-card:nth-child(1) .rules-icon svg {
    fill: var(--rules-general-color); 
}

.rules-card:nth-child(2) .rules-icon svg {
    fill: var(--rules-gameplay-color); 
}

.rules-card:nth-child(3) .rules-icon svg {
    fill: var(--rules-discord-color); 
}

.rules-card:nth-child(4) .rules-icon svg {
    fill: var(--rules-punishment-color); 
}

.rules-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.rules-content {
    padding-left: 0.5rem;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rule-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rule-bullet {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.rule-text {
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .server-card {
        padding: 1rem;
    }
    
    .server-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .server-name {
        font-size: 1.125rem;
    }
    
    .player-number {
        font-size: 1.25rem;
    }
    
    .player-max {
        font-size: 1rem;
    }
    
    .rules-card {
        padding: 1rem;
    }
    
    .rules-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .rules-icon {
        width: 40px;
        height: 40px;
    }
    
    .rules-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .rules-title {
        font-size: 1.25rem;
    }
}
