/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

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

/* Header Styles */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: #3b82f6;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #64748b;
}

.user-menu a {
    text-decoration: none;
    color: #64748b;
    margin: 0 10px;
    font-weight: 500;
}

.btn-primary {
    background-color: #3b82f6 !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 40px;
}

.search-box {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.search-box input, .search-box select {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
}

.select {
    background-color: #f1f5f9 !important;
    color: #475569;
    cursor: pointer;
}

.search-btn-primary {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn-primary:hover {
    background-color: #2563eb;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    text-align: center;
}

.features-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-card i {
    font-size: 48px;
    color: #3b82f6;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* Servers Section */
.servers-section {
    padding: 80px 20px;
    background-color: #f1f5f9;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.btn-secondary {
    text-decoration: none;
    color: #3b82f6;
    font-weight: 600;
}

.server-card {
    background-color: white;
    border-radius: 16px;
    margin-bottom: 30px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.server-thumbnail {
    position: relative;
    width: 35%;
}

.server-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.status-online {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #10b981;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-offline {
    background-color: #ef4444;
}

.server-info {
    padding: 30px;
    width: 65%;
}

.server-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.game-desc {
    color: #64748b;
    margin-bottom: 20px;
}

.server-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.tag-success {
    background-color: #d1fae5;
    color: #065f46;
}

.tag-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.player-count {
    color: #64748b;
}

.server-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #64748b;
}

.server-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: #3b82f6;
    color: white !important;
    border: none;
    flex: 1;
    justify-content: center;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #e2e8f0;
    color: #475569 !important;
}

.btn-disabled {
    background-color: #9ca3af !important;
    cursor: not-allowed;
}

/* Stats Section */
.stats-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    text-align: center;
}

.stats-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 20px;
    background-color: #f8fafc;
    text-align: center;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 30px auto 0;
    gap: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
}

/* Footer */
.site-footer {
    background-color: #1e293b;
    color: white;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-col p {
    opacity: 0.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col li a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: color 0.3s;
}

.footer-col li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #3b82f6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
}

.theme-toggle-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    opacity: 0;
}

/* Responsive cơ bản cho giao diện ở màn hình nhỏ */
@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
    }
    
    .main-nav ul {
        display: none;
        width: 100%;
        margin-top: 15px;
        background-color: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 24px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .server-card {
        flex-direction: column;
    }
    
    .server-thumbnail, .server-info {
        width: 100%;
    }
}

body {
    background: var(--page);
    color: var(--text);
    overflow-x: hidden;
}

body, .site-header, .feature-card, .server-card, .search-box,
.newsletter-section, .btn-outline, .main-nav ul {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.container {
    width: min(100% - 40px, 1160px);
    padding: 0;
}

.site-header {
    background: var(--surface);
    box-shadow: 0 1px 0 var(--line);
}

.site-header .container {
    min-height: 76px;
    gap: 24px;
    padding: 12px 0;
}

.logo {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 20px;
    letter-spacing: -0.04em;
}

.logo i {
    font-size: 24px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 22px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 9px;
    color: var(--muted);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--surface-muted);
    color: var(--primary);
}

.main-nav .user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav .user-menu a {
    margin: 0;
    white-space: nowrap;
}

.main-nav .user-menu .btn-primary,
.btn-primary {
    background: var(--primary) !important;
    color: #fff !important;
}

.header-actions {
    gap: 8px;
}

.header-actions .search-btn,
.nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
}

.nav-toggle {
    display: none;
}

.hero {
    padding: clamp(56px, 8vw, 100px) 20px;
    background:
        radial-gradient(ellipse at 12% 0%, rgba(166, 190, 255, 0.3), transparent 38%),
        linear-gradient(135deg, #f1f5ff 0%, #e8edff 100%);
    color: #182238;
}

.hero h1 {
    max-width: 820px;
    margin: 0 auto 18px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.subtitle {
    max-width: 720px;
    color: #53627d;
    font-size: clamp(16px, 2vw, 18px);
}

.search-box {
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(98, 119, 170, 0.15);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.search-box input,
.search-box select {
    min-width: 0;
    border-radius: 10px;
    color: var(--text);
}

.search-box select {
    background: var(--surface-muted);
}

.search-btn-primary {
    min-height: 48px;
    border-radius: 10px;
    background: var(--primary);
    white-space: nowrap;
}

.search-btn-primary:hover {
    background: var(--primary-dark);
}

.features-section,
.servers-section,
.stats-section,
.newsletter-section {
    padding: clamp(52px, 7vw, 84px) 20px;
}

.features-section h2,
.section-header h2,
.stats-section h2,
.newsletter-section h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    letter-spacing: -0.035em;
}

.features-section h2,
.stats-section h2 {
    margin-bottom: 36px;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 18px;
}

.feature-card {
    padding: 30px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: none;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-card i {
    color: var(--primary);
    font-size: 34px;
}

.feature-card h3 {
    font-size: 19px;
}

.feature-card p,
.game-desc,
.player-count,
.server-stats {
    color: var(--muted);
}

.servers-section {
    background: var(--surface-muted);
}

.section-header {
    margin-bottom: 26px;
}

.section-heading p {
    margin-top: 6px;
    color: var(--muted);
}

.btn-secondary {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--primary);
}

.server-card {
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: none;
}

.server-thumbnail {
    flex: 0 0 34%;
    min-width: 0;
    overflow: hidden;
}

.server-thumbnail img {
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.server-info {
    min-width: 0;
    padding: clamp(20px, 3vw, 30px);
}

.server-info h3 {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.35;
}

.server-info h3 a {
    color: var(--text);
    text-decoration: none;
}

.server-info h3 a:hover {
    color: var(--primary);
}

.server-meta,
.server-stats {
    flex-wrap: wrap;
    gap: 10px 18px;
}

.server-actions .btn {
    min-height: 44px;
}

.btn-outline {
    border-color: var(--line);
    color: var(--muted) !important;
}

.stats-section {
    background: linear-gradient(135deg, #344ec4 0%, #526feb 100%);
}

.stats-grid {
    gap: 16px;
}

.stat-item {
    padding: 20px 12px;
}

.stat-number,
.stat-label {
    display: block;
}

.stat-number {
    font-size: clamp(34px, 5vw, 48px);
    letter-spacing: -0.04em;
}

.newsletter-section {
    background: var(--page);
}

.newsletter-section p {
    color: var(--muted);
}

.newsletter-form input[type="email"],
.contact-form input,
.contact-form textarea {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.site-footer {
    padding: 52px 20px 24px;
}

.footer-grid {
    gap: 30px;
}

.footer-bottom {
    gap: 16px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid #475569;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.contact-form {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 12px;
}

/* Responsive cho thanh điều hướng và bố cục ở tablet */
@media (max-width: 1050px) {
    .site-header .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .main-nav {
        display: none;
        order: 3;
        flex-basis: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 12px 0 4px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav ul {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .main-nav a {
        width: 100%;
    }

    .main-nav .user-menu {
        padding: 8px 12px 0;
    }

    .header-actions {
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-grid;
    }
}

/* Responsive cho bố cục mobile */
@media (max-width: 640px) {
    .container {
        width: min(100% - 32px, 1160px);
    }

    .hero {
        padding-right: 16px;
        padding-left: 16px;
    }

    .search-box {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box input,
    .search-box select {
        min-height: 48px;
    }

    .search-btn-primary {
        padding: 0 18px;
    }

    .features-section,
    .servers-section,
    .stats-section,
    .newsletter-section {
        padding-right: 16px;
        padding-left: 16px;
    }

    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .section-header {
        align-items: flex-start;
        gap: 12px;
    }

    .section-heading {
        min-width: 0;
    }

    .section-header .btn-secondary {
        flex: 0 0 auto;
        margin-top: 4px;
    }

    .server-card {
        flex-direction: column;
    }

    .server-thumbnail,
    .server-info {
        width: 100%;
    }

    .server-thumbnail img {
        height: 190px;
        min-height: 0;
    }

    .server-meta,
    .server-stats {
        align-items: flex-start;
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-wrap: wrap;
    }
}

/* Tinh chỉnh thêm cho màn hình rất hẹp */
@media (max-width: 380px) {
    .logo {
        gap: 6px;
        font-size: 16px;
    }

    .logo i {
        font-size: 20px;
    }

    .header-actions .search-btn,
    .nav-toggle {
        width: 38px;
        height: 38px;
    }
}

:root {
    color-scheme: dark;
    --page: #11111d;
    --surface: #1a1a2a;
    --surface-muted: #151522;
    --text: #f3f2f8;
    --muted: #aaa9bb;
    --line: rgba(255, 255, 255, 0.1);
    --primary: #f037a5;
    --primary-dark: #d8218d;
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body {
    background:
        radial-gradient(ellipse at 82% 18%, rgba(84, 48, 119, 0.13), transparent 34%),
        var(--page);
    color: var(--text);
}

body.light-mode {
    color-scheme: light;
    --page: #f6f5fa;
    --surface: #ffffff;
    --surface-muted: #eeedf5;
    --text: #202033;
    --muted: #67677a;
    --line: rgba(30, 30, 50, 0.12);
    --primary: #cf2788;
    --primary-dark: #a71b6a;
    --shadow: 0 18px 42px rgba(35, 29, 62, 0.12);
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 16px rgba(18, 18, 38, 0.08);
}

.site-header .container {
    min-height: 82px;
}

.logo {
    color: #242337;
    font-weight: 800;
}

.logo i {
    color: #e72b9b;
}

.main-nav a {
    color: #55556b;
}

.main-nav a:hover,
.main-nav a.active {
    background: #f6eafa;
    color: #c81f84;
}

.main-nav .user-menu .btn-primary,
.btn-primary {
    background: linear-gradient(135deg, #ed369d, #bf35c4) !important;
}

.header-actions .search-btn,
.nav-toggle {
    border-color: #e7e5ef;
    background: #fff;
    color: #36354b;
}

/* Khu vực hero: phần giới thiệu nổi bật đầu trang */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 75% 30%, rgba(98, 53, 124, 0.24), transparent 38%),
        radial-gradient(ellipse at 15% 90%, rgba(36, 112, 142, 0.12), transparent 38%),
        #141321;
    color: #f6f4fb;
}

.hero::before,
.hero::after {
    position: absolute;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(195, 91, 187, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hero::before {
    top: 8%;
    left: -150px;
    box-shadow: 0 0 0 24px rgba(195, 91, 187, 0.025), 0 0 0 48px rgba(195, 91, 187, 0.02);
}

.hero::after {
    right: -155px;
    bottom: -155px;
    box-shadow: 0 0 0 24px rgba(90, 177, 201, 0.025), 0 0 0 48px rgba(90, 177, 201, 0.02);
}

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

.hero h1 {
    max-width: 900px;
    color: #fff;
    background: linear-gradient(90deg, #f18b68 0%, #d7b688 42%, #89c9a7 72%, #72c6d3 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #d1cfdd;
    opacity: 1;
}

.search-box {
    border-color: rgba(255, 255, 255, 0.13);
    background: #201f30;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.search-box input,
.search-box select {
    background: transparent;
    color: #f2f0f8;
}

.search-box input::placeholder {
    color: #aaa8b8;
}

.search-box select {
    background: #2a293b;
}

.search-box option {
    background: #201f30;
    color: #f2f0f8;
}

.search-btn-primary {
    background: linear-gradient(135deg, #ee349a, #a83ed0);
}

.search-btn-primary:hover {
    background: linear-gradient(135deg, #dc2389, #9033bd);
}

.features-section h2,
.section-header h2,
.stats-section h2,
.newsletter-section h2 {
    color: var(--text);
}

.features-section {
    background: var(--page);
}

.feature-card,
.server-card {
    border-color: var(--line);
    background: var(--surface);
}

.feature-card i {
    color: #e851b1;
}

.feature-card p,
.game-desc,
.player-count,
.server-stats,
.newsletter-section p {
    color: var(--muted);
}

.servers-section,
.newsletter-section {
    background: var(--surface-muted);
}

.btn-secondary {
    border-color: var(--line);
    color: #ed72c1;
}

.server-info h3 a {
    color: var(--text);
}

.tag-primary {
    background: rgba(105, 142, 255, 0.17);
    color: #a9bdff;
}

.tag-success {
    background: rgba(62, 190, 143, 0.16);
    color: #77dfb1;
}

.tag-warning {
    background: rgba(240, 178, 69, 0.16);
    color: #f5cb79;
}

.btn-outline {
    border-color: var(--line);
    color: var(--muted) !important;
}

.stats-section {
    background:
        radial-gradient(ellipse at 50% 120%, rgba(206, 44, 153, 0.2), transparent 48%),
        #171626;
}

.stat-number {
    color: #f29a70;
}

.newsletter-form input[type="email"],
.contact-form input,
.contact-form textarea {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

.site-footer {
    background: #0c0c15;
}

.theme-toggle {
    border-color: #55546a;
}

.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.header-actions .search-btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(234, 73, 176, 0.7);
    outline-offset: 3px;
}

/* 7daysBroad landing page */
:root {
    --broad-bg: #100e1b;
    --broad-panel: #191629;
    --broad-panel-light: #211d35;
    --broad-border: rgba(190, 179, 230, 0.14);
    --broad-text: #f7f5ff;
    --broad-muted: #b6b1c9;
    --broad-cyan: #62e5ed;
    --broad-pink: #f34bad;
    --broad-purple: #a56af2;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-width: 320px;
    overflow-x: clip;
    background: var(--broad-bg);
    color: var(--broad-text);
}

.container {
    width: min(100% - 40px, 1160px);
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 16px rgba(18, 18, 38, 0.1);
}

.site-header .container {
    min-height: 78px;
}

.logo {
    gap: 10px;
    color: #242337;
    letter-spacing: -0.035em;
}

.logo-image {
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text strong {
    font-size: 19px;
}

.logo-text small {
    margin-top: 4px;
    color: #77738b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.main-nav a {
    color: #55556b;
}

.main-nav a:hover,
.main-nav a.active {
    background: #f6eafa;
    color: #c81f84;
}

.nav-toggle {
    border-color: #e7e5ef;
    background: #fff;
    color: #36354b;
}

.hero {
    position: relative;
    display: flex;
    min-height: 610px;
    align-items: center;
    overflow: hidden;
    padding: clamp(72px, 9vw, 112px) 20px;
    background:
        radial-gradient(ellipse at 78% 42%, rgba(119, 62, 177, 0.28), transparent 38%),
        radial-gradient(ellipse at 12% 100%, rgba(45, 193, 209, 0.12), transparent 35%),
        linear-gradient(125deg, #12101f 10%, #1a1430 58%, #171326 100%);
    color: var(--broad-text);
    text-align: left;
}

.hero .container.hero-content {
    display: grid;
    width: min(100%, 1160px);
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.hero-content,
.hero-visual {
    min-width: 0;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--broad-cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero h1 {
    max-width: 700px;
    margin: 0 0 20px;
    background: none;
    color: var(--broad-text);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.08;
    -webkit-text-fill-color: currentColor;
}

.title-highlight {
    display: inline-block;
    background: linear-gradient(90deg, var(--broad-cyan), #c383fc 52%, var(--broad-pink));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    max-width: 560px;
    margin: 0 0 28px;
    color: #d1ccdf;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.75;
}

.gradient-text {
    color: var(--broad-cyan);
    font-weight: 700;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 30px;
}

.hero-stat {
    display: flex;
    min-width: 105px;
    flex-direction: column;
    padding: 11px 16px;
    border: 1px solid var(--broad-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.hero-stat strong {
    color: #fff;
    font-size: 21px;
    line-height: 1.2;
}

.hero-stat span {
    color: var(--broad-muted);
    font-size: 12px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-cta .btn {
    min-height: 48px;
    flex: 0 1 auto;
    justify-content: center;
    padding: 12px 20px;
}

.hero-cta .btn-primary,
.discord-copy .btn-primary {
    border: 1px solid transparent;
    background: linear-gradient(120deg, var(--broad-pink), #a545d7) !important;
    box-shadow: 0 8px 26px rgba(220, 49, 162, 0.22);
}

.hero-cta .btn-primary:hover,
.discord-copy .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(220, 49, 162, 0.34);
}

.hero-cta .btn-secondary {
    border-color: rgba(98, 229, 237, 0.45);
    background: rgba(98, 229, 237, 0.06);
    color: var(--broad-cyan);
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 350px;
    place-items: center;
}

.hero-visual::before {
    position: absolute;
    width: min(80%, 360px);
    aspect-ratio: 1;
    border: 1px solid rgba(98, 229, 237, 0.2);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164, 83, 224, 0.2), rgba(98, 229, 237, 0.04) 56%, transparent 70%);
    box-shadow: 0 0 75px rgba(149, 73, 208, 0.17), inset 0 0 55px rgba(98, 229, 237, 0.06);
    content: "";
}

.hero-image {
    position: relative;
    z-index: 1;
    display: block;
    width: min(76%, 320px);
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.42));
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--broad-cyan);
    box-shadow: 0 0 14px 3px rgba(98, 229, 237, 0.4);
}

.hero-particles span:nth-child(1) {
    top: 24%;
    left: 8%;
}

.hero-particles span:nth-child(2) {
    top: 72%;
    left: 53%;
    background: var(--broad-pink);
    box-shadow: 0 0 14px 3px rgba(243, 75, 173, 0.4);
}

.hero-particles span:nth-child(3) {
    top: 18%;
    right: 12%;
    width: 3px;
    height: 3px;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--broad-border);
    border-radius: 50%;
    color: var(--broad-cyan);
    font-size: 24px;
    text-decoration: none;
    transform: translateX(-50%);
}

/* Khu vực server: thẻ thông tin và nút kết nối từng máy chủ */
.servers-section {
    padding: clamp(60px, 8vw, 92px) 20px;
    background: var(--broad-bg);
}

.section-header-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
    text-align: center;
}

.section-header-centered h2,
.discord-copy h2,
.donate-content h2 {
    color: var(--broad-text);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.section-header-centered p {
    margin-top: 9px;
    color: var(--broad-muted);
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.server-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--broad-border);
    border-radius: 18px;
    background: linear-gradient(155deg, #1d1930, #171524 72%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.server-card-header {
    padding: 21px 22px 14px;
}

.server-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
}

.server-badge,
.server-status {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.server-badge {
    background: rgba(98, 229, 237, 0.12);
    color: var(--broad-cyan);
}

.server-badge-easy {
    background: rgba(165, 106, 242, 0.16);
    color: #c49aff;
}

.server-status {
    font-size: 11px;
    letter-spacing: 0;
}

.server-status.online {
    background: rgba(70, 215, 151, 0.13);
    color: #73e5af;
}

.server-status.offline {
    background: rgba(243, 75, 116, 0.13);
    color: #ff829c;
}

.server-status i {
    font-size: 8px;
}

.server-card-header h3 {
    color: var(--broad-text);
    font-size: 23px;
    letter-spacing: -0.025em;
}

.server-banner {
    display: block;
    width: calc(100% - 44px);
    overflow: hidden;
    margin: 0 22px 18px;
    border: 1px solid var(--broad-border);
    border-radius: 11px;
    background: #11101a;
}

.server-banner picture,
.server-banner img {
    display: block;
    width: 100%;
}

.server-banner img {
    max-width: 100%;
    aspect-ratio: 2.5 / 1;
    object-fit: cover;
}

.server-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 14px;
    margin: 0 22px 20px;
    padding: 0;
    list-style: none;
}

.server-specs li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: var(--broad-muted);
    font-size: 13px;
}

.server-specs i {
    flex: 0 0 auto;
    color: var(--broad-cyan);
    font-size: 17px;
}

.server-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding: 0 22px 22px;
}

.server-actions .btn {
    min-width: 0;
    min-height: 44px;
    flex: 1 1 0;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.server-actions .btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn-connect {
    background: linear-gradient(120deg, #19aeb9, #417bd5);
    color: #fff;
}

.btn-vote {
    border-color: rgba(243, 75, 173, 0.42) !important;
    background: rgba(243, 75, 173, 0.09);
    color: #ff8aca;
}

.btn-maintenance {
    background: rgba(255, 255, 255, 0.07);
    color: #aaa6b9;
    cursor: not-allowed;
}

/* Khu vực Discord: lời mời và khung cộng đồng nhúng */
.discord-section {
    padding: clamp(58px, 8vw, 90px) 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background:
        radial-gradient(ellipse at 88% 50%, rgba(83, 58, 145, 0.2), transparent 42%),
        #151322;
}

.discord-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    align-items: center;
    gap: clamp(32px, 7vw, 90px);
}

.discord-copy p,
.donate-content p {
    max-width: 500px;
    margin: 13px 0 24px;
    color: var(--broad-muted);
}

.discord-widget {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--broad-border);
    border-radius: 16px;
    background: var(--broad-panel);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.discord-widget iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

/* Khu vực donate: phương thức ủng hộ và nút kêu gọi */
.donate-section {
    padding: 38px 20px;
    background: linear-gradient(105deg, #211831, #191629 60%, #17202c);
}

.donate-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.donate-content .eyebrow {
    margin-bottom: 8px;
}

.donate-content p {
    margin: 9px 0 15px;
}

.donate-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.donate-methods span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d7d2e4;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.donate-methods i {
    color: var(--broad-cyan);
    font-size: 17px;
}

.btn-donate {
    min-height: 48px;
    flex: 0 0 auto;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 10px;
    background: linear-gradient(120deg, var(--broad-pink), #a545d7);
    color: #fff;
    box-shadow: 0 8px 26px rgba(220, 49, 162, 0.2);
}

.btn-donate:hover {
    transform: translateY(-2px);
}

/* Khu vực footer: thông tin, liên kết và mạng xã hội */
.site-footer {
    padding: 54px 20px 24px;
    background: #0c0b14;
    color: var(--broad-text);
}

.footer-grid {
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, 1fr));
    gap: 32px;
    margin-bottom: 38px;
}

.footer-logo {
    width: fit-content;
    margin-bottom: 16px;
    color: #fff;
}

.footer-logo .logo-text small {
    color: #aaa5bd;
}

.footer-about p {
    max-width: 340px;
    color: #aaa6b8;
    font-size: 14px;
}

.footer-col h3 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 16px;
}

.footer-col li {
    color: #aaa6b8;
    font-size: 14px;
}

.footer-col li a {
    padding: 5px 0;
    color: #aaa6b8;
}

.footer-col li a:hover,
.footer-bottom a:hover {
    color: var(--broad-cyan);
}

.social-links {
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    border: 1px solid var(--broad-border);
    background: #1b1927;
    color: #d5d0e3;
}

.social-links a:hover {
    background: #38244b;
    color: var(--broad-cyan);
}

.footer-bottom {
    justify-content: center;
    padding-top: 20px;
    border-color: var(--broad-border);
    color: #8f8a9f;
    font-size: 13px;
    text-align: center;
}

.footer-bottom a {
    color: #c3bdd1;
    text-decoration: none;
}

/* Điều chỉnh menu và footer trên tablet */
@media (max-width: 1050px) {
    .main-nav {
        z-index: 5;
    }

    .main-nav ul {
        display: flex;
        margin-top: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .main-nav a {
        min-height: 42px;
        padding: 0 12px;
    }
}

/* Thu gọn các cột nội dung ở kích thước tablet */
@media (max-width: 800px) {
    .hero {
        min-height: 0;
        padding-top: 70px;
        padding-bottom: 78px;
    }

    .hero .container.hero-content {
        grid-template-columns: minmax(0, 1.1fr) minmax(210px, 0.9fr);
        gap: 20px;
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-image {
        width: min(85%, 260px);
    }

    .servers-grid {
        gap: 16px;
    }

    .server-card-header {
        padding: 18px 18px 12px;
    }

    .server-banner {
        width: calc(100% - 36px);
        margin-right: 18px;
        margin-left: 18px;
    }

    .server-specs {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-right: 18px;
        margin-left: 18px;
    }

    .server-actions {
        padding-right: 18px;
        padding-left: 18px;
    }

    .discord-layout {
        grid-template-columns: minmax(0, 1fr) minmax(270px, 0.9fr);
        gap: 28px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Xếp các khu vực thành một cột trên mobile */
@media (max-width: 640px) {
    .container {
        width: min(100% - 32px, 1160px);
    }

    .site-header .container {
        min-height: 70px;
    }

    .main-nav {
        padding: 8px 0 4px;
    }

    .main-nav ul {
        gap: 2px;
    }

    .main-nav a {
        padding: 0 10px;
    }

    .hero {
        padding: 58px 16px 70px;
    }

    .hero .container.hero-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .hero h1 {
        font-size: clamp(33px, 9vw, 48px);
    }

    .hero-stats {
        gap: 8px;
    }

    .hero-stat {
        min-width: 0;
        flex: 1;
        padding: 10px 12px;
    }

    .hero-visual {
        min-height: 230px;
        margin-top: 6px;
    }

    .hero-visual::before {
        width: min(65%, 230px);
    }

    .hero-image {
        width: min(58%, 210px);
        max-height: 240px;
    }

    .scroll-indicator {
        bottom: 14px;
    }

    .servers-section,
    .discord-section,
    .donate-section,
    .site-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .section-header-centered {
        margin-bottom: 26px;
    }

    .servers-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .server-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discord-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .discord-widget iframe {
        height: 340px;
    }

    .donate-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .donate-methods {
        flex-direction: column;
        gap: 8px;
    }

    .footer-grid {
        gap: 26px 20px;
    }
}

/* Tinh chỉnh bố cục cho màn hình rất hẹp */
@media (max-width: 380px) {
    .logo-image {
        width: 38px;
        height: 38px;
    }

    .logo-text strong {
        font-size: 16px;
    }

    .hero-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .server-specs {
        grid-template-columns: minmax(0, 1fr);
    }

    .server-actions {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Tôn trọng thiết lập giảm chuyển động của hệ điều hành */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
