/* ==========================================================================
   StartSmart AI — app.css
   Dashboard-blue üzerine ek bileşenler:
   - Public navigation & footer
   - Auth (login/signup/reset) sayfa kabukları
   - Settings sayfası dil seçimi kartları
   - Toast/empty/loading küçük yardımcılar
   ========================================================================== */

/* ── Public navigation ────────────────────────────────── */
.pubnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.pubnav__logo img { height: 26px; }
.pubnav__links { display: none; gap: 22px; margin-left: 8px; }
.pubnav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color 150ms;
}
.pubnav__links a:hover { color: var(--brand); }
.pubnav__cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pubnav__lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-card);
}
.pubnav__lang a {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--fg-3);
  transition: all 150ms;
}
.pubnav__lang a.is-active {
  background: var(--brand);
  color: #fff;
}
.pubnav__hamburger {
  border: 1px solid var(--border);
  background: var(--bg-card);
  width: 36px;
  height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--fg-2);
}
@media (min-width: 800px) {
  .pubnav__links { display: inline-flex; }
}
@media (max-width: 720px) {
  .pubnav { padding: 12px 18px; gap: 10px; }
  .pubnav__cta .btn { display: none; }
  .pubnav__lang { display: none; }
  .pubnav__hamburger { display: inline-flex; }
}

/* Mobile drawer */
.pubnav-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(13, 13, 31, 0.55);
  display: none;
}
.pubnav-drawer.is-open { display: block; }
.pubnav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-modal);
}
.pubnav-drawer__panel a {
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  border-radius: 8px;
}
.pubnav-drawer__panel a:hover { background: var(--bg-hover); }
.pubnav-drawer__lang { display: flex; gap: 8px; margin-top: auto; }

/* ── Public footer ────────────────────────────────────── */
.pubfoot {
  background: #0c0c20;
  color: #c8cffc;
  padding: 56px 32px 28px;
  margin-top: 96px;
}
.pubfoot__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.pubfoot__col { display: flex; flex-direction: column; gap: 8px; }
.pubfoot__logo img { height: 28px; filter: brightness(0) invert(1); }
.pubfoot__tag { font-size: 13px; color: rgba(232, 231, 255, 0.55); margin-top: 12px; }
.pubfoot__heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(232, 231, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pubfoot__col a {
  font-size: 13px;
  color: rgba(232, 231, 255, 0.75);
  padding: 4px 0;
  transition: color 150ms;
}
.pubfoot__col a:hover { color: #fff; }
.pubfoot__copy {
  max-width: 1180px;
  margin: 32px auto 0;
  font-size: 12px;
  color: rgba(232, 231, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
}
@media (max-width: 720px) {
  .pubfoot { padding: 40px 22px 22px; }
  .pubfoot__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 440px) {
  .pubfoot__inner { grid-template-columns: 1fr; }
}

/* ── Auth shell (login, signup, reset-password, verify-success) ─ */
body.auth {
  background: var(--bg-page);
  min-height: 100vh;
}
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-shell__brand {
  position: relative;
  background:
    radial-gradient(900px 600px at -10% -10%, rgba(70, 96, 255, 0.55) 0%, transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(45, 60, 200, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #151950 0%, #0d0d3a 100%);
  color: #fff;
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.auth-shell__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  pointer-events: none;
}
.auth-shell__logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.auth-shell__logo img { height: 28px; filter: brightness(0) invert(1); }
.auth-shell__hero {
  position: relative;
  z-index: 1;
  margin: auto 0;
  max-width: 500px;
}
.auth-shell__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8d0ff;
}
.auth-shell__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}
.auth-shell__title {
  margin-top: 24px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.auth-shell__title em { color: #a5b0ff; font-style: normal; }
.auth-shell__lead {
  margin-top: 20px;
  color: rgba(232, 231, 255, 0.7);
  font-size: 15px;
  line-height: 1.65;
}
.auth-shell__perk {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.auth-shell__perk-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}
.auth-shell__perk-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
}
.auth-shell__perk-sub {
  font-size: 12px;
  color: rgba(232, 231, 255, 0.55);
  margin-top: 2px;
}
.auth-shell__foot {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(232, 231, 255, 0.4);
}
.auth-shell__foot a {
  color: rgba(232, 231, 255, 0.65);
  margin: 0 6px;
}

.auth-shell__form {
  position: relative;
  background: var(--bg-card);
  padding: 96px 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-shell__lang {
  position: absolute;
  top: 28px;
  right: 56px;
  display: inline-flex;
  background: var(--bg-muted);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.auth-shell__lang a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-3);
  padding: 7px 14px;
  border-radius: 999px;
  transition: all 150ms;
}
.auth-shell__lang a.is-active {
  background: var(--bg-card);
  color: var(--fg-1);
  box-shadow: 0 1px 3px rgba(21, 25, 80, 0.08);
}
.auth-form {
  width: 100%;
  max-width: 440px;
  margin: auto 0;
}
.auth-form__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.auth-form__sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--fg-3);
}
.auth-form__switch {
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-3);
}
.auth-form__switch a { color: var(--brand); font-weight: 600; }

.auth-form__field {
  margin-top: 18px;
}
.auth-form__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  margin-bottom: 6px;
}
.auth-form__input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--fg-1);
  font-family: inherit;
  transition: border-color 150ms, box-shadow 150ms;
}
.auth-form__input::placeholder { color: var(--fg-5); }
.auth-form__input:hover { border-color: var(--border-strong); }
.auth-form__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--shadow-focus);
}
.auth-form__pwrap { position: relative; }
.auth-form__ptoggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-4);
  border-radius: 6px;
}
.auth-form__ptoggle:hover { color: var(--fg-1); background: var(--bg-muted); }
.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 22px;
}
.auth-form__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-2);
  cursor: pointer;
}
.auth-form__check input { width: 16px; height: 16px; accent-color: var(--brand); }
.auth-form__forgot { font-size: 13px; font-weight: 600; color: var(--brand); }
.auth-form__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms, transform 150ms;
  box-shadow: 0 6px 16px rgba(70, 96, 255, 0.24);
}
.auth-form__cta:hover { background: var(--brand-dark); }
.auth-form__cta:active { transform: scale(0.985); }
.auth-form__cta[disabled] { opacity: 0.7; cursor: wait; }

.auth-form__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--fg-4);
  font-size: 12px;
}
.auth-form__divider::before,
.auth-form__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-form__google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-1);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
}
.auth-form__google:hover { background: var(--bg-hover); border-color: var(--border-strong); }

.auth-form__alert {
  display: none;
  padding: 12px 14px;
  margin-top: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #b91c1c;
  border-radius: 8px;
  font-size: 13px;
}
.auth-form__alert.show { display: block; }
.auth-form__alert.is-success {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
  color: #15803d;
}

.auth-form__strength {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.auth-form__strength span {
  height: 4px;
  background: var(--bg-muted);
  border-radius: 999px;
}
.auth-form__strength.s1 span:nth-child(-n+1) { background: var(--error); }
.auth-form__strength.s2 span:nth-child(-n+2) { background: var(--warning); }
.auth-form__strength.s3 span { background: var(--success); }

@media (max-width: 1080px) {
  .auth-shell__brand { padding: 32px 36px; }
  .auth-shell__form { padding: 96px 36px 32px; }
  .auth-shell__lang { right: 36px; }
}
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell__brand { padding: 32px 22px 36px; }
  .auth-shell__form { padding: 72px 22px 40px; }
  .auth-shell__lang { right: 22px; top: 22px; }
  .auth-shell__hero { margin: 20px 0; }
}

/* ── Settings page (extends pf-* from dashboard-blue.css) ── */
.set-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 760px) { .set-grid { grid-template-columns: 1fr; } }
.set-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.set-card__title {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-1);
  margin-bottom: 12px;
}
.set-card__sub {
  font-size: 13px;
  color: var(--fg-4);
  margin-bottom: 18px;
}

.set-lang {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.set-lang__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 150ms;
}
.set-lang__item:hover { border-color: var(--brand-mid); }
.set-lang__item.is-active {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.set-lang__code {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.set-lang__item.is-active .set-lang__code { background: var(--brand); color: #fff; }
.set-lang__body { flex: 1; }
.set-lang__name { font-size: 15px; font-weight: 700; color: var(--fg-1); }
.set-lang__sub { font-size: 12px; color: var(--fg-4); margin-top: 2px; }
.set-lang__check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: all 200ms;
}
.set-lang__item.is-active .set-lang__check { opacity: 1; transform: scale(1); }

.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.set-row:last-child { border-bottom: 0; }
.set-row__main { flex: 1; }
.set-row__title { font-size: 14px; font-weight: 600; color: var(--fg-1); }
.set-row__sub { font-size: 12.5px; color: var(--fg-4); margin-top: 2px; }

/* ── Profile page extras (pulled from new design's inline styles) ── */
.pf-side { align-self: flex-start; }
.pf-lang-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pf-lang {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: "Inter", sans-serif;
  transition: all 150ms;
  width: 100%;
}
.pf-lang:hover { border-color: var(--brand-mid); }
.pf-lang.is-active {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: 0 0 0 3px rgba(70, 96, 255, 0.10);
}
.pf-lang__code {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 800;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pf-lang.is-active .pf-lang__code { background: var(--brand); color: #fff; }
.pf-lang__body { flex: 1; }
.pf-lang__name { font-size: 15px; font-weight: 700; color: var(--fg-1); }
.pf-lang__sub { font-size: 13px; color: var(--fg-4); margin-top: 2px; }
.pf-lang__check {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.7);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.pf-lang.is-active .pf-lang__check { opacity: 1; transform: scale(1); }

.pf-theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .pf-theme-grid { grid-template-columns: 1fr; } }
.pf-theme {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 150ms;
  text-align: left;
  width: 100%;
}
.pf-theme:hover { border-color: var(--brand-mid); }
.pf-theme.is-active {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: 0 0 0 3px rgba(70, 96, 255, 0.10);
}
.pf-theme__preview {
  height: 64px; border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #F9F8FE 0%, #ECEAF8 100%);
  position: relative; overflow: hidden;
}
.pf-theme--dark .pf-theme__preview {
  background: linear-gradient(135deg, #1E1E35 0%, #0D0D1F 100%);
  border-color: #252542;
}
.pf-theme__preview::after {
  content: "";
  position: absolute; left: 12px; top: 12px; right: 12px; bottom: 12px;
  background: rgba(70, 96, 255, 0.22); border-radius: 4px;
}
.pf-theme__row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pf-theme__name { font-size: 14px; font-weight: 700; color: var(--fg-1); }
.pf-theme__check {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.7); transition: all 200ms;
}
.pf-theme.is-active .pf-theme__check { opacity: 1; transform: scale(1); }

.pf-section--danger { border-color: rgba(239, 68, 68, 0.30); }
.pf-section--danger .pf-section__title { color: #B91C1C; }
.pf-signout-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.pf-signout-row__text { font-size: 13.5px; color: var(--fg-3); flex: 1; min-width: 220px; }
.pf-btn-signout {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(239, 68, 68, 0.30);
  background: rgba(239, 68, 68, 0.08);
  color: #B91C1C; border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all 150ms;
}
.pf-btn-signout:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
}

/* ── Legal pages ─────────────────────────────────────── */
.legal {
  max-width: 760px;
  margin: 48px auto;
  padding: 0 24px;
}
.legal h1 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--fg-1);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.legal__updated { font-size: 13px; color: var(--fg-4); margin-bottom: 32px; }
.legal h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--fg-1);
  margin-top: 28px;
  margin-bottom: 8px;
}
.legal p, .legal li {
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.75;
}
.legal ul { padding-left: 18px; margin: 8px 0 16px; }
.legal li { list-style: disc; margin-bottom: 6px; }

/* ── Tools index grid ────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 200ms;
}
.tool-card:hover {
  border-color: var(--brand-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.tool-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-card__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg-1);
}
.tool-card__sub {
  font-size: 13px;
  color: var(--fg-4);
  line-height: 1.5;
}

/* ── Image-creator type grid ─────────────────────────── */
.imgtype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.imgtype {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 150ms;
}
.imgtype:hover { border-color: var(--brand-mid); }
.imgtype.is-active {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.imgtype__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.imgtype__body { flex: 1; min-width: 0; }
.imgtype__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-1);
}
.imgtype__sub {
  font-size: 12px;
  color: var(--fg-4);
  margin-top: 2px;
}

/* ── Form panel (used by image-creator, listing-creator, etc.) ─ */
.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.form-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.form-panel__head .icon-circle {
  width: 40px;
  height: 40px;
}
.form-panel__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg-1);
}
.form-panel__sub {
  font-size: 13px;
  color: var(--fg-4);
  margin-top: 2px;
}
.form-field { margin-bottom: 18px; }
.form-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  margin-bottom: 6px;
}
.form-field__input,
.form-field__textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-input);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  color: var(--fg-1);
  font-family: inherit;
  transition: border-color 150ms, box-shadow 150ms;
}
.form-field__textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.form-field__input:focus,
.form-field__textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--shadow-focus);
}
.form-field__hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--fg-4);
}

/* ── Result/output panel ─────────────────────────────── */
.result-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--fg-4);
}
.result-panel__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.result-panel__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg-2);
  margin-bottom: 4px;
}
.result-panel__sub { font-size: 13px; }

/* ── Chat layout ─────────────────────────────────────── */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  height: calc(100vh - var(--header-h) - 48px);
}
@media (max-width: 760px) { .chat-layout { grid-template-columns: 1fr; height: auto; } }
.chat-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  overflow-y: auto;
}
.chat-thread {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-thread__head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.chat-thread__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-bubble {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
}
.chat-bubble--me {
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}
.chat-bubble--ai {
  background: var(--bg-muted);
  color: var(--fg-1);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}
.chat-thread__compose {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-thread__compose textarea {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg-input);
  border-radius: 10px;
  padding: 10px 12px;
  resize: none;
  min-height: 44px;
  max-height: 160px;
  font-family: inherit;
  font-size: 14px;
  color: var(--fg-1);
}
.chat-thread__compose textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--shadow-focus);
}

/* ── Onboarding stepper ─────────────────────────────── */
.onb-shell {
  max-width: 640px;
  margin: 56px auto;
  padding: 0 24px;
}
.onb-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.onb-steps__dot {
  flex: 1;
  height: 4px;
  background: var(--bg-muted);
  border-radius: 999px;
}
.onb-steps__dot.is-done { background: var(--brand); }

/* ── Image gallery (my-images) ──────────────────────── */
.imggal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.imggal__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 200ms;
}
.imggal__cell:hover {
  transform: translateY(-2px);
  border-color: var(--brand-mid);
  box-shadow: var(--shadow-card-hover);
}
.imggal__cell img { width: 100%; height: 100%; object-fit: cover; }
.imggal__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

/* ── Toast ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--fg-1);
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-modal);
  font-size: 13.5px;
  font-weight: 500;
}
.toast.show { display: inline-flex; animation: toast-in 200ms ease-out; }
@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Mobile (sidebar overlay/drawer) ────────────────── */
@media (max-width: 900px) {
  .header__crumbs { display: none; }
  .header__search { max-width: 200px; }
}
@media (max-width: 700px) {
  .header__search { display: none; }
  .page { padding: 18px 16px 36px; }
}

/* ── Avatar fallback ─────────────────────────────────── */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: "Inter", sans-serif;
}

/* ── Skeleton loaders ────────────────────────────────── */
.skel {
  background: linear-gradient(90deg, var(--bg-muted), var(--bg-hover), var(--bg-muted));
  background-size: 200% 100%;
  animation: skel 1.2s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes skel {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}


/* ── Product Analysis — single analyzed product ──────── */
.pa-single { margin-top: 16px; }
.pa-single__hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 820px) {
  .pa-single__hero { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
}
.pa-single__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.pa-single__thumb svg { width: 50%; height: 50%; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08)); }
.pa-single__bsr,
.pa-single__asin {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-deep);
  backdrop-filter: blur(4px);
}
.pa-single__bsr  { top: 12px; left: 12px; }
.pa-single__asin { bottom: 12px; right: 12px; font-size: 10.5px; color: var(--fg-3); }

.pa-single__body { min-width: 0; display: flex; flex-direction: column; }
.pa-single__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-4);
  margin-bottom: 8px;
}
.pa-single__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: pa-single-pulse 1.6s ease-in-out infinite;
}
@keyframes pa-single-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.00); }
}
.pa-single__title {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-deep);
  margin: 0 0 6px;
  text-wrap: pretty;
}
.pa-single__byline { font-size: 13px; color: var(--fg-3); margin-bottom: 16px; }
.pa-single__byline strong { color: var(--fg-2); font-weight: 600; }

.pa-single__price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pa-single__price-now {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-deep);
}
.pa-single__price-prev {
  font-size: 14px;
  color: var(--fg-5);
  text-decoration: line-through;
}
.pa-single__price-discount {
  font-size: 12px;
  font-weight: 700;
  color: #16A34A;
  background: #E8F5EE;
  padding: 3px 8px;
  border-radius: 6px;
}
.pa-single__rating {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
}
.pa-single__rating-count { font-weight: 400; color: var(--fg-5); }

.pa-single__signals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 18px;
}
@media (max-width: 640px) {
  .pa-single__signals { grid-template-columns: repeat(2, 1fr); }
}
.pa-single__signal { min-width: 0; }
.pa-single__signal-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-5);
  margin-bottom: 4px;
}
.pa-single__signal-value {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.1;
}
.pa-single__signal--opportunity .pa-single__signal-value { font-size: 22px; }
.pa-single__signal-max {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-5);
  margin-left: 2px;
}
.pa-single__signal-sub {
  font-size: 11px;
  color: var(--fg-4);
  margin-top: 2px;
  line-height: 1.3;
}

.pa-single__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.pa-single__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms;
  border: 1px solid transparent;
  text-decoration: none;
}
.pa-single__btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 6px rgba(70, 96, 255, 0.30);
}
.pa-single__btn--primary:hover { background: var(--brand-dark); }
.pa-single__btn--secondary {
  background: var(--bg-card);
  color: var(--fg-2);
  border-color: var(--border);
}
.pa-single__btn--secondary:hover { border-color: var(--brand-mid); color: var(--brand); }
.pa-single__btn.is-saved {
  background: var(--brand-tint);
  color: var(--brand);
  border-color: var(--brand-mid);
}

/* ── Auth shell layout fix ──────────────────────────────────
   dashboard-blue.css ve app.css'deki .auth-shell tanımları
   çakışıyor (grid vs flex, width:420px vs 1fr). Bu blok son
   yüklenen dosyada olduğu için kazanır ve net %50/%50 +
   mobilde form-önce sıralamasını garanti eder. */
.auth-shell__brand {
  width: auto;
  min-width: 0;
  flex: 1 1 50%;
}
.auth-shell__form {
  width: auto;
  flex: 1 1 50%;
}
@media (max-width: 860px) {
  .auth-shell {
    display: flex;
    flex-direction: column;
  }
  .auth-shell__brand,
  .auth-shell__form {
    width: 100%;
    flex: none;
  }
  .auth-shell__form  { order: -1; }
  .auth-shell__brand { order: 1; }
}
