/*
Theme Name: Free Fire Vietnam
Theme URI: https://pqiu.net
Description: Chủ đề WordPress chuyên biệt cho Free Fire Việt Nam - Dữ liệu, Hướng dẫn & Tin tức Cập nhật
Version: 4.0.0
Author: FF Vietnam Team
Author URI: https://pqiu.net
License: GNU General Public License v2 or later
Text Domain: ff-vietnam
Tags: orange, responsive, custom-menu, custom-logo, featured-images
*/

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
  --ff-primary: #FF6B00;
  --ff-primary-dark: #E55A00;
  --ff-primary-light: #FF8C42;
  --ff-accent: #FFB800;
  --ff-red: #EF4444;
  --ff-green: #22C55E;
  --ff-bg: #FFFFFF;
  --ff-bg-alt: #FFFFFF;
  --ff-bg-section: #FFFFFF;
  --ff-white: #FFFFFF;
  --ff-text: #1F2937;
  --ff-text-secondary: #4B5563;
  --ff-text-muted: #9CA3AF;
  --ff-border: #E5E7EB;
  --ff-border-light: #F3F4F6;
  --ff-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --ff-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --ff-shadow-orange: 0 4px 14px rgba(255,107,0,0.25);
  --ff-radius: 10px;
  --ff-radius-sm: 6px;
  --ff-radius-lg: 14px;
  --ff-radius-full: 9999px;
  --ff-transition: 0.2s ease;
  --ff-font: 'Be Vietnam Pro', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-font);
  background: var(--ff-bg);
  color: var(--ff-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ff-primary); text-decoration: none; transition: color var(--ff-transition); }
a:hover { color: var(--ff-primary-dark); }
h1,h2,h3,h4,h5,h6 { font-family: var(--ff-font); font-weight: 700; line-height: 1.3; color: var(--ff-text); }

/* ============================================
   3. LAYOUT
   ============================================ */
.ff-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ff-wrap--wide { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ============================================
   4. HEADER
   ============================================ */
.ff-header {
  background: var(--ff-white);
  border-bottom: 1px solid var(--ff-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.ff-topbar {
  background: var(--ff-bg-alt);
  padding: 5px 0;
  border-bottom: 1px solid var(--ff-border-light);
  font-size: 0.78rem;
  color: var(--ff-text-muted);
}
.ff-topbar .ff-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ff-topbar a { color: var(--ff-text-secondary); }
.ff-topbar a:hover { color: var(--ff-primary); }
.ff-logo-row {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ff-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--ff-primary), var(--ff-primary-dark));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 0.95rem; flex-shrink: 0;
}
.ff-site-name { font-size: 1.1rem; font-weight: 800; color: var(--ff-text); line-height: 1.2; }
.ff-site-name span { color: var(--ff-primary); }
.ff-site-tagline { font-size: 0.7rem; color: var(--ff-text-muted); }

/* ================================================================
   NAVIGATION v5 - FF Vietnam: Logo+Nav combined, 8 items, dropdowns
   ================================================================ */

/* ── Site Header (Logo + Nav in one bar) ── */
.ff-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--ff-white);
    border-bottom: 1px solid var(--ff-border-light);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ff-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ── Logo ── */
.ff-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 32px;
}
.ff-header-logo__icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--ff-primary), var(--ff-primary-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 1rem;
    flex-shrink: 0;
}
.ff-header-logo__text { display: flex; flex-direction: column; gap: 1px; }
.ff-header-logo__name {
    font-size: 0.95rem; font-weight: 800; color: var(--ff-text); line-height: 1.1;
}
.ff-header-logo__name span { color: var(--ff-primary); }
.ff-header-logo__tag { font-size: 0.6rem; color: var(--ff-text-muted); font-weight: 500; }

/* ── Desktop Nav ── */
.ff-desktop-nav { flex: 1; display: flex; align-items: center; overflow: visible; }

.ff-desktop-nav__list {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
    align-items: stretch;
    height: 60px;
    width: 100%;
    gap: 2px;
}

.ff-desktop-nav__item {
    display: flex;
    align-items: center;
    position: relative;
}

.ff-desktop-nav__link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    height: 60px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ff-text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    font-family: var(--ff-font);
    white-space: nowrap;
}

.ff-nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
    opacity: 0.7;
}
.ff-desktop-nav__link:hover .ff-nav-icon,
.ff-mob-nav__link:hover .ff-nav-icon,
.ff-mob-nav__group-title .ff-nav-icon,
.ff-mob-nav__home .ff-nav-icon,
.ff-mob-nav__link--primary .ff-nav-icon {
    opacity: 1;
}
.ff-desktop-nav__link:hover .ff-nav-icon {
    transform: translateY(-1px) scale(1.1);
    opacity: 1;
}
.ff-desktop-nav__item--highlight .ff-nav-icon {
    opacity: 1;
}
.ff-desktop-nav__item--highlight .ff-desktop-nav__link:hover .ff-nav-icon {
    transform: scale(1.15);
}
.ff-mob-nav__group-title .ff-nav-icon {
    width: 15px;
    height: 15px;
    opacity: 0.6;
}
.ff-mob-nav__link .ff-nav-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    margin-right: 2px;
}
.ff-mob-nav__link:hover .ff-nav-icon {
    opacity: 1;
    transform: scale(1.1);
}
.ff-mob-nav__home .ff-nav-icon,
.ff-mob-nav__link--primary .ff-nav-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}
.ff-mob-nav__link--cta .ff-nav-icon {
    opacity: 1;
}
@media (min-width: 1100px) {
    .ff-desktop-nav__link { padding: 0 10px; font-size: 0.82rem; }
}
.ff-desktop-nav__link:hover { color: var(--ff-primary); }
.ff-desktop-nav__link.current-menu-item,
.ff-desktop-nav__link.current-menu-item:hover {
    color: var(--ff-primary);
    background: rgba(255, 107, 0, 0.1);
    border-radius: 8px;
}
.ff-desktop-nav__item--cta .ff-desktop-nav__link,
.ff-desktop-nav__item--highlight .ff-desktop-nav__link {
    color: var(--ff-primary);
    font-weight: 700;
}

.ff-desktop-nav__item--highlight .ff-desktop-nav__link {
    background: rgba(255,107,0,0.08);
    border-radius: var(--ff-radius-full);
    padding: 0 14px;
    border: none;
    height: 34px;
}
.ff-desktop-nav__item--highlight .ff-desktop-nav__link:hover {
    background: var(--ff-primary);
    color: white;
}

.ff-desktop-nav__item--cta .ff-desktop-nav__link {
    background: var(--ff-primary);
    color: white;
    border-radius: var(--ff-radius-full);
    padding: 0 16px;
    height: 34px;
    border: none;
}
.ff-desktop-nav__item--cta .ff-desktop-nav__link:hover {
    background: var(--ff-primary-dark);
    color: white;
}

/* ── Dropdown Submenu ── */
.ff-desktop-nav__item--has-sub { position: relative; }
.ff-desktop-nav__link--dropdown {
    cursor: pointer;
    user-select: none;
}
.ff-desktop-nav__link--dropdown::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.2s;
}
.ff-desktop-nav__item--has-sub:hover .ff-desktop-nav__link--dropdown::after,
.ff-desktop-nav__item--has-sub.open .ff-desktop-nav__link--dropdown::after {
    transform: rotate(180deg);
}
.ff-desktop-nav__item--has-sub:hover .ff-desktop-nav__link--dropdown {
    color: var(--ff-primary);
}

.ff-desktop-nav__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--ff-white);
    border: 1px solid var(--ff-border);
    border-top: 3px solid var(--ff-primary);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    padding: 6px 0;
    z-index: 9999;
    list-style: none;
    margin: 0;
}
@keyframes ff_dropdown_fade {
    from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.ff-desktop-nav__item--has-sub:hover > .ff-desktop-nav__sub,
.ff-desktop-nav__item--has-sub.open > .ff-desktop-nav__sub {
    display: block;
    animation: ff_dropdown_fade 0.15s ease;
}
.ff-desktop-nav__sub li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    text-decoration: none;
    color: var(--ff-text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s;
    white-space: nowrap;
}
.ff-desktop-nav__sub li a .ff-nav-icon {
    width: 15px;
    height: 15px;
    opacity: 0.5;
}
.ff-desktop-nav__sub li a:hover {
    background: rgba(255,107,0,0.06);
    color: var(--ff-primary);
    padding-left: 20px;
}
.ff-desktop-nav__sub li a:hover .ff-nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Search icon button */
.ff-search-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ff-text-secondary);
    transition: all 0.2s;
    margin-left: 8px;
    flex-shrink: 0;
}
.ff-search-icon-btn:hover {
    background: rgba(255,107,0,0.08);
    color: var(--ff-primary);
}

/* ── Mobile Hamburger ── */
.ff-mob-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px; height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    margin-left: auto;
    flex-shrink: 0;
}
.ff-mob-hamburger__bar {
    display: block;
    width: 22px; height: 2px;
    background: var(--ff-text-secondary);
    border-radius: 2px;
    transition: all 0.25s;
}
.ff-mob-hamburger.active .ff-mob-hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--ff-primary);
}
.ff-mob-hamburger.active .ff-mob-hamburger__bar:nth-child(2) {
    opacity: 0;
}
.ff-mob-hamburger.active .ff-mob-hamburger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--ff-primary);
}

/* ── Mobile Nav Drawer ── */
.ff-mob-nav {
    display: none;
    position: fixed;
    top: 60px;   /* header height */
    left: 0; right: 0; bottom: 0;
    background: var(--ff-white);
    overflow-y: auto;
    z-index: 999;
    border-top: 1px solid var(--ff-border);
}
.ff-mob-nav.open { display: block; }

.ff-mob-nav__inner {
    padding: 12px 0 32px;
}

.ff-mob-nav__home {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem; font-weight: 700;
    color: var(--ff-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--ff-border-light);
}

.ff-mob-nav__group {
    border-bottom: 1px solid var(--ff-border-light);
    padding: 8px 0;
}
.ff-mob-nav__group-title {
    padding: 8px 20px;
    font-size: 0.75rem; font-weight: 700;
    color: var(--ff-text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
}

.ff-mob-nav__link {
    display: block;
    padding: 10px 20px;
    font-size: 0.88rem; font-weight: 600;
    color: var(--ff-text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--ff-border-light);
    transition: background 0.15s, color 0.15s;
}
.ff-mob-nav__link:hover {
    background: rgba(255,107,0,0.05);
    color: var(--ff-primary);
}
.ff-mob-nav__link--primary {
    color: var(--ff-primary);
    font-weight: 700;
    font-size: 0.92rem;
    background: rgba(255,107,0,0.06);
}
/* Mobile Download button style */
.ff-mob-nav__link--download {
    background: linear-gradient(135deg, #FF6B00, #E55A00);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
    margin: 12px 16px 0;
    border-bottom: none;
    padding: 14px 20px;
    text-align: center;
    border-radius: 12px;
}

/* Mobile Download button - larger touch targets */
@media (max-width: 640px) {
    .ff-mob-nav__link--download {
        padding: 16px 20px;
        font-size: 1rem;
        margin: 16px 16px 0;
    }
}
.ff-mob-nav__link--cta {
    background: var(--ff-primary);
    color: white;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    margin: 12px 16px 0;
    border-bottom: none;
    display: block;
}
.ff-mob-nav__link--cta:hover {
    background: var(--ff-primary-dark);
    color: white;
}

.ff-mob-nav__search-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 12px 16px 0;
    padding: 10px 16px;
    background: var(--ff-bg-alt);
    border: 1.5px solid var(--ff-border);
    border-radius: 8px;
    font-size: 0.88rem; font-weight: 600;
    color: var(--ff-text-secondary);
    text-align: left;
    cursor: pointer;
    font-family: var(--ff-font);
}

/* ── Responsive: Mobile (<= 900px) ── */
@media (max-width: 900px) {
    .ff-desktop-nav { display: none; }
    .ff-mob-hamburger { display: flex; }

    .ff-header-inner {
        gap: 0;
    }

    /* Hide search icon on mobile - it's in hamburger menu instead */
    .ff-search-icon-btn {
        display: none;
    }
}

/* Mobile styles for download button - larger tap targets */
@media (max-width: 640px) {
    /* Stats card quick download button */
    .ff-quick-dl-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* ── Search Modal ── */
.ff-search-modal {
    display: none; position: fixed; inset: 0; z-index: 99998;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    align-items: flex-start; justify-content: center;
    padding-top: 80px;
}
.ff-search-modal.open { display: flex; }
.ff-search-modal__box {
    background: var(--ff-white); border-radius: 12px;
    width: 90%; max-width: 640px; margin: 0 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden; animation: ff_search_in 0.18s ease;
}
@keyframes ff_search_in {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ff-search-modal__input-row {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--ff-border-light);
}
.ff-search-modal__input-row input {
    flex: 1; border: none; outline: none;
    font-size: 1rem; font-family: var(--ff-font); color: var(--ff-text);
    background: transparent;
}
.ff-search-modal__input-row input::placeholder { color: #9CA3AF; }
.ff-search-modal__close {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--ff-bg-alt); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--ff-text-secondary); flex-shrink: 0;
}
.ff-search-modal__close:hover { background: var(--ff-border); }
.ff-search-results { max-height: 360px; overflow-y: auto; padding: 8px 0; }
.ff-search-loading { display: flex; justify-content: center; padding: 32px; color: var(--ff-text-muted); }
.ff-search-empty-state { text-align: center; padding: 36px 20px; color: var(--ff-text-muted); }
.ff-search-empty-state__icon { font-size: 2.5rem; margin-bottom: 8px; }
.ff-search-empty-state__text { font-size: 0.9rem; line-height: 1.5; }
.ff-search-hot-links { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ff-border-light); text-align: left; }
.ff-search-hot-label { display: block; font-size: 0.72rem; color: #9CA3AF; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.ff-search-hot-links a { display: inline-block; margin: 4px 6px; padding: 5px 14px; background: var(--ff-bg-alt); border: 1px solid var(--ff-border-light); border-radius: 999px; font-size: 0.78rem; color: var(--ff-text-secondary); text-decoration: none; font-weight: 500; transition: all 0.15s; font-family: var(--ff-font); }
.ff-search-hot-links a:hover { background: var(--ff-primary); color: white; border-color: var(--ff-primary); }
.ff-search-modal__footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px; border-top: 1px solid var(--ff-border-light);
    font-size: 0.75rem; color: var(--ff-text-muted);
}
.ff-search-modal__footer kbd {
    background: var(--ff-bg-alt); border: 1px solid var(--ff-border);
    border-radius: 4px; padding: 1px 6px; font-size: 0.72rem;
}
.ff-search-modal__footer a { color: var(--ff-primary); font-weight: 600; }


/* Search Modal */

/* ============================================
   6. HERO SECTION
   ============================================ */
.ff-hero {
  background: transparent;
  padding: 0;
}
.ff-hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: center;
}
.ff-hero-main {
  background-color: var(--ff-primary);
  background-size: cover; background-position: center;
  border-radius: var(--ff-radius-lg);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ff-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 12px; border-radius: var(--ff-radius-full);
  margin-bottom: 14px; width: fit-content;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.ff-hero-title { color: white; font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; margin-bottom: 8px; }
.ff-hero-desc { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 20px; }
.ff-hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--ff-primary);
  padding: 10px 20px; border-radius: var(--ff-radius);
  font-weight: 700; font-size: 0.88rem;
  text-decoration: none; width: fit-content;
  transition: transform var(--ff-transition), box-shadow var(--ff-transition);
}
.ff-hero-btn:hover { transform: translateY(-2px); box-shadow: var(--ff-shadow-orange); color: var(--ff-primary-dark); }

/* Hero sidebar */
.ff-hero-side { display: flex; flex-direction: column; gap: 10px; }
.ff-hero-card {
  background-color: var(--ff-white);
  background-size: cover; background-position: center;
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 14px 16px;
  transition: all var(--ff-transition);
  cursor: pointer;
}
.ff-hero-card:hover { border-color: var(--ff-primary); box-shadow: var(--ff-shadow-orange); transform: translateX(4px); }
.ff-hero-card-label { font-size: 0.68rem; font-weight: 700; color: var(--ff-text-muted); text-transform: uppercase; margin-bottom: 3px; }
.ff-hero-card-title { font-size: 0.88rem; font-weight: 700; color: var(--ff-text); margin-bottom: 2px; }
.ff-hero-card-date { font-size: 0.72rem; color: var(--ff-text-muted); }

/* ============================================
   7. STATS LOOKUP (Enhanced v5)
   ============================================ */
.ff-stats-sec { padding: 36px 0; background: var(--ff-white); border-bottom: 1px solid var(--ff-border); }
.ff-stats-card {
  background: white;
  border: 1px solid var(--ff-border);
  border-radius: 20px;
  padding: 32px 36px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  max-width: 640px;
  margin: -40px auto 0;
  position: relative;
  z-index: 10;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: ff_card_in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.ff-stats-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.ff-stats-card p { color: var(--ff-text-secondary); font-size: 0.88rem; margin-bottom: 24px; }
.ff-search-bar {
  display: flex; max-width: 460px; margin: 0 auto;
  background: var(--ff-white);
  border: 2px solid var(--ff-border);
  border-radius: var(--ff-radius);
  overflow: hidden;
  transition: border-color var(--ff-transition);
}
.ff-search-bar:focus-within { border-color: var(--ff-primary); }
.ff-search-bar input {
  flex: 1; padding: 12px 14px;
  border: none; background: transparent;
  font-size: 0.95rem; font-family: var(--ff-font);
  color: var(--ff-text); outline: none;
}
.ff-search-bar input::placeholder { color: var(--ff-text-muted); }
.ff-search-bar button {
  padding: 12px 20px;
  background: var(--ff-primary); color: white;
  border: none; font-size: 0.9rem; font-weight: 700;
  font-family: var(--ff-font); cursor: pointer;
  transition: background var(--ff-transition);
  white-space: nowrap;
}
.ff-search-bar button:hover { background: var(--ff-primary-dark); }

/* ── Result Layout ── */
.ff-result-wrap {
  margin-top: 28px;
  text-align: left;
  animation: ff_fade_up 0.4s ease;
}
@keyframes ff_fade_up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header card */
.ff-result-header {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, var(--ff-primary), var(--ff-primary-dark));
  border-radius: var(--ff-radius-lg);
  padding: 28px 32px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.ff-result-header::after {
  content: '';
  position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.ff-result-avatar-fallback {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.15));
  border: 3px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: white; flex-shrink: 0;
}
.ff-result-info { flex: 1; min-width: 0; }
.ff-result-name-lg {
  font-size: 1.3rem; font-weight: 800; color: white;
  margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ff-result-uid-lg { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-family: monospace; margin-bottom: 8px; }
.ff-result-rank-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.2);
  color: white; font-size: 0.8rem; font-weight: 700;
  padding: 4px 14px; border-radius: var(--ff-radius-full);
}
.ff-rank-icon {
  width: 18px; height: 18px; object-fit: contain; vertical-align: middle;
}
/* Rank badge circle (CSS emoji circle) */
.ff-rank-badge-circle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin: 0 auto 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ff-rank-badge-circle.ff-rank-badge--0 { background: #9CA3AF; color: white; }
.ff-rank-badge-circle.ff-rank-badge--1 { background: #CD7F32; color: white; }
.ff-rank-badge-circle.ff-rank-badge--2 { background: linear-gradient(135deg,#C0C0C0,#A0A0A0); color: white; }
.ff-rank-badge-circle.ff-rank-badge--3 { background: linear-gradient(135deg,#FFD700,#FFA500); color: white; }
.ff-rank-badge-circle.ff-rank-badge--4 { background: linear-gradient(135deg,#06B6D4,#0891B2); color: white; }
.ff-rank-badge-circle.ff-rank-badge--5 { background: linear-gradient(135deg,#60A5FA,#3B82F6); color: white; }
.ff-rank-badge-circle.ff-rank-badge--6 { background: linear-gradient(135deg,#A855F7,#7C3AED); color: white; }
.ff-rank-badge-circle.ff-rank-badge--7 { background: linear-gradient(135deg,#F97316,#EA580C); color: white; }
.ff-rank-badge-circle.ff-rank-badge--8 { background: linear-gradient(135deg,#EF4444,#DC2626); color: white; }
.ff-rank-badge-circle.ff-rank-badge--9 { background: linear-gradient(135deg,#EC4899,#DB2777); color: white; }
.ff-rank-badge-circle.ff-rank-badge--10 { background: linear-gradient(135deg,#F43F5E,#E11D48); color: white; }

/* Stat cards grid */
.ff-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.ff-stat-card {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 18px 14px;
  text-align: center;
  transition: all var(--ff-transition);
  position: relative;
  overflow: hidden;
}
.ff-stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ff-primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.ff-stat-card:hover { border-color: var(--ff-primary); box-shadow: var(--ff-shadow-md); transform: translateY(-2px); }
.ff-stat-card:hover::before { transform: scaleX(1); }
.ff-stat-card--rank::before  { background: #FF6B00; }
.ff-stat-card--kd::before    { background: #EF4444; }
.ff-stat-card--wr::before   { background: #22C55E; }
.ff-stat-card--kills::before  { background: #F59E0B; }
.ff-stat-card--matches::before { background: #3B82F6; }
.ff-stat-card--booyah::before { background: #8B5CF6; }

.ff-stat-card__icon  { font-size: 1.4rem; margin-bottom: 6px; }
.ff-stat-card__rank-img { width: 36px; height: 36px; object-fit: contain; margin: 0 auto 6px; display: block; }
.ff-stat-card__value { font-size: 1.4rem; font-weight: 800; color: var(--ff-text); line-height: 1.2; margin-bottom: 2px; }
.ff-stat-card__label { font-size: 0.68rem; color: var(--ff-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }

/* Rank history */
.ff-history-section {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.ff-history-title { font-size: 0.95rem; font-weight: 700; color: var(--ff-text); margin-bottom: 4px; }
.ff-history-sub   { font-size: 0.75rem; color: var(--ff-text-muted); margin-bottom: 16px; }
.ff-chart-wrap    { position: relative; height: 220px; }
.ff-history-empty { text-align: center; padding: 20px; color: var(--ff-text-muted); font-size: 0.85rem; background: var(--ff-bg-alt); border-radius: var(--ff-radius-sm); }

/* Share section */
.ff-share-section {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-lg);
  padding: 20px 24px;
}
.ff-share-title  { font-size: 0.88rem; font-weight: 700; color: var(--ff-text); margin-bottom: 12px; text-align: center; }
.ff-share-btns   { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* Error state */
.ff-result--error {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px; border-radius: var(--ff-radius-lg);
  background: var(--ff-white); border: 1px solid #FECACA; color: var(--ff-red);
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 640px) {
  .ff-stat-cards { grid-template-columns: repeat(2, 1fr); }
  .ff-result-header { flex-direction: column; text-align: center; padding: 24px; }
  .ff-result-name-lg { white-space: normal; }
  .ff-stat-card__value { font-size: 1.2rem; }
  .ff-chart-wrap { height: 180px; }
}
@media (max-width: 400px) {
  .ff-stat-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Share buttons */
.ff-share { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ff-border-light); }
.ff-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--ff-radius);
  font-size: 0.82rem; font-weight: 600;
  border: none; cursor: pointer; font-family: var(--ff-font);
  text-decoration: none; transition: all var(--ff-transition);
}
.ff-share-btn--fb { background: #1877F2; color: white; }
.ff-share-btn--fb:hover { background: #166FE5; color: white; }
.ff-share-btn--zalo { background: #0068FF; color: white; }
.ff-share-btn--zalo:hover { background: #0056D6; color: white; }
.ff-share-btn--tiktok { background: #111; color: white; }
.ff-share-btn--tiktok:hover { background: #333; color: white; }
.ff-share-btn--copy { background: var(--ff-bg-alt); color: var(--ff-text); border: 1px solid var(--ff-border); }
.ff-share-btn--copy:hover { background: var(--ff-border-light); }

/* ============================================
   8. QUICK ACTIONS
   ============================================ */
.ff-quick-sec { padding: 24px 0; background: var(--ff-white); border-bottom: 1px solid var(--ff-border); }
.ff-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ff-quick-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--ff-white);
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 14px 16px;
  text-decoration: none; color: var(--ff-text);
  transition: all var(--ff-transition);
}
.ff-quick-btn:hover { border-color: var(--ff-primary); box-shadow: var(--ff-shadow-orange); color: var(--ff-primary); transform: translateY(-2px); }
.ff-quick-btn__icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.ff-quick-btn__lb { font-weight: 700; font-size: 0.88rem; }
.ff-quick-btn__sub { font-size: 0.7rem; color: var(--ff-text-muted); margin-top: 1px; }

/* ============================================
   9. SECTION HEADERS
   ============================================ */
.ff-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ff-sec-title { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 800; color: var(--ff-text); }
.ff-sec-title::before { content: ''; width: 4px; height: 22px; background: linear-gradient(180deg, var(--ff-accent), var(--ff-primary)); border-radius: 2px; box-shadow: 0 0 8px rgba(255, 107, 0, 0.4); }
.ff-sec-link { font-size: 0.8rem; font-weight: 600; color: var(--ff-primary); }
.ff-sec-link:hover { color: var(--ff-primary-dark); }

/* ============================================
   10. EMAIL SUBSCRIBE FORM
   ============================================ */
.ff-subscribe-form {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-lg);
  padding: 28px 32px;
  margin: 24px 0;
}
.ff-subscribe-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.ff-subscribe-icon { font-size: 2.4rem; flex-shrink: 0; }
.ff-subscribe-text { flex: 1; min-width: 200px; }
.ff-subscribe-title { font-size: 1rem; font-weight: 700; color: var(--ff-text); margin-bottom: 4px; }
.ff-subscribe-desc { font-size: 0.82rem; color: var(--ff-text-muted); line-height: 1.5; }
.ff-subscribe-fields { display: flex; gap: 8px; min-width: 300px; flex: 2; }
.ff-subscribe-fields input:focus { border-color: var(--ff-primary); }

@media (max-width: 768px) {
  .ff-subscribe-inner { flex-direction: column; align-items: stretch; }
  .ff-subscribe-icon { display: none; }
  .ff-subscribe-fields { flex-direction: column; min-width: 0; }
  .ff-subscribe-form { padding: 20px; }
}

/* ============================================
   11. ARTICLE CARDS
   ============================================ */
.ff-articles-sec { padding: 40px 0; background: var(--ff-white); }
.ff-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ff-art-card {
    background: var(--ff-white);
    border-radius: var(--ff-radius);
    border: 1px solid var(--ff-border);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

/* Article hero banners auto-injected by category (CSS, no CDN) */
.ff-article-hero-banner {
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ff-article-hero-banner__icon { font-size: 2.5rem; }
.ff-article-hero-banner__text { font-size: 0.95rem; font-weight: 700; color: white; opacity: 0.9; }

/* ── Main Content Area ── */
.ff-main {
    min-height: calc(100vh - 60px);
    padding-top: 0;
}
.ff-container {
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}
.ff-article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 40px;
}
.ff-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}
.ff-art-card:hover { box-shadow: var(--ff-shadow-md); transform: translateY(-4px); border-color: transparent; }
.ff-art-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--ff-primary), var(--ff-primary-dark)); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ff-art-img img { width: 100%; height: 100%; object-fit: cover; }
.ff-art-cat { position: absolute; top: 8px; left: 8px; background: var(--ff-primary); color: white; font-size: 0.62rem; font-weight: 700; padding: 2px 8px; border-radius: var(--ff-radius-full); text-transform: uppercase; }
.ff-art-body { padding: 14px; }
.ff-art-title { font-size: 0.88rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ff-text); }
.ff-art-title a { color: inherit; text-decoration: none; }
.ff-art-title a:hover { color: var(--ff-primary); }
.ff-art-meta { display: flex; gap: 10px; font-size: 0.7rem; color: var(--ff-text-muted); }
.ff-art-meta span { display: flex; align-items: center; gap: 3px; }
.ff-art-card--feat { grid-column: span 2; grid-row: span 2; }
.ff-art-card--feat .ff-art-img { aspect-ratio: 16/10; }
.ff-art-card--feat .ff-art-body { padding: 18px; }
.ff-art-card--feat .ff-art-title { font-size: 1.1rem; -webkit-line-clamp: 3; }

/* ============================================
   11. GIFT CODE
   ============================================ */
.ff-gc-sec { padding: 40px 0; background: var(--ff-bg-alt); border-top: 1px solid var(--ff-border); border-bottom: 1px solid var(--ff-border); }
.ff-gc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ff-gc-card {
  background: var(--ff-white);
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 16px;
  transition: all var(--ff-transition);
}
.ff-gc-card:hover { border-color: var(--ff-primary); box-shadow: var(--ff-shadow-orange); }
.ff-gc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ff-gc-type { font-size: 0.65rem; font-weight: 700; padding: 2px 10px; border-radius: var(--ff-radius-full); color: white; text-transform: uppercase; }
.ff-gc-exp { font-size: 0.7rem; font-weight: 700; color: var(--ff-accent); }
.ff-gc-box { background: var(--ff-bg-alt); border: 1px dashed var(--ff-border); border-radius: var(--ff-radius-sm); padding: 10px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ff-gc-code { font-size: 1rem; font-weight: 800; color: var(--ff-primary); font-family: monospace; letter-spacing: 1px; }
.ff-gc-copy {
    background: var(--ff-primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--ff-font);
    transition: all 0.2s;
    min-width: 100px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 3px 8px rgba(255,107,0,0.3);
}

.ff-copy-label { pointer-events: none; }

.ff-gc-copy:hover {
    background: var(--ff-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(255,107,0,0.4);
}

.ff-gc-reward { font-size: 0.78rem; color: var(--ff-text-secondary); margin-bottom: 8px; }
.ff-gc-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--ff-text-muted); }
.ff-gc-ok { color: var(--ff-green); font-weight: 700; }
.ff-gc-expired { color: var(--ff-red); font-weight: 700; }

/* Filter tabs */
.ff-filter-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.ff-filter-tab {
  padding: 6px 16px;
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius-full);
  background: var(--ff-white);
  color: var(--ff-text-secondary);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; font-family: var(--ff-font);
  transition: all var(--ff-transition);
}
.ff-filter-tab.active,
.ff-filter-tab:hover { background: var(--ff-primary); color: white; border-color: var(--ff-primary); }

/* ============================================
   12. TIER LIST
   ============================================ */
.ff-tier-sec { padding: 40px 0; background: var(--ff-white); }
.ff-tier-row { margin-bottom: 24px; }
.ff-tier-row-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ff-tier-badge { width: 44px; height: 44px; border-radius: var(--ff-radius); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.ff-tier-badge--s { background: linear-gradient(135deg, var(--ff-primary), var(--ff-primary-dark)); }
.ff-tier-badge--a { background: linear-gradient(135deg, var(--ff-primary-light), var(--ff-accent)); }
.ff-tier-badge--b { background: linear-gradient(135deg, var(--ff-accent), #F59E0B); }
.ff-tier-badge--c { background: linear-gradient(135deg, #9CA3AF, #6B7280); }
.ff-tier-badge__l { font-size: 1.3rem; font-weight: 900; color: white; line-height: 1; }
.ff-tier-badge__t { font-size: 0.5rem; color: rgba(255,255,255,0.8); font-weight: 700; text-transform: uppercase; }
.ff-tier-subtitle { font-size: 0.95rem; font-weight: 800; color: var(--ff-text); }
.ff-tier-submeta { font-size: 0.72rem; color: var(--ff-text-muted); }
.ff-tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.ff-tier-item {
    background: var(--ff-white); border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-sm); padding: 12px;
    transition: all var(--ff-transition);
    text-align: center;
}
.ff-tier-item:hover { border-color: var(--ff-primary); box-shadow: var(--ff-shadow); }
.ff-tier-item__icon-circle {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto 6px;
}
.ff-tier-item__n { font-weight: 700; font-size: 0.88rem; color: var(--ff-text); margin-bottom: 5px; }
.ff-tier-item__s { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ff-tier-item__stat { font-size: 0.65rem; color: var(--ff-text-muted); background: var(--ff-bg-alt); padding: 2px 7px; border-radius: 3px; }

/* ============================================
   13. TOURNAMENTS
   ============================================ */
.ff-tour-sec { padding: 40px 0; background: var(--ff-bg-alt); border-top: 1px solid var(--ff-border); }
.ff-tour-card { background: var(--ff-white); border: 1px solid var(--ff-border); border-radius: var(--ff-radius); overflow: hidden; margin-bottom: 14px; }
.ff-tour-card__head { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ff-border-light); gap: 12px; }
.ff-tour-card__name { font-size: 0.95rem; font-weight: 700; color: var(--ff-text); margin-bottom: 3px; }
.ff-tour-card__meta { display: flex; gap: 12px; font-size: 0.75rem; color: var(--ff-text-muted); }
.ff-tour-card__status { padding: 3px 12px; border-radius: var(--ff-radius-full); font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.ff-tour-card__status--live { background: #FEF2F2; color: var(--ff-red); }
.ff-tour-card__status--upcoming { background: #FFFBEB; color: #D97706; }
.ff-tour-card__status--done { background: var(--ff-bg-alt); color: var(--ff-text-muted); }
.ff-tour-table { width: 100%; border-collapse: collapse; }
.ff-tour-table th { padding: 9px 18px; text-align: left; font-size: 0.7rem; font-weight: 700; color: var(--ff-text-muted); text-transform: uppercase; letter-spacing: 0.5px; background: var(--ff-bg-alt); border-bottom: 1px solid var(--ff-border-light); }
.ff-tour-table td { padding: 10px 18px; font-size: 0.85rem; border-bottom: 1px solid var(--ff-border-light); color: var(--ff-text); }
.ff-tour-table tr:last-child td { border-bottom: none; }
.ff-tour-table tr:hover td { background: rgba(255,107,0,0.02); }
.ff-rank-med { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.72rem; font-weight: 700; }
.ff-rank-med--1 { background: linear-gradient(135deg,#FFD700,#FFA500); color: white; }
.ff-rank-med--2 { background: linear-gradient(135deg,#C0C0C0,#A0A0A0); color: white; }
.ff-rank-med--3 { background: linear-gradient(135deg,#CD7F32,#B87333); color: white; }
.ff-rank-med--n { background: var(--ff-bg-alt); color: var(--ff-text-muted); }
.ff-tour-pts { font-weight: 800; color: var(--ff-primary); }

/* ============================================
   14. NEWSLETTER
   ============================================ */
.ff-newsletter { padding: 48px 0; background: var(--ff-white); border-top: 1px solid var(--ff-border); }
.ff-newsletter__box { background: linear-gradient(135deg, var(--ff-primary), var(--ff-primary-dark)); border-radius: var(--ff-radius-lg); padding: 44px; text-align: center; }
.ff-newsletter__icon { font-size: 2.8rem; margin-bottom: 10px; }
.ff-newsletter__title { color: white; font-size: 1.4rem; margin-bottom: 8px; }
.ff-newsletter__desc { color: rgba(255,255,255,0.8); font-size: 0.88rem; margin-bottom: 22px; max-width: 400px; margin-left: auto; margin-right: auto; }
.ff-newsletter__form { display: flex; max-width: 420px; margin: 0 auto; background: rgba(255,255,255,0.15); border-radius: var(--ff-radius); overflow: hidden; }
.ff-newsletter__form input { flex: 1; padding: 12px 14px; border: none; background: transparent; font-size: 0.88rem; color: white; font-family: var(--ff-font); outline: none; }
.ff-newsletter__form input::placeholder { color: rgba(255,255,255,0.6); }
.ff-newsletter__form button { padding: 12px 20px; background: white; color: var(--ff-primary); border: none; font-size: 0.85rem; font-weight: 700; cursor: pointer; font-family: var(--ff-font); }
.ff-newsletter__note { font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-top: 10px; }

/* ============================================
   15. SIDEBAR
   ============================================ */
.ff-side-widget { background: var(--ff-white); border: 1px solid var(--ff-border); border-radius: var(--ff-radius); overflow: hidden; margin-bottom: 14px; }
.ff-side-widget__title { background: var(--ff-text); color: white; font-size: 0.82rem; font-weight: 700; padding: 9px 14px; }
.ff-side-player { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--ff-border-light); text-decoration: none; color: inherit; transition: background var(--ff-transition); }
.ff-side-player:last-child { border-bottom: none; }
.ff-side-player:hover { background: rgba(255,107,0,0.03); }
.ff-side-player__rank { font-size: 0.78rem; font-weight: 800; color: var(--ff-primary); width: 18px; text-align: center; flex-shrink: 0; }
.ff-side-player__n { font-size: 0.8rem; font-weight: 700; color: var(--ff-text); }
.ff-side-player__r { font-size: 0.65rem; color: var(--ff-text-muted); }
.ff-side-player__p { font-size: 0.8rem; font-weight: 800; color: var(--ff-primary); flex-shrink: 0; }
.ff-side-link { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--ff-border-light); text-decoration: none; color: var(--ff-text-secondary); font-size: 0.82rem; font-weight: 600; transition: all var(--ff-transition); }
.ff-side-link:last-child { border-bottom: none; }
.ff-side-link:hover { background: rgba(255,107,0,0.04); color: var(--ff-primary); padding-left: 18px; }

/* ============================================
   16. FOOTER
   ============================================ */
.ff-footer { background: #F5F7FA; color: #4B5563; padding: 44px 0 0; }
.ff-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #E5E7EB; }
.ff-footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ff-footer-logo__icon { font-size: 1.5rem; }
.ff-footer-logo h3 { color: #1F2937; font-size: 1.1rem; margin: 0; }
.ff-footer-logo h3 span { color: var(--ff-primary); }
.ff-footer-brand p { font-size: 0.8rem; line-height: 1.7; margin-bottom: 16px; }
.ff-footer-social { display: flex; gap: 8px; }
.ff-social-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; color: white; transition: transform 0.2s, opacity 0.2s; }
.ff-social-btn:hover { transform: translateY(-2px); opacity: 0.85; }
.ff-social-btn--fb { background: #1877F2; }
.ff-social-btn--yt { background: #FF0000; }
.ff-social-btn--tg { background: #0088CC; }
.ff-footer-col h4 { color: #1F2937; font-size: 0.8rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.ff-footer-col ul { list-style: none; }
.ff-footer-col ul li { margin-bottom: 7px; }
.ff-footer-col ul li a { color: #6B7280; font-size: 0.8rem; transition: color var(--ff-transition); }
.ff-footer-col ul li a:hover { color: var(--ff-primary); padding-left: 4px; }
.ff-footer-links { padding: 20px 0; border-bottom: 1px solid #E5E7EB; }
.ff-footer-links__title { color: #1F2937; font-size: 0.8rem; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.ff-footer-links__list { display: flex; flex-wrap: wrap; gap: 8px; }
.ff-footer-links__item { display: inline-block; padding: 5px 14px; background: white; border: 1px solid #E5E7EB; border-radius: 6px; color: #6B7280; font-size: 0.78rem; text-decoration: none; transition: all 0.2s; }
.ff-footer-links__item:hover { color: var(--ff-primary); border-color: var(--ff-primary); background: #FFF7ED; }
.ff-footer-bottom { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: #9CA3AF; }
.ff-footer-bottom__left { }
.ff-footer-bottom__right { display: flex; gap: 16px; }
.ff-footer-bottom__right a { color: #9CA3AF; text-decoration: none; transition: color 0.2s; }
.ff-footer-bottom__right a:hover { color: var(--ff-primary); }

/* ── Subscribe Modal ── */
.ff-subscribe-modal {
    display: none;
    position: fixed; inset: 0; z-index: 99997;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
    padding: 20px;
}
.ff-subscribe-modal.open { display: flex; }

.ff-subscribe-modal__box {
    background: var(--ff-white);
    border-radius: 16px;
    width: 100%; max-width: 460px;
    padding: 36px 32px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: ff_subscribe_in 0.2s ease;
}
@keyframes ff_subscribe_in {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ff-subscribe-modal__close {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--ff-bg-alt); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--ff-text-secondary);
}
.ff-subscribe-modal__close:hover { background: var(--ff-border); }
.ff-subscribe-modal__icon { font-size: 3rem; margin-bottom: 12px; }
.ff-subscribe-modal__title {
    font-size: 1.25rem; font-weight: 800; color: var(--ff-text);
    margin-bottom: 8px;
}
.ff-subscribe-modal__desc {
    font-size: 0.85rem; color: var(--ff-text-secondary);
    line-height: 1.6; margin-bottom: 20px;
}
.ff-subscribe-modal__form {
    display: flex; flex-direction: column; gap: 10px;
}
.ff-subscribe-modal__form input {
    padding: 13px 16px; border: 2px solid var(--ff-border);
    border-radius: var(--ff-radius); font-size: 0.9rem;
    font-family: var(--ff-font); color: var(--ff-text);
    background: var(--ff-white); outline: none;
    transition: border-color 0.2s; width: 100%; box-sizing: border-box;
}
.ff-subscribe-modal__form input:focus { border-color: var(--ff-primary); }
.ff-subscribe-modal__form button {
    padding: 13px 24px; background: var(--ff-primary); color: white;
    border: none; border-radius: var(--ff-radius); font-size: 0.9rem;
    font-weight: 700; cursor: pointer; font-family: var(--ff-font);
    transition: background 0.2s; width: 100%;
}
.ff-subscribe-modal__form button:hover { background: var(--ff-primary-dark); }
.ff-subscribe-modal__form button:disabled { opacity: 0.6; cursor: not-allowed; }
.ff-subscribe-modal__note {
    font-size: 0.72rem; color: var(--ff-text-muted); margin-top: 12px;
}

/* ============================================
   17. TOOL PAGES (Guild, Ban, Top100)
   ============================================ */
.ff-tool-page { max-width: 900px; margin: 0 auto; padding: 36px 16px; }
.ff-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--ff-text-muted); margin-bottom: 20px; }
.ff-breadcrumb a { color: var(--ff-primary); }
.ff-breadcrumb a:hover { color: var(--ff-primary-dark); }
.ff-tool-hero { background: linear-gradient(135deg, var(--ff-primary), var(--ff-primary-dark)); border-radius: var(--ff-radius-lg); padding: 36px; text-align: center; color: white; margin-bottom: 24px; }
.ff-tool-hero__icon { font-size: 2.8rem; margin-bottom: 10px; }
.ff-tool-hero__title { color: white; font-size: 1.5rem; margin-bottom: 6px; }
.ff-tool-hero__desc { color: rgba(255,255,255,0.85); font-size: 0.88rem; max-width: 460px; margin: 0 auto; }
.ff-tool-form { background: var(--ff-white); border: 1px solid var(--ff-border); border-radius: var(--ff-radius-lg); padding: 24px; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.ff-tool-form input { flex: 1; padding: 11px 14px; border: 2px solid var(--ff-border); border-radius: var(--ff-radius); font-size: 0.95rem; font-family: var(--ff-font); color: var(--ff-text); outline: none; transition: border-color var(--ff-transition); }
.ff-tool-form input:focus { border-color: var(--ff-primary); }
.ff-tool-form button { padding: 11px 22px; background: var(--ff-primary); color: white; border: none; border-radius: var(--ff-radius); font-size: 0.9rem; font-weight: 700; cursor: pointer; font-family: var(--ff-font); white-space: nowrap; }
.ff-tool-form button:hover { background: var(--ff-primary-dark); }

/* Safe/Banned result */
.ff-result--safe { background: #F0FDF4; border: 2px solid var(--ff-green); border-radius: var(--ff-radius-lg); padding: 28px; text-align: center; }
.ff-result--banned { background: #FEF2F2; border: 2px solid var(--ff-red); border-radius: var(--ff-radius-lg); padding: 28px; text-align: center; }
.ff-result--error { background: #FEF2F2; border: 1.5px solid #FECACA; border-radius: var(--ff-radius); padding: 18px; text-align: center; color: var(--ff-red); }

/* Leaderboard */
.ff-lb-wrap { background: var(--ff-white); border: 1px solid var(--ff-border); border-radius: var(--ff-radius); overflow: hidden; box-shadow: var(--ff-shadow); }
.ff-lb-wrap table { width: 100%; border-collapse: collapse; }
.ff-lb-wrap th { padding: 10px 14px; text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--ff-text-muted); text-transform: uppercase; letter-spacing: 0.5px; background: var(--ff-bg-alt); border-bottom: 1px solid var(--ff-border); }
.ff-lb-wrap th:nth-child(2), .ff-lb-wrap th:nth-child(3) { text-align: left; }
.ff-lb-wrap td { padding: 10px 14px; font-size: 0.85rem; border-bottom: 1px solid var(--ff-border-light); }
.ff-lb-wrap tr:last-child td { border-bottom: none; }
.ff-lb-wrap tr:hover td { background: rgba(255,107,0,0.02); cursor: pointer; }
.ff-lb-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 800; color: white; flex-shrink: 0;
    position: relative; overflow: hidden;
}
.ff-lb-avatar-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
}
.ff-lb-avatar-letter { position: relative; z-index: 1; }
.ff-lb-medal {
    width: 28px; height: 28px; object-fit: contain;
    vertical-align: middle;
}
.ff-lb-name-cell { display: flex; align-items: center; gap: 8px; }
.ff-lb-name { font-weight: 700; color: var(--ff-text); font-size: 0.88rem; }
.ff-lb-uid { font-size: 0.65rem; color: var(--ff-text-muted); font-family: monospace; }
.ff-lb-pts { font-weight: 800; color: var(--ff-primary); }
.lb-row--top1 { background: rgba(255,215,0,0.05); }
.lb-row--top2 { background: rgba(192,192,192,0.05); }
.lb-row--top3 { background: rgba(205,127,50,0.05); }
@media (max-width: 640px) {
    .ff-lb-avatar { width: 28px; height: 28px; }
    .ff-lb-medal { width: 22px; height: 22px; }
}
/* ============================================
   18. 404 PAGE
   ============================================ */
.ff-404 { text-align: center; padding: 72px 20px; }
.ff-404__num { font-size: 6rem; font-weight: 900; color: var(--ff-primary); line-height: 1; opacity: 0.12; display: inline-block; margin-bottom: 16px; }
.ff-404__t { font-size: 1.3rem; margin-bottom: 10px; }
.ff-404__d { color: var(--ff-text-secondary); margin-bottom: 28px; max-width: 380px; margin-left: auto; margin-right: auto; }
.ff-404__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 520px; margin: 0 auto 24px; }
.ff-404__link { display: flex; align-items: center; gap: 10px; background: var(--ff-white); border: 1px solid var(--ff-border); border-radius: var(--ff-radius-sm); padding: 12px; text-decoration: none; color: var(--ff-text); font-size: 0.8rem; font-weight: 600; transition: all var(--ff-transition); }
.ff-404__link:hover { border-color: var(--ff-primary); color: var(--ff-primary); box-shadow: var(--ff-shadow-orange); }
.ff-404__icon { width: 34px; height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.ff-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--ff-primary); color: white; border-radius: var(--ff-radius); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.ff-btn:hover { background: var(--ff-primary-dark); color: white; transform: translateY(-2px); box-shadow: var(--ff-shadow-orange); }

/* ============================================
   19. ADSENSE PLACEHOLDERS
   ============================================ */
.ff-ad { margin: 20px 0; text-align: center; background: var(--ff-bg-alt); border-radius: var(--ff-radius); padding: 14px; min-height: 80px; }
.ff-ad::before { content: 'Quảng cáo'; display: block; font-size: 0.62rem; color: var(--ff-text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================================
   20. ALERTS & UTILITIES
   ============================================ */
.ff-alert { border-radius: var(--ff-radius); padding: 12px 16px; font-size: 0.82rem; margin-bottom: 14px; }
.ff-alert--warn { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.ff-alert--info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.ff-loading { text-align: center; padding: 28px; color: var(--ff-text-muted); }
.ff-loading__spin { display: inline-block; font-size: 1.4rem; animation: spin 1s linear infinite; margin-bottom: 6px; }
@keyframes spin { from{transform:rotate(0deg)}to{transform:rotate(360deg)} }
.ff-pagination { display: flex; justify-content: center; gap: 6px; padding: 28px 0; }
.ff-pagination a,.ff-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--ff-radius-sm); font-size: 0.82rem; font-weight: 600; border: 1px solid var(--ff-border); color: var(--ff-text-secondary); text-decoration: none; transition: all var(--ff-transition); }
.ff-pagination a:hover,.ff-pagination .current { background: var(--ff-primary); color: white; border-color: var(--ff-primary); }

/* ============================================
   21. WORDPRESS DEFAULTS
   ============================================ */
.widget { margin-bottom: 14px; }
.widgettitle { font-size: 0.88rem; font-weight: 700; color: var(--ff-text); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ff-primary); }
.site-content { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--ff-primary); }

/* ============================================
   22. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .ff-hero-grid { grid-template-columns: 1fr; }
  .ff-hero-side { display: none; }
  .ff-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .ff-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .ff-art-card--feat { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
  #ff-primary-menu { display: none; }
  #ff-primary-menu.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ff-white); box-shadow: var(--ff-shadow-md); z-index: 999; border-top: 1px solid var(--ff-border); width: 100%; }
  #ff-primary-menu li a { padding: 13px 16px; border-bottom: 1px solid var(--ff-border-light); border: none; height: auto; line-height: 1.4; }
  #ff-primary-menu .sub-menu { display: none !important; position: static; box-shadow: none; border: none; border-radius: 0; padding: 0 0 0 24px; }
  #ff-primary-menu.open .sub-menu { display: block !important; }
  #ff-primary-menu.open .sub-menu li a { padding: 10px 16px; }
  .ff-mob-toggle { display: flex; }
  .ff-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .ff-articles-grid { grid-template-columns: 1fr; }
  .ff-art-card--feat { grid-column: span 1; }
  .ff-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .ff-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .ff-footer-bottom__right { justify-content: center; }
  .ff-footer-links__list { gap: 6px; }
  .ff-result { grid-template-columns: 1fr; text-align: center; }
  .ff-result-avatar { margin: 0 auto; }
  .ff-404__grid { grid-template-columns: repeat(2, 1fr); }
  .ff-tool-form { flex-direction: column; }
  .ff-tool-form input { width: 100%; }
  .ff-tool-form button { width: 100%; }
  .ff-newsletter__form { flex-direction: column; border-radius: var(--ff-radius); }
  .ff-newsletter__box { padding: 28px 20px; }
  .ff-hero-main { padding: 28px; }
  .ff-tour-card__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .ff-quick-grid { grid-template-columns: 1fr; }
  .ff-gc-grid { grid-template-columns: 1fr; }
  .ff-tier-grid { grid-template-columns: repeat(2, 1fr); }
  .ff-result-stats { grid-template-columns: repeat(3, 1fr); }
}


/* ============================================
   GAME PORTAL v5.0 - HOMEPAGE SECTIONS
   ============================================ */

/* ── SECTION WRAPPER BASE ── */
.ff-lookup-sec,
.ff-carousel-sec,
.ff-gift-sec,
.ff-articles-sec,
.ff-quick-sec {
  padding: 24px 0;
}

/* ── I. HERO BANNER ── */
.ff-hero-banner {
  background: linear-gradient(135deg, #FF6B00 0%, #E55A00 40%, #CC3300 70%, #FF8C42 100%);
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: ff_hero_in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ff_hero_in {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ff-hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.ff-hero-deco {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.25;
  flex-shrink: 0;
}

.ff-hero-deco--right {
  opacity: 0.18;
}

.ff-hero-icon {
  font-size: 1.4rem;
  filter: blur(0.5px);
  animation: ff_icon_float 3s ease-in-out infinite;
}

.ff-hero-icon--1 { animation-delay: 0s; }
.ff-hero-icon--2 { animation-delay: 0.3s; font-size: 1.1rem; }
.ff-hero-icon--3 { animation-delay: 0.6s; font-size: 1.6rem; }
.ff-hero-icon--4 { animation-delay: 0.9s; font-size: 1.2rem; }
.ff-hero-icon--5 { animation-delay: 1.2s; }
.ff-hero-icon--6 { animation-delay: 1.5s; font-size: 1.3rem; }
.ff-hero-icon--7 { animation-delay: 1.8s; font-size: 1.5rem; }
.ff-hero-icon--8 { animation-delay: 2.1s; }

@keyframes ff_icon_float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-6px) rotate(8deg); opacity: 1; }
}

.ff-hero-content {
  flex: 1;
  text-align: center;
}

.ff-hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ff-hero-logo {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

.ff-hero-game-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: white;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ff-hero-slogan {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 3px 12px rgba(0,0,0,0.35);
  margin-bottom: 8px;
  line-height: 1.15;
}

.ff-hero-sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 14px;
  font-weight: 500;
}

.ff-hero-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.ff-hero-badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ── II. LOOKUP CARD (floating white card) ── */
.ff-stats-sec {
  background: var(--ff-bg-alt);
  padding: 0;
}

.ff-stats-card:hover {
  box-shadow:
    0 0 0 2.5px var(--ff-primary-dark),
    0 16px 48px rgba(255,107,0,0.22),
    0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

@keyframes ff_card_in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ff-stats-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ff-text);
  margin-bottom: 4px;
}

.ff-stats-card > p {
  font-size: 0.85rem;
  color: var(--ff-text-muted);
  margin-bottom: 20px;
}

.ff-search-bar {
  display: flex;
  gap: 10px;
  position: relative;
  align-items: center;
}

.ff-search-bar input[type="text"] {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--ff-font);
  border: 2px solid var(--ff-border);
  border-radius: 12px;
  outline: none;
  background: var(--ff-bg-alt);
  color: var(--ff-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ff-search-bar input[type="text"]:focus {
  border-color: var(--ff-primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}

.ff-lookup-btn {
  background: linear-gradient(135deg, #FF6B00, #E55A00);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--ff-font);
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255,107,0,0.35);
}

.ff-lookup-btn:hover {
  background: linear-gradient(135deg, #E55A00, #CC3300);
  box-shadow: 0 6px 18px rgba(255,107,0,0.45);
  transform: translateY(-1px);
}

.ff-lookup-btn:active {
  transform: translateY(0);
}

/* Legacy button id mapping */
#ff-lookup-btn { background: linear-gradient(135deg, #FF6B00, #E55A00); color: white; border: none; padding: 14px 28px; font-size: 1rem; font-weight: 700; font-family: var(--ff-font); border-radius: 12px; cursor: pointer; white-space: nowrap; transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(255,107,0,0.35); }
#ff-lookup-btn:hover { background: linear-gradient(135deg, #E55A00, #CC3300); box-shadow: 0 6px 18px rgba(255,107,0,0.45); transform: translateY(-1px); }

/* ── III. TOURNAMENT CAROUSEL ── */
.ff-carousel-sec {
  background: var(--ff-bg-alt);
  padding: 36px 0 40px;
}

.ff-hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  animation: ff_card_in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.ff-hero-main {
  border-radius: 16px;
  padding: 32px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  transition: transform 0.25s ease;
}

.ff-hero-main:hover {
  transform: scale(1.01);
}

.ff-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
  width: fit-content;
}

.ff-hero-badge--live {
  background: rgba(239,68,68,0.85);
}

.ff-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin: 0;
}

.ff-hero-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.ff-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.ff-hero-btn:hover {
  background: rgba(255,255,255,0.3);
  color: white;
}

.ff-hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ff-hero-card {
  border-radius: 12px;
  padding: 16px 18px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.ff-hero-card:hover {
  transform: translateX(-4px);
}

.ff-hero-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.ff-hero-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ff-hero-card-date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
}

/* ── IV. GIFT CODE GRID ── */
.ff-gc-sec {
  background: white;
  padding: 36px 0 40px;
}

.ff-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}

.ff-sec-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ff-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.ff-sec-link:hover { color: var(--ff-primary-dark); }

.ff-gc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.ff-gc-card {
  background: white;
  border-radius: 14px;
  padding: 20px 18px 16px;
  border: 1.5px solid var(--ff-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
  animation: ff_card_in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
  position: relative;
}

.ff-gc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
}

.ff-gc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  border-color: transparent;
}

/* Type-based top border color */
.ff-gc-card[data-type="Sự kiện"]::before,
.ff-gc-card[data-type="Garena"]::before { background: linear-gradient(90deg, #FF6B00, #FFB800); }
.ff-gc-card[data-type="Lễ hội"]::before { background: linear-gradient(90deg, #F472B6, #A855F7); }
.ff-gc-card[data-type="VIP"]::before { background: linear-gradient(90deg, #FFB800, #FF6B00); }
.ff-gc-card[data-type="Free"]::before { background: linear-gradient(90deg, #22C55E, #16A34A); }

/* Type-based card tint */
.ff-gc-card[data-type="Sự kiện"] { background: #FFF7ED; border-color: #FED7AA; }
.ff-gc-card[data-type="Garena"] { background: #FAF5FF; border-color: #E9D5FF; }
.ff-gc-card[data-type="Lễ hội"] { background: #FDF4FF; border-color: #F5D0FE; }
.ff-gc-card[data-type="VIP"] { background: #FFFBEB; border-color: #FDE68A; }
.ff-gc-card[data-type="Free"] { background: #F0FDF4; border-color: #BBF7D0; }

.ff-gc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ff-gc-type {
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.ff-gc-exp {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ff-red);
}

.ff-gc-reward-icon-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.ff-gc-reward-icon-inner {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ff-gc-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.ff-gc-code {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ff-text);
  font-family: var(--ff-font);
  letter-spacing: 1px;
}

.ff-gc-copy {
    background: var(--ff-primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--ff-font);
    transition: all 0.2s;
    min-width: 100px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 3px 8px rgba(255,107,0,0.3);
}

.ff-copy-label { pointer-events: none; }

.ff-gc-copy:hover {
    background: var(--ff-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(255,107,0,0.4);
}

.ff-gc-reward {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ff-text-secondary);
  margin-bottom: 8px;
}

.ff-gc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--ff-text-muted);
}

.ff-gc-ok { color: var(--ff-green); font-weight: 600; }
.ff-gc-expired { color: var(--ff-red); font-weight: 600; }

/* Gift section header accent line */
.ff-gift-sec .ff-sec-head {
  border-left: 4px solid var(--ff-primary);
  padding-left: 14px;
}

/* ── V. ARTICLE GRID ── */
.ff-articles-sec {
  background: var(--ff-bg-alt);
  padding: 36px 0 40px;
}

.ff-art-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--ff-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: ff_card_in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ff-art-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: transparent;
}

.ff-art-card--feat {
  grid-column: span 1;
}

.ff-art-img {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #FF6B00 0%, #FFB800 100%);
  overflow: hidden;
}

.ff-art-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ff-art-card:hover .ff-art-img img {
  transform: scale(1.06);
}

.ff-art-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.ff-art-body {
  padding: 16px;
}

.ff-art-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ff-text);
  line-height: 1.4;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ff-art-title a {
  color: inherit;
  text-decoration: none;
}

.ff-art-title a:hover { color: var(--ff-primary); }

.ff-art-meta {
  display: flex;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--ff-text-muted);
}

/* ── VI. QUICK ACTIONS ── */
.ff-quick-sec {
  background: white;
  padding: 36px 0 40px;
}

/* ── SCROLL REVEAL ANIMATIONS ── */
.ff-carousel-sec .ff-hero-grid,
.ff-gift-sec .ff-gc-grid,
.ff-articles-sec .ff-articles-grid,
.ff-quick-sec .ff-quick-grid {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ff-carousel-sec .ff-hero-grid.ff-visible,
.ff-gift-sec .ff-gc-grid.ff-visible,
.ff-articles-sec .ff-articles-grid.ff-visible,
.ff-quick-sec .ff-quick-grid.ff-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .ff-hero-grid {
    grid-template-columns: 1fr;
  }
  .ff-hero-side {
    display: none;
  }
  .ff-hero-main {
    min-height: 180px;
  }
  .ff-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ff-gc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ff-hero-banner {
    min-height: 120px;
  }
  .ff-hero-inner {
    padding: 16px 16px;
    gap: 16px;
  }
  .ff-hero-deco {
    display: none;
  }
  .ff-hero-slogan {
    font-size: 1.3rem;
  }
  .ff-hero-sub {
    font-size: 0.78rem;
  }
  .ff-hero-badges {
    gap: 6px;
  }
  .ff-hero-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
  .ff-stats-card {
    margin: -24px 12px 0;
    padding: 24px 20px;
    border-radius: 16px;
  }
  .ff-search-bar {
    flex-direction: column;
  }
  .ff-search-bar input[type="text"] {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  .ff-lookup-btn,
  #ff-lookup-btn {
    width: 100%;
    padding: 13px;
    font-size: 0.95rem;
  }
  .ff-articles-grid {
    grid-template-columns: 1fr;
  }
  .ff-gc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ff-sec-title {
    font-size: 1.15rem;
  }
  .ff-lookup-sec,
  .ff-carousel-sec,
  .ff-gift-sec,
  .ff-articles-sec,
  .ff-quick-sec {
    padding: 20px 0;
  }
  .ff-sec-title {
    font-size: 1.15rem;
  }
  .ff-lookup-sec,
  .ff-carousel-sec,
  .ff-gift-sec,
  .ff-articles-sec,
  .ff-quick-sec {
    padding: 20px 0;
  }
}

@media (max-width: 400px) {
  .ff-gc-grid {
    grid-template-columns: 1fr;
  }
}

/* ── SHARE POSTER SECTION ── */
.ff-poster-section {
  margin-top: 24px;
  padding: 20px;
  background: var(--ff-bg-alt);
  border-radius: var(--ff-radius);
  border: 1.5px solid var(--ff-border);
}

.ff-poster-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ff-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ff-poster-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.ff-poster-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF6B00, #E55A00);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--ff-font);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255,107,0,0.35);
}

.ff-poster-btn:hover {
  background: linear-gradient(135deg, #E55A00, #CC3300);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,107,0,0.45);
}

.ff-poster-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ff-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--ff-font);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ff-poster-dl-btn:hover {
  background: var(--ff-primary-dark);
  color: white;
  transform: translateY(-1px);
}

/* Mobile: bigger tap targets */
@media (max-width: 640px) {
  .ff-poster-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
  }
  .ff-poster-dl-btn {
    padding: 14px 22px;
    font-size: 0.9rem;
  }
  .ff-share-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .ff-share-btn {
    justify-content: center;
    padding: 14px 12px;
    font-size: 0.85rem;
  }
  .ff-lookup-btn,
  #ff-lookup-btn {
    padding: 16px !important;
    font-size: 1rem !important;
  }
  .ff-gc-copy {
    padding: 12px 16px !important;
    font-size: 0.85rem !important;
    min-width: 110px !important;
  }
  .ff-filter-tab {
    padding: 10px 16px !important;
    font-size: 0.82rem !important;
  }
}

/* ================================================================
   PAGE HERO (used by tra-cuu, dang-ky page templates)
   ================================================================ */
.ff-page-hero {
  background: linear-gradient(135deg, #FF6B00 0%, #E55A00 50%, #1a1a2e 100%);
  padding: 60px 16px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ff-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.ff-page-hero__inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.ff-page-hero__icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
  animation: ff_float 3s ease-in-out infinite;
}
@keyframes ff_float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.ff-page-hero__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  margin: 0 0 12px;
  line-height: 1.2;
}
.ff-page-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin: 0 0 20px;
  line-height: 1.7;
}
.ff-page-hero__badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.ff-page-hero__badges .ff-hero-badge {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Info cards section */
.ff-info-sec {
  padding: 50px 16px;
  background: #F5F7FA;
}
.ff-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.ff-info-card {
  background: white;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #E5E7EB;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ff-info-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.ff-info-card__icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.ff-info-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ff-text);
  margin-bottom: 8px;
}
.ff-info-card__body {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.7;
}

/* Related tools section */
.ff-related-sec {
  padding: 50px 16px;
  background: white;
}
.ff-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ff-text);
  text-align: center;
  margin: 0 0 28px;
}

/* Subscribe page styles */
.ff-subscribe-sec {
  padding: 50px 16px;
  background: linear-gradient(180deg, #F5F7FA 0%, #FFFFFF 100%);
}
.ff-subscribe-card {
  max-width: 560px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 44px 36px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  text-align: center;
}
.ff-subscribe-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}
.ff-subscribe-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ff-text);
  margin: 0 0 10px;
}
.ff-subscribe-desc {
  font-size: 0.95rem;
  color: #6B7280;
  margin: 0 0 28px;
  line-height: 1.7;
}
.ff-subscribe-form {
  text-align: left;
}
.ff-subscribe-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.ff-subscribe-fields input[type="text"],
.ff-subscribe-fields input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #E5E7EB;
  font-size: 1rem;
  font-family: var(--ff-font);
  color: var(--ff-text);
  background: #FAFAFA;
  transition: border-color 0.2s;
  box-sizing: border-box;
  outline: none;
}
.ff-subscribe-fields input:focus {
  border-color: var(--ff-primary);
  background: white;
}
.ff-subscribe-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.ff-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #4B5563;
  cursor: pointer;
}
.ff-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ff-primary);
  cursor: pointer;
}
.ff-subscribe-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #FF6B00, #E55A00);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--ff-font);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-bottom: 16px;
}
.ff-subscribe-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,0,0.35);
}
.ff-subscribe-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.ff-sub-error {
  padding: 12px 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  color: #DC2626;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.ff-sub-success {
  padding: 12px 16px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  color: #16A34A;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.ff-subscribe-note {
  font-size: 0.8rem;
  color: #9CA3AF;
  line-height: 1.6;
  margin-top: 8px;
}
.ff-social-follow {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #F0F0F0;
}
.ff-social-follow__label {
  font-size: 0.88rem;
  color: #9CA3AF;
  margin-bottom: 14px;
}
.ff-social-follow__btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.ff-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #F3F4F6;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.ff-social-btn:hover {
  background: #E5E7EB;
  transform: translateY(-1px);
}

/* ── DOWNLOAD BANNER (homepage bottom CTA) ── */
.ff-dl-banner {
  background: var(--ff-bg-alt);
  border-top: 1px solid var(--ff-border);
  padding: 16px 0;
}
.ff-dl-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ff-dl-banner__text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ff-text);
  line-height: 1.4;
}
.ff-dl-banner__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.ff-dl-banner__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF6B00, #E55A00);
  color: white;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(255,107,0,0.3);
  white-space: nowrap;
}
.ff-dl-banner__btn:hover {
  background: linear-gradient(135deg, #E55A00, #CC3300);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(255,107,0,0.4);
}
.ff-dl-banner__btn:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .ff-dl-banner__inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .ff-dl-banner__text {
    justify-content: center;
    font-size: 0.85rem;
  }
  .ff-dl-banner__btn {
    width: 100%;
    justify-content: center;
    padding: 11px 20px;
    font-size: 0.9rem;
  }
}

/* ─────────────────────────────────────────────────────────
   BACK TO TOP BUTTON
───────────────────────────────────────────────────────── */
.ff-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF6B00, #E55A00);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255,107,0,0.45);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease, box-shadow 0.2s ease;
    pointer-events: none;
    scroll-behavior: smooth;
}
.ff-back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.ff-back-to-top:hover {
    background: linear-gradient(135deg, #E55A00, #CC3300);
    box-shadow: 0 6px 28px rgba(255,107,0,0.55);
    transform: translateY(-2px) scale(1.05);
}
.ff-back-to-top:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 12px rgba(255,107,0,0.4);
}

/* ─────────────────────────────────────────────────────────
   NOTIFICATION BAR
───────────────────────────────────────────────────────── */
.ff-notice-bar {
    background: linear-gradient(90deg, #FF6B00 0%, #FF8C00 50%, #FF6B00 100%);
    background-size: 200% 100%;
    animation: ff_notice_shimmer 3s ease infinite;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    position: relative;
    overflow: hidden;
}
.ff-notice-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.12);
    pointer-events: none;
}
.ff-notice-bar a {
    color: #fff;
    text-decoration: underline;
    font-weight: 800;
}
.ff-notice-bar a:hover { color: #FFD700; }
@keyframes ff_notice_shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.ff-notice-bar .ff-notice-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}
.ff-notice-bar .ff-notice-close:hover { background: rgba(255,255,255,0.35); }

/* ─────────────────────────────────────────────────────────
   GLOBAL BUTTON PRESS EFFECT
───────────────────────────────────────────────────────── */
button:active,
a.ff-btn:active,
a[class*="btn"]:active,
.ff-carousel-btn:active,
.ff-share-btn:active,
.ff-top3-btn:active,
.ff-tl-cta-btn:active,
input[type="submit"]:active,
.ff-quick-dl-btn:active,
.ff-fav-btn:active {
    transform: scale(0.95) !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.15) !important;
}

/* ─────────────────────────────────────────────────────────
   SECTION SPACING & CARD HARMONY
───────────────────────────────────────────────────────── */
.ff-section {
    padding: 28px 0;
}
.ff-section > .ff-wrap > .ff-sec-head {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(255,107,0,0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ff-section > .ff-wrap > .ff-sec-head .ff-sec-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1F2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
}
.ff-section > .ff-wrap > .ff-sec-head .ff-sec-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: linear-gradient(to bottom, #FF6B00, #E55A00);
    border-radius: 2px;
    margin-right: 10px;
    flex-shrink: 0;
}
.ff-section > .ff-wrap > .ff-sec-head .ff-sec-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #FF6B00;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}
.ff-section > .ff-wrap > .ff-sec-head .ff-sec-link:hover {
    color: #E55A00;
    transform: translateX(3px);
}

/* Uniform card shadow + hover */
.ff-art-card,
.ff-gc-card,
.ff-top3-card,
.ff-esports-poster-card,
.ff-upcoming-item,
.ff-faq-item,
.ff-stat-card,
.ff-season-weapon-card,
.ff-season-char-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    border-radius: 12px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.ff-art-card:hover,
.ff-gc-card:hover,
.ff-top3-card:hover,
.ff-esports-poster-card:hover,
.ff-upcoming-item:hover,
.ff-faq-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14) !important;
}

/* ─────────────────────────────────────────────────────────
   MOBILE RESPONSIVE
───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ff-section { padding: 20px 0; }

    .ff-section > .ff-wrap > .ff-sec-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .ff-section > .ff-wrap > .ff-sec-head .ff-sec-title {
        font-size: 1.1rem;
    }
    .ff-section > .ff-wrap > .ff-sec-head .ff-sec-title::before {
        height: 1.1em;
    }

    /* 1-column grids on mobile */
    .ff-articles-grid,
    .ff-gc-grid,
    .ff-guides-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .ff-top3-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .ff-season-weapons {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .ff-season-chars {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    .ff-articles-grid .ff-art-card--feat {
        flex-direction: row !important;
    }
    .ff-articles-grid .ff-art-card--feat .ff-art-img {
        width: 100px !important;
        flex-shrink: 0 !important;
    }

    /* All interactive elements min 48px */
    button,
    .ff-carousel-btn,
    .ff-share-btn,
    .ff-top3-btn,
    .ff-tl-cta-btn,
    input[type="submit"],
    input[type="button"],
    .ff-quick-dl-btn,
    .ff-fav-btn,
    .ff-poster-btn,
    .ff-poster-dl-btn,
    a.ff-btn,
    .ff-dl-banner__btn {
        min-height: 48px !important;
        min-width: 48px !important;
        padding: 12px 16px !important;
        font-size: 0.88rem !important;
    }

    /* Smaller carousel arrows */
    .ff-carousel-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
    }

    /* Back to top smaller on mobile */
    .ff-back-to-top {
        bottom: 16px !important;
        right: 16px !important;
        width: 44px !important;
        height: 44px !important;
    }

    /* Font sizes */
    .ff-art-title { font-size: 0.88rem !important; }
    .ff-top3-name { font-size: 0.95rem !important; }
    .ff-gc-code { font-size: 1rem !important; }
    .ff-tour-slide-title { font-size: 1.05rem !important; }
    .ff-hero-slogan { font-size: 1.3rem !important; }
    .ff-hero-sub { font-size: 0.78rem !important; }
    .ff-notice-bar { font-size: 0.78rem !important; padding: 8px 40px 8px 16px !important; }
    .ff-tl-cta-btn { padding: 10px 18px !important; font-size: 0.82rem !important; }

    /* Upcoming strip scroll */
    .ff-upcoming-list { flex-direction: column !important; }
    .ff-upcoming-item { min-width: 100% !important; }
}

@media (max-width: 480px) {
    .ff-section > .ff-wrap > .ff-sec-head .ff-sec-title { font-size: 1rem; }
    .ff-season-weapons { grid-template-columns: repeat(2, 1fr) !important; }
    .ff-season-chars { grid-template-columns: repeat(2, 1fr) !important; }
    .ff-articles-grid .ff-art-card--feat .ff-art-img { width: 80px !important; }
}