@font-face {
      font-family: 'Cinzel Decorative Vietnamese';
      src: url('CinzelDecorative-Vietnamese.ttf?v=2') format('truetype');
      font-style: normal;
      font-weight: 900;
      font-display: swap;
    }

    :root {
      --mu-gold: #c9a227;
      --mu-gold-light: #e8d48b;
      --mu-gold-dark: #8b6914;
      --mu-red: #8b0000;
      --mu-red-light: #b22222;
      --mu-red-dark: #5c0000;
      --mu-black: #0d0d0f;
      --mu-black-light: #1a1a1e;
      --mu-black-card: #121215;
      --mu-steel: #2d2d33;
      --mu-text: #c9c5b8;
      --mu-text-dim: #7a7568;
      --mu-mana: #4a90d9;
      --mu-life: #c9302c;
    }

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

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Be Vietnam Pro', Arial, sans-serif;
      background: var(--mu-black);
      color: var(--mu-text);
      overflow-x: hidden;
      min-height: 100vh;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-touch-callout: none;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* Chỉ cho phép chọn văn bản trong các ô nhập liệu */
    input, textarea { user-select: text; -webkit-user-select: text; }

    /* ===== GRAIN OVERLAY ===== */
    .grain {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 9999;
      opacity: 0.04;
      background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    /* ===== HIỆU ỨNG SƯƠNG MÙ ===== */
    .fog-container {
      position: fixed;
      inset: 0;
      overflow: hidden;
      z-index: 1;
      pointer-events: none;
    }

    .fog {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 200%;
      height: 300px;
      background: linear-gradient(to top, rgba(13,13,15,0.9) 0%, transparent 100%);
      animation: fog-move 30s linear infinite;
    }

    .fog-2 {
      animation-duration: 45s;
      animation-direction: reverse;
      opacity: 0.6;
    }

    @keyframes fog-move {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    /* ===== PARTICLES ===== */
    #particles-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 2;
      pointer-events: none;
    }

    /* ===== FIRE GLOW BG ===== */
    .fire-bg {
      position: fixed;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 150%;
      height: 60%;
      background: radial-gradient(ellipse at center bottom,
        rgba(139, 0, 0, 0.15) 0%,
        rgba(201, 162, 39, 0.05) 30%,
        transparent 60%);
      z-index: 0;
      pointer-events: none;
      animation: fire-pulse 4s ease-in-out infinite;
    }

    @keyframes fire-pulse {
      0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
      50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
    }

    /* ===== NAVBAR ===== */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      padding: 1rem 3rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: linear-gradient(to bottom, rgba(13,13,15,0.95) 0%, transparent 100%);
      transition: background 0.4s;
    }

    .navbar.scrolled {
      background: rgba(13,13,15,0.97);
      box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    }

    .logo {
      font-family: 'Cinzel Decorative Vietnamese', serif;
      font-size: 1.8rem;
      font-weight: 900;
      color: var(--mu-gold);
      text-shadow: 0 0 20px rgba(201,162,39,0.5);
      letter-spacing: 0.2em;
      text-decoration: none;
      transition: all 0.3s;
    }

    .logo:hover {
      color: var(--mu-gold-light);
      text-shadow: 0 0 30px rgba(201,162,39,0.8);
      transform: scale(1.02);
    }

    .logo.logo--image {
      line-height: 0;
      letter-spacing: 0;
    }

    .logo-image {
      display: block;
      width: auto;
      max-width: 230px;
      height: 52px;
      object-fit: contain;
    }

    .nav-links {
      display: flex;
      gap: 2.5rem;
    }

    .nav-links a {
      color: var(--mu-text);
      text-decoration: none;
      font-size: 0.9rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      position: relative;
      padding: 0.5rem 0;
      transition: color 0.3s;
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 1px;
      background: linear-gradient(90deg, var(--mu-gold), var(--mu-red));
      transition: width 0.3s;
    }

    .nav-links a:hover {
      color: var(--mu-gold);
    }

    .nav-links a:hover::after { width: 100%; }

    .nav-buttons {
      display: flex;
      gap: 1rem;
    }

    .btn {
      padding: 0.6rem 1.5rem;
      font-family: 'Be Vietnam Pro', Arial, sans-serif;
      font-size: 0.85rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      text-decoration: none;
      border: 1px solid;
      cursor: pointer;
      transition: all 0.3s;
    }

    .btn-login {
      background: transparent;
      color: var(--mu-gold);
      border-color: var(--mu-gold-dark);
    }

    .btn-login:hover {
      background: rgba(201,162,39,0.1);
      box-shadow: 0 0 20px rgba(201,162,39,0.3);
    }

    .btn-register {
      background: linear-gradient(135deg, var(--mu-red-dark), var(--mu-red));
      color: var(--mu-gold-light);
      border-color: var(--mu-gold);
      box-shadow: 0 0 15px rgba(139,0,0,0.4);
    }

    .btn-register:hover {
      background: linear-gradient(135deg, var(--mu-red), var(--mu-red-light));
      box-shadow: 0 0 25px rgba(201,162,39,0.4);
      transform: translateY(-2px);
    }

    /* ===== HERO ===== */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 5;
      padding: 8rem 2rem 4rem;
      text-align: center;
      overflow: hidden;
    }

    .hero-runes {
      position: absolute;
      font-size: 3rem;
      opacity: 0.1;
      color: var(--mu-gold);
      user-select: none;
    }

    .hero-runes.left { left: 5%; top: 20%; animation: float-rune 6s ease-in-out infinite; }
    .hero-runes.right { right: 5%; top: 20%; animation: float-rune 6s 2s ease-in-out infinite; }
    .hero-runes.bl { left: 10%; bottom: 25%; animation: float-rune 8s 1s ease-in-out infinite; }
    .hero-runes.br { right: 10%; bottom: 25%; animation: float-rune 8s 3s ease-in-out infinite; }

    .hero-runes.rune-secret {
      cursor: pointer;
      opacity: 0.15;
      transition: opacity 0.3s, transform 0.3s;
    }
    .hero-runes.rune-secret:hover {
      opacity: 0.5;
      color: var(--mu-gold-light);
    }

    /* Video nền với hiệu ứng mờ nhẹ */
    .hero-bg-video {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
    }
    .hero-bg-video video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.35;
      filter: brightness(0.9);
    }
    .hero > *:not(.hero-bg-video) {
      position: relative;
      z-index: 1;
    }

    /* ===== ZALO / FACEBOOK WIDGET ===== */
    .social-widget {
      position: fixed;
      bottom: 1.5rem;
      right: 1.5rem;
      z-index: 200;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      align-items: flex-end;
    }
    .social-widget a {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      text-decoration: none;
      color: #fff;
      font-size: 1.5rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.4);
      transition: box-shadow 0.3s;
    }
    .social-widget a:hover {
      box-shadow: 0 6px 30px rgba(201,162,39,0.4);
    }
    .social-widget a::after {
      content: '';
      position: absolute;
      inset: -4px;
      border: 1px solid rgba(232,212,139,0.75);
      border-radius: inherit;
      pointer-events: none;
      animation: social-ring 3.2s ease-out infinite;
    }
    .social-widget a svg {
      flex-shrink: 0;
      fill: #fff;
    }
    .social-widget .zalo-btn {
      background: #0068ff;
      border: 2px solid var(--mu-gold-dark);
      font-family: Arial, sans-serif;
      font-size: 0.95rem;
      font-weight: 700;
    }
    .social-widget .facebook-btn {
      background: #1877f2;
      border: 2px solid var(--mu-gold-dark);
    }
    .social-widget .zalo-btn::after { animation-delay: -0.2s; }
    .social-widget .facebook-btn::after { animation-delay: -1.6s; }

    @keyframes social-ring {
      0%, 58% { opacity: 0; transform: scale(0.9); }
      68% { opacity: 0.75; }
      100% { opacity: 0; transform: scale(1.35); }
    }

    /* ===== EASTER EGG MODAL ===== */
    .easter-modal {
      position: fixed;
      inset: 0;
      z-index: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,0.85);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s, visibility 0.3s;
    }
    .easter-modal.active {
      opacity: 1;
      visibility: visible;
    }
    .easter-modal-content {
      background: linear-gradient(180deg, var(--mu-black-card), var(--mu-black-light));
      border: 2px solid var(--mu-gold);
      padding: 2rem 3rem;
      max-width: 400px;
      text-align: center;
      transform: scale(0.8);
      transition: transform 0.3s;
    }
    .easter-modal.active .easter-modal-content {
      transform: scale(1);
    }
    .easter-modal-content h3 {
      color: var(--mu-gold);
      font-size: 1.2rem;
      margin-bottom: 1rem;
      letter-spacing: 0.2em;
    }
    .easter-modal-content p {
      color: var(--mu-text-dim);
      font-size: 0.9rem;
      line-height: 1.6;
    }

    @keyframes float-rune {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-15px) rotate(5deg); }
    }

    .hero-title {
      font-family: 'Cinzel Decorative Vietnamese', serif;
      font-size: clamp(3rem, 10vw, 7rem);
      font-weight: 900;
      color: transparent;
      background: linear-gradient(180deg, var(--mu-gold-light) 0%, var(--mu-gold) 30%, var(--mu-gold-dark) 100%);
      background-clip: text;
      -webkit-background-clip: text;
      letter-spacing: 0.15em;
      text-shadow: 0 0 60px rgba(201,162,39,0.4);
      position: relative;
      filter: drop-shadow(0 4px 20px rgba(139,0,0,0.5));
      animation: title-glow 3s ease-in-out infinite alternate;
    }

    @keyframes title-glow {
      from { filter: drop-shadow(0 4px 20px rgba(139,0,0,0.5)); }
      to { filter: drop-shadow(0 4px 40px rgba(201,162,39,0.4)); }
    }

    .hero-title .glitch-wrap {
      position: relative;
      display: inline-block;
    }

    .hero-title .glitch-wrap::before,
    .hero-title .glitch-wrap::after {
      content: attr(data-text);
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(180deg, var(--mu-gold-light), var(--mu-gold-dark));
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      opacity: 0.8;
      clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
      animation: glitch-x 4s infinite;
    }

    .hero-title .glitch-wrap::after {
      clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
      animation: glitch-x 4s 0.1s infinite reverse;
    }

    @keyframes glitch-x {
      0%, 90%, 100% { transform: translate(0, 0); }
      92% { transform: translate(-3px, 2px); }
      94% { transform: translate(3px, -2px); }
      96% { transform: translate(-2px, -1px); }
      98% { transform: translate(2px, 1px); }
    }

    .hero-version {
      font-family: 'Be Vietnam Pro', Arial, sans-serif;
      font-size: 1.2rem;
      color: var(--mu-gold);
      letter-spacing: 0.3em;
      margin-top: 1rem;
      text-transform: uppercase;
      opacity: 0.9;
    }

    .hero-tagline {
      font-size: 1rem;
      color: var(--mu-text-dim);
      margin-top: 0.5rem;
      letter-spacing: 0.2em;
      max-width: 500px;
      min-height: 1.5em;
    }
    .hero-tagline .typing-cursor { display: inline-block; width: 2px; height: 1em; background: var(--mu-gold); margin-left: 2px; animation: blink 1s step-end infinite; vertical-align: text-bottom; }
    @keyframes blink { 50% { opacity: 0; } }

    .hero-count-title {
      margin-top: 1.8rem;
      font-size: 1.1rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--mu-gold-light);
    }

    .hero-countdown {
      margin-top: 1rem;
      display: inline-flex;
      gap: 1.4rem;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      color: var(--mu-gold-light);
      letter-spacing: 0.18em;
      text-transform: uppercase;
    }

    .hero-count-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      min-width: 78px;
    }

    .hero-count-number {
      font-family: 'Roboto Slab', 'Be Vietnam Pro', serif;
      font-size: 2.1rem;
      color: var(--mu-gold-light);
      text-shadow: 0 0 24px rgba(201,162,39,0.75);
    }

    .hero-count-label {
      margin-top: 0.25rem;
      font-size: 0.8rem;
      color: var(--mu-text-dim);
    }

    .hero-count-separator {
      font-size: 1.7rem;
      color: var(--mu-gold-dark);
      opacity: 0.95;
      transform: translateY(-6px);
    }

    .hero-cta {
      margin-top: 3rem;
      display: flex;
      gap: 1.5rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .btn-download {
      background: linear-gradient(180deg, var(--mu-steel), var(--mu-black-card));
      color: var(--mu-gold);
      border: 2px solid var(--mu-gold-dark);
      padding: 1rem 2.5rem;
      font-size: 1rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    }

    .btn-download:hover {
      border-color: var(--mu-gold);
      box-shadow: 0 0 30px rgba(201,162,39,0.3), inset 0 0 20px rgba(201,162,39,0.05);
    }

    .btn-play {
      background: linear-gradient(180deg, var(--mu-red-light), var(--mu-red));
      color: var(--mu-gold-light);
      border: 2px solid var(--mu-gold);
      padding: 1rem 3rem;
      font-size: 1rem;
      box-shadow: 0 4px 25px rgba(139,0,0,0.5), 0 0 15px rgba(201,162,39,0.2);
    }

    .btn-play:hover {
      background: linear-gradient(180deg, #d32f2f, var(--mu-red-light));
      box-shadow: 0 0 40px rgba(201,162,39,0.5), 0 0 25px rgba(139,0,0,0.5);
      transform: translateY(-3px);
    }

    /* ===== SECTION COMMON ===== */
    section {
      position: relative;
      z-index: 5;
      padding: 5rem 2rem;
      max-width: 1400px;
      margin: 0 auto;
    }

    .section-header {
      text-align: center;
      margin-bottom: 4rem;
    }

    .section-title {
      font-family: 'Roboto Slab', 'Be Vietnam Pro', serif;
      font-size: clamp(2rem, 5vw, 3rem);
      color: var(--mu-gold);
      letter-spacing: 0.2em;
      position: relative;
      display: inline-block;
    }

    .section-title::before,
    .section-title::after {
      content: '✦';
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.5em;
      opacity: 0.6;
    }

    .section-title::before { left: -2em; }
    .section-title::after { right: -2em; }

    .section-divider {
      width: 200px;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--mu-gold), transparent);
      margin: 1rem auto;
      opacity: 0.5;
    }

    /* ===== CLASSES ===== */
    .classes-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 2.5rem;
      margin-top: 3rem;
      overflow: visible;
    }

    .class-card-wrap {
      min-height: 100px;
    }

    .class-card {
      background: linear-gradient(180deg, rgba(26,26,30,0.9), rgba(13,13,15,0.95));
      border: 1px solid var(--mu-steel);
      padding: 2rem;
      text-align: center;
      position: relative;
      overflow: visible;
      transition: all 0.5s ease;
    }

    .class-card-glow {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 110%;
      height: 110%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      z-index: -1;
      opacity: 0;
      transition: opacity 0.5s ease;
    }

    .class-card:hover .class-card-glow {
      opacity: 1;
    }

    .class-card-glow::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(232,212,139,0.4) 0%, rgba(201,162,39,0.2) 40%, rgba(139,0,0,0.08) 60%, transparent 75%);
      filter: blur(20px);
    }

    .class-card-glow::after {
      content: '';
      position: absolute;
      inset: -5%;
      background: conic-gradient(from 0deg at 50% 50%,
        transparent 0deg 12deg, rgba(232,212,139,0.2) 15deg 22deg, transparent 25deg 42deg,
        transparent 42deg 57deg, rgba(201,162,39,0.15) 60deg 72deg, transparent 75deg 87deg,
        transparent 87deg 102deg, rgba(232,212,139,0.15) 105deg 117deg, transparent 120deg 132deg,
        transparent 132deg 147deg, rgba(139,0,0,0.1) 150deg 162deg, transparent 165deg 177deg,
        transparent 177deg 192deg, rgba(201,162,39,0.15) 195deg 207deg, transparent 210deg 222deg,
        transparent 222deg 237deg, rgba(232,212,139,0.12) 240deg 252deg, transparent 255deg 267deg,
        transparent 267deg 282deg, rgba(201,162,39,0.15) 285deg 297deg, transparent 300deg 312deg,
        transparent 312deg 327deg, rgba(139,0,0,0.1) 330deg 342deg, transparent 345deg);
      filter: blur(15px);
    }

    .class-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--mu-gold-dark), var(--mu-gold), var(--mu-gold-dark));
      transform: scaleX(0);
      transition: transform 0.4s;
    }

    .class-card:hover {
      border-color: var(--mu-gold-dark);
      box-shadow: 0 0 40px rgba(201,162,39,0.2), inset 0 0 30px rgba(139,0,0,0.1);
      transform: translateY(-8px) scale(1.06);
    }

    .class-card:hover::before { transform: scaleX(1); }

    .class-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 50% 50%, rgba(201,162,39,0.06), transparent 70%);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s;
    }

    .class-card:hover::after { opacity: 1; }

    .class-card .class-photo,
    .class-card .class-name,
    .class-card .class-desc {
      position: relative;
      z-index: 1;
    }

    .class-photo {
      width: 100%;
      height: 160px;
      margin: 0 auto 1rem;
      object-fit: cover;
      border: 2px solid var(--mu-gold-dark);
      clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
      transition: all 0.4s;
    }

    .class-card:hover .class-photo {
      border-color: var(--mu-gold);
      filter: brightness(1.15);
    }

    .class-name {
      font-size: 1.1rem;
      color: var(--mu-gold-light);
      letter-spacing: 0.15em;
      margin-bottom: 0.5rem;
    }

    .class-desc {
      font-size: 0.85rem;
      color: var(--mu-text-dim);
      line-height: 1.5;
    }

    /* ===== SERVER INFO ===== */
    .server-info {
      background: linear-gradient(180deg, transparent, rgba(139,0,0,0.05) 50%, transparent);
      border-top: 1px solid rgba(201,162,39,0.2);
      border-bottom: 1px solid rgba(201,162,39,0.2);
    }

    .rates-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .rate-card {
      background: var(--mu-black-card);
      border: 1px solid var(--mu-steel);
      padding: 1.5rem;
      text-align: center;
      position: relative;
      transition: all 0.3s;
    }

    .rate-card:hover {
      border-color: var(--mu-gold-dark);
      box-shadow: 0 0 25px rgba(201,162,39,0.1);
    }

    .rate-value {
      font-family: 'Be Vietnam Pro', Arial, sans-serif;
      font-size: 2rem;
      color: var(--mu-gold);
      margin-bottom: 0.3rem;
    }

    .rate-label {
      font-size: 0.8rem;
      color: var(--mu-text-dim);
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    /* ===== FEATURES ===== */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
    }

    .feature-card {
      display: flex;
      gap: 1.5rem;
      padding: 1.5rem;
      background: rgba(26,26,30,0.5);
      border: 1px solid var(--mu-steel);
      position: relative;
      overflow: visible;
      transition: all 0.3s;
    }

    .feature-contour {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s;
      z-index: 1;
    }

    .feature-card:hover .feature-contour {
      opacity: 1;
    }

    .feature-contour .contour-layer { fill: none; stroke: var(--mu-gold); animation: contour-loop-rev 2.5s linear infinite; }
    .feature-contour .layer-1 { stroke-width: 1; stroke-opacity: 0.06; stroke-dasharray: 120 272; }
    .feature-contour .layer-2 { stroke-width: 1.5; stroke-opacity: 0.15; stroke-dasharray: 90 302; }
    .feature-contour .layer-3 { stroke-width: 2; stroke-opacity: 0.35; stroke-dasharray: 60 332; }
    .feature-contour .layer-4 { stroke-width: 2.5; stroke-opacity: 0.6; stroke-dasharray: 35 357; }
    .feature-contour .layer-5 { stroke-width: 3; stroke-opacity: 1; stroke-dasharray: 15 377; }

    .feature-card:hover .feature-contour .contour-layer { animation-play-state: running; }
    .feature-card .feature-contour .contour-layer { animation-play-state: paused; }

    .feature-card .feature-icon,
    .feature-card > div {
      position: relative;
      z-index: 2;
    }

    @keyframes contour-loop-rev {
      from { stroke-dashoffset: 0; }
      to { stroke-dashoffset: 392; }
    }

    .feature-icon {
      font-size: 2rem;
      color: var(--mu-gold);
      flex-shrink: 0;
    }

    .feature-title {
      font-size: 1rem;
      color: var(--mu-gold-light);
      margin-bottom: 0.3rem;
    }

    .feature-text {
      font-size: 0.9rem;
      color: var(--mu-text-dim);
      line-height: 1.5;
    }

    /* ===== FOOTER ===== */
    .footer {
      padding: 3rem 2rem;
      text-align: center;
      border-top: 1px solid var(--mu-steel);
      margin-top: 4rem;
    }

    .footer-links {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-bottom: 1.5rem;
    }

    .footer-links a {
      color: var(--mu-text-dim);
      text-decoration: none;
      font-size: 0.85rem;
      transition: color 0.3s;
    }

    .footer-links a:hover { color: var(--mu-gold); }

    .footer-text {
      font-size: 0.8rem;
      color: var(--mu-text-dim);
      opacity: 0.7;
    }

    /* ===== RUNE CANVAS ===== */
    #runes-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      opacity: 0.2;
    }

    /* ===== FIRE CANVAS ===== */
    #fire-canvas {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 200px;
      z-index: 3;
      pointer-events: none;
    }

    /* ===== SIDEBAR DECOR ===== */
    .side-decor {
      position: fixed;
      top: 0;
      width: 80px;
      height: 100%;
      z-index: 2;
      pointer-events: none;
    }

    .side-decor.left { left: 0; background: linear-gradient(90deg, rgba(139,0,0,0.08), transparent); }
    .side-decor.right { right: 0; left: auto; background: linear-gradient(270deg, rgba(139,0,0,0.08), transparent); }

    .side-decor::before {
      content: '';
      position: absolute;
      top: 0;
      width: 2px;
      height: 100%;
      background: linear-gradient(180deg, transparent, var(--mu-gold-dark), var(--mu-gold), var(--mu-gold-dark), transparent);
      opacity: 0.4;
    }

    .side-decor.left::before { left: 0; }
    .side-decor.right::before { right: 0; left: auto; }

    /* ===== FLAME BORDER DECORATION ===== */
    .flame-border {
      position: fixed;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 150px;
      background: linear-gradient(to top,
        rgba(139,0,0,0.1) 0%,
        rgba(201,162,39,0.03) 40%,
        transparent 100%);
      z-index: 1;
      pointer-events: none;
    }

    /* [1] Transição suave entre seções */
    .main-content { transition: opacity 0.4s ease; }
    .main-content.fade-out { opacity: 0.3; }

    /* [3] Glow pulsante nos botões */
    .btn-login, .btn-register {
      animation: btn-glow-pulse 2.5s ease-in-out infinite;
    }
    .btn-register { animation-name: btn-glow-pulse-red; }
    @keyframes btn-glow-pulse {
      0%,100% { box-shadow: 0 0 15px rgba(201,162,39,0.15); }
      50% { box-shadow: 0 0 25px rgba(201,162,39,0.4); }
    }
    @keyframes btn-glow-pulse-red {
      0%,100% { box-shadow: 0 0 15px rgba(139,0,0,0.4); }
      50% { box-shadow: 0 0 30px rgba(201,162,39,0.35); }
    }

    /* [8] Loading screen */
    .loading-screen {
      position: fixed;
      inset: 0;
      z-index: 99999;
      background: var(--mu-black);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      transition: opacity 0.6s ease;
    }
    .loading-screen.done { opacity: 0; pointer-events: none; }
    .loading-logo {
      font-family: 'Cinzel Decorative Vietnamese', serif;
      font-size: clamp(2rem, 6vw, 4rem);
      font-weight: 900;
      color: var(--mu-gold);
      letter-spacing: 0.2em;
    }
    .loading-bar {
      width: 200px;
      height: 4px;
      background: var(--mu-steel);
      overflow: hidden;
    }
    .loading-bar-fill {
      height: 100%;
      width: 0;
      background: linear-gradient(90deg, var(--mu-gold-dark), var(--mu-gold));
      transition: width 0.1s linear;
    }

    /* ===== MOBILE MENU ===== */
    .menu-toggle {
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
    }
    .menu-toggle span {
      width: 24px;
      height: 2px;
      background: var(--mu-gold);
      transition: 0.3s;
    }
    .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

    /* Tối ưu hiển thị và chuyển động */
    img, video { display: block; }
    section {
      content-visibility: auto;
      contain-intrinsic-size: 720px;
    }
      .fog, .news-content {
      will-change: transform;
    }
    .class-card, .rate-card, .feature-card {
      transform: translateZ(0);
      backface-visibility: hidden;
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
      .news-content { transform: none !important; }
    }

    /* ===== RESPONSIVE MOBILE ===== */
    @media (max-width: 900px) {
      .navbar { padding: 1rem 1rem; flex-wrap: wrap; gap: 0.75rem; }
      .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13,13,15,0.98);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-top: 1px solid var(--mu-steel);
      }
      .nav-links.open { display: flex; }
      .nav-links a { padding: 1rem; font-size: 1rem; border-bottom: 1px solid var(--mu-steel); }
      .nav-links a:last-of-type { border-bottom: none; }
      .menu-toggle { display: flex; }
      .hero { padding: 6rem 1rem 3rem; }
      .hero-title { font-size: clamp(2rem, 8vw, 4rem); }
      .hero-tagline { font-size: 0.9rem; letter-spacing: 0.1em; max-width: 90%; }
      .hero-runes { display: none; }
      section { padding: 3rem 1rem; }
      .classes-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
      .class-card { padding: 1.5rem; }
      .class-photo { height: 140px; }
      .rates-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
      .rate-card { padding: 1.25rem; }
      .rate-value { font-size: 1.5rem; }
      .features-grid { grid-template-columns: 1fr; gap: 1.25rem; }
      .feature-card { padding: 1.25rem; }
      .social-widget { bottom: 1rem; right: 1rem; }
    }

@keyframes ticker {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    .news-content span { white-space: nowrap; color: var(--mu-text); font-size: 0.9rem; }

/* ===== TYPOGRAPHY CINZEL CHO CÁC TIÊU ĐỀ ===== */
.section-title,
.class-name,
.feature-title,
.rate-value,
.news-heading {
  font-family: 'Cinzel Decorative Vietnamese', 'Roboto Slab', serif;
  font-weight: 900;
}

.section-subtitle {
  color: var(--mu-text-dim);
  font-size: 0.95rem;
}

.section-title {
  background: linear-gradient(100deg, var(--mu-gold-dark) 0%, var(--mu-gold-light) 38%, #fff7c2 50%, var(--mu-gold-light) 62%, var(--mu-gold-dark) 100%);
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: heading-shimmer 5.5s linear infinite;
}

/* ===== ÁNH SÁNG VÀ LẤP LÁNH NHẸ ===== */
.sparkle-layer {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.sparkle-layer::before,
.sparkle-layer::after {
  content: '';
  position: absolute;
  inset: -10%;
  background-repeat: repeat;
  will-change: transform, opacity;
}

.sparkle-layer::before {
  background-image:
    radial-gradient(circle, rgba(255,247,194,0.95) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(232,212,139,0.75) 0 1.2px, transparent 2px),
    radial-gradient(circle, rgba(201,162,39,0.55) 0 0.8px, transparent 1.6px);
  background-size: 143px 137px, 211px 197px, 97px 113px;
  background-position: 17px 31px, 73px 11px, 41px 83px;
  opacity: 0.42;
  animation: sparkle-drift 28s linear infinite, sparkle-pulse 4.8s ease-in-out infinite alternate;
}

.sparkle-layer::after {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.85) 0 0.7px, transparent 1.5px),
    radial-gradient(circle, rgba(232,212,139,0.8) 0 1px, transparent 1.8px);
  background-size: 181px 173px, 257px 241px;
  background-position: 91px 47px, 29px 101px;
  opacity: 0.25;
  animation: sparkle-drift-reverse 36s linear infinite, sparkle-pulse 6.2s 1.2s ease-in-out infinite alternate;
}

.section-header,
.class-card,
.rate-card,
.feature-card {
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -1.5rem;
  width: min(420px, 80vw);
  height: 100px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(201,162,39,0.12), transparent 68%);
  pointer-events: none;
  animation: halo-breathe 4.5s ease-in-out infinite;
}

.rate-card::after,
.feature-card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -85%;
  width: 45%;
  height: 220%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,247,194,0.16), transparent);
  pointer-events: none;
  transition: transform 0.75s ease;
}

.rate-card:hover::after,
.feature-card:hover::after {
  transform: translateX(420%) rotate(20deg);
}

.rate-card,
.feature-card {
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-115%);
  background: linear-gradient(105deg, transparent 25%, rgba(255,247,194,0.25) 50%, transparent 75%);
  transition: transform 0.65s ease;
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn:hover::before {
  transform: translateX(115%);
}

@keyframes heading-shimmer {
  to { background-position: -220% center; }
}

@keyframes sparkle-drift {
  to { transform: translate3d(4%, -6%, 0); }
}

@keyframes sparkle-drift-reverse {
  to { transform: translate3d(-5%, 5%, 0); }
}

@keyframes sparkle-pulse {
  from { opacity: 0.18; }
  to { opacity: 0.5; }
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(0.92); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* ===== TIN TỨC ===== */
.news-section {
  padding: 3rem 2rem;
  border-top: 1px solid var(--mu-steel);
}

.news-inner {
  max-width: 900px;
  margin: 0 auto;
}

.news-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.news-icon {
  color: var(--mu-gold);
  font-size: 1.2rem;
}

.news-heading {
  color: var(--mu-gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.news-ticker {
  background: rgba(26,26,30,0.6);
  border: 1px solid var(--mu-steel);
  padding: 1rem 1.5rem;
  overflow: hidden;
}

.news-content {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker 30s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sparkle-layer::before,
  .sparkle-layer::after,
  .section-title,
  .section-header::after {
    animation: none !important;
  }
}

.hero-schedule {
  display: grid;
  gap: 5px;
  margin: 14px auto 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  letter-spacing: 0.08em;
  text-align: center;
}

.hero-schedule p {
  margin: 0;
}

.hero-schedule strong {
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-countdown[hidden] {
  display: none;
}