:root {
  --bg: #060a0f;
  --surface: #0d1117;
  --border: #1a2332;
  --green: #00ff88;
  --green-dim: #00ff8833;
  --green-mid: #00cc6a;
  --text: #c9d1d9;
  --muted: #8b949e;
  --white: #f0f6fc;
  --red: #ff4757;
  --blue: #58a6ff;
  --yellow: #ffd700;
  --purple: #bd93f9;
  --orange: #ff9f43;
  --cyan: #00d2d3;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,255,136,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(6,10,15,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-logo {
  font-family: 'Share Tech Mono', monospace;
  color: var(--green);
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-logo { display: inline-flex; align-items: center; gap: 0.65rem; }
.nav-logo .nav-prefix { color: var(--muted); }
.nav-right { display: flex; align-items: center; gap: 0.3rem; }
.nav-members {
  font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--muted);
  text-decoration: none; padding: 0.6rem 0.9rem; transition: color 0.2s;
}
.nav-members:hover { color: var(--green); }
.nav-avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; object-fit: cover;
  background: var(--surface);
  border: 2px solid var(--green);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.12), 0 0 16px rgba(0,255,136,0.28);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  font-family: 'Syne', sans-serif;
}

nav ul a:hover, nav ul a.active { color: var(--green); }

.nav-contact {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: all 0.2s;
}
.nav-contact:hover { color: var(--green); border-color: var(--green); background: var(--green-dim); }

/* PAGE WRAPPER */
.page {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
}

/* PAGE HEADER */
.page-header {
  margin-bottom: 3rem;
}

.page-label {
  font-family: 'Share Tech Mono', monospace;
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.page-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

/* BACK LINK */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--green); }

/* ABOUT CARDS & GRID */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.about-card h3 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.about-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
}

/* WORK EXPERIENCE */
.experience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-company { font-size: 1.1rem; font-weight: 800; color: var(--white); }
.exp-date { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--green); background: var(--green-dim); padding: 0.2rem 0.7rem; border-radius: 3px; }
.exp-role { font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; color: var(--green); margin-bottom: 0.75rem; letter-spacing: 0.05em; }
.exp-desc { font-size: 0.88rem; line-height: 1.7; color: var(--muted); margin-bottom: 1rem; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.exp-tag { font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; color: var(--blue); background: rgba(88,166,255,0.1); border: 1px solid rgba(88,166,255,0.2); padding: 0.2rem 0.6rem; border-radius: 3px; }
.section-sub { font-size: 1.2rem; font-weight: 800; color: var(--white); margin: 2.5rem 0 1.2rem; border-left: 3px solid var(--green); padding-left: 0.75rem; }

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-item:hover { border-color: var(--green); transform: translateY(-2px); }
.skill-icon { font-size: 1.2rem; }
.skill-item span { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--text); }

/* PROJECTS */
.projects-grid { display: grid; gap: 1.5rem; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.8rem;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,255,136,0.08); }
.project-header { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.project-type {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--green);
  background: var(--green-dim);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.project-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.project-card p { font-size: 0.88rem; line-height: 1.7; color: var(--muted); margin-bottom: 1.2rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: var(--blue);
  background: rgba(88,166,255,0.1);
  border: 1px solid rgba(88,166,255,0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

/* CERTS */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}

.cert-card:hover { border-color: var(--green); }
.cert-badge { font-size: 2.5rem; margin-bottom: 0.75rem; }
.cert-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
.cert-card p { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: var(--green); }

.cert-status {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.status-earned { color: var(--green); background: var(--green-dim); }
.status-progress { color: #ffd700; background: rgba(255,215,0,0.1); }
.status-planned { color: var(--muted); background: transparent; border: 1px dashed #30404f; }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.contact-card:hover { border-color: var(--green); transform: translateY(-2px); }
.contact-icon { font-size: 1.5rem; }
.contact-info h4 { font-size: 0.8rem; font-family: 'Share Tech Mono', monospace; color: var(--green); margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.1em; }
.contact-info p { font-size: 0.85rem; color: var(--text); }

/* SERVICES GRID & SEMANTIC THEMING OVERRIDES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.services-grid .service-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.services-grid .service-card:last-child:nth-child(3n+1) p { max-width: 62ch; }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-5px); }
.service-card::after { content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; opacity: 0.07; transition: opacity 0.3s; }
.service-card:hover::after { opacity: 0.15; }

.service-icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; }
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.85rem; line-height: 1.7; color: var(--muted); margin-bottom: 1.2rem; }
.service-audience { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.audience-tag { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; padding: 0.2rem 0.6rem; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.1em; }

.service-cta {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s;
  font-weight: 700;
}
.service-cta:hover { opacity: 0.85; transform: translateX(3px); }

/* Semantic Helper Classes for Layout Colors */
.card-green { border-top: 3px solid var(--green); }
.card-green:hover { box-shadow: 0 16px 40px rgba(0,255,136,0.15); border-color: var(--green); }
.card-green::after { background: var(--green); }
.card-green .audience-tag { color: var(--green); background: var(--green-dim); border: 1px solid rgba(0,255,136,0.2); }
.card-green .service-cta { color: #060a0f; background: var(--green); }

.card-red { border-top: 3px solid var(--red); }
.card-red:hover { box-shadow: 0 16px 40px rgba(255,71,87,0.15); border-color: var(--red); }
.card-red::after { background: var(--red); }
.card-red .audience-tag { color: var(--red); background: rgba(255,71,87,0.1); border: 1px solid rgba(255,71,87,0.2); }
.card-red .service-cta { color: #fff; background: var(--red); }

.card-blue { border-top: 3px solid var(--blue); }
.card-blue:hover { box-shadow: 0 16px 40px rgba(88,166,255,0.15); border-color: var(--blue); }
.card-blue::after { background: var(--blue); }
.card-blue .audience-tag { color: var(--blue); background: rgba(88,166,255,0.1); border: 1px solid rgba(88,166,255,0.2); }
.card-blue .service-cta { color: #fff; background: var(--blue); }

.card-yellow { border-top: 3px solid var(--yellow); }
.card-yellow:hover { box-shadow: 0 16px 40px rgba(255,215,0,0.15); border-color: var(--yellow); }
.card-yellow::after { background: var(--yellow); }
.card-yellow .audience-tag { color: var(--yellow); background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.2); }
.card-yellow .service-cta { color: #060a0f; background: var(--yellow); }

.card-purple { border-top: 3px solid var(--purple); }
.card-purple:hover { box-shadow: 0 16px 40px rgba(189,147,249,0.15); border-color: var(--purple); }
.card-purple::after { background: var(--purple); }
.card-purple .audience-tag { color: var(--purple); background: rgba(189,147,249,0.1); border: 1px solid rgba(189,147,249,0.2); }
.card-purple .service-cta { color: #060a0f; background: var(--purple); }

.card-orange { border-top: 3px solid var(--orange); }
.card-orange:hover { box-shadow: 0 16px 40px rgba(255,159,67,0.15); border-color: var(--orange); }
.card-orange::after { background: var(--orange); }
.card-orange .audience-tag { color: var(--orange); background: rgba(255,159,67,0.1); border: 1px solid rgba(255,159,67,0.2); }
.card-orange .service-cta { color: #060a0f; background: var(--orange); }

.card-cyan { border-top: 3px solid var(--cyan); }
.card-cyan:hover { box-shadow: 0 16px 40px rgba(0,210,211,0.15); border-color: var(--cyan); }
.card-cyan::after { background: var(--cyan); }
.card-cyan .audience-tag { color: var(--cyan); background: rgba(0,210,211,0.1); border: 1px solid rgba(0,210,211,0.2); }
.card-cyan .service-cta { color: #060a0f; background: var(--cyan); }

.services-note {
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(0,255,136,0.06), rgba(88,166,255,0.06));
  border: 1px solid rgba(0,255,136,0.2);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.7;
}
.services-note span { color: var(--green); font-weight: 700; }

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
footer span, footer a { color: var(--green); text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card:last-child:nth-child(3n+1) { grid-column: auto; }
  .services-grid .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 600px) {
  nav ul { gap: 0.8rem; }
  .nav-avatar { width: 34px; height: 34px; }
  .page { padding-top: 8.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
}

/* PROJECTS: status, featured, links */
.project-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.project-status.status-done { color: var(--green); background: var(--green-dim); }
.project-status.status-active { color: var(--yellow); background: rgba(255,215,0,0.1); }
.project-featured { border-top: 2px solid var(--green); }
.project-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.project-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: var(--green);
  text-decoration: none;
  border: 1px solid rgba(0,255,136,0.3);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}
.project-link:hover { background: var(--green-dim); border-color: var(--green); }
.page-intro { font-size: 0.95rem; line-height: 1.7; color: var(--muted); margin: -1rem 0 2rem; max-width: 62ch; }

/* HOME */
body.home::after {
  top: -200px; left: 50%; right: auto;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,255,136,0.06) 0%, transparent 70%);
}

.hero { position: relative; z-index: 1; text-align: center; padding: 10rem 2rem 4rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--green);
  background: var(--green-dim); border: 1px solid rgba(0,255,136,0.2);
  padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 2rem;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.hero-badge::before { content: ''; width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.7); } }
.hero h1 { font-size: clamp(2.8rem, 9vw, 6rem); font-weight: 800; color: var(--white); line-height: 1.05; margin-bottom: 0.5rem; }
.hero h1 .accent { color: var(--green); }
.hero-title { font-family: 'Share Tech Mono', monospace; font-size: clamp(0.85rem, 2.5vw, 1.1rem); color: var(--muted); margin-bottom: 1rem; letter-spacing: 0.1em; }
.hero-location { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--muted); margin-bottom: 2rem; }
.hero-location span { color: var(--green); }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 3rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; font-weight: 700;
  text-decoration: none; padding: 0.8rem 1.4rem; border-radius: 6px;
  border: 1px solid var(--green);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
/* Any element styled with display:flex/inline-flex (buttons, tabs, form
   rows, etc.) silently cancels the browser's native [hidden] behavior,
   since author CSS always wins over the UA stylesheet. Rather than patch
   each case as it's found, every such class gets its [hidden] rule
   restored here in one place. */
.btn[hidden],
.auth-form[hidden],
.tab-btn[hidden],
.tab-panel[hidden],
.pending-note[hidden] { display: none; }
.btn-primary { background: var(--green); color: #060a0f; }
.btn-primary:hover { background: #33ffa0; transform: translateY(-2px); }
.btn-ghost { color: var(--green); background: rgba(6,10,15,0.85); }
.btn-ghost:hover { background: var(--green-dim); }

.grid-wrapper { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 6rem; }
.grid-label { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.25em; text-transform: uppercase; text-align: center; margin-bottom: 2.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem 1.8rem; text-decoration: none; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; cursor: pointer;
}
.card:hover { transform: translateY(-5px); }
.card::before { content: ''; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px; border-radius: 50%; opacity: 0; transition: opacity 0.4s; }
.card:hover::before { opacity: 0.12; }
.card-featured { grid-column: span 2; min-height: 200px; }
.card-services { border-top: 2px solid #00ff88; } .card-services:hover { box-shadow: 0 20px 50px rgba(0,255,136,0.12); border-color: #00ff88; } .card-services::before { background: #00ff88; } .card-services .card-icon, .card-services .card-arrow { color: #00ff88; }
.card-skills { border-top: 2px solid #ffd700; } .card-skills:hover { box-shadow: 0 20px 50px rgba(255,215,0,0.12); border-color: #ffd700; } .card-skills::before { background: #ffd700; } .card-skills .card-icon, .card-skills .card-arrow { color: #ffd700; }
.card-projects { border-top: 2px solid #ff9f43; } .card-projects:hover { box-shadow: 0 20px 50px rgba(255,159,67,0.12); border-color: #ff9f43; } .card-projects::before { background: #ff9f43; } .card-projects .card-icon, .card-projects .card-arrow { color: #ff9f43; }
.card-certs { border-top: 2px solid #bd93f9; } .card-certs:hover { box-shadow: 0 20px 50px rgba(189,147,249,0.12); border-color: #bd93f9; } .card-certs::before { background: #bd93f9; } .card-certs .card-icon, .card-certs .card-arrow { color: #bd93f9; }
.card-about { border-top: 2px solid #58a6ff; } .card-about:hover { box-shadow: 0 20px 50px rgba(88,166,255,0.12); border-color: #58a6ff; } .card-about::before { background: #58a6ff; } .card-about .card-icon, .card-about .card-arrow { color: #58a6ff; }
.card-contact { border-top: 2px solid #ff4757; } .card-contact:hover { box-shadow: 0 20px 50px rgba(255,71,87,0.12); border-color: #ff4757; } .card-contact::before { background: #ff4757; } .card-contact .card-icon, .card-contact .card-arrow { color: #ff4757; }
.card-members { border-top: 2px solid #00d2d3; } .card-members:hover { box-shadow: 0 20px 50px rgba(0,210,211,0.12); border-color: #00d2d3; } .card-members::before { background: #00d2d3; } .card-members .card-icon, .card-members .card-arrow { color: #00d2d3; }
.card-contact { grid-column: span 1; min-height: 160px; }
.card-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.card-content h2 { font-size: 1.15rem; font-weight: 800; color: var(--white); margin-bottom: 0.4rem; }
.card-content p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.card-tag { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 0.2rem 0.6rem; border-radius: 3px; letter-spacing: 0.1em; text-transform: uppercase; }
.card-arrow { font-size: 1.1rem; transition: transform 0.25s; }
.card:hover .card-arrow { transform: translate(3px, -3px); }

.verse-wrap { position: relative; z-index: 1; text-align: center; padding: 0 1.5rem 4rem; max-width: 700px; margin: 0 auto; }
.verse { background: linear-gradient(135deg, rgba(0,255,136,0.05), rgba(88,166,255,0.05)); border: 1px solid rgba(0,255,136,0.15); border-radius: 12px; padding: 2rem 2.5rem; }
.verse-label { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; color: var(--green); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1rem; }
.verse-text { font-size: 1.05rem; color: var(--white); line-height: 1.9; font-style: italic; margin-bottom: 1rem; }
.verse-ref { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--green); }

@media (max-width: 700px) { .card-grid { grid-template-columns: 1fr 1fr; } .card-featured { grid-column: span 2; } }
@media (max-width: 600px) { .hero { padding: 8rem 1.25rem 3rem; } }
@media (max-width: 450px) {
  .hero-cta { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .btn { justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .card-featured { grid-column: span 1; }
  .verse { padding: 1.5rem 1.25rem; }
}

/* ACCESSIBILITY */
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* CIRCUIT BACKGROUND (drawn by circuit-bg.js) */
.circuit-layer {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
  opacity: 0; transition: opacity 1.6s ease;
}
.circuit-layer.on { opacity: 1; }

/* MEMBERS PAGE */
.auth-card {
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
}
.auth-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.auth-tab {
  font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; letter-spacing: 0.05em;
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 0.6rem 0.2rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tab.active { color: var(--green); border-bottom-color: var(--green); }
.auth-form { display: flex; flex-direction: column; gap: 0.9rem; }
.field-input, .story-input {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 0.75rem 0.9rem; color: var(--white); font-family: 'Syne', sans-serif; font-size: 0.9rem;
}
.story-input { min-height: 130px; resize: vertical; font-family: 'Syne', sans-serif; }
.field-input:focus, .story-input:focus { outline: none; border-color: var(--green); }
.form-error { color: var(--red); font-size: 0.82rem; min-height: 1.2em; margin-top: 0.8rem; }
.form-note { color: var(--muted); font-size: 0.85rem; }

.member-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1.2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.member-bar span { font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; color: var(--white); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.78rem; }

#composer, #admin-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.6rem; margin-bottom: 2rem;
}
#composer h2, #admin-panel h2, #app-section > h2 { font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; }
#post-form { display: flex; flex-direction: column; gap: 0.9rem; }
#request-access { margin-bottom: 2rem; font-size: 0.9rem; }

.request-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem;
}
.request-row:last-child { border-bottom: none; }
.muted-inline { color: var(--muted); font-size: 0.78rem; }

.story-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin-bottom: 1.4rem;
}
.story-photo { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.story-video { width: 100%; max-height: 420px; display: block; background: #000; }
.story-file-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.4rem; background: var(--surface); border-bottom: 1px solid var(--border);
  color: var(--green); text-decoration: none; font-family: 'Share Tech Mono', monospace; font-size: 0.85rem;
}
.story-file-link:hover { background: var(--green-dim); }
.story-body { padding: 1.4rem 1.6rem; }
.story-body h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.3rem; }
.story-meta { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--green); letter-spacing: 0.05em; margin-bottom: 0.8rem; }
.story-text { font-size: 0.88rem; line-height: 1.7; color: var(--text); white-space: pre-wrap; }
#feed a { color: var(--green); }

@media (max-width: 600px) {
  .auth-card { padding: 1.4rem; }
  .member-bar { flex-wrap: wrap; gap: 0.8rem; }
}

/* MEMBERS: composer toggle, admin toggle+badge, story head/avatar/actions, edit form */
.composer-toggle-btn { margin-bottom: 1.2rem; }
#composer {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.6rem; margin-bottom: 1.2rem;
}

.admin-toggle-btn {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.8rem 1.1rem; margin-bottom: 0.8rem; width: 100%;
  font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--white);
  cursor: pointer; text-align: left;
}
.admin-toggle-btn:hover { border-color: var(--purple); }
.badge {
  background: var(--purple); color: #060a0f; font-weight: 700;
  font-size: 0.7rem; min-width: 1.4em; text-align: center;
  border-radius: 10px; padding: 0.1rem 0.5rem;
}

.feed-heading { margin-bottom: 1rem; }

.story-head { display: flex; gap: 0.8rem; margin-bottom: 0.8rem; }
.story-avatar {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,255,136,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; font-weight: 700;
}
.story-head h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.2rem; }
.story-body .story-meta { margin-bottom: 0; }
.story-actions { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.btn-danger { color: var(--red); border-color: rgba(255,71,87,0.4); }
.btn-danger:hover { background: rgba(255,71,87,0.12); }

.file-label {
  display: block; font-size: 0.8rem; color: var(--muted); font-family: 'Share Tech Mono', monospace;
}
.file-label input[type="file"] { display: block; margin-top: 0.4rem; font-size: 0.82rem; color: var(--text); }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--muted); }
.form-actions { display: flex; gap: 0.7rem; align-items: center; }

#composer .form-actions, .story-body .form-actions { margin-top: 0.3rem; }

/* MEMBERS: top-level tabs, sub-tabs, directory, profile form, avatars */
.tabs-row {
  display: flex; gap: 0.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 0.3rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--border);
}
.tab-btn {
  flex-shrink: 0; display: flex; align-items: center; gap: 0.4rem;
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; letter-spacing: 0.04em;
  padding: 0.6rem 0.3rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tab-btn .badge { margin-left: 0.1rem; }

.subtabs-row { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.subtab-btn {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  color: var(--muted); cursor: pointer; padding: 0.4rem 1rem;
  font-family: 'Share Tech Mono', monospace; font-size: 0.75rem;
}
.subtab-btn.active { color: var(--green); border-color: rgba(0,255,136,0.4); background: var(--green-dim); }

.page-intro-sm { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }

.member-row {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.9rem 1rem; margin-bottom: 0.7rem;
}
.member-info { flex: 1; min-width: 0; }
.member-name { color: var(--white); font-size: 0.92rem; }
.member-sub { color: var(--muted); font-size: 0.78rem; margin-top: 0.1rem; }
.member-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.friend-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: var(--green);
  background: var(--green-dim); border: 1px solid rgba(0,255,136,0.3);
  padding: 0.25rem 0.6rem; border-radius: 10px;
}

.avatar-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.field-label { display: block; font-size: 0.8rem; color: var(--muted); font-family: 'Share Tech Mono', monospace; margin-bottom: 0.9rem; }
.field-label .field-input, .field-label textarea { margin-top: 0.4rem; }
#profile-form { max-width: 480px; }
.mt { margin-top: 1.6rem; }

@media (max-width: 500px) {
  .tabs-row { gap: 0.3rem; }
  .tab-btn { font-size: 0.72rem; padding: 0.55rem 0.2rem; }
}

/* PROFILE: preview card, compact form card */
.profile-preview {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; margin-bottom: 1.4rem;
}
.profile-banner {
  height: 96px;
  background:
    radial-gradient(circle at 20% 120%, rgba(0,255,136,0.35), transparent 55%),
    radial-gradient(circle at 85% -20%, rgba(88,166,255,0.3), transparent 50%),
    linear-gradient(rgba(0,255,136,0.07) 1px, transparent 1px) 0 0 / 100% 16px,
    linear-gradient(90deg, rgba(0,255,136,0.07) 1px, transparent 1px) 0 0 / 16px 100%,
    #0a1420;
  border-bottom: 1px solid var(--border);
}
.profile-preview-body { padding: 0 1.4rem 1.4rem; }
.profile-preview-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-top: -44px; margin-bottom: 0.9rem;
}
.profile-avatar-wrap { display: block; line-height: 0; }
.profile-preview .story-avatar, .profile-preview .avatar-img {
  width: 88px; height: 88px; font-size: 1.6rem; border-radius: 50%;
  border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--green), 0 0 22px rgba(0,255,136,0.35);
  background-color: #0d2a1e;
}
.profile-preview .story-avatar { display: flex; }
.profile-edit-btn { margin-bottom: 0.2rem; }
.profile-preview-name { color: var(--white); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.profile-preview-location {
  display: inline-block; margin-top: 0.5rem; padding: 0.2rem 0.7rem;
  font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--green);
  background: var(--green-dim); border: 1px solid rgba(0,255,136,0.3); border-radius: 20px;
}
.profile-preview-bio {
  color: var(--text); font-size: 0.92rem; line-height: 1.65; margin-top: 0.9rem;
  white-space: pre-wrap; word-break: break-word;
}
.profile-preview-bio.is-empty { color: var(--muted); font-style: italic; }
#profile-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.6rem;
}
.profile-bio-input { min-height: 70px; }
.form-success { color: var(--green); font-size: 0.85rem; min-height: 1.2em; }

/* MESSAGES: inbox rows, thread bubbles, composer */
.inbox-row { cursor: pointer; transition: border-color 0.15s; }
.inbox-row:hover { border-color: rgba(0,255,136,0.3); }
.inbox-row .member-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.thread-with { font-size: 1.05rem; color: var(--white); margin: 1rem 0 1rem; }
#thread-messages {
  display: flex; flex-direction: column; gap: 0.6rem;
  max-height: 55vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.2rem; margin-bottom: 1rem;
}
.msg-bubble {
  max-width: 80%; padding: 0.6rem 0.9rem; border-radius: 12px;
  font-size: 0.88rem; line-height: 1.5; word-break: break-word;
}
.msg-bubble.theirs { align-self: flex-start; background: rgba(255,255,255,0.05); color: var(--text); border-bottom-left-radius: 3px; }
.msg-bubble.mine { align-self: flex-end; background: var(--green-dim); color: var(--white); border: 1px solid rgba(0,255,136,0.25); border-bottom-right-radius: 3px; }

#thread-form { display: flex; gap: 0.6rem; }
#thread-form .field-input { flex: 1; }

/* PROFILE: pending photo preview */
.pending-note { color: #ffd700; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* MESSAGES: unread state, per-bubble timestamps */
.inbox-row.unread { border-color: rgba(0,255,136,0.35); }
.inbox-row.unread .member-name { color: var(--green); }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.msg-bubble { display: flex; flex-direction: column; gap: 0.25rem; }
.msg-time { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; color: var(--muted); align-self: flex-end; }
.msg-bubble.mine .msg-time { color: rgba(255,255,255,0.45); }

/* POSTS: like/comment reaction bar and inline comments */
.story-reactions { display: flex; gap: 0.8rem; margin-top: 1rem; }
.reaction-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: 1px solid var(--border); border-radius: 20px;
  color: var(--muted); font-family: 'Share Tech Mono', monospace; font-size: 0.8rem;
  padding: 0.35rem 0.8rem; cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.reaction-btn:hover { border-color: rgba(0,255,136,0.4); color: var(--text); }
.reaction-btn.liked { color: #ff6b81; border-color: rgba(255,107,129,0.4); }

.comments-section { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.comments-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 0.9rem; }
.comment-row { font-size: 0.85rem; }
.comment-meta { font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; color: var(--green); margin-bottom: 0.15rem; }
.comment-text { color: var(--text); line-height: 1.5; }
.comment-del { margin-top: 0.3rem; }
.comment-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.comment-form .field-input { flex: 1 1 180px; min-width: 0; }
.comment-voice-player { display: block; width: min(100%, 360px); margin: 0.45rem 0; }
.comment-voice-player[hidden] { display: none !important; }
.comment-voice-status { align-self: center; }
.comment-form button[hidden] { display: none; }

/* AUTH: forgot password link */
.forgot-link {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-family: 'Share Tech Mono', monospace; font-size: 0.78rem;
  text-decoration: underline; padding: 0.2rem 0; align-self: flex-start;
}
.forgot-link:hover { color: var(--green); }

/* NOTIFICATIONS: bell, badge, dropdown panel */
.member-bar-right { display: flex; align-items: center; gap: 0.6rem; }
.notif-bell { position: relative; font-size: 1rem; padding: 0.5rem 0.8rem; }
.notif-badge {
  position: absolute; top: -6px; right: -6px;
  background: #ff4757; color: var(--white);
}
.notif-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.2rem; margin: -1.4rem 0 2rem;
  max-height: 60vh; overflow-y: auto;
}
.notif-panel-head p { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; }
.notif-row {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text);
}
.notif-row:last-child { border-bottom: none; }
.notif-row.unread { color: var(--white); }
.notif-row.unread::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff4757; flex-shrink: 0; margin-top: 0.4rem; }
.notif-row:not(.unread)::before { content: ''; width: 7px; flex-shrink: 0; }
.notif-time { display: block; font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; color: var(--muted); margin-top: 0.2rem; }
.notif-row.clickable { cursor: pointer; }
.notif-row.clickable:hover { color: var(--green); }

.danger-zone { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,71,87,0.3); }
.danger-zone h3 { color: var(--red); font-size: 1rem; margin-bottom: 0.5rem; }
.danger-zone .form-note { margin-bottom: 1rem; }

/* PROFILE: stats row, my stories, public profile */
.profile-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 0.6rem;
  margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--border);
}
.profile-stat { text-align: center; }
.profile-stat-value { display: block; color: var(--white); font-size: 1.15rem; font-weight: 700; }
.profile-stat-label {
  display: block; margin-top: 0.15rem; color: var(--muted);
  font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.profile-section-title { font-size: 1.05rem; color: var(--white); margin-bottom: 0.9rem; }
.mini-story {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.9rem 1rem; margin-bottom: 0.7rem;
}
.mini-story-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.mini-story-body { min-width: 0; flex: 1; }
.mini-story-body h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.15rem; }
.mini-story-body .story-meta { margin-bottom: 0.4rem; }
.mini-story-text { color: var(--text); font-size: 0.84rem; line-height: 1.55; word-break: break-word; }
.clickable { cursor: pointer; }
.member-name.clickable:hover { color: var(--green); }
#member-profile .profile-preview { margin-top: 1rem; }
#member-profile .member-actions { margin-bottom: 0.2rem; }
@media (max-width: 500px) {
  .profile-preview-top { flex-wrap: wrap; }
}

/* PROFILE: custom cover, completeness bar */
.profile-banner.has-cover { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; background-color: #0a1420; }
.profile-complete {
  margin-top: 1rem; padding: 0.8rem 0.9rem; border-radius: 10px;
  background: var(--green-dim); border: 1px solid rgba(0,255,136,0.25);
}
.profile-complete-head {
  display: flex; justify-content: space-between; gap: 0.8rem;
  font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--green);
}
.profile-complete-bar { height: 5px; margin-top: 0.55rem; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.profile-complete-bar span { display: block; height: 100%; width: 0; background: var(--green); border-radius: 4px; transition: width 0.4s; }

/* PROFILE: chips, bio counter, directory tools, collapsible account settings */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.chips[hidden] { display: none; }
.chip {
  font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: var(--cyan);
  background: rgba(0,210,211,0.08); border: 1px solid rgba(0,210,211,0.3);
  padding: 0.2rem 0.6rem; border-radius: 20px;
}
.chips-sm { margin-top: 0.45rem; gap: 0.3rem; }
.chips-sm .chip { font-size: 0.64rem; padding: 0.12rem 0.5rem; }
.char-count { float: right; color: var(--muted); font-size: 0.7rem; }
.char-count.over { color: var(--red); }
.member-tools { display: flex; gap: 0.6rem; margin-bottom: 1rem; }
.member-tools #member-search { flex: 1; min-width: 0; }
.member-tools #member-sort { width: auto; flex-shrink: 0; }
.danger-details { margin-top: 2rem; }
.danger-details > summary {
  cursor: pointer; color: var(--muted); font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem; padding: 0.4rem 0; list-style: none;
}
.danger-details > summary::-webkit-details-marker { display: none; }
.danger-details > summary::before { content: '\25B8  '; }
.danger-details[open] > summary::before { content: '\25BE  '; }
.danger-details > summary:hover { color: var(--text); }

/* PROFILE: crop modal, pinned story, privacy checkboxes */
.crop-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.75); padding: 1rem;
}
.crop-modal[hidden] { display: none; }
.crop-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.2rem; width: 100%; max-width: 340px; text-align: center;
}
.crop-title { color: var(--white); font-weight: 700; margin-bottom: 0.8rem; }
#crop-canvas { width: 280px; max-width: 100%; height: auto; border-radius: 10px; touch-action: none; cursor: grab; }
#crop-zoom { width: 100%; margin: 0.9rem 0 0.2rem; accent-color: var(--green); }
.crop-box .form-actions { justify-content: center; }
.mini-story.is-pinned { border-color: rgba(0,255,136,0.45); }
.mini-pin-btn { margin-top: 0.6rem; }
.check-label { display: flex; align-items: center; gap: 0.55rem; margin: 0.5rem 0; color: var(--text); font-size: 0.88rem; cursor: pointer; }
.check-label input { accent-color: var(--green); }

/* FEED: read more, author links, load more */
.story-text.clamped { display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.read-more-btn {
  background: none; border: none; padding: 0.3rem 0; margin-top: 0.2rem; cursor: pointer;
  color: var(--green); font-family: 'Share Tech Mono', monospace; font-size: 0.78rem;
}
.read-more-btn:hover { text-decoration: underline; }
.author-link { cursor: pointer; }
.author-link:hover { color: var(--green); text-decoration: underline; }
.load-more-btn { display: block; margin: 1.2rem auto 0.5rem; }

/* FEED: tools row, new-stories pill */
.feed-tools { margin-top: 0.4rem; }
.feed-tools #feed-sort, .feed-tools #feed-filter { width: auto; flex-shrink: 0; }
.new-pill {
  position: sticky; top: 0.6rem; z-index: 20; display: block; margin: 0 auto 0.8rem;
  background: var(--green); color: #04110a; border: none; border-radius: 20px;
  padding: 0.45rem 1.1rem; font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 18px rgba(0,255,136,0.35);
}
.new-pill[hidden] { display: none; }
@media (max-width: 500px) { .feed-tools { flex-wrap: wrap; } .feed-tools #feed-search { flex-basis: 100%; } }

/* MESSAGES + NOTIFICATIONS upgrades */
#thread-input { resize: none; max-height: 120px; overflow-y: auto; line-height: 1.4; }
#thread-form { align-items: flex-end; }
.msg-bubble span:first-child { white-space: pre-wrap; word-break: break-word; }
.msg-day {
  align-self: center; margin: 0.6rem 0 0.2rem; padding: 0.15rem 0.7rem; border-radius: 20px;
  font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; color: var(--muted);
  background: rgba(255,255,255,0.05);
}
.load-earlier-btn { align-self: center; margin-bottom: 0.6rem; }
.notif-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; flex-wrap: wrap; }
.notif-actions { display: flex; gap: 0.4rem; }
.notif-row.clickable:hover { background: rgba(255,255,255,0.04); }
#tab-stories.focus-mode > :not(#story-focus) { display: none !important; }
#story-focus-card { margin-top: 0.9rem; }

/* ACCESSIBILITY + MOBILE */
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
button.chip { cursor: pointer; font-family: 'Share Tech Mono', monospace; }
button.chip:hover { background: rgba(0,210,211,0.16); }
[role="button"].clickable:focus-visible, .author-link:focus-visible { border-radius: 4px; }
@media (pointer: coarse) {
  .btn-sm, .reaction-btn, .subtab-btn, .tab-btn, .read-more-btn, .notif-bell { min-height: 44px; }
  button.chip { min-height: 34px; padding: 0.35rem 0.8rem; }
  input, select, textarea { font-size: 16px; }
  .comment-del { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-complete-bar span, .new-pill { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* LIKES LIST + MESSAGE DELETE */
.likes-box { max-height: 80vh; display: flex; flex-direction: column; text-align: left; }
#likes-list { overflow-y: auto; margin-bottom: 0.8rem; }
.likes-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.2rem; color: var(--text); border-bottom: 1px solid var(--border); }
.likes-row.clickable:hover { color: var(--green); }
.likes-box .form-actions { justify-content: center; }
.msg-del {
  display: block; margin-top: 0.3rem; background: none; border: none; padding: 0; cursor: pointer;
  color: var(--muted); font-family: 'Share Tech Mono', monospace; font-size: 0.66rem; opacity: 0.8;
}
.msg-del:hover { color: var(--red); opacity: 1; }
@media (pointer: coarse) { .msg-del { min-height: 32px; } }

/* COMMENT REPLIES + ADMIN */
.comment-row.reply { margin-left: 1.3rem; padding-left: 0.7rem; border-left: 2px solid var(--border); }
.reply-form { margin-left: 1.3rem; margin-bottom: 0.6rem; }
.request-row { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.request-actions { display: flex; gap: 0.4rem; }

/* REPORTS + BLOCKING */
.report-row { padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.report-title { color: var(--white); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.report-snippet { color: var(--text); font-size: 0.82rem; line-height: 1.5; margin-bottom: 0.4rem; word-break: break-word; }
#report-details { width: 100%; }
.crop-box select.field-input { width: 100%; }

/* RESPONSIVE FIXES: action buttons must wrap instead of overflowing small screens */
.member-actions { min-width: 0; max-width: 100%; flex-shrink: 1; }
.profile-preview-top .member-actions { flex: 1 1 0; justify-content: flex-end; }
.member-info { min-width: 0; }
@media (max-width: 560px) {
  .profile-preview-top { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .profile-preview-top .member-actions { flex: 0 0 auto; width: 100%; justify-content: flex-start; }
  .member-row { flex-wrap: wrap; }
  .member-row .member-actions { width: 100%; justify-content: flex-start; padding-left: 0; }
  .profile-preview-body { padding: 0 1rem 1.1rem; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
}
.certs-grid > .cert-card { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) { .certs-grid { grid-template-columns: 1fr; } }
.story-reactions { flex-wrap: wrap; gap: 0.5rem; }
.reaction-btn { white-space: nowrap; }
.tabs-row { scrollbar-width: none; }
.tabs-row::-webkit-scrollbar { display: none; }
@media (max-width: 560px) {
  .profile-stats:has(.profile-stat:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
}

/* STORY IMAGES: show the whole picture (no cropping), tap to enlarge */
.story-photo { object-fit: contain; max-height: 520px; background: #0a1420; cursor: zoom-in; }
.lightbox { flex-direction: column; gap: 0.9rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; background: #000; }

/* STORY IMAGES: blurred photo fills the empty space beside non-wide pictures */
.story-photo-wrap { position: relative; overflow: hidden; background: #0a1420; }
.story-photo-wrap::before {
  content: ''; position: absolute; inset: -30px; z-index: 0;
  background-image: var(--bg); background-size: cover; background-position: center;
  filter: blur(26px) brightness(0.5) saturate(1.1);
}
.story-photo-wrap .story-photo { position: relative; z-index: 1; background: transparent; }

/* PRESENCE */
.presence { display: block; margin-top: 0.1rem; font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; color: var(--muted); }
.presence.online { color: var(--green); }
.presence-block { margin-top: 0.35rem; font-size: 0.74rem; }
.thread-presence { margin: -0.4rem 0 0.8rem; font-family: 'Share Tech Mono', monospace; font-size: 0.74rem; color: var(--muted); }
.thread-presence.online { color: var(--green); }
.thread-presence[hidden] { display: none; }

/* SKILLS: two compact columns on phones so the list isn't one long scroll */
@media (max-width: 600px) {
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .skill-item { padding: 0.75rem 0.55rem; gap: 0.4rem; }
  .skill-icon { font-size: 1rem; }
  .skill-item span { font-size: 0.68rem; overflow-wrap: break-word; }
}

.thread-typing { margin: 0.3rem 0 0.5rem; font-style: italic; }

/* SAVED STORIES + MESSAGE DRAFTS */
.reaction-btn.saved { color: var(--green); border-color: rgba(0,255,136,0.4); }
.mini-story.clickable:hover { border-color: rgba(0,255,136,0.35); }
.inbox-row .is-draft, .is-draft { color: #ff6b81; font-style: italic; }

/* ONLINE DOTS + MUTUAL FRIENDS */
.avatar-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.profile-avatar-wrap { position: relative; }
.online-dot {
  position: absolute; right: 4px; bottom: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--surface); box-shadow: 0 0 8px rgba(0,255,136,0.7);
}
.online-dot-sm { width: 11px; height: 11px; right: 0; bottom: 0; border-width: 2px; }
.mutual-box { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.7rem; }
.mutual-label { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--muted); }

.member-tools[hidden] { display: none; }

/* ABOUT photo + CONTACT note */
.about-intro { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.6rem; }
.about-photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--green), 0 0 22px rgba(0,255,136,0.3);
}
.about-intro p { color: var(--muted); line-height: 1.6; font-size: 0.9rem; }
.about-intro strong { color: var(--white); font-size: 1.05rem; }
.contact-note { color: var(--muted); font-family: 'Share Tech Mono', monospace; font-size: 0.82rem; margin: -0.4rem 0 1.6rem; }

/* LANDING: make Members stand out (nav pill + animated community card) */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes memberPulse { 0% { box-shadow: 0 0 0 0 rgba(0,210,211,0.6); } 70% { box-shadow: 0 0 0 8px rgba(0,210,211,0); } 100% { box-shadow: 0 0 0 0 rgba(0,210,211,0); } }
@keyframes spinBorder { to { --ang: 360deg; } }
.nav-members {
  display: inline-flex; align-items: center; gap: 0.5rem; color: #00d2d3;
  background: rgba(0,210,211,0.08); border: 1px solid rgba(0,210,211,0.5); border-radius: 999px;
  padding: 0.45rem 0.95rem 0.45rem 0.8rem; box-shadow: 0 0 14px rgba(0,210,211,0.18);
}
.nav-members::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #00d2d3; animation: memberPulse 2s infinite; }
.nav-members:hover { color: var(--white); background: rgba(0,210,211,0.18); }
.card-members {
  grid-column: 1 / -1; min-height: 190px; border: 1.5px solid transparent;
  background:
    linear-gradient(135deg, #0d1620, #0a1218) padding-box,
    conic-gradient(from var(--ang), #00d2d3, #00ff88, #58a6ff, #bd93f9, #00d2d3) border-box;
  animation: spinBorder 7s linear infinite;
  box-shadow: 0 0 44px rgba(0,210,211,0.10);
}
.card-members:hover { border-color: transparent; box-shadow: 0 20px 60px rgba(0,210,211,0.22); }
.members-badge {
  position: absolute; top: 1.1rem; right: 1.3rem; display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: 'Share Tech Mono', monospace; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #00ff88; background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.35); border-radius: 999px; padding: 0.25rem 0.7rem;
}
.members-badge i { width: 7px; height: 7px; border-radius: 50%; background: #00ff88; animation: memberPulse 2s infinite; }
.members-cta {
  font-family: 'Share Tech Mono', monospace; font-size: 0.82rem; color: #04110a; font-weight: 700;
  background: linear-gradient(90deg, #00d2d3, #00ff88); padding: 0.5rem 1rem; border-radius: 8px;
}
.members-cta b { display: inline-block; transition: transform 0.25s; }
.card-members:hover .members-cta b { transform: translateX(4px); }
@media (max-width: 450px) { .members-badge { position: static; align-self: flex-start; margin-bottom: 0.8rem; } }
@media (prefers-reduced-motion: reduce) {
  .card-members, .nav-members::before, .members-badge i { animation: none; }
}
.online-summary { font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; color: var(--muted); margin: 0 0 0.8rem; }
.online-summary.has-online { color: var(--green); }
.online-summary[hidden] { display: none; }

/* No flash of the sign-in form on reload for returning members */
.auth-loading { display: none; }
.was-signed-in #auth-section { display: none; }
.was-signed-in .auth-loading { display: block; }

.forgot-link:disabled { opacity: 0.6; cursor: default; }

/* APP: install banner, update/offline toast */
.app-banner, .app-toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 900;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 32px); max-width: 460px; box-sizing: border-box;
  background: #0d1620; color: var(--text); border: 1px solid rgba(0,255,136,0.4);
  border-radius: 12px; padding: 0.8rem 1rem; box-shadow: 0 10px 40px rgba(0,0,0,0.55);
  font-size: 0.88rem; line-height: 1.5;
}
.app-banner { display: flex; flex-direction: column; gap: 0.7rem; }
.app-banner-actions { display: flex; gap: 0.5rem; }
.app-banner-go, .app-toast-btn {
  background: var(--green); color: #04110a; border: 0; border-radius: 8px; padding: 0.5rem 1rem;
  font-family: 'Share Tech Mono', monospace; font-weight: 700; font-size: 0.82rem; cursor: pointer;
}
.app-banner-no { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 0.5rem 1rem; font-size: 0.82rem; cursor: pointer; }
.app-toast { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.install-link { background: none; border: none; color: var(--green); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
@media (display-mode: standalone) { .install-link { display: none; } }
@media (pointer: coarse) { .app-banner-go, .app-banner-no, .app-toast-btn { min-height: 44px; } }


/* MEDIA MESSAGING + TWO-MINUTE VOICE NOTES */
.voice-tools, .message-tools { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: .65rem 0; }
.voice-tools audio, .message-tools audio { width: min(100%, 340px); height: 40px; }
.message-tools { padding: .65rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.message-file-label { display: inline-flex; align-items: center; gap: .5rem; margin: 0; cursor: pointer; }
.message-file-label input { max-width: 230px; font-size: .75rem; }
.msg-attachment-image, .msg-attachment-video { display: block; max-width: min(100%, 320px); max-height: 280px; border-radius: 8px; object-fit: contain; }
.msg-attachment-audio { display: block; width: min(100%, 320px); max-width: 100%; }
.msg-attachment-file { display: inline-block; max-width: 100%; overflow-wrap: anywhere; color: var(--green); text-decoration: underline; padding: .35rem 0; }
.story-audio { display: block; width: min(100%, 420px); max-width: 100%; margin: .5rem 0; }
#thread-form .field-input { min-width: 0; }
@media (max-width: 560px) {
  .message-tools { align-items: stretch; }
  .message-file-label { width: 100%; flex-wrap: wrap; }
  .message-file-label input { max-width: 100%; width: 100%; }
  .msg-bubble { max-width: 94%; }
}

/* Chat toolbar: compact buttons instead of the browser's default file picker */
#thread-input { min-height: 44px; }
.message-tools { gap: 0.5rem; padding: 0.55rem; }
.message-file-label {
  position: relative; display: inline-flex; align-items: center; width: auto !important; margin: 0;
  padding: 0.4rem 0.85rem; border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  color: var(--green); font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; min-height: 34px;
}
.message-file-label:hover { border-color: rgba(0,255,136,0.5); }
.message-file-label input[type="file"] {
  position: absolute; inset: 0; width: 100% !important; max-width: none !important; height: 100%;
  opacity: 0; margin: 0; cursor: pointer; font-size: 0;
}
.message-tools #message-record-status { flex: 1 1 100%; margin: 0; }
.message-tools .btn[hidden], .message-tools audio[hidden] { display: none; }

/* Hidden audio players must stay hidden whatever else sets their display */
audio[hidden], video[hidden] { display: none !important; }
.comment-voice { margin: 0.4rem 0; }

/* BLOG */
.blog-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.blog-tags .chip { cursor: pointer; background: none; font: inherit; }
.blog-tags .chip.is-active { background: rgba(0,255,136,0.14); border-color: rgba(0,255,136,0.6); color: var(--green); }
.blog-list { display: grid; gap: 1rem; }
.blog-card {
  display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem; cursor: pointer; transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover, .blog-card:focus-visible { border-color: rgba(0,255,136,0.45); transform: translateY(-2px); }
.blog-card-cover { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #0a1420; }
.blog-card-body { min-width: 0; flex: 1; }
.blog-card-title { color: var(--white); font-size: 1.1rem; line-height: 1.3; margin-bottom: 0.3rem; }
.blog-card-meta { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.4rem; }
.blog-card-excerpt { color: var(--text); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.4rem; }
.blog-draft-badge { display: inline-block; font-family: 'Share Tech Mono', monospace; font-size: 0.66rem; color: #ffb347; border: 1px solid rgba(255,179,71,0.5); border-radius: 999px; padding: 0.1rem 0.55rem; margin-bottom: 0.4rem; }
.blog-post { max-width: 720px; }
.blog-post-admin { margin: 0.8rem 0; }
.blog-post-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.blog-text { color: var(--text); line-height: 1.8; font-size: 1rem; margin: 1rem 0; white-space: pre-wrap; word-break: break-word; }
.blog-quote { border-left: 3px solid var(--green); padding: 0.4rem 1rem; margin: 1.4rem 0; color: var(--white); font-size: 1.1rem; line-height: 1.6; font-style: italic; white-space: pre-wrap; }
.blog-figure { margin: 1.4rem 0; }
.blog-img, .blog-video { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 10px; background: #0a1420; }
.blog-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; background: #000; }
.blog-caption { color: var(--muted); font-size: 0.82rem; margin-top: 0.4rem; font-family: 'Share Tech Mono', monospace; }
.blog-editor { max-width: 760px; }
.blog-editor-title { color: var(--white); margin: 0.8rem 0 1rem; }
.blog-editor-sub { color: var(--white); margin: 1.4rem 0 0.6rem; font-size: 1rem; }
.blog-blocks { display: grid; gap: 0.8rem; margin-bottom: 0.8rem; }
.blog-block { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem; display: grid; gap: 0.5rem; }
.blog-block-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.blog-block-type { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; }
.blog-block-tools { display: flex; gap: 0.3rem; }
.blog-add-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.blog-editor input[type="file"] { color: var(--muted); font-size: 0.85rem; max-width: 100%; }
@media (max-width: 520px) {
  .blog-card { flex-direction: column; }
  .blog-card-cover { width: 100%; height: 160px; }
}

/* HOME: Blog card (sits beside Contact; Members keeps its full-width row) */
.card-blog { border-top: 2px solid #bd93f9; }
.card-blog:hover { box-shadow: 0 20px 50px rgba(189,147,249,0.14); border-color: #bd93f9; }
@media (max-width: 700px) { .card-contact { grid-column: 1 / -1; } }

/* BLOG DISCUSSION */
.discussion { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.discussion-title { color: var(--white); font-size: 1.2rem; margin-bottom: 0.8rem; }
.discussion-count { color: var(--muted); font-weight: 400; font-size: 0.95rem; }
.discussion-tools { display: flex; justify-content: flex-end; margin-bottom: 0.8rem; }
.discussion-sort { font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.discussion-sort select { width: auto; }
.discussion-signin { margin-bottom: 1rem; }
.discussion-signin a { color: var(--green); }
.discussion-form { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.discussion-form textarea { min-height: 84px; }
.discussion-form-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.discussion-count-small { margin-right: auto; font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: var(--muted); }
.discussion-reply-form { margin: 0.5rem 0 0.2rem 1.2rem; }
.discussion-list { display: grid; gap: 0.8rem; }
.discussion-comment { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 1rem; }
.discussion-comment.is-reply { margin-left: 1.2rem; border-left: 2px solid rgba(0,255,136,0.35); }
.discussion-meta { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.4rem; }
.discussion-meta bdi { color: var(--green); }
.discussion-text { color: var(--text); font-size: 0.92rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.discussion-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.discussion-action {
  background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 999px;
  padding: 0.2rem 0.7rem; font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; cursor: pointer; min-height: 32px;
}
.discussion-action:hover { color: var(--text); border-color: rgba(0,255,136,0.45); }
.discussion-action.is-liked { color: #ff6b81; border-color: rgba(255,107,129,0.5); }
.discussion-danger:hover { color: var(--red); border-color: rgba(255,71,87,0.5); }
@media (pointer: coarse) { .discussion-action, .discussion-form .btn { min-height: 44px; } }

.discussion-report { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.6rem; }
.discussion-report select { width: auto; }
.discussion-report .form-note { width: 100%; margin: 0; }

.blog-unread { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--green); background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.3); border-radius: 8px; padding: 0.5rem 0.8rem; margin: 0 0 1rem; }
.blog-unread[hidden] { display: none; }
.blog-unread a { color: var(--green); text-decoration: underline; }

/* WARRIOR FELLOWSHIP: red, gold and lapis lazuli on the site's circuit background */
.fw-page { --fw-red: #d64545; --fw-gold: #d4a72c; --fw-lapis: #26619c; }
.fw-title, .fw-section-title { color: var(--fw-gold); }
.fw-label { color: var(--fw-red); }
.fw-intro { color: var(--muted); }
.fw-gate-box, .fw-compose, .fw-post, .fw-admin { background: rgba(10,16,24,0.92); border: 1px solid rgba(38,97,156,0.5); border-top: 2px solid var(--fw-gold); border-radius: 12px; padding: 1rem; margin-bottom: 1.2rem; }
.fw-gate-text { color: var(--text); line-height: 1.6; margin-bottom: 1rem; }
.fw-compose { border-top-color: var(--fw-red); }
.fw-composer { display: grid; gap: 0.6rem; }
.fw-composer input[type="file"] { color: var(--muted); font-size: 0.85rem; max-width: 100%; }
.fw-chosen { margin: 0; }
.fw-composer-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.fw-hint { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: var(--muted); }
.fw-post { border-top-color: var(--fw-lapis); }
.fw-post.is-highlight { box-shadow: 0 0 0 2px var(--fw-gold); }
.fw-post-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.fw-avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(38,97,156,0.35); border: 1px solid var(--fw-lapis); color: #fff; font-weight: 700; }
.fw-author { color: var(--fw-gold); font-weight: 700; }
.fw-time { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--muted); }
.fw-body { color: var(--text); line-height: 1.7; white-space: pre-wrap; word-break: break-word; margin-bottom: 0.7rem; }
.fw-reshare-label { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--fw-gold); margin-bottom: 0.4rem; }
.fw-reshare-note { color: var(--text); margin-bottom: 0.5rem; white-space: pre-wrap; }
.fw-embed { border-left: 3px solid var(--fw-red); background: rgba(214,69,69,0.06); border-radius: 8px; padding: 0.7rem 0.9rem; margin-bottom: 0.7rem; }
.fw-embed-author { color: var(--fw-gold); font-weight: 700; font-size: 0.9rem; }
.fw-embed-text { color: var(--text); font-size: 0.88rem; line-height: 1.5; margin: 0.3rem 0; }
.fw-embed-link { color: var(--fw-lapis); font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; }
.fw-attachments { display: grid; gap: 0.6rem; margin-bottom: 0.7rem; }
.fw-img { display: block; width: 100%; max-height: 480px; object-fit: contain; border-radius: 8px; background: #0a1420; }
.fw-video { display: block; width: 100%; max-height: 420px; border-radius: 8px; background: #000; }
.fw-file { display: inline-block; color: var(--fw-gold); font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; border: 1px solid rgba(212,167,44,0.45); border-radius: 8px; padding: 0.4rem 0.7rem; word-break: break-all; }
.fw-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.fw-action { background: none; border: 1px solid rgba(38,97,156,0.6); color: var(--text); border-radius: 999px; padding: 0.25rem 0.75rem; font-family: 'Share Tech Mono', monospace; font-size: 0.74rem; cursor: pointer; min-height: 34px; }
.fw-action:hover { border-color: var(--fw-gold); color: var(--fw-gold); }
.fw-action.is-liked { color: var(--fw-red); border-color: var(--fw-red); }
.fw-danger-soft { color: #ff8a8a; }
.fw-danger-soft:hover { color: var(--fw-red); border-color: var(--fw-red); }
.fw-panel { margin-top: 0.7rem; display: grid; gap: 0.5rem; border-top: 1px solid rgba(38,97,156,0.5); padding-top: 0.7rem; }
.fw-panel select { width: auto; }
.fw-discussion { margin-top: 0.9rem; border-top: 1px solid rgba(38,97,156,0.5); padding-top: 0.8rem; }
.fw-comments { display: grid; gap: 0.6rem; margin-bottom: 0.8rem; }
.fw-comment { background: rgba(6,10,15,0.7); border: 1px solid rgba(38,97,156,0.4); border-radius: 10px; padding: 0.6rem 0.8rem; }
.fw-comment.is-reply { margin-left: 1.2rem; border-left: 2px solid var(--fw-gold); }
.fw-comment-meta { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: var(--muted); margin-bottom: 0.3rem; }
.fw-comment-meta bdi { color: var(--fw-gold); }
.fw-comment-text { color: var(--text); font-size: 0.9rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.fw-comment-form { display: grid; gap: 0.5rem; margin: 0.4rem 0; }
.fw-comment-form textarea { min-height: 64px; }
.fw-more { display: block; margin: 0.6rem auto 1.2rem; }
.fw-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; padding: 0.5rem 0; border-bottom: 1px solid rgba(38,97,156,0.35); }
.fw-admin-name { color: var(--text); }
.fw-page .btn-primary { background: var(--fw-gold); color: #120d00; }
.fw-page .btn-ghost { color: var(--fw-lapis); border-color: rgba(38,97,156,0.7); }
.fw-page .btn-ghost:hover { color: var(--fw-gold); }
.fw-page .btn-danger { color: #ff8a8a; }
@media (pointer: coarse) { .fw-action, .fw-page .btn { min-height: 44px; } }

/* HOME: Warrior Fellowship card (red, gold and lapis lazuli) */
.card-fellowship { border-top: 2px solid #d4a72c; }
.card-fellowship:hover { box-shadow: 0 20px 50px rgba(38,97,156,0.22); border-color: #26619c; }
.card-fellowship { grid-column: 1 / -1; }

/* FELLOWSHIP: scripture opening */
.fw-verse { margin: 1.2rem 0 1.6rem; padding: 0.9rem 1.1rem; border-left: 3px solid var(--fw-gold, #d4a72c); background: rgba(212,167,44,0.06); border-radius: 0 10px 10px 0; color: var(--text); font-style: italic; line-height: 1.7; font-size: 0.95rem; }
.fw-verse cite { display: block; margin-top: 0.5rem; font-style: normal; font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--fw-gold, #d4a72c); }

.fw-verse-ref { color: var(--text); margin-bottom: 0.4rem; }
.fw-verse-links a { color: var(--fw-gold, #d4a72c); text-decoration: underline; }

/* ===== WARRIOR FELLOWSHIP — refined layout (red, gold and lapis lazuli) ===== */
.fw-page .fw-wrap { max-width: 760px; }
.fw-hero { margin-bottom: 1.4rem; }
.fw-hero .fw-intro { color: var(--muted); line-height: 1.7; max-width: 60ch; margin: 0.6rem 0 0.9rem; }
.fw-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fw-chip { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--text); background: rgba(38,97,156,0.22); border: 1px solid rgba(38,97,156,0.7); border-radius: 999px; padding: 0.25rem 0.75rem; }
.fw-chip-gold { color: #120d00; background: var(--fw-gold); border-color: var(--fw-gold); }
.fw-chip[hidden] { display: none; }

.fw-verse-card {
  position: relative; margin: 0 0 1.6rem; padding: 1.2rem 1.3rem 1.1rem;
  background: linear-gradient(135deg, rgba(212,167,44,0.10), rgba(38,97,156,0.10));
  border: 1px solid rgba(212,167,44,0.45); border-radius: 14px;
}
.fw-kicker { font-family: 'Share Tech Mono', monospace; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fw-red); margin: 0 0 0.35rem; }
.fw-verse-ref { font-size: 1.15rem; color: var(--fw-gold); margin: 0 0 0.6rem; }
.fw-verse-text { color: var(--white); font-size: 1rem; line-height: 1.75; white-space: pre-wrap; margin: 0 0 0.8rem; }
.fw-verse-links { margin: 0; font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; }
.fw-verse-links a { color: var(--fw-lapis); text-decoration: none; border-bottom: 1px solid rgba(38,97,156,0.6); }
.fw-verse-links a:hover { color: var(--fw-gold); border-bottom-color: var(--fw-gold); }

.fw-gate { margin-bottom: 1.4rem; }
.fw-gate-box { background: rgba(10,16,24,0.92); border: 1px solid rgba(38,97,156,0.5); border-top: 2px solid var(--fw-gold); border-radius: 12px; padding: 1.2rem; }
.fw-gate-text { color: var(--text); line-height: 1.7; margin: 0 0 1rem; }

.fw-compose {
  background: rgba(10,16,24,0.92); border: 1px solid rgba(38,97,156,0.5); border-top: 2px solid var(--fw-red);
  border-radius: 12px; padding: 1rem; margin-bottom: 1.2rem;
}
.fw-composer { display: grid; gap: 0.6rem; }
.fw-kind-row { display: flex; align-items: center; gap: 0.6rem; font-family: 'Share Tech Mono', monospace; font-size: 0.74rem; color: var(--muted); }
.fw-kind-row select { width: auto; min-width: 180px; }
.fw-composer input[type="file"] { color: var(--muted); font-size: 0.85rem; max-width: 100%; }

.fw-feed-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem; margin: 0.4rem 0 0.9rem; }
.fw-feed-head .fw-section-title { margin: 0; font-size: 1.2rem; }
.fw-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.fw-filter {
  background: none; border: 1px solid rgba(38,97,156,0.6); color: var(--text); border-radius: 999px;
  padding: 0.25rem 0.7rem; font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; cursor: pointer; min-height: 30px;
}
.fw-filter:hover { border-color: var(--fw-gold); color: var(--fw-gold); }
.fw-filter.is-active { background: var(--fw-gold); border-color: var(--fw-gold); color: #120d00; }

.fw-kind { font-family: 'Share Tech Mono', monospace; font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 0.15rem 0.55rem; margin-left: auto; border: 1px solid; white-space: nowrap; }
.fw-kind-encouragement { color: var(--fw-gold); border-color: rgba(212,167,44,0.6); }
.fw-kind-testimony { color: #8fb8e6; border-color: rgba(38,97,156,0.9); }
.fw-kind-prayer { color: #ff8a8a; border-color: rgba(214,69,69,0.7); }
.fw-kind-teaching { color: #7fd1c7; border-color: rgba(60,160,150,0.7); }
.fw-kind-other { color: var(--muted); border-color: rgba(139,148,158,0.5); }
.fw-post-head { flex-wrap: wrap; }
.fw-post[hidden] { display: none; }
.fw-post { border-top-color: var(--fw-lapis); }

.fw-admin {
  margin-top: 2rem; background: rgba(10,16,24,0.92); border: 1px solid rgba(38,97,156,0.5); border-radius: 12px; padding: 0;
}
.fw-admin[hidden] { display: none; }
.fw-admin > summary {
  cursor: pointer; list-style: none; padding: 0.9rem 1rem; color: var(--fw-gold); font-family: 'Share Tech Mono', monospace; font-size: 0.8rem;
}
.fw-admin > summary::-webkit-details-marker { display: none; }
.fw-admin > summary::before { content: '\25B8  '; }
.fw-admin[open] > summary::before { content: '\25BE  '; }
.fw-admin-body { padding: 0 1rem 1rem; }
.fw-admin-h { font-size: 0.95rem; color: var(--white); margin: 0.9rem 0 0.4rem; }
.fw-admin-row { padding: 0.55rem 0; border-bottom: 1px solid rgba(38,97,156,0.3); }
.fw-admin-body .form-note { margin: 0.2rem 0 0.6rem; }

.fw-more { display: block; margin: 0.8rem auto 1.4rem; }
@media (max-width: 480px) {
  .fw-verse-card { padding: 1rem; }
  .fw-kind { margin-left: 0; }
}
@media (pointer: coarse) { .fw-filter, .fw-admin > summary { min-height: 44px; display: flex; align-items: center; } }

/* Prayer answered, pinned posts */
.fw-kind-answered { color: #7fe3a1; border-color: rgba(127,227,161,0.7); }
.fw-pinned-label { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fw-gold); margin: 0.2rem 0 0.6rem; }
.fw-latest-label { color: var(--muted); margin-top: 1.2rem; }
.fw-post.is-pinned { border-top-color: var(--fw-gold); }

/* ===== Fellowship: New post button, fellowship profile, photos ===== */
.fw-compose { background: none; border: 0; padding: 0; margin: 0 0 1rem; }
.fw-compose-wrap { display: grid; gap: 0.7rem; }
.fw-new-btn {
  justify-self: start; background: var(--green, #00ff88); color: #04110a; border: 0; border-radius: 8px;
  padding: 0.7rem 1.3rem; font-family: 'Share Tech Mono', monospace; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  box-shadow: 0 0 18px rgba(0,255,136,0.22);
}
.fw-new-btn:hover { filter: brightness(1.08); }
.fw-new-btn[hidden] { display: none; }
.fw-composer {
  background: rgba(10,16,24,0.92); border: 1px solid rgba(38,97,156,0.5); border-top: 2px solid var(--fw-red);
  border-radius: 12px; padding: 1rem; display: grid; gap: 0.6rem;
}
.fw-composer[hidden] { display: none; }

.fw-me {
  background: rgba(10,16,24,0.92); border: 1px solid rgba(38,97,156,0.5); border-top: 2px solid var(--fw-gold);
  border-radius: 14px; padding: 1.1rem; margin-bottom: 1.3rem;
}
.fw-me[hidden] { display: none; }
.fw-me-top { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.8rem; }
.fw-me-kicker { font-family: 'Share Tech Mono', monospace; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fw-red); margin: 0 0 0.2rem; }
.fw-me-name { display: block; color: var(--fw-gold); font-size: 1.25rem; font-weight: 700; }
.fw-me-bio { color: var(--text); font-size: 0.92rem; line-height: 1.55; margin: 0.3rem 0 0; white-space: pre-wrap; word-break: break-word; }
.fw-me-empty { color: var(--muted); font-style: italic; }
.fw-me-avatar, .fw-avatar, .fw-avatar-img { border-radius: 50%; flex-shrink: 0; }
.fw-me-avatar { width: 72px; height: 72px; font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(38,97,156,0.35); border: 2px solid var(--fw-gold); color: #fff; font-weight: 700; }
.fw-avatar-img { object-fit: cover; background: #0a1420; }
.fw-me-avatar.fw-avatar-img { width: 72px; height: 72px; }
.fw-avatar.fw-avatar-img { width: 38px; height: 38px; }
.fw-profile-form { display: grid; gap: 0.6rem; margin-top: 0.9rem; border-top: 1px solid rgba(38,97,156,0.5); padding-top: 0.9rem; }
.fw-field-label { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }
.fw-profile-form input[type="file"] { color: var(--muted); font-size: 0.85rem; max-width: 100%; }
@media (max-width: 480px) { .fw-me-top { gap: 0.8rem; } .fw-me-avatar, .fw-me-avatar.fw-avatar-img { width: 60px; height: 60px; } }

/* ===== Fellowship layout v3: sidebar on wide screens, ordered single column on phones ===== */
.fw-layout { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 0.4rem; }
.fw-side, .fw-col { display: contents; }                 /* phones: children flow as one column */
.fw-verse-card { order: 1; margin-bottom: 0; }
#fw-me { order: 2; margin-bottom: 0; }
#fw-gate { order: 3; }
#fw-main { order: 3; display: grid; gap: 0.9rem; }
#fw-main[hidden], #fw-gate[hidden] { display: none; }
#fw-admin { order: 9; margin-top: 0.4rem; }
.fw-feed { display: grid; gap: 1rem; }
.fw-compose { margin: 0; }

/* post card: clear header, comfortable spacing */
.fw-post { padding: 1.05rem 1.1rem 0.9rem; border-radius: 14px; }
.fw-post-head { margin-bottom: 0.65rem; align-items: center; }
.fw-post-meta { min-width: 0; flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.4rem; }
.fw-post-meta .fw-time { white-space: nowrap; }
.fw-post-head .fw-kind { margin-left: auto; }
.fw-body { font-size: 0.96rem; line-height: 1.65; margin-bottom: 0.8rem; }

/* compact action row: icons with counts; the rest in a menu */
.fw-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid rgba(38,97,156,0.28); position: relative; }
.fw-action { min-height: 34px; padding: 0.22rem 0.7rem; font-size: 0.74rem; }
.fw-icon { min-width: 36px; justify-content: center; padding: 0.22rem 0.55rem; }
.fw-more-wrap { position: relative; margin-left: auto; }
.fw-menu {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 180px;
  background: #0b1420; border: 1px solid rgba(38,97,156,0.7); border-radius: 12px; padding: 0.35rem;
  box-shadow: 0 14px 36px rgba(0,0,0,0.55); display: grid; gap: 0.1rem;
}
.fw-menu[hidden] { display: none; }
.fw-menu-item {
  background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; border-radius: 8px;
  padding: 0.6rem 0.75rem; font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; min-height: 40px;
}
.fw-menu-item:hover, .fw-menu-item:focus-visible { background: rgba(212,167,44,0.12); color: var(--fw-gold); }
.fw-menu-item.fw-danger-soft { color: #ff8a8a; }

/* composer, reshare and edit panels read as part of the card */
.fw-composer { box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.fw-panel { background: rgba(6,10,15,0.5); border: 1px solid rgba(38,97,156,0.4); border-radius: 10px; padding: 0.7rem; margin-top: 0.7rem; }

@media (min-width: 900px) {
  .fw-page .fw-wrap { max-width: 1120px; }
  .fw-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
  .fw-side { display: flex; flex-direction: column; gap: 1.1rem; position: sticky; top: 1rem; }
  .fw-col { display: block; }
  .fw-side .fw-verse-card, .fw-side #fw-me, .fw-side #fw-admin { order: 0; margin: 0; }
  #fw-main { order: 0; }
  #fw-gate { order: 0; }
  #fw-admin { order: 0; margin-top: 0; }
  .fw-verse-card { padding: 1.1rem; }
  .fw-verse-text { font-size: 0.95rem; }
  .fw-hero { margin-bottom: 1.2rem; }
  .fw-feed { gap: 1.2rem; }
  .fw-post { padding: 1.2rem 1.3rem 1rem; }
}
@media (max-width: 480px) {
  .fw-post { padding: 0.95rem 0.9rem 0.8rem; }
  .fw-post-head .fw-kind { margin-left: 0; }
  .fw-action { padding: 0.2rem 0.6rem; }
  .fw-menu { min-width: 170px; }
}

/* Clickable names and photos, member profile viewer */
.fw-clickable { cursor: pointer; }
.fw-clickable:hover { filter: brightness(1.15); }
.fw-clickable:focus-visible { outline: 2px solid var(--fw-gold); outline-offset: 3px; border-radius: 6px; }
.fw-author.fw-clickable:hover { text-decoration: underline; text-underline-offset: 3px; }
.fw-noscroll { overflow: hidden; }
.fw-profile-view { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.72); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.fw-profile-view[hidden] { display: none; }
.fw-profile-card {
  position: relative; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
  background: #0b1420; border: 1px solid rgba(38,97,156,0.7); border-top: 3px solid var(--fw-gold);
  border-radius: 16px; padding: 1.5rem 1.4rem 1.3rem; box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.fw-profile-close {
  position: absolute; top: 0.5rem; right: 0.6rem; background: none; border: 0; color: var(--muted);
  font-size: 1.6rem; line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px;
}
.fw-profile-close:hover { color: var(--fw-gold); }
#fw-profile-body { display: grid; gap: 0.7rem; justify-items: start; }
.fw-prof-avatar { width: 96px; height: 96px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: #fff; background: rgba(38,97,156,0.35); border: 3px solid var(--fw-gold); object-fit: cover; }
img.fw-prof-avatar { background: #0a1420; }
.fw-prof-kicker { font-family: 'Share Tech Mono', monospace; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fw-red); margin: 0; }
.fw-prof-name { font-size: 1.4rem; color: var(--fw-gold); margin: 0; }
.fw-prof-bio { color: var(--text); line-height: 1.6; margin: 0; white-space: pre-wrap; word-break: break-word; }
.fw-prof-facts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fw-prof-link { margin-top: 0.3rem; }

/* Email verification banner */
.verify-banner { background: rgba(212,167,44,0.08); border: 1px solid rgba(212,167,44,0.55); border-radius: 12px; padding: 0.9rem 1rem; margin: 0 0 1.2rem; }
.verify-banner[hidden] { display: none; }
.verify-text { color: var(--text); line-height: 1.6; margin: 0 0 0.7rem; font-size: 0.92rem; }
.verify-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.verify-status { font-family: 'Share Tech Mono', monospace; font-size: 0.74rem; color: var(--muted); margin: 0.6rem 0 0; }

/* Google sign-in */
.google-wrap { display: grid; gap: 0.5rem; margin-bottom: 0.9rem; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; min-height: 46px;
  background: #fff; color: #1f1f1f; border: 0; border-radius: 10px; padding: 0.6rem 1rem; cursor: pointer;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.google-btn:hover { filter: brightness(0.96); }
.google-btn:disabled { opacity: 0.7; cursor: default; }
.google-or { display: flex; align-items: center; gap: 0.7rem; margin: 0.2rem 0 0; font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--muted); }
.google-or::before, .google-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Fellowship feed: previews, thumbnails, full-size viewer */
.fw-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fw-read-more { background: none; border: 0; padding: 0.2rem 0; margin: 0 0 0.4rem; cursor: pointer; color: var(--fw-gold); font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; min-height: 36px; }
.fw-read-more:hover { text-decoration: underline; }
.fw-thumbs { display: grid; gap: 0.4rem; margin-bottom: 0.6rem; }
.fw-thumbs-1 { grid-template-columns: minmax(0, 1fr); }
.fw-thumbs-2 { grid-template-columns: 1fr 1fr; }
.fw-thumbs-3 { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.fw-thumbs-3 .fw-thumb-cell:first-child { grid-row: span 2; }
.fw-thumb-cell { position: relative; border: 0; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #0a1420; min-height: 90px; display: block; }
.fw-thumbs-1 .fw-thumb-cell { min-height: 0; }
.fw-thumb { display: block; width: 100%; height: 100%; min-height: 90px; max-height: 200px; object-fit: cover; }
.fw-thumbs-1 .fw-thumb { max-height: 240px; }
.fw-thumb-cell:focus-visible { outline: 2px solid var(--fw-gold); outline-offset: 2px; }
.fw-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: rgba(0,0,0,0.35); pointer-events: none; }
.fw-more-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Share Tech Mono', monospace; font-size: 1.3rem; color: #fff; background: rgba(0,0,0,0.6); }
.fw-lightbox { position: fixed; inset: 0; z-index: 2100; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.fw-lightbox[hidden] { display: none; }
.fw-lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.fw-lightbox video.fw-lightbox-video { max-width: 100%; max-height: 88vh; border-radius: 8px; }
.fw-lightbox .fw-profile-close { top: 0.6rem; right: 0.8rem; color: #fff; }

/* ===== About hub: one page with tabs ===== */
.about-hub .page-title { margin-bottom: 0.9rem; }
.about-tabs { position: sticky; top: 0; z-index: 50; margin: 0.4rem -1rem 1.4rem; background: rgba(6,10,15,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.about-tabs-inner { display: flex; gap: 0.3rem; overflow-x: auto; padding: 0.6rem 1rem; scrollbar-width: none; }
.about-tabs-inner::-webkit-scrollbar { display: none; }
.about-tab {
  flex: 0 0 auto; background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer;
  font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.5rem 0.9rem; border-radius: 999px; min-height: 40px;
}
.about-tab:hover { color: var(--text); border-color: var(--border); }
.about-tab.is-active { color: var(--green); border-color: rgba(0,255,136,0.5); background: rgba(0,255,136,0.08); }
.about-tab:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.about-section[hidden] { display: none; }
.about-section { animation: aboutFade 0.35s ease; }
@keyframes aboutFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.about-section-title { position: relative; padding-left: 0.9rem; margin: 0.4rem 0 1rem; font-size: 1.6rem; }
.about-section-title::before { content: ''; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 4px; border-radius: 2px; background: var(--green); }
@media (prefers-reduced-motion: reduce) { .about-section { animation: none; } }
@media (min-width: 900px) { .about-tabs { margin: 0.4rem 0 1.6rem; border-radius: 12px; } .about-tabs-inner { padding: 0.6rem 0.8rem; justify-content: flex-start; } }

/* Landing: explore links under the hero (Members, Blog, Fellowship, About) */
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.3rem auto 0; max-width: 560px; padding: 0 1rem; }
.hero-links a {
  font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 0.5rem 1rem; min-height: 40px;
  display: inline-flex; align-items: center; background: rgba(6,10,15,0.5);
}
.hero-links a:hover, .hero-links a:focus-visible { color: var(--green); border-color: rgba(0,255,136,0.55); }
.hero-links a { text-decoration: none; }

/* ===== Landing: explore tiles (modern, colourful, dramatic) ===== */
.hero-tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem;
  max-width: 620px; margin: 1.6rem auto 0; padding: 0 1rem;
}
.ht {
  --c: #00ff88; --c2: #00d2d3;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem;
  padding: 0.95rem 1rem 0.9rem; min-height: 96px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(150deg, rgba(10,16,24,0.95), rgba(6,10,15,0.95));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 0 0 0 var(--c), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ht::before {               /* glowing corner wash */
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 65%);
  z-index: -1; opacity: .55; transition: opacity .3s ease, transform .5s ease;
}
.ht::after {                /* light sweep on hover */
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-18deg); transition: left .7s ease;
}
.ht:hover, .ht:focus-visible { transform: translateY(-4px) scale(1.01); box-shadow: 0 16px 40px -10px var(--c); border-color: var(--c); }
.ht:hover::before { opacity: .9; transform: scale(1.15); }
.ht:hover::after { left: 130%; }
.ht:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.ht-icon {
  font-size: 1.25rem; line-height: 1; color: var(--c); text-shadow: 0 0 14px var(--c);
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c) 14%, transparent); margin-bottom: 0.35rem;
}
.ht-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.12rem; letter-spacing: .01em; color: #f0f6fc; }
.ht-sub { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: var(--muted); letter-spacing: .04em; }

/* each tile has its own colour */
.ht-members  { --c: #00ff88; }
.ht-blog     { --c: #00d2d3; }
.ht-fellowship { --c: #d4a72c; }
.ht-about    { --c: #bd93f9; }
.ht-fellowship .ht-icon { color: #d64545; text-shadow: 0 0 14px #d64545; }
.ht-fellowship { background: linear-gradient(150deg, rgba(38,97,156,0.22), rgba(10,16,24,0.95) 60%); }

@media (min-width: 720px) {
  .hero-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 880px; }
  .ht { min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .ht, .ht::before, .ht::after { transition: none; }
  .ht:hover { transform: none; }
}

/* Landing tiles: fit phones without clipping, and sit in the page flow */
.hero-tiles { position: relative; top: auto; left: auto; right: auto; inset: auto; z-index: auto; }
.ht-name { font-size: clamp(0.95rem, 4.2vw, 1.12rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ht-sub { line-height: 1.4; }
@media (max-width: 420px) { .ht { min-height: 88px; padding: 0.8rem 0.85rem; } .ht-icon { width: 30px; height: 30px; } }

/* Landing spacing: even gaps above and below the explore tiles; names fit without truncating */
.hero-tiles { margin: 1.1rem auto 2.4rem; }
.ht-name { overflow: visible; text-overflow: clip; white-space: nowrap; font-size: clamp(0.82rem, 3.7vw, 1.08rem); letter-spacing: -0.01em; }
@media (max-width: 420px) { .ht-name { font-size: clamp(0.8rem, 3.6vw, 0.98rem); } .hero-tiles { gap: 0.6rem; } }
.hero { padding-bottom: 0; }
.hero-cta { margin-bottom: 0; }
.hero-tiles { margin-top: 1.7rem; }

/* BLOG: search, sort, collapsible topics, popularity */
.blog-controls { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin: 0 0 0.9rem; }
.blog-search { flex: 1 1 240px; min-width: 0; }
.blog-sort { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.blog-sort-btn { background: none; border: 0; color: var(--muted); font-family: 'Share Tech Mono', monospace; font-size: 0.74rem; letter-spacing: .04em; padding: 0.5rem 0.85rem; cursor: pointer; min-height: 38px; }
.blog-sort-btn.is-active { background: rgba(0,255,136,0.12); color: var(--green); }
.blog-sort-btn:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.blog-topics-toggle { background: none; border: 1px dashed var(--border); color: var(--cyan); border-radius: 999px; padding: 0.4rem 0.85rem; font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; cursor: pointer; min-height: 36px; }
.blog-topics-toggle[hidden] { display: none; }
.blog-topics-toggle:hover { border-color: var(--cyan); }
.blog-popular-note { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: var(--muted); margin: 0.3rem 0 0.8rem; }
.blog-popular-note[hidden] { display: none; }
.blog-pop-badge { display: inline-block; font-family: 'Share Tech Mono', monospace; font-size: 0.66rem; color: var(--green); border: 1px solid rgba(0,255,136,0.35); border-radius: 999px; padding: 0.12rem 0.55rem; margin-bottom: 0.4rem; }
.blog-toolbar { flex-wrap: wrap; }
