:root {
  --bg-dark: #05060a;
  --bg-overlay: rgba(0, 0, 0, 0.8);
  --primary: #00eaff;
  --primary-soft: rgba(0, 234, 255, 0.4);
  --text-main: #f5f5f5;
  --text-muted: #a6b0c3;
  --danger: #ff4d4d;
  --success: #4dff88;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.9);
  --transition-fast: 0.2s ease-out;
  --transition-med: 0.35s ease-out;
}

/* RESET / GLOBAL */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--text-main);
  background-color: #000;
  position: relative;
  overflow-x: hidden;
}

/* GLOBAL BACKGROUND */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at 10% 0%,
      rgba(0, 234, 255, 0.16),
      transparent 55%
    ),
    radial-gradient(
      circle at 90% 100%,
      rgba(0, 234, 255, 0.16),
      transparent 55%
    ),
    url("../images/sitebackground.png") center/cover no-repeat fixed;
  z-index: -2;
  filter: brightness(0.55);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.94)
  );
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  padding-top: 84px; /* sticky navbar height */
}

/* ========================================================= */
/* NAVBAR */
/* ========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 15, 0.96),
    rgba(5, 8, 15, 0.78)
  );
  border-bottom: 1px solid rgba(0, 234, 255, 0.25);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.95);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.nav-left {
  flex: 0 0 auto;
}

.nav-center {
  flex: 1 1 auto;
  justify-content: center;
}

.nav-right {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  background: radial-gradient(circle at 0% 0%, #ffffff, #00eaff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00eaff, #7affff);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 100%;
}

/* Dropdown (if used) */

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-icon {
  font-size: 10px;
  transition: transform var(--transition-fast);
}

.dropdown.open .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 230px;
  background: radial-gradient(
    circle at 0 0,
    rgba(0, 234, 255, 0.24),
    rgba(6, 10, 20, 0.98)
  );
  border-radius: 16px;
  padding: 10px 10px 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 234, 255, 0.35);
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 40;
}

.dropdown-menu a {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-main);
  transition: background var(--transition-fast),
    transform var(--transition-fast);
}

.dropdown-menu a:hover {
  background: rgba(0, 234, 255, 0.16);
  transform: translateX(2px);
}

.dropdown.open .dropdown-menu {
  display: flex;
}

.online-counts {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border-radius: var(--radius-xl);
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--text-main);
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-outline {
  border-color: rgba(0, 234, 255, 0.7);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(0, 234, 255, 0.12);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #00eaff, #72ffff);
  color: #05060a;
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(0, 234, 255, 0.9);
  transform: translateY(-1px) scale(1.01);
}

/* ========================================================= */
/* NAVBAR NOTIFICATIONS (BELL + DROPDOWN) */
/* ========================================================= */

.nav-notifications {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 10px;
}

/* Glowing bell button */
.nav-icon-link {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 234, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 30% 0%,
    rgba(255, 255, 255, 0.28),
    #050815
  );
  color: #e5f2ff;
  box-shadow: 0 0 16px rgba(0, 234, 255, 0.45);
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out,
    border-color 0.2s ease-out, background 0.2s ease-out, color 0.2s ease-out;
}

.nav-icon-link i {
  font-size: 1rem;
}

.nav-icon-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 234, 255, 0.9);
  border-color: rgba(0, 234, 255, 0.95);
  background: radial-gradient(
    circle at 30% 0%,
    rgba(255, 255, 255, 0.4),
    #020617
  );
  color: #ffffff;
}

/* Red count badge */
.nav-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.85);
}

/* Dropdown under bell */
.notifications-dropdown {
  position: absolute;
  right: 0;
  top: 115%;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  border-radius: 18px;
  padding: 8px 0 10px;
  background: radial-gradient(
    circle at 0 0,
    rgba(0, 234, 255, 0.22),
    rgba(3, 6, 12, 0.98)
  );
  border: 1px solid rgba(0, 234, 255, 0.45);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(14px);
  display: none;
  z-index: 60;
}

.notifications-dropdown.open {
  display: block;
}

/* Header row inside dropdown */
.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.notifications-header span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5f2ff;
}

.notifications-mark-all {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
}

.notifications-mark-all:hover {
  text-decoration: underline;
}

/* Notification items in dropdown */
.notifications-list {
  padding: 4px 0 0;
}

.notifications-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notification-item {
  padding: 6px 12px;
}

.notification-item + .notification-item {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.notifications-empty {
  padding: 8px 14px;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Avatar + body inside dropdown */
.notifications-dropdown .notification-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 234, 255, 0.18);
  background: rgba(3, 6, 18, 0.98);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  padding-inline: 9px;
}

.notifications-dropdown .notification-item.is-unread {
  background: radial-gradient(
    circle at 0 0,
    rgba(0, 234, 255, 0.24),
    rgba(3, 6, 18, 0.98)
  );
}

.notification-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 234, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notification-avatar-initials {
  font-size: 0.8rem;
  font-weight: 600;
}

.notifications-dropdown .notification-body {
  flex: 1;
  min-width: 0;
}

.notifications-dropdown .notification-text {
  font-size: 0.85rem;
}

.notifications-dropdown .notification-meta {
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ========================================================= */
/* HERO (front page) */
/* ========================================================= */

.hero {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 80px;
  position: relative;
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-title {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  background: radial-gradient(circle at 0% 0%, #ffffff, #00eaff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(0, 234, 255, 0.3);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.hero-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 460px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-meta-pill {
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 234, 255, 0.35);
  background: radial-gradient(
    circle at 0 0,
    rgba(0, 234, 255, 0.16),
    rgba(8, 10, 18, 0.96)
  );
}

/* AR/VR GRID */

.hero-ar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.ar-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 14px;
  background: radial-gradient(
      circle at 100% 0%,
      rgba(0, 234, 255, 0.35),
      transparent 55%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(135, 236, 255, 0.2),
      transparent 55%
    ),
    linear-gradient(135deg, rgba(5, 10, 20, 0.98), rgba(3, 5, 10, 0.98));
  border: 1px solid rgba(0, 234, 255, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.98);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(700px) rotateX(0) rotateY(0);
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med);
  cursor: pointer;
}

/* placeholder inner for your own content later */
.ar-card-inner-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px dashed rgba(0, 234, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
}

.ar-card:hover {
  box-shadow: 0 26px 70px rgba(0, 234, 255, 0.45);
  border-color: rgba(0, 234, 255, 0.8);
}

/* PARTICLES */

.particle {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: screen;
}

.p1 {
  width: 220px;
  height: 220px;
  background: rgba(0, 234, 255, 0.3);
  top: -60px;
  right: 5%;
  animation: float1 14s ease-in-out infinite alternate;
}

.p2 {
  width: 140px;
  height: 140px;
  background: rgba(0, 234, 255, 0.18);
  bottom: 0;
  left: 10%;
  animation: float2 18s ease-in-out infinite alternate;
}

.p3 {
  width: 260px;
  height: 260px;
  background: rgba(0, 234, 255, 0.14);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
}

@keyframes float1 {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(10px, 18px, 0);
  }
}

@keyframes float2 {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-16px, -20px, 0);
  }
}

/* ========================================================= */
/* GENERIC SECTIONS / SUBSCRIPTIONS / FOOTER */
/* ========================================================= */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.section-header {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.section-title {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 420px;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.info-card {
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  background: radial-gradient(
    circle at 0 0,
    rgba(0, 234, 255, 0.16),
    rgba(3, 6, 12, 0.98)
  );
  border: 1px solid rgba(0, 234, 255, 0.35);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  color: var(--text-muted);
}

.info-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text-main);
}

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 6px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* Subscriptions cards */

.sub-card {
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  background: linear-gradient(
    135deg,
    rgba(5, 10, 18, 0.98),
    rgba(6, 14, 26, 0.98)
  );
  border: 1px solid rgba(0, 234, 255, 0.4);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-name {
  font-size: 16px;
  font-weight: 600;
}

.sub-price {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

.sub-period {
  font-size: 12px;
  color: var(--text-muted);
}

.sub-benefits {
  list-style: none;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.sub-benefits li {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.sub-benefits li i {
  font-size: 12px;
  color: var(--primary);
  margin-top: 3px;
}

.sub-cta {
  margin-top: 10px;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(0, 234, 255, 0.2);
  background: rgba(3, 6, 12, 0.96);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-socials a {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0, 234, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
  transition: background var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.footer-socials a:hover {
  background: rgba(0, 234, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0, 234, 255, 0.8);
  border-color: rgba(0, 234, 255, 0.8);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================================= */
/* AUTH PAGES (signup / login) */
/* ========================================================= */

.auth-page {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
}

.auth-card {
  max-width: 720px;
  width: 100%;
  border-radius: 20px;
  background: radial-gradient(
      circle at 0 0,
      rgba(0, 234, 255, 0.2),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(5, 10, 18, 0.98), rgba(2, 5, 10, 0.98));
  border: 1px solid rgba(0, 234, 255, 0.55);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow-soft);
}

.auth-title {
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 14px;
  margin-top: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  border-radius: 10px;
  border: 1px solid rgba(0, 234, 255, 0.35);
  background: rgba(4, 7, 15, 0.96);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(0, 234, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 234, 255, 0.55);
  background: rgba(5, 10, 18, 0.98);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
}

.helper-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.checkbox-wrapper {
  position: relative;
  display: inline-block;
}

.checkbox-wrapper input {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
}

/* Verification row on signup */

.verification-row {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(0, 234, 255, 0.5);
  padding: 10px 10px;
  background: rgba(3, 6, 12, 0.9);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verification-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.verification-pill {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 234, 255, 0.55);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}

.discord-pill {
  background: rgba(88, 101, 242, 0.16);
  border-color: rgba(113, 137, 255, 0.8);
}

/* Avatar helpers */

.profile-avatar-inner {
  overflow: hidden;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Settings avatar preview */

.settings-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(0, 234, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.6);
  overflow: hidden;
}

.settings-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.settings-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 0%, #ffffff, #00eaff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #05060a;
}

/* SETTINGS PAGE */

.settings-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1.6fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.settings-nav {
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  background: rgba(6, 10, 18, 0.98);
  border: 1px solid rgba(0, 234, 255, 0.3);
}

.settings-nav ul {
  list-style: none;
}

.settings-nav li {
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 4px;
}

.settings-nav li.active {
  background: rgba(0, 234, 255, 0.18);
  color: var(--primary);
}

.settings-panel {
  border-radius: var(--radius-lg);
  padding: 16px 14px 18px;
  background: rgba(5, 10, 18, 0.98);
  border: 1px solid rgba(0, 234, 255, 0.35);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.settings-panel h2 {
  font-size: 17px;
  margin-bottom: 4px;
}

.settings-panel p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.settings-status-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.settings-status-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-main);
}

.settings-status-option input[type="radio"] {
  accent-color: var(--primary);
}

/* simple toggle */

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.toggle-label {
  font-size: 13px;
}

.toggle-switch {
  position: relative;
  width: 38px;
  height: 20px;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  left: 2px;
  top: 2px;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(16px);
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.8);
}

/* ========================================================= */
/* FEED STYLES */
/* ========================================================= */

.feed-layout {
  max-width: 1200px;
  margin: 120px auto 40px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: flex-start;
  padding: 0 16px;
}

.feed-column {
  min-width: 0;
}

.feed-left,
.feed-right {
  position: sticky;
  top: 96px;
}

/* cards */

.feed-card,
.feed-sidebar-card {
  border-radius: 18px;
  padding: 16px 18px;
  background: radial-gradient(
    circle at top left,
    rgba(0, 234, 255, 0.16),
    rgba(2, 8, 23, 0.96)
  );
  border: 1px solid rgba(0, 234, 255, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
}

/* left sidebar mini profile */

.feed-user-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(0, 234, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: 12px;
  background: radial-gradient(
    circle,
    rgba(0, 234, 255, 0.25),
    rgba(2, 8, 23, 1)
  );
}

.feed-user-avatar span {
  font-size: 1.1rem;
}

.feed-user-info {
  margin-bottom: 8px;
}

.feed-user-name {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feed-user-email {
  font-size: 0.8rem;
  opacity: 0.8;
}

.feed-user-meta {
  font-size: 0.75rem;
  opacity: 0.7;
}

.feed-sidebar-actions,
.feed-sidebar-card {
  margin-top: 10px;
}

.feed-sidebar-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.feed-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.feed-sidebar-link i {
  width: 18px;
}

.feed-sidebar-link:hover {
  opacity: 1;
  transform: translateX(2px);
}

.feed-sidebar-text {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* composer */

.feed-composer {
  margin-bottom: 18px;
}

.feed-composer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.feed-composer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 234, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.feed-composer-text p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.feed-composer-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 234, 255, 0.22);
  background: rgba(2, 8, 23, 0.9);
  padding: 10px 12px;
  resize: vertical;
  min-height: 70px;
  color: #f9fafb;
  font-size: 0.9rem;
}

.feed-composer-textarea::placeholder {
  opacity: 0.6;
}

.feed-composer-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-composer-actions {
  display: flex;
  gap: 8px;
}

.feed-chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  padding: 4px 10px;
  font-size: 0.78rem;
  opacity: 0.6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}

/* posts */

.feed-post {
  margin-bottom: 14px;
}

.feed-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.feed-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 234, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: radial-gradient(
    circle,
    rgba(0, 234, 255, 0.25),
    rgba(2, 8, 23, 1)
  );
}

.feed-post-author {
  font-size: 0.9rem;
  font-weight: 600;
}

.feed-post-meta {
  font-size: 0.75rem;
  opacity: 0.7;
}

.feed-post-content p {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.feed-post-footer {
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 6px;
  margin-top: 4px;
}

.feed-post-action {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}

/* responsive layout */

@media (max-width: 1024px) {
  .feed-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .feed-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .feed-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-left {
    display: none;
  }
  .feed-card,
  .feed-sidebar-card {
    margin-bottom: 14px;
  }
}

/* reactions + comments extras */

.feed-post-inline-form {
  display: inline-block;
}

.feed-post-action-link {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.feed-post-action-link:hover {
  opacity: 1;
}

.feed-post-action-link.danger {
  color: #f97373;
}

.feed-post-emoji-row {
  margin-top: 4px;
  font-size: 0.78rem;
  opacity: 0.85;
  display: flex;
  gap: 6px;
  align-items: center;
}

.feed-post-emoji-list {
  font-size: 0.9rem;
}

.feed-emoji-select {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.98);
  color: #f9fafb;
  font-size: 0.78rem;
  padding: 2px 6px;
  margin-right: 4px;
}

/* comments */

.feed-comments {
  margin-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 6px;
}

.feed-comment {
  margin-bottom: 6px;
}

.feed-comment-author {
  font-size: 0.8rem;
  font-weight: 600;
}

.feed-comment-meta {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.75rem;
}

.feed-comment-text {
  font-size: 0.85rem;
  opacity: 0.9;
}

.feed-comment-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
  color: #f9fafb;
  font-size: 0.8rem;
  padding: 6px 8px;
  resize: vertical;
}

.feed-post-author-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.feed-post-author-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* Feed filter bar */

.feed-filter-bar {
  display: flex;
  justify-content: flex-start;
  padding: 10px 16px;
  margin-bottom: 10px;
}

.feed-filter-buttons {
  display: inline-flex;
  gap: 8px;
}

.feed-filter-btn {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: #e5f2ff;
  background: rgba(8, 30, 60, 0.8);
  backdrop-filter: blur(10px);
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease;
}

.feed-filter-btn:hover {
  border-color: rgba(12, 0, 224, 0.8);
  transform: translateY(-1px);
}

.feed-filter-btn.active {
  background: radial-gradient(circle at top left, #0c00e0, #021024);
  border-color: #0c00e0;
}

/* Friend / You pills on posts */

.feed-author-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
}

.feed-author-pill.friend {
  border-color: rgba(12, 0, 224, 0.9);
  color: #b0c8ff;
}

.feed-author-pill.you {
  border-color: rgba(0, 255, 180, 0.9);
  color: #b9ffe9;
}

/* ========================================================= */
/* PROFILE LAYOUT */
/* ========================================================= */

.profile-center.tab-panel {
  display: none;
}

.profile-center.tab-panel.active {
  display: block;
}

/* Friends list */

.profile-friends-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-friend-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  font-weight: 600;
}

.profile-friend-avatar img.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-friend-name {
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
}

.profile-friend-name:hover {
  text-decoration: underline;
}

.profile-friend-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.profile-friend-since {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-friend-actions .btn-sm {
  padding: 4px 10px;
  font-size: 0.8rem;
}

/* main layout */

.profile-layout {
  max-width: 1200px;
  margin: 120px auto 40px;
  padding: 0 16px;
}

.profile-main-card {
  border-radius: 26px;
  padding: 20px 22px;
  background: radial-gradient(
    circle at top left,
    rgba(0, 234, 255, 0.16),
    rgba(2, 8, 23, 0.96)
  );
  border: 1px solid rgba(0, 234, 255, 0.25);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
}

/* hero */

.profile-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.profile-hero-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-avatar-ring {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: conic-gradient(
    from 180deg,
    rgba(0, 234, 255, 0.05),
    rgba(0, 234, 255, 0.9),
    rgba(0, 234, 255, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.profile-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(15, 23, 42, 1),
    rgba(15, 23, 42, 0.8)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.profile-avatar-inner.has-photo {
  padding: 0;
  overflow: hidden;
}

.profile-avatar-inner img.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-tagline {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 2px 0;
}

.profile-meta-row {
  font-size: 0.78rem;
  opacity: 0.8;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-meta-row i {
  margin-right: 4px;
}

.profile-hero-right {
  display: flex;
  gap: 8px;
}

.profile-hero-btn {
  font-size: 0.78rem;
}

/* tabs */

.profile-tabs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  padding-bottom: 4px;
}

.profile-tab {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0.7;
}

.profile-tab.active {
  background: rgba(0, 234, 255, 0.18);
  opacity: 1;
}

/* inner grid */

.profile-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 18px;
  margin-top: 4px;
}

.profile-column {
  min-width: 0;
}

/* cards inside profile */

.profile-section-card {
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: rgba(2, 8, 23, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.profile-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.profile-helper-text {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 6px;
}

/* about list */

.profile-about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
}

.profile-about-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-about-list .label {
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.profile-about-list .value {
  text-align: right;
}

/* games you play base layout */

.profile-games-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* right column members */

.profile-members-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
}

.profile-members-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.profile-members-list .name {
  opacity: 0.9;
}

.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

/* music player */

.profile-music-card {
  margin-top: 10px;
}

.profile-music-body {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.profile-music-art {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: conic-gradient(
    from 210deg,
    rgba(0, 234, 255, 0.2),
    rgba(0, 234, 255, 0.05),
    rgba(0, 234, 255, 0.6)
  );
}

.profile-music-info {
  flex: 1;
  font-size: 0.8rem;
}

.track-title {
  font-weight: 600;
}

.track-artist {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.track-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.9);
  overflow: hidden;
}

.track-bar-fill {
  width: 35%;
  height: 100%;
  background: linear-gradient(to right, #0ea5e9, #22c55e);
}

.track-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 2px;
}

.track-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.track-controls button {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
  padding: 4px 8px;
  font-size: 0.8rem;
}

.track-controls button.main {
  background: rgba(0, 234, 255, 0.25);
}

/* responsive profile */

@media (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: minmax(0, 1.2fr) 260px;
  }
  .profile-left {
    display: none;
  }
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-right {
    display: none;
  }
  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Flash messages for Games You Play */

.games-flash {
  font-size: 11px;
  margin-top: 6px;
}

.games-flash-error {
  color: #ff7b7b;
}

.games-flash-success {
  color: #4dff88;
}

/* PROFILE STATUS */

.profile-status-line {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.profile-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4dff88;
  box-shadow: 0 0 8px #4dff88;
}

.profile-status-dot.status-online {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.profile-status-dot.status-idle {
  background: #facc15;
  box-shadow: 0 0 8px #facc15;
}

.profile-status-dot.status-busy {
  background: #f97373;
  box-shadow: 0 0 8px #f97373;
}

.profile-status-dot.status-invisible,
.profile-status-dot.status-offline {
  background: #6b7280;
  box-shadow: none;
}

.profile-status-text {
  font-size: 13px;
}

/* ========================================================= */
/* GAME MODAL */
/* ========================================================= */

.hidden {
  display: none !important;
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.game-modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 90%;
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: radial-gradient(
    circle at 0 0,
    rgba(0, 234, 255, 0.2),
    rgba(3, 6, 12, 0.98)
  );
  border: 1px solid rgba(0, 234, 255, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
  color: var(--text-main);
  font-size: 0.9rem;
}

.game-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.game-modal-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
}

.game-modal-body {
  max-height: 320px;
  overflow-y: auto;
}

.games-modal-loading,
.games-modal-error {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.games-modal-error {
  color: #ff8b8b;
}

.game-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.game-modal-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.game-modal-list li:last-child {
  border-bottom: none;
}

/* clickable name */

.gm-name-link {
  text-decoration: none;
  color: var(--text-main);
}

.gm-name-link:hover .gm-name {
  color: var(--primary);
}

.gm-name {
  font-weight: 600;
  font-size: 0.9rem;
}

/* status badge */

.gm-status {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.gm-status-online {
  border-color: #4ade80;
  color: #4ade80;
}

.gm-status-idle {
  border-color: #facc15;
  color: #facc15;
}

.gm-status-busy {
  border-color: #fb7185;
  color: #fb7185;
}

.gm-status-offline {
  border-color: #9ca3af;
  color: #9ca3af;
}

/* ========================================================= */
/* Games You Play chips */
/* ========================================================= */

.profile-game-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 4px 12px;
  border: 1px solid rgba(0, 234, 255, 0.45);
  background: radial-gradient(
    circle at 0 0,
    rgba(0, 234, 255, 0.18),
    rgba(3, 6, 12, 0.98)
  );
  color: var(--text-main);
  font-size: 12px;
  white-space: nowrap;
  cursor: default;
  transition: box-shadow 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, background 0.18s ease;
}

.profile-game-chip:hover {
  border-color: rgba(0, 234, 255, 0.85);
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.7);
  background: radial-gradient(
    circle at 0 0,
    rgba(0, 234, 255, 0.26),
    rgba(3, 6, 12, 1)
  );
  transform: translateY(-1px);
}

.game-chip-form {
  display: inline-block;
  margin: 2px 4px 2px 0;
}

.game-label {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* optional game icon */

.game-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.7);
}

/* remove X button */

.chip-remove {
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: 4px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 0 1px rgb(0, 0, 0);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease,
    color 0.18s ease;
}

.chip-remove:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #00d9ff;
  box-shadow: 0 0 12px rgba(255, 77, 77, 0.9);
  transform: scale(1.05);
}

/* Add game form */

.games-add-form {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
}

.games-add-input {
  flex: 1;
  min-width: 0;
}

.games-add-btn {
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 6px 14px;
}

/* Profile tab panels generic */

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ========================================================= */
/* Notifications PAGE (full page list) */
/* ========================================================= */

.notifications-layout {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 16px;
}

.notifications-card {
  background: radial-gradient(circle at top left, #071324, #020711);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.notifications-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.notifications-empty-page {
  font-size: 0.9rem;
  color: rgba(225, 235, 255, 0.8);
}

.notifications-card .notifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notifications-card .notification-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notifications-card .notification-item:last-child {
  border-bottom: none;
}

.notification-icon {
  width: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  color: rgba(140, 180, 255, 0.8);
}

.notifications-card .notification-body {
  flex: 1;
}

.notification-message {
  font-size: 0.9rem;
  color: #e9f3ff;
  text-decoration: none;
}

.notification-message:hover {
  text-decoration: underline;
}

.notifications-card .notification-meta {
  margin-top: 2px;
  font-size: 0.75rem;
  color: rgba(180, 195, 220, 0.7);
}

/* ========================================================= */
/* MESSAGES PAGE – 3 COLUMN LAYOUT                          */
/* ========================================================= */

body[data-page="messages"] main {
  padding-top: 0;
}

/* Outer wrapper */
body[data-page="messages"] .messages-page {
  max-width: 1700px;
  margin: 110px auto 40px;
  padding: 0 18px 10px;
}

body[data-page="messages"] .messages-shell {
  border-radius: 26px;
  background: radial-gradient(
      circle at top left,
      rgba(0, 234, 255, 0.16),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(0, 234, 255, 0.14),
      transparent 55%
    ),
    rgba(2, 6, 20, 0.96);
  border: 1px solid rgba(0, 234, 255, 0.55);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
  display: grid;
  grid-template-columns: 70px 320px minmax(0, 1.3fr) 320px;
  gap: 0;
  min-height: calc(100vh - 160px);
  overflow: hidden;
}

/* LEFT RAIL ------------------------------------------------ */

body[data-page="messages"] .msg-left-rail {
  background: radial-gradient(
    circle at 0 0,
    rgba(0, 234, 255, 0.25),
    rgba(1, 5, 16, 0.98)
  );
  border-right: 1px solid rgba(0, 234, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 10px;
}

body[data-page="messages"] .msg-rail-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 234, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #e0f8ff;
  background: radial-gradient(circle at 30% 0, #ffffff, #00eaff);
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.7);
  margin-bottom: 18px;
}

body[data-page="messages"] .msg-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

body[data-page="messages"] .msg-rail-btn {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(15, 23, 42, 0.95);
  font-size: 1rem;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.12s ease, box-shadow 0.18s ease;
}

body[data-page="messages"] .msg-rail-btn:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.7);
}

body[data-page="messages"] .msg-rail-btn-active {
  background: radial-gradient(circle at 0 0, #0c00e0, #00eaff);
  border-color: rgba(0, 234, 255, 0.9);
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.9);
}

body[data-page="messages"] .msg-rail-footer {
  margin-top: 12px;
}

body[data-page="messages"] .msg-rail-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

/* INBOX COLUMN -------------------------------------------- */

body[data-page="messages"] .msg-inbox-column {
  border-right: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(
    circle at top left,
    rgba(0, 234, 255, 0.18),
    rgba(3, 7, 22, 0.98)
  );
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
}

body[data-page="messages"] .msg-inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

body[data-page="messages"] .msg-inbox-title {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body[data-page="messages"] .msg-inbox-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

body[data-page="messages"] .msg-inbox-filter {
  border-radius: 999px;
  border: 1px solid rgba(0, 234, 255, 0.6);
  background: rgba(4, 7, 15, 0.96);
  color: rgba(209, 250, 250, 0.9);
  font-size: 0.75rem;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}

body[data-page="messages"] .msg-conversation-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  flex: 1;
  overflow-y: auto;
}

body[data-page="messages"] .msg-conversation-empty {
  padding: 10px 6px;
  font-size: 0.8rem;
  color: rgba(209, 250, 250, 0.85);
}

body[data-page="messages"] .msg-conversation-item {
  margin-bottom: 6px;
}

body[data-page="messages"] .msg-conversation-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  transition: background 0.16s ease, border-color 0.16s ease,
    transform 0.1s ease, box-shadow 0.16s ease;
}

body[data-page="messages"] .msg-conversation-link:hover {
  border-color: rgba(0, 234, 255, 0.7);
  background: radial-gradient(
    circle at 0 0,
    rgba(0, 234, 255, 0.18),
    rgba(15, 23, 42, 0.98)
  );
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.4);
}

body[data-page="messages"]
  .msg-conversation-item.is-active
  .msg-conversation-link {
  border-color: rgba(0, 234, 255, 0.9);
  background: radial-gradient(
    circle at 0 0,
    rgba(0, 234, 255, 0.35),
    rgba(1, 6, 20, 0.98)
  );
  box-shadow: 0 0 24px rgba(0, 234, 255, 0.7);
}

body[data-page="messages"] .msg-conversation-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 0,
    rgba(0, 234, 255, 0.5),
    rgba(15, 23, 42, 1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ecfeff;
  overflow: hidden;
}

body[data-page="messages"] .msg-conversation-avatar .profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="messages"] .msg-conversation-main {
  flex: 1;
  min-width: 0;
}

body[data-page="messages"] .msg-conversation-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

body[data-page="messages"] .msg-conversation-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

body[data-page="messages"] .msg-conversation-time {
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.9);
  margin-left: 8px;
}

body[data-page="messages"] .msg-conversation-preview {
  font-size: 0.75rem;
  color: rgba(203, 213, 225, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="messages"] .msg-conversation-unread {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #0ea5e9;
  color: #0b1120;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
}

/* CHAT COLUMN --------------------------------------------- */

body[data-page="messages"] .msg-chat-column {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
}

body[data-page="messages"] .msg-chat-empty {
  margin: auto;
  text-align: center;
  color: #e0f2fe;
}

body[data-page="messages"] .msg-chat-empty h2 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* chat header */

body[data-page="messages"] .msg-chat-header {
  border-radius: 16px;
  padding: 8px 10px;
  background: radial-gradient(
    circle at top left,
    rgba(0, 234, 255, 0.2),
    rgba(15, 23, 42, 0.96)
  );
  border: 1px solid rgba(0, 234, 255, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

body[data-page="messages"] .msg-chat-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-page="messages"] .msg-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 0,
    rgba(0, 234, 255, 0.5),
    rgba(15, 23, 42, 0.98)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
}

body[data-page="messages"] .msg-chat-avatar .profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="messages"] .msg-chat-header-text {
  display: flex;
  flex-direction: column;
}

body[data-page="messages"] .msg-chat-header-name {
  font-size: 0.95rem;
  font-weight: 700;
}

body[data-page="messages"] .msg-chat-header-meta {
  font-size: 0.78rem;
  color: rgba(191, 219, 254, 0.9);
}

body[data-page="messages"] .msg-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  margin-right: 4px;
}

/* header actions */

body[data-page="messages"] .msg-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

body[data-page="messages"] .msg-icon-pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  color: rgba(226, 232, 240, 0.96);
  padding: 4px 8px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  box-shadow: 0 0 10px rgba(15, 23, 42, 0.9);
}

body[data-page="messages"] .msg-icon-pill i {
  font-size: 0.85rem;
}

/* thread */

body[data-page="messages"] .msg-thread {
  flex: 1;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.9);
  overflow-y: auto;
}

body[data-page="messages"] .msg-thread-empty {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(191, 219, 254, 0.9);
}

body[data-page="messages"] .msg-thread-empty .hint {
  margin-top: 4px;
  opacity: 0.8;
}

body[data-page="messages"] .msg-row {
  display: flex;
  margin-bottom: 8px;
}

body[data-page="messages"] .msg-row.me {
  justify-content: flex-end;
}

body[data-page="messages"] .msg-row.them {
  justify-content: flex-start;
}

body[data-page="messages"] .msg-bubble {
  max-width: 60%;
  border-radius: 18px;
  padding: 8px 11px;
  background: linear-gradient(135deg, #00eaff, #22c55e);
  color: #02131a;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.7);
  font-size: 0.86rem;
}

body[data-page="messages"] .msg-row.them .msg-bubble {
  background: rgba(15, 23, 42, 0.98);
  color: #e5f2ff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

body[data-page="messages"] .msg-bubble-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  opacity: 0.85;
  margin-bottom: 2px;
}

body[data-page="messages"] .msg-bubble-body {
  white-space: pre-wrap;
}

/* composer */

body[data-page="messages"] .msg-composer {
  margin-top: 6px;
  border-radius: 16px;
  padding: 8px 10px 10px;
  background: radial-gradient(
    circle at bottom,
    rgba(0, 234, 255, 0.2),
    rgba(10, 16, 32, 0.98)
  );
  border-top: 1px solid rgba(0, 234, 255, 0.4);
}

body[data-page="messages"] .msg-composer-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body[data-page="messages"] .msg-composer-toolbar {
  display: flex;
  gap: 6px;
}

body[data-page="messages"] .msg-composer-main {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

body[data-page="messages"] .msg-textarea {
  flex: 1;
  resize: none;
  min-height: 60px;
  border-radius: 14px;
  border: 1px solid rgba(0, 234, 255, 0.45);
  background: rgba(2, 6, 23, 0.98);
  color: #e0f2fe;
  padding: 7px 9px;
  font-size: 0.86rem;
  box-shadow: inset 0 0 10px rgba(0, 234, 255, 0.2);
}

body[data-page="messages"] .msg-textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

body[data-page="messages"] .msg-send-btn {
  white-space: nowrap;
  padding-inline: 18px;
}

/* DETAILS COLUMN ------------------------------------------ */

body[data-page="messages"] .msg-details-column {
  border-left: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(
    circle at top right,
    rgba(0, 234, 255, 0.16),
    rgba(3, 7, 18, 0.98)
  );
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
}

body[data-page="messages"] .msg-details-card {
  border-radius: 18px;
  padding: 14px 12px 12px;
  background: rgba(2, 8, 23, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
  font-size: 0.82rem;
}

body[data-page="messages"] .msg-details-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: conic-gradient(
    from 210deg,
    rgba(0, 234, 255, 0.1),
    rgba(0, 234, 255, 0.9),
    rgba(0, 234, 255, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}

body[data-page="messages"] .msg-details-avatar .profile-avatar-img {
  width: 94%;
  height: 94%;
  border-radius: 999px;
  object-fit: cover;
}

body[data-page="messages"] .msg-details-name {
  font-size: 0.95rem;
  font-weight: 700;
}

body[data-page="messages"] .msg-details-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

body[data-page="messages"] .msg-details-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

body[data-page="messages"] .msg-pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 3px 8px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(226, 232, 240, 0.96);
}

body[data-page="messages"] .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

/* details list */

body[data-page="messages"] .msg-details-section {
  margin-top: 10px;
}

body[data-page="messages"] .msg-details-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 4px;
}

body[data-page="messages"] .msg-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body[data-page="messages"] .msg-details-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.78rem;
}

body[data-page="messages"] .msg-details-list li span:first-child {
  color: rgba(148, 163, 184, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body[data-page="messages"] .msg-details-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-page="messages"] .msg-tag {
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(96, 165, 250, 0.7);
  color: rgba(191, 219, 254, 0.96);
}

/* placeholder */

body[data-page="messages"] .msg-details-placeholder {
  margin: auto;
  text-align: center;
  color: rgba(209, 250, 250, 0.9);
  font-size: 0.85rem;
}

/* RESPONSIVE ---------------------------------------------- */

@media (max-width: 1200px) {
  body[data-page="messages"] .messages-shell {
    grid-template-columns: 60px 260px minmax(0, 1.2fr);
  }
  body[data-page="messages"] .msg-details-column {
    display: none;
  }
}

@media (max-width: 900px) {
  body[data-page="messages"] .messages-shell {
    grid-template-columns: 60px minmax(0, 1fr);
  }
  body[data-page="messages"] .msg-inbox-column {
    display: none;
  }
}

@media (max-width: 640px) {
  body[data-page="messages"] .messages-page {
    margin-top: 96px;
    padding-inline: 10px;
  }
  body[data-page="messages"] .messages-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-page="messages"] .msg-left-rail {
    display: none;
  }
}
body[data-page="messages"] .msg-inbox-search {
  margin-bottom: 8px;
}

body[data-page="messages"] .msg-inbox-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
  color: #e0f2fe;
  font-size: 0.8rem;
  padding: 5px 10px;
}

body[data-page="messages"] .msg-inbox-search input::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

body[data-page="messages"] .msg-typing-indicator {
  margin-top: 4px;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.95);
}

body[data-page="messages"] .msg-read-indicator {
  margin-top: 2px;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.9);
  text-align: right;
}
