
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --accent: #f4a261;
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card2: #1a1a26;
  --border: rgba(230, 57, 70, 0.2);
  --text: #e0e0e0;
  --text-muted: #888;
  --white: #ffffff;
  --glow: 0 0 20px rgba(230, 57, 70, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.95);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
  transform: translateZ(0);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-brand-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-brand-text span {
  color: var(--primary);
}

.nav-links {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(10, 10, 15, 0.98);
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  list-style: none;
  gap: 0;
  z-index: 999;
  width: 100%;
}

.nav-links.open {
  display: flex;
  animation: menuSlideDown 0.25s ease forwards;
}

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

.nav-links li {
  width: 280px;
  text-align: center;
  opacity: 0;
  transform: translateY(-6px);
  animation: none;
}

.nav-links.open li {
  animation: menuItemFade 0.25s ease forwards;
}

.nav-links.open li:nth-child(1) { animation-delay: 0.05s; }
.nav-links.open li:nth-child(2) { animation-delay: 0.10s; }
.nav-links.open li:nth-child(3) { animation-delay: 0.15s; }
.nav-links.open li:nth-child(4) { animation-delay: 0.20s; }
.nav-links.open li:nth-child(5) { animation-delay: 0.25s; }
.nav-links.open li:nth-child(6) { animation-delay: 0.30s; }

@keyframes menuItemFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: block;
  text-align: center;
  border-left: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(230, 57, 70, 0.10);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links li:last-child {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.nav-btn {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 6px !important;
  display: inline-block !important;
  text-align: center;
}

.nav-btn:hover {
  background: var(--primary-dark) !important;
  box-shadow: var(--glow);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, background 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://lh3.googleusercontent.com/sitesv/APaQ0SRuDd0F-SkeKpss_Btin39AQBy3u-gMeMjlNzzYZ2PgM32EO13hG2j02s8UViHUGtzidZpAkbDYci0AG6E2J14TBNoJNR6ba23ls1eHaGWNpL1UYw2tFZdTVmSiFYFEIqSnyiMWjv64jvyC1TKepazbSmHbTVxVWYr59M1dc0kTVkllMG3z4_UKleQ=w16383');
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) saturate(1.2);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.7) 0%,
    rgba(230, 57, 70, 0.1) 50%,
    rgba(10, 10, 15, 0.8) 100%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 50%;
  animation: float linear infinite;
  opacity: 0;
  will-change: transform;
}

@keyframes float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100px) translateX(30px); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px rgba(230, 57, 70, 0.5));
  animation: heroLogo 3s ease-in-out infinite alternate;
  will-change: opacity;
}

@keyframes heroLogo {
  from { opacity: 0.85; }
  to   { opacity: 1; }
}

.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 1.5rem 0 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--glow), 0 8px 25px rgba(0,0,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}

.hero-scroll svg {
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  gap: 1.5rem;
  justify-content: center;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  position: relative;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 57, 70, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--glow);
}

.team-card:hover::before {
  opacity: 1;
}

.card-avatar {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--bg-card2);
}

.card-avatar-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-avatar-placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.2;
}

.card-body {
  padding: 1rem 1.25rem 1.25rem;
  text-align: center;
}

.card-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  justify-content: center;
}

.badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.badge-red { color: var(--primary); border-color: rgba(230,57,70,0.3); background: rgba(230,57,70,0.08); }
.badge-orange { color: var(--accent); border-color: rgba(244,162,97,0.3); background: rgba(244,162,97,0.08); }
.badge-blue { color: #64b5f6; border-color: rgba(100,181,246,0.3); background: rgba(100,181,246,0.08); }
.badge-green { color: #81c784; border-color: rgba(129,199,132,0.3); background: rgba(129,199,132,0.08); }
.badge-purple { color: #ce93d8; border-color: rgba(206,147,216,0.3); background: rgba(206,147,216,0.08); }

.features-bg {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(230,57,70,0.4);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(230, 57, 70, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.feature-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.page-hero {
  padding: 120px 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(230,57,70,0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.rules-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s;
}

.rules-card:hover {
  border-color: rgba(230,57,70,0.4);
}

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

.rules-icon {
  font-size: 1.5rem;
}

.rules-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.rules-list li::before {
  content: '▸';
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.rules-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s;
}

.rules-link:hover { gap: 0.75rem; }

.cta-section {
  margin: 4rem auto;
  max-width: 1200px;
  padding: 0 2rem;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(230,57,70,0.15), rgba(244,162,97,0.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(230,57,70,0.08) 0%, transparent 60%);
  animation: rotateBg 20s linear infinite;
  will-change: transform;
}

@keyframes rotateBg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-banner h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-brand {
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom span {
  color: var(--primary);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  will-change: opacity;
}

.modal-overlay.open {
  display: flex;
  animation: modalFadeIn 0.2s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: modalSlideUp 0.25s ease forwards;
}

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

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  text-align: center;
}

.modal-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
}

.modal-btn-server {
  background: rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.3);
}

.modal-btn-server:hover {
  background: rgba(230, 57, 70, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.25);
}

.modal-btn-discord {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.3);
}

.modal-btn-discord:hover {
  background: rgba(88, 101, 242, 0.2);
  border-color: #5865f2;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
}

.modal-btn-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.modal-btn-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.modal-btn-label {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.modal-btn-sub {
  display: block;
  color: var(--text-muted);
  font-size: 0.775rem;
  margin-top: 0.15rem;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #002395 33%, #ffffff 33%, #ffffff 66%, #ED2939 66%); border-radius: 3px; }

.nav-links.open { display: flex; animation: menuSlideDown 0.25s ease forwards; }
.nav-links.closing { display: flex; animation: menuSlideUp 0.25s ease forwards; }
@keyframes menuSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes menuSlideUp { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }

.modal-overlay.closing { display: flex; animation: modalFadeOut 0.2s ease forwards; }
.modal-overlay.closing .modal-box { animation: modalSlideDown 0.2s ease forwards; }
@keyframes modalFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalSlideDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(20px); opacity: 0; } }

.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(to right, #002395, #ffffff, #ED2939);
  z-index: 9999; width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s, color 0.2s;
  z-index: 900; color: var(--text); font-size: 1.2rem;
  font-family: 'Inter', sans-serif;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { border-color: var(--primary); color: var(--primary); }

.theme-toggle { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 0.4rem; transition: color 0.2s; display: flex; align-items: center; }
.theme-toggle:hover { color: var(--white); }

.search-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 0.4rem; transition: color 0.2s; display: flex; align-items: center; }
.search-btn:hover { color: var(--white); }
.search-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 3000; padding: 6rem 2rem 2rem; flex-direction: column; align-items: center; will-change: opacity; }
.search-overlay.open { display: flex; animation: modalFadeIn 0.2s ease; }
.search-input-wrap { width: 100%; max-width: 620px; position: relative; }
.search-input { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 3rem 1rem 1.5rem; font-size: 1.05rem; color: var(--white); font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.2s; }
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: var(--text-muted); }
.search-close-btn { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; }
.search-results { width: 100%; max-width: 620px; margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; max-height: 55vh; overflow-y: auto; }
.search-result-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1.2rem; cursor: pointer; transition: border-color 0.2s; text-decoration: none; display: block; }
.search-result-item:hover { border-color: var(--primary); }
.search-result-tag { font-size: 0.7rem; color: var(--primary); margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.06em; }
.search-result-title { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--white); font-size: 1rem; margin-bottom: 0.15rem; }
.search-result-desc { font-size: 0.78rem; color: var(--text-muted); }
.search-empty { color: var(--text-muted); text-align: center; padding: 2rem; }
.search-hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.75rem; }

.stats-section { padding: 4rem 2rem; max-width: 900px; margin: 0 auto; text-align: center; }
.stats-section-title { font-family: 'Rajdhani', sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--white); margin-bottom: 2.5rem; }
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem 1.5rem; text-align: center; transition: border-color 0.25s, transform 0.25s; }
.stat-card:hover { border-color: rgba(230,57,70,0.4); transform: translateY(-3px); }
.stat-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.stat-number { font-family: 'Rajdhani', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

body.light { --bg-dark: #f0f2f5; --bg-card: #ffffff; --bg-card2: #e8eaf0; --border: rgba(180,40,50,0.2); --text: #1a1a2e; --text-muted: #666; --white: #1a1a2e; }
body.light .navbar { background: rgba(240,242,245,0.97); }
body.light .hero { background: #f0f2f5; }
body.light .hero-bg { filter: brightness(0.3); }
body.light .nav-links { background: rgba(240,242,245,0.98); }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .nav-links li:last-child {
    padding: 0.75rem 2rem 0;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-banner { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  gap: 1.5rem;
  justify-content: center;
}

.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.shop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 57, 70, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--glow);
}

.shop-card.featured {
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.15);
}

.shop-card-top {
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.shop-card-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.shop-card:hover .shop-card-top::before,
.shop-card.featured .shop-card-top::before {
  opacity: 1;
}

.shop-popular-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.shop-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.shop-card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.shop-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.shop-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.shop-price-amount {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.shop-price-currency {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.shop-price-period {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.shop-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shop-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.shop-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.shop-features li::before {
  content: '✓';
  color: #81c784;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.shop-features li.unavailable {
  opacity: 0.4;
}

.shop-features li.unavailable::before {
  content: '✕';
  color: var(--text-muted);
}

.shop-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  border: none;
  cursor: pointer;
}

.shop-btn-primary {
  background: var(--primary);
  color: var(--white);
}

.shop-btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.shop-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}

.shop-btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.shop-notice {
  background: rgba(230, 57, 70, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.shop-notice strong {
  color: var(--primary);
}

@media (max-width: 768px) {
  .shop-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}

.shop-coins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 190px));
  gap: 1.25rem;
  justify-content: center;
}

.shop-coin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.shop-coin-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 57, 70, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--glow);
}

.shop-coin-card.featured {
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.15);
}

.shop-coin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.shop-coin-card:hover::before,
.shop-coin-card.featured::before {
  opacity: 1;
}

.shop-coin-card .shop-popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.shop-coin-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0.25rem 0 0.5rem;
  filter: drop-shadow(0 4px 12px rgba(230, 57, 70, 0.3));
  transition: filter 0.3s, transform 0.3s;
}

.shop-coin-card:hover .shop-coin-img {
  filter: drop-shadow(0 6px 20px rgba(230, 57, 70, 0.5));
  transform: scale(1.05);
}

.shop-coin-amount {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.shop-coin-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.shop-coin-price {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0.25rem 0 0.75rem;
}

.shop-coin-card .shop-btn {
  width: 100%;
  padding: 0.65rem;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .shop-coins-grid { grid-template-columns: repeat(2, 1fr); max-width: 380px; margin: 0 auto; }
}

.staff-only {
  display: none;
}
.staff-only.staff-visible {
  display: block;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.staff-link {
  color: var(--accent) !important;
}
.staff-link:hover,
.staff-link.active {
  color: var(--accent) !important;
  background: rgba(244, 162, 97, 0.10) !important;
}

.staff-mode-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.staff-mode-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.staff-mode-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(244, 162, 97, 0.12);
  box-shadow: 0 0 12px rgba(244, 162, 97, 0.3);
}

.staff-modal-box {
  text-align: center;
  max-width: 420px;
}
.staff-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.staff-input-wrap {
  margin: 1.25rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.staff-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.staff-password-wrap .staff-password-input {
  padding-right: 2.8rem;
}
.staff-eye-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.staff-eye-btn:hover { opacity: 1; }
.staff-password-input {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
  letter-spacing: 0.1em;
}
.staff-password-input:focus {
  border-color: var(--accent);
}
.staff-remember-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 0.5rem;
  user-select: none;
  transition: color 0.2s;
}
.staff-remember-label:hover { color: var(--text); }
.staff-remember-label input[type="checkbox"] {
  display: none;
}
.staff-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}
.staff-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), background 0.25s;
}
.staff-remember-label input:checked + .staff-toggle {
  background: rgba(244, 162, 97, 0.25);
  border-color: var(--accent);
}
.staff-remember-label input:checked + .staff-toggle::after {
  transform: translateX(16px);
  background: var(--accent);
}

.staff-modal-error {
  color: var(--primary);
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-bottom: 0.75rem;
}
.staff-modal-error.shake {
  animation: shake 0.35s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.staff-confirm-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}
.staff-confirm-btn:hover {
  background: #d4843f !important;
  box-shadow: 0 0 16px rgba(244,162,97,0.35) !important;
}

.admin-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.admin-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-panel-box {
  max-width: 500px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  text-align: left;
}
.admin-list {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  gap: 1rem;
}
.admin-list-email {
  font-size: 0.875rem;
  color: var(--text);
  word-break: break-all;
}
.admin-delete-btn {
  background: rgba(230,57,70,0.12);
  border: 1px solid rgba(230,57,70,0.3);
  color: var(--primary);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: background 0.2s;
}
.admin-delete-btn:hover {
  background: rgba(230,57,70,0.25);
}
.admin-list-item--blocked {
  border-color: rgba(230,57,70,0.4);
  background: rgba(230,57,70,0.05);
}
.admin-blocked-badge {
  font-size: 0.7rem;
  color: var(--primary);
  margin-left: 0.5rem;
  font-weight: 600;
}
.admin-unblock-btn {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #22c55e;
  border-radius: 6px;
  padding: 0 0.6rem;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.2s;
  white-space: nowrap;
}
.admin-unblock-btn:hover {
  background: rgba(34,197,94,0.25);
}
.admin-block-btn {
  background: rgba(230,57,70,0.12);
  border: 1px solid rgba(230,57,70,0.35);
  color: var(--primary);
  border-radius: 6px;
  padding: 0 0.6rem;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.2s;
  white-space: nowrap;
}
.admin-block-btn:hover {
  background: rgba(230,57,70,0.25);
}
.admin-empty {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem 0;
}
.admin-add-section {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}
.admin-add-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.admin-export-section {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1rem;
}
.admin-export-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.admin-export-desc code {
  background: rgba(255,255,255,0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--accent);
}
.admin-export-textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: monospace;
  padding: 0.75rem;
  resize: none;
  height: 100px;
  outline: none;
  line-height: 1.5;
}
.admin-copy-btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.6rem;
  background: none !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.admin-copy-btn:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
