/* -------------- GLOBAL VARIABLES -------------- */
:root {
  --bg-dark: #0d0d1a;
  --bg-panel: rgba(22, 22, 51, 0.75);
  --accent-purp: #5a46ff;
  --accent-cyan: #00e0ff;
  --accent-red: #ff5b5b;
  --text-light: #f2f5ff;
  --text-muted: #a5abd6;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --trans: 200ms ease;
}

/* -------------- RESET & BASE -------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font: 400 16px/1.6 "Segoe UI", Tahoma, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin-bottom: 0.5em;
  font-weight: 600;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  position: relative;
  transition: color var(--trans);
}

a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-cyan);
  transform: scaleX(0);
  transition: transform 200ms ease-in-out;
  transform-origin: right;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* -------------- LAYOUT -------------- */
.container {
  max-width: 1150px;
  margin: auto;
  padding: 1rem 1rem 2rem;
}

.section-box {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
  animation: fadeIn 0.5s ease-out;
}

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

/* -------------- HEADER -------------- */
header {
  background: linear-gradient(135deg, #1c1c5e 0%, #09091d 100%);
  box-shadow: var(--shadow);
  padding: 1rem 1.5rem;
  text-align: center;
  border-radius: 0 0 var(--radius) var(--radius);
}

header h2 {
  font-size: 1.65rem;
  letter-spacing: 0.04em;
}

/* -------------- NAVIGATION -------------- */
nav {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
}

nav a:hover {
  color: var(--accent-cyan);
  background: rgba(0, 224, 255, 0.05);
}

/* -------------- BUTTONS -------------- */
button, .btn {
  display: inline-block;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius);
  background: var(--accent-purp);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform var(--trans), background var(--trans), box-shadow var(--trans);
}

button:hover, .btn:hover {
  background: #4639d7;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger {
  background: var(--accent-red);
}

.btn-danger:hover {
  background: #e04040;
}

.btn-secondary {
  background: #3b3b6e;
}

.btn-secondary:hover {
  background: #32325d;
}

/* -------------- FORMS -------------- */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

form input,
form textarea,
form select {
  width: 100%;
  max-width: 320px;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid #2c2c54;
  background: rgba(27, 27, 57, 0.9);
  color: var(--text-light);
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color var(--trans), box-shadow var(--trans);
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.2);
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

input.small {
  width: 140px;
}

/* -------------- TABLES -------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2rem;
  font-size: 0.92rem;
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  padding: 0.75rem 0.65rem;
  text-align: left;
}

th {
  color: var(--accent-cyan);
  font-weight: 600;
  border-bottom: 2px solid #26264c;
  background-color: rgba(0, 224, 255, 0.05);
}

tr:nth-child(even) {
  background: rgba(17, 17, 39, 0.85);
}

td a {
  margin-right: 0.5rem;
}

/* -------------- RESPONSIVE DESIGN -------------- */
@media (max-width: 720px) {
  .table-scroll {
    overflow-x: auto;
  }

  table {
    min-width: 680px;
  }
}

@media (max-width: 600px) {
  .section-box {
    padding: 1rem;
  }

  nav {
    font-size: 0.85rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  button, .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }

  input.small {
    width: 100%;
  }

  form input,
  form textarea,
  form select {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
}
/* ---------- GLOBAL ---------- */
:root {
  --bg-dark: #0d0d1a;
  --bg-panel: rgba(22, 22, 51, 0.75);
  --accent-purp: #5a46ff;
  --accent-cyan: #00e0ff;
  --accent-red: #ff5b5b;
  --text-light: #f2f5ff;
  --text-muted: #a5abd6;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --trans: 200ms ease;
}

/* ---------- BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font: 400 16px/1.6 "Segoe UI", Tahoma, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  scroll-behavior: smooth;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--trans);
}

a:hover {
  text-decoration: underline;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
}

.section-box {
  background: var(--bg-panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-top: 2rem;
  animation: fadeIn 0.4s ease-in-out;
  backdrop-filter: blur(10px);
}

/* ---------- FADE ANIMATION ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- FORMS ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

form input,
form select,
form textarea {
  width: 100%;
  max-width: 320px;
  padding: 0.6rem 0.8rem;
  background: rgba(27, 27, 57, 0.9);
  color: var(--text-light);
  border: 1px solid #2c2c54;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color var(--trans), box-shadow var(--trans);
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.2);
  outline: none;
}

label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

input.small,
select.small {
  max-width: 140px;
}

/* ---------- BUTTONS ---------- */
button,
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  background: var(--accent-purp);
  color: white;
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

button:hover,
.btn:hover {
  background-color: #4639d7;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #3b3b6e;
}
.btn-secondary:hover {
  background: #32325d;
}

.btn-danger {
  background: var(--accent-red);
}
.btn-danger:hover {
  background: #e04040;
}

/* ---------- TABLES ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 1rem;
}

th,
td {
  padding: 0.75rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid #2a2a45;
}

th {
  color: var(--accent-cyan);
  font-weight: 600;
  background: rgba(0, 224, 255, 0.04);
}

tr:nth-child(even) {
  background: rgba(17, 17, 39, 0.85);
}

td img {
  border-radius: 6px;
}

/* ---------- SCROLLABLE TABLE ---------- */
.table-scroll {
  overflow-x: auto;
}

/* ---------- LIVE CHAT BOX ---------- */
#admin-chat-box {
  max-height: 240px;
  overflow-y: auto;
  background: #111127;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

#admin-chat-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

#admin-chat-input {
  flex: 1;
  max-width: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  h3 {
    font-size: 1.2rem;
  }

  button,
  .btn {
    width: 100%;
  }

  form input,
  form select,
  form textarea {
    max-width: 100%;
  }
}
.video-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  margin-bottom: 1.5rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.fancy-hero {
  background: radial-gradient(circle at center, #1a1a3c, #0d0d1a);
  padding: 2rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  animation: pulseGlow 5s infinite ease-in-out;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.25);
}

.hero-text h1 {
  font-size: 2.1rem;
  margin: 0;
  color: var(--accent-cyan);
}

.hero-text p {
  font-size: 1rem;
  color: var(--text-muted);
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 224, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.35);
  }
}

.emoji {
  font-size: 1.3em;
  vertical-align: middle;
}
textarea.wide {
  width: 100%;
  max-width: 900px;
  height: 135px;
}