/* ==========================================
   ProxyVPSGame Shop - Custom CSS
   ========================================== */

/* General Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: #333;
    line-height: 1.6;
}

/* ==========================================
   Auth Pages Styles — Modern Tech (White/Blue)
   ========================================== */

/* ════════════════════════════════════════
   AUTH PAGES – Full-screen blue tech bg
   ════════════════════════════════════════ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    /* Toàn màn hình là nền xanh gradient công nghệ */
    background: linear-gradient(160deg, #071a47 0%, #0d47a1 45%, #1565c0 75%, #1e88e5 100%);
    position: relative;
    overflow: hidden;
}

/* Hoa văn lưới công nghệ phủ toàn màn hình */
.auth-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
}

/* Glow trang trí góc trên phải */
.auth-container::after {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(100,181,246,.18) 0%, transparent 68%);
    top: -250px; right: -200px;
    pointer-events: none;
    z-index: 0;
}

/* ── Panel trái: brand trên nền xanh ── */
.auth-panel-left {
    width: 44%;
    background: transparent; /* Trong suốt – nền xanh từ container */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Vòng tròn ánh sáng trang trí */
.auth-panel-left::after {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border: 1.5px solid rgba(255,255,255,.08);
    border-radius: 50%;
    bottom: -160px; right: -140px;
    pointer-events: none;
}

.auth-panel-left .brand-icon {
    width: 76px; height: 76px;
    background: rgba(255,255,255,.13);
    border: 1.5px solid rgba(255,255,255,.28);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: #fff;
    margin-bottom: 28px;
    position: relative; z-index: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.auth-panel-left .brand-name {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    margin-bottom: 8px;
    position: relative; z-index: 1;
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.auth-panel-left .brand-tagline {
    font-size: 14px;
    color: rgba(255,255,255,.72);
    text-align: center;
    line-height: 1.65;
    position: relative; z-index: 1;
    max-width: 250px;
}

.auth-panel-left .brand-features {
    margin-top: 48px;
    position: relative; z-index: 1;
    width: 100%;
    max-width: 270px;
}

.auth-panel-left .brand-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    margin-bottom: 10px;
    color: rgba(255,255,255,.92);
    font-size: 13px;
    backdrop-filter: blur(6px);
    transition: background .2s;
}

.auth-panel-left .brand-feature-item:hover {
    background: rgba(255,255,255,.14);
}

.auth-panel-left .brand-feature-item i {
    color: #90caf9;
    font-size: 15px;
    flex-shrink: 0;
}

/* ── Panel phải: form trên nền xanh ── */
.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 40px;
    position: relative;
    z-index: 1;
}

/* Card trắng nổi trên nền xanh */
.auth-card {
    background: rgba(255,255,255,.97);
    border-radius: 20px;
    box-shadow:
        0 24px 64px rgba(4,22,80,.45),
        0 0 0 1px rgba(255,255,255,.2);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(16px);
    border: none;
}

.auth-card .auth-logo {
    display: none;
}

.auth-card .auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #0d1b4b;
    margin-bottom: 6px;
}

.auth-card .auth-subtitle {
    color: #6b7ea8;
    font-size: 13.5px;
    margin-bottom: 28px;
}

/* Input tech style */
.auth-card .form-control {
    border: 1.5px solid #d9e3f5;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    background: #f7faff;
    transition: border-color .2s, box-shadow .2s;
}

.auth-card .form-control:focus {
    border-color: #1565c0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}

.auth-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #3a4a6b;
    margin-bottom: 6px;
}

/* Submit button */
.auth-card .btn-primary {
    background: linear-gradient(90deg, #1565c0, #1e88e5);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(21,101,192,.35);
}

.auth-card .btn-primary:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(21,101,192,.45);
}

.auth-card .btn-outline-danger {
    border-radius: 10px;
    padding: 11px;
    font-size: 14px;
    font-weight: 500;
    border-color: #e0e0e0;
    color: #333;
    transition: background .2s, box-shadow .2s;
}

.auth-card .btn-outline-danger:hover {
    background: #fafafa;
    border-color: #c0c0c0;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.auth-card .text-link {
    color: #1565c0;
    font-size: 13px;
    font-weight: 500;
}

.auth-card .text-link:hover { color: #0d47a1; }

/* Footer auth */
.auth-card .footer-text {
    border-top: 1px solid #eef2fb;
    margin-top: 24px;
    padding-top: 16px;
    font-size: 12px;
    color: #9eadc8;
    text-align: center;
}

/* Responsive: stack 1 cột trên mobile (vẫn full xanh) */
@media (max-width: 768px) {
    .auth-container { flex-direction: column; }
    .auth-panel-left {
        width: 100%;
        padding: 28px 24px 20px;
        flex-direction: row;
        gap: 14px;
        justify-content: center;
    }
    .auth-panel-left .brand-features { display: none; }
    .auth-panel-left .brand-tagline  { display: none; }
    .auth-panel-left .brand-icon { display: none; }
    .auth-panel-left .brand-name { font-size: 20px; margin-bottom: 0; }
    .auth-panel-left .brand-name img { height: 44px; }
    .auth-panel-right { padding: 24px 16px 40px; }
    .auth-card { padding: 32px 24px; max-width: 100%; border-radius: 16px; }
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.input-group-text {
    background-color: var(--light-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

/* Button Styles */
.btn {
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Link Styles */
.text-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 10px;
    color: var(--secondary-color);
    font-size: 14px;
}

/* Code Box for Verification */
.code-box {
    background-color: var(--light-color);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.code-box input {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 10px;
    text-align: center;
    border: none;
    background: transparent;
    outline: none;
    color: var(--primary-color);
}

/* Info Box */
.info-box {
    background-color: #e7f3ff;
    border-left: 4px solid var(--info-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.info-box i {
    color: var(--info-color);
    margin-right: 10px;
}

/* Footer Text */
.footer-text {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: var(--secondary-color);
    font-size: 13px;
}

/* Responsive auth (mobile đã xử lý trong block riêng ở trên) */

/* Loading Animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Checkbox & Radio */
.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Password Toggle */
.password-toggle {
    position: relative;
}

.password-toggle .toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--secondary-color);
}

.password-toggle .toggle-icon:hover {
    color: var(--dark-color);
}

/* Button Size Override - Giảm kích thước button */
.btn {
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 13px;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 16px;
}

.btn-link {
    padding: 6px 12px;
    font-size: 14px;
}

/* ==========================================
   Iframe / Video Responsive
   ========================================== */

/* Bọc iframe trong div.video-wrap để giữ tỉ lệ 16:9 */
.guide-content .video-wrap,
.guide-content-full .video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 1rem 0;
    border-radius: 8px;
}

.guide-content .video-wrap iframe,
.guide-content-full .video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* Fallback: iframe không có .video-wrap wrapper */
.guide-content iframe,
.guide-content-full iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    border: 0;
}

/* Modal guide: đảm bảo không tràn (modal luôn cần max-width) */
#guideModal .modal-body img,
.guide-modal-body img,
.guide-content img,
.guide-content-full img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0.5rem auto;
    border-radius: 6px;
}

#guideModal .modal-body iframe,
.guide-modal-body iframe {
    max-width: 100% !important;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    border: 0;
}

#guideModal .modal-body video,
.guide-modal-body video,
.guide-content video,
.guide-content-full video {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0.5rem auto;
    border-radius: 6px;
}

/* Mobile: modal full-width, không padding ngang thừa */
@media (max-width: 576px) {
    #guideModal .modal-body {
        padding: 16px 12px;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    #guideModal .modal-dialog {
        margin: 0.5rem;
    }

    .guide-content iframe,
    .guide-content-full iframe,
    #guideModal .modal-body iframe {
        border-radius: 4px;
    }

    /* Mobile: ảnh/video/iframe trong card-body hướng dẫn chung */
    .card-body img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0.5rem auto;
        border-radius: 6px;
    }
    .card-body iframe {
        max-width: 100% !important;
        width: 100% !important;
        aspect-ratio: 16 / 9;
        height: auto !important;
        display: block;
        margin: 1rem auto;
        border-radius: 8px;
        border: 0;
    }
    .card-body video {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0.5rem auto;
        border-radius: 6px;
    }
    .card-body {
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ===== Game Icon Utilities ===== */
.game-icon-sm {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    vertical-align: middle;
}
.game-icon-md {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    vertical-align: middle;
}
.game-icon-nav {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 2px;
}

/* Proxy key code elements - tăng font-size về 1em (mặc định browser/Bootstrap ~87.5%) */
code[id^="proxy_key_"],
code[id^="detail_proxy_"] {
    font-size: 1em !important;
}

/* ==========================================
   HOMEPAGE — Tech Dark Style
   ========================================== */

/* Override bg-light của body chỉ trên trang chủ */
.home-page-wrapper {
    min-height: 100vh;
    background: linear-gradient(160deg, #040d1f 0%, #071a47 40%, #0b2361 70%, #0d47a1 100%);
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

/* Lưới công nghệ nền */
.home-page-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

.home-page-wrapper > * { position: relative; z-index: 1; }

/* ── Navbar trang chủ ── */
.home-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: rgba(4, 13, 31, .65);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: sticky;
    top: 0;
    z-index: 100;
}
.home-navbar .navbar-brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.home-navbar .navbar-brand-text .brand-dot {
    width: 10px; height: 10px;
    background: #4fc3f7;
    border-radius: 50%;
    box-shadow: 0 0 8px #4fc3f7;
    display: inline-block;
    animation: pulseDot 2s infinite;
}
.home-navbar .nav-links { display: flex; gap: 10px; align-items: center; }
.home-navbar .nav-links a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .9rem;
    padding: 7px 16px;
    border-radius: 6px;
    transition: background .2s, color .2s;
}
.home-navbar .nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.home-navbar .nav-links .btn-nav-primary {
    background: linear-gradient(90deg, #1565c0, #1e88e5);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(30,136,229,.4);
}
.home-navbar .nav-links .btn-nav-primary:hover {
    background: linear-gradient(90deg, #1e88e5, #42a5f5);
    box-shadow: 0 0 18px rgba(30,136,229,.6);
}

/* ── Hero ── */
.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 90px 20px 70px;
}
.home-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(30,136,229,.15);
    border: 1px solid rgba(30,136,229,.35);
    color: #90caf9;
    font-size: .82rem;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 22px;
    letter-spacing: .03em;
}
.home-hero .hero-badge .badge-dot {
    width: 6px; height: 6px;
    background: #4fc3f7;
    border-radius: 50%;
    box-shadow: 0 0 6px #4fc3f7;
    animation: pulseDot 1.5s infinite;
}
.home-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}
.home-hero h1 .gradient-text {
    background: linear-gradient(90deg, #4fc3f7, #42a5f5, #90caf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.home-hero .hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,.65);
    max-width: 580px;
    margin-bottom: 36px;
    line-height: 1.7;
}
.home-hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.home-hero .btn-hero-primary {
    background: linear-gradient(90deg, #1565c0, #1e88e5);
    color: #fff;
    border: none;
    padding: 13px 34px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(30,136,229,.45);
    transition: transform .2s, box-shadow .2s;
}
.home-hero .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30,136,229,.6);
    color: #fff;
}
.home-hero .btn-hero-outline {
    background: transparent;
    color: #90caf9;
    border: 1.5px solid rgba(144,202,249,.4);
    padding: 13px 34px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, border-color .2s, transform .2s;
}
.home-hero .btn-hero-outline:hover {
    background: rgba(144,202,249,.1);
    border-color: #90caf9;
    transform: translateY(-2px);
    color: #fff;
}

/* ── Stats bar ── */
.home-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: rgba(255,255,255,.04);
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 28px 20px;
}
.home-stat-item {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    text-align: center;
    padding: 12px 20px;
    border-right: 1px solid rgba(255,255,255,.07);
}
.home-stat-item:last-child { border-right: none; }
.home-stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #4fc3f7;
    line-height: 1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
.home-stat-item .stat-label {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ── Section chung ── */
.home-section {
    padding: 80px 20px;
    max-width: 1140px;
    margin: 0 auto;
}
.home-section-title {
    text-align: center;
    margin-bottom: 56px;
}
.home-section-title .section-label {
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #4fc3f7;
    margin-bottom: 10px;
    display: block;
}
.home-section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.home-section-title p {
    color: rgba(255,255,255,.55);
    font-size: .98rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Service Cards ── */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.service-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity .3s;
}
.service-card.proxy::before  { background: linear-gradient(90deg, #1565c0, #42a5f5); }
.service-card.vps::before    { background: linear-gradient(90deg, #00897b, #26c6da); }
.service-card.game::before   { background: linear-gradient(90deg, #6a1b9a, #ab47bc); }
.service-card:hover { transform: translateY(-5px); border-color: rgba(79,195,247,.25); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.service-card:hover::before { opacity: 1; }
.service-card .card-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.service-card.proxy .card-icon { background: rgba(21,101,192,.25); color: #64b5f6; }
.service-card.vps .card-icon   { background: rgba(0,137,123,.25);  color: #80cbc4; }
.service-card.game .card-icon  { background: rgba(106,27,154,.25); color: #ce93d8; }
.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.service-card p {
    font-size: .88rem;
    color: rgba(255,255,255,.55);
    line-height: 1.65;
    margin-bottom: 20px;
}
.service-card .tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.service-card .tag {
    font-size: .75rem;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 500;
}
.service-card.proxy .tag { background: rgba(21,101,192,.2); color: #90caf9; border: 1px solid rgba(21,101,192,.3); }
.service-card.vps .tag   { background: rgba(0,137,123,.2);  color: #80cbc4;  border: 1px solid rgba(0,137,123,.3); }
.service-card.game .tag  { background: rgba(106,27,154,.2); color: #ce93d8;  border: 1px solid rgba(106,27,154,.3); }

/* ── Feature list ── */
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 22px 20px;
    transition: background .2s;
}
.feature-item:hover { background: rgba(255,255,255,.06); }
.feature-item .fi-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(30,136,229,.18);
    color: #64b5f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.feature-item h4 { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.feature-item p  { font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.55; margin: 0; }

/* ── Game support section ── */
.home-games-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
}
.game-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 16px 24px;
    min-width: 180px;
    transition: transform .2s, border-color .2s;
}
.game-badge:hover { transform: translateY(-3px); border-color: rgba(79,195,247,.3); }
.game-badge .game-ico {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.game-badge.nro .game-ico { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.game-badge.lht .game-ico { background: linear-gradient(135deg, #00897b, #26c6da); }
.game-badge.hso .game-ico { background: linear-gradient(135deg, #6a1b9a, #ab47bc); }
.game-badge .game-info .game-name  { font-weight: 700; color: #fff; font-size: .95rem; }
.game-badge .game-info .game-label { font-size: .77rem; color: rgba(255,255,255,.5); }

/* ── CTA cuối trang ── */
.home-cta-section {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255,255,255,.03);
    border-top: 1px solid rgba(255,255,255,.07);
}
.home-cta-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.home-cta-section p {
    color: rgba(255,255,255,.55);
    font-size: .98rem;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.home-cta-section .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer trang chủ ── */
.home-page-footer {
    text-align: center;
    padding: 24px 20px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.3);
    font-size: .82rem;
}
.home-page-footer a { color: rgba(255,255,255,.45); text-decoration: none; }
.home-page-footer a:hover { color: rgba(255,255,255,.8); }

/* ── User greeting bar (khi đã đăng nhập) ── */
.home-user-bar {
    background: rgba(30,136,229,.12);
    border: 1px solid rgba(30,136,229,.25);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto 40px;
}
.home-user-bar .user-greeting { color: #90caf9; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.home-user-bar .user-links    { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Animations ── */
@keyframes pulseDot {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.35); }
}

/* ── CTA buttons cuối trang (rõ ràng, đồng nhất) ── */
.cta-btn-register,
.cta-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 38px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
    letter-spacing: .01em;
}
.cta-btn-register {
    background: linear-gradient(90deg, #1565c0, #1e88e5);
    color: #fff;
    border: 2px solid transparent;
    box-shadow: 0 6px 28px rgba(30,136,229,.55);
}
.cta-btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(30,136,229,.75);
    background: linear-gradient(90deg, #1e88e5, #42a5f5);
    color: #fff;
}
.cta-btn-login {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
    backdrop-filter: blur(4px);
}
.cta-btn-login:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.22);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* ── Scrollbar đồng bộ theme tối ── */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(30,136,229,.5) #040d1f;
}
html::-webkit-scrollbar { width: 7px; }
html::-webkit-scrollbar-track { background: #071a47; }
html::-webkit-scrollbar-thumb {
    background: rgba(30,136,229,.55);
    border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover { background: rgba(30,136,229,.85); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .home-navbar { padding: 14px 20px; }
    .home-navbar .nav-links { gap: 6px; }
    .home-navbar .nav-links a { font-size: .82rem; padding: 6px 10px; }
    .home-stat-item { min-width: 130px; }
    .home-stat-item .stat-number { font-size: 1.6rem; }
    .home-user-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .home-navbar .nav-links .hide-mobile { display: none; }
    .home-stats { flex-direction: row; }
    .home-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
    .home-stat-item:last-child { border-bottom: none; }
}
