/* FlipFight.com Main Website Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Outfit:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  --bg-dark: #06070d;
  --bg-card: rgba(13, 17, 30, 0.7);
  --border-glow: rgba(34, 211, 238, 0.15);
  --clr-primary: #06b6d4; /* Cyan */
  --clr-secondary: #a855f7; /* Purple */
  --clr-accent: #fbbf24; /* Yellow/Gold */
  --clr-text: #f8fafc;
  --clr-text-mute: #94a3b8;
  --blur-glass: blur(16px);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.15);
  --font-main: 'Outfit', sans-serif;
}

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

button, input, textarea, select {
  font-family: inherit;
}

body {
  background-color: var(--bg-dark);
  color: var(--clr-text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--clr-secondary);
}

/* Scrollbar Custom */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 7, 13, 0.75);
  backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--clr-primary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-dot {
  color: var(--clr-primary);
}

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

.nav-links li a {
  color: var(--clr-text-mute);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  padding: 5px 0;
}

.nav-links li a:hover,
.nav-links li.active a {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  transition: width 0.3s ease;
}

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

.play-btn {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 30px;
  font-weight: 700 !important;
  border: none;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
  transition: all 0.3s ease;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

.play-btn::after {
  display: none !important;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('bg.png') no-repeat center center/cover;
  opacity: 0.15;
  z-index: -1;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulse 8s infinite alternate;
}

.hero-title {
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fff 20%, var(--clr-primary) 50%, var(--clr-secondary) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--clr-text-mute);
  max-width: 600px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 30px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* MAIN CONTAINER FOR CONTENT */
.content-container {
  padding: 120px 5% 80px 5%;
  min-height: 100vh;
}

.page-tab {
  display: none;
}

.page-tab.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #fff, var(--clr-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 16px;
  color: var(--clr-text-mute);
  max-width: 600px;
  margin: 0 auto;
}

/* FEATURES GRID (Homepage) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--blur-glass);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--clr-text-mute);
  font-size: 15px;
}

/* NEWS SECTION */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

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

.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.tag-badge {
  background: rgba(6, 182, 212, 0.1);
  color: var(--clr-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.news-date {
  font-size: 12px;
  color: var(--clr-text-mute);
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.3;
}

.news-card p {
  color: var(--clr-text-mute);
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-readmore {
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* NEWS DETAIL POPUP */
.news-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.news-popup-content {
  background: #0f121d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: scaleUp 0.3s ease;
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.popup-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.popup-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.popup-body {
  padding: 40px;
}

.popup-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.popup-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--clr-text-mute);
  font-size: 13px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 15px;
}

.popup-text {
  font-size: 16px;
  color: #e2e8f0;
}

.popup-text p {
  margin-bottom: 20px;
}

.popup-text h2, .popup-text h3 {
  margin: 30px 0 15px 0;
  color: #fff;
}

.popup-text ul, .popup-text ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.popup-text li {
  margin-bottom: 8px;
}

.popup-text img, .news-content-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #1e1b4b;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.25);
  margin: 25px auto;
  display: block;
}

/* FORUM SECTION */
.forum-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.forum-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.forum-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.forum-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 30px;
}

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.thread-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.thread-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--clr-primary);
  transform: translateX(5px);
}

.thread-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.thread-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.thread-meta {
  font-size: 13px;
  color: var(--clr-text-mute);
  display: flex;
  gap: 15px;
}

.thread-stats {
  text-align: right;
  font-size: 14px;
  color: var(--clr-primary);
  font-weight: 600;
}

.forum-form input,
.forum-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.forum-form input:focus,
.forum-form textarea:focus {
  border-color: var(--clr-primary);
  outline: none;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* THREAD VIEW */
.thread-view {
  display: none;
  flex-direction: column;
  gap: 25px;
}

.thread-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thread-header-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.thread-post-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
}

.thread-author-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--clr-text-mute);
}

.thread-author {
  font-weight: 700;
  color: var(--clr-primary);
}

.thread-content {
  font-size: 16px;
  color: #e2e8f0;
  white-space: pre-line;
}

.replies-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.reply-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-left: 20px;
}

.back-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clr-primary);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 20px;
}

/* GUIDE SECTION */
.guide-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  justify-content: center;
}

.guide-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--clr-text-mute);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.guide-tab-btn.active,
.guide-tab-btn:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

.guide-content-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
}

.guide-subpage {
  display: none;
}

.guide-subpage.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  margin: 0 4px;
}

.guide-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.guide-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 25px;
}

.guide-box h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--clr-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.guide-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.guide-row span:last-child {
  color: var(--clr-text-mute);
}

/* PRIVACY POLICY */
.privacy-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.privacy-panel h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 30px 0 15px 0;
  color: #fff;
}

.privacy-panel p {
  color: var(--clr-text-mute);
  margin-bottom: 15px;
  font-size: 15px;
}

/* ADMIN PANEL */
.admin-login-box {
  max-width: 400px;
  margin: 100px auto;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.admin-login-box h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.admin-login-box p {
  color: var(--clr-text-mute);
  margin-bottom: 25px;
  font-size: 14px;
}

.admin-dashboard {
  display: none;
}

.admin-dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.admin-sidebar-menu {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-sidebar-btn {
  background: transparent;
  border: none;
  color: var(--clr-text-mute);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar-btn.active,
.admin-sidebar-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--clr-primary);
}

.admin-content {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 30px;
}

.admin-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.admin-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

/* ADMIN FORM */
.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-text-mute);
  margin-bottom: 8px;
}

.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 15px;
}

.admin-form-group input:focus,
.admin-form-group textarea:focus {
  border-color: var(--clr-primary);
  outline: none;
}

.admin-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-list-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-list-table th,
.admin-list-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-list-table th {
  color: var(--clr-text-mute);
  font-weight: 600;
  font-size: 14px;
}

.admin-list-table tr:hover {
  background: rgba(255,255,255,0.01);
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

.btn-edit {
  background: rgba(34, 211, 238, 0.1);
  color: var(--clr-primary);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.btn-edit:hover {
  background: var(--clr-primary);
  color: #fff;
}

.btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-delete:hover {
  background: #ef4444;
  color: #fff;
}

/* Image preview box */
.image-preview-wrap {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
}

.image-preview-box {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FOOTER */
/* FOOTER */
footer {
  background: #020108;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 10% 40px 10%;
  color: var(--clr-text-mute);
  font-family: 'Outfit', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 50px;
  text-align: left;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-warning-age {
  color: #facc15 !important;
  font-weight: 700;
}

.footer-warning-time {
  color: #ef4444 !important;
  font-weight: 700;
}

.brand-col .copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 25px;
}

.social-links-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-btn i {
  font-size: 18px;
}

.social-icon-btn.facebook:hover {
  background: rgba(24, 119, 242, 0.1);
  border-color: #1877f2;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.3);
  transform: translateY(-2px);
}

.social-icon-btn.tiktok:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .brand-col .nav-logo {
    justify-content: center;
  }
  .social-links-wrap {
    align-items: center;
  }
  .social-icon-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

.copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.22; }
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* DUAL PVP & PVE SHOWCASE */
.dual-showcase-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin: 60px 0 100px 0;
}

.showcase-box {
  display: flex;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(3, 7, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  transition: border-color 0.3s ease;
}

.showcase-box:hover {
  border-color: rgba(6, 182, 212, 0.25);
}

.showcase-media {
  flex: 1.1;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.pve-box .showcase-media {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  z-index: 10;
}

.pvp-badge {
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
}

.pve-badge {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.showcase-info {
  flex: 0.9;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-info h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #fff;
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-info p {
  color: var(--clr-text-mute);
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.showcase-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.s-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-showcase {
  align-self: flex-start;
  font-size: 14px;
  padding: 12px 28px;
}

/* LANGUAGE SWITCHER */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 20px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--clr-text-mute);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.lang-btn.active, .lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 10px;
}

/* CLASS SHOWCASE GALLERY */
.class-showcase-section {
  margin: 100px 0;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.class-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.class-card.assassin:hover {
  border-color: var(--clr-secondary);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.class-card.fighter:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
}

.class-card.mage:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.class-card-img-wrap {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #020108;
}

.class-card-img-wrap::after {
  content: '?';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 90px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(99, 102, 241, 0.3);
  pointer-events: none;
  z-index: 2;
  transition: all 0.3s ease;
}

.class-card:hover .class-card-img-wrap::after {
  transform: translate(-50%, -50%) scale(1.1);
  color: #ffffff;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 50px rgba(99, 102, 241, 0.6);
}

.class-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: brightness(0);
}

.class-card:hover .class-card-img {
  transform: scale(1.05);
}

.class-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.class-card-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.class-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.class-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.class-card-desc {
  color: var(--clr-text-mute);
  font-size: 14.5px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.class-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.class-stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.class-stat-item span:first-child {
  color: var(--clr-text-mute);
}

.class-stat-item span:last-child {
  color: #fff;
  font-weight: 600;
}

/* GAMEPLAY MEDIA SHOWCASE */
.media-showcase-section {
  margin: 100px 0;
}

.media-main-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.video-mockup-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  aspect-ratio: 16/9;
}

.video-mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 7, 13, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.video-play-overlay:hover {
  background: rgba(6, 7, 13, 0.2);
}

.play-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #fff;
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-play-overlay:hover .play-circle {
  transform: scale(1.1);
  background: #fff;
  color: var(--bg-dark);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
}

.media-features {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.stat-showcase-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.3s ease;
}

.stat-showcase-box:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.stat-icon {
  font-size: 32px;
  color: var(--clr-primary);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-details h4 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.stat-details p {
  color: var(--clr-text-mute);
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .dual-showcase-container {
    gap: 30px;
  }
  .showcase-box {
    flex-direction: column;
  }
  .pve-box {
    flex-direction: column-reverse;
  }
  .showcase-media {
    min-height: 250px;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .pve-box .showcase-media {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-left: none;
  }
  .showcase-info {
    padding: 35px 25px;
  }
  .showcase-info h3 {
    font-size: 26px;
  }
  .class-grid {
    grid-template-columns: 1fr;
  }
  .media-main-wrap {
    grid-template-columns: 1fr;
  }
  .navbar {
    padding: 15px 20px;
  }
  .nav-links {
    display: none; /* simple mobile nav hidden for simplicity */
  }
  .hero-title {
    font-size: 48px;
  }
  .forum-layout {
    grid-template-columns: 1fr;
  }
  .guide-grid-2 {
    grid-template-columns: 1fr;
  }
  .admin-dashboard-layout {
    grid-template-columns: 1fr;
  }
}










/* ═══ TAROT CARD READING SECTION (boitarot.vn style) ═══ */

#tab-tarot {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, #0f101f 0%, #05060b 100%) !important;
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
}

#stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, transparent);
  animation: shoot 0.6s linear forwards;
  opacity: 0;
  pointer-events: none;
}

@keyframes shoot {
  0% {
    transform: translate(0, 0) rotate(-45deg) scaleX(0);
    opacity: 1;
  }
  100% {
    transform: translate(-200px, 200px) rotate(-45deg) scaleX(40);
    opacity: 0;
  }
}

.tarot-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: transparent !important;
  border-radius: 0;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 2;
}

.tarot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  width: 100%;
}

.pack-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 0 auto;
  perspective: 1200px;
}

@media (max-width: 600px) {
  .pack-container {
    height: 250px;
  }
}

/* Global Tarot Card styles (used in fanning deck and result panel) */
.card {
  position: absolute;
  width: 92px;
  height: 149px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease;
  transform-style: preserve-3d;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.pack-container .card {
  transform-origin: center bottom;
}

.pack-container .card:hover {
  transform: rotate(var(--rot)) translateY(-25px) scale(1.08) !important;
  z-index: 100 !important;
  box-shadow: 0 15px 30px rgba(168, 85, 247, 0.4);
}

.pack-container .card.inactive-fade {
  opacity: 0.15;
  pointer-events: none;
  transform: rotate(var(--rot)) scale(0.9) translateY(20px) !important;
}

/* Removed rotateY(180deg) to prevent cancelling out .card-inner's rotateY(180deg) on flip */
.pack-container .card.active-reveal {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(1.8) !important;
  z-index: 999 !important;
  box-shadow: 0 0 35px var(--card-color, #fbbf24);
  pointer-events: none;
  transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 600px) {
  .pack-container .card.active-reveal {
    transform: translate(-50%, -50%) scale(1.5) !important;
  }
  .card {
    width: 55px;
    height: 89px;
    border-radius: 6px;
  }
}

.card-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  border-radius: inherit;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-back,
.card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: inherit;
  border: 2px double rgba(251, 191, 36, 0.4);
  box-sizing: border-box;
}

.card-back {
  background: linear-gradient(135deg, #090a16 0%, #030408 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 15px rgba(251, 191, 36, 0.15);
}

.card-back-star {
  font-size: 28px;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
  animation: pulseStar 4s infinite ease-in-out;
}

@keyframes pulseStar {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

@media (max-width: 600px) {
  .card-back-star { font-size: 16px; }
}

.card-front {
  transform: rotateY(180deg);
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
  color: #0f172a;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-color: #d97706;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.card-front.major {
  border-width: 2.5px;
}

.card-front.minor {
  border-width: 1.5px;
  border-color: #64748b;
}

.card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 10px;
  font-weight: 700;
  color: #78350f;
  font-family: serif;
}

.card-aspect-tag {
  font-size: 7px;
  background: rgba(100, 116, 139, 0.1);
  padding: 1px 4px;
  border-radius: 8px;
  font-weight: 600;
  color: #475569;
}

.card-art-box {
  width: 55px;
  height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;
}

.card-art-box.reversed {
  transform: rotate(180deg);
}

.card-art-box svg {
  width: 100%;
  height: 100%;
}

.card-footer-bar {
  text-align: center;
  width: 100%;
}

.card-front-title {
  font-size: 9px;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
  font-family: serif;
  text-transform: uppercase;
}

.card-position-text {
  font-size: 7px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .card-front { padding: 4px; }
  .card-front .card-header-bar { font-size: 8px; }
  .card-front .card-aspect-tag { font-size: 5px; padding: 0px 3px; }
  .card-front .card-art-box { width: 35px; height: 45px; }
  .card-front .card-front-title { font-size: 7px; }
  .card-front .card-position-text { font-size: 5px; }
}

/* Result Reveal Panel styles */
.tarot-result-panel {
  display: flex;
  gap: 50px;
  margin-top: 40px;
  justify-content: center;
  align-items: center;
  background: rgba(13, 17, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(20px);
  box-sizing: border-box;
}

.tarot-result-card {
  flex: 0 0 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tarot-result-card .card {
  position: relative !important;
  width: 100px;
  height: 162px;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  cursor: default;
}

@media (max-width: 600px) {
  .tarot-result-card .card {
    width: 75px;
    height: 122px;
  }
}

.tarot-result-message {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.tarot-result-message h3 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  background: linear-gradient(90deg, #ffffff, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tarot-result-meta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tarot-result-quote {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #e2e8f0;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--clr-accent, #a855f7);
  border-radius: 4px;
  font-style: italic !important;
  margin: 0;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

.tarot-result-meaning {
  font-family: 'Lora', Georgia, serif !important;
  font-style: italic !important;
}

.tarot-result-message .btn {
  align-self: flex-start;
}

.hidden {
  display: none !important;
}

.no-pointer-events {
  pointer-events: none !important;
}

/* Button 87 style for Shuffling */
.button-87 {
  margin: 10px;
  padding: 15px 30px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  border-radius: 10px;
  display: inline-block;
  border: 0px;
  font-weight: 700;
  box-shadow: 0 0 20px #eee;
  background-image: linear-gradient(to right, #8a2be2 0%, #4a0e4e 51%, #8a2be2 100%);
  cursor: pointer;
  box-shadow: 0 4px 15px 0 rgba(138, 43, 226, 0.4);
}

.button-87:hover {
  background-position: right center;
  color: #fff;
  text-decoration: none;
}

.button-87:disabled {
  background: #475569 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .tarot-result-panel {
    flex-direction: column;
    padding: 25px;
    gap: 25px;
    text-align: center;
  }
  .tarot-result-card {
    flex: 0 0 auto;
    height: 180px;
    width: 100%;
  }
  .tarot-result-message {
    align-items: center;
    text-align: center;
  }
  .tarot-result-message .btn {
    align-self: center;
  }
  .tarot-result-quote {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .tarot-result-card {
    height: 130px;
  }
}
