/* ============================================
   澳门彩 - 港式茶餐厅霓虹风主样式表
   CSS前缀: af-
   平台备案编号: LOTTO-AF-2026-2403
   ============================================ */

/* === Google Fonts Import (本地化替代) === */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* === CSS Variables === */
:root {
  --af-neon-red: #FF3B3B;
  --af-neon-blue: #00A9FF;
  --af-lemon-yellow: #F8E71C;
  --af-retro-green: #34C759;
  --af-bg-dark: #1A1A1A;
  --af-bg-darker: #111111;
  --af-text-white: #FFFFFF;
  --af-text-gray: #B3B3B3;
  --af-border-radius: 4px;
  --af-neon-glow-red: 0 0 15px rgba(255, 59, 59, 0.6);
  --af-neon-glow-blue: 0 0 15px rgba(0, 169, 255, 0.6);
  --af-neon-glow-yellow: 0 0 15px rgba(248, 231, 28, 0.6);
  --af-font-title: 'ZCOOL KuaiLe', cursive, sans-serif;
  --af-font-body: 'Noto Sans SC', sans-serif;
  --af-glass-bg: rgba(26, 26, 26, 0.7);
  --af-glass-border: rgba(255, 255, 255, 0.08);
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--af-font-body);
  background-color: var(--af-bg-dark);
  color: var(--af-text-white);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--af-neon-blue);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

a:hover {
  color: var(--af-neon-red);
  text-shadow: var(--af-neon-glow-red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--af-font-title);
  line-height: 1.4;
  margin-bottom: 0.8em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1em;
  color: var(--af-text-gray);
}

/* === Layout === */
.af-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.af-section {
  padding: 80px 0;
}

.af-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.af-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.af-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* === Flower Tile SVG Background Pattern === */
.af-tile-bg {
  background-color: var(--af-bg-dark);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF3B3B' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* === Navigation === */
.af-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--af-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--af-neon-red);
  box-shadow: 0 2px 20px rgba(255, 59, 59, 0.3);
  padding: 0 20px;
}

.af-navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.af-logo {
  font-family: var(--af-font-title);
  font-size: 1.8rem;
  color: var(--af-neon-red);
  text-shadow: var(--af-neon-glow-red);
  animation: af-neon-flicker 3s infinite alternate;
  white-space: nowrap;
}

.af-logo a {
  color: inherit;
  text-shadow: inherit;
}

.af-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.af-nav-links li a {
  color: var(--af-text-white);
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: var(--af-border-radius);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.af-nav-links li a:hover,
.af-nav-links li a.af-active {
  color: var(--af-neon-red);
  text-shadow: var(--af-neon-glow-red);
  background: rgba(255, 59, 59, 0.1);
}

.af-btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--af-neon-red), #FF6B6B);
  color: var(--af-text-white) !important;
  padding: 10px 24px;
  border-radius: var(--af-border-radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: none !important;
  box-shadow: var(--af-neon-glow-red);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.af-btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 59, 59, 0.8);
  color: var(--af-text-white) !important;
}

/* Hamburger Menu */
.af-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.af-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--af-text-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === Hero Banner === */
.af-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 64px;
}

.af-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.4);
}

.af-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(26,26,26,0.3) 0%, rgba(26,26,26,0.8) 100%);
  z-index: 1;
}

.af-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

.af-hero-content h1 {
  font-size: 3.2rem;
  color: var(--af-text-white);
  text-shadow: 0 0 20px rgba(255, 59, 59, 0.8), 0 0 40px rgba(255, 59, 59, 0.4);
  margin-bottom: 16px;
}

.af-hero-subtitle {
  font-size: 1.3rem;
  color: var(--af-neon-blue);
  text-shadow: var(--af-neon-glow-blue);
  margin-bottom: 40px;
  font-style: italic;
}

.af-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.af-hero-stat {
  text-align: center;
}

.af-hero-stat-label {
  font-size: 0.85rem;
  color: var(--af-text-gray);
  margin-bottom: 4px;
}

.af-hero-stat-value {
  font-family: var(--af-font-title);
  font-size: 1.6rem;
  color: var(--af-lemon-yellow);
  text-shadow: var(--af-neon-glow-yellow);
}

.af-lottery-balls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.af-ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--af-text-white);
  background: linear-gradient(135deg, var(--af-neon-red), #cc2222);
  box-shadow: var(--af-neon-glow-red), inset 0 -3px 6px rgba(0,0,0,0.3);
}

.af-ball.af-ball-special {
  background: linear-gradient(135deg, var(--af-neon-blue), #0077cc);
  box-shadow: var(--af-neon-glow-blue), inset 0 -3px 6px rgba(0,0,0,0.3);
}

/* === Neon Text Effect === */
.af-neon-text {
  color: var(--af-neon-red);
  text-shadow:
    0 0 7px var(--af-neon-red),
    0 0 10px var(--af-neon-red),
    0 0 21px var(--af-neon-red),
    0 0 42px rgba(255, 59, 59, 0.5);
}

.af-neon-text-blue {
  color: var(--af-neon-blue);
  text-shadow:
    0 0 7px var(--af-neon-blue),
    0 0 10px var(--af-neon-blue),
    0 0 21px var(--af-neon-blue),
    0 0 42px rgba(0, 169, 255, 0.5);
}

/* === Section Title === */
.af-section-title {
  text-align: center;
  margin-bottom: 50px;
}

.af-section-title h2 {
  font-size: 2.2rem;
  color: var(--af-text-white);
  text-shadow: var(--af-neon-glow-red);
  display: inline-block;
  position: relative;
  padding-bottom: 16px;
}

.af-section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--af-neon-red), var(--af-neon-blue));
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
}

.af-section-title p {
  margin-top: 12px;
  color: var(--af-text-gray);
  font-size: 1rem;
}

/* === Announcement Board (Module 2) === */
.af-board {
  background: linear-gradient(135deg, #2a3a2a, #1a2a1a);
  border: 4px solid #5a3a1a;
  border-radius: var(--af-border-radius);
  padding: 40px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.3);
  position: relative;
}

.af-board::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 2px;
  pointer-events: none;
}

.af-board-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}

.af-board-item:last-child {
  border-bottom: none;
}

.af-board-name {
  font-family: var(--af-font-title);
  font-size: 1.2rem;
  color: var(--af-lemon-yellow);
  text-shadow: var(--af-neon-glow-yellow);
}

.af-board-time {
  color: var(--af-text-gray);
  font-size: 0.9rem;
}

.af-countdown {
  font-family: var(--af-font-title);
  color: var(--af-neon-red);
  text-shadow: var(--af-neon-glow-red);
  font-size: 1.1rem;
}

/* === Menu Cards (Module 3) === */
.af-menu-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--af-glass-border);
  border-radius: var(--af-border-radius);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.af-menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--af-neon-red), var(--af-neon-blue));
}

.af-menu-card:hover {
  transform: translateY(-5px);
  border-color: var(--af-neon-red);
  box-shadow: var(--af-neon-glow-red);
}

.af-menu-card h3 {
  color: var(--af-lemon-yellow);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.af-menu-card .af-card-desc {
  color: var(--af-text-gray);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.af-menu-card .af-card-rule {
  color: var(--af-neon-blue);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.af-btn-stamp {
  display: inline-block;
  background: transparent;
  color: var(--af-neon-red);
  border: 2px solid var(--af-neon-red);
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  cursor: pointer;
  text-transform: uppercase;
}

.af-btn-stamp:hover {
  background: var(--af-neon-red);
  color: var(--af-text-white);
  box-shadow: var(--af-neon-glow-red);
}

/* === TV Module (Module 4) === */
.af-tv-frame {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
  border-radius: 20px;
  padding: 30px 30px 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
}

.af-tv-screen {
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

.af-tv-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-tv-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.af-tv-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, #555, #333);
  border: 2px solid #666;
}

/* === Newspaper Module (Module 5) === */
.af-newspaper {
  background: #f5f0e0;
  color: #1a1a1a;
  padding: 40px;
  border-radius: var(--af-border-radius);
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.af-newspaper h3 {
  color: #8B0000;
  border-bottom: 2px solid #8B0000;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.af-newspaper p {
  color: #333;
  font-size: 0.95rem;
  line-height: 2;
  text-align: justify;
}

.af-newspaper-col {
  column-count: 2;
  column-gap: 30px;
  column-rule: 1px solid #ccc;
}

/* === Lucky Number Generator (Module 6) === */
.af-slot-machine {
  max-width: 500px;
  margin: 0 auto;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 3px solid var(--af-lemon-yellow);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--af-neon-glow-yellow);
}

.af-slot-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
}

.af-slot-num {
  width: 60px;
  height: 70px;
  background: #000;
  border: 2px solid var(--af-neon-red);
  border-radius: var(--af-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--af-font-title);
  font-size: 2rem;
  color: var(--af-lemon-yellow);
  text-shadow: var(--af-neon-glow-yellow);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.af-btn-generate {
  display: inline-block;
  background: linear-gradient(135deg, var(--af-lemon-yellow), #e6d400);
  color: #1a1a1a;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--af-neon-glow-yellow);
}

.af-btn-generate:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(248, 231, 28, 0.8);
}

/* === Chat Room (Module 7) === */
.af-chatroom {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--af-glass-border);
  border-radius: var(--af-border-radius);
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
}

.af-chat-msg {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.af-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--af-neon-red), var(--af-neon-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.af-chat-name {
  color: var(--af-lemon-yellow);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.af-chat-text {
  color: var(--af-text-gray);
  font-size: 0.9rem;
}

.af-chat-time {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  margin-top: 4px;
}

/* === Gallery (Module 8) === */
.af-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.af-gallery-item {
  border-radius: var(--af-border-radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.af-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.af-gallery-item:hover img {
  transform: scale(1.1);
}

.af-gallery-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  pointer-events: none;
}

/* === Trust Badges (Module 9) === */
.af-badge-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--af-glass-border);
  border-radius: var(--af-border-radius);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.af-badge-card:hover {
  border-color: var(--af-retro-green);
  box-shadow: 0 0 15px rgba(52, 199, 89, 0.3);
}

.af-badge-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--af-retro-green), #2a9d4a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 20px rgba(52, 199, 89, 0.3);
}

.af-badge-card h4 {
  color: var(--af-text-white);
  margin-bottom: 8px;
}

.af-badge-card p {
  color: var(--af-text-gray);
  font-size: 0.85rem;
}

/* === Footer === */
.af-footer {
  background: var(--af-bg-darker);
  border-top: 2px solid var(--af-neon-red);
  box-shadow: 0 -2px 20px rgba(255, 59, 59, 0.2);
  padding: 60px 0 0;
}

.af-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 40px;
}

.af-footer-col h4 {
  color: var(--af-neon-red);
  text-shadow: var(--af-neon-glow-red);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.af-footer-col p,
.af-footer-col li {
  color: var(--af-text-gray);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.af-footer-col ul {
  list-style: none;
}

.af-footer-col ul li a {
  color: var(--af-text-gray);
  transition: color 0.25s ease;
}

.af-footer-col ul li a:hover {
  color: var(--af-neon-red);
}

.af-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.af-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--af-text-white);
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.af-footer-social a:hover {
  background: var(--af-neon-red);
  box-shadow: var(--af-neon-glow-red);
}

.af-footer-seo {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.af-footer-seo p {
  font-size: 0.75rem;
  color: var(--af-text-gray);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.af-footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.af-footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

/* === Breadcrumb === */
.af-breadcrumb {
  padding: 100px 0 20px;
}

.af-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.85rem;
}

.af-breadcrumb-list li {
  color: var(--af-text-gray);
}

.af-breadcrumb-list li a {
  color: var(--af-neon-blue);
}

.af-breadcrumb-list li + li::before {
  content: '>';
  margin-right: 8px;
  color: var(--af-text-gray);
}

/* === Inner Page Content === */
.af-page-header {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(180deg, rgba(255,59,59,0.1), transparent);
  margin-bottom: 40px;
}

.af-page-header h1 {
  font-size: 2.5rem;
  text-shadow: var(--af-neon-glow-red);
}

.af-content-block {
  margin-bottom: 40px;
}

.af-content-block h2 {
  color: var(--af-neon-red);
  text-shadow: var(--af-neon-glow-red);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,59,59,0.2);
}

.af-content-block h3 {
  color: var(--af-neon-blue);
  margin-bottom: 12px;
}

.af-content-block p {
  color: var(--af-text-gray);
  line-height: 2;
  margin-bottom: 16px;
}

.af-content-img {
  border-radius: var(--af-border-radius);
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* === Data Table === */
.af-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.af-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.af-table th {
  background: rgba(255, 59, 59, 0.15);
  color: var(--af-neon-red);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--af-neon-red);
}

.af-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--af-text-gray);
}

.af-table tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* === Live Drawing Page === */
.af-live-layout {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 24px;
  margin-bottom: 40px;
}

.af-live-video {
  background: #000;
  border-radius: var(--af-border-radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.af-live-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-live-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.af-live-info {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--af-glass-border);
  border-radius: var(--af-border-radius);
  padding: 20px;
}

.af-live-info h4 {
  color: var(--af-neon-red);
  margin-bottom: 12px;
}

.af-live-chat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--af-glass-border);
  border-radius: var(--af-border-radius);
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  max-height: 300px;
}

.af-tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.af-tab-btn {
  padding: 8px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--af-glass-border);
  border-radius: var(--af-border-radius) var(--af-border-radius) 0 0;
  color: var(--af-text-gray);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.af-tab-btn.af-active,
.af-tab-btn:hover {
  background: rgba(255, 59, 59, 0.15);
  color: var(--af-neon-red);
  border-color: var(--af-neon-red);
}

/* === APP Download Page === */
.af-app-banner {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(180deg, rgba(0,169,255,0.1), transparent);
}

.af-app-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.af-app-feature {
  text-align: center;
  padding: 30px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--af-glass-border);
  border-radius: var(--af-border-radius);
  transition: all 0.3s ease;
}

.af-app-feature:hover {
  border-color: var(--af-neon-blue);
  box-shadow: var(--af-neon-glow-blue);
}

.af-app-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--af-neon-blue), #0077cc);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.af-download-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.af-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--af-neon-blue);
  border-radius: var(--af-border-radius);
  color: var(--af-text-white);
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
}

.af-download-btn:hover {
  background: var(--af-neon-blue);
  box-shadow: var(--af-neon-glow-blue);
  color: var(--af-text-white);
}

/* === FAQ === */
.af-faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--af-glass-border);
  border-radius: var(--af-border-radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.af-faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--af-text-white);
  transition: background 0.25s ease;
}

.af-faq-question:hover {
  background: rgba(255, 59, 59, 0.1);
}

.af-faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--af-neon-red);
  transition: transform 0.3s ease;
}

.af-faq-item.af-open .af-faq-question::after {
  transform: rotate(45deg);
}

.af-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.af-faq-item.af-open .af-faq-answer {
  max-height: 500px;
  padding: 0 20px 16px;
}

.af-faq-answer p {
  color: var(--af-text-gray);
  font-size: 0.9rem;
}

/* === Legal Pages === */
.af-legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.af-legal-content h2 {
  color: var(--af-neon-red);
  margin-top: 40px;
  margin-bottom: 16px;
}

.af-legal-content p {
  color: var(--af-text-gray);
  line-height: 2;
  margin-bottom: 16px;
}

.af-legal-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.af-legal-content ul li {
  color: var(--af-text-gray);
  margin-bottom: 8px;
  line-height: 1.8;
}

/* === Glass Background === */
.af-glass-bg {
  background: var(--af-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--af-glass-border);
}

/* === Animations === */
@keyframes af-neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 7px var(--af-neon-red),
      0 0 10px var(--af-neon-red),
      0 0 21px var(--af-neon-red),
      0 0 42px rgba(255, 59, 59, 0.5);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

@keyframes af-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes af-slide-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.af-flicker {
  animation: af-neon-flicker 3s infinite alternate;
}

.af-pulse {
  animation: af-pulse 2s infinite;
}

/* === Scroll to Top === */
.af-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--af-neon-red);
  color: var(--af-text-white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--af-neon-glow-red);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.af-scroll-top.af-visible {
  opacity: 1;
  visibility: visible;
}

.af-scroll-top:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 59, 59, 0.8);
}

/* === History Table === */
.af-history-list {
  list-style: none;
}

.af-history-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: var(--af-text-gray);
}

.af-history-list .af-period {
  color: var(--af-neon-blue);
  font-weight: 700;
}

.af-mini-balls {
  display: flex;
  gap: 4px;
}

.af-mini-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--af-neon-red), #cc2222);
  color: var(--af-text-white);
}

.af-mini-ball.af-special {
  background: linear-gradient(135deg, var(--af-neon-blue), #0077cc);
}
