/* Modern Style CSS for SRO HERO Website */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #3498db;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Theme Right (đỏ/vàng) – đồng bộ với banner phải */
.theme-right {
  /* màu nền và nhấn */
  --theme-primary: #8b1c1c;          /* đỏ sậm */
  --theme-primary-dark: #6f0f0f;     /* đỏ tối */
  --theme-accent: #f7d46b;           /* vàng nhấn */
  --theme-accent-dark: #e0c05a;      /* vàng tối */
  --theme-text: #f8f3e6;             /* chữ sáng ngà */
}

/* Header/Nav theo theme */
.theme-right .site-header {
  background: linear-gradient(180deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  color: var(--theme-text);
}
.theme-right .main-nav {
  background: linear-gradient(180deg, #4a0f0f 0%, #2b0909 100%);
  border-bottom: 2px solid rgba(247, 212, 107, 0.25);
}
.theme-right .main-nav .nav-link {
  color: #ffe9b0;
  background: linear-gradient(180deg, #7a1a1a 0%, #5c1313 100%);
  border: 1px solid rgba(247, 212, 107, 0.25);
}
.theme-right .main-nav .nav-link:hover {
  filter: brightness(1.06);
}
.theme-right .main-nav .nav-link.active {
  background: linear-gradient(180deg, #c22c2c 0%, #991919 100%);
  border-color: rgba(247, 212, 107, 0.55);
  color: #fff5d6;
  text-shadow: 0 0 6px rgba(247, 212, 107, 0.45);
}

/* Nút theo theme */
.btn-theme {
  background: linear-gradient(180deg, #c22c2c 0%, #991919 100%);
  color: #fff5d6;
  border: 1px solid rgba(247, 212, 107, 0.55);
  box-shadow: 0 4px 12px rgba(153, 25, 25, 0.35);
}
.btn-theme:hover { filter: brightness(1.06); transform: translateY(-1px); }
.badge-theme { background-color: var(--theme-accent); color: #4a2b00; }
.card-theme .card-header { background: linear-gradient(180deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%); color: var(--theme-text); }
.card-theme { border-color: rgba(247,212,107,0.35); }

/* Chip theo theme */
.chip.theme {
  background: rgba(247, 212, 107, 0.18);
  color: #4a2b00;
  border: 1px solid rgba(247, 212, 107, 0.35);
}

/* ===== Account Manager Redesign ===== */
.account-hero {
  background: linear-gradient(135deg, #8b1c1c 0%, #c22c2c 60%, #f7d46b 120%);
  color: #fff5d6;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 22px rgba(153, 25, 25, 0.25);
  border: 1px solid rgba(247, 212, 107, 0.35);
}
.account-hero .hero-title { font-weight: 700; letter-spacing: .3px; }
.account-hero .hero-meta { opacity: .95; }
.account-hero .progress { height: 10px; border-radius: 10px; background: rgba(0,0,0,.25); }
.account-hero .progress-bar { background: linear-gradient(180deg,#f7d46b,#e0c05a); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; }
.feature-card { border-radius: 14px; border: 1px solid rgba(247,212,107,.25); background: rgba(40, 13, 13, 0.65); backdrop-filter: blur(2px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.feature-card .card-header { background: linear-gradient(180deg,#7a1a1a,#5c1313); color:#ffe9b0; border-bottom: 1px solid rgba(247,212,107,.35); border-top-left-radius:14px; border-top-right-radius:14px; }
.feature-card .card-body { padding: 14px; }
.feature-card:hover { transform: translateY(-2px); transition: transform .15s ease, filter .15s ease; filter: brightness(1.02); }

.feature-actions .btn { text-align: left; border: 1px solid rgba(247,212,107,.25); color:#ffe9b0; background: linear-gradient(180deg,#4a0f0f,#2b0909); }
.feature-actions .btn:hover { filter: brightness(1.06); }

.cta-primary { background: linear-gradient(180deg,#c22c2c,#991919); color:#fff5d6; border: 1px solid rgba(247,212,107,.55); box-shadow: 0 6px 14px rgba(153,25,25,.35); }
.cta-primary:hover { filter: brightness(1.06); }
.cta-secondary { background: linear-gradient(180deg,#f7d46b,#e0c05a); color:#4a2b00; border: 1px solid rgba(153,25,25,.35); }
.cta-secondary:hover { filter: brightness(1.06); }

@media (max-width: 576px) {
  .account-hero { padding: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ===== Global Theme Overrides under .theme-right ===== */
.theme-right {
  background-color: #1b1010;
  color: #ffe9b0;
}
.theme-right a { color: #f7d46b; }
.theme-right a:hover { color: #ffea8e; }

.theme-right .content-card,
.theme-right .card { background: rgba(40,13,13,0.55); border: 1px solid rgba(247,212,107,.25); }
.theme-right .card-header { background: linear-gradient(180deg,#7a1a1a,#5c1313); color:#ffe9b0; border-bottom: 1px solid rgba(247,212,107,.35); }

/* Buttons */
.theme-right .btn { border-radius: 10px; }
.theme-right .btn-primary { background: linear-gradient(180deg,#c22c2c,#991919); color:#fff5d6; border: 1px solid rgba(247,212,107,.55); }
.theme-right .btn-success { background: linear-gradient(180deg,#f7d46b,#e0c05a); color:#4a2b00; border: 1px solid rgba(153,25,25,.35); }
.theme-right .btn-info { background: linear-gradient(180deg,#7a1a1a,#5c1313); color:#ffe9b0; border: 1px solid rgba(247,212,107,.35); }
.theme-right .btn-warning { background: linear-gradient(180deg,#f7d46b,#e0c05a); color:#4a2b00; border: 1px solid rgba(153,25,25,.35); }
.theme-right .btn-danger { background: linear-gradient(180deg,#991919,#6f0f0f); color:#fff5d6; border: 1px solid rgba(247,212,107,.55); }

.theme-right .btn-outline-primary,
.theme-right .btn-outline-success,
.theme-right .btn-outline-info,
.theme-right .btn-outline-warning,
.theme-right .btn-outline-danger { color:#ffe9b0; background: linear-gradient(180deg,#4a0f0f,#2b0909); border: 1px solid rgba(247,212,107,.35); }
.theme-right .btn-outline-warning { color:#4a2b00; }
.theme-right .btn-outline-danger { color:#fff5d6; }
.theme-right .btn:hover { filter: brightness(1.06); }

/* Forms */
.theme-right .form-control, .theme-right .form-select { background: rgba(30,10,10,.65); border: 1px solid rgba(247,212,107,.25); color:#ffe9b0; }
.theme-right .form-control::placeholder { color: #e8d9a6; opacity: .85; }
.theme-right .input-group-text { background: rgba(30,10,10,.65); border: 1px solid rgba(247,212,107,.25); color:#ffe9b0; }
/* Làm nổi bật chú thích form (.form-text) */
.form-text { color: #ffea8e; }
.theme-right { --bs-secondary-color: var(--theme-accent); }

/* Tables */
.theme-right .table { color:#ffe9b0; }
.theme-right .table thead { background: linear-gradient(180deg,#7a1a1a,#5c1313); color:#ffe9b0; }
.theme-right .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(247,212,107,.08); }
.theme-right .table-bordered { border-color: rgba(247,212,107,.25); }
.theme-right .table-bordered > :not(caption) > * { border-color: rgba(247,212,107,.25); }

/* Ranking specific accents */
.theme-right .ranking-hero { background: linear-gradient(135deg,#8b1c1c,#c22c2c); color:#fff5d6; border:1px solid rgba(247,212,107,.35); border-radius:14px; padding:16px; box-shadow:0 8px 18px rgba(153,25,25,.25); }
.theme-right .ranking-nav { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.theme-right .ranking-nav .btn.active { background: linear-gradient(180deg,#c22c2c,#991919); color:#fff5d6; border:1px solid rgba(247,212,107,.55); }
.theme-right .rank-badge { display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:28px; border-radius:50%; font-weight:700; }
.theme-right .rank-gold { background: linear-gradient(180deg,#f7d46b,#e0c05a); color:#4a2b00; box-shadow:0 0 0 2px rgba(153,25,25,.35) inset; }
.theme-right .rank-silver { background: linear-gradient(180deg,#dfe4ea,#ced6e0); color:#2f3542; }
.theme-right .rank-bronze { background: linear-gradient(180deg,#e3a373,#d18a59); color:#4a2b00; }
.theme-right .table .table-primary { background-color: rgba(247,212,107,.18); }

/* Alerts */
.theme-right .alert { border: 1px solid rgba(247,212,107,.35); }
.theme-right .alert-danger { background: rgba(153,25,25,.15); color: #ffbfbf; }
.theme-right .alert-success { background: rgba(247,212,107,.2); color: #4a2b00; }
.theme-right .alert-primary { background: rgba(122,26,26,.18); color:#ffe9b0; }

/* Progress bars */
.theme-right .progress { height: 16px; border-radius: 12px; background: rgba(0,0,0,.25); }
.theme-right .progress-bar { background: var(--theme-accent); color: #2b0b00; font-weight: 800; font-size: 0.85rem; line-height: 1; display: flex; align-items: center; justify-content: center; white-space: nowrap; min-width: 38px; text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 0 6px rgba(0,0,0,.35); }
/* Exp-specific color to make it stand out more */
.theme-right .exp-bar { background: linear-gradient(90deg, #ffbd4a 0%, #ffd56e 55%, #ffe89a 100%); }

/* Nav / Footer harmonize */
.theme-right .navbar, .theme-right .main-nav { background: linear-gradient(180deg,#4a0f0f,#2b0909); border-bottom: 2px solid rgba(247,212,107,.25); }
.theme-right .navbar .nav-link, .theme-right .main-nav .nav-link { color:#ffe9b0; }
.theme-right .navbar .nav-link:hover, .theme-right .main-nav .nav-link:hover { filter: brightness(1.08); }
.theme-right footer { border-top: 1px solid rgba(247,212,107,.25); color:#e8d9a6; }

/* ===== Download Page ===== */
.theme-right .download-page .download-card { border-radius: 14px; overflow: hidden; }
.theme-right .download-page .card-header { background: linear-gradient(180deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%); color: var(--theme-text); border-bottom: 1px solid rgba(247,212,107,.35); }
.theme-right .download-page .download-section { margin-bottom: 18px; transition: all .2s ease; }
.theme-right .download-page .download-header { background: linear-gradient(180deg,#7a1a1a,#5c1313); color:#ffe9b0; border-radius: 12px 12px 0 0; padding: 12px 16px; font-weight: 600; display:flex; align-items:center; box-shadow: 0 8px 18px rgba(153,25,25,.15); }
.theme-right .download-page .download-header i { font-size: 1.25rem; margin-right: 10px; }
.theme-right .download-page .download-header h4 { color: #fff5d6; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.theme-right .download-page .download-content { background: rgba(40,13,13,.55); border: 1px solid rgba(247,212,107,.25); border-top: none; border-radius: 0 0 12px 12px; padding: 16px; box-shadow: 0 4px 10px rgba(0,0,0,.25); }

/* Tables inside download */
.theme-right .download-page .table-custom { border-radius: 10px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.theme-right .download-page .table-custom thead { background: linear-gradient(180deg,#7a1a1a,#5c1313); color:#ffe9b0; }
.theme-right .download-page .table { color:#fff5d6; }
.theme-right .download-page .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(247,212,107,.12); }

/* File metadata */
.theme-right .download-page .file-info { display:flex; flex-direction:column; }
.theme-right .download-page .file-name { font-weight:700; color:#021097; margin-bottom:4px; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.theme-right .download-page .file-desc { color:#fd4a03; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.theme-right .download-page .file-note { font-size:.85rem; color:#be06f7; opacity:.98; margin-top:4px; font-style:italic; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.theme-right .download-page .download-count { font-size:.82rem; color:#ffec9c; margin-top:6px; text-shadow: 0 1px 2px rgba(0,0,0,.40); }
.theme-right .download-page a { color:#fff7d1; }
.theme-right .download-page .file-size { font-size:.82rem; background: rgba(247,212,107,.18); color:#4a2b00; padding: 2px 8px; border-radius: 10px; display:inline-block; margin-top:4px; border: 1px solid rgba(247,212,107,.25); }

/* Action buttons */
.theme-right .download-page .download-btn { background: linear-gradient(180deg,#c22c2c,#991919); color:#fff5d6; border: 1px solid rgba(247,212,107,.55); }
.theme-right .download-page .download-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.theme-right .download-page .guide-btn { background: linear-gradient(180deg,#f7d46b,#e0c05a); color:#4a2b00; border: 1px solid rgba(153,25,25,.35); }
.theme-right .download-page .guide-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Loại bỏ font tùy chỉnh có thể gây lỗi hiển thị */
/* @font-face VnTahoma bị tạm thời vô hiệu hóa */
/*
@font-face {
  font-family: 'VnTahoma';
  src: url('../VnTahoma.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  /* Nền trang: dùng ảnh bg2.jpg thay vì nền trắng */
  background-color: var(--light-bg); /* fallback */
  background-image: url('../images/bg2.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
}

/* Ngăn tràn ngang trên thiết bị nhỏ */
html, body { overflow-x: hidden; }

/* Tối ưu hiển thị cho mobile: tránh nền cố định gây treo/đen màn hình trên iOS/Android */
@media (max-width: 991.98px) {
  body {
    background-attachment: scroll; /* bỏ fixed ở mobile */
    background-position: center top;
  }
  .hero-section {
    min-height: 420px;
    padding: 1rem 0;
  }
  .hero-section .container {
    margin-top: 6rem; /* giảm từ 26rem để nội dung không bị đẩy quá xa */
  }
  /* Giảm hiệu ứng mờ để tăng hiệu năng trên mobile */
  .content-card, .card { backdrop-filter: none; }
  /* Điều chỉnh nav cho màn hình hẹp */
  .main-nav .nav { gap: 0.3rem; }
  .main-nav .nav-link { padding: 0.5rem 0.8rem; font-size: 0.9rem; }
  /* Tối ưu vùng download */
  .download-page .download-content { padding: 12px; }
  .download-page .download-header h4 { font-size: 1rem; }
  .download-page .table { font-size: 0.94rem; }
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

/* Header Styles */
.site-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--box-shadow);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  max-height: 60px;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-left: 1rem;
  /* SRO TRƯỜNG AN */
}

/* Navigation - Game style */
.main-nav {
  background: linear-gradient(180deg, #2b2f3a 0%, #1c2130 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.main-nav .container { gap: 0.4rem; }

.main-nav .nav { gap: 0.4rem; }

.main-nav .nav-link {
  position: relative;
  color: #e9edf5;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #3a3f4b 0%, #262b36 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, filter 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.main-nav .nav-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 6px 14px rgba(0, 0, 0, 0.40);
}

.main-nav .nav-link.active {
  background: linear-gradient(180deg, #ff6b3d 0%, #d83a12 100%);
  color: #fff;
  border-color: rgba(255, 120, 80, 0.8);
  text-shadow: 0 0 6px rgba(255, 160, 120, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px rgba(216, 58, 18, 0.35);
}

.main-nav .nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 120, 80, 0.9), transparent);
  filter: blur(0.6px);
  border-radius: 2px;
}
  color: white;
  font-weight: 500;
  padding: 0.8rem 1.2rem;
  transition: all 0.3s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background-color: var(--secondary-color);
  color: white;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/bg_header.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 2rem 0 1rem; /* theo yêu cầu: 2rem 0 1rem */
  min-height: 700px;    /* tăng chiều cao để Roc to hơn vẫn hiển thị */
  text-align: center;
  position: relative; /* cho phép overlay nằm bên trong */
  overflow: hidden; /* tránh tràn hiệu ứng */
}

/* Đẩy toàn bộ nội dung trong Hero xuống một chút */
.hero-section .container {
  margin-top: 6rem; /* nếu cần nhiều hơn, tăng lên 1.5rem-2rem */
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Overlay Roc phủ toàn bộ vùng nội dung Hero */
.hero-section .container { position: relative; }

.hero-roc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('../images/roc.png') no-repeat center bottom;
  /* phóng to ảnh Roc hơn nữa, giới hạn bằng clamp để tránh quá lớn */
  background-size: clamp(1000px, 120%, 1600px);
  animation: rocFloatBg 10s ease-in-out infinite alternate;
}

@keyframes rocFloatBg {
  0%   { transform: translateY(24px); }
  100% { transform: translateY(-36px); }
}

/* đảm bảo tiêu đề, mô tả và nút nằm trên overlay */
.hero-section h1,
.hero-section p,
.hero-section .action-buttons {
  position: relative;
  z-index: 1;
}

/* Hiệu ứng lửa bay từ dưới lên trong Hero */
.hero-fire {
  position: absolute;
  left: 0; right: 0; bottom: -10px; /* bắt đầu hơi dưới đáy */
  height: 50%; /* tăng vùng lửa dưới để mật độ cao hơn */
  z-index: 0; /* nằm dưới nội dung, trên nền */
  pointer-events: none;
  overflow: visible;
}
.hero-fire .spark {
  position: absolute;
  bottom: 0;
  width: 10px; height: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(255,160,0,0.9) 0%, rgba(255,80,0,0.6) 40%, rgba(255,80,0,0) 70%);
  filter: blur(0.5px);
  border-radius: 50%;
  opacity: 0.85;
  mix-blend-mode: screen;
  animation: riseSpark 6s linear infinite;
}
@keyframes riseSpark {
  0% { transform: translateY(0) scale(0.8); opacity: 0.0; }
  10% { opacity: 0.9; }
  80% { opacity: 0.7; }
  100% { transform: translateY(-520px) scale(1.6); opacity: 0; }
}

/* vị trí và tốc độ đa dạng cho các tia lửa */
.hero-fire .spark:nth-child(1) { left: 10%; animation-duration: 7s; }
.hero-fire .spark:nth-child(2) { left: 18%; animation-duration: 6.5s; animation-delay: 0.5s; }
.hero-fire .spark:nth-child(3) { left: 26%; animation-duration: 7.5s; animation-delay: 1s; }
.hero-fire .spark:nth-child(4) { left: 35%; animation-duration: 6.8s; animation-delay: 0.8s; }
.hero-fire .spark:nth-child(5) { left: 44%; animation-duration: 7.2s; animation-delay: 1.2s; }
.hero-fire .spark:nth-child(6) { left: 53%; animation-duration: 6.9s; animation-delay: 0.4s; }
.hero-fire .spark:nth-child(7) { left: 62%; animation-duration: 7.6s; animation-delay: 1.1s; }
.hero-fire .spark:nth-child(8) { left: 71%; animation-duration: 6.7s; animation-delay: 0.6s; }
.hero-fire .spark:nth-child(9) { left: 80%; animation-duration: 7.3s; animation-delay: 0.9s; }
.hero-fire .spark:nth-child(10){ left: 25%; animation-duration: 6.4s; animation-delay: 1.4s; }
.hero-fire .spark:nth-child(11){ left: 50%; animation-duration: 6.2s; animation-delay: 1.7s; }
.hero-fire .spark:nth-child(12){ left: 75%; animation-duration: 6.8s; animation-delay: 1.9s; }

/* Lửa từ hai bên bay vào giữa */
.hero-fire-side {
  position: absolute;
  bottom: -10px;
  height: 55%;
  width: 35%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.hero-fire-side.left { left: -20px; }
.hero-fire-side.right { right: -20px; }
.hero-fire-side .spark-side {
  position: absolute;
  bottom: 0;
  width: 10px; height: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(255,180,0,0.95) 0%, rgba(255,90,0,0.65) 40%, rgba(255,90,0,0) 70%);
  filter: blur(0.5px);
  border-radius: 50%;
  opacity: 0.9;
  mix-blend-mode: screen;
  animation: riseSideLeft 6.6s linear infinite;
}
.hero-fire-side.right .spark-side { animation-name: riseSideRight; }

@keyframes riseSideLeft {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0; }
  10% { opacity: 0.95; }
  100% { transform: translate(220px, -520px) scale(1.5); opacity: 0; }
}
@keyframes riseSideRight {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0; }
  10% { opacity: 0.95; }
  100% { transform: translate(-220px, -520px) scale(1.5); opacity: 0; }
}

/* đa dạng vị trí/tốc độ cho lửa hai bên */
.hero-fire-side .spark-side:nth-child(1) { left: 10%; animation-duration: 6.8s; }
.hero-fire-side .spark-side:nth-child(2) { left: 18%; animation-duration: 6.2s; animation-delay: 0.4s; }
.hero-fire-side .spark-side:nth-child(3) { left: 26%; animation-duration: 7.1s; animation-delay: 0.9s; }
.hero-fire-side .spark-side:nth-child(4) { left: 34%; animation-duration: 6.5s; animation-delay: 0.7s; }
.hero-fire-side .spark-side:nth-child(5) { left: 42%; animation-duration: 7.3s; animation-delay: 1.1s; }
.hero-fire-side .spark-side:nth-child(6) { left: 50%; animation-duration: 6.6s; animation-delay: 0.5s; }
.hero-fire-side .spark-side:nth-child(7) { left: 58%; animation-duration: 7.4s; animation-delay: 1.0s; }
.hero-fire-side .spark-side:nth-child(8) { left: 66%; animation-duration: 6.7s; animation-delay: 0.6s; }
.hero-fire-side .spark-side:nth-child(9) { left: 74%; animation-duration: 7.2s; animation-delay: 1.3s; }
.hero-fire-side .spark-side:nth-child(10){ left: 82%; animation-duration: 6.9s; animation-delay: 0.8s; }
.hero-fire-side .spark-side:nth-child(11){ left: 20%; animation-duration: 6.4s; animation-delay: 1.5s; }
.hero-fire-side .spark-side:nth-child(12){ left: 60%; animation-duration: 6.3s; animation-delay: 1.8s; }

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  position: relative; /* để định vị ảnh Roc ngay sau nút */
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
  transform: translateY(-2px);
}

/* Content Cards */
/* Content Cards - Dark Glass look */
.content-card {
  background-color: rgba(16, 14, 12, 0.6);
  color: #f8f9fa;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
}

.content-card:hover {
  transform: translateY(-5px);
}

.content-card .list-group-item {
  background-color: rgba(0, 0, 0, 0.25);
  color: #e9ecef;
  border-color: rgba(255, 255, 255, 0.08);
}

.card-title {
  color: #f8f9fa;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.5rem;
}

/* Rankings Table */
.rankings-table {
  width: 100%;
}

.rankings-table th {
  background-color: rgba(0, 0, 0, 0.65);
  color: #f8f9fa;
  padding: 0.8rem;
}

.rankings-table td {
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8f9fa;
}

.rankings-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.04);
}

.rankings-table tr:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--secondary-color);
}

/* Login/Register Forms */
.auth-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-control {
  border-radius: var(--border-radius);
  padding: 0.8rem;
  margin-bottom: 1rem;
}

/* ==========================
   Dark Glass Overlay Theme
   ========================== */
.card {
  background-color: rgba(16, 14, 12, 0.6);
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
}

.card .card-header {
  background-color: rgba(0, 0, 0, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.table {
  color: #f8f9fa;
}

.table thead {
  background-color: rgba(0, 0, 0, 0.65);
}

.table tbody tr {
  background-color: rgba(0, 0, 0, 0.35);
}

.table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.45);
}

.table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.alert {
  backdrop-filter: blur(2px);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.92);
  color: #212529;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .site-title {
    font-size: 1.4rem;
  }
}

/* Custom Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.modal {
  --bs-modal-zindex: 1200;
}

.modal-backdrop {
  --bs-backdrop-zindex: 1190;
}

/* Loading Indicator */
.loading {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================
   Roc center overlay & animation
   ========================== */
.roc-center {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1100;
  width: min(28vw, 320px);
  max-width: 90%;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
  pointer-events: none; /* không cản click vào nội dung */
  animation: rocFloat 3.5s ease-in-out infinite alternate;
}

@keyframes rocFloat {
  0%   { transform: translate(-50%, calc(-50% - 8px)); }
  100% { transform: translate(-50%, calc(-50% + 8px)); }
}

/* bỏ phiên bản ảnh Roc nhỏ gắn vào sau nút; thay bằng overlay lớn */

.noel-lights {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 78px;
  z-index: 1090;
  pointer-events: none;
}

.noel-lights::before {
  content: "";
  position: absolute;
  left: -4vw;
  right: -4vw;
  top: 20px;
  height: 42px;
  border-top: 3px solid rgba(50, 28, 10, 0.85);
  border-radius: 0 0 65% 65%;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
  opacity: 0.85;
}

.noel-lights-inner {
  position: absolute;
  inset: 10px 0 0 0;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  padding: 0 10px;
  gap: 10px;
}

.noel-bulb {
  position: relative;
  width: 11px;
  height: 15px;
  border-radius: 50%;
  background: var(--bulb-color, #ff3b3b);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.08), 0 0 14px var(--bulb-color, #ff3b3b), 0 0 30px var(--bulb-color, #ff3b3b);
  transform: translateY(var(--drop, 14px)) rotate(var(--tilt, 0deg));
  opacity: clamp(0.65, var(--glow, 1), 1);
  animation: noelTwinkle 2.8s ease-in-out var(--twinkle-delay, 0s) infinite, noelSwing 3.6s ease-in-out var(--swing-delay, 0s) infinite;
}

.noel-bulb::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(70, 70, 70, 0.95), rgba(20, 20, 20, 0.95));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.noel-bulb::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 1px;
  height: 16px;
  transform: translateX(-50%);
  background: rgba(80, 52, 22, 0.9);
  opacity: 0.85;
}

@keyframes noelTwinkle {
  0%,
  100% {
    filter: brightness(0.92);
  }
  50% {
    filter: brightness(1.22);
  }
}

@keyframes noelSwing {
  0%,
  100% {
    transform: translateY(var(--drop, 14px)) rotate(calc(var(--tilt, 0deg) - 2deg));
  }
  50% {
    transform: translateY(var(--drop, 14px)) rotate(calc(var(--tilt, 0deg) + 2deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .noel-bulb {
    animation: none;
  }
}
.hero-section h1 {
  text-shadow: 0 0 10px rgba(247, 212, 107, 0.65), 0 0 26px rgba(255, 106, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.75);
  animation: heroTextGlow 2.6s ease-in-out infinite alternate;
}

.hero-section p {
  color: rgba(255, 245, 214, 0.95);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.75), 0 0 18px rgba(247, 212, 107, 0.25);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(247, 212, 107, 0.22);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: inline-block;
  backdrop-filter: blur(2px);
  box-shadow: 0 0 18px rgba(247, 212, 107, 0.12), 0 0 40px rgba(255, 106, 0, 0.08);
  animation: heroTextPulse 3.8s ease-in-out infinite;
}

@keyframes heroTextGlow {
  0% {
    text-shadow: 0 0 10px rgba(247, 212, 107, 0.55), 0 0 22px rgba(255, 106, 0, 0.25), 0 6px 20px rgba(0, 0, 0, 0.75);
  }
  100% {
    text-shadow: 0 0 16px rgba(247, 212, 107, 0.75), 0 0 34px rgba(255, 106, 0, 0.42), 0 10px 26px rgba(0, 0, 0, 0.8);
  }
}

@keyframes heroTextPulse {
  0% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero-section p {
    padding: 0.6rem 0.75rem;
  }
}

.milestone-item-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(247, 212, 107, 0.18);
}

.milestone-item-icon::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  padding: 2px;
  background: conic-gradient(from 0deg, rgba(247, 212, 107, 1), rgba(255, 106, 0, 0.95), rgba(124, 58, 237, 0.9), rgba(247, 212, 107, 1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: milestoneIconRing 2.4s linear infinite;
  filter: drop-shadow(0 0 10px rgba(247, 212, 107, 0.55));
  opacity: 0.95;
}

.milestone-item-icon > i,
.milestone-item-icon > img {
  position: relative;
  z-index: 1;
}

@keyframes milestoneIconRing {
  to { transform: rotate(360deg); }
}

.theme-silkroad {
  --sro-bg: #070402;
  --sro-bg-2: #120a06;
  --sro-panel: rgba(24, 16, 10, 0.78);
  --sro-panel-2: rgba(18, 12, 8, 0.82);
  --sro-border: rgba(226, 189, 104, 0.35);
  --sro-border-strong: rgba(226, 189, 104, 0.6);
  --sro-text: #f2e8d2;
  --sro-muted: rgba(242, 232, 210, 0.7);
  --sro-gold: #e2bd68;
  --sro-gold-2: #c79d3a;
  --sro-jade: #2fb59b;
  --sro-jade-2: #1a8c77;
  --sro-danger: #b6312e;
  --sro-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  --secondary-color: var(--sro-gold);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(226, 189, 104, 0.14), transparent 60%),
    radial-gradient(900px 600px at 15% 10%, rgba(47, 181, 155, 0.10), transparent 55%),
    radial-gradient(900px 600px at 85% 15%, rgba(182, 49, 46, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(7, 4, 2, 0.92), rgba(7, 4, 2, 0.98)),
    url("../images/bg2.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--sro-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
}

.theme-silkroad a {
  color: var(--sro-gold);
  text-decoration: none;
}

.theme-silkroad a:hover {
  color: #ffe0a0;
}

.theme-silkroad .site-header {
  background:
    linear-gradient(180deg, rgba(18, 10, 6, 0.9), rgba(7, 4, 2, 0.92)),
    url("../images/bg_menu.png");
  border-bottom: 1px solid rgba(226, 189, 104, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.theme-silkroad .main-nav {
  background:
    linear-gradient(180deg, rgba(24, 16, 10, 0.88), rgba(12, 8, 5, 0.92)),
    url("../images/bg_navmenu.jpg");
  border-bottom: 1px solid rgba(226, 189, 104, 0.28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.theme-silkroad .main-nav .nav-link {
  color: var(--sro-text);
  background:
    linear-gradient(180deg, rgba(55, 38, 24, 0.85), rgba(24, 16, 10, 0.85));
  border: 1px solid rgba(226, 189, 104, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 16px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}

.theme-silkroad .main-nav .nav-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.theme-silkroad .main-nav .nav-link.active {
  background: linear-gradient(180deg, rgba(226, 189, 104, 0.98), rgba(199, 157, 58, 0.98));
  color: #2a180b;
  border-color: rgba(255, 236, 175, 0.65);
  text-shadow: none;
}

.theme-silkroad .hero-section {
  background:
    linear-gradient(180deg, rgba(7, 4, 2, 0.72), rgba(7, 4, 2, 0.92)),
    url("../images/bg_header.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(226, 189, 104, 0.22);
}

.theme-silkroad .hero-section h1 {
  letter-spacing: 0.8px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.theme-silkroad .hero-section p {
  color: rgba(242, 232, 210, 0.85);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.theme-silkroad .content-card,
.theme-silkroad .card {
  background: var(--sro-panel);
  border: 1px solid var(--sro-border);
  box-shadow: var(--sro-shadow);
  backdrop-filter: blur(2px);
}

.theme-silkroad .card-header {
  background:
    linear-gradient(180deg, rgba(55, 38, 24, 0.92), rgba(24, 16, 10, 0.92));
  border-bottom: 1px solid rgba(226, 189, 104, 0.28);
  color: var(--sro-text);
}

.theme-silkroad .card-title,
.theme-silkroad .title-section {
  color: #ffe0a0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.theme-silkroad .list-group-item {
  background: rgba(0, 0, 0, 0.18);
  color: var(--sro-text);
  border-color: rgba(226, 189, 104, 0.14);
}

.theme-silkroad .badge.bg-primary,
.theme-silkroad .badge.bg-success,
.theme-silkroad .badge.bg-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.theme-silkroad .form-label {
  color: rgba(242, 232, 210, 0.88);
}

.theme-silkroad .form-control,
.theme-silkroad .form-select {
  background: var(--sro-panel-2);
  border: 1px solid rgba(226, 189, 104, 0.25);
  color: var(--sro-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.theme-silkroad .form-control:focus,
.theme-silkroad .form-select:focus {
  border-color: rgba(226, 189, 104, 0.55);
  box-shadow: 0 0 0 0.18rem rgba(226, 189, 104, 0.15);
}

.theme-silkroad .btn {
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.theme-silkroad .btn-primary {
  background: linear-gradient(180deg, var(--sro-gold), var(--sro-gold-2));
  color: #2a180b;
  border: 1px solid rgba(255, 236, 175, 0.55);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.theme-silkroad .btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.theme-silkroad .btn-secondary {
  background: linear-gradient(180deg, var(--sro-jade), var(--sro-jade-2));
  color: #07110e;
  border: 1px solid rgba(201, 255, 245, 0.35);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.theme-silkroad .btn-secondary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.theme-silkroad .btn-outline-light,
.theme-silkroad .btn-outline-secondary,
.theme-silkroad .btn-outline-info {
  color: var(--sro-text);
  background: linear-gradient(180deg, rgba(24, 16, 10, 0.9), rgba(12, 8, 5, 0.9));
  border: 1px solid rgba(226, 189, 104, 0.26);
}

.theme-silkroad .btn-outline-light:hover,
.theme-silkroad .btn-outline-secondary:hover,
.theme-silkroad .btn-outline-info:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.theme-silkroad .btn-warning {
  background: linear-gradient(180deg, rgba(226, 189, 104, 0.98), rgba(199, 157, 58, 0.98));
  color: #2a180b;
  border: 1px solid rgba(255, 236, 175, 0.55);
}

.theme-silkroad .btn-danger {
  background: linear-gradient(180deg, #c33a36, var(--sro-danger));
  border: 1px solid rgba(255, 214, 214, 0.26);
}

.theme-silkroad .dropdown-menu {
  background: rgba(12, 8, 5, 0.94);
  border: 1px solid rgba(226, 189, 104, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.theme-silkroad .dropdown-item {
  color: rgba(242, 232, 210, 0.9);
}

.theme-silkroad .dropdown-item:hover,
.theme-silkroad .dropdown-item:focus {
  background: rgba(226, 189, 104, 0.16);
  color: #ffe0a0;
}

.theme-silkroad .table {
  --bs-table-bg: rgba(12, 8, 5, 0.85);
  --bs-table-color: var(--sro-text);
  --bs-table-border-color: rgba(226, 189, 104, 0.18);
  --bs-table-striped-bg: rgba(226, 189, 104, 0.08);
  --bs-table-striped-color: var(--sro-text);
  --bs-table-hover-bg: rgba(226, 189, 104, 0.12);
  --bs-table-hover-color: var(--sro-text);
}

.theme-silkroad .table thead th {
  color: #ffe0a0;
  background: linear-gradient(180deg, rgba(55, 38, 24, 0.92), rgba(24, 16, 10, 0.92));
  border-bottom-color: rgba(226, 189, 104, 0.28);
}

.theme-silkroad .progress {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(226, 189, 104, 0.22);
}

.theme-silkroad .progress-bar {
  background: linear-gradient(90deg, var(--sro-jade), #69d7c2);
}

.theme-silkroad .alert {
  border-color: rgba(226, 189, 104, 0.22);
  background: rgba(12, 8, 5, 0.88);
  color: rgba(242, 232, 210, 0.92);
}

.theme-silkroad .alert-success {
  border-color: rgba(47, 181, 155, 0.45);
}

.theme-silkroad .alert-danger {
  border-color: rgba(182, 49, 46, 0.45);
}

.theme-silkroad .alert-warning {
  border-color: rgba(226, 189, 104, 0.45);
}

.theme-silkroad .site-footer {
  background: linear-gradient(180deg, rgba(12, 8, 5, 0.92), rgba(7, 4, 2, 0.98));
  border-top: 1px solid rgba(226, 189, 104, 0.22);
  color: rgba(242, 232, 210, 0.8);
}

.theme-silkroad .footer-links a {
  color: rgba(242, 232, 210, 0.78);
}

.theme-silkroad .footer-links a:hover {
  color: #ffe0a0;
}

.theme-silkroad .loading {
  border-top-color: var(--sro-gold);
}

.theme-silkroad .bg-dark {
  background-color: rgba(12, 8, 5, 0.88) !important;
}

.theme-silkroad .bg-transparent {
  background-color: transparent !important;
}

.theme-silkroad .text-white {
  color: var(--sro-text) !important;
}

.theme-silkroad .text-muted {
  color: var(--sro-muted) !important;
}

.theme-silkroad .text-warning {
  color: #ffe0a0 !important;
}

.theme-silkroad .text-dark {
  color: #2a180b !important;
}

.theme-silkroad .border-secondary {
  border-color: rgba(226, 189, 104, 0.18) !important;
}

.theme-silkroad .border-warning {
  border-color: rgba(226, 189, 104, 0.45) !important;
}

.theme-silkroad .border-danger {
  border-color: rgba(182, 49, 46, 0.45) !important;
}

.theme-silkroad .bg-warning {
  background: linear-gradient(180deg, rgba(226, 189, 104, 0.96), rgba(199, 157, 58, 0.96)) !important;
}

.theme-silkroad .table.table-dark,
.theme-silkroad .table-dark {
  --bs-table-bg: rgba(12, 8, 5, 0.88);
  --bs-table-color: var(--sro-text);
  --bs-table-border-color: rgba(226, 189, 104, 0.18);
  --bs-table-striped-bg: rgba(226, 189, 104, 0.08);
  --bs-table-striped-color: var(--sro-text);
  --bs-table-hover-bg: rgba(226, 189, 104, 0.12);
  --bs-table-hover-color: var(--sro-text);
}

.theme-silkroad .card.bg-transparent,
.theme-silkroad .content-card.bg-transparent {
  background: var(--sro-panel) !important;
}

.theme-silkroad .col-form-label {
  color: rgba(242, 232, 210, 0.88);
}
/* Navbar icon adjustments */
.main-nav .nav-link .bi {
  font-size: 1.05rem;
  margin-right: 0.5rem;
  vertical-align: -2px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.main-nav .nav-link:hover .bi {
  transform: translateY(-1px) scale(1.08);
  filter: brightness(1.1);
}

.main-nav .nav-link.active .bi {
  filter: drop-shadow(0 0 6px rgba(255, 140, 100, 0.6));
}
.main-nav .nav-link.active {
  background: linear-gradient(180deg, #ff6b3d 0%, #d83a12 100%);
  color: #fff;
  border-color: rgba(255, 120, 80, 0.8);
  text-shadow: 0 0 6px rgba(255, 160, 120, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px rgba(216, 58, 18, 0.35);
}

.main-nav .nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 120, 80, 0.9), transparent);
  filter: blur(0.6px);
  border-radius: 2px;
}
  color: white;
  font-weight: 500;
  padding: 0.8rem 1.2rem;
  transition: all 0.3s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background-color: var(--secondary-color);
  color: white;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/bg_header.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 2rem 0 1rem; /* theo yêu cầu: 2rem 0 1rem */
  min-height: 700px;    /* tăng chiều cao để Roc to hơn vẫn hiển thị */
  text-align: center;
  position: relative; /* cho phép overlay nằm bên trong */
  overflow: hidden; /* tránh tràn hiệu ứng */
}

/* Đẩy toàn bộ nội dung trong Hero xuống một chút */
.hero-section .container {
  margin-top: 16rem; /* nếu cần nhiều hơn, tăng lên 1.5rem-2rem */
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Overlay Roc phủ toàn bộ vùng nội dung Hero */
.hero-section .container { position: relative; }

.hero-roc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('../images/roc.png') no-repeat center bottom;
  /* phóng to ảnh Roc hơn nữa, giới hạn bằng clamp để tránh quá lớn */
  background-size: clamp(1000px, 120%, 1600px);
  animation: rocFloatBg 10s ease-in-out infinite alternate;
}

@keyframes rocFloatBg {
  0%   { transform: translateY(24px); }
  100% { transform: translateY(-36px); }
}

/* đảm bảo tiêu đề, mô tả và nút nằm trên overlay */
.hero-section h1,
.hero-section p,
.hero-section .action-buttons {
  position: relative;
  z-index: 1;
}

/* Hiệu ứng lửa bay từ dưới lên trong Hero */
.hero-fire {
  position: absolute;
  left: 0; right: 0; bottom: -10px; /* bắt đầu hơi dưới đáy */
  height: 50%; /* tăng vùng lửa dưới để mật độ cao hơn */
  z-index: 0; /* nằm dưới nội dung, trên nền */
  pointer-events: none;
  overflow: visible;
}
.hero-fire .spark {
  position: absolute;
  bottom: 0;
  width: 10px; height: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(255,160,0,0.9) 0%, rgba(255,80,0,0.6) 40%, rgba(255,80,0,0) 70%);
  filter: blur(0.5px);
  border-radius: 50%;
  opacity: 0.85;
  mix-blend-mode: screen;
  animation: riseSpark 6s linear infinite;
}
@keyframes riseSpark {
  0% { transform: translateY(0) scale(0.8); opacity: 0.0; }
  10% { opacity: 0.9; }
  80% { opacity: 0.7; }
  100% { transform: translateY(-520px) scale(1.6); opacity: 0; }
}

/* vị trí và tốc độ đa dạng cho các tia lửa */
.hero-fire .spark:nth-child(1) { left: 10%; animation-duration: 7s; }
.hero-fire .spark:nth-child(2) { left: 18%; animation-duration: 6.5s; animation-delay: 0.5s; }
.hero-fire .spark:nth-child(3) { left: 26%; animation-duration: 7.5s; animation-delay: 1s; }
.hero-fire .spark:nth-child(4) { left: 35%; animation-duration: 6.8s; animation-delay: 0.8s; }
.hero-fire .spark:nth-child(5) { left: 44%; animation-duration: 7.2s; animation-delay: 1.2s; }
.hero-fire .spark:nth-child(6) { left: 53%; animation-duration: 6.9s; animation-delay: 0.4s; }
.hero-fire .spark:nth-child(7) { left: 62%; animation-duration: 7.6s; animation-delay: 1.1s; }
.hero-fire .spark:nth-child(8) { left: 71%; animation-duration: 6.7s; animation-delay: 0.6s; }
.hero-fire .spark:nth-child(9) { left: 80%; animation-duration: 7.3s; animation-delay: 0.9s; }
.hero-fire .spark:nth-child(10){ left: 25%; animation-duration: 6.4s; animation-delay: 1.4s; }
.hero-fire .spark:nth-child(11){ left: 50%; animation-duration: 6.2s; animation-delay: 1.7s; }
.hero-fire .spark:nth-child(12){ left: 75%; animation-duration: 6.8s; animation-delay: 1.9s; }

/* Lửa từ hai bên bay vào giữa */
.hero-fire-side {
  position: absolute;
  bottom: -10px;
  height: 55%;
  width: 35%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.hero-fire-side.left { left: -20px; }
.hero-fire-side.right { right: -20px; }
.hero-fire-side .spark-side {
  position: absolute;
  bottom: 0;
  width: 10px; height: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(255,180,0,0.95) 0%, rgba(255,90,0,0.65) 40%, rgba(255,90,0,0) 70%);
  filter: blur(0.5px);
  border-radius: 50%;
  opacity: 0.9;
  mix-blend-mode: screen;
  animation: riseSideLeft 6.6s linear infinite;
}
.hero-fire-side.right .spark-side { animation-name: riseSideRight; }

@keyframes riseSideLeft {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0; }
  10% { opacity: 0.95; }
  100% { transform: translate(220px, -520px) scale(1.5); opacity: 0; }
}
@keyframes riseSideRight {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0; }
  10% { opacity: 0.95; }
  100% { transform: translate(-220px, -520px) scale(1.5); opacity: 0; }
}

/* đa dạng vị trí/tốc độ cho lửa hai bên */
.hero-fire-side .spark-side:nth-child(1) { left: 10%; animation-duration: 6.8s; }
.hero-fire-side .spark-side:nth-child(2) { left: 18%; animation-duration: 6.2s; animation-delay: 0.4s; }
.hero-fire-side .spark-side:nth-child(3) { left: 26%; animation-duration: 7.1s; animation-delay: 0.9s; }
.hero-fire-side .spark-side:nth-child(4) { left: 34%; animation-duration: 6.5s; animation-delay: 0.7s; }
.hero-fire-side .spark-side:nth-child(5) { left: 42%; animation-duration: 7.3s; animation-delay: 1.1s; }
.hero-fire-side .spark-side:nth-child(6) { left: 50%; animation-duration: 6.6s; animation-delay: 0.5s; }
.hero-fire-side .spark-side:nth-child(7) { left: 58%; animation-duration: 7.4s; animation-delay: 1.0s; }
.hero-fire-side .spark-side:nth-child(8) { left: 66%; animation-duration: 6.7s; animation-delay: 0.6s; }
.hero-fire-side .spark-side:nth-child(9) { left: 74%; animation-duration: 7.2s; animation-delay: 1.3s; }
.hero-fire-side .spark-side:nth-child(10){ left: 82%; animation-duration: 6.9s; animation-delay: 0.8s; }
.hero-fire-side .spark-side:nth-child(11){ left: 20%; animation-duration: 6.4s; animation-delay: 1.5s; }
.hero-fire-side .spark-side:nth-child(12){ left: 60%; animation-duration: 6.3s; animation-delay: 1.8s; }

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  position: relative; /* để định vị ảnh Roc ngay sau nút */
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
  transform: translateY(-2px);
}

/* Content Cards */
/* Content Cards - Dark Glass look */
.content-card {
  background-color: rgba(16, 14, 12, 0.6);
  color: #f8f9fa;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
}

.content-card:hover {
  transform: translateY(-5px);
}

.content-card .list-group-item {
  background-color: rgba(0, 0, 0, 0.25);
  color: #e9ecef;
  border-color: rgba(255, 255, 255, 0.08);
}

.card-title {
  color: #f8f9fa;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.5rem;
}

/* Rankings Table */
.rankings-table {
  width: 100%;
}

.rankings-table th {
  background-color: rgba(0, 0, 0, 0.65);
  color: #f8f9fa;
  padding: 0.8rem;
}

.rankings-table td {
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8f9fa;
}

.rankings-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.04);
}

.rankings-table tr:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--secondary-color);
}

/* Login/Register Forms */
.auth-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-control {
  border-radius: var(--border-radius);
  padding: 0.8rem;
  margin-bottom: 1rem;
}

/* ==========================
   Dark Glass Overlay Theme
   ========================== */
.card {
  background-color: rgba(16, 14, 12, 0.6);
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
}

.card .card-header {
  background-color: rgba(0, 0, 0, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.table {
  color: #f8f9fa;
}

.table thead {
  background-color: rgba(0, 0, 0, 0.65);
}

.table tbody tr {
  background-color: rgba(0, 0, 0, 0.35);
}

.table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.45);
}

.table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.alert {
  backdrop-filter: blur(2px);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.92);
  color: #212529;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .site-title {
    font-size: 1.4rem;
  }
}

/* Custom Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Loading Indicator */
.loading {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================
   Roc center overlay & animation
   ========================== */
.roc-center {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1100;
  width: min(28vw, 320px);
  max-width: 90%;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
  pointer-events: none; /* không cản click vào nội dung */
  animation: rocFloat 3.5s ease-in-out infinite alternate;
}

@keyframes rocFloat {
  0%   { transform: translate(-50%, calc(-50% - 8px)); }
  100% { transform: translate(-50%, calc(-50% + 8px)); }
}

/* bỏ phiên bản ảnh Roc nhỏ gắn vào sau nút; thay bằng overlay lớn */
