/* ═══════════════════════════════════════════
   MindKnit.xyz — Landing Page Stilleri
   Tema: Karanlık, gizemli, bulmaca evreni
   ═══════════════════════════════════════════ */

:root {
  --bg-deep:    #05080f;
  --bg-card:    #0c1220;
  --bg-surface: #111827;
  --border:     #1e293b;
  --text:       #e2e8f0;
  --text-dim:   #64748b;
  --text-muted: #475569;
  --accent:     #8b5cf6;
  --accent-glow:#8b5cf640;
  --gold:       #f1c40f;
  --green:      #10b981;
  --red:        #e74c3c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Dil Değiştirici ── */
.lang-switch {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch a {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s;
}
.lang-switch a.active {
  background: var(--accent);
  color: #fff;
}
.lang-switch a:hover:not(.active) {
  color: var(--text);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#threadCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
}

/* Logo Mark (Galaxy / 🌌 Evren Logosu) */
.logo-mark {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  cursor: pointer;
  transition: transform 0.6s ease;
}
.logo-mark:hover {
  transform: scale(1.1);
}
.logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 25px var(--accent-glow));
}

/* Galaksi bandı — akan Samanyolu efekti */
.galaxy-band {
  animation: bandShimmer 8s ease-in-out infinite;
}
@keyframes bandShimmer {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* Ana bant parlaklık dalgası */
.band-main {
  animation: bandFlow 6s ease-in-out infinite;
}
@keyframes bandFlow {
  0%, 100% { stroke-opacity: 0.7; stroke-width: 10; }
  50%      { stroke-opacity: 1;   stroke-width: 12; }
}

/* Çekirdek çizgisi titreşim */
.band-core {
  animation: coreFlow 4s ease-in-out infinite;
}
@keyframes coreFlow {
  0%, 100% { stroke-opacity: 0.4; }
  33%      { stroke-opacity: 0.8; }
  66%      { stroke-opacity: 0.5; }
}

/* Toz bulutları yavaş hareket */
.band-dust {
  animation: dustDrift 10s ease-in-out infinite;
}
.band-dust-2 {
  animation: dustDrift 12s ease-in-out infinite 2s;
}
@keyframes dustDrift {
  0%, 100% { opacity: 0.15; transform: translateX(0); }
  50%      { opacity: 0.25; transform: translateX(2px); }
}

/* Dış çerçeve nefes efekti */
.galaxy-halo {
  animation: haloBreathe 5s ease-in-out infinite;
}
@keyframes haloBreathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.9; }
}

/* Merkez parıltı */
.galaxy-center {
  animation: centerPulse 2.5s ease-in-out infinite;
}
.galaxy-center-glow {
  animation: centerGlowPulse 3s ease-in-out infinite;
}
@keyframes centerPulse {
  0%, 100% { opacity: 0.7; r: 2; }
  50%      { opacity: 1;   r: 2.5; }
}
@keyframes centerGlowPulse {
  0%, 100% { opacity: 0.15; r: 4; }
  50%      { opacity: 0.4;  r: 6; }
}

/* Galaksi core nefes */
.galaxy-core {
  animation: coreBreathe 5s ease-in-out infinite 0.5s;
}
@keyframes coreBreathe {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}

/* Yıldız yanıp sönme — her biri farklı zamanlama */
.star { animation: starTwinkle 3s ease-in-out infinite; }
.star-1 { animation-delay: 0s;    animation-duration: 2.5s; }
.star-2 { animation-delay: 0.4s;  animation-duration: 3.2s; }
.star-3 { animation-delay: 0.8s;  animation-duration: 2.8s; }
.star-4 { animation-delay: 1.2s;  animation-duration: 3.5s; }
.star-5 { animation-delay: 0.2s;  animation-duration: 2.3s; }
.star-6 { animation-delay: 0.6s;  animation-duration: 3.0s; }
.star-7 { animation-delay: 1.0s;  animation-duration: 2.7s; }
.star-8 { animation-delay: 1.4s;  animation-duration: 3.3s; }
@keyframes starTwinkle {
  0%, 100% { opacity: 0.3; r: 0.5; }
  50%      { opacity: 1;   r: 1.5; }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 8px;
  margin-bottom: 16px;
  line-height: 1.1;
}
.title-mind {
  color: var(--text);
}
.title-knit {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 40px;
  font-style: italic;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
  padding: 14px 32px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Scroll Hint */
.scroll-hint {
  margin-top: 40px;
  text-align: center;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeInUp 2.5s ease infinite;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(167,139,250,.8);
  border-bottom: 2px solid rgba(167,139,250,.8);
  transform: rotate(45deg);
  margin: 10px auto 0;
  animation: scrollBounce 2.5s ease infinite;
}

@keyframes fadeInUp {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ═══════════════════════════════════════════
   PUZZLE SECTION
   ═══════════════════════════════════════════ */
.puzzle-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 48px;
}

.puzzle-box {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}

.puzzle-question {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 24px;
  min-height: 48px;
  line-height: 1.5;
}

.puzzle-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.puzzle-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.puzzle-input:focus {
  border-color: var(--accent);
}

.puzzle-submit {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.puzzle-submit:hover {
  background: #7c3aed;
}

.puzzle-feedback {
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 12px;
}
.puzzle-feedback.correct { color: var(--green); }
.puzzle-feedback.wrong { color: var(--red); }

.puzzle-progress {
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════════
   EXPLORE / UNIVERSE
   ═══════════════════════════════════════════ */
.explore-section {
  padding: 120px 0;
}

/* Hikaye kartları grid */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.story-card.story-open {
  border-color: var(--story-color);
  cursor: pointer;
}
.story-card.story-open:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}
.story-card.story-open::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--story-color);
}

/* Kilitli kart */
.story-card.story-locked,
.story-card.story-mystery {
  opacity: 0.55;
  filter: grayscale(0.3);
}
.story-card.story-locked .story-desc,
.story-card.story-mystery .story-desc {
  filter: blur(1.5px);
  user-select: none;
}
.story-card.story-locked:hover,
.story-card.story-mystery:hover {
  opacity: 0.7;
}

/* Login gerekli kart */
.story-card.story-login {
  border-style: dashed;
  border-color: rgba(139, 92, 246, 0.3);
}
.story-card.story-login:hover {
  border-color: var(--accent);
}
.story-card.story-login .story-desc {
  filter: blur(1px);
  user-select: none;
}

/* Kilit ikonu */
.story-lock {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 16px;
  opacity: 0.6;
}

/* Hikaye ikonu */
.story-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.story-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.story-card.story-open .story-title {
  color: var(--story-color);
}

.story-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 14px;
  min-height: 40px;
}

/* Tag'lar */
.story-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.story-tag-open {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
}
.story-tag-login {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  border: 1px dashed rgba(139, 92, 246, 0.3);
}
.story-tag-login:hover {
  background: rgba(139, 92, 246, 0.2);
  text-decoration: none;
}
.story-tag-locked {
  background: var(--bg-deep);
  color: var(--text-muted);
}
.story-tag-mystery {
  background: var(--bg-deep);
  color: var(--text-muted);
  font-style: italic;
}

/* Proje mini kartları (altta) */
.projects-sub {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.projects-sub-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.projects-mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.project-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.15s;
}
.project-mini:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.project-mini-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.pm-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

/* ═══════════════════════════════════════════
   TOOLS (Evren İçi Araçlar)
   ═══════════════════════════════════════════ */
.tools-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(139,92,246,0.03) 50%, var(--bg-deep) 100%);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  background: rgba(12,18,32,0.8);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--tool-color, #8b5cf6), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

.tool-card:hover {
  border-color: var(--tool-color, #8b5cf6);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.15);
}

.tool-card:hover::before {
  opacity: 0.08;
}

.tool-icon {
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.tool-name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  color: var(--text-dim);
  transition: color 0.3s;
}

.tool-card:hover .tool-name {
  color: var(--text);
}

/* ═══════════════════════════════════════════
   SYMBOLS
   ═══════════════════════════════════════════ */
.symbols-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
}

.symbols-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.symbol-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.2s;
}
.symbol-card:hover {
  border-color: var(--sym-color);
  transform: scale(1.05);
}

.sym-glyph {
  font-size: 32px;
  color: var(--sym-color);
  margin-bottom: 10px;
  filter: drop-shadow(0 0 8px var(--sym-color));
  transition: transform 0.3s;
}
.symbol-card:hover .sym-glyph {
  transform: rotate(15deg) scale(1.15);
}

.symbol-card span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
}

/* ─── Sembol Detay Modal ─── */
.sym-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.sym-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.sym-modal-card {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s;
}
.sym-modal-overlay.active .sym-modal-card {
  transform: translateY(0) scale(1);
}
.sym-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.sym-modal-close:hover {
  color: var(--text);
}
.sym-modal-glyph {
  text-align: center;
  font-size: 56px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px currentColor);
  animation: symPulse 2s infinite ease-in-out;
}
@keyframes symPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
.sym-modal-name {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sym-modal-desc {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.sym-modal-img-wrap {
  display: none;
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sym-modal-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 220px;
}
.sym-modal-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}
.sym-hint-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sym-modal-hint span:last-child {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
  font-style: italic;
}

.symbols-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

/* ═══════════════════════════════════════════
   SOCIAL
   ═══════════════════════════════════════════ */
.social-section {
  padding: 80px 0;
}

.social-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.social-link svg {
  width: 20px;
  height: 20px;
}
.social-link:hover {
  color: #fff;
  transform: translateY(-2px);
}
.social-link.yt:hover  { border-color: #ff0000; color: #ff0000; }
.social-link.ig:hover  { border-color: #e1306c; color: #e1306c; }
.social-link.pt:hover  { border-color: #e60023; color: #e60023; }
.social-link.tt:hover  { border-color: #00f2ea; color: #00f2ea; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--text);
}
.footer-logo span {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer-freq {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--gold);
  opacity: 0.3;
  cursor: default;
  transition: opacity 0.3s;
}
.footer-freq:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .symbols-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    letter-spacing: 4px;
  }
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .symbols-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .tool-card {
    padding: 24px 12px;
  }
  .tool-icon {
    font-size: 1.6rem;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .puzzle-box {
    padding: 28px 20px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .social-grid {
    flex-direction: column;
    align-items: center;
  }
  .projects-mini-grid {
    flex-direction: column;
  }
  .project-mini {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════
   PATRON PANELİ
   ═══════════════════════════════════════════ */
.patron-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5,8,15,0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.patron-panel {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto;
}
.patron-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.patron-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.patron-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.patron-close:hover {
  background: var(--bg-card);
  color: var(--text);
}
.patron-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.patron-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
}
.patron-card-wide {
  grid-column: 1 / -1;
}
.patron-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.patron-sub {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.patron-dim {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}
.patron-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(30,41,59,0.4);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.patron-stat-row strong {
  color: var(--text);
  font-weight: 600;
}
.patron-answers {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.patron-answer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.5rem;
  background: rgba(139,92,246,0.06);
  border-radius: 6px;
  font-size: 0.82rem;
}
.patron-answer .pa-q {
  color: var(--text-dim);
  flex: 1;
  margin-right: 0.5rem;
}
.patron-answer code {
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.patron-answers-small .patron-answer {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}
.patron-answers-small .patron-answer span {
  color: var(--text-muted);
  font-size: 0.7rem;
}
.pa-loc {
  font-size: 0.6rem !important;
  color: var(--text-muted) !important;
  background: rgba(30,41,59,0.5);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  white-space: nowrap;
  margin-left: 0.3rem;
}
.patron-doors {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.patron-door {
  padding: 0.5rem 0.7rem;
  border-left: 3px solid var(--accent);
  background: rgba(17,24,39,0.6);
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.patron-door strong {
  font-size: 0.82rem;
  color: var(--text);
}
.patron-door span {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.patron-status {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.patron-status-notstarted {
  background: rgba(100,116,139,0.15);
  color: #94a3b8;
}
.patron-status-progress {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
}
.patron-status-done {
  background: rgba(16,185,129,0.15);
  color: #10b981;
}
.patron-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.patron-pipe-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  background: rgba(17,24,39,0.6);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.patron-pipe-item span:first-child {
  flex: 1;
}
.patron-price {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}
.patron-symbols-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.patron-symbols-list div {
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(30,41,59,0.3);
}
.patron-symbols-list span {
  font-size: 1rem;
  margin-right: 0.3rem;
}
.patron-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.patron-checklist label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.3rem 0;
}
.patron-checklist input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.patron-checklist label:has(input:checked) {
  color: var(--green);
  text-decoration: line-through;
}
.patron-note-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.patron-note-input textarea {
  flex: 1;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
}
.patron-note-input textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.patron-note-btn {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.patron-note-btn:hover {
  opacity: 0.9;
}
.patron-notes-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 200px;
  overflow-y: auto;
}
.patron-note-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(17,24,39,0.6);
  border-radius: 6px;
  font-size: 0.8rem;
}
.patron-note-date {
  color: var(--text-muted);
  font-size: 0.7rem;
  white-space: nowrap;
  min-width: 110px;
}
.patron-note-text {
  color: var(--text-dim);
  flex: 1;
  word-break: break-word;
}
.patron-note-del {
  background: none;
  border: none;
  color: var(--red);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.5;
  padding: 0 0.3rem;
}
.patron-note-del:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .patron-grid {
    grid-template-columns: 1fr;
  }
  .patron-note-input {
    flex-direction: column;
  }
}
