/* ==========================================================
   itz0cat Portfolio & Systems Backend Hub
   Clean, Non-Vibecoded, High-Performance Dark Aesthetic
   ========================================================== */

:root {
  --bg-base: #08090d;
  --bg-card: rgba(13, 16, 23, 0.72);
  --bg-card-hover: rgba(20, 24, 35, 0.85);
  --bg-pill: rgba(255, 255, 255, 0.05);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.4);
  --border-glow: rgba(56, 189, 248, 0.15);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-mint: #34d399;
  --accent-amber: #fbbf24;
  --accent-red: #f87171;
  --discord-purple: #5865f2;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  background-image:
    linear-gradient(180deg, rgba(8, 9, 13, 0.80) 0%, rgba(8, 9, 13, 0.90) 50%, rgba(8, 9, 13, 0.97) 100%),
    url('/assets/bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient Backdrop */
.bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.04) 0%, transparent 70%);
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

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

code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--accent-cyan);
}

/* ==========================================================
   Navbar
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 9, 13, 0.75);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #fff;
  transition: opacity 0.2s;
}

.nav-brand:hover {
  opacity: 0.85;
}

.brand-badge {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.brand-text {
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.nav-item-dev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-amber);
}

.nav-item-dev:hover,
.nav-item-dev.active {
  color: #fde047;
  background: rgba(251, 191, 36, 0.08);
}

.dev-lock-badge {
  font-size: 0.8rem;
}

/* Nav Auth */
.nav-auth-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--discord-purple);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.1s;
}

.btn-discord:hover {
  background: #4752c4;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px 4px 6px;
  border-radius: 30px;
}

.user-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
}

.user-meta-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-username {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
}

.user-role-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.user-role-tag.role-owner {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-amber);
}

.btn-logout {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}

.btn-logout:hover {
  color: var(--accent-red);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.2s;
}

/* ==========================================================
   Page View Routing (Navigo)
   ========================================================== */
.main-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 160px);
}

.page-view {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.page-view.active-view {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Containers */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.section-header {
  margin-bottom: 36px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-heading {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 10px;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* Glass Card Component */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: #fff;
  color: #08090d;
}

.btn-primary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: var(--border-subtle);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-cyan {
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
}

.btn-cyan:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

/* Badges */
.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================
   VIEW: HOME / OVERVIEW
   ========================================================== */
.hero-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 8px var(--accent-mint);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  line-height: 1.12;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.12rem;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Terminal */
.hero-terminal-container {
  display: flex;
  justify-content: center;
}

.terminal-window {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-close { background: #ff5f56; }
.dot-minimize { background: #ffbd2e; }
.dot-maximize { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.terminal-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-mint);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.terminal-output {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
  min-height: 220px;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-output .prompt { color: var(--accent-cyan); font-weight: 600; }
.terminal-output .out { color: var(--text-muted); }
.terminal-output .success { color: var(--accent-mint); }
.terminal-output .cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent-cyan);
  vertical-align: middle;
  animation: blink 1s infinite;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ==========================================================
   VIEW: PROJECTS
   ========================================================== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-card {
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.project-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-active {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-mint);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.status-flagship {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.status-unlocked {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.category-tag {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.project-links {
  display: flex;
  gap: 8px;
}

.card-btn {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  transition: all 0.2s;
}

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

.project-summary {
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tech-stack span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* ==========================================================
   VIEW: ARCHITECTURE & ABOUT
   ========================================================== */
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.arch-card {
  padding: 30px;
  position: relative;
}

.arch-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}

.arch-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.arch-text {
  font-size: 0.94rem;
  line-height: 1.65;
}

.tech-matrix-card {
  padding: 32px;
}

.matrix-heading {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.matrix-group-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 14px;
}

.matrix-group ul {
  list-style: none;
}

.matrix-group li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.matrix-group li::before {
  content: "—";
  color: var(--text-dim);
}

/* ==========================================================
   VIEW: COMMUNITY
   ========================================================== */
.community-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.community-card {
  padding: 36px;
}

.community-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.community-server-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-server-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.community-server-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.community-description {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.community-autojoin-box {
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.autojoin-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #818cf8;
  margin-bottom: 8px;
}

.autojoin-text {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.btn-discord-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--discord-purple);
  color: #fff;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  width: 100%;
}

.btn-discord-large:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.community-status-card {
  padding: 30px;
}

.card-subtitle {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #fff;
}

.status-tip {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.status-help {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.community-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(52, 211, 153, 0.3);
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.profile-status-badge {
  font-size: 0.8rem;
  color: var(--accent-mint);
  font-weight: 600;
}

.profile-note {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================
   VIEW: DEV TOOLS (/tools) - STRICTLY DEV ONLY
   ========================================================== */
.dev-locked-card {
  text-align: center;
  padding: 72px 24px;
  max-width: 640px;
  margin: 32px auto;
}

.locked-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.locked-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.locked-sub {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
  color: var(--text-muted);
}

.owner-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dev-tool-card {
  padding: 30px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tool-heading {
  font-size: 1.25rem;
}

.tool-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-weight: 700;
}

.tool-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.lookup-form {
  margin-bottom: 20px;
}

.lookup-input-row {
  display: flex;
  gap: 8px;
}

.lookup-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.lookup-input:focus {
  border-color: var(--accent-cyan);
}

.lookup-result {
  display: none;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.lookup-result.visible {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* Utility Suite Tabs */
.tools-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.tool-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tool-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tool-tab.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
}

.tool-tab-panel {
  display: none;
}

.tool-tab-panel.active-panel {
  display: block;
  animation: fadeIn 0.25s ease;
}

.tool-card-full {
  padding: 30px;
}

.tool-search-form {
  margin-bottom: 20px;
}

.tool-status-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
  min-height: 18px;
}

/* Player Inspector Result */
.inspector-result-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.player-profile-layout {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.player-3d-render-wrap {
  width: 120px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.player-3d-body {
  max-height: 140px;
  image-rendering: pixelated;
}

.player-profile-details {
  flex: 1;
  min-width: 260px;
}

.profile-username {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  min-width: 120px;
  text-transform: uppercase;
}

.code-copyable {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--accent-cyan);
  cursor: pointer;
  user-select: all;
  word-break: break-all;
}

.code-copyable:hover {
  border-color: var(--accent-cyan);
}

.profile-actions-row {
  margin-top: 14px;
}

/* Server Status Result */
.server-result-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.server-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.server-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  image-rendering: pixelated;
}

.server-hostname {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.server-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.motd-preview-box {
  background: #090c12;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.motd-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.minecraft-motd {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Quick Palette */
.quick-palette-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.palette-swatch {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.1s;
}

.palette-swatch:hover {
  transform: scale(1.15);
}

.palette-swatch.text-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.copy-toast-msg {
  font-size: 0.8rem;
  color: var(--accent-mint);
  font-weight: 600;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

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

.player-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.player-avatar {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  image-rendering: pixelated;
  border: 1px solid var(--border-subtle);
}

.player-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.player-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 700;
}

.status-pill.active {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-mint);
}

.status-pill.inactive {
  background: rgba(248, 113, 113, 0.15);
  color: var(--accent-red);
}

.player-uuid {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.player-rank {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  margin-top: 2px;
}

.cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.cosmetic-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.cosmetic-name {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.cosmetic-thumb {
  max-width: 44px;
  max-height: 44px;
  image-rendering: pixelated;
  margin: 0 auto 6px;
  display: block;
}

.cosmetic-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.cosmetic-status.found {
  color: var(--accent-mint);
  font-weight: 600;
}

.cosmetic-status.none {
  color: var(--text-dim);
}

.lookup-notice-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Controller Card */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.admin-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.admin-feedback {
  font-size: 0.82rem;
  color: var(--accent-mint);
  margin-top: 10px;
  min-height: 18px;
}

.dev-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 22px 0 18px;
}

.telemetry-subtitle {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #fff;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.telemetry-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.telemetry-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #fff;
}

.text-mint {
  color: var(--accent-mint);
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 36px 24px;
  margin-top: 48px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

/* ==========================================================
   Responsive Breakpoints
   ========================================================== */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 48px 20px 36px;
    gap: 36px;
  }

  .hero-title {
    font-size: 2.3rem;
  }

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

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

  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-layout {
    grid-template-columns: 1fr;
  }

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

  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 16, 23, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 16px 20px;
    gap: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-item {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .cosmetics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
