﻿@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@200;400;600&family=Playfair+Display:ital@1&display=swap");

:root {
  --bg-color: #050505;
  --gold: #d4b130;
  --text-main: #f0f0f0;
  --text-muted: #666666;
  --border: rgba(255, 255, 255, 0.08);
  --header-h: 4.5rem;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulance type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

body.hero-page,
body.auth-page {
  height: 100vh;
  overflow: hidden;
}

/* --- Header --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: white;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.brand:hover,
.brand:visited {
  opacity: 0.8;
  color: white;
}

.brand img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 2.5px rgba(255, 255, 255, 0.4));
}

img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(10, 10, 10, 0.5);
}

.dot {
  width: 4px;
  height: 4px;
  background-color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold);
  animation: pulse 4s infinite;
}

/* --- Hero Section --- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo-large {
  width: 140px;
  height: 140px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.3))
    drop-shadow(0 0 30px rgba(212, 177, 48, 0.15));
  animation:
    elegantEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    subtleFloat 8s ease-in-out 1.2s infinite;
  opacity: 0;
}

h1 {
  user-select: none;
  font-size: 3.5rem;
  font-weight: 200;
  line-height: 1;
  color: white;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 6px;
  animation: elegantEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  opacity: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  letter-spacing: 0.05em;
}

p.subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInSubtle 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* --- Buttons --- */
.actions {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: elegantEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.btn {
  padding: 16px 32px;
  border-radius: 2px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
}

.btn-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 15px rgba(212, 177, 48, 0.1);
}

/* --- Footer --- */
footer {
  padding: 1rem 1rem 1.5rem 1rem;
  text-align: center;
  font-size: 0.6rem;
  color: #333;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- Animation --- */
@keyframes elegantEntry {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInSubtle {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 0.8;
    transform: translateY(0) scale(1);
  }
}

@keyframes subtleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-5px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-8px) rotate(0deg);
  }
  75% {
    transform: translateY(-5px) rotate(-0.5deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  header {
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- Auth Pages --- */
@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes messageSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
  }
}

.auth-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  padding-top: 80px;
  padding-bottom: 0.25rem;
}

.auth-box {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border);
  padding: 24px 32px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
  animation: authFadeIn 0.6s ease-out;
}

.auth-box h1 {
  font-size: 1.4rem;
  color: var(--gold);
  margin: 0 0 20px 0;
  letter-spacing: 3px;
  text-align: center;
  opacity: 1;
  font-weight: 300;
  text-transform: uppercase;
  animation: authFadeIn 0.8s ease-out 0.1s both;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form .form-group {
  animation: formSlideIn 0.5s ease-out both;
}

.auth-form .form-group:nth-child(1) {
  animation-delay: 0.15s;
}

.auth-form .form-group:nth-child(2) {
  animation-delay: 0.25s;
}

.auth-form .form-group:nth-child(3) {
  animation-delay: 0.35s;
}

.auth-form .form-group:nth-child(4) {
  animation-delay: 0.45s;
}

.auth-form .form-group-inline {
  animation: formSlideIn 0.5s ease-out 0.55s both;
}

.auth-form .btn-primary {
  animation: formSlideIn 0.5s ease-out 0.65s both;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  padding: 11px 14px;
  color: var(--text-main);
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus {
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(212, 177, 48, 0.1);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: -3px;
}

.form-group-inline {
  display: flex;
  align-items: center;
  margin-top: -8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  user-select: none;
  position: relative;
}

.checkbox-label:hover {
  color: var(--text-main);
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:hover {
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.6);
}

.checkbox-label input[type="checkbox"]:checked {
  background: rgba(212, 177, 48, 0.15);
  border-color: var(--gold);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.btn-primary {
  background: var(--gold);
  color: #050505;
  border: none;
  padding: 12px 28px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 6px;
  font-family: "Outfit", sans-serif;
}

.btn-primary:hover:not(:disabled) {
  background: var(--text-main);
  color: #050505;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 177, 48, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--text-muted);
}

.error-message {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-left: 3px solid rgba(220, 38, 38, 0.8);
  padding: 14px 16px;
  font-size: 0.8rem;
  color: #ff6b6b;
  letter-spacing: 0.5px;
  line-height: 1.5;
  animation: messageSlideDown 0.4s ease-out;
}

.error-message a {
  color: var(--gold);
  text-decoration: underline;
  font-weight: 500;
}

.error-message a:hover {
  color: var(--text-main);
}

.success-message {
  background: rgba(212, 177, 48, 0.1);
  border: 1px solid rgba(212, 177, 48, 0.3);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1.5;
  animation: messageSlideDown 0.4s ease-out;
}

.auth-links {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  animation: formSlideIn 0.5s ease-out 0.75s both;
}

.auth-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: var(--gold);
}

/* -- Dashboard -- */
.dashboard-container {
  padding: 120px 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dashboard-card {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.dashboard-card:hover {
  border-color: #2a2a2a;
}

.dashboard-card h2 {
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-card p {
  margin: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dashboard-card p strong {
  color: var(--text);
}

/* ---------- User Nav Dropdown ---------- */
.user-nav {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 0.3rem 0.65rem 0.3rem 0.3rem;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
  font-family: "Outfit", sans-serif;
}

.nav-avatar-btn:hover,
.nav-avatar-btn[aria-expanded="true"] {
  border-color: rgba(212, 177, 48, 0.35);
  background: rgba(212, 177, 48, 0.04);
}

.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid;
  background: rgba(212, 177, 48, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1;
}

.nav-username {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.2px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-avatar-btn[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(10, 10, 10, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 0.375rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 200;
  animation: dropIn 0.14s ease;
}

.nav-dropdown.open {
  display: block;
}

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

.nav-dropdown-header {
  padding: 0.5rem 0.625rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-dropdown-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.nav-dropdown-role {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.25rem 0;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: "Outfit", sans-serif;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
  text-align: left;
  letter-spacing: 0.1px;
}

.nav-dropdown-item svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.nav-dropdown-item:hover svg {
  opacity: 0.85;
}

.nav-dropdown-logout {
  color: rgba(248, 113, 113, 0.6);
}

.nav-dropdown-logout:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #f87171;
}

.nav-dropdown-logout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-page {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 1rem 1rem;
}

.chat-container {
  width: 100%;
  max-width: 700px;
  height: 400px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.6);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.chat-header h2 {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.anon-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  user-select: none;
}

.anon-toggle input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all 0.3s ease;
}

.anon-toggle input[type="checkbox"]:checked {
  background: rgba(212, 177, 48, 0.15);
  border-color: var(--gold);
}

.anon-toggle input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(212, 177, 48, 0.3);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 177, 48, 0.5);
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: fadeInUp 0.3s ease-out;
}

.chat-announcement {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  margin: 0.25rem 0;
  position: relative;
  animation: fadeInUp 0.3s ease-out;
}

.chat-announcement::before,
.chat-announcement::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 90px);
  height: 1px;
  background: var(--border);
}

.chat-announcement::before {
  left: 0;
}
.chat-announcement::after {
  right: 0;
}

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

@keyframes highlightFlash {
  0% {
    background: rgba(212, 177, 48, 0);
  }
  20% {
    background: rgba(212, 177, 48, 0.12);
  }
  100% {
    background: rgba(212, 177, 48, 0);
  }
}

.message-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.message-author {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.message-author.effect-glow {
  text-shadow:
    0 0 10px currentColor,
    0 0 20px currentColor;
}

.message-author.effect-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.message-author.effect-gradient {
  background: linear-gradient(
    90deg,
    var(--user-color, currentColor) 0%,
    var(--user-color-secondary, currentColor) 50%,
    var(--user-color, currentColor) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s linear infinite;
}

.anonymous-badge {
  font-size: 0.65rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border: 1px solid rgba(136, 136, 136, 0.3);
  background: rgba(136, 136, 136, 0.1);
  margin-left: 0.5rem;
}

.report-count {
  font-size: 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border: 1px solid rgba(212, 177, 48, 0.3);
  background: rgba(212, 177, 48, 0.1);
  font-weight: 600;
}

.message-menu {
  position: relative;
  margin-left: auto;
}

.chat-message.message-highlight {
  animation: highlightFlash 2s ease;
}

.message-menu-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 8px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: -2px;
}

.chat-message:hover .message-menu-btn {
  opacity: 1;
}

.message-menu-btn:hover {
  color: var(--gold);
}

.message-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--border);
  min-width: 150px;
  display: none;
  flex-direction: column;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.message-menu-dropdown.menu-up {
  top: auto;
  bottom: calc(100% + 5px);
}

.message-menu-dropdown.show {
  display: flex;
}

.message-menu-dropdown button {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Outfit", sans-serif;
  border-bottom: 1px solid var(--border);
}

.message-menu-dropdown button:last-child {
  border-bottom: none;
}

.message-menu-dropdown button:hover {
  background: rgba(212, 177, 48, 0.1);
  color: var(--gold);
}

.message-menu-dropdown button.menu-delete {
  color: #ff6b6b;
}

.message-menu-dropdown button.menu-delete:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #ff6b6b;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #0a0a0a;
  border: 1px solid var(--gold);
  border-radius: 8px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.2s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--gold);
}

.modal-body {
  padding: 2rem 1.5rem;
}

.modal-body p {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.modal-btn-cancel {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.modal-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.modal-btn-confirm {
  background: var(--gold);
  color: #0a0a0a;
}

.modal-btn-confirm:hover {
  background: #e6c33d;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(212, 177, 48, 0.3);
}

.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
  z-index: 2000;
  transition: bottom 0.3s ease;
  min-width: 300px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.toast.show {
  bottom: 2rem;
}

.toast-success {
  border-color: rgba(46, 213, 115, 0.5);
  background: rgba(15, 15, 15, 0.95);
  box-shadow: 0 4px 20px rgba(46, 213, 115, 0.2);
}

.toast-error {
  border-color: rgba(220, 38, 38, 0.5);
  background: rgba(15, 15, 15, 0.95);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
}

.toast-info {
  border-color: rgba(212, 177, 48, 0.5);
  background: rgba(15, 15, 15, 0.95);
  box-shadow: 0 4px 20px rgba(212, 177, 48, 0.2);
}

.message-content {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.4;
  word-wrap: break-word;
}

.message-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.chat-input-form {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
}

.chat-input-form input {
  flex: 1;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}

.chat-input-form input:focus {
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.6);
}

.chat-input-form .captcha-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  min-height: 70px;
  transition: all 0.3s ease;
  position: relative;
}

.captcha-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  min-height: 70px;
  position: relative;
}

.captcha-loading-text {
  position: absolute;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.captcha-wrapper .cf-turnstile,
.chat-input-form .captcha-container .cf-turnstile {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 2;
}

.captcha-wrapper .cf-turnstile:not(:empty),
.chat-input-form .captcha-container .cf-turnstile:not(:empty) {
  opacity: 1;
}

.chat-input-form button {
  background: var(--gold);
  color: #050505;
  border: none;
  padding: 10px 24px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Outfit", sans-serif;
}

.chat-input-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-input-form button:hover:not(:disabled) {
  background: var(--text-main);
}

@media (max-width: 768px) {
  .auth-container {
    padding: 0.5rem;
    padding-top: 75px;
    padding-bottom: 0.25rem;
  }

  .auth-box {
    padding: 20px 16px;
  }

  .auth-box h1 {
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
  }

  footer {
    padding: 0.75rem 0.75rem 1.25rem 0.75rem;
  }

  .dashboard-container {
    padding: 90px 1rem 1.5rem;
  }

  .dashboard-header h1 {
    font-size: 1.4rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    padding: 1.25rem;
  }

  .nav-username {
    display: none;
  }

  .chat-page {
    padding: 120px 0.5rem 0.5rem;
    align-items: flex-start;
  }

  .chat-container {
    height: calc(100vh - 140px);
  }

  .chat-header {
    padding: 0.75rem 1rem;
  }

  .chat-header h2 {
    font-size: 0.9rem;
  }
}

/* ============================================================
   ADMIN / STAFF PANEL
   ============================================================ */

.admin-page {
  flex: 1;
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-h);
}

/* ---------- Sidebar ---------- */
.admin-sidebar {
  width: 210px;
  min-width: 210px;
  background: rgba(6, 6, 6, 0.99);
  border-right: 1px solid rgba(212, 177, 48, 0.1);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.375rem 1.125rem 1.125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-logo-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-nav {
  flex: 1;
  padding: 0.875rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.38);
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.15s ease;
  text-align: left;
  letter-spacing: 0.2px;
}

.sidebar-nav-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.sidebar-nav-btn span:not(.nav-badge) {
  flex: 1;
}

.sidebar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
}

.sidebar-nav-btn:hover svg {
  opacity: 0.85;
}

.sidebar-nav-btn.active {
  background: rgba(212, 177, 48, 0.09);
  border-color: rgba(212, 177, 48, 0.18);
  color: var(--gold);
}

.sidebar-nav-btn.active svg {
  opacity: 1;
}

.nav-badge {
  background: #dc2626;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 16px;
  text-align: center;
  display: none;
}

.nav-badge.visible {
  display: block;
}

.sidebar-footer {
  padding: 0.875rem 0.625rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-user {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.sidebar-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(212, 177, 48, 0.1);
  border: 1px solid rgba(212, 177, 48, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  text-transform: uppercase;
}

.sidebar-user-info {
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btn-sidebar-refresh {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  padding: 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-sidebar-refresh:hover {
  border-color: rgba(212, 177, 48, 0.35);
  color: var(--gold);
}

/* ---------- Main Content ---------- */
.admin-main {
  flex: 1;
  margin-left: 210px;
  padding: 2.5rem 2.5rem 2rem;
  min-width: 0;
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: block;
}

.tab-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-header h1 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: 0.3px;
  margin-bottom: 0.25rem;
}

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

/* ---------- Stats Row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-tile {
  background: rgba(12, 12, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  transition: border-color 0.2s ease;
}

.stat-tile:hover {
  border-color: rgba(212, 177, 48, 0.18);
}

.stat-tile-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(212, 177, 48, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-tile-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  opacity: 0.65;
}

.stat-tile-alert .stat-tile-icon {
  background: rgba(220, 38, 38, 0.07);
}

.stat-tile-alert .stat-tile-icon svg {
  stroke: #f87171;
  opacity: 0.75;
}

.stat-tile-value {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.stat-tile-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Panel Section ---------- */
.panel-section {
  background: rgba(10, 10, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.375rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.section-header h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.45rem 0.75rem;
  color: var(--text-main);
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  border-radius: 7px;
  transition: border-color 0.2s ease;
  outline: none;
  width: 190px;
}

.search-input:focus {
  border-color: rgba(212, 177, 48, 0.35);
  background: rgba(0, 0, 0, 0.65);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.18);
}

/* ---------- Dismiss All ---------- */
.btn-dismiss-all {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.35);
  padding: 0.45rem 0.75rem;
  border-radius: 7px;
  font-size: 0.72rem;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-dismiss-all:hover {
  border-color: rgba(234, 179, 8, 0.35);
  color: #facc15;
}

/* ---------- Reports List ---------- */
.reports-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.loading-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(212, 177, 48, 0.12);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 0.875rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-state p,
.error-state p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.empty-icon {
  width: 52px;
  height: 52px;
  background: rgba(212, 177, 48, 0.06);
  border: 1px solid rgba(212, 177, 48, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
}

.empty-icon svg {
  color: var(--gold);
}

.empty-state h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

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

/* ---------- Report Card ---------- */
.report-card {
  background: rgba(14, 14, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 8px 8px 0;
  padding: 0.8rem 0.9rem;
  transition:
    border-left-color 0.15s ease,
    border-color 0.15s ease;
}

.report-card:hover {
  border-left-color: rgba(212, 177, 48, 0.45);
  border-color: rgba(255, 255, 255, 0.09);
}

.report-card.flagged {
  border-left-color: #ef4444;
  background: rgba(220, 38, 38, 0.04);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  gap: 0.75rem;
}

.report-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.report-author {
  font-weight: 600;
  font-size: 0.83rem;
}

.report-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---------- Badges ---------- */
.badge {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-anon {
  background: rgba(136, 136, 136, 0.1);
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(136, 136, 136, 0.2);
}

.badge-flagged {
  background: rgba(220, 38, 38, 0.12);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.badge-reports {
  background: rgba(212, 177, 48, 0.1);
  color: var(--gold);
  border: 1px solid rgba(212, 177, 48, 0.25);
  font-size: 0.65rem;
  padding: 2px 7px;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* ---------- Action Buttons ---------- */
.btn-jump,
.btn-dismiss,
.btn-delete {
  padding: 0.325rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.25);
}

.btn-jump svg,
.btn-dismiss svg,
.btn-delete svg {
  width: 14px;
  height: 14px;
}

.btn-jump:hover {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}

.btn-dismiss:hover {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

.btn-delete:hover {
  color: #f87171;
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.25);
}

.report-content {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  word-break: break-word;
}

/* ---------- Report Reasons ---------- */
.report-reasons {
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.reasons-header {
  padding: 0.4rem 0.7rem;
  background: rgba(234, 179, 8, 0.05);
  border-bottom: 1px solid rgba(234, 179, 8, 0.12);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(234, 179, 8, 0.6);
}

.reasons-list {
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.reason-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.45rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  font-size: 0.75rem;
}

.reason-user {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.reason-badge {
  padding: 1px 5px;
  background: rgba(234, 179, 8, 0.09);
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 3px;
  color: rgba(234, 179, 8, 0.85);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ---------- Users List ---------- */
.users-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.7rem 0.875rem;
  background: rgba(14, 14, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.user-row:hover {
  border-color: rgba(212, 177, 48, 0.15);
}

.user-row.suspended {
  opacity: 0.55;
  border-left: 2px solid rgba(220, 38, 38, 0.4);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(212, 177, 48, 0.08);
  border: 1px solid rgba(212, 177, 48, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  text-transform: uppercase;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.user-status-badge,
.user-role-badge {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.user-status-active {
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.user-status-suspended {
  background: rgba(220, 38, 38, 0.08);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.22);
}

.user-role-operator {
  background: rgba(212, 177, 48, 0.09);
  color: var(--gold);
  border: 1px solid rgba(212, 177, 48, 0.22);
}

.user-role-moderator {
  background: rgba(139, 92, 246, 0.09);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.22);
}

.btn-user-action {
  padding: 0.28rem 0.65rem;
  border-radius: 5px;
  font-size: 0.68rem;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid;
}

.btn-suspend {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.28);
  color: #f87171;
}

.btn-suspend:hover {
  background: rgba(220, 38, 38, 0.15);
  border-color: #f87171;
}

.btn-activate {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.28);
  color: #4ade80;
}

.btn-activate:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: #4ade80;
}

/* ---------- Pagination ---------- */
.users-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.users-pagination-info {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.users-pagination-btns {
  display: flex;
  gap: 0.35rem;
}

.btn-page {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-page:hover:not(:disabled) {
  border-color: rgba(212, 177, 48, 0.3);
  color: var(--gold);
}

.btn-page:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .admin-sidebar {
    width: 180px;
    min-width: 180px;
  }
  .admin-main {
    margin-left: 180px;
    padding: 2rem 1.75rem;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .admin-sidebar {
    display: none;
  }
  .admin-main {
    margin-left: 0;
    padding: calc(var(--header-h) + 1.25rem) 1rem 1.5rem;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .tab-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }
  .report-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .report-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
  .section-actions {
    width: 100%;
  }
  .search-input {
    flex: 1;
    width: auto;
  }
}

/* Profile Page Styles */
.profile-page {
  min-height: calc(100vh - 120px);
  padding: 2rem 1rem;
}

.profile-container {
  max-width: 1000px;
  margin: 0 auto;
}

.profile-header {
  margin-bottom: 2rem;
  text-align: center;
}

.profile-header h1 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.profile-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.profile-grid {
  display: grid;
  gap: 1.5rem;
}

.profile-section {
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.info-grid {
  display: grid;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.info-value {
  color: var(--text-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.credits-amount {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
}

.badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-verified {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-unverified {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.badge-tier {
  background: linear-gradient(
    135deg,
    rgba(212, 177, 48, 0.25) 0%,
    rgba(212, 177, 48, 0.15) 100%
  );
  color: var(--gold);
  border: 1px solid rgba(212, 177, 48, 0.5);
}

.tier-expiry {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-input,
.form-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(212, 177, 48, 0.1);
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-input {
  width: 60px;
  height: 45px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-input:hover {
  border-color: var(--gold);
}

.hex-input {
  flex: 1;
  max-width: 150px;
  text-transform: uppercase;
}

.color-preview {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.form-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.preview-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.name-preview {
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.name-preview.effect-glow {
  text-shadow:
    0 0 10px currentColor,
    0 0 20px currentColor;
}

.name-preview.effect-pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.name-preview.effect-gradient {
  background: linear-gradient(
    90deg,
    var(--user-color, currentColor) 0%,
    var(--user-color-secondary, currentColor) 50%,
    var(--user-color, currentColor) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(212, 177, 48, 0.3) 0%,
    rgba(212, 177, 48, 0.15) 100%
  );
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Outfit", sans-serif;
  align-self: flex-start;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(212, 177, 48, 0.4) 0%,
    rgba(212, 177, 48, 0.2) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 177, 48, 0.3);
}

@media (max-width: 768px) {
  .profile-page {
    padding: 1.5rem 1rem;
  }

  .profile-header h1 {
    font-size: 1.5rem;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .info-value {
    justify-content: flex-start;
  }

  .color-picker-wrapper {
    flex-wrap: wrap;
  }

  .hex-input {
    max-width: none;
  }

  .form-preview {
    flex-direction: column;
    align-items: flex-start;
  }
}
