/* =========================================================
   TAVUK ÇİFTLİĞİ • DARK TEMA (BASE)
   ======================================================== */

   :root {
    --bg: #020817;
    --bg-soft: #050B1F;
    --accent: #facc14;
    --accent-soft: rgba(250, 204, 21, 0.11);
    --accent-strong: #fde047;
    --text: #E5E7EB;
    --muted: #9CA3AF;
    --error: #F97373;
    --radius-xl: 26px;
    --radius-md: 14px;
    --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.70);
    --transition-fast: 0.22s ease-out;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 15px;
    --line-height-base: 1.6;
  
    /* ek küçük uyum değişkenleri */
    --card-bg: rgba(5, 7, 15, 0.98);
    --card-bg-soft: rgba(3, 5, 12, 0.98);
    --card-border: rgba(75, 85, 99, 0.75);
    --pill-bg: rgba(6, 8, 15, 0.98);
    --pill-border: rgba(75, 85, 99, 0.95);
    --badge-bg: rgba(9, 9, 15, 0.96);
    --badge-border: rgba(148, 163, 253, 0.40);
  }
  
  /* ================= GLOBAL RESET ================= */
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html,
  body {
    width: 100%;
  }
  
  body.tc-body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #111827 0, #020817 42%, #000 100%);
    color: var(--text);
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
  }
  
  .tc-container {
    width: 100%;
    max-width: 1280px;
    padding: 40px 24px 40px;
    margin: 0 auto;
  }
  
  /* İlk boyamada geçiş/animasyonları kapat (no-flash) */
  .theme-loading *,
  .theme-loading *::before,
  .theme-loading *::after {
    transition: none !important;
  }
  
/* ================= HEADER ================= */

.tc-header {
  display: flex;
  flex-direction: column; /* üst ve alt katman */
  gap: 6px;
  margin-bottom: 28px;
}

/* Üst satır: Logo + (tema + hamburger) */
.tc-header-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tc-logo {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}

.tc-logo::before {
  content: "🐔";
  font-size: 24px;
}

/* Alt satır = Sub başlık */
.tc-sub {
  font-size: 15px;
  color: var(--muted);
  width: 100%;
  margin-top: 2px;
}

/* Sağ taraf: tema + menü */
.tc-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

  
  /* Tema butonu (artık absolute değil, header-actions içinde) */
  .tc-theme-toggle {
    height: 38px;
    min-width: 38px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.40);
    background: rgba(9, 9, 15, 0.96);
    color: var(--accent-strong);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: var(--shadow-soft);
    transition:
      transform var(--transition-fast),
      box-shadow var(--transition-fast),
      border-color var(--transition-fast),
      background var(--transition-fast);
  }
  
  .tc-theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(250, 204, 21, 0.8);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  }
  
  /* =========================================================
     Global Menü (Hamburger + Side Menu)
     ========================================================= */
  
  .tc-global-menu {
    position: relative;
  }
  
  /* Tema switcher yanında görünen hamburger ikon */
  .tc-menu-toggle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: var(--card-bg, rgba(15,23,42,0.96));
    color: var(--text, #E5E7EB);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 10px 28px rgba(15,23,42,0.85);
    transition:
      background var(--transition-fast, 0.18s ease-out),
      box-shadow var(--transition-fast, 0.18s ease-out),
      transform var(--transition-fast, 0.18s ease-out);
  }
  
  .tc-menu-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(15,23,42,0.9);
  }
  
  /* Açılır yan menü */
  .tc-side-menu {
    position: absolute;
    right: 0;
    top: 110%;
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--card-bg, rgba(15,23,42,0.98));
    border: 1px solid rgba(148,163,184,0.75);
    box-shadow: 0 18px 50px rgba(15,23,42,0.95);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 190px;
  
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
      opacity var(--transition-fast, 0.18s ease-out),
      transform var(--transition-fast, 0.18s ease-out);
    z-index: 999;
  }
  
  .tc-side-menu.tc-side-menu-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .tc-side-menu a {
    font-size: 13px;
    color: var(--text, #E5E7EB);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition:
      background var(--transition-fast, 0.18s ease-out),
      color var(--transition-fast, 0.18s ease-out);
  }
  
  .tc-side-menu-icon {
    font-size: 14px;
  }
  
  .tc-side-menu a:hover {
    background: var(--accent-soft, rgba(250,204,21,0.12));
    color: var(--accent-strong, #fde047);
  }
  
  /* Mobilde menü pozisyonu biraz aşağı insin */
  @media (max-width: 640px) {
    .tc-side-menu {
      top: 120%;
      right: 0;
    }
  }
  
  /* ================= HERO ================= */
  
  .tc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 36px;
  }
  
  .tc-hero-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .tc-hero-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .tc-hero-pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--muted);
  }
  
  .tc-hero-pill-soft {
    opacity: 0.85;
  }
  
  .tc-hero-title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
  }
  
  .tc-hero-title span {
    color: var(--accent-strong);
  }
  
  .tc-hero-sub {
    font-size: 14px;
    color: var(--muted);
    max-width: 480px;
  }
  
  .tc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
  }
  
  .tc-hero-primary {
    font-size: 14px;
  }
  
  .tc-hero-secondary {
    font-size: 13px;
  }
  
  .tc-hero-meta {
    margin-top: 6px;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* HERO sağ taraf fake preview */
  
  .tc-hero-right {
    display: flex;
    justify-content: flex-end;
  }
  
  .tc-hero-preview {
    width: 100%;
    max-width: 360px;
    border-radius: 22px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    font-size: 11px;
  }
  
  .tc-hero-preview-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--card-border);
  }
  
  .tc-hero-preview-header .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--muted);
  }
  
  .tc-hero-preview-title {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted);
  }
  
  .tc-hero-preview-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .tc-hero-preview-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto;
    gap: 6px;
    align-items: center;
  }
  
  .tc-hero-preview-row .label {
    color: var(--muted);
  }
  
  .tc-hero-preview-row .bar {
    position: relative;
    height: 7px;
    border-radius: 999px;
    background: var(--card-bg-soft);
    overflow: hidden;
  }
  
  .tc-hero-preview-row .fill {
    position: absolute;
    inset: 0;
    width: 60%;
    background: linear-gradient(
      to right,
      rgba(234, 179, 8, 0.8),
      rgba(234, 179, 8, 0.4)
    );
  }
  
  .tc-hero-preview-row .fill-2 { width: 40%; }
  .tc-hero-preview-row .fill-3 { width: 25%; }
  
  .tc-hero-preview-row .val {
    font-variant-numeric: tabular-nums;
    color: var(--accent-strong);
  }
  
  /* ================= ARAÇLAR BAŞLIK ================= */
  
  .tc-tools-section {
    margin-top: 8px;
  }
  
  .tc-tools-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  
  .tc-tools-title {
    font-size: 18px;
    font-weight: 600;
  }
  
  .tc-tools-sub {
    font-size: 13px;
    color: var(--muted);
    max-width: 420px;
  }
  
  /* ================= CARD / GRID ================= */
  
  .tc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 10px;
  }
  
  .tc-card {
    padding: 22px 18px 18px;
    border-radius: var(--radius-xl);
    background:
      radial-gradient(circle at top left, rgba(250, 204, 21, 0.04), transparent),
      linear-gradient(150deg, rgba(12, 18, 34, 0.99), rgba(6, 8, 15, 0.99));
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 253, 0.12);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    transition:
      transform var(--transition-fast),
      box-shadow var(--transition-fast),
      border-color var(--transition-fast),
      background var(--transition-fast);
  }
  
  .tc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  
  .tc-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 253, 0.40);
    margin-bottom: 4px;
  }
  
  .tc-card-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.4);
    color: var(--muted);
  }
  
  .tc-card h2 {
    font-size: 18px;
    font-weight: 600;
  }
  
  .tc-card p {
    font-size: 14px;
    color: var(--muted);
  }
  
  .tc-card-meta {
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  
  .tc-card::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top right, var(--accent-soft), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: none;
  }
  
  .tc-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.85);
    border-color: rgba(250, 204, 21, 0.30);
  }
  
  .tc-card:hover::after {
    opacity: 1;
    transform: translate3d(-4px, 4px, 0);
  }
  
  /* İki kolonlu tool sayfaları */
  .tc-grid-2col {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    align-items: flex-start;
  }
  
  /* ================= FOOTER ================= */
  
  .tc-footer {
    margin-top: 28px;
    font-size: 11px;
    color: var(--muted);
  }
  
  .tc-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
  }
  
  /* ================= FORM / INPUT GENEL ================= */
  
  .tc-form-card,
  .tc-poll-card,
  .tc-tier-card,
  .tc-rp-input-card,
  .tc-rp-wheel-card {
    padding: 24px 20px 20px;
    border-radius: var(--radius-xl);
    background:
      linear-gradient(155deg, rgba(10, 15, 28, 0.99), rgba(6, 7, 12, 0.99));
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .tc-input,
  .tc-select,
  .tc-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid rgba(75, 85, 99, 0.95);
    background: rgba(5, 7, 12, 0.98);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition:
      border-color var(--transition-fast),
      box-shadow var(--transition-fast),
      background var(--transition-fast),
      color var(--transition-fast);
  }
  
  .tc-input::placeholder,
  .tc-textarea::placeholder {
    color: var(--muted);
  }
  
  .tc-input:focus,
  .tc-select:focus,
  .tc-textarea:focus {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.18);
    background: #020817;
  }
  
  .tc-textarea {
    resize: vertical;
    min-height: 80px;
  }
  
  /* Form builder içinde tekrar eden inputlar */
  
  .tc-form-card input[type="text"],
  .tc-form-card textarea,
  .tc-form-card select {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border-radius: 11px;
    border: 1px solid rgba(75, 85, 99, 0.95);
    background: rgba(5, 7, 12, 0.98);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition:
      border-color var(--transition-fast),
      box-shadow var(--transition-fast),
      background var(--transition-fast),
      color var(--transition-fast);
  }
  
  .tc-form-card input[type="text"]::placeholder,
  .tc-form-card textarea::placeholder {
    color: var(--muted);
  }
  
  .tc-form-card input[type="text"]:focus,
  .tc-form-card textarea:focus,
  .tc-form-card select:focus {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.18);
    background: #020817;
  }
  
  /* Çoktan seçmeli / checkbox seçenek text inputları */
  
  .tc-opt-input {
    flex: 1;
    min-width: 80px;
    padding: 4px 2px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    outline: none;
  }
  
  .tc-opt-input::placeholder {
    color: var(--muted);
  }
  
  /* Çoktan seçmeli / checkbox wrapper */
  
  .tc-opt-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 11px;
    border: 1px solid rgba(75, 85, 99, 0.95);
    background: rgba(5, 7, 12, 0.98);
    align-items: center;
  }
  
  .tc-opt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  
  /* Chip */
  
  .tc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--accent-strong);
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid rgba(148, 163, 253, 0.45);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
  }
  
  .tc-chip-label {
    white-space: nowrap;
  }
  
  .tc-chip-remove {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.98);
    color: var(--accent-strong);
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
  }
  
  .tc-chip-remove:hover {
    background: rgba(248, 113, 113, 0.96);
    color: #0b0f19;
  }
  
  /* Soru bloklarında checkbox / radio */
  
  .tc-q input[type="checkbox"],
  .tc-q input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 253, 0.95);
    background: rgba(5, 7, 12, 0.98);
    margin-right: 6px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: all var(--transition-fast);
  }
  
  .tc-q input[type="radio"] {
    border-radius: 999px;
  }
  
  .tc-q input[type="checkbox"]:hover,
  .tc-q input[type="radio"]:hover {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.14);
  }
  
  .tc-q input[type="checkbox"]:checked,
  .tc-q input[type="radio"]:checked {
    background: var(--accent);
    border-color: var(--accent);
  }
  
  .tc-q input[type="checkbox"]:checked::after {
    content: "✔";
    position: absolute;
    font-size: 11px;
    color: #111827;
    top: 0;
    left: 3px;
  }
  
  .tc-q input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #111827;
    top: 3px;
    left: 3px;
  }
  
  /* ================= BUTTONS ================= */
  
  .tc-btn-primary,
  .tc-btn-outline,
  .tc-btn-ghost,
  .tc-q-remove {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
  }
  
  .tc-btn-primary {
    background: var(--accent);
    color: #111827;
    font-weight: 600;
    box-shadow: 0 16px 40px rgba(250, 204, 21, 0.32);
  }
  
  .tc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 60px rgba(250, 204, 21, 0.42);
  }
  
  .tc-btn-outline {
    background: transparent;
    color: var(--accent-strong);
    border: 1px solid rgba(250, 204, 21, 0.95);
  }
  
  .tc-btn-outline:hover {
    background: rgba(250, 204, 21, 0.10);
    color: #fef9c3;
  }
  
  .tc-btn-ghost {
    background: transparent;
    color: var(--muted);
  }
  
  .tc-btn-ghost:hover {
    background: rgba(148, 163, 253, 0.06);
    color: var(--accent-strong);
  }
  
  .tc-q-remove {
    margin-top: 4px;
    background: transparent;
    color: var(--error);
    border-radius: 8px;
    padding-inline: 10px;
  }
  
  .tc-q-remove:hover {
    background: rgba(248, 113, 113, 0.12);
  }
  
  /* ================= QUESTION BLOCKS ================= */
  
  .tc-q {
    padding: 11px 11px 9px;
    border-radius: 15px;
    border: 1px solid rgba(75, 85, 99, 0.7);
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 8px;
  }
  
  .tc-q > div:first-child {
    font-size: 13px;
    color: var(--accent-strong);
    font-weight: 500;
  }
  
  .tc-q input[type="text"],
  .tc-q textarea {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border-radius: 9px;
    border: 1px solid rgba(75, 85, 99, 0.95);
    background: rgba(5, 7, 12, 0.98);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition:
      border-color var(--transition-fast),
      box-shadow var(--transition-fast),
      background var(--transition-fast),
      color var(--transition-fast);
  }
  
  .tc-q input[type="text"]::placeholder,
  .tc-q textarea::placeholder {
    color: var(--muted);
  }
  
  .tc-q input[type="text"]:focus,
  .tc-q textarea:focus {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.18);
    background: #020817;
  }
  
  /* ================= LAYOUT HELPERS ================= */
  
  .tc-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .tc-inline > * {
    flex: 1;
  }
  
  .tc-inline .tc-badge {
    flex: 0 0 auto;
  }
  
  .tc-result {
    font-size: 13px;
    margin-top: 6px;
    color: var(--accent-strong);
    word-break: break-all;
  }
  
  .tc-link {
    font-family: monospace;
    font-size: 12px;
    color: var(--accent-strong);
  }
  
  /* Badge */
  
  .tc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid var(--badge-border);
    color: var(--muted);
    background: var(--badge-bg);
  }
  
  /* ================= RESPONSES BOX ================= */
  
  .tc-responses {
    margin-top: 12px;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid rgba(75, 85, 99, 0.65);
    background: var(--card-bg-soft);
    font-size: 12px;
    max-height: 260px;
    overflow-y: auto;
  }
  