:root {
  --primary-orange: #ff8c00;
  --dark-bg: #1a1a1a;
  --darker-bg: #0f0f0f;
  --white: #ffffff;
  --gray-light: #e0e0e0;
  --gray-dark: #999999;
  --accent-gold: #ffb84d;
  --text-main: #ffffff;
  --text-muted: #cccccc;
  --shadow-strong: 0 28px 70px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: url("public/CursorGroup200.png"), auto;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: url("public/CursorGroup200.png"), auto;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.8);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff8c00 0%, #fb7b00 100%);
  border-radius: 6px;
  border: 2px solid rgba(30, 30, 30, 0.8);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffb84d 0%, #ff8c00 100%);
}

/* Firefox Scrollbar */
* {
  scrollbar-color: linear-gradient(180deg, #ff8c00 0%, #fb7b00 100%)
    rgba(30, 30, 30, 0.1);
  /*scrollbar-width: thin;*/
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,140,0,0.05)'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

/* Scene & Canvas */
.scene-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.scene-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 140, 0, 0.08),
    transparent 70%
  );
  z-index: 1;
}

.scene-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

#scene {
  width: 100%;
  height: 100%;
  display: block;
}

/* Interactive Elements Cursor */
a,
a[href],
button,
input[type="button"],
input[type="submit"],
input[type="checkbox"],
input[type="radio"],
label,
select,
.btn,
.class-btn,
.nav-button,
[role="button"],
[onclick],
.clickable {
  cursor: url("public/CursorGroup201.png"), pointer;
}

.scene-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s;
  z-index: 3;
}

/* Link Cursor Style */
a {
  cursor: url("public/CursorGroup201.png"), pointer;
}

/* News Modal Close Button */
.news-modal-close {
  cursor: url("public/CursorGroup201.png"), pointer;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /*background: rgba(15, 15, 15, 0.95);
  border-bottom: 2px solid var(--primary-orange);*/
  z-index: 100;
  backdrop-filter: blur(10px);
}

.server-status-bar {
  position: fixed;
  bottom: 20px; /* Space from the bottom */
  left: 50%;
  transform: translateX(-50%); /* Moves it back to the true center */

  width: auto; /* It will only be as wide as its content */
  max-width: 90%;
  /* padding: 10px 20px; */
  z-index: 100;
  backdrop-filter: blur(10px);
  border-radius: 50px;
  /*background: linear-gradient(135deg, rgb(255 115 0 / 0%) 0%, rgb(255 115 0 / 48%) 100%);*/
  background: rgb(255 115 0 / 18%);
}

.navbar-container {
  /*max-width: 1400px;*/
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.navbar-brand {
  color: var(--primary-orange);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  transition: transform 0.3s;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.navbar-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
}

.navbar-menu a::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: width 0.3s;
}

.navbar-menu a:hover {
  color: var(--primary-orange);
}

.navbar-menu a:hover::before {
  width: 100%;
}

.btn-play {
  /*background: var(--primary-orange) !important;*/
  color: var(--dark-bg) !important;
  padding: 10px 24px !important;
  border-radius: 5px;
  font-weight: 700;
  background: linear-gradient(180deg, rgb(251 123 0) 0%, rgb(255 84 0) 100%);
}

.btn-play:hover {
  background: var(--accent-gold) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 60px;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 100% 50%,
    rgba(255, 140, 0, 0.15),
    transparent 60%
  );
  z-index: 0;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  animation: fadeInLeft 0.8s ease;
}

.hero-text h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary-orange);
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(255, 140, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: 3.5%;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-left: 5%;
}

.btn {
  padding: 15px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  font-size: 1rem;
  border: none;
  display: inline-block;
}

.btn-primary {
  /*background: var(--primary-orange);*/
  color: var(--dark-bg);
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
  background: linear-gradient(180deg, rgb(251 123 0) 0%, rgb(255 84 0) 100%);
}

.btn-primary:hover {
  background: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 140, 0, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.btn-secondary:hover {
  background: var(--primary-orange);
  color: var(--dark-bg);
  transform: translateY(-5px);
}

.hero-showcase {
  position: relative;
  height: 500px;
  animation: fadeInRight 0.8s ease;
}

/* Features Section */
.features-section {
  padding: 100px 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 140, 0, 0.05));
  position: relative;
}

.features-section h2 {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  text-align: center;
  color: var(--primary-orange);
  margin-bottom: 80px;
  letter-spacing: 2px;
}

.features-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  /*background: rgba(30, 30, 30, 0.6);*/
  background: linear-gradient(
    135deg,
    rgba(40, 40, 40, 0.8) 0%,
    rgba(25, 25, 25, 0.8) 100%
  );
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.feature-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Classes Section */
.classes-section {
  padding: 100px 40px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

.classes-section h2 {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  text-align: center;
  color: var(--primary-orange);
  margin-bottom: 80px;
  letter-spacing: 2px;
}

.classes-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.class-card {
  background: linear-gradient(
    135deg,
    rgba(40, 40, 40, 0.8) 0%,
    rgba(25, 25, 25, 0.8) 100%
  );
  border: 2px solid rgba(255, 140, 0, 0.3);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.class-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(255, 140, 0, 0.1),
    transparent 70%
  );
  z-index: 0;
}

.class-card > * {
  position: relative;
  z-index: 1;
}

.class-card:hover {
  border-color: var(--primary-orange);
  background: linear-gradient(
    135deg,
    rgba(255, 140, 0, 0.1) 0%,
    rgba(30, 30, 30, 0.8) 100%
  );
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(255, 140, 0, 0.3);
}

.class-header {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  color: var(--primary-orange);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.class-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.class-select {
  display: inline-block;
  background: var(--primary-orange);
  color: var(--dark-bg);
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.class-card:hover .class-select {
  background: var(--accent-gold);
  transform: scale(1.1);
}

/* Server Section */
.server-section {
  padding: 100px 40px;
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.05), transparent);
  position: relative;
}

.server-section h2 {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  text-align: center;
  color: var(--primary-orange);
  margin-bottom: 80px;
  letter-spacing: 2px;
}

.server-info {
  max-width: 1400px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.server-Status {
  max-width: 1400px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
  justify-items: center;
  font: 1rem;
}
.server-stat {
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(5px);
}

.server-stat h3 {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.server-stat p {
  color: var(--primary-orange);
  font-size: 2rem;
  font-weight: 700;
}

.server-features {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 10px;
  padding: 40px;
  backdrop-filter: blur(5px);
}

.server-features h3 {
  color: var(--primary-orange);
  font-size: 1.5rem;
  margin-bottom: 25px;
  letter-spacing: 1px;
  font-family: "Cinzel", serif;
}

.server-features ul {
  list-style: none;
}

.server-features li {
  color: var(--text-muted);
  font-size: 1.05rem;
  padding: 10px 0;
  line-height: 1.6;
}

/* News Section */
.news-section {
  padding: 100px 40px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

.news-section h2 {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  text-align: center;
  color: var(--primary-orange);
  margin-bottom: 80px;
  letter-spacing: 2px;
}

.news-carousel {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background: linear-gradient(
    135deg,
    rgba(40, 40, 40, 0.8) 0%,
    rgba(25, 25, 25, 0.8) 100%
  );
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 10px;
  padding: 30px;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.news-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.2);
}

.news-date {
  color: var(--primary-orange);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.news-card h3 {
  color: var(--accent-gold);
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-family: "Cinzel", serif;
}

.news-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Classes Navigation (Fixed Right Sidebar) */
.classes-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  /*background: linear-gradient(180deg, rgba(26, 26, 26, 0.95), rgba(15, 15, 15, 0.98));
  border: 2px solid var(--primary-orange);
  border-radius: 15px;
  padding: 25px 15px;*/
  display: flex;
  flex-direction: column;
  align-items: center;
  /*gap: 12px;*/
  /*backdrop-filter: blur(10px);*/
  /*box-shadow: 0 20px 60px rgba(255, 140, 0, 0.2), inset 0 0 30px rgba(255, 140, 0, 0.05);*/
}

.classes-title {
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  color: var(--primary-orange);
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 700;
}

.classes-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.class-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 140, 0, 0.1),
    rgba(255, 184, 77, 0.05)
  );
  border: 1px solid var(--primary-orange);
  color: var(--text-main);
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 600;
}

.class-btn:hover {
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--accent-gold)
  );
  color: var(--darker-bg);
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

.class-btn:active {
  transform: translateX(3px);
}

.news-read-more {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.news-read-more:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
}

/* Community Section */
.community-section {
  padding: 80px 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 140, 0, 0.08));
  position: relative;
}

.community-section h2 {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  color: var(--primary-orange);
  margin-bottom: 50px;
  letter-spacing: 2px;
  text-align: center;
}

.community-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.btn-community {
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--accent-gold)
  );
  color: var(--darker-bg);
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Cinzel", serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
  display: inline-block;
  letter-spacing: 1px;
}

.btn-community:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 140, 0, 0.5);
  background: linear-gradient(
    135deg,
    var(--accent-gold),
    var(--primary-orange)
  );
}

/* Footer */
.footer {
  /*background: rgba(10, 10, 10, 0.9);*/
  border-top: 2px solid #ff8c0052;
  padding: 60px 40px 30px;
  backdrop-filter: blur(10px);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--primary-orange);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
}

.footer-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary-orange);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-block;
}

/* Debug Panel */
.debug-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 6;
  padding: 10px 18px;
  border-radius: 5px;
  border: 1px solid var(--primary-orange);
  background: rgba(15, 15, 15, 0.5);
  color: var(--primary-orange);
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.debug-toggle:hover {
  background: var(--primary-orange);
  color: var(--dark-bg);
  transform: translateY(-3px);
}

.debug-panel {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 6;
  width: min(300px, 90vw);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 140, 0, 0.4);
  background: rgba(15, 15, 15, 0.95);
  box-shadow: var(--shadow-strong);
  color: var(--text-main);
  font-size: 0.85rem;
  display: none;
  gap: 12px;
  backdrop-filter: blur(10px);
}

body.debug-on .debug-panel {
  display: grid;
}

.debug-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 140, 0, 0.2);
  padding-bottom: 10px;
}

.debug-row {
  display: grid;
  gap: 6px;
}

.debug-row label {
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.debug-row input[type="range"] {
  width: 100%;
  accent-color: var(--primary-orange);
}

.debug-ball {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--primary-orange);
  background: radial-gradient(
    circle at 35% 30%,
    rgba(255, 140, 0, 0.1),
    rgba(15, 15, 15, 0.95)
  );
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6);
  place-self: center;
  touch-action: none;
  cursor: grab;
}

.debug-ball-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-orange);
  box-shadow: 0 0 12px var(--primary-orange);
  transform: translate(
    calc(-50% + var(--ball-x, 0px)),
    calc(-50% + var(--ball-y, 0px))
  );
}

.debug-rot-values {
  font-size: 0.75rem;
  color: var(--primary-orange);
  text-align: center;
}

.debug-value {
  font-size: 0.75rem;
  color: var(--primary-orange);
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-showcase {
    height: 400px;
  }

  .navbar-container {
    padding: 0 20px;
  }

  .navbar-menu {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 15px;
    height: 60px;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .navbar-menu {
    gap: 10px;
    font-size: 0.8rem;
  }

  .hero-section {
    padding: 100px 20px 40px;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .features-section,
  .classes-section,
  .server-section,
  .news-section,
  .community-section {
    padding: 60px 20px;
  }

  .features-section h2,
  .classes-section h2,
  .server-section h2,
  .news-section h2,
  .community-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 0.9rem;
  }

  .footer-content {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .navbar-menu {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .class-card {
    padding: 20px 15px;
  }

  .feature-card {
    padding: 25px 15px;
  }
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-showcase {
    height: 350px;
  }

  .features-grid,
  .classes-container,
  .dungeons-grid,
  .items-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 15px;
    height: 60px;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .navbar-menu {
    gap: 10px;
    font-size: 0.8rem;
  }

  .navbar-menu a {
    padding: 8px 12px;
  }

  .hero-section {
    padding: 80px 20px 40px;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: 12px 20px;
  }

  .hero-showcase {
    height: 300px;
  }

  .features-section,
  .classes-section,
  .server-section,
  .news-section,
  .community-section,
  .dungeons-section,
  .items-section,
  .patch-section,
  .guide-section {
    padding: 60px 20px;
  }

  .features-section h2,
  .classes-section h2,
  .server-section h2,
  .news-section h2,
  .community-section h2,
  .dungeons-section h2,
  .items-section h2,
  .patch-section h2,
  .guide-section h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .class-card {
    padding: 20px 15px;
  }

  .class-header {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .class-select {
    padding: 8px 20px;
    font-size: 0.85rem;
  }

  .feature-card,
  .dungeon-card,
  .item-card,
  .patch-card,
  .guide-card {
    padding: 20px 15px;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .community-buttons {
    gap: 15px;
  }

  .btn-community {
    padding: 12px 30px;
    font-size: 0.95rem;
  }

  .server-info {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .footer-content {
    gap: 25px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 10px;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-menu {
    flex-direction: column;
    gap: 5px;
  }

  .navbar-menu a {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .btn-play {
    padding: 8px 16px !important;
    font-size: 0.75rem !important;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .features-grid,
  .classes-container,
  .dungeons-grid,
  .items-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .feature-card,
  .class-card,
  .dungeon-card,
  .item-card,
  .patch-card,
  .guide-card {
    padding: 15px 12px;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .feature-card h3,
  .class-header,
  .dungeon-card h3,
  .item-card h3,
  .patch-card h3,
  .guide-card h3 {
    font-size: 1.1rem;
  }

  .feature-card p,
  .dungeon-card p,
  .item-card p {
    font-size: 0.9rem;
  }

  .server-stat {
    padding: 25px 15px;
  }

  .server-features {
    padding: 25px 15px;
  }

  .server-features li {
    font-size: 0.9rem;
  }

  .news-card {
    padding: 20px 15px;
  }

  .news-date {
    font-size: 0.8rem;
  }

  .news-card h3 {
    font-size: 1.2rem;
  }

  .news-card p {
    font-size: 0.9rem;
  }

  .debug-panel {
    width: min(250px, 95vw);
    right: 10px;
    bottom: 70px;
  }
}

/* ===== NEW SECTIONS STYLING ===== */

.dungeons-section {
  padding: 100px 40px;
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.05), transparent);
}

.dungeons-section h2 {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  text-align: center;
  color: var(--primary-orange);
  margin-bottom: 80px;
  letter-spacing: 2px;
}

.dungeons-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.dungeon-card {
  background: linear-gradient(
    135deg,
    rgba(40, 40, 40, 0.8) 0%,
    rgba(25, 25, 25, 0.8) 100%
  );
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 10px;
  padding: 30px;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.dungeon-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.2);
}

.dungeon-level {
  display: inline-block;
  background: rgba(255, 140, 0, 0.2);
  color: var(--primary-orange);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.dungeon-card h3 {
  color: var(--accent-gold);
  font-size: 1.4rem;
  margin: 10px 0;
  font-family: "Cinzel", serif;
}

.dungeon-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 5px 0;
}

.dungeon-desc {
  margin-top: 10px;
  font-size: 0.9rem !important;
}

.items-section {
  padding: 100px 40px;
  background: rgba(0, 0, 0, 0.3);
}

.items-section h2 {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  text-align: center;
  color: var(--primary-orange);
  margin-bottom: 80px;
  letter-spacing: 2px;
}

.items-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.item-card {
  background: linear-gradient(
    135deg,
    rgba(40, 40, 40, 0.8) 0%,
    rgba(25, 25, 25, 0.8) 100%
  );
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.item-card:hover {
  border-color: var(--primary-orange);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.2);
}

.item-rarity {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.item-rarity {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.3),
    rgba(255, 140, 0, 0.3)
  );
  color: var(--accent-gold);
}

.item-card h3 {
  color: var(--text-main);
  font-size: 1.3rem;
  margin: 10px 0;
  font-family: "Cinzel", serif;
}

.item-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 8px 0;
}

.item-stats {
  color: var(--primary-orange);
  font-weight: 700 !important;
  margin-top: 12px !important;
}

.patch-section {
  padding: 100px 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 140, 0, 0.05));
}

.patch-section h2 {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  text-align: center;
  color: var(--primary-orange);
  margin-bottom: 80px;
  letter-spacing: 2px;
}

.patch-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.patch-card {
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 10px;
  padding: 30px;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
}

.patch-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.2);
}

.patch-version {
  color: var(--primary-orange);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 700;
}

.patch-card h3 {
  color: var(--accent-gold);
  font-size: 1.3rem;
  margin: 10px 0 15px;
  font-family: "Cinzel", serif;
}

.patch-card ul {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.patch-card li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
}

.patch-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: 700;
}

.guide-section {
  padding: 100px 40px;
  background: rgba(0, 0, 0, 0.3);
}

.guide-section h2 {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  text-align: center;
  color: var(--primary-orange);
  margin-bottom: 80px;
  letter-spacing: 2px;
}

.guide-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.guide-card {
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
}

.guide-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.2);
}

.guide-card h3 {
  color: var(--accent-gold);
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-family: "Cinzel", serif;
}

.guide-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.nav-logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
  margin-bottom: -10px;
}

.hero-logo {
  height: 300px;
  width: auto;
  margin-bottom: 20px;
  left: 50%;
  margin-left: 80px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-right: 10px;
  margin-bottom: 5px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-orange);
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  margin-bottom: 5px;
  margin-top: -7px;
}

.sound-toggle {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 6;
  padding: 10px 18px;
  border-radius: 5px;
  border: 1px solid var(--primary-orange);
  background: rgba(15, 15, 15, 0.5);
  color: var(--primary-orange);
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.sound-toggle:hover {
  background: var(--primary-orange);
  color: var(--dark-bg);
  transform: translateY(-3px);
}

.sound-toggle {
  display: grid;
  gap: 6px;
}

.sound-toggle label {
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sound-toggle input[type="range"] {
  width: 100%;
  accent-color: var(--primary-orange);
}

.community-align {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.community-align img {
  height: auto;
  width: 40px;
}

.hero-vote {
  position: relative;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  margin-left: 16%;
}
.hero-vote {
  flex-direction: column;
}

.no-drag {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.server-status-label {
  color: #ffffff81;
}
.server-status-value {
  font-weight: 600;
}
.server-status-value.online {
  color: #3bbf59;
}
.server-status-value.offline {
  color: #d9534f;
}

.server-time {
  color: #ffffff81;
}

.server-time-value {
  color: #fff;
}

.countdown {
  color: #ffffff81;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 95%;
  z-index: 100;
}

.countdown-value {
  color: #ffffff;
}

.countdown-days {
  color: #fa6f00;
}
.countdown-hours {
  color: #fa6f00;
  margin-left: 3px;
}
.countdown-minutes {
  color: #fa6f00;
  margin-left: 3px;
}
.countdown-seconds {
  color: #fa6f00;
  margin-left: 3px;
}

.castle-owner {
  color: #ffffff81;
}

.castle-owner-value {
  color: #ffffff;
}

/* News Modal Styles */
.news-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.news-modal-content {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  margin: 5% auto;
  padding: 40px;
  border: 2px solid var(--primary-orange);
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(255, 140, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.news-modal-close {
  color: var(--text-main);
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 20px;
}

.news-modal-close:hover,
.news-modal-close:focus {
  color: var(--primary-orange);
}

.news-modal-header {
  margin-bottom: 30px;
  border-bottom: 2px solid var(--primary-orange);
  padding-bottom: 20px;
}

.news-modal-date {
  color: var(--primary-orange);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-modal-header h2 {
  color: var(--text-main);
  font-family: "Cinzel", serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.news-modal-body {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  word-wrap: break-word;
}

.news-modal-body p {
  margin-bottom: 15px;
}

/* Responsive modal */
@media (max-width: 768px) {
  .news-modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 30px 20px;
  }

  .news-modal-header h2 {
    font-size: 22px;
  }

  .news-modal-body {
    font-size: 15px;
  }
}

/* Admin Login Page Styles */
.login-container {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: left;
  pointer-events: none;
}

.card {
  background: rgba(20, 20, 20, 0.1);
  padding: 40px;
  border-radius: 12px;
  /*border: 1px solid rgba(255, 140, 0, 0.25);*/
  /*width: 360px;*/
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  pointer-events: all;
  height: 100%;
  align-content: center;
}

.card h1 {
  color: #ff8c00;
  font-size: 1.5rem;
  margin: 0 0 30px 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.card label {
  font-size: 0.9rem;
  color: #aaaaaa3d;
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.card input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 140, 0, 0.2);
  background: rgba(30, 30, 30, 0.274);
  color: #fff;
  cursor: url("public/CursorGroup201.png"), auto;
  font-family: Manrope, Arial;
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.3s;
  border-color: rgba(255, 140, 0, 0.6);
}

.card input:focus {
  outline: none;
  border-color: rgba(255, 140, 0, 0.6);
  background: rgba(40, 40, 40, 0.95);
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
}

.card button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, rgb(251 123 0) 0%, rgb(255 84 0) 100%);
  color: #000000;
  font-weight: 700;
  font-size: 1rem;
  cursor: url("public/CursorGroup201.png"), pointer;
  transition: all 0.3s;
  font-family: Manrope, Arial;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.card button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 140, 0, 0.4);
  background: linear-gradient(180deg, #ffb84d, #ff8c00);
}

.card button:active {
  transform: translateY(-1px);
}

.msg {
  display: none;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.msg.error {
  display: block;
  background: rgba(217, 83, 79, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(217, 83, 79, 0.4);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide admin panel elements on login page */
/*.debug-toggle, .sound-toggle, .classes-nav, .navbar, .server-status-bar {
  display: none !important;
}
*/

.hero-admin-login-logo {
  height: 200px;
  width: auto;
  margin-bottom: 20px;
  /* left: 50%; */
  margin-left: 50px;
  margin-top: -200px;
}

/* ===== ADMIN DASHBOARD THEME - MATCHES INDEX.HTML ===== */
/*body.admin-page {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  min-height: auto;
}*/

/* Admin background effect like Three.js scene */
body.admin-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(255, 140, 0, 0.08),
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 0;
}

.user-info {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: "Manrope", sans-serif;
}

.user-info strong {
  color: var(--primary-orange);
  font-weight: 700;
}

.btn-logout {
  background: transparent;
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: var(--primary-orange);
  color: var(--dark-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

.dashboard-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 100px;
  padding: 32px 40px 0 400px;
  min-height: calc(100vh - 120px);
  position: relative;
  z-index: 2;
  margin-top: 60px;
}

/*.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}*/

.sidebar {
  position: fixed;
  left: 0;
  top: 60px;
  width: 360px;
  height: calc(100vh - 30px);
  overflow-y: auto;
  background: rgba(20, 20, 20, 0);
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  pointer-events: all;
  z-index: 50;
}

.sidebar-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.1);
}

.sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-title {
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  margin-bottom: 10px;
  font-family: "Cinzel", serif;
}

.nav-button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-left: 3px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  margin-bottom: 8px;
}

.nav-button:hover {
  background: rgba(255, 140, 0, 0.08);
  color: var(--primary-orange);
  border-left-color: var(--primary-orange);
  transform: translateX(4px);
}

.nav-button.active {
  background: rgba(255, 140, 0, 0.15);
  color: var(--primary-orange);
  border-left-color: var(--primary-orange);
  font-weight: 700;
  box-shadow: inset 0 0 12px rgba(255, 140, 0, 0.08);
}

.content-area {
  display: block;
  min-height: 60vh;
}

.content-panel {
  display: none;
  /*background: rgba(20, 20, 20, 0.144);*/
  /*border: 1px solid rgba(255, 140, 0, 0.12);*/
  border-radius: 8px;
  padding: 32px;
  /*box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 140, 0, 0.08);*/
  /*backdrop-filter: blur(1px);*/
  animation: fadeInScale 0.35s ease-out;
}

.content-panel.active {
  display: block;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.content-panel h2 {
  color: var(--primary-orange);
  font-size: 1.5rem;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(255, 140, 0, 0.2);
  padding-bottom: 16px;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
}

.content-panel h3 {
  color: var(--primary-orange);
  font-size: 1.2rem;
  margin: 20px 0 16px 0;
  font-weight: 700;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(15, 15, 15, 0.25);
  border: 1px solid rgba(255, 140, 0, 0.15);
  border-radius: 4px;
  color: var(--text-main);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-orange);
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.2),
    inset 0 0 8px rgba(255, 140, 0, 0.05);
}

.button-group {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(180deg, rgb(251 123 0) 0%, rgb(255 84 0) 100%);
  color: var(--dark-bg);
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 140, 0, 0.35);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 140, 0, 0.15);
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
  /*padding: 8px 16px;*/
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.25s ease;
}

.close-padding {
  padding: 8px 16px;
}

.btn-secondary:hover {
  background: var(--primary-orange);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(220, 53, 69, 0.12);
  color: #ff6b6b;
  border: 2px solid #ff6b6b;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-danger:hover {
  background: #ff6b6b;
  color: var(--white);
  transform: translateY(-2px);
}

.table-list {
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(255, 140, 0, 0.12);
  border-radius: 4px;
  overflow: auto;
  max-height: 500px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);
}

.table-item {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.table-item:hover {
  background: rgba(255, 140, 0, 0.08);
  color: var(--primary-orange);
  border-left: 3px solid var(--primary-orange);
  padding-left: 13px;
}

.table-item.active {
  background: rgba(255, 140, 0, 0.12);
  color: var(--primary-orange);
  font-weight: 700;
  border-left: 3px solid var(--primary-orange);
  padding-left: 13px;
}

.table-viewer {
  background: rgba(15, 15, 15, 0.25);
  /*border: 1px solid rgba(255, 140, 0, 0.12);*/
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 500px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);
  scroll-snap-type: y;
  scrollbar-width: thin;
  scrollbar-color: rgb(252 129 0) transparent;
}

.table-viewer table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-viewer th {
  background: rgba(255, 140, 0, 0.12);
  color: var(--primary-orange);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 140, 0, 0.2);
  position: sticky;
  top: 0;
}

.table-viewer td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.08);
  color: var(--text-muted);
}

.table-viewer tr:hover {
  background: rgba(255, 140, 0, 0.06);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(2px);
  z-index: 300;
  animation: fadeInOverlay 0.25s ease-out;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 140, 0, 0.15);
  border-radius: 8px;
  padding: 32px;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 140, 0, 0.1);
  backdrop-filter: blur(10px);
  animation: slideInModal 0.3s ease-out;
}

@keyframes slideInModal {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(255, 140, 0, 0.15);
  padding-bottom: 16px;
}

.modal-header h3 {
  color: var(--primary-orange);
  font-size: 1.3rem;
  margin: 0;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--primary-orange);
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--accent-gold);
  transform: scale(1.15);
}

.modal-footer {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.message {
  padding: 14px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: 600;
  animation: slideDown 0.3s ease-out;
  display: none;
  border-left: 4px solid transparent;
}

.message.success {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
  border-left-color: #28a745;
}

.message.error {
  background: rgba(220, 53, 69, 0.15);
  color: #ff6b6b;
  border-left-color: #ff6b6b;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-orange);
}

.checkbox-group span {
  color: var(--text-muted);
  font-weight: 500;
}

.add-row-form {
  background: rgba(15, 15, 15, 0.25);
  /*border: 1px solid rgba(255, 140, 0, 0.12);*/
  border-radius: 4px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);
}

/* apply to any element (or body) */
.no-scrollbar {
  -ms-overflow-style: none; /* IE & Edge (legacy) */
  scrollbar-width: none; /* Firefox */
}
.no-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge (WebKit/Blink) */
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.form-grid.full {
  grid-template-columns: 1fr;
}

.row-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  white-space: nowrap;
}

.row-actions button {
  padding: 8px 12px !important;
  font-size: 0.75rem !important;
}

/* Admin dashboard theme (reuses site variables + new helper classes) */

/* Vote & Rewards Modal */
.vote-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease-in-out;
}

.vote-modal-content {
  background: linear-gradient(135deg, #1a1a1a15 0%, #2a2a2a15 100%);
  margin: 10% auto;
  padding: 0;
  /*border: 2px solid var(--primary-orange);*/
  border-radius: 16px;
  width: 90%;
  max-width: 550px;
  box-shadow: 0 40px 100px rgba(255, 140, 0, 0.3), 0 0 30px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease-out;
  overflow: hidden;
}

.vote-modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  color: var(--text-main);
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 20px;
  z-index: 10;
}

.vote-modal-close:hover {
  color: var(--primary-orange);
  transform: rotate(90deg);
}

.vote-modal-header {
  background: linear-gradient(100deg, rgb(251 123 0) 0%, rgb(255 84 0) 100%);
  padding: 30px 30px 20px 30px;
  text-align: center;
  position: relative;
}

.vote-header-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
  animation: bounce 1s ease-in-out infinite;
}

.vote-modal-header h2 {
  color: white;
  font-family: "Cinzel", serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}

.vote-modal-header p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.vote-modal-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 30px;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

/* Input Section */
.vote-input-section {
  margin-bottom: 25px;
}

.vote-modal-body .form-group {
  margin-bottom: 0;
}

.vote-modal-body label {
  display: flex;
  align-items: center;
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.label-icon {
  margin-right: 8px;
  font-size: 16px;
}

.vote-modal-body input {
  width: 100%;
  background: rgba(15, 15, 15, 0.6);
  border: 2px solid rgba(255, 140, 0, 0.2);
  border-radius: 8px;
  color: var(--text-main);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.vote-modal-body input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.vote-modal-body input:focus {
  outline: none;
  border-color: var(--primary-orange);
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.3);
}

.hint-text {
  color: #999;
  font-size: 12px;
  display: block;
  margin-top: 6px;
  font-weight: 400;
}

/* Requirements Section */
.vote-requirements-section {
  background: rgba(255, 140, 0, 0.08);
  border-left: 4px solid var(--primary-orange);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-orange);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.requirement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ccc;
}

.req-icon {
  font-size: 16px;
  min-width: 20px;
  text-align: center;
}

.req-text {
  font-weight: 500;
}

/* Rewards Section */
.vote-rewards-info {
  background: rgba(79, 191, 60, 0.08);
  border-left: 4px solid #4fbf3c;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.reward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #ccc;
}

.reward-item:last-child {
  margin-bottom: 0;
}

.reward-icon {
  font-size: 18px;
  min-width: 24px;
}

.reward-text {
  font-weight: 500;
}

/* Buttons */
.vote-button-group {
  margin-top: 25px;
  margin-bottom: 0;
  display: flex;
  gap: 12px;
}

.vote-btn-primary {
  flex: 1;
  background: linear-gradient(
    180deg,
    rgb(251 123 0) 0%,
    rgb(255 84 0) 100%
  ) !important;
  border: none !important;
  color: white !important;
  padding: 14px 20px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.vote-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.4) !important;
}

.vote-btn-primary:active {
  transform: translateY(0) !important;
}

.btn-icon {
  font-size: 16px;
}

.vote-btn-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 140, 0, 0.3) !important;
  color: var(--text-main) !important;
  padding: 14px 20px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.vote-btn-secondary:hover {
  background: rgba(255, 140, 0, 0.1) !important;
  border-color: var(--primary-orange) !important;
  color: var(--primary-orange) !important;
}

/* Loading State */
.vote-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 140, 0, 0.2);
  border-top: 4px solid var(--primary-orange);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--text-main);
  margin: 0 0 8px 0;
  font-weight: 600;
}

.loading-subtext {
  color: #999;
  font-size: 13px;
}

/* Message Box */
.vote-message-box {
  display: block !important;
  visibility: visible !important;
}

.vote-message-box .isa_error {
  color: #d8000c;
  background-color: #ffd2d2;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 0;
  border-left: 4px solid #d8000c;
  display: block;
  font-weight: 600;
}

.vote-message-box .isa_success {
  color: #4f8a10;
  background-color: #dff2bf;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 0;
  border-left: 4px solid #4f8a10;
  display: block;
  font-weight: 600;
}

/* Animations */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
/*margin-bottom: 20px;
}*/

.vote-modal-body label {
  display: block;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.vote-modal-body input {
  width: 100%;
  background: rgba(15, 15, 15, 0.25);
  border: 1px solid rgba(255, 140, 0, 0.15);
  border-radius: 4px;
  color: var(--text-main);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.vote-modal-body input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.vote-modal-body input:focus {
  outline: none;
  border-color: var(--primary-orange);
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.2);
}

.content-area {
  flex: 1;
  /*background: rgba(20, 20, 20, 0.15);*/
  padding: 6px;
  min-height: 60vh;
  max-width: 173vh;
  overflow-x: auto;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.content-area table {
  width: 100%;
  table-layout: auto;
  min-width: max-content;
}

.table-list {
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(255, 140, 0, 0.04);
  border-radius: 8px;
  overflow: auto;
}
.table-item {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.03);
  color: var(--text-muted);
  cursor: pointer;
}
.table-item:hover {
  background: rgba(255, 140, 0, 0.04);
  color: var(--primary-orange);
}
.table-item.active {
  background: linear-gradient(
    180deg,
    rgba(255, 140, 0, 0.06),
    rgba(255, 140, 0, 0.02)
  );
  color: var(--primary-orange);
  font-weight: 700;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: rgba(15, 15, 15, 0.96);
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 720px;
  border: 1px solid rgba(255, 140, 0, 0.06);
  box-shadow: var(--shadow-strong);
}

/* Utility small helpers */
.message {
  padding: 12px;
  border-radius: 8px;
  display: none;
}
.message.success {
  background: rgba(40, 167, 69, 0.12);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.18);
  display: block;
}
.message.error {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.18);
  display: block;
}

.Admin-Dashboard-text {
  color: var(--primary-orange);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  transition: transform 0.3s;
  text-align: center;
  padding: 25px;
}

/* Vote Modal Spinner Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.vote-requirements {
  font-size: 13px;
}

.vote-requirements ul {
  margin: 0;
  padding-left: 20px;
}

.vote-requirements li {
  margin: 5px 0;
}

.isa_error {
  color: #d8000c;
  background-color: #ffd2d2;
  padding: 12px;
  border-radius: 4px;
  margin: 10px 0;
}

.isa_success {
  color: #4f8a10;
  background-color: #dff2bf;
  padding: 12px;
  border-radius: 4px;
  margin: 10px 0;
}

/* Vote Modal Message Visibility */
#voteMessage {
  display: block !important;
  visibility: visible !important;
}

#voteFormContent {
  display: block !important;
  visibility: visible !important;
}

#voteLoadingContent {
  display: none !important;
  visibility: hidden !important;
}

.btn-padding {
  padding: 8px 16px;
}

/* Context Menu Styling */
.context-menu {
  position: fixed;
  background: #1a1a1a;
  border: 1px solid #ff8c00;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
  z-index: 10000;
  min-width: 150px;
  display: none;
}

.context-menu.active {
  display: block;
}

.context-menu-item {
  padding: 10px 16px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  border-bottom: 1px solid #333;
}

.context-menu-item:last-child {
  border-bottom: none;
}

.context-menu-item:hover {
  background: #ff8c00;
  color: #000;
}

.context-menu-item.danger:hover {
  background: #dc3545;
  color: #fff;
}


