/* ==========================================================================
   ARISK — ULTRA-MODERN PERSONAL PROFILE BUILDER
   GUNS.LOL & NOIZ.BIO INSPIRED DESIGN SYSTEM
   ========================================================================== */

/* --- CSS VARIABLES & COLORWAYS --- */
:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-title: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif: 'Cinzel', serif;
  --font-display: 'Syne', sans-serif;

  /* Theme Defaults: Obsidian Matte */
  --bg-color: #070709;
  --bg-secondary: #0d0e12;
  --panel-bg: rgba(14, 16, 22, 0.72);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-hover: rgba(255, 255, 255, 0.22);
  --panel-blur: 18px;
  --card-radius: 24px;
  
  --accent-color: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.25);
  --accent-cyan: #00ffcc;
  --accent-purple: #c084fc;
  --accent-pink: #ff3388;
  --accent-emerald: #10b981;
  --accent-crimson: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --badge-bg: rgba(255, 255, 255, 0.06);
  --badge-border: rgba(255, 255, 255, 0.12);

  --shadow-subtle: 0 4px 24px -2px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px -5px rgba(255, 255, 255, 0.15);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Colorway Presets */
body.theme-obsidian {
  --bg-color: #060608;
  --panel-bg: rgba(13, 14, 18, 0.75);
  --accent-glow: rgba(255, 255, 255, 0.2);
}

body.theme-midnight {
  --bg-color: #080a14;
  --panel-bg: rgba(13, 17, 30, 0.75);
  --panel-border: rgba(99, 132, 255, 0.14);
  --accent-color: #60a5fa;
  --accent-glow: rgba(96, 165, 250, 0.3);
}

body.theme-emerald {
  --bg-color: #060e0a;
  --panel-bg: rgba(11, 24, 18, 0.75);
  --panel-border: rgba(16, 185, 129, 0.15);
  --accent-color: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.35);
}

body.theme-crimson {
  --bg-color: #0e0608;
  --panel-bg: rgba(26, 11, 14, 0.75);
  --panel-border: rgba(239, 68, 68, 0.16);
  --accent-color: #ef4444;
  --accent-glow: rgba(239, 68, 68, 0.35);
}

body.theme-amethyst {
  --bg-color: #0b0714;
  --panel-bg: rgba(19, 13, 30, 0.75);
  --panel-border: rgba(192, 132, 252, 0.16);
  --accent-color: #c084fc;
  --accent-glow: rgba(192, 132, 252, 0.35);
}

body.theme-monochrome {
  --bg-color: #090909;
  --panel-bg: rgba(18, 18, 18, 0.85);
  --panel-border: rgba(255, 255, 255, 0.1);
  --accent-color: #e2e8f0;
  --accent-glow: rgba(226, 232, 240, 0.25);
}

/* Card Shape Variations */
.shape-squircle { --card-radius: 24px; }
.shape-curved { --card-radius: 16px; }
.shape-sharp { --card-radius: 0px; }
.shape-pill { --card-radius: 36px; }

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==========================================================================
   METALLIC FONT EFFECTS & TYPOGRAPHY ENGINE (KEY REQUIREMENT)
   ========================================================================== */

/* 1. Polished Chrome / Liquid Silver (Guns.lol Iconic Front Title) */
.metallic-title,
.metallic-title[data-effect="chrome"] {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #cbd5e1 20%,
    #64748b 38%,
    #f8fafc 48%,
    #475569 58%,
    #94a3b8 72%,
    #f1f5f9 88%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 220% auto;
  animation: metallicSheen 8s ease-in-out infinite;
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.04em;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
  display: inline-block;
  position: relative;
}

/* 2. Cyber Gold Sheen */
.metallic-title[data-effect="gold"] {
  background: linear-gradient(
    135deg,
    #fff8db 0%,
    #fcd34d 22%,
    #b45309 42%,
    #fef08a 52%,
    #78350f 62%,
    #fbbf24 78%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 220% auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 18px rgba(251, 191, 36, 0.35));
}

/* 3. Iridescent Rose Platinum */
.metallic-title[data-effect="rose"] {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #fbcfe8 20%,
    #db2777 40%,
    #fdf2f8 50%,
    #9d174d 60%,
    #f472b6 75%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 220% auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 18px rgba(244, 114, 182, 0.35));
}

/* 4. Dark Chromium Gloss */
.metallic-title[data-effect="obsidian"] {
  background: linear-gradient(
    135deg,
    #94a3b8 0%,
    #334155 25%,
    #0f172a 45%,
    #cbd5e1 55%,
    #1e293b 70%,
    #64748b 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 220% auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(148, 163, 184, 0.3));
}

/* 5. Holographic Neon Cyan */
.metallic-title[data-effect="neon-cyan"] {
  background: linear-gradient(
    135deg,
    #e0f2fe 0%,
    #38bdf8 25%,
    #0369a1 45%,
    #67e8f9 55%,
    #0284c7 75%,
    #a5f3fc 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 220% auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(56, 189, 248, 0.5));
}

/* 6. Glitch Chromatic Aberration */
.metallic-title[data-effect="glitch"] {
  color: #fff;
  position: relative;
  text-shadow: 2px 0 #00ffff, -2px 0 #ff0055;
  animation: glitchTitle 3s infinite alternate;
}

@keyframes metallicSheen {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glitchTitle {
  0%, 80%, 100% {
    transform: translate(0);
    text-shadow: 2px 0 #00ffff, -2px 0 #ff0055;
  }
  82% {
    transform: translate(-2px, 1px);
    text-shadow: 3px 0 #00ffff, -3px 0 #ff0055;
  }
  84% {
    transform: translate(2px, -1px);
    text-shadow: -2px 0 #00ffff, 2px 0 #ff0055;
  }
  86% {
    transform: translate(0);
    text-shadow: 1px 0 #00ffff, -1px 0 #ff0055;
  }
}

.metallic-sheen {
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   BACKGROUNDS & CANVASES
   ========================================================================== */
.bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
}

/* Aurora Mesh FX */
.bg-overlay.aurora-active {
  background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.18), transparent 45%),
              radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.14), transparent 45%),
              radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.12), transparent 50%);
  filter: blur(40px);
  animation: auroraPulse 12s ease-in-out infinite alternate;
}

@keyframes auroraPulse {
  0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  100% { transform: scale(1.15) rotate(4deg); opacity: 1; }
}

/* CRT Scanlines Overlay */
.bg-scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.6;
}

/* Vignette */
.bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

/* ==========================================================================
   GUNS.LOL CLICK TO ENTER OVERLAY (SIGNATURE FEATURE)
   ========================================================================== */
.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 5, 8, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
}

.enter-overlay.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-card {
  text-align: center;
  position: relative;
  padding: 40px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.enter-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(35px);
  pointer-events: none;
  animation: enterPulse 3s ease-in-out infinite;
}

.enter-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.enter-card:hover .enter-icon {
  transform: scale(1.1);
}

.enter-title {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.enter-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.enter-pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #fff;
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 1.5s infinite;
}

@keyframes enterPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
  50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
  background: rgba(7, 8, 11, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-border);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-symbol {
  color: var(--accent-color);
  font-size: 16px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.logo-text {
  font-size: 22px;
  letter-spacing: -0.05em;
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.nav-url-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.nav-url-pill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

.icon-btn-micro {
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.icon-btn-micro:hover {
  color: #fff;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.primary-btn {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 14px rgba(255, 255, 255, 0.25);
}

.primary-btn:hover {
  background: #e2e8f0;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.glow-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}

.glow-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   APP VIEWPORT
   ========================================================================== */
.app-viewport {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 64px);
  padding: 36px 20px 80px;
}

/* Glassmorphism Panel Base */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-subtle);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-panel:hover {
  border-color: var(--panel-border-hover);
}

/* ==========================================================================
   VIEW 1: PUBLIC PROFILE VIEW (GUNS.LOL STYLE)
   ========================================================================== */
.public-profile-view {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  transition: max-width 0.4s ease;
}

/* Layout Variations */
.public-profile-view.layout-mono {
  max-width: 580px;
}

.public-profile-view.layout-stereo {
  max-width: 1080px;
}
.public-profile-view.layout-stereo .profile-card-wrapper {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}
.public-profile-view.layout-stereo .profile-card {
  position: sticky;
  top: 88px;
}

.public-profile-view.layout-cover .profile-cover-banner {
  display: block;
}

.public-profile-view.layout-bento {
  max-width: 900px;
}
.public-profile-view.layout-bento .modular-widgets-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.public-profile-view.layout-crest .profile-card {
  border-top: 3px solid #fff;
  border-radius: 4px 4px 28px 28px;
}

/* Cover Banner */
.profile-cover-banner {
  display: none;
  width: 100%;
  height: 180px;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-bottom: none;
}
.banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.8));
}

/* Profile Card */
.profile-card {
  position: relative;
  padding: 40px 32px;
  text-align: center;
  overflow: hidden;
}

/* Cyber Accent Corners */
.card-accent-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.card-accent-corner.top-left { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.card-accent-corner.top-right { top: 12px; right: 12px; border-top: 1px solid; border-right: 1px solid; }
.card-accent-corner.bottom-left { bottom: 12px; left: 12px; border-bottom: 1px solid; border-left: 1px solid; }
.card-accent-corner.bottom-right { bottom: 12px; right: 12px; border-bottom: 1px solid; border-right: 1px solid; }

/* Avatar Section */
.avatar-section {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.avatar-frame {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-glow-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

/* Discord Online Status Dot */
.status-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #090a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #090a0f;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.status-indicator.idle .status-dot { background: #eab308; box-shadow: 0 0 8px #eab308; }
.status-indicator.dnd .status-dot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.status-indicator.offline .status-dot { background: #64748b; box-shadow: none; }

/* Badges Row */
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.verified-badge {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.pro-badge {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

/* Title Section */
.title-section {
  margin-bottom: 12px;
}

.profile-display-name {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 4px;
}

.profile-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

/* Bio Section & Text Motion Animations */
.bio-section {
  max-width: 440px;
  margin: 0 auto 20px;
}

.profile-bio {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.6;
  min-height: 24px;
}

/* Typewriter Cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #fff;
  vertical-align: middle;
  margin-left: 2px;
  animation: cursorBlink 0.8s infinite;
}

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

/* Glitch Bio */
.bio-glitch {
  animation: bioGlitch 4s infinite;
}
@keyframes bioGlitch {
  0%, 92%, 100% { opacity: 1; transform: translate(0); }
  94% { opacity: 0.8; transform: translate(-1px, 1px); }
  96% { opacity: 0.9; transform: translate(1px, -1px); }
}

/* Discord Lanyard Presence Card (Rich Guns.lol & Noiz Style) */
.discord-presence-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.24);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 22px;
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast);
}

.discord-presence-card:hover {
  border-color: rgba(88, 101, 242, 0.45);
  box-shadow: 0 6px 25px rgba(88, 101, 242, 0.15);
}

.discord-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discord-user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.discord-avatar-mini-wrap {
  position: relative;
  width: 38px;
  height: 38px;
}

.discord-avatar-mini-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.discord-mini-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0a0b10;
  background: #23a55a;
}
.discord-mini-status.online { background: #23a55a; box-shadow: 0 0 8px #23a55a; }
.discord-mini-status.idle { background: #f0b232; box-shadow: 0 0 8px #f0b232; }
.discord-mini-status.dnd { background: #f23f43; box-shadow: 0 0 8px #f23f43; }
.discord-mini-status.offline { background: #80848e; box-shadow: none; }
.discord-mini-status.streaming { background: #593695; box-shadow: 0 0 8px #593695; }

.discord-names-wrap {
  display: flex;
  flex-direction: column;
}

.discord-global-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.discord-handle-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.discord-right-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-platform-icon {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 4px 6px;
}

.discord-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(35, 165, 90, 0.12);
  border: 1px solid rgba(35, 165, 90, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #23a55a;
}

/* Custom Status Row */
.discord-custom-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.discord-custom-status-row i {
  color: #5865f2;
  font-size: 11px;
}

/* Activity Box (Gaming/VSCode) */
.discord-activity-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #5865f2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  overflow: hidden;
}

.activity-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-details {
  flex: 1;
  overflow: hidden;
}

.activity-type-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.activity-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-state {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-timer {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* Spotify Box */
.discord-spotify-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(29, 185, 84, 0.08);
  border: 1px solid rgba(29, 185, 84, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
}

.spotify-art-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.spotify-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotify-logo-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1db954;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.spotify-info {
  flex: 1;
  overflow: hidden;
}

.spotify-listening-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #1db954;
  letter-spacing: 0.06em;
}

.spotify-track-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-artist-name {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-progress-wrap {
  margin-top: 4px;
  width: 100%;
}

.spotify-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.spotify-progress-fill {
  height: 100%;
  background: #1db954;
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ==========================================================================
   AUDIO PLAYER WIDGET
   ========================================================================== */
.audio-player-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 24px;
}

.audio-compact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.audio-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s, background-color 0.2s;
}

.audio-ctrl-btn:hover {
  transform: scale(1.08);
  background: #f1f5f9;
}

.audio-track-info {
  flex: 1;
  overflow: hidden;
  text-align: left;
}

.track-title-marquee {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Animated Equalizer Bars */
.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  flex-shrink: 0;
}

.equalizer-bars .bar {
  width: 3px;
  background: #fff;
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s;
}

.equalizer-bars.playing .bar {
  animation: eqBounce 1s infinite ease-in-out alternate;
}
.equalizer-bars.playing .bar-1 { animation-delay: 0.1s; }
.equalizer-bars.playing .bar-2 { animation-delay: 0.3s; }
.equalizer-bars.playing .bar-3 { animation-delay: 0.5s; }
.equalizer-bars.playing .bar-4 { animation-delay: 0.2s; }
.equalizer-bars.playing .bar-5 { animation-delay: 0.4s; }

@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 18px; }
}

.audio-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-ctrl-micro {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 12px;
}

.audio-slider {
  width: 60px;
  accent-color: #fff;
  cursor: pointer;
  height: 3px;
}

/* Vinyl Mode */
.audio-vinyl-layout {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.vinyl-disc {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1a1a 20%, #0d0d0d 60%, #000 100%);
  border: 2px solid #333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vinyl-disc.spinning {
  animation: spinVinyl 3s linear infinite;
}

.vinyl-center-label {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

@keyframes spinVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   SOCIALS DOCK
   ========================================================================== */
.socials-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.social-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.socials-dock.monochrome .social-icon-btn {
  filter: grayscale(1);
}

/* Profile Divider */
.profile-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 28px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--panel-border), transparent);
}

.divider-gem {
  color: var(--text-muted);
  font-size: 10px;
}

/* ==========================================================================
   PROFILE LINKS LIST
   ========================================================================== */
.links-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-group-header {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: left;
  margin-top: 14px;
  padding-left: 4px;
}

.profile-link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: #ffffff;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
  text-decoration: none;
}

.profile-link-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.link-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.link-icon-wrap {
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.profile-link-btn:hover .link-icon-wrap {
  color: #ffffff;
}

.link-title {
  letter-spacing: -0.01em;
}

.link-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  letter-spacing: 0.06em;
}

.link-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
}

.profile-link-btn:hover .link-arrow {
  color: #fff;
  transform: translateX(3px);
}

/* Featured Link Glow */
.profile-link-btn.featured {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.profile-link-btn.btn-neon {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.15);
}

.profile-link-btn.btn-metallic {
  background: linear-gradient(135deg, #222 0%, #111 100%);
  border: 1px solid #444;
}

.profile-link-btn.btn-cyber {
  font-family: var(--font-mono);
  border-left: 3px solid #fff;
  border-radius: 4px;
}

/* ==========================================================================
   MODULAR RICH WIDGETS SECTION (NOIZ.BIO STYLE)
   ========================================================================== */
.modular-widgets-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.widget-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.widget-title i {
  color: var(--text-secondary);
}

.widget-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* Gaming Hardware & Crosshair Widget */
.gaming-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.crosshair-preview-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.crosshair-canvas-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#crosshair-canvas {
  background: #11141a;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.crosshair-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.gaming-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  flex: 1;
}

.metric-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.metric-value {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.hardware-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.spec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
}

.spec-icon {
  color: var(--text-secondary);
}

.spec-name {
  color: var(--text-muted);
  font-weight: 600;
  width: 45px;
}

.spec-val {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.project-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.project-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.project-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* Skills Chips */
.skills-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #e2e8f0;
}

.skill-chip:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

/* Visual Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Clock & Weather Widget */
.clock-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.clock-icon {
  font-size: 24px;
  color: var(--text-secondary);
}

.clock-details {
  flex: 1;
  text-align: left;
}

.clock-time {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.clock-location {
  font-size: 12px;
  color: var(--text-secondary);
}

.clock-weather {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Public Footer */
.public-footer {
  margin-top: 36px;
  text-align: center;
}

.footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}

.footer-powered:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.footer-dot {
  font-size: 8px;
  color: var(--text-muted);
}

/* ==========================================================================
   VIEW 2: PROFILE MANAGEMENT DASHBOARD
   ========================================================================== */
.dashboard-view {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.dashboard-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar */
.dashboard-sidebar {
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dash-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.dash-user-handle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.dash-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.dash-tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.primary-glow {
  background: #fff;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.primary-glow:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.secondary-subtle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.secondary-subtle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Dashboard Content Area */
.dashboard-content {
  padding: 36px 32px;
}

.dash-tab-content {
  display: none;
}
.dash-tab-content.active {
  display: block;
}

.tab-header {
  margin-bottom: 28px;
}

.tab-header h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.tab-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.tab-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

/* Form Layouts & Inputs */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  gap: 16px;
}
.form-row.dual { grid-template-columns: repeat(2, 1fr); }
.form-row.triple { grid-template-columns: repeat(3, 1fr); }
.form-row.quad { grid-template-columns: repeat(4, 1fr); }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.styled-input,
.styled-select,
.styled-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: #fff;
  transition: all var(--transition-fast);
}

.styled-input:focus,
.styled-select:focus,
.styled-textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.styled-select {
  cursor: pointer;
}
.styled-select option {
  background: #0d0f15;
  color: #fff;
}

.input-prefix-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
}

.input-prefix-wrap .prefix {
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--panel-border);
}

.input-prefix-wrap .styled-input {
  border: none;
  border-radius: 0;
  background: transparent;
}

.styled-range {
  width: 100%;
  accent-color: #fff;
  cursor: pointer;
}

/* Toggle Control Switch */
.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-control input {
  display: none;
}

.toggle-slider {
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  position: relative;
  transition: background-color 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-control input:checked + .toggle-slider {
  background: #ffffff;
}

.toggle-control input:checked + .toggle-slider::before {
  transform: translateX(18px);
  background: #000;
}

.toggle-label {
  font-size: 13px;
  color: #cbd5e1;
}

/* Box Highlight Block */
.box-highlight {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.box-highlight h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-text {
  font-size: 11.5px;
  color: var(--text-muted);
}

.input-with-button {
  display: flex;
  gap: 10px;
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Section Blocks */
.section-block {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.section-subtext {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: -8px;
}

/* Social Inputs Grid */
.social-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.social-input-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 8px 12px;
}

.social-input-item i {
  font-size: 16px;
  color: var(--text-secondary);
  width: 20px;
  text-align: center;
}

.social-input-item input {
  flex: 1;
  font-size: 12.5px;
  color: #fff;
}

.social-options-row {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

/* Links Editor List */
.links-editor-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-editor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 12px 18px;
  transition: all var(--transition-fast);
}

.link-editor-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.link-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  font-size: 14px;
}

.link-meta-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.link-meta-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.link-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.action-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.action-icon-btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Analytics Tab Metrics */
.analytics-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-card .metric-icon {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.metric-card .metric-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.metric-card .metric-title {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-trend {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-trend.up {
  color: #10b981;
}

.analytics-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.chart-card {
  padding: 24px;
  text-align: left;
}

.chart-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.device-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.device-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.device-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #cbd5e1;
}

.device-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 999px;
}

.referrer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ref-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.ref-val {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Tables */
.table-container {
  overflow-x: auto;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.styled-table th {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--panel-border);
}

.styled-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

/* Firebase Status Banner */
.firebase-status-banner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-icon {
  font-size: 28px;
  color: #f59e0b;
}

.status-text {
  flex: 1;
}

.status-text strong {
  font-size: 14px;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.status-text p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   MODALS SYSTEM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  padding: 32px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card.wide {
  max-width: 640px;
}

.modal-card.auth-card {
  max-width: 440px;
  padding: 30px;
  border-radius: 26px;
  background: rgba(17, 18, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.discord-join-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 2px 0;
  color: #e7e7e7;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}
.discord-join-consent input { margin-top: 3px; accent-color: #5865f2; }
.discord-consent-note { margin: 8px 2px 2px; color: #92939b; font-size: 11px; line-height: 1.5; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-modal-btn {
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: #fff;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-actions-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* Share & QR Code */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.qrcode-box {
  padding: 14px;
  background: #ffffff;
  border-radius: 16px;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.qr-caption {
  font-size: 12px;
  color: var(--text-secondary);
}

.share-copy-box {
  display: flex;
  gap: 10px;
}

.share-copy-box input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #fff;
}

.share-buttons-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.share-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  transition: all 0.2s;
}

.share-social-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Auth Modal & Social Providers */
.auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #5865F2;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.discord-btn:hover {
  background: #4752c4;
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.discord-btn-icon {
  font-size: 18px;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

/* Discord Sync Live Preview Box in Modal */
.discord-sync-preview-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 14px;
  padding: 14px;
  margin-top: 8px;
  text-align: left;
}

.preview-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.preview-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.preview-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.preview-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.preview-bio {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-activity {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #23a55a;
  display: flex;
  align-items: center;
  gap: 5px;
}

.google-btn:hover {
  background: #f1f5f9;
}

.google-icon {
  width: 18px;
  height: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--panel-border);
}

.auth-divider span {
  padding: 0 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.auth-switch-prompt {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.auth-switch-prompt a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
}

.full-width {
  width: 100%;
  justify-content: center;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 20, 26, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.toast-out {
  opacity: 0;
  transform: translateY(10px);
}

.toast i {
  color: #10b981;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 900px) {
  .dashboard-container {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: static;
  }
  .analytics-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .analytics-charts-grid {
    grid-template-columns: 1fr;
  }
  .public-profile-view.layout-stereo .profile-card-wrapper {
    grid-template-columns: 1fr;
  }
  .public-profile-view.layout-stereo .profile-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .top-nav {
    padding: 0 16px;
  }
  .nav-url-pill {
    display: none;
  }
  .form-row.dual,
  .form-row.triple,
  .form-row.quad {
    grid-template-columns: 1fr;
  }
  .hardware-specs-grid {
    grid-template-columns: 1fr;
  }
  .crosshair-preview-box {
    flex-direction: column;
  }
  .profile-card {
    padding: 32px 18px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   LANDING / HOME PAGE
   ========================================================================== */
/* ARISK public homepage */
.page { display: none; }
.page.active { display: block; }
.page#page-home { background: #050505; color: #f5f5f5; }
#page-home main, #page-home .home-nav, #page-home .home-footer { width: min(100%, 1920px); margin-inline: auto; }
.home-nav { position: relative; z-index: 8; min-height: 64px; padding: 0 3.2vw; display: flex; align-items: center; justify-content: space-between; background: #050505; }
.home-logo { display: inline-flex; align-items: center; gap: 10px; color: #f5f5f5; text-decoration: none; }
.logo-star { font-size: 21px; transform: rotate(-15deg); }
.home-logo-text { font: 800 17px/1 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
.home-nav-links { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 42px); }
.home-nav-links a, .footer-links a { color: #a1a1a1; text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s; }
.home-nav-links a:hover, .footer-links a:hover { color: #fff; }
.home-nav-links .nav-cta-btn { background: #f3f3f3; color: #080808; border-radius: 999px; padding: 12px 17px; }
.hero-section { min-height: min(820px, calc(100svh - 64px)); padding: 0 1.1vw 34px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-stage { min-height: clamp(400px, 67vh, 690px); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-wordmark { margin: 0; position: relative; z-index: 1; font: 900 clamp(160px, 37vw, 650px)/.78 'Space Grotesk', sans-serif; letter-spacing: -.095em; padding-right: .1em; color: #fff; background: linear-gradient(180deg,#fff 5%,#f7f7f7 37%,#9c9c9c 54%,#fff 68%,#656565 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 14px 3px #141414) drop-shadow(0 26px 19px #000); transform: scaleX(1.02); }
.hero-side-label, .hero-index { position: absolute; z-index: 2; bottom: 12%; margin: 0; color: #aaa; font-weight: 700; font-size: 14px; }
.hero-side-label { left: 0; }.hero-index { right: 0; }
.hero-manifesto { position: absolute; z-index: 2; right: 1%; top: 4%; width: min(330px, 30vw); display: flex; flex-direction: column; align-items: flex-end; text-align: right; color: #eee; font: 700 clamp(15px, 1.5vw, 23px)/1.14 'Space Grotesk', sans-serif; letter-spacing: -.045em; }
.hero-manifesto strong { font-size: 1.12em; }.hero-manifesto span { color: #d0d0d0; }
.hero-bottom { display: grid; grid-template-columns: 1.25fr .8fr .9fr; gap: clamp(24px, 5vw, 90px); align-items: end; padding: 0 .1vw; }
.hero-bottom h2 { margin: 0; font: 800 clamp(34px, 4.2vw, 72px)/.96 'Space Grotesk', sans-serif; letter-spacing: -.075em; }
.hero-intro { max-width: 360px; color: #999; font-size: 14px; line-height: 1.65; }.hero-intro p { margin: 0 0 18px; }.hero-text-link { color: #eee; text-decoration: none; font-weight: 700; }
.hero-claim { min-height: 58px; padding: 5px 6px 5px 21px; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #777; border: 1px solid #292929; background: #0b0b0b; cursor: pointer; font: inherit; }
.hero-claim-url { white-space: nowrap; font-size: 14px; font-weight: 700; }.hero-claim-url em { color: #bbb; font-style: normal; }.hero-claim-action { white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; padding: 14px 17px; background: #f5f5f5; color: #080808; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hero-claim-action i { border-radius: 50%; background: #090909; color: #fff; width: 25px; height: 25px; display: grid; place-items: center; }
.home-features, .home-faq { padding: 120px 7vw; background: #080808; }.home-section-heading, .home-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; }
.home-eyebrow { color: #858585; font: 600 11px 'JetBrains Mono', monospace; letter-spacing: .18em; }.home-section-heading h2, .faq-intro h2 { margin: 20px 0 0; font: 800 clamp(42px, 6vw, 86px)/.95 'Space Grotesk',sans-serif; letter-spacing: -.07em; }
.home-section-heading > p, .faq-intro > p { max-width: 420px; color: #999; line-height: 1.7; }.home-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 55px; }
.home-feat-card { min-height: 300px; padding: 24px; border: 1px solid #242424; background: #0d0d0d; display: flex; flex-direction: column; align-items: flex-start; }.feature-card-wide { grid-column: span 2; }.feat-card-top { width: 100%; display: flex; justify-content: space-between; color: #777; }.feat-card-top i { color: #eee; }
.feature-visual { flex: 1; align-self: stretch; min-height: 130px; display: flex; align-items: center; justify-content: center; color: #eee; font: 800 64px 'Space Grotesk',sans-serif; }.discord-visual { gap: 12px; font-size: 13px; }.discord-visual > div { display: flex; flex-direction: column; }.discord-visual span { color: #999; font-size: 11px; }.discord-visual b { display: inline-block; width: 7px; height: 7px; background: #8cffb1; border-radius: 50%; }.visual-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg,#ddd,#444); }
.home-feat-card h3 { margin: 16px 0 8px; font: 700 22px 'Space Grotesk',sans-serif; letter-spacing: -.04em; }.home-feat-card p { margin: 0; color: #999; font-size: 14px; line-height: 1.6; }.features-detail-link { display: inline-block; margin-top: 28px; color: #eee; text-decoration: none; font-weight: 600; }
.home-faq { background: #050505; align-items: start; }.faq-intro h2 { margin-bottom: 20px; }.faq-builder-link, .home-final-cta button { border: 0; border-radius: 999px; padding: 14px 20px; background: #f4f4f4; color: #090909; font-weight: 700; cursor: pointer; }.faq-list details { border-bottom: 1px solid #292929; padding: 20px 0; }.faq-list summary { color: #eee; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list p { color: #999; line-height: 1.7; max-width: 620px; }
.home-final-cta { padding: 130px 7vw; text-align: center; background: #0a0a0a; }.home-final-cta h2 { margin: 18px 0 28px; font: 800 clamp(48px,8vw,110px)/.9 'Space Grotesk',sans-serif; letter-spacing: -.08em; }.faq-builder-link, .home-final-cta button { cursor: pointer; }
.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 3.2vw; background: #050505; }.footer-links { display: flex; gap: 24px; }.footer-copy { color: #777; font-size: 12px; }
@media (max-width: 760px) { .home-nav { padding: 14px 20px; }.home-nav-links { gap: 14px; }.home-nav-links a:not(.nav-cta-btn) { display: none; }.hero-section { min-height: auto; padding: 12px 18px 34px; }.hero-stage { min-height: 58svh; }.hero-wordmark { font-size: clamp(80px, 35vw, 320px); }.hero-manifesto { top: 5%; right: 0; width: 58%; font-size: 14px; }.hero-side-label,.hero-index { bottom: 8%; font-size: 12px; }.hero-bottom { grid-template-columns: 1fr; gap: 20px; }.hero-bottom h2 { font-size: clamp(42px, 11vw, 64px); }.hero-intro { max-width: 100%; }.hero-claim { max-width: 440px; }.home-features, .home-faq { padding: 76px 22px; }.home-section-heading, .home-faq { grid-template-columns: 1fr; gap: 22px; }.home-feature-grid { grid-template-columns: 1fr; }.feature-card-wide { grid-column: span 1; }.home-feat-card { min-height: 270px; }.home-footer { flex-wrap: wrap; padding-inline: 20px; }.footer-links { order: 3; width: 100%; flex-wrap: wrap; } }
body.landing-mode .top-nav,
body.landing-mode .public-profile-view,
body.landing-mode .dashboard-view {
  display: none !important;
}

.landing-view {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.landing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 560px;
}

.landing-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
}

.landing-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 18vw, 160px);
  line-height: 1;
  letter-spacing: 0.06em;
  margin: 0;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.18));
}

.landing-tagline {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--panel-border);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.landing-btn:hover {
  transform: translateY(-2px);
}

.landing-btn-primary {
  background: #f8fafc;
  color: #08080b;
  box-shadow: var(--shadow-glow);
}

.landing-btn-secondary {
  background: var(--panel-bg);
  color: var(--text-primary);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
}

.landing-btn-secondary:hover {
  border-color: var(--panel-border-hover);
}

.landing-demo-link {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.landing-demo-link:hover {
  color: var(--text-primary);
}

/* Landing modals */
.landing-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.landing-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.landing-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-subtle);
  text-align: left;
}

.landing-modal-card-small {
  max-width: 360px;
}

.landing-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.landing-modal-close:hover {
  color: var(--text-primary);
}

.landing-modal-title {
  font-family: var(--font-title);
  font-size: 24px;
  margin: 0 0 20px;
  color: var(--text-primary);
}

.landing-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.landing-feature-list li > i {
  width: 36px;
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--text-primary);
}

.landing-feature-list strong {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
}

.landing-feature-list span {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 2px;
}

.landing-social-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.landing-social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--panel-border-hover);
}

/* ─── ACCOUNT SETUP PAGE ─────────────────────────────────────────────────── */
.setup-page-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 64px;
}
.setup-card {
  width: 100%;
  max-width: 460px;
  padding: 32px;
  border-radius: 26px;
  background: rgba(17, 18, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.setup-title {
  font-size: clamp(28px, 6vw, 40px);
  margin: 0 0 8px;
}
.setup-sub {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 24px;
  line-height: 1.5;
}
.setup-card .form-group { margin-bottom: 18px; }
.setup-error { color: #ff6b81; }
@media (max-width: 480px) {
  .setup-card { padding: 24px 18px; }
}

/* ─── UID BADGE ──────────────────────────────────────────────────────────── */
.profile-uid-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e9ecf1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.profile-uid-badge[hidden] { display: none; }

/* Elements with the hidden attribute stay hidden even when a class sets display (e.g. .nav-btn). */
[hidden] { display: none !important; }

/* Dashboard: Connect Discord row in the Live Discord Status box */
.discord-connect-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 6px 0 12px; }
.discord-connect-row .discord-btn { width: auto; }
