/* ==========================================================================
   THE RACCOON FOUNDRY & WORKSHOP — 3D MODERNİZE ESKİTME STİL SİSTEMİ
   Sıcak, huzur dolu, Ghibli & Pixar kalitesinde Steampunk Atölye Tasarımı
   ========================================================================== */

:root {
  /* Renk Paleti: Sıcacık Amber, Gün Batımı Altını, Zengin Maun & Pirinç */
  --bg-deep: #160f0a;
  --bg-wood: #261912;
  --bg-parchment: #f6eedb;
  --panel-bg: rgba(36, 25, 19, 0.85);
  --panel-border: rgba(224, 168, 88, 0.35);
  --panel-border-glow: rgba(245, 197, 110, 0.6);
  
  --gold-primary: #f3be6c;
  --gold-glow: #ffc977;
  --amber-warm: #e67e22;
  --brass-dark: #b8863b;
  --brass-light: #ffd58a;
  --tea-green: #90c290;
  --text-main: #f8f1e5;
  --text-muted: #cbb89e;
  --text-dim: #8e7a64;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-warm: 0 15px 35px rgba(0, 0, 0, 0.45);
  --shadow-inset-brass: inset 0 1px 2px rgba(255, 230, 180, 0.3), inset 0 -1px 3px rgba(0, 0, 0, 0.5);
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  perspective: 1200px;
}

/* --- 1. 3D PARALLAX BACKDROP & AMBIENT GLOW --- */
.workshop-backdrop-wrapper {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.backdrop-layer {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(0.65) saturate(1.1) contrast(1.05);
  transform: scale(1.04);
  transition: transform 0.2s cubic-bezier(0.1, 0.8, 0.2, 1);
  will-change: transform;
}

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

.warm-sunlight-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 25%, rgba(255, 200, 110, 0.25) 0%, rgba(230, 130, 40, 0.12) 40%, rgba(15, 10, 6, 0.6) 85%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.vintage-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(10, 6, 3, 0.85);
  pointer-events: none;
}

/* --- 2. TOP BRASS BAR --- */
.brass-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(28, 19, 13, 0.95) 0%, rgba(28, 19, 13, 0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--brass-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), var(--shadow-inset-brass);
}

.topbar-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.workshop-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-ember {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffca68 30%, #e67e22 100%);
  box-shadow: 0 0 12px #ffc977, 0 0 24px #e67e22;
  animation: emberBreathe 2.4s ease-in-out infinite;
}

@keyframes emberBreathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 20px #ffca68, 0 0 35px #e67e22; }
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--brass-light);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.badge-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.brass-gauges-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gauge-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 12, 8, 0.6);
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  box-shadow: var(--shadow-inset-brass);
}

.gauge-card i {
  color: var(--gold-primary);
}

.g-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.g-value {
  font-family: var(--font-mono);
  color: var(--text-main);
  font-weight: 700;
}

.sound-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cozy-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d35400, #a04000);
  border: 1px solid rgba(255, 200, 120, 0.4);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4), var(--shadow-inset-brass);
  transition: all 0.25s ease;
}

.cozy-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 84, 0, 0.6), var(--shadow-inset-brass);
  filter: brightness(1.1);
}

.cozy-pill-btn.playing {
  background: linear-gradient(135deg, #27ae60, #1e8449);
  box-shadow: 0 0 20px rgba(39, 174, 96, 0.6);
}

.brass-mini-btn {
  background: linear-gradient(180deg, #d4a359 0%, #8c5b1d 100%);
  border: 1px solid #ffe1a6;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #1e130a;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,255,0.6);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brass-mini-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}

/* --- 3. MAIN WORKSHOP HUB --- */
.workshop-hub {
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* 3D Tilt Card Base */
.tilt-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: var(--shadow-warm), var(--shadow-inset-brass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card:hover {
  border-color: var(--panel-border-glow);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(243, 190, 108, 0.25), var(--shadow-inset-brass);
}

/* --- HERO WELCOME CARD --- */
.workshop-welcome-card {
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}

.workshop-welcome-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #b8863b, #f3be6c, #e67e22, #b8863b);
  box-shadow: 0 0 10px rgba(243, 190, 108, 0.8);
}

.welcome-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}

.brass-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(243, 190, 108, 0.12);
  border: 1px solid rgba(243, 190, 108, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.workshop-headline {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.workshop-subheadline {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.welcome-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.w-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--brass-light);
}

.furnace-terminal {
  background: rgba(14, 9, 6, 0.9);
  border: 1px solid rgba(212, 163, 89, 0.4);
  border-radius: 12px;
  padding: 18px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

.term-badge {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 10px;
}

.term-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0a0604;
  border: 1px solid rgba(255, 200, 100, 0.2);
  padding: 10px 14px;
  border-radius: 8px;
}

.term-command code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #a8ffb2;
  word-break: break-all;
}

.brass-copy-btn {
  background: linear-gradient(180deg, #d4a359, #9e6c27);
  border: 1px solid #ffd48f;
  color: #1e130a;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.brass-copy-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.term-hint {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* --- 4. RACCOON WORKERS SECTION (3D CARDS) --- */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(212, 163, 89, 0.25);
  padding-bottom: 12px;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-left i {
  font-size: 1.4rem;
  color: var(--gold-primary);
}

.title-left h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(243, 190, 108, 0.12);
  border: 1px solid rgba(243, 190, 108, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
}

.section-badge-gold {
  color: #ffe6a3;
  background: rgba(255, 230, 163, 0.15);
  border-color: rgba(255, 230, 163, 0.4);
}

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

.worker-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.highlight-maker {
  border-color: rgba(255, 190, 90, 0.5);
  background: linear-gradient(180deg, rgba(46, 32, 24, 0.9) 0%, rgba(32, 22, 16, 0.9) 100%);
}

.worker-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.worker-avatar-frame {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  background: #110b07;
}

.worker-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.worker-card:hover .worker-img {
  transform: scale(1.08);
}

.worker-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #160f0a;
}

.pulse-amber { background: #f39c12; box-shadow: 0 0 8px #f39c12; }
.pulse-gold { background: #f1c40f; box-shadow: 0 0 10px #f1c40f; animation: pulseGlow 1.8s infinite; }
.pulse-tea { background: #2ecc71; box-shadow: 0 0 8px #2ecc71; }

@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.worker-meta {
  display: flex;
  flex-direction: column;
}

.worker-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
}

.worker-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.worker-current-action {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.worker-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.worker-desc code {
  font-family: var(--font-mono);
  color: var(--brass-light);
  background: rgba(255,255,255,0.08);
  padding: 1px 4px;
  border-radius: 4px;
}

/* Worker Interactive Boxes */
.worker-interactive-box {
  background: rgba(16, 10, 7, 0.75);
  border: 1px solid rgba(212, 163, 89, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin-top: auto;
}

.box-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Planner Task List */
.task-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.task-item.completed {
  color: var(--tea-green);
}

.task-item.active {
  color: var(--gold-primary);
  font-weight: 600;
}

.mini-input-group {
  display: flex;
  gap: 8px;
}

.mini-input-group input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.76rem;
  color: #fff;
  outline: none;
}

.mini-input-group input:focus {
  border-color: var(--gold-primary);
}

.brass-icon-btn {
  background: linear-gradient(180deg, #d4a359, #9e6c27);
  border: 1px solid #ffd48f;
  color: #1a0f08;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.brass-icon-btn:hover {
  transform: scale(1.08);
}

/* Maker Press UI */
.press-slot-ui {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.press-input-wrap {
  display: flex;
  gap: 8px;
}

.press-input-wrap input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #fff;
  outline: none;
}

.golden-hammer-btn {
  background: linear-gradient(135deg, #f39c12, #d35400);
  border: 1px solid #ffd48f;
  color: #fff;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.golden-hammer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(243, 156, 18, 0.6);
  filter: brightness(1.1);
}

.ingot-chamber {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 110px;
  overflow-y: auto;
}

.ingot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 200, 100, 0.15);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
}

.ingot-icon {
  font-size: 1rem;
}

.ingot-info {
  display: flex;
  flex-direction: column;
}

.ingot-info strong {
  color: var(--brass-light);
}

.ingot-info span {
  color: var(--text-dim);
  font-size: 0.68rem;
}

/* Scribe Typewriter UI */
.typewriter-box textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #fff;
  resize: vertical;
  outline: none;
}

.typewriter-box textarea:focus {
  border-color: var(--gold-primary);
}

.typewriter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 10px;
}

.note-target {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.note-target code {
  color: var(--brass-light);
}

.tea-scribe-btn {
  background: linear-gradient(180deg, #27ae60, #1e8449);
  border: 1px solid #7bed9f;
  color: #fff;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tea-scribe-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.scribe-toast-msg {
  font-size: 0.74rem;
  color: #2ecc71;
  margin-top: 6px;
  min-height: 18px;
}

/* --- 5. MODULAR EXPANSION BAYS --- */
.bays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.bay-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-warm), var(--shadow-inset-brass);
  transition: all 0.25s ease;
}

.bay-card:hover {
  border-color: var(--panel-border-glow);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5), var(--shadow-inset-brass);
}

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

.bay-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brass-light);
}

.bay-status {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--tea-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.bay-status.ready {
  color: var(--gold-primary);
}

.bay-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(243, 190, 108, 0.1);
  border: 1px solid rgba(243, 190, 108, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.bay-body h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.bay-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.bay-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.bay-link {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 700;
}

.bay-link:hover {
  text-decoration: underline;
}

.bay-badge-tag {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.bay-action-btn {
  background: rgba(243, 190, 108, 0.15);
  border: 1px solid rgba(243, 190, 108, 0.4);
  color: var(--gold-primary);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.bay-action-btn:hover {
  background: var(--gold-primary);
  color: #1a0f08;
}

/* --- 6. TELEMETRY SECTION --- */
.telemetry-section .panel-bezel {
  background: rgba(14, 9, 6, 0.9);
  border: 2px solid var(--brass-dark);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.8), var(--shadow-warm);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 163, 89, 0.2);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.panel-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.lamp-amber {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e67e22;
  box-shadow: 0 0 10px #e67e22;
}

.telemetry-clock {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.telemetry-screen {
  background: #080503;
  border: 1px solid rgba(255, 200, 100, 0.15);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.8;
  max-height: 160px;
  overflow-y: auto;
}

.t-line.info { color: #a5d8ff; }
.t-line.success { color: #8ce99a; }
.t-line.warm { color: #ffd43b; }

/* --- 7. BRASS FOOTER --- */
.brass-footer {
  border-top: 2px solid var(--brass-dark);
  background: #140d09;
  padding: 24px;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.f-left p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.f-left .f-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 4px;
}

.plaque-stamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-primary);
  border: 1px solid rgba(243, 190, 108, 0.35);
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(243, 190, 108, 0.08);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .workers-grid {
    grid-template-columns: 1fr;
  }
  .welcome-inner {
    grid-template-columns: 1fr;
  }
  .brass-gauges-cluster {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .workshop-headline {
    font-size: 1.8rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- 8. VINTAGE GIT & SYNC MODAL --- */
.brass-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #3d2b1f 0%, #241912 100%);
  border: 1px solid var(--brass-dark);
  color: var(--brass-light);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), var(--shadow-inset-brass);
  transition: all 0.25s ease;
}

.brass-pill-btn i {
  color: #f39c12;
}

.brass-pill-btn:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(243, 156, 18, 0.3), var(--shadow-inset-brass);
}

.vintage-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 4, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vintage-modal-card {
  background: linear-gradient(180deg, #2a1c14 0%, #1c120c 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(243, 190, 108, 0.2), var(--shadow-inset-brass);
  overflow: hidden;
  animation: slideUp 0.25s cubic-bezier(0.1, 0.8, 0.2, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px) scale(0.96); }
  to { transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(15, 10, 6, 0.6);
  border-bottom: 1px solid rgba(212, 163, 89, 0.3);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  color: var(--brass-light);
  font-size: 1.15rem;
}

.modal-title i {
  color: #e67e22;
  font-size: 1.3rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

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

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.git-status-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.git-stat-pill {
  background: rgba(10, 6, 4, 0.6);
  border: 1px solid rgba(212, 163, 89, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.git-stat-pill .lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}

.git-stat-pill strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.git-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.git-form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brass-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.git-form-group input {
  background: #0d0805;
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.git-form-group input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(243, 190, 108, 0.3);
}

.input-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.git-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.git-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.brass-action-btn {
  background: linear-gradient(180deg, #422d20 0%, #2b1c12 100%);
  border: 1px solid rgba(212, 163, 89, 0.4);
  color: var(--brass-light);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.brass-action-btn:hover {
  border-color: var(--gold-primary);
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.golden-sync-btn {
  background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
  border: 1px solid #ffca68;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
  transition: all 0.2s ease;
}

.golden-sync-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.6);
}

.git-feedback {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  min-height: 20px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  display: none;
}

.git-feedback.success {
  display: block;
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.git-feedback.info {
  display: block;
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.git-feedback.error {
  display: block;
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* --- 9. PASSKEY & SECURITY MODAL STYLES --- */
.lock-pill {
  border-color: #f39c12;
}
.lock-pill i {
  color: #ffc977;
}
.passkey-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.passkey-card code {
  color: var(--gold-primary);
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- 10. COMPREHENSIVE FLUID RESPONSIVE (MOBILE & TABLET) --- */
@media (max-width: 768px) {
  .topbar-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 10px 16px;
  }

  .workshop-badge {
    justify-content: flex-start;
  }

  /* Mobilde Göstergeler Yatay Kaydırılabilir Şerit */
  .brass-gauges-cluster {
    display: flex !important;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }
  .brass-gauges-cluster::-webkit-scrollbar {
    display: none;
  }
  .gauge-card {
    flex-shrink: 0;
    padding: 5px 10px;
  }

  .sound-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .brass-pill-btn, .cozy-pill-btn {
    flex: 1;
    min-height: 42px;
    justify-content: center;
    font-size: 0.74rem;
    padding: 6px 10px;
  }

  .brass-mini-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  /* Workshop Hub & Hero */
  .workshop-hub {
    padding: 20px 14px 60px;
    gap: 32px;
  }

  .workshop-welcome-card {
    padding: 22px 18px;
  }

  .welcome-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .workshop-headline {
    font-size: 1.65rem;
  }

  .workshop-subheadline {
    font-size: 0.92rem;
  }

  .welcome-tags {
    gap: 6px;
  }
  .w-tag {
    font-size: 0.74rem;
    padding: 4px 10px;
  }

  .term-command {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .term-command code {
    font-size: 0.75rem;
  }
  .brass-copy-btn {
    width: 100%;
    padding: 10px;
    text-align: center;
  }

  /* 3 Rakun İşçi Kartı (Mobil Tek Sütun) */
  .workers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .worker-card {
    padding: 20px 16px;
  }

  .worker-avatar-frame {
    width: 68px;
    height: 68px;
  }

  .worker-name {
    font-size: 1.25rem;
  }

  .press-input-wrap {
    flex-direction: column;
  }
  .golden-hammer-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .typewriter-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .tea-scribe-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  /* Modüler Yuvalar */
  .bays-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Mobilde Bottom Sheet Modal */
  .vintage-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .vintage-modal-card {
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    overflow-y: auto;
    border-bottom: none;
    animation: slideUpBottom 0.3s ease;
  }

  @keyframes slideUpBottom {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .git-form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .git-status-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .git-action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .brass-action-btn, .golden-sync-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .workshop-headline {
    font-size: 1.45rem;
  }
  .badge-title {
    font-size: 0.85rem;
  }
  .badge-subtitle {
    font-size: 0.65rem;
  }
}


