:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --border: #e7e8f0;
  --text: #1a1b2e;
  --text-muted: #6b6d84;
  --sidebar-bg: #14152b;
  --sidebar-text: #b8b9d1;
  --sidebar-text-active: #ffffff;
  --sidebar-hover: #1e1f3d;
  --accent: #6c5ce7;
  --accent-hover: #5b4bd6;
  --accent-soft: #efecfe;
  --ok: #16a34a;
  --ok-bg: #e9f9ef;
  --danger: #e0245e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,21,43,0.04), 0 4px 16px rgba(20,21,43,0.06);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  transition: width 0.15s ease, padding 0.15s ease;
  overflow: hidden;
}

/* ---------- Sidebar daraltilmis (sadece ikonlar) hali ---------- */

.sidebar.collapsed {
  width: 72px;
  padding-left: 10px;
  padding-right: 10px;
}

.sidebar.collapsed .brand {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar.collapsed .brand-name,
.sidebar.collapsed .nav-section,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .status-pill span,
.sidebar.collapsed .sidebar-collapse-btn span {
  display: none;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar.collapsed .status-pill {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar.collapsed .sidebar-collapse-btn {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar.collapsed .sidebar-collapse-btn .collapse-icon {
  transform: rotate(180deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 22px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #a29bfe);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.brand-name {
  color: white;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6c8a;
  padding: 16px 10px 6px;
  font-weight: 600;
}

.nav-section:first-child {
  padding-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--sidebar-text);
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
}

.nav-item.active {
  background: var(--accent);
  color: white;
}

.sidebar-footer {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  color: #9394ac;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.sidebar-collapse-btn:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
}

.sidebar-collapse-btn .collapse-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--sidebar-text);
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--sidebar-hover);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b6c8a;
  flex-shrink: 0;
}
.dot.ok { background: #2ecc71; }
.dot.err { background: var(--danger); }

/* ---------- Main ---------- */

.main {
  flex: 1;
  min-width: 0;
  padding: 28px 36px 40px;
}

.topbar {
  margin-bottom: 24px;
}

.topbar-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topbar-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.view { display: none; }
.view.active { display: block; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-header h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 100px;
}

.tag-muted {
  color: var(--text-muted);
  background: #f0f0f5;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

textarea, select, input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fbfbfd;
  resize: vertical;
  transition: border-color 0.15s ease;
}

textarea:focus, select:focus, input:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

.field-row {
  display: flex;
  gap: 12px;
  margin: 14px 0 18px;
}

.field { flex: 1; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  background: #d8d8e6;
  color: #9797ab;
  cursor: not-allowed;
}

.btn-sm { padding: 9px 14px; font-size: 13px; }

.btn-icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-secondary:hover { background: #f5f5fa; }

.btn-secondary svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.hint {
  color: var(--text-muted);
  font-size: 13px;
  margin: 10px 0 0;
  min-height: 0;
}

/* Hata mesajlari .hint ile ayni yerlesimi kullanir, sadece rengi ayrisir.
   Ikisi tek sinifta birlesikken aciklama metinleri de kirmizi gorunuyordu. */
.hint-error { color: var(--danger); }

/* Aciklama metninden sonra gelen alan etiketi nefes alsin */
.hint + .field-label { margin-top: 14px; }

.result-card { min-height: 300px; display: flex; flex-direction: column; }

.result-empty, .result-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13.5px;
  gap: 10px;
  padding: 30px 10px;
}

.empty-icon {
  width: 34px; height: 34px;
  fill: none; stroke: #c8c9dc; stroke-width: 1.4;
}

.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.caption-box {
  background: #fbfbfd;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  min-height: 140px;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.usage-note {
  color: var(--text-muted);
  font-size: 11.5px;
  margin: 10px 0 0;
}

.placeholder-card {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 60px 30px;
  text-align: center;
  color: var(--text-muted);
  max-width: 480px;
}

.placeholder-icon {
  width: 36px; height: 36px;
  fill: none; stroke: #c8c9dc; stroke-width: 1.4;
  margin-bottom: 12px;
}

.placeholder-card h2 {
  color: var(--text);
  font-size: 16px;
  margin: 0 0 6px;
}

.placeholder-card p {
  font-size: 13.5px;
  margin: 0;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.settings-row:last-child { border-bottom: none; }

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: #f0f0f5;
  color: var(--text-muted);
}

.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-neutral { background: var(--accent-soft); color: var(--accent); }

.save-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.save-row input { flex: 1; }

.library-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.library-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.library-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.library-item-name {
  font-weight: 600;
  font-size: 14px;
}

.library-item-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.library-item-caption {
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--text);
  margin: 8px 0;
}

.library-item-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.btn-danger-text {
  color: var(--danger);
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.generated-image-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fbfbfd;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.generated-image-wrap img {
  width: 100%;
  display: block;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.media-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.media-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: #f0f0f5;
}

.media-card-body {
  padding: 10px 12px 12px;
}

.media-card-name {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 9px;
}

.media-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-btn {
  color: var(--accent);
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 1150px) {
  .grid3 { grid-template-columns: 1fr; }
}

.step-inline-result {
  margin-top: 18px;
}

.result-empty-sm {
  padding: 10px 0 2px;
  min-height: 0;
}

.result-empty-sm p {
  margin: 0;
}

.image-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.image-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  background: #f0f0f5;
  flex-shrink: 0;
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-thumb.selected {
  border-color: var(--accent);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Proje bari (Canva tarzi proje adi + liste) ---------- */

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-bar { flex: 1; min-width: 0; }

.project-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.project-name-edit-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: text;
}

.project-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  outline: none;
  border-bottom: 1px dashed var(--border);
  padding: 2px 4px;
  border-radius: 6px;
  cursor: text;
  min-width: 60px;
  display: inline-block;
}

.project-name-edit-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
}

.project-name:hover { border-bottom-color: var(--accent); }

.project-name:focus {
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
}

.project-saved-flag {
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 600;
}

.project-switcher-wrap {
  position: relative;
  margin-left: auto;
}

.project-switcher-wrap .chevron-icon {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2;
}

.project-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 20;
}

.project-dropdown-new {
  width: 100%;
  text-align: left;
  background: var(--accent-soft);
  color: var(--accent);
  border: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 6px;
}

.project-dropdown-new:hover { background: #e4dffc; }

.project-dropdown-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.project-dropdown-item:hover { background: #f5f5fa; }

.project-dropdown-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.project-dropdown-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dropdown-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.project-dropdown-item-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 0 2px;
  flex-shrink: 0;
}

.project-dropdown-item-delete:hover { color: var(--danger); }

/* ---------- Adim 1 -> Adim 2 gecis butonu ---------- */

.step-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0 14px;
}

.btn-goto-step2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 6px 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.btn-goto-step2:hover { color: var(--accent-hover); }

.arrow-icon {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Adim 2 kilit gorunumu ---------- */

.step-lock-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
  z-index: 5;
}

.step-lock-overlay .lock-icon {
  width: 30px; height: 30px;
  fill: none; stroke: #c8c9dc; stroke-width: 1.6;
}

.step-lock-overlay p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-locked {
  position: relative;
  pointer-events: none;
}

.step-locked .step-lock-overlay { display: flex; }

.step-locked > *:not(.step-lock-overlay) { opacity: 0.35; }

/* ---------- Adim 2 kontrol satiri (referans + stil + tur + prompt yaz) ---------- */

.control-row { align-items: flex-end; }

.control-row select,
.control-row .prompt-yaz-btn {
  height: 42px;
}

.control-row .prompt-yaz-btn { white-space: nowrap; }

.ref-upload-wrap {
  position: relative;
  width: 42px;
  flex-shrink: 0;
}

.ref-upload-btn, .ref-thumb-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.ref-upload-btn {
  border: 1px dashed var(--border);
  background: #fbfbfd;
  cursor: pointer;
}

.ref-upload-btn:hover { background: #f5f5fa; }

.ref-upload-icon {
  width: 18px; height: 18px;
  fill: none; stroke: var(--text-muted); stroke-width: 1.8;
}

.ref-thumb-wrap {
  position: relative;
  border: 1px solid var(--border);
}

.ref-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ref-thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--danger);
  color: white;
  font-size: 10px;
  line-height: 18px;
  padding: 0;
  cursor: pointer;
}

/* ---------- Proje karsilama ekrani (Canva tarzi galeri) ---------- */

.project-welcome {
  max-width: 980px;
}

.btn-welcome-new {
  margin-bottom: 24px;
  padding: 13px 22px;
  font-size: 15px;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  gap: 8px;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-card:active {
  transform: translateY(0);
}

.project-card-name {
  width: 100%;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-brief {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-muted);
  min-height: 34px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-brief-empty {
  font-style: italic;
  opacity: 0.7;
}

.project-card-thumbs {
  display: flex;
  gap: 6px;
}

.project-card-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.project-card-date {
  margin-top: auto;
  padding-top: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.project-welcome-empty {
  padding: 30px 4px;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ---------- Giriş ekranı ---------- */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, #1e1f3d 0%, var(--sidebar-bg) 60%);
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 34px 30px 28px;
  text-align: center;
}

.auth-mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 23px;
  letter-spacing: -0.01em;
}

.auth-sub {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.auth-btn:hover:not(:disabled) { background: var(--bg); border-color: #d6d7e4; }
.auth-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-btn:disabled { opacity: 0.55; cursor: default; }
.auth-g { width: 18px; height: 18px; flex: none; }

.auth-error {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fdeaf0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

/* ---------- Kenar çubuğu kullanıcı kutusu ---------- */
.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--sidebar-hover);
}

.user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sidebar-text-active);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-mail {
  font-size: 11px;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-signout {
  flex: none;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sidebar-text);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 7px;
  padding: 4px 9px;
  cursor: pointer;
}

.user-signout:hover { color: #fff; border-color: rgba(255,255,255,0.32); }
.user-signout:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Menü daraltıldığında sadece çıkış düğmesi kalır */
.sidebar.collapsed .user-meta { display: none; }
.sidebar.collapsed .user-box { justify-content: center; padding: 8px 4px; }

/* ==========================================================================
   Marka Profilleri — liste + düzenleme ekranı (Görev 10-11)
   ========================================================================== */

.profiles-list-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.profile-new-wrap { position: relative; }

.profile-new-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-new-option {
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-new-option:hover { background: #f5f5fa; }
.profile-new-option:disabled { opacity: 0.45; cursor: not-allowed; }
.profile-new-option b { font-size: 13px; }
.profile-new-option span { font-size: 11.5px; color: var(--text-muted); }

.profile-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.profile-card.active { border-color: var(--ok); box-shadow: 0 0 0 2px rgba(22,163,74,0.14); }

.profile-card-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ok);
  background: var(--ok-bg);
  border-radius: 100px;
  padding: 2px 8px;
}

.profile-card-warn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  color: #a5521b;
  background: #fdeee4;
  border-radius: 100px;
  padding: 2px 8px;
}

.profile-card-name { font-size: 14px; font-weight: 700; margin: 0; padding-right: 60px; }
.profile-card-meta { font-size: 11.5px; color: var(--text-muted); }

.profile-card-palette { display: flex; gap: 4px; }
.profile-card-palette i {
  width: 20px; height: 20px; border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.08);
  display: block;
}

.profile-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.profile-card-tags span {
  font-size: 10.5px;
  background: #f1f3f6;
  border: 1px solid #e2e6ec;
  color: #58626d;
  border-radius: 100px;
  padding: 1px 8px;
}

.profile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}

.profile-card-new {
  border-style: dashed;
  background: transparent;
  color: var(--text-muted);
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  gap: 4px;
}

/* ---- Düzenleme ekranı ---- */

.profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.profile-head-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.profile-back {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.profile-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Sayfa başlığı topbar'da; buradaki ad sadece ikincil bir etiket — 18px bold
   olduğunda "Marka Profili / Marka Profilim" iki kez başlık gibi okunuyordu. */
.profile-name {
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  border-bottom: 1px dashed transparent;
}
.profile-name:hover, .profile-name:focus { border-bottom-color: var(--border); }

.profile-src { font-size: 12px; color: var(--text-muted); margin-right: 4px; }

.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.profile-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff7f1;
  border: 1px solid #f0d3b8;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 14px;
}

.profile-status b { font-size: 13px; color: #a5521b; }

.profile-track {
  width: 90px;
  height: 6px;
  background: #ecdfd2;
  border-radius: 100px;
  overflow: hidden;
  display: block;
}
.profile-track i { display: block; height: 100%; background: #d98032; }

.profile-status #profMissingText { font-size: 12px; color: #8a6a4d; }

.profile-jumps { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-jump-tag {
  background: var(--card);
  border: 1px solid #e6c9ad;
  color: #a5521b;
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.profile-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  margin-bottom: 16px;
}

.profile-tab {
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

.profile-tab.active { color: var(--text); font-weight: 700; border-bottom-color: var(--accent); }
.profile-tab .tab-dot { width: 6px; height: 6px; border-radius: 50%; background: #d98032; flex-shrink: 0; }
.profile-tab .tab-ok { color: var(--ok); font-size: 11px; }

.profile-group-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  max-width: 640px;
}

.profile-group-card.todo { border-color: #e8c4a4; background: #fffdfb; }

.profile-group-card h3 { margin: 0 0 4px; font-size: 15px; display: flex; align-items: center; gap: 8px; }

.profile-group-todo-badge {
  font-size: 10.5px;
  font-weight: 700;
  background: #fdeee4;
  color: #a5521b;
  border-radius: 100px;
  padding: 2px 9px;
}

.profile-group-hint { font-size: 12px; color: var(--text-muted); margin: 0 0 16px; }

.pf-field { margin-bottom: 16px; }
.pf-field:last-child { margin-bottom: 0; }

.pf-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pf-field-head .field-label { margin-bottom: 6px; }

.pf-suggest-btn {
  flex: none;
  margin-bottom: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border: none;
  border-radius: 100px;
  padding: 3px 11px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pf-suggest-btn:hover { background: #e4dffc; }
.pf-suggest-btn:disabled { opacity: 0.6; cursor: wait; }

.pf-slider-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pf-slider-row small { font-size: 11px; color: var(--text-muted); width: 56px; flex-shrink: 0; }
.pf-slider-row small:last-child { text-align: right; }
.pf-slider-row input[type="range"] { flex: 1; accent-color: var(--accent); }

.pf-choice { display: flex; gap: 8px; }
.pf-choice button {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12.5px;
  cursor: pointer;
}
.pf-choice button.selected { background: var(--accent); color: white; border-color: var(--accent); }

.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  padding: 3px 6px 3px 12px;
  font-size: 12px;
}
.pf-chip button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 2px;
  opacity: 0.7;
}
.pf-chip button:hover { opacity: 1; }
/* NOT: `input[type="text"]` genel kurali width:100% veriyor ve ozgullugu
   (0,1,1) sade bir `.pf-chip-add` sinifindan (0,1,0) yuksek. Bu yuzden secici
   `input.pf-chip-add` olmali — yoksa "+ ekle" kutusu satiri kaplar. */
input.pf-chip-add {
  border: 1px dashed var(--border);
  background: none;
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 12px;
  color: var(--text-muted);
  width: 150px;
}

.pf-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-color-item { display: flex; align-items: center; gap: 5px; }
.pf-color-item input[type="color"] { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 6px; padding: 0; cursor: pointer; }
.pf-color-item button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; }
.pf-color-add { border: 1px dashed var(--border); border-radius: 6px; width: 30px; height: 30px; background: none; cursor: pointer; color: var(--text-muted); }

.pf-single-color { display: flex; align-items: center; gap: 10px; }
.pf-single-color input[type="color"] { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; padding: 0; cursor: pointer; }

.pf-segment-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-savebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.profile-savebar-note { font-size: 12px; color: var(--text-muted); }

/* ---- Modal (eksikler) ---- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  max-width: 380px;
  width: 100%;
}

.modal-box h3 { margin: 0 0 6px; font-size: 15px; }

.profile-missing-list { margin-top: 10px; }
.profile-missing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.profile-missing-row:last-child { border-bottom: none; }

/* ---- Özet pano (dashboard) ---- */

/* Pano sabit satirlardan olusur. Onceki auto-fit izgara kolon genisliklerini
   icerige gore kaydirip sagda bos alan birakiyordu. */
.dash { display: flex; flex-direction: column; gap: 14px; }

/* stretch: yan yana kartlar esit boyda dursun — start ile kisa kartlarin
   altinda buyuk bos alan kaliyordu. */
.dash-row { display: grid; gap: 14px; align-items: stretch; }

/* 1. satir: kunye %50, palet %25, hedef kitle %25 */
.dash-row-1 { grid-template-columns: 2fr 1fr 1fr; }

/* 3. satir: format dar, iki "en" karti genis — satiri tam doldurur */
.dash-row-3 { grid-template-columns: 1fr 2fr 2fr; }

/* 4. satir: performans / gonderi grafigi / karsilastirma esit uclu */
.dash-row-4 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1100px) {
  .dash-row-1, .dash-row-3, .dash-row-4 { grid-template-columns: 1fr; }
}

.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}

/* Künye ve hesap özeti tüm satırı kaplar; geri kalanı yan yana dizilir. */
.dash-wide { grid-column: 1 / -1; }

.dash-card h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dash-note { font-size: 11px; font-weight: 400; color: var(--text-muted); }
.dash-lbl {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.dash-para { font-size: 13px; margin: 0 0 8px; line-height: 1.5; }
.dash-para:last-child { margin-bottom: 0; }
.dash-muted { color: var(--text-muted); }
.dash-empty { font-size: 13px; color: var(--text-muted); margin: 0; }

.dash-kunye {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.dash-kunye b { font-size: 15px; }

.dash-chip {
  font-size: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  padding: 1px 9px;
  margin-left: 6px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
}
.dash-stat-val { font-size: 19px; font-weight: 700; line-height: 1.1; }
.dash-stat-lbl { font-size: 11px; color: var(--text-muted); }
.dash-stat-sub { font-size: 10.5px; color: var(--text-muted); }

/* Degisim rozeti — referans raporlardaki ▲/▼ gostergelerinin karsiligi. */
.dash-delta {
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  white-space: nowrap;
}
.dash-delta.up { color: var(--ok); }
.dash-delta.down { color: var(--danger); }

.dash-stats-2 { grid-template-columns: repeat(2, 1fr); }

.dash-trend { margin-top: 14px; }
.dash-spark { width: 100%; height: 46px; display: block; margin-top: 4px; }
/* Gonderi bazli etkilesim: HTML cubuklar (SVG degil) — her cubugun kendi
   hover baloncugu olsun diye. */
.dash-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100px;
  margin-bottom: 10px;
}

.dash-bar {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #d9d9e6;
  border-radius: 3px 3px 0 0;
  display: block;
  transition: filter 0.12s ease;
}
.dash-bar.above { background: var(--accent); }
.dash-bar:hover { filter: brightness(0.88); }

/* Ortalama cizgisi cubuklarin uzerinde ince kesikli bir isaret. */
.dash-bars-avg {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1.5px dashed #d98032;
  pointer-events: none;
}

/* Baloncuk cubuğun ALTINA acilir: grafik alani 100px, baloncuk daha yuksek —
   yukari acilinca kartin disina tasip kirpiliyordu. */
.dash-bar-tip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  background: var(--text);
  color: #fff;
  border-radius: 10px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 30;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  text-align: left;
}
.dash-bar:hover .dash-bar-tip { display: flex; }
.dash-bar-tip img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.dash-bar-tip b { font-size: 11.5px; }
.dash-bar-tip span { font-size: 10.5px; opacity: 0.75; line-height: 1.35; }

/* Ilk ve son cubugun baloncugu karttan tasmasin. */
.dash-bar:first-child .dash-bar-tip { left: 0; transform: none; }
.dash-bar:last-child .dash-bar-tip { left: auto; right: 0; transform: none; }

/* "Ne daha iyi tutuyor?" — iki secenegin payini tek cubukta gosteren kiyas. */
.dash-vs { display: flex; flex-direction: column; gap: 12px; }
.dash-vs-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  gap: 8px;
}
.dash-vs-labels .win { color: var(--text); font-weight: 700; }
.dash-vs-bar {
  height: 8px;
  border-radius: 100px;
  background: #e3e4ee;
  overflow: hidden;
}
.dash-vs-bar i { display: block; height: 100%; background: var(--accent); }

/* Ilham hesaplariyla etkilesim kiyasi. */
.dash-bench { display: flex; flex-direction: column; gap: 8px; }
.dash-bench-row {
  display: grid;
  grid-template-columns: 150px 1fr 54px 64px auto;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.dash-bench-row.me { font-weight: 700; }
.dash-bench-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-bench-bar { height: 10px; border-radius: 100px; background: #e3e4ee; overflow: hidden; }
.dash-bench-bar i { display: block; height: 100%; background: var(--accent); }
.dash-bench-row.me .dash-bench-bar i { background: var(--ok); }
.dash-bench-val { text-align: right; }
.dash-bench-sub { color: var(--text-muted); font-size: 11.5px; text-align: right; }

@media (max-width: 700px) {
  .dash-bench-row { grid-template-columns: 1fr 60px; }
  .dash-bench-bar, .dash-bench-sub { display: none; }
}

.dash-palette { display: flex; flex-direction: column; gap: 8px; }
.dash-palette-row { display: flex; align-items: center; gap: 5px; }
.dash-palette-lbl { font-size: 11px; color: var(--text-muted); width: 62px; flex: none; }
.dash-palette-row i {
  width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  display: block;
}

/* Renk kutucugu: uzerine gelince buyuyup hex kodunu ve turunu gosterir.
   title= yerine CSS baloncuk — tarayici ipucu hem gec cikiyor hem stilsiz. */
.dash-swatch { position: relative; display: block; }
.dash-swatch:hover i { transform: scale(1.25); border-color: var(--accent); }
.dash-swatch i { transition: transform 0.12s ease, border-color 0.12s ease; }

.dash-swatch-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 30;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
.dash-swatch:hover .dash-swatch-tip { display: flex; }
.dash-swatch-tip b { font-size: 12px; letter-spacing: 0.02em; }
.dash-swatch-tip span:last-child { font-size: 10.5px; opacity: 0.7; }
.dash-swatch-big {
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  display: block;
}

.dash-donut { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.dash-donut-legend { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.dash-donut-legend i {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block; margin-right: 6px;
}
.dash-donut-legend .dot-accent { background: var(--accent); }
.dash-donut-legend .dot-muted { background: var(--border); }

/* 5 gonderi esit genislikte; kart ne kadar genisse o kadar yayilir. */
.dash-posts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }

.dash-post {
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dash-post img, .dash-post-noimg {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  background: var(--bg);
}
.dash-post-meta { font-size: 11.5px; color: var(--text-muted); }
.dash-post-meta b { color: var(--text); font-size: 13px; }
.dash-post:hover img { border-color: var(--accent); }

/* Yükleme iskeleti: soldan sağa kayan bir parlama. Ölü bir "Yükleniyor…"
   satırından farkı, kullanıcının ne geleceğini görmesi ve ekranın donmuş
   gibi durmaması. */
.skel {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bg) 25%, #eceef5 37%, var(--bg) 63%);
  background-size: 400% 100%;
  animation: skel-shimmer 1.4s ease infinite;
}

@keyframes skel-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
}

/* ---- Detaylar geçişi ---- */

.profile-detail-toggle { display: flex; justify-content: center; margin: 20px 0 6px; }
.profile-detail-toggle .chevron-icon {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2;
  transition: transform 0.15s ease;
}
.profile-detail-toggle .open .chevron-icon { transform: rotate(180deg); }

/* Detaylar iki kolon; dar ekranda tek kolona düşer. 440px eşiği bilinçli:
   340px'te 1440'lık ekranda üç kolona düşüyor ve formlar okunamayacak kadar
   sıkışıyordu. */
.profile-pane {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px) {
  .profile-pane { grid-template-columns: 1fr; }
}
.profile-pane .profile-group-card { max-width: none; }

/* ---- Kurulum sihirbazı ---- */

/* Sihirbaz açıkken uygulama arkada bulanık durur: kullanıcı nereye geldiğini
   görür ama profilini kurmadan dashboard'da kaybolmaz. */
.app.blurred { filter: blur(5px); pointer-events: none; user-select: none; }

.wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 21, 43, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  overflow-y: auto;
}

.wizard-box {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(20, 21, 43, 0.28);
  padding: 30px 32px;
  width: 100%;
  max-width: 520px;
  margin: auto;
}

.wizard-box h2 { margin: 0 0 6px; font-size: 20px; }
.wizard-box .hint { margin-bottom: 18px; }

.wizard-dots { display: flex; gap: 6px; margin-bottom: 20px; }
.wizard-dot {
  width: 26px;
  height: 4px;
  border-radius: 100px;
  background: var(--border);
}
.wizard-dot.active { background: var(--accent); }
.wizard-dot.done { background: var(--ok); }

.wizard-choice { display: flex; flex-direction: column; gap: 10px; }

/* Birincil secenek (hesap baglama) gorsel olarak one cikar; alttaki iki
   secenek daha sonik bir blokta durur. */
.wizard-option-primary {
  border-color: var(--accent);
  background: var(--accent-soft);
  margin-bottom: 14px;
}
.wizard-option-primary:hover { background: #e4dffc; }
.wizard-option-primary b { font-size: 15.5px; }

.wizard-option-head { display: flex; align-items: center; gap: 8px; }

/* Secici `.wizard-option span`den (0,1,1) daha ozgul olmali; yoksa rozet metni
   gri uzerine gri kalip goronmuyor. */
.wizard-option .wizard-badge {
  font-size: 10.5px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  padding: 2px 9px;
}

.wizard-option.disabled,
.wizard-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: var(--border);
  background: var(--bg);
}
.wizard-option.disabled .wizard-badge { background: var(--text-muted); color: #fff; }

.wizard-option-note {
  font-size: 11.5px;
  color: #a5521b;
  background: #fdeee4;
  border-radius: 8px;
  padding: 6px 9px;
  margin-top: 4px;
}

.wizard-alt { display: flex; flex-direction: column; gap: 10px; }
.wizard-alt .wizard-option b { font-size: 13.5px; }
.wizard-warn { color: #a5521b; }

.wizard-option {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wizard-option:hover { border-color: var(--accent); background: var(--accent-soft); }
.wizard-option b { font-size: 14.5px; color: var(--text); }
.wizard-option span { font-size: 12.5px; color: var(--text-muted); }

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.wizard-progress { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }

.wizard-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.wizard-progress-row.active { color: var(--text); font-weight: 600; }
.wizard-progress-row.done { color: var(--ok); }
.wizard-progress-mark { width: 16px; text-align: center; flex: none; }

.wizard-summary { margin: 16px 0 4px; }

/* ---- Üretim sayfasındaki profil seçici (Görev 13'te dolacak) ---- */

.profile-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.profile-selector-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .profile-head { flex-direction: column; }
  .profile-card-grid { grid-template-columns: 1fr; }
}


/* Kenar cubugu ayraci — uretim islerini (Marka Profili / Kampanyalar / Takvim)
   arsiv islerinden (Medya / Kayitlar) ayirir. */
.nav-divider {
  height: 1px;
  margin: 10px 14px;
  background: rgba(255, 255, 255, 0.10);
}

.sidebar.collapsed .nav-divider { margin: 10px 8px; }
