/* --- styles.css --- */
:root {
    --sidebar-width: 240px;
    --header-height: 70px;
    --bg-body: #0f0f10;
    --bg-card: #202022;
    --text-primary: #fff;
    --text-secondary: #a1a5b7;
    --accent-color: #6c5ce7;
    --gap-size: 16px;
}

/* THÊM MỚI: Reset Box-sizing để tính toán kích thước chuẩn xác */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Chỉ ẩn thanh cuộn ngang của body */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- Navbar social icon buttons --- */
.social { display: inline-flex; align-items: center; margin-left: 4px; }
.social-button {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s;
}
.social-button:hover { background: rgba(255,255,255,0.18); }
.social-button img { width: 18px; height: 18px; object-fit: contain; }

/* --- BỐ CỤC CHÍNH (LAYOUT - FLEXBOX) --- */
.app-container {
    display: flex; /* Xếp Sidebar và Main nằm ngang hàng nhau */
    width: 100%;
    min-height: 100vh;
}

/* 1. Sidebar (Cố định nhưng chiếm chỗ) */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width); /* Cứng chiều rộng, không co giãn */
    background-color: #161618;
    height: 100vh;
    
    /* Sticky: Dính chặt màn hình nhưng vẫn được tính là một khối trong Flexbox */
    position: sticky; 
    top: 0;
    
    overflow-y: auto;
    padding: 20px;
    z-index: 1000;
    border-right: 1px solid #2d2d2d;
    transition: transform 0.3s ease;
}

/* CSS cho nội dung bên trong Sidebar */
.sidebar-logo {
    display: block;
    margin-bottom: 30px;
    text-align: center;
}

.nav-menu { list-style: none; padding: 0; }
.nav-item { margin-bottom: 8px; }
.nav-link {
    display: flex; align-items: center; padding: 10px 15px;
    border-radius: 12px; color: var(--text-secondary);
    font-weight: 500; font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active {
    background-color: var(--bg-card); color: #fff; transform: translateX(5px);
}
.nav-link svg { margin-right: 12px; width: 20px; height: 20px; }


/* 2. Main Content (Tự động lấp đầy phần còn lại) */
.main-content {
    flex-grow: 1; /* Chiếm hết khoảng trống còn lại bên phải Sidebar */
    padding: 20px;
    width: 100%; /* Đảm bảo grid bên trong hoạt động đúng */
    min-width: 0; /* Fix lỗi CSS Grid bị tràn trên một số trình duyệt cũ */
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(15, 15, 16, 0.95);
    position: sticky;
    top: 0;
    z-index: 900;
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.search-bar {
    background: #252527;
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
}
.search-bar input {
    background: transparent; border: none; color: #fff; width: 100%;
    outline: none; margin-left: 10px;
}

/* --- GAME GRID --- */
.crazy-grid {
    display: grid;
    grid-gap: var(--gap-size);
    grid-template-columns: repeat(2, 1fr); 
}
@media (min-width: 576px) { .crazy-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .crazy-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .crazy-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .crazy-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1600px) { .crazy-grid { grid-template-columns: repeat(8, 1fr); } }

/* GAME CARD */
.game-card {
    display: block; position: relative; border-radius: 16px;
    overflow: hidden; background-color: var(--bg-card);
    aspect-ratio: 16/9; transition: transform 0.2s, box-shadow 0.2s;
}
.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4); z-index: 2;
}
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-info {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0; transition: opacity 0.2s;
}
.game-card:hover .game-info { opacity: 1; }
.game-title {
    font-size: 0.85rem; font-weight: 700; color: #fff; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}

/* --- MOBILE & TABLET (Dưới 991px) --- */
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 991px) {
    /* Trên Mobile, Sidebar quay về chế độ Fixed để ẩn đi */
    .sidebar {
        position: fixed; 
        left: 0; top: 0;
        transform: translateX(-100%); /* Mặc định ẩn */
        width: 260px; /* Rộng hơn chút trên mobile cho dễ bấm */
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }
    
    .sidebar.active { transform: translateX(0); } /* Hiện ra khi active */

    .main-content {
        padding: 15px; 
        /* Không cần margin hay width đặc biệt vì Flexbox tự xử lý */
    }

    .mobile-menu-btn { display: block; margin-right: 15px; }
}

/* --- THÊM VÀO CUỐI styles.css --- */

/* Khung chứa Game (Responsive 16:9) */
.game-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Tỉ lệ 16:9 (9/16 = 0.5625) */
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); /* Đổ bóng cho game nổi bật */
}

.game-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Các nút chức năng dưới game (Fullscreen, Like...) */
.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 12px;
}

.btn-action {
    background: #353538;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-action:hover {
    background: var(--accent-color);
}

.game-description {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #ccc;
}

/* --- THÊM VÀO CUỐI styles.css --- */

/* Bố cục chứa Game + Quảng cáo bên cạnh */
.game-with-ad-layout {
    display: flex;
    gap: 20px; /* Khoảng cách giữa game và quảng cáo */
    align-items: flex-start; /* Căn thẳng hàng bên trên */
}

/* Khu vực bên trái chứa Game (Tự động co giãn) */
.game-area-left {
    flex: 1; /* Chiếm toàn bộ không gian còn lại */
    min-width: 0; /* Fix lỗi flexbox để iframe không bị tràn */
}

/* Khu vực bên phải chứa Quảng cáo (Kích thước cố định) */
.game-ad-sidebar {
    width: 300px; /* Chiều rộng chuẩn cho banner dọc (ví dụ 300x600) */
    flex-shrink: 0; /* Không cho phép bị co nhỏ lại */
    background: #202022; /* Màu nền tạm để bạn dễ nhìn vị trí */
    border-radius: 12px;
    padding: 10px;
    min-height: 600px; /* Chiều cao tạm thời để demo */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
/* Khi màn hình nhỏ hơn 992px (Tablet/Mobile) */
@media (max-width: 991px) {
    /* Chuyển bố cục thành cột dọc */
    .game-with-ad-layout {
        flex-direction: column;
    }

    /* Game chiếm full chiều ngang */
    .game-area-left {
        width: 100%;
    }

    /* ẨN quảng cáo sidebar đi vì không đủ chỗ trên mobile */
    /* Bạn nên dùng một slot quảng cáo ngang khác đặt dưới game cho mobile */
    .game-ad-sidebar {
        display: none; 
    }
}

/* --- Game iframe 16:9 responsive container --- */
.game-iframe-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  border-radius: 12px;
}
.game-iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Game card grid --- */
.card-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.7rem;
  justify-items: stretch;
  align-items: start;
  align-content: start;
}
#home-games-grid {
  margin: 0 auto;
  width: 100%;
  max-width: 1264px;
  /* Desktop: fixed max 6 columns, keep overall container width unchanged */
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
  justify-items: stretch;
  align-items: start;
  align-content: start;
}

#home-games-grid .card {
  width: 100%;
}
.category-collection-grid {
  display: grid !important;
  /* Desktop: fixed max 4 columns */
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 auto;
  max-width: 1100px;
}

/* Mobile breakpoint: categories 1 column, games 2 columns */
@media screen and (max-width: 768px) {
  .category-collection-grid {
    grid-template-columns: 1fr;
  }
  #home-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-masonry .card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: #161627;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  text-decoration: none;
  display: block;
  padding: 0;
  color: inherit;
  aspect-ratio: 1;
}
.card-masonry .card:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 10px 36px rgba(108, 92, 231, 0.3);
  border-color: rgba(108, 92, 231, 0.5);
}
.card-masonry .card picture { display: block; width: 100%; height: 100%; }
.card-masonry .card picture img,
.card-masonry .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.card-masonry .card:hover img { transform: scale(1.06); }
.card-body { flex: 1 1 auto; padding: 0.75rem; color: #e5e7eb; }
.card-masonry .card .card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.35rem 0.4rem 0.3rem;
  text-align: left;
  z-index: 10;
}
.card-masonry .card h3,
.card-masonry .card .h3 {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, transparent 100%);
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 0.35rem 0.4rem 0.3rem;
  margin: 0;
}

/* Category pages: 8 cards per row, centered; title below card and centered */
main > section > .container-fluid > .heading.mb-3 {
  width: 100%;
  max-width: 1264px;
  margin-left: auto;
  margin-right: auto;
}

main > section.pt-4.pb-5:not(#games):not(#faq) > .container-fluid > .heading-page {
  width: 100%;
  max-width: 1264px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

main > section.pt-4.pb-5:not(#games):not(#faq) > .container-fluid > .heading-page p {
  text-align: left;
}

main > section > .container-fluid > .card-masonry:not(#home-games-grid) {
  width: 100%;
  max-width: 1264px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  justify-items: stretch;
  align-items: start;
  align-content: start;
}

main > section > .container-fluid > .card-masonry:not(#home-games-grid) .card {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  overflow: visible;
}

main > section > .container-fluid > .card-masonry:not(#home-games-grid) .card picture {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #161627;
}

main > section > .container-fluid > .card-masonry:not(#home-games-grid) .card .card-body {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  text-align: center;
  padding: 0.42rem 0 0;
}

main > section > .container-fluid > .card-masonry:not(#home-games-grid) .card h3,
main > section > .container-fluid > .card-masonry:not(#home-games-grid) .card .h3 {
  position: static;
  width: 100%;
  background: none;
  padding: 0;
  margin: 0;
  text-align: center;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

/* Category pages: align bottom description text to same left/right edges as icon grid */
main > section.layout-text > .container-fluid,
main > section.layout-text > .container-fluid > p {
  width: 100%;
  max-width: 1264px;
  margin-left: auto;
  margin-right: auto;
}

main > section.layout-text > .container-fluid > p {
  text-align: left;
}

.card-masonry .card.card-collection .card-meta {
  position: absolute;
  left: 0.38rem;
  bottom: 1.18rem;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.12rem 0.36rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(3px);
}

.card-masonry .card.card-collection .card-category-icon {
  width: 0.68rem;
  height: 0.68rem;
  display: inline-flex;
  color: #b7d0ff;
}

.card-masonry .card.card-collection .card-category-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.card-masonry .card.card-collection .card-category-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e5ecff;
}

.category-collection-grid .card.card-collection {
  grid-column: span 1;
  grid-row: span 1;
  aspect-ratio: auto;
  min-height: 120px;
  width: 100%;
}

.category-collection-grid .card.card-collection .card-collection-body {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  min-height: 120px;
  width: 100%;
}

.category-collection-grid .card.card-collection .card-img {
  flex: 0 0 50%;
  width: 50%;
  height: 120px;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
}

.category-collection-grid .card.card-collection .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 0 0 10px;
}

.category-collection-grid .card.card-collection .card-text {
  flex: 0 0 50%;
  width: 50%;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
}

.category-collection-grid .card.card-collection .card-text h4 {
  position: static;
  background: none;
  font-size: 0.8125rem;
  width: auto;
  padding: 0;
  margin: 0;
  color: #fff;
  word-break: normal;
  overflow-wrap: normal;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.category-collection-grid .card.card-collection .card-text .text-white-50 {
  word-break: normal;
  overflow-wrap: normal;
}

.category-collection-grid .card.card-collection:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

@media (max-width: 991px) {
  .card-masonry.category-collection-grid {
    grid-template-columns: 1fr !important;
    max-width: 540px;
  }

  .category-collection-grid .card.card-collection .card-collection-body {
    flex-direction: row;
    min-height: 110px;
  }

  .category-collection-grid .card.card-collection .card-img {
    flex: 0 0 40%;
    width: 40%;
    height: 110px;
  }

  .category-collection-grid .card.card-collection .card-text {
    flex: 0 0 60%;
    width: 60%;
  }

  .category-collection-grid .card.card-collection .card-text h4 {
    font-size: 0.9375rem;
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .card-masonry.category-collection-grid {
    grid-template-columns: 1fr !important;
    max-width: 100%;
  }

  .category-collection-grid .card.card-collection .card-collection-body {
    flex-direction: column;
    min-height: auto;
  }

  .category-collection-grid .card.card-collection .card-img {
    flex: none;
    width: 100%;
    height: 140px;
    border-radius: 10px 10px 0 0;
  }

  .category-collection-grid .card.card-collection .card-img img {
    border-radius: 10px 10px 0 0;
  }

  .category-collection-grid .card.card-collection .card-text {
    flex: none;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .category-collection-grid .card.card-collection .card-text h4 {
    font-size: 1rem;
    white-space: normal;
    word-break: break-word;
  }
}
@media (max-width: 768px) {
  .card-masonry { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.5rem; }
}
@media (max-width: 480px) {
  .card-masonry { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.4rem; }
}

/* --- Navbar category buttons --- */
.category-btn {
  display: flex;
  gap: 6px;
  align-items: center;
}
.category-btn a {
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: #a89ee8;
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.category-btn a:hover {
  background: rgba(108, 92, 231, 0.35);
  color: #fff;
}

/* --- Width utility classes for game page sidebars --- */
@media (min-width: 992px) {
  .w-lg-300 { width: 300px !important; }
  .w-lg-200 { width: 200px !important; }
}

/* ===== Game detail page ===== */
.game-player {
  background: var(--bg-card, #1e1e20);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.desc-game { padding: 8px 0; }

.heading-page { margin-bottom: 1rem; text-align: center; }
.heading-page h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.heading-page p { font-size: 0.85rem; color: #888; margin: 0; }

.rating-star svg { margin-right: 2px; color: #fa9e25; }

.btn-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-square.btn-sm { width: 2rem; height: 2rem; }
.btn-ghost:hover { background: rgba(108,92,231,0.25); }

.fs-sm { font-size: 0.875rem !important; }

.progress {
  display: flex;
  height: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
.bg-theme { background: #6c5ce7; width: 100%; }

.reaction svg { width: 20px; height: 20px; color: #888; }
.reaction svg:hover { color: #6c5ce7; }
.like-count, .dislike-count { color: #888; font-size: 0.65rem !important; }

.right-name { gap: 4px; }

.card-category a { color: #888; font-size: 0.875rem; }
.card-category a:hover { color: #a89ee8; text-decoration: underline; }

/* ===== Footer ===== */
.footer {
  background: #08080f;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #888;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer .container-fluid {
  width: 100%;
  max-width: 1264px;
  margin-left: auto;
  margin-right: auto;
}

.footer .row {
  row-gap: 0.8rem;
}

.footer .fs-xs {
  color: #a5abbe;
  line-height: 1.55;
}

.footer .fs-xs p {
  margin: 0.2rem 0 0;
}

.footer .nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 0.65rem;
}

.footer .nav-link {
  color: #a7adbf;
  padding: 0.42rem 0.7rem;
  border-radius: 12px;
}

.footer .nav-link.active,
.footer .nav-link:hover {
  color: #f3f5ff;
  background: rgba(255,255,255,0.08);
}

@media (max-width: 991px) {
  .footer .col-12.col-md-6.col-lg-8.d-md-flex.justify-content-end {
    justify-content: flex-start !important;
  }

  .footer .nav {
    justify-content: flex-start;
  }
}

/* ===== Override Bootstrap light theme with dark vars ===== */
[data-bs-theme="light"] {
  --bs-body-bg: #0f0f10;
  --bs-body-color: #e5e7eb;
  --bs-secondary-color: #a1a5b7;
  --bs-border-color: rgba(255,255,255,0.1);
  --bs-navbar-color: #e5e7eb;
  --bs-navbar-hover-color: #fff;
  --bs-navbar-active-color: #fff;
  --bs-nav-link-color: #a1a5b7;
  --bs-nav-link-hover-color: #fff;
  --bs-link-color: #a89ee8;
  --bs-link-hover-color: #fff;
}
.navbar.bg-body, nav.navbar {
  background-color: #16161a !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ===== Home hero ===== */
.g-hero {
  padding: 2.5rem 0 2rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(108, 92, 231, 0.24), transparent 42%),
    radial-gradient(circle at 86% 4%, rgba(52, 211, 153, 0.2), transparent 30%),
    linear-gradient(180deg, #12121f 0%, #0f0f10 60%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.g-hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 0.9rem;
  letter-spacing: -0.02em;
}

.g-hero-sub {
  max-width: 760px;
  margin: 0 auto 1.2rem;
  color: #b7bdd2;
  font-size: 1.02rem;
}

.g-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

main > section.g-hero > .container > .g-hero-badges {
  justify-content: center !important;
}

.g-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #dfe4fa;
  font-size: 0.76rem;
  font-weight: 600;
}

.g-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.2rem 0 1.4rem;
}

.g-stat-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
}

.g-stat-value {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.g-stat-label {
  font-size: 0.73rem;
  color: #b3b8c9;
  margin-top: 0.18rem;
}

.g-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6c5ce7 0%, #5a67e8 100%);
  border: 1px solid rgba(255,255,255,0.16);
}

.g-hero-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.35);
}

@media (max-width: 991px) {
  .g-hero {
    padding: 1.7rem 0 1.5rem;
  }

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

/* ===== Home content sections ===== */
.home-info,
.home-why,
.home-faq {
  background: transparent;
}

.home-copy {
  color: #c6cbda;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.home-copy p {
  margin-bottom: 0.9rem;
}

.home-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-why-card {
  background: #171724;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-why-card h4 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f3ff;
  line-height: 1.3;
  min-height: 2.4em;
}

.home-why-card p {
  margin: 0;
  color: #b5bbcf;
  font-size: 0.83rem;
  line-height: 1.6;
}

.home-faq .accordion-item {
  background: #161623;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.home-faq .accordion-button {
  background: #161623;
  color: #f4f6ff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: none;
  text-align: left;
  justify-content: flex-start;
}

.home-faq .accordion-button:not(.collapsed) {
  background: #1c1c2b;
  color: #fff;
}

.home-faq .accordion-button::after {
  filter: invert(1) grayscale(1);
  opacity: 0.9;
}

.home-faq .accordion-body {
  color: #bcc2d5;
  background: #12121d;
  font-size: 0.88rem;
  line-height: 1.65;
  text-align: left;
}

.home-faq .accordion-body p {
  margin-bottom: 0.65rem;
}

.home-faq .accordion-body p:last-child {
  margin-bottom: 0;
}

.home-faq .accordion-body a {
  color: #a89ee8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-faq .accordion-body a:hover {
  color: #c5bef5;
}

.home-faq .accordion {
  max-width: 1100px;
  margin: 0 auto;
}

.home-faq .heading-page,
.home-faq .heading-page p {
  text-align: center;
}

main > section#faq.home-faq > .container-fluid > .heading-page,
main > section#faq.home-faq > .container-fluid > .heading-page p {
  text-align: center !important;
}

@media (max-width: 991px) {
  .home-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .home-why-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .home-why-card {
    padding: 0.75rem;
  }

  .home-why-card h4 {
    min-height: 0;
    margin-bottom: 0.3rem;
  }
}
