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

/* ─── Tokens ─────────────────────────────────── */
:root {
  --ink:    #0a0b0f;
  --panel:  #111520;
  --panel2: #161c2c;
  --paper:  #f4f2ee;
  --gold:   #c9a96e;
  --gold2:  #e8d5b0;
  --dim:    #5a5a60;
  --muted:  #9099b0;
  --line:   rgba(201,169,110,.14);
  --line2:  rgba(255,255,255,.07);
  --accent: #7ea7ff;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   18px;
}

/* ─── Base ───────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px; /* base — prevents iOS zoom on inputs */
}

/* ─── Touch targets ──────────────────────────── */
a, button, [role="button"] {
  min-height: 44px;
  min-width: 44px;
}

/* ─── Shared nav bar ─────────────────────────── */
.site-nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 2.4rem);
  height: 56px;
  background: rgba(10,11,15,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line2);
}

.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  color: var(--paper);
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 44px;
}

.site-nav-bar nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.site-nav-bar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  height: 44px;
  transition: color .2s;
}

.site-nav-bar nav a:hover,
.site-nav-bar nav a.active { color: var(--paper); }

.tag-ai {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  color: #1a1200;
  border-radius: 4px;
  padding: 2px 5px;
  line-height: 1;
}

/* ─── Orb canvas ─────────────────────────────── */
#orb {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ─── Grid overlay ───────────────────────────── */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 80px);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

/* ═══════════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════════ */
body.home {
  min-height: 100dvh;
  overflow-x: hidden;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 1.2rem 2rem;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  opacity: 0;
  transform: translateY(18px);
  animation: rise .9s cubic-bezier(.22,1,.36,1) .3s forwards;
}

.label {
  font-size: clamp(.62rem, 2.5vw, .76rem);
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(.7rem, 2vw, 1.2rem);
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  user-select: none;
}

.w1 {
  font-size: clamp(2.6rem, 13vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--paper);
}

.w2 {
  font-size: clamp(.85rem, 3.5vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: .1em;
  color: var(--gold2);
  margin-top: .1rem;
}

.divider {
  width: clamp(28px, 5vw, 50px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: clamp(.9rem, 2.5vw, 1.6rem) auto;
  opacity: 0;
  animation: fade 1s ease .9s forwards;
}

.sub {
  font-size: clamp(.8rem, 2vw, .9rem);
  letter-spacing: .12em;
  color: var(--dim);
  margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
}

.product-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: min(460px, 100%);
  opacity: 0;
  animation: fade 1s ease 1s forwards;
}

.product-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: rgba(17,21,32,.8);
  border: 1px solid var(--line2);
  border-radius: var(--r-md);
  padding: .9rem 1rem;
  text-decoration: none;
  color: var(--paper);
  min-height: 60px;
  transition: border-color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}

a.product-card:hover,
a.product-card:active {
  border-color: rgba(201,169,110,.3);
  background: rgba(22,28,44,.9);
}

.product-card.coming { opacity: .38; cursor: default; }

.product-icon { font-size: 1.1rem; flex-shrink: 0; }

.product-info {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  text-align: left;
  flex: 1;
}

.product-info strong { font-size: .9rem; font-weight: 600; }
.product-info span   { font-size: .78rem; color: var(--muted); }

.product-arrow { color: var(--gold); font-size: 1rem; flex-shrink: 0; }

.foot {
  position: relative;
  margin-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.15);
  padding: 0 .2rem;
  opacity: 0;
  animation: fade 1s ease 1.1s forwards;
}

/* ═══════════════════════════════════════════════
   CONTENT PAGES (blog, static)
═══════════════════════════════════════════════ */
body.page { overflow-x: hidden; }

.page-wrapper {
  min-height: 100dvh;
  padding-top: 56px;
  display: flex;
  flex-direction: column;
}

.page-hero {
  padding: clamp(2rem, 7vw, 5rem) clamp(1.2rem, 6vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: clamp(.95rem, 2vw, 1.05rem);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.75;
}

.page-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  width: 100%;
  flex: 1;
}

.section-title {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.feature-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  margin-bottom: 2.5rem;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--r-md);
  padding: 1.2rem;
}

.feature-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: .4rem; }
.feature-card p  { font-size: .85rem; color: var(--muted); line-height: 1.65; }

.cta-strip {
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cta-strip p { font-size: .93rem; color: var(--muted); max-width: 44ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.2rem;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.btn-gold {
  background: linear-gradient(90deg, var(--gold), #dfc07a);
  color: #12100a;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line2);
  color: var(--paper);
}

/* ─── Blog list ──────────────────────────────── */
.blog-list { list-style: none; }

.blog-item a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line2);
  text-decoration: none;
  color: var(--paper);
  min-height: 60px;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}

.blog-item a:hover .blog-title { color: var(--gold2); }

.blog-title {
  font-size: clamp(.9rem, 2vw, 1rem);
  font-weight: 600;
  line-height: 1.4;
  transition: color .2s;
}

.blog-meta {
  font-size: .75rem;
  color: var(--dim);
  white-space: nowrap;
  padding-top: .2rem;
  flex-shrink: 0;
}

/* ─── Article ────────────────────────────────── */
.article-header {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.2rem, 6vw, 5rem) 1.8rem;
  width: 100%;
}

.article-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: .9rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: .78rem;
  color: var(--dim);
  letter-spacing: .04em;
}

.article-meta span::before { content: "·"; margin-right: .5rem; }
.article-meta span:first-child::before { content: ""; margin: 0; }

.article-divider {
  height: 1px;
  background: var(--line2);
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 6vw, 5rem);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem clamp(1.2rem, 6vw, 5rem) 4rem;
  font-size: clamp(.93rem, 2vw, 1.03rem);
  line-height: 1.85;
  color: #cdd5e8;
  width: 100%;
}

.article-body h2 {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--paper);
  margin: 2.2rem 0 .75rem;
  letter-spacing: -.01em;
}

.article-body p  { margin-bottom: 1.2rem; }
.article-body ul { padding-left: 1.2rem; margin-bottom: 1.2rem; }
.article-body li { margin-bottom: .5rem; }

.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.1rem;
  margin: 1.8rem 0;
  color: var(--muted);
  font-style: italic;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.6rem;
  min-height: 44px;
  transition: color .2s;
}

.back-link:hover { color: var(--paper); }

/* ─── Page footer ────────────────────────────── */
.page-footer {
  border-top: 1px solid var(--line2);
  padding: 1.4rem clamp(1.2rem, 6vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--dim);
  letter-spacing: .05em;
  margin-top: auto;
}

.page-footer a { color: var(--dim); text-decoration: none; }
.page-footer a:hover { color: var(--paper); }

/* ─── FAQ ────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: .5rem; }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--r-sm);
  padding: 1rem 1.1rem;
}

.faq-item summary {
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  min-height: 28px;
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin-top: .75rem;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   CHAT PAGE
═══════════════════════════════════════════════ */
body.chat {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-layout {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.chat-header {
  flex-shrink: 0;
  height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 0 clamp(.9rem, 4vw, 1.8rem);
  background: rgba(10,11,15,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line2);
  z-index: 10;
}

.chat-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chat-header-title {
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .35rem;
  line-height: 1.2;
}

.chat-header-sub {
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3ecf8e;
  flex-shrink: 0;
}

.chat-icon-btn {
  background: none;
  border: 1px solid var(--line2);
  border-radius: 8px;
  color: var(--muted);
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: .9rem;
  transition: color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.chat-icon-btn:hover { color: var(--paper); border-color: var(--line); }

/* ─── Messages area ──────────────────────────── */
.messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem clamp(.8rem, 4vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.messages::-webkit-scrollbar { width: 4px; }
.messages::-webkit-scrollbar-track { background: transparent; }
.messages::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 2px; }

.msg {
  display: flex;
  gap: .6rem;
  max-width: min(480px, 88%);
  animation: msgIn .25s ease;
}

.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.ai   { align-self: flex-start; }

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 700;
  align-self: flex-end;
}

.msg.ai   .msg-avatar { background: linear-gradient(135deg, var(--gold), #a07840); color: #12100a; }
.msg.user .msg-avatar { background: var(--panel2); border: 1px solid var(--line2); color: var(--muted); }

.bubble {
  padding: .75rem 1rem;
  border-radius: 16px;
  font-size: clamp(.875rem, 2.5vw, .95rem);
  line-height: 1.65;
  word-break: break-word;
}

.msg.ai   .bubble {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-bottom-left-radius: 4px;
  color: #d0d8ee;
}

.msg.user .bubble {
  background: linear-gradient(135deg, #1e2d50, #1a2440);
  border: 1px solid rgba(126,167,255,.15);
  border-bottom-right-radius: 4px;
  color: var(--paper);
}

.bubble p { margin: 0 0 .5rem; }
.bubble p:last-child { margin-bottom: 0; }

.bubble h1, .bubble h2, .bubble h3 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper);
  margin: .7rem 0 .25rem;
}
.bubble h1 { font-size: 1.05rem; }
.bubble h2 { font-size: .98rem; }
.bubble h3 { font-size: .92rem; }
.bubble h1:first-child,
.bubble h2:first-child,
.bubble h3:first-child { margin-top: 0; }

.bubble ul, .bubble ol { padding-left: 1.2rem; margin: .3rem 0 .5rem; }
.bubble li { margin-bottom: .25rem; }

.bubble code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .82em;
  background: rgba(255,255,255,.09);
  padding: 1px 5px;
  border-radius: 4px;
}

.bubble blockquote {
  border-left: 2px solid var(--gold);
  padding-left: .85rem;
  margin: .5rem 0;
  color: var(--muted);
  font-style: italic;
}

.bubble hr {
  border: none;
  border-top: 1px solid var(--line2);
  margin: .6rem 0;
}

.bubble-table-wrap {
  overflow-x: auto;
  margin: .5rem 0;
  border-radius: 8px;
  border: 1px solid var(--line2);
}

.bubble-table-wrap table {
  border-collapse: collapse;
  width: 100%;
  font-size: .82em;
  min-width: 240px;
}

.bubble-table-wrap th,
.bubble-table-wrap td {
  padding: .4rem .65rem;
  text-align: left;
  border-bottom: 1px solid var(--line2);
  white-space: nowrap;
}

.bubble-table-wrap th {
  background: rgba(255,255,255,.05);
  font-weight: 600;
  color: var(--paper);
  border-bottom-color: rgba(201,169,110,.2);
}

.bubble-table-wrap td { color: #cdd5e8; }

.bubble-table-wrap tr:last-child td { border-bottom: none; }

/* typing indicator */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: .75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  align-items: center;
}

.typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: .25; transform: scale(.8); }
  40%            { opacity: 1;   transform: scale(1); }
}

/* disclaimer */
.chat-disclaimer {
  text-align: center;
  font-size: .7rem;
  color: var(--dim);
  padding: .5rem 1rem 0;
  letter-spacing: .03em;
}

/* ─── Input bar ──────────────────────────────── */
.chat-input-wrap {
  flex-shrink: 0;
  padding: .65rem clamp(.8rem, 4vw, 1.2rem);
  padding-bottom: max(.65rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line2);
  background: rgba(10,11,15,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  gap: .6rem;
  align-items: flex-end;
}

#chat-input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 12px;
  color: var(--paper);
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  line-height: 1.5;
  padding: .65rem .9rem;
  resize: none;
  outline: none;
  max-height: 120px;
  overflow-y: auto;
  transition: border-color .2s;
  -webkit-appearance: none;
}

#chat-input:focus { border-color: rgba(201,169,110,.4); }
#chat-input::placeholder { color: var(--dim); }

#send-btn {
  width: 42px; height: 42px;
  min-width: 42px; min-height: 42px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--gold), #a07840);
  color: #12100a;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: opacity .2s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

#send-btn:disabled { opacity: .35; cursor: default; }
#send-btn:not(:disabled):active { transform: scale(.93); }

/* ─── Chat: avukat CTA (header + strip) ─────── */
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  justify-self: end;
}

.chat-header-lawyer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .85rem;
  min-height: 44px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  color: #12100a;
  background: linear-gradient(135deg, #e8d5b0, var(--gold), #c9a96e);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow:
    0 0 0 1px rgba(201,169,110,.35),
    0 4px 20px rgba(201,169,110,.25);
  white-space: nowrap;
  transition: transform .12s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}

.chat-header-lawyer-cta:hover {
  box-shadow:
    0 0 0 1px rgba(201,169,110,.5),
    0 6px 28px rgba(201,169,110,.35);
}

.chat-header-lawyer-cta:active { transform: scale(.96); }

.chat-header-blog {
  text-decoration: none;
  font-size: .75rem;
  font-weight: 600;
  width: auto;
  min-width: 44px;
  padding: 0 .75rem;
}

.chat-lawyer-strip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 0 clamp(.65rem, 3vw, 1rem);
  margin-bottom: .35rem;
  padding: .7rem 1rem;
  text-decoration: none;
  color: #12100a;
  background: linear-gradient(90deg, #f0e6d2, var(--gold), #dfc07a);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 0 24px rgba(201,169,110,.22);
  animation: lawyerStripPulse 3.5s ease-in-out infinite;
}

@keyframes lawyerStripPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(201,169,110,.22); }
  50%      { box-shadow: 0 0 32px rgba(201,169,110,.38); }
}

.chat-lawyer-strip-label {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(18,16,10,.75);
}

.chat-lawyer-strip-cta {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}

/* ─── Lawyer nudge modal (2. mesaj sonrası) ─── */
.lawyer-nudge-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7,8,12,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: msgIn .2s ease;
}

.lawyer-nudge-modal {
  position: relative;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 18px;
  padding: clamp(1.35rem, 4vw, 2rem);
  width: min(440px, 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

.lawyer-nudge-modal h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .65rem;
  padding-right: 2rem;
}

.lawyer-nudge-modal p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.lawyer-nudge-close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}

.lawyer-nudge-close:hover { background: rgba(255,255,255,.1); }

.lawyer-nudge-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.lawyer-nudge-primary {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.lawyer-nudge-dismiss {
  width: 100%;
}

/* ═══════════════════════════════════════════════
   İLETİŞİM (/iletisim)
═══════════════════════════════════════════════ */
.iletisim-form-section { padding-top: .5rem; }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 4vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--paper);
}

.contact-field .req { color: var(--gold); }

.contact-field input,
.contact-field textarea {
  width: 100%;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 10px;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  padding: .65rem .85rem;
  outline: none;
  transition: border-color .2s;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(201,169,110,.45);
}

.contact-field textarea { resize: vertical; min-height: 100px; line-height: 1.55; }

.contact-transcript-details {
  background: rgba(0,0,0,.15);
  border: 1px solid var(--line2);
  border-radius: var(--r-md);
  padding: .75rem 1rem;
}

.contact-transcript-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-transcript-details summary::-webkit-details-marker { display: none; }

.contact-transcript-details summary::after {
  content: "▼";
  font-size: .65rem;
  color: var(--gold);
}

.contact-transcript-details[open] summary::after { content: "▲"; }

.contact-hint {
  font-size: .78rem;
  color: var(--dim);
  margin: .6rem 0 .5rem;
  line-height: 1.55;
}

.contact-transcript-details textarea {
  margin-top: .25rem;
  font-size: .85rem;
  min-height: 180px;
}

.contact-legal-note {
  font-size: .74rem;
  color: var(--dim);
  line-height: 1.6;
}

.contact-form-status {
  font-size: .85rem;
  min-height: 1.25em;
}

.contact-form-status--ok { color: #7ecf9a; }
.contact-form-status--error { color: #ff8a8a; }

.contact-submit { width: 100%; justify-content: center; font-size: .95rem; }

/* ─── Key modal ──────────────────────────────── */
.key-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7,8,12,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.key-modal {
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 20px;
  padding: clamp(1.5rem, 5vw, 2.2rem);
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.key-modal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.key-modal p {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.65;
}

.key-modal a { color: var(--gold); }

.key-input-row {
  display: flex;
  gap: .5rem;
}

.key-input-row input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 10px;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  padding: .65rem .85rem;
  outline: none;
  min-height: 44px;
}

.key-input-row input:focus { border-color: rgba(201,169,110,.4); }
.key-input-row input::placeholder { color: var(--dim); }

.key-note {
  font-size: .72rem;
  color: var(--dim);
  line-height: 1.6;
}

/* ─── Keyframes ──────────────────────────────── */
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  to { opacity: 1; }
}

/* ─── Mobile header compaction ───────────────── */
@media (max-width: 420px) {
  .chat-header-blog { display: none; }
  .chat-header-lawyer-cta { font-size: .72rem; padding: 0 .65rem; }
}

/* ═══════════════════════════════════════════════
   ADMIN — iletişim kutusu
═══════════════════════════════════════════════ */
.admin-body { overflow-y: auto; }

.admin-login-panel {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-login-card {
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 18px;
  padding: clamp(1.5rem, 5vw, 2.2rem);
  width: min(400px, 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.admin-toolbar label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-toolbar input[type="password"] {
  min-width: min(280px, 100%);
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 10px;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  padding: .55rem .75rem;
  outline: none;
}

.admin-toolbar input:focus { border-color: rgba(201,169,110,.4); }

.admin-status {
  font-size: .85rem;
  min-height: 1.25em;
  width: 100%;
}

.admin-status--err { color: #ff8a8a; }

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-card {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  font-size: .86rem;
}

.admin-card-meta {
  font-size: .72rem;
  color: var(--dim);
  margin-bottom: .65rem;
  letter-spacing: .04em;
}

.admin-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem .85rem;
  margin: 0;
  align-items: start;
}

.admin-card dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: .78rem;
}

.admin-card dd {
  margin: 0;
  color: var(--paper);
  word-break: break-word;
}

.admin-card pre {
  margin: .5rem 0 0;
  padding: .65rem .75rem;
  background: rgba(0,0,0,.2);
  border-radius: 8px;
  font-size: .78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow: auto;
}

.admin-card details {
  margin-top: .65rem;
  border-top: 1px solid var(--line2);
  padding-top: .55rem;
}

.admin-card summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .8rem;
  color: var(--gold);
  list-style: none;
}

.admin-card summary::-webkit-details-marker { display: none; }

.admin-empty {
  color: var(--muted);
  font-size: .9rem;
  padding: 1.5rem 0;
}

/* ─── Admin tabs ─────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: .4rem;
  border-bottom: 1px solid var(--line2);
  margin-bottom: 1.25rem;
}

.admin-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  padding: .55rem .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}

.admin-tab:hover { color: var(--paper); }

.admin-tab.active {
  color: var(--paper);
  border-bottom-color: var(--gold);
}

.admin-tab-badge {
  font-size: .7rem;
  font-weight: 700;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 20px;
  padding: 1px 7px;
  color: var(--muted);
}

.admin-tab.active .admin-tab-badge { color: var(--gold); }

.admin-search-input {
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 10px;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  padding: .5rem .8rem;
  outline: none;
  flex: 1;
  min-width: 180px;
  max-width: 360px;
}

.admin-search-input:focus { border-color: rgba(201,169,110,.4); }

/* ─── Chat view ──────────────────────────────── */
.admin-chat-card .admin-card-meta { margin-bottom: .4rem; }

.admin-chat-preview {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 .65rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-chat-details { margin-top: .5rem; }

.admin-chat-details summary {
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  list-style: none;
  padding: .3rem 0;
}

.admin-chat-details summary::-webkit-details-marker { display: none; }

.admin-chat-body {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: .75rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: .25rem;
}

.admin-chat-msg {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  max-width: 90%;
}

.admin-chat-msg--user { align-self: flex-end; align-items: flex-end; }
.admin-chat-msg--assistant { align-self: flex-start; }

.admin-chat-who {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}

.admin-chat-msg--user .admin-chat-who { color: rgba(126,167,255,.6); }

.admin-chat-msg p {
  margin: 0;
  padding: .6rem .85rem;
  border-radius: 14px;
  font-size: .85rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-chat-msg--user p {
  background: linear-gradient(135deg, #1e2d50, #1a2440);
  border: 1px solid rgba(126,167,255,.15);
  border-bottom-right-radius: 4px;
  color: var(--paper);
}

.admin-chat-msg--assistant p {
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-bottom-left-radius: 4px;
  color: #d0d8ee;
}
