/* -root*/
:root {
  --bg: #050814;
  --bg-card: #0e1525;
  --text: #f5f5f5;
  --accent: #4f46e5;
  --accent-soft: #312e81;
  --danger: #ef4444;
  --border: #1f2937;
  --muted: #9ca3af;
  --radius: 16px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --nav-height: 64px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

.nav-title {
    color: white !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #111827, #020617);
  color: var(--text);
  min-height: 100vh;
}


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(3, 7, 18, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav-title {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-center a {
    margin: 0 8px;
    padding: 6px 14px;
    color: white !important;
    text-decoration: none;
    font-size: 0.95rem;

    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    transition: 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-center a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}


.nav-center a:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--accent-soft);
}

/* buttons*/
.btn {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-soft);
}

.btn.small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn.danger {
  background: var(--danger);
}

.icon-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #020617;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
}


.auth-card {

  width: 100%;

  max-width: 500px;

  padding: 48px;

  border-radius: 24px;

  background: rgba(10, 15, 35, 0.92);

  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(14px);

  box-shadow:
    0 0 30px rgba(0,0,0,0.45),
    0 0 80px rgba(99,102,241,0.08);

}

.app-title {

  font-size: 52px;

  font-weight: 800;

  text-align: center;

  margin-bottom: 18px;

  letter-spacing: -1px;

}

.auth-card .btn {

  display: block;

  width: 180px;

  margin: 18px auto 0 auto;

  text-align: center;

  border-radius: 14px;

}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

input {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.hub-wrapper {
  position: relative;
  width: 100%;
  padding-top: 110px; 
}

/* floating side info cards */
.hub-side-card {
  position: fixed;
  top: calc(var(--nav-height) + 12px);
  width: 250px;
  padding: 18px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.left-card { left: 20px; }
.right-card { right: 20px; }


.hub-center {
  text-align: center;
  margin-top: 40px;
}

.hub-center h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.hub-subtext {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 1rem;
}

/* 4 boxes*/
.feature-box-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

/* each box */
.feature-box {
  width: 210px;
  height: 260px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 18px 10px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.feature-box:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-8px);
}

/* feature image */
.feature-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-top: 10px;
}

/* feature button */
.feature-btn {
  width: 90%;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.feature-btn:hover {
  background: #6d71ff;
}

/* floating sparkles background */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;       
  pointer-events: none;
}

.settings-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
  filter: brightness(0.9);
  transition: 0.2s ease;
}

.settings-icon:hover {
  filter: brightness(1.2);
  transform: scale(1.08);
}



/* light vs dark tweaks*/
body.theme-light {
  background: radial-gradient(circle at top, #f9fafb, #d1d5db);
  color: #020617;
}

/* sparkle backgrounds */


body.bg-sky-sparkles {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8, #0ea5e9) fixed !important;
  position: relative;
}

body.bg-pink-sparkles {
  background: linear-gradient(135deg, #f472b6, #ec4899, #be185d) fixed !important;
}

body.bg-black-sparkles {
  background: linear-gradient(135deg, #0f0f0f, #111827, #000000) fixed !important;
}

body.bg-grey-sparkles {
  background: linear-gradient(135deg, #9ca3af, #6b7280, #374151) fixed !important;
}


#sparkleLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.4) 0, transparent 60%),
    radial-gradient(circle, rgba(255,255,255,0.2) 0, transparent 70%);
  background-size: 180px 180px, 260px 260px;
  animation: sparkleFloat 18s linear infinite;
  z-index: 0;
  opacity: 0.5;
}



.page-container {

  width: 100%;

  max-width: 1200px;

  margin: 0 auto;

  min-height: calc(100vh - 140px);

  padding:
    120px 20px
    100px;

  box-sizing: border-box;

}

/* LOGIN + SIGNUP CENTER */

body[data-page="login"] .page-container,
body[data-page="signup"] .page-container {

  display: flex;

  justify-content: center;

  align-items: center;

}

body[data-page="feedback"] .page-container,
body[data-page="analytics"] .page-container,
body[data-page="settings"] .page-container {

  display: block;

}

@keyframes sparkleFloat {
  0% {
    background-position: 0 0, 0 0;
  }
  50% {
    background-position: 80px 120px, -60px -90px;
  }
  100% {
    background-position: 0 0, 0 0;
  }
}

/* settings icon */
.icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.settings-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.2);
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4f46e5;
}


.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.settings-card {
  width: 100%;
  padding: 25px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.settings-card h2 {
  margin-bottom: 12px;
}

.settings-form label {
  display: block;
  margin-bottom: 14px;
}

.settings-form input,
.settings-form select {
  width: 100%;
  margin-top: 6px;
}

/* NEW TYPING TEST DESIGN*/

.typing-container{
  width:90%;
  max-width:1100px;

  margin:auto;

  padding-top:120px;
  padding-bottom:60px;

  text-align:center;
}

/* TITLE */

.typing-title{
  font-size:3rem;
  font-weight:800;

  margin-bottom:18px;

  color:white;

  text-shadow:
    0 0 25px rgba(0,195,255,0.4);
}

/* TIME BUTTONS */

.time-selector{
  display:flex;
  justify-content:center;
  gap:14px;

  margin-bottom:22px;
}

.time-btn{
  padding:12px 22px;

  border:none;
  border-radius:14px;

  cursor:pointer;

  font-weight:700;
  font-size:1rem;

  color:white;

  background:
    rgba(255,255,255,0.06);

  border:
    1px solid rgba(255,255,255,0.08);

  backdrop-filter:blur(10px);

  transition:0.22s ease;
}

.time-btn:hover{
  transform:
    translateY(-3px)
    scale(1.03);

  background:
    rgba(255,255,255,0.1);
}

.time-btn.active{
  background:
    linear-gradient(
      135deg,
      #00c3ff,
      #7d5fff
    );

  box-shadow:
    0 0 20px rgba(125,95,255,0.6);
}

/* TARGET BOX */

.target-box{
  width:fit-content;

  margin:
    0 auto 28px auto;

  padding:
    18px 30px;

  border-radius:18px;

  background:
    rgba(255,255,255,0.05);

  border:
    1px solid rgba(255,255,255,0.08);

  backdrop-filter:blur(12px);

  box-shadow:
    0 0 25px rgba(0,0,0,0.25);
}

.target-box{
  width:fit-content;

  margin:
    0 auto 28px auto;

  padding:
    18px 30px;

  border-radius:18px;

  background:
    rgba(5,10,25,0.82);

  border:
    1px solid rgba(255,255,255,0.12);

  backdrop-filter:blur(14px);

  box-shadow:
    0 0 30px rgba(0,0,0,0.45);

  color:white;
}

#targetGoal{
  margin:0;

  color:#7dd3fc;

  font-size:1rem;
  font-weight:700;
}

/* LIVE STATS */

.typing-stats-bar{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;

  gap:20px;

  margin-bottom:30px;
}

.typing-stat-card{
  min-width:180px;

  padding:18px 24px;

  border-radius:18px;

  background:
    rgba(255,255,255,0.05);

  border:
    1px solid rgba(255,255,255,0.08);

  backdrop-filter:blur(10px);

  box-shadow:
    0 0 22px rgba(0,0,0,0.22);

  transition:0.22s ease;
}

.typing-stat-card:hover{
  transform:
    translateY(-5px);
}

.typing-stat-card span{
  display:block;

  color:#cbd5e1;

  margin-bottom:8px;

  font-size:0.95rem;
}

.typing-stat-card{
  min-width:180px;

  padding:18px 24px;

  border-radius:18px;

  background:
    rgba(5,10,25,0.78);

  border:
    1px solid rgba(255,255,255,0.12);

  backdrop-filter:blur(14px);

  box-shadow:
    0 0 25px rgba(0,0,0,0.45),
    inset 0 0 15px rgba(255,255,255,0.03);

  transition:0.22s ease;
}
/* TYPING BOX */

.typing-box{
  position:relative;

  width:100%;

  padding:35px;

  border-radius:26px;

  overflow:hidden;

  background:
    linear-gradient(
      rgba(0,0,0,0.68),
      rgba(0,0,0,0.72)
    ),

    url("../img/typingbackground.png");

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  border:
    1px solid rgba(255,255,255,0.1);

  box-shadow:
    0 0 40px rgba(0,0,0,0.45),
    0 0 25px rgba(0,170,255,0.15);

  margin-bottom:30px;
}

/* GRID EFFECT */

.typing-box::before{
  content:"";

  position:absolute;
  inset:0;

  background-image:
    linear-gradient(
      rgba(255,255,255,0.03) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,0.03) 1px,
      transparent 1px
    );

  background-size:40px 40px;

  pointer-events:none;
}

/* WORDS */

#words{
  position:relative;
  z-index:2;

  display:flex;
  flex-wrap:wrap;

  gap:10px;

  text-align:left;

  line-height:2.4rem;

  font-size:1.3rem;

  color:#cbd5e1;
}

.word{
  transition:0.15s ease;
}

.active-word{

  color:white;

  padding:4px 10px;

  border-radius:10px;

  background:
    linear-gradient(
      135deg,
      rgba(0,195,255,0.22),
      rgba(125,95,255,0.22)
    );

  box-shadow:
    0 0 18px rgba(0,195,255,0.18);

  text-shadow:
    0 0 12px rgba(255,255,255,0.35);
}

.letter.correct{
  color:#4ade80;

  text-shadow:
    0 0 8px rgba(74,222,128,0.55);
}

.letter.incorrect{
  color:#ff4d6d;

  text-shadow:
    0 0 8px rgba(255,77,109,0.55);
}
/* INPUT */

#typingInput{
  width:100%;
  max-width:650px;

  padding:20px 24px;

  border-radius:20px;
  border:1px solid rgba(255,255,255,0.12);

  outline:none;

  background:
    rgba(5,10,25,0.82);

  color:white;

  font-size:1.15rem;
  font-weight:600;

  text-align:center;

  backdrop-filter:blur(14px);

  box-shadow:
    0 0 25px rgba(0,0,0,0.35),
    inset 0 0 12px rgba(255,255,255,0.03);

  transition:0.25s ease;
}

#typingInput:focus{

  border:
    1px solid rgba(0,195,255,0.7);

  background:
    rgba(10,18,40,0.92);

  box-shadow:
    0 0 35px rgba(0,195,255,0.28),
    0 0 70px rgba(125,95,255,0.15);

  transform:
    scale(1.01);
}

#typingInput::placeholder{
  color:#94a3b8;
}

.chat-container {
  max-width: 900px;
  margin: 120px auto;
  padding: 20px;
  text-align: center;
}

.chat-title {
  margin-bottom: 20px;
}

.chat-box {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 20px;
  height: 450px;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.chat-message {
  max-width: 70%;
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 12px;
  text-align: left;
  display: inline-block;
  line-height: 1.4rem;
  animation: fadeIn 0.2s ease;
}

.chat-message.you {
  background: #4f46e5;
  color: white;
  margin-left: auto;
  display: block;
}

.chat-message.other {
  background: rgba(255,255,255,0.08);
  color: #e5e7eb;
  margin-right: auto;
  display: block;
}

.chat-username {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 4px;
}

.chat-input-row {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

#chatInput {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #4f46e5;
  background: #0f172a;
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* feedback page */
 
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b1120; 
  color: var(--text);
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
}

textarea::placeholder {
  color: var(--muted);
}

/* analytics page*/

.analytics-container {
  max-width: 900px;
  margin: 120px auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.analytics-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}

.analytics-card h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 2rem;
}

.analytics-card p {
  font-size: 1.1rem;
}

/* game split page */

.quiz-wrapper {
  display: flex;
  height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
}

.quiz-split {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: white;
  backdrop-filter: blur(8px);
}

.left-side {
  background: rgba(255,255,255,0.06);
  border-right: 3px solid rgba(0,0,0,0.35); /* Dark, visible line */
}

.right-side {
  background: rgba(255,255,255,0.08);
}

.quiz-content h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.quiz-btn {
  margin-top: 18px;
  background: #4f46e5;
  color: white;
  padding: 12px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.quiz-btn:hover {
  transform: translateY(-3px);
  background: #6d6bff;
}

.quiz-hub-container {
  max-width: 1100px;
  margin: 120px auto;
  text-align: center;
}

.quiz-hub-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.quiz-hub-sub {
  color: var(--muted);
  margin-bottom: 40px;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.quiz-card {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  transition: 0.25s ease;
}

.quiz-card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,0.08);
}

.setup-container {
  max-width: 600px;
  margin: 120px auto;
  text-align: center;
}

.setup-card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  margin: 20px 0;
  border-radius: 12px;
}

.setup-card h3 {
  margin-bottom: 10px;
}

.setup-card select {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
}

.setup-actions {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}

.quiz-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.quiz-modal.hidden {
  display: none;
}

.quiz-modal-box {
  width: 400px;
  background: rgba(20, 25, 45, 0.95);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  text-align: center;
}

.modal-section {
  margin: 20px 0;
}

.modal-section select {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

/* QUIZ PLAYER */

.quiz-player-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
  padding: 20px;
}

/* 🔥 MAIN BOX */
.quiz-box {
  width: 100%;
  max-width: 750px;

  padding: 40px 30px;

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);

  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.08);
}

/* TOP AREA */
.quiz-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  margin-bottom: 30px;
}

/* PROGRESS */
#progress {
  font-size: 14px;
  opacity: 0.7;
}

/* TIMER BUTTONS */
.timer-controls {
  display: flex;
  gap: 10px;
}

.time-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;

  background: rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
}

.time-btn.active {
  background: #5b5bff;
}

/* TIMER */
#timer {
  font-size: 22px;
  font-weight: bold;
}

/* QUESTION */
#question {
  font-size: 26px;
  text-align: center;
  margin-bottom: 25px;
}

/* OPTIONS */
.options-container {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  max-width: 600px;
  margin: 0 auto;

  gap: 15px;
}

/* OPTION BUTTONS */
.option-btn {
  width: 100%;
  padding: 15px;

  border-radius: 12px;
  border: none;

  background: rgba(255,255,255,0.05);
  color: white;

  cursor: pointer;
  transition: 0.2s ease;
}

.option-btn:hover {
  background: rgba(100,100,255,0.3);
  transform: scale(1.02);
}

.finish-box {
  text-align: center;
}

.finish-box h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.score-text {
  font-size: 20px;
  margin-bottom: 25px;
  opacity: 0.85;
}

.quiz-preview-img {
  width: 100%;
  max-width: 260px;

  margin: 15px auto;
  display: block;

  opacity: 0.9;
  transition: 0.3s ease;

  pointer-events: none;
}

.quiz-card:hover .quiz-preview-img {
  transform: scale(1.05);
  opacity: 1;
}

.analytics-container {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
}

.analytics-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 1.5rem;
  font-weight: bold;
}

.xp-section {
  margin-top: 40px;
}

.xp-bar {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0;

  box-shadow:
    inset 0 0 8px rgba(255,255,255,0.05);
}

.xp-fill {
  height: 100%;
  width: 0%;

  background: linear-gradient(
    90deg,
    #6a5cff,
    #8f7bff
  );

  border-radius: 999px;

  box-shadow:
    0 0 12px rgba(143,123,255,0.7);

  transition: width 0.5s ease;
}

#levelText{
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 18px;
  color: white;
  text-align: center;

  text-shadow:
    0 0 10px rgba(140,100,255,0.6);

  letter-spacing: 0.5px;
}

#levelText span{
  color: #8f6cff;
}

.leaderboard-box {
  margin-top: 40px;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
}

.leader {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}
/* NETZONE ARENA*/

.arena-container{
  width:90%;
  max-width:1200px;

  margin:auto;

  padding-top:120px;
  padding-bottom:60px;

  text-align:center;
}

/* TITLE */

.arena-title{
  font-size:3rem;
  font-weight:800;

  margin-bottom:10px;

  color:white;

  text-shadow:
    0 0 25px rgba(0,195,255,0.45);
}

.arena-subtext{
  color:#cbd5e1;

  font-size:1.05rem;

  margin-bottom:35px;
}

/* TOP STATS */

.arena-top{
  display:flex;

  justify-content:center;
  flex-wrap:wrap;

  gap:20px;

  margin-bottom:30px;
}

.arena-stat{
  min-width:180px;

  padding:18px 28px;

  border-radius:18px;

  background:
    rgba(255,255,255,0.06);

  border:
    1px solid rgba(255,255,255,0.08);

  backdrop-filter:blur(10px);

  color:white;

  font-size:1.1rem;
  font-weight:700;

  box-shadow:
    0 0 25px rgba(0,0,0,0.25);

  transition:0.25s ease;
}

.arena-stat:hover{
  transform:translateY(-5px);

  background:
    rgba(255,255,255,0.09);
}

.arena-stat span{
  color:#7dd3fc;
}

/* MAIN ARENA */

#arena{
  position:relative;

  width:100%;
  height:650px;

  margin-top:25px;

  overflow:hidden;

  border-radius:28px;

  background:
    linear-gradient(
      135deg,
      rgba(2,6,23,0.95),
      rgba(15,23,42,0.92)
    );

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 0 40px rgba(0,0,0,0.4),
    inset 0 0 40px rgba(0,195,255,0.05);
}

/* GRID EFFECT */

#arena::before{
  content:"";

  position:absolute;
  inset:0;

  background-image:
    linear-gradient(
      rgba(255,255,255,0.03) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,0.03) 1px,
      transparent 1px
    );

  background-size:40px 40px;

  pointer-events:none;
}

/* START BUTTON */

#startArenaBtn{
  position:absolute;

  top:50%;
  left:50%;

  transform:translate(-50%,-50%);

  padding:20px 50px;

  border:none;
  border-radius:18px;

  cursor:pointer;

  font-size:1.2rem;
  font-weight:800;
  letter-spacing:1px;

  color:white;

  background:
    linear-gradient(
      135deg,
      #00c3ff,
      #7d5fff
    );

  box-shadow:
    0 0 30px rgba(125,95,255,0.5);

  transition:0.25s ease;
}

#startArenaBtn:hover{
  transform:
    translate(-50%,-50%)
    scale(1.08);

  box-shadow:
    0 0 40px rgba(125,95,255,0.8);
}

/* TARGETS */

.target{
  position:absolute;

  width:80px;
  height:80px;

  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:2rem;

  cursor:pointer;

  user-select:none;

  animation:
    targetPop 0.18s ease;

  transition:
    transform 0.15s ease;
}

.target:hover{
  transform:scale(1.08);
}

/* GOOD TARGET */

.target.good{
  background:
    radial-gradient(
      circle,
      #38bdf8,
      #2563eb
    );

  box-shadow:
    0 0 25px rgba(56,189,248,0.85);
}

/* BAD TARGET */

.target.bad{
  background:
    radial-gradient(
      circle,
      #ef4444,
      #991b1b
    );

  box-shadow:
    0 0 25px rgba(239,68,68,0.85);
}

/* ANIMATION */

@keyframes targetPop{

  from{
    transform:scale(0);
    opacity:0;
  }

  to{
    transform:scale(1);
    opacity:1;
  }

}

/* NETZONE ARENA BACKGROUND */

body.arena-bg{

  background:
    linear-gradient(
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.7)
    ),

    url("../img/netzonearena.png");

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;

}

/*ARENA CONTROLS*/

.arena-controls{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;

  margin-bottom:25px;
}

.mode-group{
  display:flex;
  gap:14px;
}

/* BUTTONS */

.arena-btn{
  position:relative;

  padding:12px 24px;

  border-radius:14px;
  border:none;

  cursor:pointer;

  font-size:1rem;
  font-weight:700;

  color:white;

  background:
    rgba(255,255,255,0.06);

  backdrop-filter:blur(10px);

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 0 18px rgba(0,0,0,0.25);

  transition:
    0.22s ease;

  overflow:hidden;
}

/* HOVER */

.arena-btn:hover{

  transform:
    translateY(-3px)
    scale(1.03);

  background:
    rgba(255,255,255,0.1);

  box-shadow:
    0 0 22px rgba(0,170,255,0.35);
}

/* ACTIVE */

.arena-btn.active{

  background:
    linear-gradient(
      135deg,
      #00c3ff,
      #7d5fff
    );

  box-shadow:
    0 0 25px rgba(125,95,255,0.65);

  border:
    1px solid rgba(255,255,255,0.18);
}

/* LITTLE GLOW */

.arena-btn.active::before{
  content:"";

  position:absolute;

  inset:0;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.25),
      transparent
    );

  animation:
    arenaGlow 2.5s linear infinite;
}

@keyframes arenaGlow{

  0%{
    transform:
      translateX(-100%);
  }

  100%{
    transform:
      translateX(100%);
  }

}

/*  SAVE POPUP*/

.save-popup{

  position:fixed;

  inset:0;

  display:flex;
  align-items:center;
  justify-content:center;

  background:
    rgba(0,0,0,0.35);

  z-index:9999;

  opacity:0;

  pointer-events:none;

  transition:0.25s ease;
}

.save-popup.show{

  opacity:1;

}

.save-popup-box{

  min-width:320px;

  padding:22px 28px;

  border-radius:18px;

  background:
    linear-gradient(
      135deg,
      rgba(15,23,42,0.98),
      rgba(30,41,59,0.98)
    );

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 0 35px rgba(0,0,0,0.5);

  text-align:center;

  transform:scale(0.9);

  transition:0.25s ease;
}

.save-popup.show .save-popup-box{

  transform:scale(1);

}

.save-popup-box p{

  margin:0;

  color:white;

  font-size:1rem;
  font-weight:600;

}
.hub-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hub-mini-stat-box {
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
}

.hub-stat-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.hub-stat-number {
  font-size: 32px;
  font-weight: bold;
}

.hub-stat-label {
  opacity: 0.8;
}
.explore-text {

  color: white;

  font-size: 18px;

  font-weight: 600;

  opacity: 1;

  text-shadow:
    0 0 10px rgba(0,0,0,0.5);

}
.forgot-password-text {

  text-align: center;

  margin-top: 14px;

}

.forgot-password-text a {

  color: #9f7aea;

  font-size: 14px;

  font-weight: 600;

  text-decoration: none;

  transition: 0.2s ease;

}

.forgot-password-text a:hover {

  color: #c084fc;

  text-shadow: 0 0 8px rgba(192, 132, 252, 0.7);

}
.forgot-password-btn {

  background: none;

  border: none;

  color: #9f7aea;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.2s ease;

}

.forgot-password-btn:hover {

  color: #c084fc;

  text-shadow: 0 0 8px rgba(192, 132, 252, 0.7);

}

.reset-password-modal {

  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.65);

  display: none;

  justify-content: center;

  align-items: center;

  z-index: 9999;

}

.reset-password-modal.show {

  display: flex;

}

.reset-password-box {

  width: 90%;

  max-width: 420px;

  background: #111827;

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 20px;

  padding: 30px;

  text-align: center;

  box-shadow: 0 0 25px rgba(0,0,0,0.45);

}

.reset-password-box h3 {

  margin-bottom: 10px;

}

.reset-password-box p {

  color: #9ca3af;

  margin-bottom: 20px;

}

.reset-password-box input {

  width: 100%;

  padding: 14px;

  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.08);

  background: #030712;

  color: white;

  margin-bottom: 20px;

}

.reset-password-actions {

  display: flex;

  gap: 12px;

  justify-content: center;

}
.site-footer {

  position: fixed;

  bottom: 0;

  left: 0;

  width: 100%;

  padding: 14px 20px;

  text-align: center;

  background:
    rgba(5, 10, 25, 0.75);

  backdrop-filter:
    blur(12px);

  border-top:
    1px solid rgba(255,255,255,0.05);

  z-index: 999;

}

.site-footer p {

  margin: 0;

  font-size: 13px;

  color: #9ca3af;

  letter-spacing: 0.4px;

}
/*  SETTINGS TITLE FIX */

.settings-main-title {

  width: 100%;

  text-align: center;

  margin-bottom: 18px;

}

.settings-main-subtext {

  width: 100%;

  text-align: center;

  margin-bottom: 40px;

}

/* FEEDBACK CENTER */

body[data-page="feedback"] .page-container {

  display: flex;

  flex-direction: column;

  align-items: center;

}

body[data-page="feedback"] .settings-card {

  width: 100%;

  max-width: 760px;

}
#adminClearBtn {
  display: none;

  margin: 12px auto 0 auto;

  padding: 14px 28px;

  border: none;
  border-radius: 18px;

  background: linear-gradient(
    135deg,
    #6c4dff,
    #7f5cff,
    #9b7dff
  );

  color: white;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  box-shadow:
    0 0 12px rgba(108, 77, 255, 0.45),
    0 0 25px rgba(108, 77, 255, 0.25);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;

  position: relative;

  overflow: hidden;
}

#adminClearBtn:hover {

  transform: translateY(-2px);

  box-shadow:
    0 0 18px rgba(108, 77, 255, 0.65),
    0 0 35px rgba(108, 77, 255, 0.4);

}

#adminClearBtn:active {

  transform: scale(0.97);

}

#adminClearBtn::before {

  content: "🛡️ ";

}

.online-users-box {

  position: absolute;

 left: 0px;
 top: 65px; 

  width: 220px;

  background: rgba(20,20,40,0.75);

  border-radius: 18px;

  padding: 15px;

  color: white;

  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.1);

}

.online-users-box h3 {

  margin-bottom: 10px;

  font-size: 18px;

}

.online-users-box ul {

  list-style: none;

  padding: 0;

  margin: 0;

}

.online-users-box li {

  margin-bottom: 8px;

  padding: 6px 10px;

  background: rgba(255,255,255,0.08);

  border-radius: 10px;

}

@media (max-width: 1400px) {

  .typing-container {

    transform: scale(0.88);

    transform-origin: top center;

    width: 110%;

  }

}