/* ============ DESIGN TOKENS ============ */
:root {
  --bg: #0A0E14;
  --bg-elevated: #10151D;
  --bg-card: #141B25;
  --bg-card-hover: #1A2230;
  --bg-deep: #060910;
  --border: rgba(120, 160, 220, 0.09);
  --border-strong: rgba(120, 160, 220, 0.22);
  --border-active: rgba(91, 155, 213, 0.5);
  --text: #E8ECF2;
  --text-muted: #7A8598;
  --text-subtle: #4A5468;
  --blue-deep: #1E4D6B;
  --blue-mid: #2B6E9B;
  --blue-bright: #5B9BD5;
  --blue-electric: #4FC3F7;
  --blue-ice: #B8E0F5;
  --blue-glow: rgba(79, 195, 247, 0.12);
  --green-ok: #4ADE80;
  --red-alert: #F87171;
  --orange-warn: #F59E0B;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --pixel: 'Press Start 2P', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
  cursor: none;
  min-height: 100vh;
}

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ============ CUSTOM CURSOR ============ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--blue-electric);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.15s, height 0.15s, background 0.15s;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--blue-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.2s, background 0.2s;
}
.cursor-ring.hover { width: 48px; height: 48px; border-color: var(--blue-electric); background: rgba(79, 195, 247, 0.08); }
.cursor-ring.click { width: 20px; height: 20px; background: rgba(79, 195, 247, 0.3); }

/* ============ BACKGROUND LAYERS ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 220, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 220, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 85%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(120, 160, 220, 0.008) 2px, rgba(120, 160, 220, 0.008) 4px);
  pointer-events: none;
  z-index: 2;
}

.ambient-dots {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.ambient-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--blue-ice), var(--blue-bright) 52%, rgba(79, 195, 247, 0.18) 100%);
  opacity: var(--o);
  box-shadow: 0 0 calc(var(--s) * 1.8) rgba(79, 195, 247, 0.28);
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  animation: ambientPulse var(--d) ease-in-out var(--delay) infinite;
}
@keyframes ambientPulse {
  0%, 100% { opacity: calc(var(--o) * 0.56); }
  50% { opacity: var(--o); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-dot { animation: none; }
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 3; }
@media (min-width: 900px) { .container { padding: 0 40px; } }

/* ============ STATUS BAR ============ */
.statusbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 32px;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}
.statusbar-left, .statusbar-right { display: flex; align-items: center; gap: 14px; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; }
.status-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-ok);
  box-shadow: 0 0 8px var(--green-ok);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

#envBadge { color: var(--blue-bright); }
#envBadge.staging { color: var(--orange-warn); }
#envBadge.development { color: var(--green-ok); }

.kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(120, 160, 220, 0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  color: var(--text);
  font-family: var(--mono);
}

@media (max-width: 700px) {
  .hide-mobile { display: none !important; }
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 32px; left: 0; right: 0;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  height: 60px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  max-width: 1320px;
  margin: 0 auto;
}
@media (min-width: 900px) { .nav-inner { padding: 0 40px; } }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; cursor: none; }
.brand-mark {
  width: 30px; height: 30px;
  background: var(--blue-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  position: relative;
  transition: transform 0.3s;
}
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-mark svg { width: 13px; height: 15px; }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; }
.brand-ver { font-family: var(--mono); font-size: 10px; color: var(--text-subtle); padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px; margin-left: 4px; }

.nav-menu { display: none; gap: 4px; align-items: center; }
@media (min-width: 900px) { .nav-menu { display: flex; } }

.nav-link {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
  cursor: none;
}
.nav-link:hover { color: var(--text); background: rgba(120, 160, 220, 0.05); }
.nav-link.active { color: var(--blue-bright); background: rgba(91, 155, 213, 0.08); }

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

.cmd-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
  cursor: none;
  transition: all 0.2s;
  min-width: 180px;
}
.cmd-trigger:hover { border-color: var(--border-strong); color: var(--text); }
.cmd-trigger svg { width: 13px; height: 13px; flex-shrink: 0; }
.cmd-trigger .cmd-text { flex: 1; text-align: left; }
@media (max-width: 700px) { .cmd-trigger { display: none; } }

.login-btn {
  font-family: var(--mono);
  font-size: 11px;
  padding: 7px 12px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: var(--text);
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  cursor: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(91, 155, 213, 0.25); }

/* ============ MAIN / PAGE ============ */
main { padding-top: 92px; min-height: calc(100vh - 92px); position: relative; z-index: 3; }
.page { display: none; padding: 32px 0 80px; animation: fadeIn 0.4s ease-out; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 60px 0 30px;
  margin-top: 60px;
  position: relative;
  z-index: 3;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand h3 { font-family: var(--serif); font-size: 22px; margin: 18px 0 8px; font-style: italic; font-weight: 400; }
.footer-brand p { color: var(--text-muted); font-size: 13px; max-width: 320px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.15s; cursor: none; }
.footer-col a:hover { color: var(--blue-bright); }
.footer-bottom { padding-top: 30px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--text-subtle); flex-wrap: wrap; gap: 14px; }
.easter-egg { cursor: none; transition: color 0.2s; }
.easter-egg:hover { color: var(--red-alert); }

/* ============ UTIL ============ */
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
em { color: var(--blue-bright); font-style: italic; font-family: var(--serif); font-variation-settings: 'opsz' 144, 'SOFT' 100; }
code { font-family: var(--mono); color: var(--blue-ice); font-size: 0.9em; }

a { color: var(--blue-bright); }
::selection { background: rgba(91, 155, 213, 0.3); color: var(--text); }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-deep); }
/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: none;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(91, 155, 213, 0.3); border-color: var(--border-active); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(120, 160, 220, 0.05); border-color: var(--border-active); }
.btn-danger { background: rgba(248, 113, 113, 0.1); color: var(--red-alert); border-color: rgba(248, 113, 113, 0.3); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.18); }
.btn-sm { padding: 6px 12px; font-size: 11px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ COMMAND PALETTE ============ */
.cmdk { position: fixed; inset: 0; background: rgba(6, 9, 16, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 200; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.cmdk.open { display: flex; }
.cmdk-modal { width: 90%; max-width: 580px; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); overflow: hidden; }
.cmdk-input { width: 100%; padding: 18px 20px; background: transparent; border: none; outline: none; color: var(--text); font-family: var(--mono); font-size: 14px; border-bottom: 1px solid var(--border); }
.cmdk-list { max-height: 360px; overflow-y: auto; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; cursor: none; transition: background 0.1s; font-size: 13px; }
.cmdk-item:hover, .cmdk-item.selected { background: rgba(91, 155, 213, 0.08); }
.cmdk-item-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--mono); font-size: 11px; color: var(--blue-bright); }
.cmdk-item-text { flex: 1; }
.cmdk-item-title { color: var(--text); font-size: 13px; }
.cmdk-item-sub { color: var(--text-subtle); font-size: 11px; font-family: var(--mono); }
.cmdk-footer { padding: 10px 20px; border-top: 1px solid var(--border); display: flex; gap: 16px; font-family: var(--mono); font-size: 10px; color: var(--text-subtle); }

/* ============ HERO ============ */
.hero { padding: 40px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 60px; } }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--blue-glow); border: 1px solid var(--border-active); border-radius: 100px; font-family: var(--mono); font-size: 11px; color: var(--blue-electric); margin-bottom: 24px; }
.hero-tag::before { content: '◆'; }
.hero h1 { font-family: var(--serif); font-size: clamp(48px, 7vw, 96px); line-height: 0.96; letter-spacing: -0.04em; margin-bottom: 24px; font-variation-settings: "opsz" 144; font-weight: 400; }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 540px; margin-bottom: 32px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ TERMINAL ============ */
.terminal { background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(20, 27, 37, 0.7); border-bottom: 1px solid var(--border); }
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-subtle); }
.term-dot:nth-child(1) { background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; }
.term-dot:nth-child(3) { background: #28c840; }
.term-title { font-family: var(--mono); font-size: 11px; color: var(--text-subtle); margin-left: 8px; }
.terminal-body { padding: 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; min-height: 360px; max-height: 420px; overflow-y: auto; cursor: text; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-prompt { color: var(--blue-bright); font-weight: 600; }
.term-success { color: var(--green-ok); }
.term-dim { color: var(--text-subtle); }
.term-hint { color: var(--blue-electric); }
.term-accent { color: var(--blue-ice); }
.term-error { color: var(--red-alert); }
.term-warn { color: var(--orange-warn); }
.term-command { color: var(--text); }
.term-input-line { display: flex; align-items: center; gap: 8px; }
.term-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-family: var(--mono); font-size: 12.5px; padding: 0; cursor: text; }

/* ============ STATS ============ */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg-card); padding: 24px; }
.stat-val { font-family: var(--serif); font-size: 42px; font-variation-settings: "opsz" 144; font-weight: 500; color: var(--blue-bright); margin-bottom: 4px; }
.stat-label { font-family: var(--mono); font-size: 11px; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.stat-sub { font-size: 12px; color: var(--text-subtle); }

/* ============ SECTIONS ============ */
.sec { padding: 80px 0; }
.sec-label { font-family: var(--mono); font-size: 11px; color: var(--blue-bright); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 14px; }
.sec-title { font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); font-variation-settings: "opsz" 144; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 18px; max-width: 800px; font-weight: 400; }
.sec-desc { font-size: 16px; color: var(--text-muted); max-width: 640px; margin-bottom: 50px; }

/* ============ MODULES ============ */
.modules { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
@media (min-width: 900px) { .modules { grid-template-columns: repeat(3, 1fr); } }
.module { background: var(--bg-card); padding: 28px; transition: background 0.2s; }
.module:hover { background: var(--bg-card-hover); }
.module-header { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--text-subtle); margin-bottom: 22px; }
.live { display: inline-flex; align-items: center; gap: 5px; color: var(--green-ok); font-size: 10px; }
.live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green-ok); animation: pulse 2s ease-in-out infinite; }
.module-title { font-family: var(--serif); font-size: 30px; line-height: 1.1; font-variation-settings: "opsz" 144; margin-bottom: 12px; font-weight: 400; }
.module-desc { color: var(--text-muted); font-size: 13.5px; margin-bottom: 18px; }
.demo { background: var(--bg-deep); border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-top: 16px; min-height: 130px; }
.server-list { display: flex; flex-direction: column; gap: 8px; }
.server-row { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.s-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-ok); flex-shrink: 0; }
.s-dot.warn { background: var(--orange-warn); }
.s-load { margin-left: auto; color: var(--text-subtle); }
.chat-window { display: flex; flex-direction: column; gap: 8px; }
.chat-msg { padding: 8px 12px; border-radius: 12px; font-size: 12px; max-width: 85%; }
.chat-msg.user { background: var(--blue-deep); color: var(--text); align-self: flex-end; }
.chat-msg.bot { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); align-self: flex-start; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); animation: typing 1.2s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.swatch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 12px; }
.swatch { aspect-ratio: 1; border-radius: 4px; border: 1px solid var(--border); }
.type-preview { font-family: var(--serif); font-size: 32px; font-variation-settings: "opsz" 144; font-style: italic; color: var(--blue-ice); text-align: center; padding: 8px 0; }
.type-meta { font-family: var(--mono); font-size: 10px; color: var(--text-subtle); text-align: center; }

/* ============ AYRA WIDGET ============ */
.ayra-fab { position: fixed; bottom: 26px; right: 26px; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-electric), var(--blue-mid)); border: none; cursor: none; box-shadow: 0 8px 24px rgba(79, 195, 247, 0.4); z-index: 90; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.ayra-fab:hover { transform: scale(1.06); }
.ayra-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-deep); color: var(--blue-electric); font-family: var(--serif); font-style: italic; font-size: 22px; display: flex; align-items: center; justify-content: center; font-variation-settings: "opsz" 144; }
.ayra-panel { position: fixed; bottom: 100px; right: 26px; width: 380px; max-width: calc(100vw - 32px); height: 550px; max-height: calc(100vh - 130px); background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); z-index: 91; display: none; flex-direction: column; overflow: hidden; }
.ayra-panel.open { display: flex; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.ayra-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.ayra-header-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-mid), var(--blue-electric)); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; color: var(--bg); font-variation-settings: "opsz" 144; font-size: 16px; }
.ayra-header-info h4 { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.ayra-header-info p { font-family: var(--mono); font-size: 10px; color: var(--green-ok); display: flex; align-items: center; gap: 5px; }
.ayra-header-info p::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green-ok); }
.ayra-header-info { flex: 1; min-width: 0; }
.ayra-clear, .ayra-expand, .ayra-close { width: 26px; height: 26px; background: transparent; border: none; color: var(--text-muted); cursor: none; padding: 4px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ayra-clear:hover, .ayra-expand:hover, .ayra-close:hover { color: var(--text); background: rgba(120, 160, 220, 0.06); }
.ayra-clear { color: var(--blue-bright); position: relative; }
.ayra-clear:hover { color: var(--text); }
.ayra-clear svg { display: none; }
.ayra-clear::before { content: ''; position: absolute; left: 6px; top: 7px; width: 14px; height: 9px; border-radius: 3px; background: currentColor; transform: rotate(-35deg); box-shadow: inset -5px 0 0 rgba(255, 255, 255, 0.35); }
.ayra-clear::after { content: ''; position: absolute; left: 7px; top: 17px; width: 13px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.7; }
.ayra-expand svg, .ayra-close svg { width: 17px; height: 17px; display: block; }
.ayra-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ayra-msg { padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; max-width: 88%; white-space: pre-wrap; word-break: break-word; }
.ayra-msg.user { background: var(--blue-deep); color: var(--text); align-self: flex-end; border-bottom-right-radius: 4px; }
.ayra-msg.bot { background: var(--bg-elevated); color: var(--text); align-self: flex-start; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ayra-msg.error { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); color: var(--red-alert); }
.ayra-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ayra-quick button { font-family: var(--mono); font-size: 11px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted); padding: 6px 10px; border-radius: 6px; cursor: none; transition: all 0.15s; }
.ayra-quick button:hover { border-color: var(--border-active); color: var(--text); background: rgba(91, 155, 213, 0.06); }
.ayra-input-wrap { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--bg-elevated); }
.ayra-input { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); font-family: var(--sans); font-size: 13px; outline: none; }
.ayra-input:focus { border-color: var(--border-active); }
.ayra-send { background: var(--blue-mid); border: none; color: var(--text); width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: none; transition: background 0.15s; }
.ayra-send:hover { background: var(--blue-bright); }
.ayra-send svg { width: 16px; height: 16px; }

/* ============ MATRIX ============ */
.matrix-rain { position: fixed; inset: 0; z-index: 9000; display: none; background: var(--bg-deep); }
.matrix-rain.active { display: block; }
.matrix-rain canvas { position: absolute; inset: 0; }
.matrix-close { position: fixed; top: 20px; right: 20px; background: rgba(0, 0, 0, 0.7); border: 1px solid var(--green-ok); color: var(--green-ok); font-family: var(--mono); font-size: 11px; padding: 8px 14px; border-radius: 6px; cursor: none; z-index: 9001; }

/* ============ TOAST ============ */
.toast-stack { position: fixed; bottom: 100px; left: 26px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.toast { background: var(--bg-card); border: 1px solid var(--border-strong); border-left: 3px solid var(--blue-bright); border-radius: 8px; padding: 12px 14px; font-size: 13px; color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); animation: toastIn 0.3s ease-out; }
.toast.success { border-left-color: var(--green-ok); }
.toast.error { border-left-color: var(--red-alert); }
.toast.warn { border-left-color: var(--orange-warn); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; background: rgba(6, 9, 16, 0.8); backdrop-filter: blur(8px); z-index: 250; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-card { background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 14px; max-width: 720px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.modal-close { background: transparent; border: none; color: var(--text-muted); cursor: none; padding: 4px; }
.modal-body { padding: 22px; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; color: var(--text); font-family: var(--sans); font-size: 14px; outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--border-active); }
.form-group textarea { resize: vertical; min-height: 90px; font-family: var(--mono); font-size: 13px; }

/* ============ BADGES ============ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 100px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--border); color: var(--text-muted); }
.badge.live, .badge.production { background: rgba(74, 222, 128, 0.1); color: var(--green-ok); border-color: rgba(74, 222, 128, 0.3); }
.badge.staging { background: rgba(245, 158, 11, 0.1); color: var(--orange-warn); border-color: rgba(245, 158, 11, 0.3); }
.badge.development { background: rgba(91, 155, 213, 0.1); color: var(--blue-bright); border-color: rgba(91, 155, 213, 0.3); }
.badge.admin { background: rgba(248, 113, 113, 0.1); color: var(--red-alert); border-color: rgba(248, 113, 113, 0.3); }

/* ===== CACHE CONSENT BANNER ===== */
.cache-consent { position: fixed; bottom: 20px; right: 20px; max-width: 420px; z-index: 9999; animation: slideUp 0.3s ease; }
.cache-consent-inner { background: var(--bg-card, #141B25); border: 1px solid var(--border, rgba(120,160,220,0.18)); border-radius: 12px; padding: 20px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.cache-consent-icon { color: var(--accent, #5B9BD5); font-size: 20px; }
.cache-consent-body h4 { margin: 0 0 6px 0; font-size: 15px; color: var(--text, #E8ECF2); }
.cache-consent-body p { margin: 6px 0; font-size: 13px; color: var(--text-muted, #7A8598); line-height: 1.5; }
.cache-consent-body ul { margin: 6px 0; padding-left: 18px; font-size: 13px; color: var(--text-muted, #7A8598); line-height: 1.6; }
.cache-consent-body ul li { margin: 2px 0; }
.cache-consent-fine { font-size: 11px; opacity: 0.7; }
.cache-consent-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.cache-consent-actions .btn { font-size: 13px; padding: 8px 14px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .cache-consent { left: 10px; right: 10px; bottom: 10px; max-width: none; } }

/* ===== AYRA BUTTERFLY (efeito sininho) ===== */
.ayra-butterfly-defs { position: absolute; }
.ayra-fab { overflow: visible; background: radial-gradient(circle at 50% 50%, rgba(103, 232, 249, 0.35), rgba(91, 155, 213, 0.2) 60%, rgba(10, 14, 20, 0.8) 100%); box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.6), 0 8px 24px rgba(103, 232, 249, 0.35), 0 0 36px rgba(103, 232, 249, 0.45); animation: ayraFloat 4s ease-in-out infinite, ayraPulse 2.8s ease-in-out infinite; }
.ayra-butterfly { color: #67E8F9; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; filter: drop-shadow(0 0 6px rgba(103, 232, 249, 0.9)) drop-shadow(0 0 12px rgba(103, 232, 249, 0.6)); animation: ayraFlap 1.6s ease-in-out infinite; }
.ayra-butterfly svg { width: 100%; height: 100%; }
.ayra-header-avatar { color: #67E8F9; background: rgba(103, 232, 249, 0.1); filter: drop-shadow(0 0 4px rgba(103, 232, 249, 0.7)); }
.ayra-header-avatar svg { display: block; }

.ayra-sparkle { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #B8F4FA; box-shadow: 0 0 8px #67E8F9, 0 0 16px #67E8F9; pointer-events: none; opacity: 0; }
.ayra-sparkle.s1 { top: 6px; left: 50%; animation: sparkle1 3s ease-in-out infinite; }
.ayra-sparkle.s2 { bottom: 10px; left: 12px; animation: sparkle2 3.4s ease-in-out infinite 0.6s; }
.ayra-sparkle.s3 { top: 14px; right: 8px; animation: sparkle3 2.6s ease-in-out infinite 1.2s; }

@keyframes ayraFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ayraPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.6), 0 8px 24px rgba(103, 232, 249, 0.35), 0 0 36px rgba(103, 232, 249, 0.45); } 50% { box-shadow: 0 0 0 8px rgba(103, 232, 249, 0), 0 8px 28px rgba(103, 232, 249, 0.5), 0 0 56px rgba(103, 232, 249, 0.7); } }
@keyframes ayraFlap { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(0.92, 1.02); } }
@keyframes sparkle1 { 0%, 100% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 60% { opacity: 0.6; transform: translate(-50%, -18px); } }
@keyframes sparkle2 { 0%, 100% { opacity: 0; transform: translate(0, 0); } 40% { opacity: 1; transform: translate(-10px, -8px); } 70% { opacity: 0; transform: translate(-18px, -16px); } }
@keyframes sparkle3 { 0%, 100% { opacity: 0; transform: translate(0, 0); } 35% { opacity: 1; transform: translate(8px, -6px); } 65% { opacity: 0; transform: translate(16px, -14px); } }

@media (prefers-reduced-motion: reduce) { .ayra-fab, .ayra-butterfly, .ayra-sparkle { animation: none !important; } }

/* ===== REDE — guest banner + composer expandido + tópicos pendentes ===== */
.rede-guest-banner { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px; margin-bottom: 24px; background: linear-gradient(135deg, rgba(91, 155, 213, 0.08), rgba(103, 232, 249, 0.05)); border: 1px solid rgba(103, 232, 249, 0.25); border-radius: 12px; }
.rede-guest-icon { font-size: 28px; }
.rede-guest-body h3 { margin: 0 0 6px 0; color: var(--text); font-size: 18px; }
.rede-guest-body p { margin: 0 0 12px 0; color: var(--text-muted); font-size: 14px; }
.rede-guest-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rede-guest-fade { padding: 30px; text-align: center; background: linear-gradient(180deg, transparent, rgba(91, 155, 213, 0.08)); margin-top: 12px; border-radius: 10px; }

.rede-admin-pending { padding: 16px; background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 10px; margin-bottom: 20px; }
.rede-admin-head { font-family: var(--mono); font-size: 12px; color: var(--orange-warn); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.rede-pending-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; flex-wrap: wrap; }
.rede-pending-row strong { color: var(--text); }
.rede-pending-meta { font-size: 11px; color: var(--text-muted); flex: 1; min-width: 100px; }

.feed-composer-expanded { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.feed-composer-expanded textarea { width: 100%; padding: 10px 12px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 14px; resize: vertical; min-height: 60px; }
.feed-composer-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.feed-composer-row select { padding: 8px 10px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; }
.feed-composer-row input { padding: 8px 12px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; }

.rede-propose-btn { width: 100%; margin-top: 10px; padding: 8px; background: rgba(91, 155, 213, 0.1); border: 1px dashed var(--border); border-radius: 8px; color: var(--blue-bright); font-size: 12px; cursor: pointer; font-family: var(--mono); }
.rede-propose-btn:hover { background: rgba(91, 155, 213, 0.18); }
.rede-propose-hint { font-size: 11px; color: var(--text-subtle); padding: 6px 4px; line-height: 1.4; }

.post-item-preview { opacity: 0.85; cursor: default !important; }
.post-item-preview .vote-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ===== TERMINAL FULLSCREEN ===== */
.term-fullscreen-btn { margin-left: auto; background: transparent; border: 1px solid var(--border); color: var(--text-muted); width: 26px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; cursor: pointer; transition: all 0.15s; }
.term-fullscreen-btn:hover { color: var(--blue-electric); border-color: var(--blue-electric); background: rgba(79, 195, 247, 0.08); }
.terminal-fullscreen { position: fixed !important; inset: 0 !important; z-index: 9998 !important; border-radius: 0 !important; margin: 0 !important; max-width: none !important; width: 100vw !important; height: 100vh !important; display: flex !important; flex-direction: column !important; animation: termFsIn 0.2s ease-out; }
.terminal-fullscreen .terminal-body { flex: 1; max-height: none !important; height: auto !important; }
body.terminal-fs-active { overflow: hidden; }
body.terminal-fs-active nav, body.terminal-fs-active footer, body.terminal-fs-active .statusbar, body.terminal-fs-active .ayra-fab { display: none !important; }
@keyframes termFsIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

/* ===== ADMIN ASSETS GRID ===== */
.admin-assets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.admin-asset-card { padding: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; }
.admin-asset-name { font-size: 12px; color: var(--text); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-asset-meta { font-size: 10px; color: var(--text-subtle); font-family: var(--mono); margin-top: 2px; }
/* ============ PAGE HERO (generic) ============ */
.page-hero { padding: 30px 0 40px; max-width: 800px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em; margin: 14px 0 18px; font-variation-settings: "opsz" 144; font-weight: 400; }
.page-hero p { font-size: 16px; color: var(--text-muted); max-width: 640px; }

/* ============ PROJETOS ============ */
.explorer { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.explorer-tabs { display: flex; gap: 2px; padding: 12px 12px 0; background: var(--bg-elevated); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.explorer-tab { padding: 8px 14px; background: transparent; border: 1px solid transparent; border-bottom: none; border-radius: 6px 6px 0 0; color: var(--text-muted); font-family: var(--mono); font-size: 12px; cursor: none; transition: all 0.15s; }
.explorer-tab:hover { color: var(--text); }
.explorer-tab.active { background: var(--bg-card); border-color: var(--border); color: var(--blue-bright); }
.explorer-body { padding: 4px; }
.project-detail { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 22px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.project-detail:hover { background: var(--bg-card-hover); }
.project-detail:last-child { border-bottom: none; }
@media (max-width: 700px) { .project-detail { grid-template-columns: 1fr; } }
.proj-visual { width: 64px; height: 64px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--blue-bright); }
.proj-visual svg { width: 28px; height: 28px; }
.proj-info h3 { font-family: var(--serif); font-size: 24px; font-variation-settings: "opsz" 144; font-weight: 500; margin-bottom: 8px; }
.proj-meta-line { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--text-subtle); margin-bottom: 12px; }
.proj-status { padding: 2px 8px; border-radius: 100px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.proj-status.live { background: rgba(74, 222, 128, 0.1); color: var(--green-ok); border: 1px solid rgba(74, 222, 128, 0.3); }
.proj-status.done { background: rgba(91, 155, 213, 0.1); color: var(--blue-bright); border: 1px solid rgba(91, 155, 213, 0.3); }
.proj-status.wip { background: rgba(245, 158, 11, 0.1); color: var(--orange-warn); border: 1px solid rgba(245, 158, 11, 0.3); }
.proj-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; line-height: 1.6; }
.proj-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-stack span { font-family: var(--mono); font-size: 10px; color: var(--text-muted); padding: 3px 8px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 4px; }

/* ============ REDE / FÓRUM ============ */
.rede-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .rede-layout { grid-template-columns: 220px 1fr 260px; } }
.rede-sidebar, .trending { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; height: fit-content; }
.sidebar-label { font-family: var(--mono); font-size: 10px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; padding: 0 6px; }
.channel { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--text-muted); cursor: none; transition: background 0.15s; }
.channel:hover { background: rgba(120, 160, 220, 0.05); color: var(--text); }
.channel.active { background: rgba(91, 155, 213, 0.08); color: var(--blue-bright); }
.hash { color: var(--text-subtle); }
.channel .count { margin-left: auto; font-size: 10px; color: var(--text-subtle); }
.feed-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.feed-title { font-family: var(--serif); font-size: 24px; font-variation-settings: "opsz" 144; }
.feed-sort { display: flex; gap: 4px; }
.sort-btn { background: transparent; border: 1px solid var(--border); padding: 5px 10px; border-radius: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); cursor: none; transition: all 0.15s; }
.sort-btn.active { color: var(--blue-bright); border-color: var(--border-active); }
.feed-composer { display: flex; gap: 10px; padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; }
.feed-composer input { flex: 1; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; color: var(--text); outline: none; font-size: 13px; }
.feed-composer input:focus { border-color: var(--border-active); }
.post-item { display: grid; grid-template-columns: 50px 1fr; gap: 14px; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; transition: border-color 0.15s; cursor: none; }
.post-item:hover { border-color: var(--border-strong); }
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vote-btn { background: transparent; border: none; color: var(--text-subtle); font-size: 14px; cursor: none; padding: 2px; transition: color 0.15s; }
.vote-btn:hover { color: var(--text); }
.vote-btn.upvoted { color: var(--blue-electric); }
.vote-count { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text); }
.post-content { min-width: 0; }
.post-head { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--text-subtle); margin-bottom: 6px; }
.post-channel { color: var(--blue-bright); }
.post-author { color: var(--text); }
.post-title { font-family: var(--serif); font-size: 18px; font-variation-settings: "opsz" 144; font-weight: 500; margin-bottom: 6px; line-height: 1.3; }
.post-excerpt { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 10px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.post-tag { font-family: var(--mono); font-size: 10px; padding: 2px 7px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); }
.post-footer { display: flex; gap: 16px; font-family: var(--mono); font-size: 11px; color: var(--text-subtle); flex-wrap: wrap; }
.post-footer span { cursor: none; transition: color 0.15s; }
.post-footer span:hover { color: var(--text); }
.trending h4 { font-family: var(--mono); font-size: 11px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
.trend-item { padding: 10px 0; border-bottom: 1px solid var(--border); cursor: none; }
.trend-item:last-child { border-bottom: none; }
.trend-rank { font-family: var(--mono); font-size: 10px; color: var(--text-subtle); margin-bottom: 4px; }
.trend-title { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.trend-meta { font-family: var(--mono); font-size: 10px; color: var(--text-subtle); }

/* ============ POST DETAIL ============ */
.post-detail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 20px; }
.post-detail-card h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); margin: 14px 0 18px; font-variation-settings: "opsz" 144; font-weight: 500; line-height: 1.15; }
.post-detail-meta { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--text-subtle); margin-bottom: 12px; }
.post-detail-body { color: var(--text); font-size: 15px; line-height: 1.7; }
.post-detail-body p { margin-bottom: 14px; }
.post-detail-body code { background: var(--bg-deep); padding: 2px 6px; border-radius: 4px; }
.comments { margin-top: 30px; }
.comments h3 { font-family: var(--mono); font-size: 12px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.comment { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.comment-head { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--text-subtle); margin-bottom: 6px; }
.comment-author { color: var(--blue-bright); }
.comment-body { font-size: 13.5px; color: var(--text); line-height: 1.55; }
.comment-composer { display: flex; gap: 8px; margin-top: 16px; }
.comment-composer textarea { flex: 1; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); font-family: var(--sans); font-size: 13.5px; outline: none; min-height: 70px; resize: vertical; }

/* ============ BLOG ============ */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: all 0.2s; cursor: none; }
.blog-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.blog-thumb { height: 160px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.blog-thumb svg { width: 60px; height: 60px; opacity: 0.7; }
.blog-thumb.alt1 { background: linear-gradient(135deg, var(--blue-deep), var(--bg-deep)); }
.blog-thumb.alt2 { background: linear-gradient(135deg, var(--bg-elevated), var(--blue-deep)); }
.blog-thumb.alt3 { background: linear-gradient(135deg, var(--bg-deep), var(--blue-mid)); }
.blog-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 10px; color: var(--text-subtle); margin-bottom: 10px; }
.blog-meta .cat { color: var(--blue-bright); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-title { font-family: var(--serif); font-size: 20px; font-variation-settings: "opsz" 144; line-height: 1.2; margin-bottom: 10px; font-weight: 500; }
.blog-excerpt { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; flex: 1; margin-bottom: 14px; }
.blog-footer { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--text-subtle); }

/* ============ BLOG POST DETAIL ============ */
.blog-post { max-width: 760px; margin: 0 auto; }
.blog-post-hero { padding: 20px 0 40px; }
.blog-post-hero h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); line-height: 1.1; margin: 16px 0; font-variation-settings: "opsz" 144; font-weight: 500; }
.blog-post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--text-subtle); margin-bottom: 16px; }
.blog-post-body { font-size: 16px; line-height: 1.75; color: var(--text); }
.blog-post-body h2 { font-family: var(--serif); font-size: 28px; margin: 36px 0 14px; font-variation-settings: "opsz" 144; font-weight: 500; line-height: 1.2; }
.blog-post-body h3 { font-family: var(--serif); font-size: 22px; margin: 28px 0 10px; font-variation-settings: "opsz" 144; font-weight: 500; }
.blog-post-body p { margin-bottom: 16px; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 16px 22px; }
.blog-post-body li { margin-bottom: 6px; }
.blog-post-body pre { background: var(--bg-deep); border: 1px solid var(--border); border-radius: 8px; padding: 14px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; margin-bottom: 16px; }
.blog-post-body code { background: var(--bg-deep); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.blog-post-body blockquote { border-left: 3px solid var(--blue-bright); padding: 4px 18px; margin: 18px 0; color: var(--text-muted); font-style: italic; }

/* ============ CREW ============ */
.crew-intro { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--text-muted); max-width: 720px; padding: 30px 0; line-height: 1.5; font-variation-settings: "opsz" 144; }
.crew-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .crew-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .crew-grid { grid-template-columns: repeat(3, 1fr); } }
.member-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color 0.2s; }
.member-card:hover { border-color: var(--border-strong); }
.member-card.featured { grid-column: 1 / -1; }
.member-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--text-subtle); }
.member-header .rank { color: var(--blue-bright); }
.featured-body { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 26px; }
@media (min-width: 800px) { .featured-body { grid-template-columns: 220px 1fr; } }
.member-photo-wrap { position: relative; }
.member-photo { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 80px; font-style: italic; color: var(--blue-bright); font-variation-settings: "opsz" 144; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo-corner { position: absolute; top: 8px; right: 8px; background: var(--bg-deep); border: 1px solid var(--border-strong); padding: 3px 8px; border-radius: 4px; font-family: var(--mono); font-size: 10px; color: var(--blue-bright); }
.member-name { font-family: var(--serif); font-size: 36px; font-variation-settings: "opsz" 144; line-height: 1; margin-bottom: 4px; font-weight: 500; }
.member-handle { font-family: var(--mono); font-size: 12px; color: var(--text-subtle); margin-bottom: 14px; }
.member-role { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.member-role span { font-family: var(--mono); font-size: 10px; padding: 3px 8px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); }
.member-bio { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin-bottom: 18px; }
.member-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.member-stats > div { background: var(--bg-elevated); padding: 12px 8px; text-align: center; }
.mstat-val { font-family: var(--serif); font-size: 22px; color: var(--blue-bright); font-variation-settings: "opsz" 144; font-weight: 500; }
.mstat-label { font-family: var(--mono); font-size: 9px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.06em; }
.member-skills { margin-bottom: 18px; }
.member-skills h5, .member-card h5 { font-family: var(--mono); font-size: 10px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.skill-bar { margin-bottom: 8px; }
.skill-bar-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; margin-bottom: 4px; }
.skill-bar-track { height: 4px; background: var(--bg-deep); border-radius: 2px; overflow: hidden; }
.skill-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue-mid), var(--blue-electric)); }
.member-achievements { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 700px) { .member-achievements { grid-template-columns: repeat(3, 1fr); } }
.achievement { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 6px; padding: 8px; font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.achievement .icon { font-size: 14px; }
.member-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.member-links a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); text-decoration: none; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; transition: all 0.15s; cursor: none; }
.member-links a:hover { color: var(--text); border-color: var(--border-active); }
.member-links svg { width: 12px; height: 12px; }
.member-card.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; border-style: dashed; }
.slot-icon { font-family: var(--mono); font-size: 22px; color: var(--blue-bright); margin-bottom: 10px; }
.member-card.slot h4 { font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }
.member-card.slot p { color: var(--text-muted); font-size: 13px; }

/* ============ LOGIN ============ */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 30px 20px; }
.login-card { width: 100%; max-width: 420px; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; }
.login-header { padding: 28px 26px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.login-header .brand-mark { width: 48px; height: 48px; margin: 0 auto 14px; }
.login-header h2 { font-family: var(--serif); font-size: 28px; font-variation-settings: "opsz" 144; font-weight: 500; margin-bottom: 6px; }
.login-header p { color: var(--text-muted); font-size: 13px; }
.login-body { padding: 22px 26px; }
.oauth-btn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: var(--mono); font-size: 12px; text-decoration: none; margin-bottom: 8px; transition: all 0.15s; cursor: none; }
.oauth-btn:hover { border-color: var(--border-active); }
.oauth-btn svg { width: 16px; height: 16px; }
.login-divider { text-align: center; font-family: var(--mono); font-size: 10px; color: var(--text-subtle); margin: 18px 0 14px; position: relative; }
.login-divider::before, .login-divider::after { content: ''; position: absolute; top: 50%; width: 35%; height: 1px; background: var(--border); }
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }
.login-submit { width: 100%; padding: 11px; background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep)); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; font-family: var(--mono); font-size: 12px; cursor: none; margin-top: 6px; transition: all 0.2s; }
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(91, 155, 213, 0.3); }
.login-footer { padding: 16px 26px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--text-subtle); border-top: 1px solid var(--border); }
.login-footer a { color: var(--blue-bright); text-decoration: none; }

/* ============ PROFILE ============ */
.profile-header { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 30px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 22px; }
@media (min-width: 700px) { .profile-header { grid-template-columns: 130px 1fr; } }
.profile-avatar { width: 130px; height: 130px; border-radius: 14px; background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid)); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 60px; color: var(--blue-ice); font-variation-settings: "opsz" 144; font-style: italic; border: 1px solid var(--border-strong); }
.profile-name { font-family: var(--serif); font-size: 36px; font-variation-settings: "opsz" 144; font-weight: 500; margin-bottom: 4px; }
.profile-handle { font-family: var(--mono); font-size: 13px; color: var(--text-subtle); margin-bottom: 12px; }
.profile-bio { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; max-width: 640px; }
.profile-stats { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; }
.profile-stats span strong { color: var(--text); font-size: 16px; margin-right: 6px; }
.profile-stats span { color: var(--text-subtle); }
.profile-tabs { display: flex; gap: 4px; padding: 8px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.profile-tab { padding: 8px 14px; border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--text-muted); cursor: none; background: transparent; border: 1px solid transparent; transition: all 0.15s; }
.profile-tab.active { background: var(--bg-card); color: var(--blue-bright); border-color: var(--border); }

/* ============ REPOS ============ */
.repo-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .repo-grid { grid-template-columns: repeat(2, 1fr); } }
.repo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; cursor: none; transition: all 0.15s; text-decoration: none; color: inherit; display: block; }
.repo-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.repo-name { font-family: var(--mono); font-size: 14px; color: var(--blue-bright); margin-bottom: 6px; }
.repo-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
.repo-meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 10px; color: var(--text-subtle); }
.repo-meta .lang::before { content: '◆ '; color: var(--blue-bright); }
.repo-fileview { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.repo-fileview-head { padding: 12px 16px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12px; }
.repo-files { display: grid; grid-template-columns: 240px 1fr; min-height: 480px; }
@media (max-width: 700px) { .repo-files { grid-template-columns: 1fr; } }
.repo-tree { background: var(--bg-elevated); border-right: 1px solid var(--border); padding: 10px 0; }
.repo-tree-item { padding: 7px 16px; font-family: var(--mono); font-size: 12px; color: var(--text-muted); cursor: none; transition: background 0.1s; display: flex; align-items: center; gap: 6px; }
.repo-tree-item:hover { background: rgba(120, 160, 220, 0.05); color: var(--text); }
.repo-tree-item.active { background: rgba(91, 155, 213, 0.08); color: var(--blue-bright); }
.repo-tree-item.folder::before { content: '▸'; }
.repo-tree-item.file::before { content: '·'; color: var(--text-subtle); }
.repo-content { padding: 16px; overflow-x: auto; }
.repo-content pre { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; color: var(--text); }
.repo-empty { padding: 40px; text-align: center; color: var(--text-subtle); font-family: var(--mono); font-size: 12px; }

/* ============ ADMIN ============ */
.admin-tabs { display: flex; gap: 6px; padding: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab { padding: 8px 14px; border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--text-muted); cursor: none; background: transparent; border: 1px solid transparent; }
.admin-tab.active { background: var(--bg-elevated); color: var(--blue-bright); border-color: var(--border); }
.admin-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.admin-section h3 { font-family: var(--serif); font-size: 22px; font-variation-settings: "opsz" 144; font-weight: 500; margin-bottom: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { font-family: var(--mono); font-size: 10px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.1em; }
.admin-table td .mono { font-family: var(--mono); font-size: 12px; }
.admin-table tr:hover { background: rgba(120, 160, 220, 0.03); }
.admin-actions { display: flex; gap: 6px; }
.env-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.env-option { padding: 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; cursor: none; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.env-option.active { border-color: var(--border-active); color: var(--blue-bright); background: rgba(91, 155, 213, 0.05); }

/* ============ AYRA PORTAL PAGE ============ */
.ayra-portal { display: grid; grid-template-columns: 1fr; gap: 16px; min-height: calc(100vh - 130px); }
@media (min-width: 900px) { .ayra-portal { grid-template-columns: 280px 1fr; } }
.ayra-side { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; height: fit-content; }
.ayra-side h4 { font-family: var(--mono); font-size: 11px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
.ayra-conv-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.ayra-conv { padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--text-muted); cursor: none; transition: background 0.15s; border: 1px solid transparent; }
.ayra-conv:hover { background: rgba(120, 160, 220, 0.05); }
.ayra-conv.active { background: rgba(91, 155, 213, 0.08); color: var(--blue-bright); border-color: var(--border-active); }
.ayra-conv-title { font-size: 13px; margin-bottom: 2px; }
.ayra-conv-meta { font-family: var(--mono); font-size: 10px; color: var(--text-subtle); }
.ayra-main { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; display: flex; flex-direction: column; min-height: 70vh; overflow: hidden; }
.ayra-main-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; background: var(--bg-elevated); }
.ayra-main-header .hero-tag { margin: 0; }
.ayra-main-messages { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ayra-main-msg { padding: 14px 18px; border-radius: 14px; font-size: 14.5px; line-height: 1.6; max-width: 78%; white-space: pre-wrap; word-break: break-word; }
.ayra-main-msg.user { background: var(--blue-deep); color: var(--text); align-self: flex-end; border-bottom-right-radius: 4px; }
.ayra-main-msg.bot { background: var(--bg-elevated); color: var(--text); align-self: flex-start; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ayra-main-msg.error { border-color: rgba(248, 113, 113, 0.3); color: var(--red-alert); }
.ayra-main-input-wrap { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; background: var(--bg-elevated); }
.ayra-main-input { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; color: var(--text); font-family: var(--sans); font-size: 14.5px; outline: none; }
.ayra-main-input:focus { border-color: var(--border-active); }
.ayra-main-send { background: var(--blue-mid); border: none; color: var(--text); padding: 0 20px; border-radius: 10px; cursor: none; font-family: var(--mono); font-size: 13px; transition: background 0.15s; display: flex; align-items: center; gap: 8px; }
.ayra-main-send:hover { background: var(--blue-bright); }
.ayra-main-send svg { width: 16px; height: 16px; }
.ayra-empty { text-align: center; padding: 60px 20px; color: var(--text-subtle); }
.ayra-empty h2 { font-family: var(--serif); font-size: 32px; color: var(--text); margin-bottom: 10px; font-variation-settings: "opsz" 144; }
.ayra-empty p { font-size: 14px; max-width: 400px; margin: 0 auto 24px; line-height: 1.6; }
.ayra-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 480px; margin: 0 auto; }
.ayra-suggestion { padding: 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; text-align: left; cursor: none; transition: all 0.15s; font-size: 13px; color: var(--text-muted); }
.ayra-suggestion:hover { border-color: var(--border-active); color: var(--text); }

/* ============ 404 ============ */
.notfound { text-align: center; padding: 80px 20px; }
.notfound-code { font-family: var(--pixel); font-size: 64px; color: var(--blue-bright); margin-bottom: 20px; }
.notfound h2 { font-family: var(--serif); font-size: 32px; margin-bottom: 12px; }
.notfound p { color: var(--text-muted); margin-bottom: 24px; }

/* ============ PORTFOLIO ============ */
.portfolio-filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px; }
.portfolio-filter { padding: 7px 14px; border-radius: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); cursor: none; background: transparent; border: 1px solid transparent; transition: all 0.15s; }
.portfolio-filter:hover { color: var(--text); }
.portfolio-filter.active { background: var(--bg-elevated); color: var(--blue-bright); border-color: var(--border-active); }
.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.portfolio-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: all 0.2s; cursor: none; display: flex; flex-direction: column; }
.portfolio-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.portfolio-thumb { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-out; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.04); }
.portfolio-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.portfolio-cat { font-family: var(--mono); font-size: 10px; color: var(--blue-bright); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.portfolio-title { font-family: var(--serif); font-size: 19px; font-variation-settings: "opsz" 144; font-weight: 500; line-height: 1.25; margin-bottom: 6px; }
.portfolio-client { font-family: var(--mono); font-size: 11px; color: var(--text-subtle); margin-bottom: 10px; }
.portfolio-blurb { color: var(--text-muted); font-size: 13px; line-height: 1.55; flex: 1; }
.portfolio-meta-foot { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 10px; color: var(--text-subtle); }

/* ============ PORTFOLIO DETAIL ============ */
.portfolio-detail { max-width: 1000px; margin: 0 auto; }
.portfolio-detail-hero { padding: 20px 0 30px; }
.portfolio-detail-meta { display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--text-subtle); margin-bottom: 10px; }
.portfolio-detail-meta .pill { padding: 3px 10px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 100px; }
.portfolio-detail-hero h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 12px 0; font-variation-settings: "opsz" 144; font-weight: 500; }
.portfolio-detail-client { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--text-muted); margin-bottom: 6px; }
.portfolio-detail-blurb { font-size: 16px; color: var(--text); line-height: 1.65; max-width: 720px; margin-bottom: 20px; }
.portfolio-gallery { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 30px 0; }
@media (min-width: 800px) { .portfolio-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.portfolio-gallery figure { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.portfolio-gallery img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.portfolio-gallery figcaption { padding: 10px 14px; font-family: var(--mono); font-size: 11px; color: var(--text-subtle); border-top: 1px solid var(--border); }
.portfolio-side { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 28px; }
@media (min-width: 700px) { .portfolio-side { grid-template-columns: 1fr 1fr; } }
.portfolio-side h4 { font-family: var(--mono); font-size: 10px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-pill { font-family: var(--mono); font-size: 11px; padding: 5px 11px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 100px; color: var(--text); }
.skill-pill.soft { color: var(--blue-bright); border-color: rgba(91, 155, 213, 0.3); }
.skill-pill.tool { color: var(--blue-ice); border-color: rgba(184, 224, 245, 0.3); }

/* ============ SKILLS BLOCK (perfil/crew) ============ */
.skills-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-top: 18px; }
.skills-block h3 { font-family: var(--serif); font-size: 22px; font-variation-settings: "opsz" 144; font-weight: 500; margin-bottom: 14px; }
.skills-cols { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .skills-cols { grid-template-columns: 1fr 1fr; } }
.skill-col h5 { font-family: var(--mono); font-size: 10px; color: var(--blue-bright); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px; }

/* ============ LIGHTBOX ============ */
.lightbox { position: fixed; inset: 0; background: rgba(6, 9, 16, 0.95); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 92vh; object-fit: contain; }
.lightbox-close { position: fixed; top: 20px; right: 20px; background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text); padding: 8px 14px; border-radius: 8px; font-family: var(--mono); font-size: 12px; cursor: none; }

/* ============ IMAGE TREATMENT (site aesthetic) ============ */
.portfolio-thumb {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10,14,20,0) 0%, rgba(10,14,20,0.5) 100%),
    var(--bg-deep);
}
.portfolio-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 220, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-card:hover .portfolio-thumb::after { opacity: 1; }
.portfolio-thumb img {
  filter: brightness(0.96) saturate(0.92) contrast(1.04);
  transition: transform 0.4s ease-out, filter 0.3s;
}
.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.04);
  filter: brightness(1.04) saturate(1.04) contrast(1.02);
}
.portfolio-thumb::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(120, 160, 220, 0.08), inset 0 -40px 60px -30px var(--bg-deep);
  pointer-events: none;
  z-index: 2;
}

/* tech project marker — corner badge */
.portfolio-tech-marker {
  position: absolute; top: 10px; right: 10px;
  background: rgba(6, 9, 16, 0.85);
  border: 1px solid var(--border-strong);
  color: var(--blue-bright);
  font-family: var(--mono); font-size: 9px;
  padding: 3px 8px; border-radius: 100px;
  letter-spacing: 0.08em; text-transform: uppercase;
  z-index: 3; backdrop-filter: blur(4px);
}

/* ============ LIVE SITE PREVIEW (iframe in detail) ============ */
.portfolio-live { background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; margin: 28px 0; }
.portfolio-live-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-card); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--text-subtle); }
.portfolio-live-bar .dots { display: flex; gap: 6px; }
.portfolio-live-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--text-subtle); }
.portfolio-live-bar .dots span:nth-child(1) { background: #ff5f57; }
.portfolio-live-bar .dots span:nth-child(2) { background: #febc2e; }
.portfolio-live-bar .dots span:nth-child(3) { background: #28c840; }
.portfolio-live-bar .url { flex: 1; padding: 4px 10px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 6px; color: var(--blue-bright); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-live-bar .open-new { color: var(--blue-bright); text-decoration: none; cursor: none; }
.portfolio-live-bar .open-new:hover { color: var(--blue-electric); }
.portfolio-live-frame { width: 100%; height: 640px; border: none; background: white; display: block; }
.portfolio-live-pages { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--border); flex-wrap: wrap; background: var(--bg-card); }
.portfolio-live-pages button { font-family: var(--mono); font-size: 10px; padding: 5px 10px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted); border-radius: 6px; cursor: none; transition: all 0.15s; }
.portfolio-live-pages button:hover { border-color: var(--border-active); color: var(--text); }
.portfolio-live-pages button.active { background: var(--blue-deep); color: var(--blue-ice); border-color: var(--border-active); }

/* ============ SCRIPTS / DELIVERABLES LIST ============ */
.portfolio-scripts, .portfolio-deliverables { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 24px 0; }
.portfolio-scripts h4, .portfolio-deliverables h4 { font-family: var(--mono); font-size: 11px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.script-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: start; }
.script-item:last-child { border-bottom: none; }
.script-name { font-family: var(--mono); font-size: 12.5px; color: var(--blue-bright); }
.script-desc { color: var(--text); font-size: 13px; line-height: 1.5; }
.script-desc small { display: block; color: var(--text-subtle); font-family: var(--mono); font-size: 10.5px; margin-top: 2px; }
.script-tag { font-family: var(--mono); font-size: 9px; padding: 3px 8px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 100px; color: var(--blue-ice); align-self: center; white-space: nowrap; }
.deliv-item { display: flex; gap: 10px; padding: 8px 0; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--text); border-bottom: 1px solid var(--border); }
.deliv-item:last-child { border-bottom: none; }
.deliv-item::before { content: '◆'; color: var(--blue-bright); flex-shrink: 0; }

/* ============ SKILL ARTIFACTS (linked items per skill) ============ */
.skill-bar { margin-bottom: 14px; }
.skill-artifacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.skill-artifact { font-family: var(--mono); font-size: 9.5px; padding: 2px 7px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 4px; color: var(--blue-ice); text-decoration: none; cursor: none; transition: all 0.15s; }
.skill-artifact:hover { border-color: var(--border-active); color: var(--blue-electric); background: var(--bg-elevated); }
