/* ── input() için tarayıcı modalı ── */
.pv-input-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 100001;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.pv-input-modal.on {
  display: flex;
}

.pv-input-modal-box {
  background: var(--ed-bg2, #252526);
  border: 1px solid var(--ed-border, #3a3a3a);
  border-radius: 10px;
  padding: 18px;
  width: 320px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .7);
}

.pv-input-modal-title {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--ed-fg, #ddd);
  margin-bottom: 10px;
}

.pv-input-modal-box input {
  width: 100%;
  background: var(--ed-bg, #1e1e1e);
  border: 1px solid var(--ed-border, #3a3a3a);
  border-radius: 5px;
  padding: 7px 9px;
  color: var(--ed-fg, #ddd);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  outline: none;
  margin-bottom: 12px;
}

.pv-input-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pv-input-modal-actions button {
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  border: 1px solid var(--ed-border);
  background: var(--ed-bg);
  color: var(--ed-fg-dim);
}

.pv-input-modal-ok {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #fff !important;
}

.pv-tab {
  padding: 5px 13px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--mu);
  background: none;
  font-family: inherit;
  transition: all .18s
}

.pv-tab.on {
  background: var(--sf2);
  border-color: var(--bd2);
  color: var(--tx)
}

.think-status {
  display: none;
  max-width: 700px;
  margin: 0 auto;
  padding: 4px 22px;
  font-size: 11px;
  color: var(--dm);
  align-items: center;
  gap: 6px;
  animation: fadeUp .2s ease
}

.think-status.on {
  display: flex
}

.think-sec {
  font-variant-numeric: tabular-nums;
  color: var(--mu);
  min-width: 22px
}

.think-view-btn {
  background: none;
  border: 1px solid var(--bd);
  border-radius: 6px;
  color: var(--dm);
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all .15s;
  margin-left: 4px
}

.think-view-btn:hover {
  background: var(--sf2);
  color: var(--tx)
}

.think-panel {
  display: none;
  max-width: 700px;
  margin: 0 auto 6px;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 12px;
  overflow: hidden;
  animation: fadeUp .2s ease
}

.think-panel.on {
  display: block
}

.think-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mu);
  border-bottom: 1px solid var(--bd)
}

.think-panel-hd button {
  background: none;
  border: none;
  color: var(--dm);
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  line-height: 1
}

.think-panel-body {
  padding: 12px 14px;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--dm);
  line-height: 1.7;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0
}

/* AI yanıtının ÜZERİNDE gösterilen web kaynağı çubuğu */
.ws-src-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.ws-src-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sf2);
  border: 1px solid var(--bd2);
  border-radius: 20px;
  padding: 4px 12px 4px 6px;
  font-size: 12px;
  color: var(--mu);
  text-decoration: none;
  transition: all .15s;
  max-width: 220px;
}

.ws-src-chip:hover {
  color: var(--tx);
  border-color: var(--aa);
}

.ws-src-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-src-fav {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: cover;
}

.ws-src-more {
  background: var(--sf2);
  border: 1px solid var(--bd2);
  border-radius: 20px;
  color: var(--mu);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
  transition: all .15s;
}

.ws-src-more:hover {
  color: var(--tx);
  border-color: var(--aa);
}

.ws-src-dd {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  min-width: 260px;
  max-width: 340px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--sf);
  border: 1px solid var(--bd2);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.ws-src-dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--tx);
  transition: background .15s;
}

.ws-src-dd-item:hover {
  background: var(--sf2);
}

.ws-src-dd-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.ws-src-dd-title {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-src-dd-domain {
  font-size: 10px;
  color: var(--mu);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eg4-loader {
  --uib-size: 18;
  --uib-color: var(--aa);
  --uib-speed: 3.5s;
  --uib-stroke: 3;
  --uib-mult: calc(var(--uib-size) / var(--uib-stroke));
  --uib-stroke-px: calc(var(--uib-stroke) * 1px);
  --uib-size-px: calc(var(--uib-size) * 1px);
  position: relative;
  height: var(--uib-size-px);
  width: var(--uib-size-px);
  flex-shrink: 0;
}
.eg4-loader-line {
  position: absolute;
  top: calc(50% - var(--uib-stroke-px) / 2);
  left: calc(50% - var(--uib-stroke-px) / 2);
  width: var(--uib-stroke-px);
  height: var(--uib-stroke-px);
  background-color: var(--uib-color);
  animation: eg4-center-line var(--uib-speed) ease infinite;
  transition: background-color .3s ease;
}
.eg4-loader::before,
.eg4-loader::after {
  content: '';
  position: absolute;
  width: var(--uib-stroke-px);
  height: var(--uib-stroke-px);
  background-color: var(--uib-color);
  animation: eg4-explore var(--uib-speed) ease infinite;
  transition: background-color .3s ease;
}
.eg4-loader::after {
  animation-delay: calc(var(--uib-speed) * -0.5);
}
@keyframes eg4-center-line {
  0%, 25%, 50%, 75%, 100% { transform: scaleX(1) scaleY(1); }
  12.5%, 62.5% { transform: scaleX(var(--uib-mult)) scaleY(1); }
  37.5%, 87.5% { transform: scaleX(1) scaleY(var(--uib-mult)); }
}
@keyframes eg4-explore {
  0%, 100% { transform: scaleX(1) scaleY(1) translate(0%, 0%); transform-origin: top left; top: 0; left: 0; }
  12.5% { transform: scaleX(var(--uib-mult)) scaleY(1) translate(0%, 0%); transform-origin: top left; top: 0; left: 0; }
  12.50001% { transform: scaleX(var(--uib-mult)) scaleY(1) translate(0%, 0%); transform-origin: top right; top: 0; left: initial; right: 0; }
  25% { transform: scaleX(1) scaleY(1) translate(0%, 0%); transform-origin: top right; top: 0; left: initial; right: 0; }
  37.5% { transform: scaleX(1) scaleY(var(--uib-mult)) translate(0%, 0%); transform-origin: top right; top: 0; left: initial; right: 0; }
  37.5001% { transform: scaleX(1) scaleY(var(--uib-mult)) translate(0%, 0%); transform-origin: bottom right; top: initial; bottom: 0; left: initial; right: 0; }
  50% { transform: scaleX(1) scaleY(1) translate(0%, 0%); transform-origin: bottom right; top: initial; bottom: 0; left: initial; right: 0; }
  62.5% { transform: scaleX(var(--uib-mult)) scaleY(1) translate(0%, 0%); transform-origin: bottom right; top: initial; bottom: 0; left: initial; right: 0; }
  62.5001% { transform: scaleX(var(--uib-mult)) scaleY(1) translate(0%, 0%); transform-origin: bottom left; top: initial; bottom: 0; left: 0; }
  75% { transform: scaleX(1) scaleY(1) translate(0%, 0%); transform-origin: bottom left; top: initial; bottom: 0; left: 0; }
  87.5% { transform: scaleX(1) scaleY(var(--uib-mult)) translate(0%, 0%); transform-origin: bottom left; top: initial; bottom: 0; left: 0; }
  87.5001% { transform: scaleX(1) scaleY(var(--uib-mult)) translate(0%, 0%); transform-origin: top left; top: 0; left: 0; }
}

/* Mesaj balonunda, logonun yanında dönen düşünme metni */
.think-logo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  min-height: 24px;
}

.think-logo-txt {
  font-size: 13px;
  font-weight: 500;
  background: linear-gradient(90deg, var(--mu) 0%, var(--tx) 50%, var(--mu) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: thinkShimmer 1.8s linear infinite;
}

.think-logo-txt .material-symbols-outlined {
  vertical-align: -2px;
  -webkit-text-fill-color: var(--aa);
  color: var(--aa);
}

@keyframes thinkShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: .2;
    transform: scale(.7)
  }

  50% {
    opacity: 1;
    transform: scale(1.3)
  }
}

/* WELCOME */
.wlc {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 22px 32px;
  text-align: center;
  position: relative;
}

.wlc-cards {
  display: none;
}

.wlc-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 102, 196, .08) 0%, transparent 70%);
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: orbFloat 7s ease-in-out infinite
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translateX(-50%) scale(1)
  }

  50% {
    transform: translateX(-50%) scale(1.18)
  }
}

.wt {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--tx) 30%, var(--mu));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp .4s ease
}

.ws {
  font-size: 13px;
  color: var(--mu);
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeUp .45s ease .06s both
}

.sg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.sc {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: all .22s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeUp .4s ease both;
  position: relative;
  overflow: hidden
}

.sc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 102, 196, .07), rgba(255, 222, 89, .05));
  opacity: 0;
  transition: opacity .22s
}

.sc::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--aa);
  transform: scaleX(0);
  transition: transform .22s ease;
  transform-origin: left
}

.sc:nth-child(1) {
  animation-delay: .08s
}

.sc:nth-child(2) {
  animation-delay: .14s
}

.sc:nth-child(3) {
  animation-delay: .2s
}

.sc:nth-child(4) {
  animation-delay: .26s
}

.sc:hover {
  background: var(--sf2);
  border-color: var(--bd2);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25)
}

.sc:hover::before {
  opacity: 1
}

.sc:hover::after {
  transform: scaleX(1)
}

.sc:active {
  transform: translateY(0)
}

.si {
  font-size: 24px
}

.st {
  font-size: 12px;
  color: var(--mu);
  line-height: 1.55
}

.mem-bar {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 22px 16px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap
}

.mem-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 11px;
  color: var(--tx);
  transition: all .18s;
  cursor: default
}

.mem-tag:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05)
}

/* MESSAGES */
.mw {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px
}

.msg {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  animation: msgIn .28s cubic-bezier(.22, 1, .36, 1)
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.97)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.msg.user {
  justify-content: flex-end
}

.mav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden
}

.mav.ai {
  background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(200, 200, 200, .09));
  border: 1px solid rgba(46, 46, 46, 0.2);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18)
}

.mav.ai img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.mav.u {
  background: var(--sf2);
  border: 1px solid var(--bd2);
  color: var(--mu)
}

.mb {
  max-width: 84%;
  min-width: 0
}

.msg.user .mb {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transition: box-shadow .2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px)
}

.msg.user .mb:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
  background: rgba(255, 255, 255, .09)
}

.msg.ai .mb {
  font-size: 14px;
  line-height: 1.8;
  color: var(--tx);
  max-width: 100%;
  width: 100%
}

/* AI mesajları avatar olmadan tam genişlik, sola hizalı */
.msg.ai {
  gap: 0
}

.msg-pop {
  animation: msgPopIn .32s cubic-bezier(.2, .8, .2, 1);
}

@keyframes msgPopIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Sohbet yazı boyutu (görünüm ayarı) ── */
body.chatfont-small .msg.user .mb {
  font-size: 12px
}

body.chatfont-small .msg.ai .mb {
  font-size: 12.5px
}

body.chatfont-large .msg.user .mb {
  font-size: 15.5px
}

body.chatfont-large .msg.ai .mb {
  font-size: 16.5px
}

.tc {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--aa);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: bl .7s step-end infinite;
  border-radius: 1px;
  box-shadow: 0 0 8px var(--aa)
}

@keyframes bl {
  50% {
    opacity: 0
  }
}

.ld {
  display: flex;
  gap: 5px;
  padding: 10px 2px;
  align-items: center
}

.ld span {
  width: 7px;
  height: 7px;
  background: var(--dm);
  border-radius: 50%;
  animation: lda 1.1s ease infinite
}

.ld span:nth-child(2) {
  animation-delay: .18s
}

.ld span:nth-child(3) {
  animation-delay: .36s
}

@keyframes lda {

  0%,
  60%,
  100% {
    transform: translateY(0) scale(.8);
    opacity: .3
  }

  30% {
    transform: translateY(-8px) scale(1.1);
    opacity: 1
  }
}

.sum-div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  opacity: .45
}

.sum-div::before,
.sum-div::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bd)
}

.sum-div span {
  font-size: 11px;
  color: var(--dm);
  white-space: nowrap
}

/* MARKDOWN */
.amd h1,
.amd h2,
.amd h3 {
  margin: 20px 0 8px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tx);
}

.amd h1 {
  font-size: 22px;
  border-bottom: 1px solid var(--bd);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.amd h2 {
  font-size: 18px;
}

.amd h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--mu);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.amd p {
  margin: 8px 0
}

.amd p:first-child {
  margin-top: 0
}

.amd p:last-child {
  margin-bottom: 0
}

.amd ul,
.amd ol {
  padding-left: 18px;
  margin: 8px 0
}

.amd li {
  margin: 4px 0;
  line-height: 1.65
}

.amd strong {
  font-weight: 550
}

.amd a {
  color: var(--blu);
  text-decoration: none;
  transition: color .18s
}

.amd a:hover {
  text-decoration: underline;
  color: #93c5fd
}

.amd blockquote {
  border-left: 3px solid var(--aa);
  padding: 10px 14px;
  color: var(--mu);
  margin: 10px 0;
  font-style: italic;
  background: rgba(255, 102, 196, .04);
  border-radius: 0 8px 8px 0
}

.amd table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12.5px
}

.amd th,
.amd td {
  border: 1px solid var(--bd2);
  padding: 8px 12px;
  text-align: left
}

.amd th {
  background: var(--sf);
  font-weight: 600
}

.amd hr {
  border: none;
  border-top: 1px solid var(--bd);
  margin: 16px 0
}

.amd code:not([class]) {
  background: var(--sf);
  border: 1px solid var(--bd2);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11.5px;
  font-family: 'DM Mono', monospace;
  color: var(--tx)
}

/* CODE BLOCKS */
.cw {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  overflow: hidden;
  margin: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
  transition: box-shadow .2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px)
}

.cw:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5)
}

.ch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 13px;
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  gap: 6px
}

.cl2 {
  font-size: 10px;
  font-weight: 600;
  color: var(--dm);
  text-transform: uppercase;
  letter-spacing: .8px;
  flex: 1
}

.ch-btns {
  display: flex;
  gap: 4px
}

/* AI kod yazma ilerleme çubuğu — .ch'in ortasında */
.codelen-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 160px;
  margin: 0 10px;
}

.codelen-bar-track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  position: relative;
}

.codelen-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--aa);
  transition: width .15s ease;
}

.codelen-bar-fill.codelen-incomplete {
  background: #e0a030;
}

.codelen-bar-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--dm);
  white-space: nowrap;
  font-family: 'DM Mono', monospace;
}

.codelen-incomplete-label {
  color: #e0a030;
}

.codelen-indeterminate {
  position: relative;
}

.codelen-bar-fill-indet {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: var(--aa);
  animation: codelenIndetAnim 1.2s ease-in-out infinite;
}

@keyframes codelenIndetAnim {
  0% {
    left: -40%;
  }

  100% {
    left: 100%;
  }
}

.cpb,
.pvb,
.anlb {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 7px;
  color: var(--mu);
  font-size: 11px;
  font-family: inherit;
  padding: 4px 9px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap
}

.cpb:hover,
.pvb:hover,
.anlb:hover {
  background: var(--sf2);
  color: var(--tx)
}

.cpb.ok {
  color: var(--grn);
  border-color: rgba(74, 222, 128, .25);
  background: rgba(74, 222, 128, .06)
}

.anlb {
  color: var(--blu);
  border-color: rgba(96, 165, 250, .2)
}

.cw pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 480px;
  font-size: 12.5px;
  line-height: 1.7
}

.cw pre code {
  font-family: 'DM Mono', monospace !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: unset !important;
  white-space: pre;
  display: block;
}

/* IMAGE */
.gi {
  margin: 10px 0;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--bd);
  max-width: 400px;
  background: var(--sf);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25)
}

.gi img {
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: transform .3s ease
}

.gi img:hover {
  transform: scale(1.02)
}

.gi-load {
  padding: 14px 16px;
  font-size: 12px;
  color: var(--mu);
  display: flex;
  align-items: center;
  gap: 8px
}

.gi-warn {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ora);
  background: rgba(251, 146, 60, .07);
  border-top: 1px solid rgba(251, 146, 60, .15)
}

/* FILE CHIP */
.fchip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--sf2);
  border: 1px solid var(--bd2);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 7px;
  max-width: 220px
}

.fci {
  font-size: 18px
}

.fcn {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500
}

.fcs {
  font-size: 11px;
  color: var(--dm);
  margin-top: 1px
}

/* MSG ACTIONS */
.mac {
  display: flex;
  gap: 3px;
  margin-top: 7px;
  opacity: 1;
  transition: opacity .18s;
  flex-wrap: wrap
}

.msg:hover .mac {
  opacity: 1
}

.macb {
  background: none;
  border: none;
  color: var(--dm);
  cursor: pointer;
  padding: 4px;
  border-radius: 7px;
  font-size: 13px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: color .15s, background .15s
}

.macb svg {
  width: 16px;
  height: 16px
}

.macb .material-symbols-outlined {
  font-size: 17px !important
}

.macb:hover,
.macb.tts-on {
  background: rgba(255, 255, 255, .07);
}

.macb:hover svg,
.macb.tts-on svg {
  stroke: url(#macbGradient);
}

.macb:hover .material-symbols-outlined,
.macb.tts-on .material-symbols-outlined {
  background: var(--aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mab {
  background: none;
  color: var(--dm);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all .18s
}

.mab:hover {
  background: var(--sf);
  color: var(--mu);
}

/* SLASH HINT */
.slash-hint {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: var(--sf2);
  border: 1px solid var(--bd2);
  border-radius: 12px 12px 0 0;
  padding: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .4)
}

.slash-hint.on {
  display: block;
  animation: pmIn .15s ease
}

.sh-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .18s
}

.sh-item:hover,
.sh-item.sel {
  background: var(--sf)
}

.sh-cmd {
  font-size: 12px;
  font-weight: 600;
  color: var(--aa);
  font-family: 'DM Mono', monospace;
  min-width: 90px
}

.sh-desc {
  font-size: 12px;
  color: var(--mu)
}

/* TOAST */
.q-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -16px);
  background: rgba(24, 24, 24, .88);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 10px 22px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--tx);
  display: none;
  z-index: 300;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.q-toast.on {
  display: block;
  animation: toastSlideDown .32s cubic-bezier(.34, 1.56, .64, 1)
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -16px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* INPUT */
.iz {
  padding: 10px 20px 16px;
  flex-shrink: 0;
  position: relative
}

.ic {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10rem;
  overflow: visible;
  transition: border-color .2s, box-shadow .2s, border-radius .25s ease;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px)
}

.ic.has-attachment,
.ic.grown {
  border-radius: 20px;
}

.ir.grown {
  border-radius: 20px;
}

.ic:focus-within {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, .25)
}

.atp {
  display: none;
  align-items: flex-start;
  gap: 0;
  padding: 10px 12px 0;
}

.atp.on {
  display: flex
}

/* Dosya chip — paste chip ile aynı stil */
.atp>svg {
  display: none
}

.atp>.atn {
  display: none
}

.atp>.atrm {
  display: none
}

/* Dosya chip kare kart olarak yeniden çizilir .atp-card ile */
.atp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 90px;
  height: 90px;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 10px 8px 7px;
  position: relative;
  gap: 4px;
  animation: pasteChipIn .18s ease;
}

.atp-card-icon {
  color: var(--mu);
  display: flex;
  align-items: center;
  justify-content: center;
}

.atp-card-name {
  font-size: 10px;
  color: var(--mu);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  font-weight: 600;
}

.atp-card-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  color: var(--dm);
  cursor: pointer;
  padding: 2px;
  border-radius: 5px;
  display: flex;
  transition: background .15s, color .15s;
}

.atp-card-rm:hover {
  background: var(--sf2);
  color: var(--tx);
}

.atn {
  font-size: 12px;
  color: var(--mu);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.atip {
  display: none;
  padding: 10px 12px 0;
}

.atip.on {
  display: block
}

.atip img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  border: 1px solid var(--bd);
  object-fit: cover;
  display: block;
}

.atrm {
  background: none;
  border: none;
  color: var(--dm);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  transition: color .18s
}

.atrm:hover {
  color: var(--red)
}

/* Resim chip kare kart wrapper */
.atip-card {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 90px;
}

.atip-card img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  border: 1px solid var(--bd);
  object-fit: cover;
  display: block;
}

.atip-card .atp-card-rm {
  position: absolute;
  top: 4px;
  right: 4px;
}


.ir {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 10px 10px 10px;
}

/* ── "+" ekle butonu ve paneli (composer sol) ── */
.plus-wrap {
  position: relative;
  flex-shrink: 0;
}

.plus-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--mu);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, color .18s, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.plus-btn svg {
  width: 18px;
  height: 18px;
}

.plus-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--tx);
}

.plus-btn.spin {
  transform: rotate(45deg);
  color: var(--tx);
}

.plus-dd {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  background: rgba(14, 14, 14, .98);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2100;
  animation: pmIn .15s ease;
}

.plus-dd.on {
  display: flex;
}

.plus-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--tx);
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.plus-item:hover {
  background: rgba(255, 255, 255, .07);
}

.plus-item .material-symbols-outlined {
  font-size: 19px;
  color: var(--mu);
}

/* ── Kayan placeholder (eski yukarı, yeni aşağıdan) ── */
.mi-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.mi-ph {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-left: 10px;
  pointer-events: none;
  overflow: hidden;
}

.mi-ph span {
  display: block;
  color: var(--dm);
  font-size: 15.5px;
  white-space: nowrap;
  transition: transform .36s cubic-bezier(.4, 0, .2, 1), opacity .36s ease;
  will-change: transform, opacity;
}

.mi-ph.out span {
  transform: translateY(-130%);
  opacity: 0;
}

.mi-ph.below span {
  transform: translateY(130%);
  opacity: 0;
  transition: none;
}

.mi-ph.hide {
  opacity: 0;
}

#mi {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--tx);
  font-size: 13.5px;
  font-family: inherit;
  resize: none;
  height: 22px;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.65;
  padding: 2px 0;
  margin-left: 10px;
  transition: height .12s ease
}

#mi::placeholder {
  color: var(--dm)
}

#mi:disabled {
  opacity: .5;
  cursor: not-allowed
}

.ia {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0
}

.iib {
  background: none;
  border: none;
  color: var(--dm);
  cursor: pointer;
  padding: 7px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
  position: relative
}

.iib:hover {
  background: var(--sf2);
  color: var(--mu)
}

#voice-btn {
  color: var(--tx);
}

.iib.ws-on {
  color: var(--blu)
}

.iib.voice-on {
  color: var(--red);
  animation: voicePulse .8s ease infinite
}

@keyframes voicePulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(229, 88, 101, .4)
  }

  50% {
    opacity: .7;
    box-shadow: 0 0 0 6px rgba(229, 88, 101, 0)
  }
}

.sbtn {
  width: 40px;
  height: 40px;
  background: var(--tx);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s cubic-bezier(.4, 0, .2, 1)
}

.sbtn:hover {
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(255, 255, 255, .15)
}

.sbtn:active {
  transform: scale(.93)
}

.sbtn:disabled {
  background: var(--bd);
  cursor: not-allowed;
  transform: none
}

.sbtn svg,
.sbtn:disabled svg {
  color: var(--bg)
}

.sbtn.cd {
  background: var(--sf2);
  border: 1px solid var(--bd2)
}

.sbtn.cd svg {
  display: none
}

.sbtn.cd::after {
  content: attr(data-cd);
  color: var(--mu);
  font-size: 10px;
  font-weight: 700;
  font-family: 'DM Mono', monospace
}

.ifoot {
  text-align: center;
  font-size: 11px;
  color: var(--dm);
  padding: 0 0 2px
}

/* LIGHTBOX */
.lb {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  z-index: 999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px)
}

.lb.on {
  display: flex;
  animation: fi .2s ease
}

@keyframes fi {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.lb img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 13px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .8)
}

.lbc {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--sf);
  border: 1px solid var(--bd2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tx);
  transition: all .2s
}

.lbc:hover {
  background: var(--sf2);
  transform: scale(1.1)
}

/* Lightbox üst araç çubuğu (indir + remix) — Imagine galerisinden açıldığında görünür */
.lb-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  display: none;
  gap: 8px;
}

.lb-toolbar.on {
  display: flex;
}

.lbt-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sf);
  border: 1px solid var(--bd2);
  border-radius: 10px;
  padding: 8px 13px;
  color: var(--tx);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.lbt-btn:hover {
  background: var(--sf2);
  transform: translateY(-1px);
}

/* Remix yan paneli */
.remix-panel {
  position: fixed;
  top: 0;
  right: -360px;
  bottom: 0;
  width: 340px;
  background: rgba(14, 14, 14, .97);
  border-left: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: right .3s cubic-bezier(.4, 0, .2, 1);
}

.remix-panel.on {
  right: 0;
}

.remix-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.remix-panel-hd .lbc {
  position: static;
  width: 30px;
  height: 30px;
}

.remix-panel-desc {
  font-size: 12.5px;
  color: var(--mu);
  margin: 0;
  line-height: 1.5;
}

#remix-prompt {
  width: 100%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 12px;
  color: var(--tx);
  font-size: 13.5px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

#remix-prompt:focus {
  border-color: rgba(255, 255, 255, .25);
}

.remix-go-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tx);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}

.remix-go-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .remix-panel {
    width: 100%;
    right: -100%;
  }
}

/* MODALS */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  z-index: 500;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px)
}

.modal.on {
  display: flex;
  animation: fi .2s ease
}

.modal.active {
  display: flex;
  animation: fi .2s ease
}

.mbox {
  background: rgba(18, 18, 18, .85);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  padding: 24px;
  max-width: 460px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px)
}

.mbox h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--tx)
}

.mbox .mbox-sub {
  font-size: 12px;
  color: var(--mu);
  margin-bottom: 18px
}

.mbox table {
  width: 100%;
  font-size: 12.5px;
  border-collapse: collapse
}

.mbox td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--bd);
  color: var(--mu)
}

.mbox td:first-child {
  color: var(--bg);
  font-family: 'DM Mono', monospace;
  font-weight: 600;
  width: 110px
}

.srow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--bd)
}

.srow:last-of-type {
  border-bottom: none
}

.srow-left {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.srow-label {
  font-size: 13px;
  color: var(--tx)
}

.srow-desc {
  font-size: 11px;
  color: var(--dm)
}

.tog-btn {
  width: 38px;
  height: 21px;
  background: var(--bd2);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background .22s;
  flex-shrink: 0
}

.tog-btn.on {
  background: var(--bg)
}

.tog-btn::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: transform .22s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3)
}

.tog-btn.on::after {
  transform: translateX(17px)
}

.mem-section {
  margin-bottom: 14px
}

.mem-section h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--mu);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 7px
}

.mem-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 11px;
  color: var(--tx);
  transition: all .18s;
  cursor: default
}

.mem-chip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mem-empty {
  font-size: 12px;
  color: var(--dm);
  font-style: italic;
  padding: 8px 0
}

.danger-btn {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.09);
  border: 1px solid rgba(115, 115, 115, 0.22);
  border-radius: 10px;
  color: var(--tx);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s
}

.danger-btn:hover {
  background: rgba(103, 103, 103, 0.18)
}

.mbox-close {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  background: var(--sf2);
  border: 1px solid var(--bd2);
  border-radius: 10px;
  color: var(--tx);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s
}

.mbox-close:hover {
  background: var(--bd2)
}

.about-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bd)
}

.about-row:last-child {
  border-bottom: none
}

.about-key {
  font-size: 12px;
  color: var(--dm);
  min-width: 120px
}

.about-val {
  font-size: 12px;
  color: var(--tx);
  font-weight: 500
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px
}

.stat-card {
  background: var(--sf2);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  transition: transform .2s, box-shadow .2s
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25)
}

.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--tx);
  background: linear-gradient(135deg, var(--tx), var(--mu));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}

.stat-lbl {
  font-size: 11px;
  color: var(--dm);
  margin-top: 3px
}

.sec-div {
  font-size: 11px;
  font-weight: 600;
  color: var(--dm);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin: 16px 0 8px;
  border-top: 1px solid var(--bd);
  padding-top: 14px
}

.dl-btn {
  width: 100%;
  padding: 10px;
  background: var(--sf2);
  border: 1px solid var(--bd2);
  border-radius: 10px;
  color: var(--tx);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 6px
}

.dl-btn:hover {
  background: var(--bd2);
  transform: translateY(-1px)
}

.ws-indicator {
  font-size: 11px;
  color: var(--blu);
  padding: 0 0 4px;
  text-align: center;
  display: none
}

.ws-indicator.on {
  display: block
}

.pin-bar {
  background: var(--sf2);
  border-bottom: 1px solid var(--bd);
  padding: 8px 16px;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mu);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .18s
}

.pin-bar.on {
  display: flex
}

.pin-bar:hover {
  background: var(--bd)
}

.search-bar {
  padding: 8px 14px;
  border-bottom: 1px solid var(--bd);
  display: none;
  flex-shrink: 0
}

.search-bar.on {
  display: flex
}

.search-bar input {
  flex: 1;
  background: var(--sf2);
  border: 1px solid var(--bd2);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--tx);
  font-size: 12px;
  font-family: inherit;
  outline: none
}

.search-bar input::placeholder {
  color: var(--dm)
}

.search-res {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--sf2);
  border: 1px solid var(--bd2);
  border-radius: 0 0 12px 12px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4)
}

.search-res.on {
  display: block
}

.sr-item {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 12px;
  color: var(--mu);
  border-bottom: 1px solid var(--bd);
  transition: background .18s
}

.sr-item:hover {
  background: var(--sf);
  color: var(--tx)
}

.sr-item strong {
  color: var(--aa)
}

.chatfont-slider-wrap {
  padding: 4px 2px;
}

.chatfont-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--aa);
  cursor: pointer;
}

.chatfont-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mu);
  margin-top: 6px;
}

.pers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px
}

.pers-card {
  padding: 11px;
  border: 2px solid var(--bd);
  border-radius: 11px;
  cursor: pointer;
  transition: all .2s;
  text-align: center
}

.pers-card:hover {
  border-color: var(--bd2);
  background: var(--sf2);
  transform: translateY(-1px)
}

.pers-card.on {
  border-color: var(--aa);
  background: rgba(255, 102, 196, .07);
  box-shadow: 0 0 14px rgba(255, 102, 196, .12)
}

.pers-card-ico {
  font-size: 20px;
  margin-bottom: 4px
}

.pers-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--tx)
}

.pers-card-desc {
  font-size: 10px;
  color: var(--dm);
  margin-top: 2px
}

.otp-inp {
  width: 44px;
  height: 52px;
  background: #0c0c0c;
  border: 2px solid #2a2a2a;
  border-radius: 10px;
  color: var(--tx);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  font-family: inherit;
  outline: none;
  transition: border-color .2s
}

.otp-inp:focus {
  border-color: var(--aa)
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px
}

.stat-card {
  background: var(--sf2);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 12px;
  text-align: center
}

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--tx)
}

.stat-lbl {
  font-size: 11px;
  color: var(--dm);
  margin-top: 2px
}

/* Sec divider */
.sec-div {
  font-size: 11px;
  font-weight: 600;
  color: var(--dm);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin: 16px 0 8px;
  border-top: 1px solid var(--bd);
  padding-top: 14px
}

/* Download btn */
.dl-btn {
  width: 100%;
  padding: 10px;
  background: var(--sf2);
  border: 1px solid var(--bd2);
  border-radius: 9px;
  color: var(--tx);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 6px
}

.dl-btn:hover {
  background: var(--bd2)
}

/* Web search indicator */
.ws-indicator {
  font-size: 11px;
  color: var(--blu);
  padding: 0 0 4px;
  text-align: center;
  display: none
}

.ws-indicator.on {
  display: block
}

/* Pinned messages */
.pin-bar {
  background: var(--sf2);
  border-bottom: 1px solid var(--bd);
  padding: 8px 14px;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mu);
  cursor: pointer;
  flex-shrink: 0
}

.pin-bar.on {
  display: flex
}

.pin-bar:hover {
  background: var(--bd)
}

/* Search bar */
.search-bar {
  padding: 8px 14px;
  border-bottom: 1px solid var(--bd);
  display: none;
  flex-shrink: 0
}

.search-bar.on {
  display: flex
}

.search-bar input {
  flex: 1;
  background: var(--sf2);
  border: 1px solid var(--bd2);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--tx);
  font-size: 12px;
  font-family: inherit;
  outline: none
}

.search-bar input::placeholder {
  color: var(--dm)
}

.search-res {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--sf2);
  border: 1px solid var(--bd2);
  border-radius: 0 0 10px 10px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  display: none
}

.search-res.on {
  display: block
}

.sr-item {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 12px;
  color: var(--mu);
  border-bottom: 1px solid var(--bd);
  transition: background var(--ease)
}

.sr-item:hover {
  background: var(--sf);
  color: var(--tx)
}

.sr-item strong {
  color: var(--aa)
}

/* Arkaplan seçim kartları — karartılmış görsel önizleme */
.bg-pick-card {
  position: relative;
  height: 64px;
  border-radius: 10px;
  border: 2px solid var(--bd);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  transition: all .2s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bg-pick-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  transition: background .2s;
}

.bg-pick-card:hover {
  border-color: var(--bd2);
  transform: translateY(-1px);
}

.bg-pick-card:hover::before {
  background: rgba(0, 0, 0, .35);
}

.bg-pick-card.on {
  border-color: var(--aa);
}

.bg-pick-card.on::before {
  background: rgba(255, 102, 196, .25);
}

.bg-pick-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 6px 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.bg-pick-card.bg-pick-none {
  background: #0c0c0c;
}

.bg-pick-card.bg-pick-none::before {
  background: rgba(0, 0, 0, .2);
}

.bg-pick-card.bg-pick-upload {
  background: var(--sf);
  border-style: dashed;
}

.bg-pick-card.bg-pick-upload::before {
  content: none;
}

.bg-pick-card.bg-pick-upload .bg-pick-label {
  color: var(--tx);
  text-shadow: none;
}

/* Personality badges */
.pers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px
}

.pers-card {
  padding: 10px;
  border: 2px solid var(--bd);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  text-align: center
}

.pers-card:hover {
  border-color: var(--bd2);
  background: var(--sf2)
}

.pers-card.on {
  border-color: var(--aa);
  background: rgba(255, 102, 196, .07)
}

.pers-card-ico {
  font-size: 20px;
  margin-bottom: 4px
}

.pers-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--tx)
}

.pers-card-desc {
  font-size: 10px;
  color: var(--dm);
  margin-top: 2px
}

/* Action buttons on messages */
.msg-acts {
  display: flex;
  gap: 3px;
  margin-top: 5px;
  flex-wrap: wrap;
  opacity: 1;
  transition: opacity var(--ease)
}

.msg:hover .msg-acts {
  opacity: 1
}

.mab {
  background: var(--sf);
  border: transparent;
  color: var(--dm);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all .18s cubic-bezier(.4, 0, .2, 1);
}

.mab:hover {
  background: var(--sf2);
  color: var(--mu);
  border-color: var(--bd2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

.mab:active {
  transform: translateY(0) scale(.97);
}

.otp-inp {
  width: 44px;
  height: 52px;
  background: #0c0c0c;
  border: 2px solid #2a2a2a;
  border-radius: 10px;
  color: var(--tx);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}

.otp-inp:focus {
  border-color: var(--aa)
}

@media(min-width:1024px) and (max-width:1399px) {
  .mw {
    max-width: 760px
  }

  .ic {
    max-width: 760px
  }
}

@media(min-width:1400px) {
  .mw {
    max-width: 880px
  }

  .ic {
    max-width: 880px
  }

  .wlc {
    max-width: 720px
  }

  .sg {
    grid-template-columns: 1fr 1fr 1fr 1fr
  }

  .msg.user .mb {
    font-size: 14.5px
  }

  .msg.ai .mb {
    font-size: 15px
  }

  .sb {
    width: 290px;
    min-width: 290px
  }
}

@media(min-width:1800px) {
  .mw {
    max-width: 1020px
  }

  .ic {
    max-width: 1020px
  }

  .sb {
    width: 320px;
    min-width: 320px
  }

  body {
    font-size: 15px
  }
}

/* TABLET */
@media(min-width:601px) and (max-width:900px) {
  .sb {
    width: 220px;
    min-width: 220px
  }

  .mw {
    padding: 0 16px
  }

  .ic {
    max-width: 100%
  }

  .wt {
    font-size: 24px
  }

  .sg {
    grid-template-columns: 1fr 1fr
  }
}

/* MOBILE */
@media(max-width:600px) {
  .signin-container {
    flex-direction: column
  }

  .signin-left {
    padding: 20px
  }

  .signin-right {
    display: none;
    height: auto
  }

  .lw {
    width: 100%;
    max-width: 100%
  }

  .sb {
    position: fixed;
    z-index: 50;
    height: 100%;
    width: 0;
    min-width: 0;
    opacity: 0;
    transform: translateX(-100%)
  }

  .sb.mob {
    width: 80vw;
    max-width: 300px;
    min-width: 260px;
    opacity: 1;
    transform: translateX(0)
  }

  .sb-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 49;
    backdrop-filter: blur(3px);
    animation: fi .2s ease
  }

  .sb-backdrop.on {
    display: block
  }

  .sg {
    grid-template-columns: 1fr
  }

  .mw {
    padding: 0 12px
  }

  .preview-panel {
    display: none
  }

  .preview-panel.on {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100%;
    min-width: 0;
    height: 100%;
    z-index: 60;
  }

  .mode-badge span {
    display: none
  }

  .iz {
    padding: 6px 10px 0px
  }

  .scroll-down-btn {
    bottom: calc(150px + env(safe-area-inset-bottom, 0px))
  }

  .iz>.ifoot {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px))
  }

  .ic {
    border-radius: 16px
  }

  .ir {
    padding: 8px 8px 8px 12px;
    gap: 4px
  }

  #mi {
    font-size: 16px;
    padding: 2px 0;
    margin-left: 10px
  }

  .sbtn {
    width: 40px;
    height: 40px;
    border-radius: 10px
  }

  .iib {
    padding: 8px
  }

  .ifoot {
    font-size: 10px;
    padding: 0 0 2px;
    margin-bottom: 0
  }

  .tb {
    padding: 0 12px;
    height: 50px
  }

  .tb-sb-btn {
    display: flex;
    flex-shrink: 0;
  }

  .tbt {
    font-size: 13px
  }

  .msg.user .mb {
    font-size: 13px;
    padding: 9px 12px
  }

  .msg.ai .mb {
    font-size: 13.5px
  }

  .mav {
    width: 24px;
    height: 24px
  }

  .wlc {
    padding: 32px 16px 24px
  }

  .wt {
    font-size: 23px
  }

  .ws {
    font-size: 12px;
    margin-bottom: 22px
  }

  .sc {
    padding: 12px
  }

  .mbox {
    padding: 20px;
    border-radius: 16px
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px
  }

  .cw pre {
    padding: 10px 12px;
    font-size: 11.5px
  }

  .ch {
    padding: 7px 10px;
    flex-wrap: wrap;
    gap: 4px
  }

  .ch-btns {
    gap: 3px
  }

  .cpb,
  .anlb {
    padding: 3px 7px;
    font-size: 10px
  }

  .sbf {
    padding: 7px
  }

  .ur {
    padding: 7px
  }

  .q-toast {
    top: 12px;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
  }

  .mob-nav {
    display: flex
  }

  .main {
    padding-bottom: 0px
  }
}

@media(max-width:380px) {
  #mi {
    font-size: 15px
  }

  .iib {
    padding: 6px
  }

  .sbtn {
    width: 33px;
    height: 33px
  }
}

@supports (-webkit-touch-callout: none) {
  .screen {
    height: -webkit-fill-available
  }

  body {
    height: -webkit-fill-available
  }
}

/* MOBILE BOTTOM NAV */
.mob-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 40;
  background: color-mix(in srgb, var(--sb) 90%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, .07);
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.mob-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--dm);
  cursor: pointer;
  padding: 6px 18px;
  border-radius: 12px;
  font-size: 10px;
  font-family: inherit;
  transition: all .2s ease;
  font-weight: 500;
}

.mob-nav-btn:hover,
.mob-nav-btn.on {
  color: var(--aa)
}

.mob-nav-btn.on {
  background: rgba(255, 102, 196, .1)
}

.mob-nav-btn svg {
  transition: transform .2s
}

.mob-nav-btn.on svg {
  transform: scale(1.15)
}

/* YENİ AYARLAR PANELİ */
.settings-grid-modal .mbox {
  display: flex;
  max-width: 750px;
  width: 95vw;
  height: 85vh;
  max-height: 90vh;
  padding: 0;
  background: rgba(12, 12, 12, .9);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.settings-sidebar {
  width: 190px;
  min-width: 190px;
  border-right: 1px solid rgba(255, 255, 255, .07);
  padding: 16px 10px;
  background: rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .settings-grid-modal .mbox {
    flex-direction: column;
    height: 95vh;
    max-height: 95vh;
    border-radius: 12px;
  }

  .settings-sidebar {
    width: 100%;
    min-width: unset;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 6px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    gap: 4px;
  }

  .settings-sidebar-item {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .settings-content {
    padding: 16px;
  }
}

.settings-sidebar-item {
  padding: 12px 16px;
  margin: 2px 8px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

/* Profil başlığı */
.sett-profile-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 14px;
}

.sett-profile-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aa), rgba(255, 255, 255, .3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
  overflow: hidden;
}

.sett-profile-info {
  min-width: 0;
}

.sett-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sett-profile-email {
  font-size: 10px;
  color: var(--mu);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.sett-sidebar-div {
  height: 1px;
  background: rgba(255, 255, 255, .07);
  margin: 0 0 8px;
}

.sett-item-lbl {
  font-size: 13px;
}

.settings-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--mu);
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}

.settings-sidebar-item .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
}

.settings-sidebar-item:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--tx);
}

.settings-sidebar-item.active {
  background: rgba(255, 255, 255, .1);
  color: var(--tx);
  font-weight: 600;
}

.settings-sidebar-item.active .material-symbols-outlined {
  color: var(--aa);
}

.sett-danger-item {
  color: var(--red) !important;
}

.sett-danger-item:hover {
  background: rgba(229, 88, 101, .1) !important;
}

.settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-family: 'DM Sans';
}

.settings-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 20px;
}

.settings-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── SPLASH SCREEN ── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

#splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(255, 102, 196, .12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(96, 165, 250, .1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 10%, rgba(255, 222, 89, .07) 0%, transparent 50%);
  animation: splBgPulse 3s ease-in-out infinite alternate;
}

@keyframes splBgPulse {
  from {
    opacity: .6;
  }

  to {
    opacity: 1;
  }
}

#splash.hide {
  animation: splashOut .65s cubic-bezier(.4, 0, 1, 1) forwards
}

@keyframes splashOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.06);
    pointer-events: none;
  }
}

/* Logo sahnesi — dönen yörünge halkaları + 3D logo + parıltı */
.spl-stage {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Nabız atan aura glow (logonun arkasında) */
.spl-aura {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 102, 196, .22) 0%, rgba(96, 165, 250, .10) 45%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: splAura 2.4s ease-in-out infinite alternate;
}

@keyframes splAura {
  from {
    transform: scale(.82);
    opacity: .55;
  }

  to {
    transform: scale(1.12);
    opacity: 1;
  }
}

/* Dönen renkli yörünge loader'ı (conic-gradient + mask ile ince halka) */
.spl-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 102, 196, 0) 30deg, #ff66c4 140deg, #ffde59 220deg, #60a5fa 300deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  filter: drop-shadow(0 0 6px rgba(255, 102, 196, .5));
  animation: splSpin 1.6s linear infinite;
}

.spl-orbit2 {
  inset: 15px;
  background: conic-gradient(from 180deg, transparent 0deg, #60a5fa 120deg, #ffde59 240deg, transparent 360deg);
  filter: drop-shadow(0 0 5px rgba(96, 165, 250, .45));
  opacity: .8;
  animation: splSpinRev 2.3s linear infinite;
}

@keyframes splSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes splSpinRev {
  to {
    transform: rotate(-360deg);
  }
}

/* Logo kabı (parıltının taşmaması için overflow hidden) */
.spl-logo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 22px;
  overflow: hidden;
  z-index: 2;
  perspective: 600px;
  filter: drop-shadow(0 0 16px rgba(255, 102, 196, .45));
}

.spl-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 22px;
  opacity: 0;
  transform-origin: center;
  animation: splLogoIn .85s cubic-bezier(.34, 1.56, .64, 1) .15s forwards;
}

@keyframes splLogoIn {
  0% {
    opacity: 0;
    transform: rotateY(95deg) scale(.45);
  }

  55% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
  }
}

/* Logonun üzerinden geçen holografik parıltı */
.spl-shine {
  position: absolute;
  top: 0;
  left: -65%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .6) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: splShine 2.6s ease-in-out .9s infinite;
}

@keyframes splShine {
  0% {
    left: -65%;
  }

  35% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

/* Hareket azaltma: splash animasyonlarını durdur ama içerik görünür kalsın */
@media (prefers-reduced-motion: reduce) {

  .spl-orbit,
  .spl-aura,
  .spl-shine,
  .spl-ring,
  .spl-particle {
    animation: none !important;
  }

  .spl-logo,
  .spl-name,
  .spl-tagline,
  .spl-ver {
    animation: none !important;
    opacity: 1 !important;
  }

  .spl-logo {
    transform: none !important;
  }

  .spl-name {
    clip-path: none !important;
  }

  .spl-bar-fill {
    animation: none !important;
    width: 100% !important;
  }
}

.spl-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-top: 26px;
  background: linear-gradient(135deg, #ffffff 20%, #ff66c4 60%, #ffde59 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: splNameIn .6s cubic-bezier(.22, 1, .36, 1) .7s forwards;
  position: relative;
  z-index: 1;
}

@keyframes splNameIn {
  to {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
  }
}

.spl-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0;
  animation: splFadeUp .5s ease 1.35s forwards;
  position: relative;
  z-index: 1;
}

@keyframes splFadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spl-ver {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, .2);
  margin-top: 4px;
  opacity: 0;
  animation: splFadeUp .4s ease 1.55s forwards;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.spl-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, .06);
  border-radius: 2px;
  margin-top: 28px;
  overflow: hidden;
  opacity: 0;
  animation: splFadeUp .4s ease 1.2s forwards;
  position: relative;
  z-index: 1;
}

.spl-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff66c4, #ffde59, #60a5fa, #ff66c4);
  background-size: 300% 100%;
  border-radius: 2px;
  animation: splBar 1.3s cubic-bezier(.4, 0, .2, 1) 1.3s forwards, splBarShimmer 2s linear 1.3s infinite;
}

@keyframes splBar {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

@keyframes splBarShimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

/* Parçacık efekti */
.spl-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.spl-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  animation: splParticle linear infinite;
}

@keyframes splParticle {
  0% {
    transform: translateY(110vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: .6;
  }

  100% {
    transform: translateY(-10vh) scale(1.5);
    opacity: 0;
  }
}

/* Glow halka */
.spl-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255, 102, 196, .12);
  animation: splRing 2.5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.spl-ring:nth-child(2) {
  width: 500px;
  height: 500px;
  border-color: rgba(96, 165, 250, .07);
  animation-delay: .4s;
  animation-duration: 3s;
}

.spl-ring:nth-child(3) {
  width: 700px;
  height: 700px;
  border-color: rgba(255, 222, 89, .05);
  animation-delay: .8s;
  animation-duration: 3.5s;
}

@keyframes splRing {
  from {
    transform: scale(.9);
    opacity: .4;
  }

  to {
    transform: scale(1.1);
    opacity: 1;
  }
}

.material-symbols-outlined {
  line-height: 1;
  display: inline-block;
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased
}

/* Applications section in profile */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  background: var(--sf2);
  border: 1px solid var(--bd2);
  border-radius: 12px;
  transition: transform .2s, box-shadow .2s;
}

.app-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.app-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.app-info {
  width: 100%;
}

.app-name {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--tx);
}

.app-desc {
  font-size: 14px;
  color: var(--mu);
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════════
   MODERN SIGN-IN PAGE STYLES
   ══════════════════════════════════════════════════════ */

/* Canvas Background */
#dot-matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.signin-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar Styles */
.signin-navbar {
  padding: 20px 40px;
  background: rgba(12, 12, 12, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 20;
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo-text {
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.3px;
  background: linear-gradient(to right, #ff66c4, #ffde59);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  gap: 40px;
  flex: 1;
}

.nav-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #ff66c4, #ffde59);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.nav-btn {
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.signup-nav-btn {
  background: linear-gradient(135deg, rgba(255, 102, 196, 0.2), rgba(255, 222, 89, 0.2));
  border-color: rgba(255, 102, 196, 0.3);
}

.signup-nav-btn:hover {
  background: linear-gradient(135deg, rgba(255, 102, 196, 0.3), rgba(255, 222, 89, 0.3));
  border-color: rgba(255, 102, 196, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Content Area */
.signin-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.signin-form-wrapper {
  width: 100%;
  max-width: 500px;
}

/* Steps */
.signin-step {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.signin-step-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Header */
.signin-header {
  text-align: center;
}

.signin-title {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.signin-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

/* Form Groups */
.signin-button-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.google-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.google-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.google-btn span:first-child {
  font-size: 18px;
  font-weight: bold;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Form Field */
.form-field {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 102, 196, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 102, 196, 0.1);
}

.submit-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.submit-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Code Input Group */
.code-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.code-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
  font-family: 'DM Mono', monospace;
}

.code-input:focus {
  background: rgba(255, 102, 196, 0.1);
  border-color: rgba(255, 102, 196, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 102, 196, 0.1);
}

.code-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.code-actions {
  display: flex;
  gap: 12px;
}

.btn-back,
.btn-continue,
.btn-primary {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.btn-back {
  background: #fff;
  color: #000;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn-back:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-continue {
  background: #fff;
  color: #000;
}

.btn-continue:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.btn-continue:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #aaaaaa);
  color: #000;
  width: 100%;
  margin-top: 16px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

/* Success Icon */
.success-icon {
  width: 80px;
  height: 80px;
  margin: 20px auto;
  background: linear-gradient(135deg, #ffffff, #aaaaaa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 40px;
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Text Links */
.signin-footer-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  line-height: 1.5;
}

.signin-footer-text a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.signin-footer-text a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.signin-resend {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
}

.link-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  transition: color 0.2s ease;
}

.link-btn:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-inner {
    gap: 20px;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-buttons {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .signin-content {
    padding: 40px 20px;
  }

  .signin-title {
    font-size: 32px;
  }

  .signin-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .signin-navbar {
    padding: 16px 20px;
  }

  .logo-text {
    display: none;
  }

  .signin-content {
    padding: 30px 16px;
  }

  .signin-title {
    font-size: 28px;
  }

  .code-input-group {
    gap: 6px;
    padding: 16px;
  }

  .code-input {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

.btn-download {
  display: inline-block;
  padding: 8px 16px;
  background: var(--aa);
  color: var(--bg);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity .2s;
}

.btn-download:hover {
  opacity: 0.85;
}

/* ═══════════════════════════════════════
   PASTE CHIP — büyük yapıştırma önizleme
   ═══════════════════════════════════════ */
#paste-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 0;
}

.paste-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 90px;
  height: 90px;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 10px 8px 7px;
  position: relative;
  gap: 5px;
  animation: pasteChipIn .18s ease;
  overflow: hidden;
}

@keyframes pasteChipIn {
  from {
    opacity: 0;
    transform: translateY(4px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.paste-chip-icon {
  color: var(--mu);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.paste-chip-meta {
  font-size: 10px;
  font-weight: 600;
  color: var(--mu);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.paste-chip-preview {
  font-size: 9px;
  color: var(--dm);
  font-family: 'DM Mono', monospace;
  white-space: pre;
  overflow: hidden;
  width: 100%;
  line-height: 1.5;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.paste-chip-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dm);
  padding: 2px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

.paste-chip-rm:hover {
  background: var(--sf2);
  color: var(--tx);
}

.think-inline {
  margin: 0 16px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden;
}

.think-inline-body {
  padding: 12px 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'DM Mono', monospace;
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
}

/* ── AI Mesaj Formatı ── */
.ai-formatted {
  line-height: 1.85;
  font-size: 14px;
  color: var(--tx);
}

.ai-formatted p {
  margin-bottom: 14px;
}

.ai-formatted h1,
.ai-formatted h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--tx);
}

.ai-formatted h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--tx);
}

.ai-formatted ul,
.ai-formatted ol {
  margin: 10px 0 14px 18px;
  line-height: 2;
}

.ai-formatted li {
  margin-bottom: 4px;
}

.ai-formatted strong {
  font-weight: 550;
  color: var(--tx);
}

.ai-formatted code:not(pre code) {
  background: rgba(255, 255, 255, .1);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
}

.ai-formatted blockquote {
  border-left: 3px solid var(--aa);
  padding-left: 12px;
  color: var(--mu);
  margin: 10px 0;
}

/* ── Öneri Butonları ── */
.msg-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.msg-suggestions:empty {
  display: none;
}

.msg-sugg-btn {
  background: none;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: var(--mu);
  padding: 13px 4px 13px 28px;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: color .16s;
  text-align: left;
  position: relative;
  line-height: 1.4;
}

.msg-sugg-btn:first-child {
  border-top: none;
}

.msg-sugg-btn::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 10 4 15 9 20'/><path d='M20 4v7a4 4 0 0 1-4 4H4'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 10 4 15 9 20'/><path d='M20 4v7a4 4 0 0 1-4 4H4'/></svg>") no-repeat center / contain;
  opacity: .6;
}

.msg-sugg-btn:hover {
  color: var(--tx);
}

/* ── Progress Bar ── */
.msg-progress-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
  height: 4px;
  position: relative;
}

.msg-progress-fill {
  height: 4px;
  background: var(--aa);
  border-radius: 2px;
  transition: width .15s ease;
  width: 0%;
  flex: 1;
}

.msg-progress-pct {
  font-size: 10px;
  color: var(--mu);
  min-width: 30px;
  text-align: right;
}

@keyframes mpbAnim {
  0% {
    width: 15%;
    opacity: .7;
  }

  50% {
    width: 75%;
    opacity: 1;
  }

  100% {
    width: 15%;
    opacity: .7;
  }
}

/* ── ChatGPT tarzı görsel oluşturma UI ── */
.imggen {
  position: relative;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bd);
  background: #000;
  max-width: 512px;
}

.imggen-skeleton {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}

.imggen-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, .04) 20%,
      rgba(255, 255, 255, .10) 40%,
      rgba(255, 255, 255, .04) 60%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 220% 100%;
  animation: imgShimmer 1.6s ease-in-out infinite;
}

@keyframes imgShimmer {
  0% {
    background-position: 180% 0;
  }

  100% {
    background-position: -80% 0;
  }
}

.imggen-wave {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.imggen-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
  z-index: 2;
}

.imggen-spark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aa);
  animation: imgSparkPulse 1.4s ease-in-out infinite;
}

@keyframes imgSparkPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .65;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

.imggen-status {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx);
  letter-spacing: .2px;
}

.imggen-sub {
  font-size: 11px;
  color: var(--mu);
  max-width: 90%;
  line-height: 1.4;
}

.imggen-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
  overflow: hidden;
}

.imggen-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: var(--aa);
  border-radius: 2px;
  animation: imgBar 1.4s ease-in-out infinite;
}

@keyframes imgBar {
  0% {
    left: -40%;
  }

  100% {
    left: 100%;
  }
}

.imggen img {
  display: block;
  width: 100%;
  border-radius: 0;
  cursor: zoom-in;
}

.imggen-foot {
  display: none !important;
}

.imggen-prompt {
  display: none;
}

.imggen-dl {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .55);
  font-size: 0;
  font-family: inherit;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, background .15s;
}

.imggen-dl svg {
  width: 16px;
  height: 16px;
}

.imggen-dl:hover {
  color: #fff;
  background: rgba(0, 0, 0, .35);
}

.imggen-fade {
  animation: imgFade .5s ease;
}

@keyframes imgFade {
  from {
    opacity: 0;
    transform: scale(.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scroll-down-btn {
  position: absolute;
  bottom: 90px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sf2);
  border: 1px solid var(--bd2);
  color: var(--tx);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
  transition: all .2s;
}

.scroll-down-btn:hover {
  background: var(--aa);
  color: #000;
  border-color: var(--aa);
}

/* ══════════════════════════════════════
   MODE BADGE POP ANİMASYONU
══════════════════════════════════════ */
@keyframes modeBadgePop {

  0%,
  100% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.12);
  }

  65% {
    transform: scale(0.94);
  }
}

.mode-badge.popping {
  animation: modeBadgePop 0.38s cubic-bezier(.36, 1.56, .64, 1);
}

/* ══════════════════════════════════════
   MOD BAZLI SOHBET ORTAMI TEMALARı
══════════════════════════════════════ */

/* Normal — Yeşil */
#ap.mode-theme-normal .ic {
  border-color: rgba(74, 222, 128, 0.28) !important;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.1), 0 8px 32px rgba(0, 0, 0, .4) !important;
  transition: border-color .5s, box-shadow .5s;
}

#ap.mode-theme-normal .tc {
  background: #4ade80 !important;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.65);
}

#ap.mode-theme-normal .cd-fill {
  background: linear-gradient(90deg, #4ade80, #86efac, #4ade80) !important;
}

#ap.mode-theme-normal .sbtn {
  background: #4ade80 !important;
  color: #000 !important;
}

#ap.mode-theme-normal .sbtn:hover {
  background: #86efac !important;
  box-shadow: 0 4px 14px rgba(74, 222, 128, .3) !important;
}

/* Kod — Mavi */
#ap.mode-theme-code .ic {
  border-color: rgba(96, 165, 250, 0.28) !important;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.1), 0 8px 32px rgba(0, 0, 0, .4) !important;
  transition: border-color .5s, box-shadow .5s;
}

#ap.mode-theme-code .tc {
  background: #60a5fa !important;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.65);
}

#ap.mode-theme-code .cd-fill {
  background: linear-gradient(90deg, #60a5fa, #93c5fd, #60a5fa) !important;
}

#ap.mode-theme-code .sbtn {
  background: #60a5fa !important;
  color: #000 !important;
}

#ap.mode-theme-code .sbtn:hover {
  background: #93c5fd !important;
  box-shadow: 0 4px 14px rgba(96, 165, 250, .3) !important;
}

/* Detaylı — Turuncu */
#ap.mode-theme-detail .ic {
  border-color: rgba(251, 146, 60, 0.28) !important;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.1), 0 8px 32px rgba(0, 0, 0, .4) !important;
  transition: border-color .5s, box-shadow .5s;
}

#ap.mode-theme-detail .tc {
  background: #fb923c !important;
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.65);
}

#ap.mode-theme-detail .cd-fill {
  background: linear-gradient(90deg, #fb923c, #fdba74, #fb923c) !important;
}

#ap.mode-theme-detail .sbtn {
  background: #fb923c !important;
  color: #000 !important;
}

#ap.mode-theme-detail .sbtn:hover {
  background: #fdba74 !important;
  box-shadow: 0 4px 14px rgba(251, 146, 60, .3) !important;
}

/* Yaratıcı — Pembe */
#ap.mode-theme-creative .ic {
  border-color: rgba(244, 114, 182, 0.28) !important;
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.1), 0 8px 32px rgba(0, 0, 0, .4) !important;
  transition: border-color .5s, box-shadow .5s;
}

#ap.mode-theme-creative .tc {
  background: #f472b6 !important;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.65);
}

#ap.mode-theme-creative .cd-fill {
  background: linear-gradient(90deg, #f472b6, #f9a8d4, #f472b6) !important;
}

#ap.mode-theme-creative .sbtn {
  background: #f472b6 !important;
  color: #000 !important;
}

#ap.mode-theme-creative .sbtn:hover {
  background: #f9a8d4 !important;
  box-shadow: 0 4px 14px rgba(244, 114, 182, .3) !important;
}

/* Hızlı — Varsayılan */
#ap.mode-theme-fast .sbtn {
  background: var(--tx) !important;
  color: var(--bg) !important;
}

/* ══════════════════════════════════════
   BOŞ SOHBET LAYOUT
══════════════════════════════════════ */
#ap.chat-empty .ca {
  flex: 1;
  overflow: hidden;
}

#ap.chat-empty .iz {
  position: fixed;
  top: 42vh;
  left: var(--sb-width, 260px);
  right: 0;
  transform: none;
  padding: 0 24px;
  background: transparent;
  z-index: 20;
  transition: top .35s cubic-bezier(.4, 0, .2, 1), left .3s ease;
}

#ap:not(.chat-empty) .iz {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  padding: 10px 20px 16px;
  z-index: auto;
  transition: none;
}

#ap.chat-empty .iz .ic {
  max-width: 720px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 8px 48px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 10rem;
}

#ap.chat-empty #mi {
  font-size: 16px;
  height: 27px;
  max-height: 200px;
}

#ap.chat-empty .ifoot {
  display: none;
}

@media (max-width: 600px) {
  #ap.chat-empty .iz {
    left: 0;
    padding: 0 12px;
  }
}

/* ══════════════════════════════════════
   YENİ MESAJ PARLAMA EFEKTİ
══════════════════════════════════════ */
@keyframes msgGlow {
  0% {
    box-shadow: none;
  }

  25% {
    box-shadow: 0 0 20px rgba(255, 255, 255, .12), 0 0 40px rgba(255, 255, 255, .06);
  }

  60% {
    box-shadow: 0 0 10px rgba(255, 255, 255, .06);
  }

  100% {
    box-shadow: none;
  }
}

.msg-glow .mb {
  animation: msgGlow 1.6s ease forwards;
  border-radius: 12px;
}

/* ══════════════════════════════════════
   SPOTLIGHT EFEKTİ
══════════════════════════════════════ */
#chat-spotlight {
  position: fixed;
  bottom: 0;
  left: var(--sb-width, 260px);
  right: 0;
  height: 70vh;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(ellipse 55% 80% at 50% 100%,
      rgba(255, 200, 60, 0.10) 0%,
      rgba(255, 90, 170, 0.09) 40%,
      transparent 72%);
  opacity: 1;
  transition: left .3s ease;
}

@media (max-width: 600px) {
  #chat-spotlight {
    left: 0;
  }
}

/* ══════════════════════════════════════
   KARŞILAMA YAZISI
══════════════════════════════════════ */
#chat-greeting {
  position: fixed;
  top: 50%;
  left: var(--sb-width, 260px);
  right: 0;
  transform: translateY(-190px);
  text-align: center;
  pointer-events: none;
  user-select: none;
  z-index: 10;
  opacity: 1;
  transition: opacity .4s ease, left .3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ── Grok tarzı marka bloğu (logo + wordmark) ── */
.grok-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.grok-brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, .12));
}

.grok-brand-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1;
}

@media (max-width: 600px) {
  .grok-brand-logo { width: 38px; height: 38px; }
  .grok-brand-name { font-size: 34px; }
}

#chat-greeting.hidden {
  opacity: 0 !important;
  display: none !important;
  pointer-events: none;
}

#chat-greeting-text {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.3px;
  color: rgba(255, 255, 255, .55);
  font-family: 'DM Sans', sans-serif;
  transition: opacity .35s ease;
}

@media (max-width: 600px) {
  #chat-greeting {
    left: 0;
  }
}

.loader-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  font-family: "Inter", sans-serif;
  font-size: 1.2em;
  font-weight: 300;
  color: white;
  border-radius: 50%;
  background-color: transparent;
  user-select: none;
}

.loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: transparent;
  animation: loader-rotate 2s linear infinite;
  z-index: 0;
}

@keyframes loader-rotate {
  0% {
    transform: rotate(90deg);
    box-shadow: 0 10px 20px 0 #fff inset, 0 20px 30px 0 #ad5fff inset, 0 60px 60px 0 #471eec inset;
  }

  50% {
    transform: rotate(270deg);
    box-shadow: 0 10px 20px 0 #fff inset, 0 20px 10px 0 #d60a47 inset, 0 40px 60px 0 #311e80 inset;
  }

  100% {
    transform: rotate(450deg);
    box-shadow: 0 10px 20px 0 #fff inset, 0 20px 30px 0 #ad5fff inset, 0 60px 60px 0 #471eec inset;
  }
}

.loader-letter {
  display: inline-block;
  opacity: 0.4;
  transform: translateY(0);
  animation: loader-letter-anim 2s infinite;
  z-index: 1;
  border-radius: 50ch;
  border: none;
}

.loader-letter:nth-child(1) {
  animation-delay: 0s;
}

.loader-letter:nth-child(2) {
  animation-delay: 0.1s;
}

.loader-letter:nth-child(3) {
  animation-delay: 0.2s;
}

.loader-letter:nth-child(4) {
  animation-delay: 0.3s;
}

.loader-letter:nth-child(5) {
  animation-delay: 0.4s;
}

.loader-letter:nth-child(6) {
  animation-delay: 0.5s;
}

.loader-letter:nth-child(7) {
  animation-delay: 0.6s;
}

.loader-letter:nth-child(8) {
  animation-delay: 0.7s;
}

.loader-letter:nth-child(9) {
  animation-delay: 0.8s;
}

.loader-letter:nth-child(10) {
  animation-delay: 0.9s;
}

@keyframes loader-letter-anim {

  0%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }

  20% {
    opacity: 1;
    transform: scale(1.15);
  }

  40% {
    opacity: 0.7;
    transform: translateY(0);
  }
}

.ai-loader-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}

/* ══════════════════════════════════════
   SESLI YAZMA — "iz" içinde satır içi panel
   (composer'ın .ir satırını kaplar, sağdan sola doğru açılır, 32 çubuk)
══════════════════════════════════════ */
.ir {
  position: relative;
}

.voice-inline {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  background: var(--sf);
  border-radius: 10rem;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transform-origin: right center;
  transition: width .32s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
  pointer-events: none;
}

.voice-inline.on {
  width: 100%;
  opacity: 1;
  pointer-events: auto;
}

.voice-inline-cancel,
.voice-inline-send {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--mu);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.voice-inline-cancel:hover {
  background: rgba(255, 60, 60, .12);
  color: #ff5c5c;
}

.voice-inline-send {
  background: var(--aa);
  color: #000;
}

.voice-inline-send:hover {
  opacity: .85;
}

.voice-inline-timer {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--mu);
  flex-shrink: 0;
  min-width: 38px;
}

.voice-inline-bars {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  height: 32px;
  overflow: hidden;
}

.vib {
  flex-shrink: 0;
  width: 3px;
  min-height: 3px;
  border-radius: 2px;
  background: var(--aa);
  opacity: .55;
  transform: scaleY(var(--h, .12));
  transition: transform .09s ease-out, opacity .09s ease-out;
}

.vib.active {
  opacity: 1;
}

/* Composer mic butonu: kayıt sırasında kırmızı nabız */
#voice-btn.recording {
  color: #ff5c5c;
  animation: voiceBtnPulse 1.4s ease-in-out infinite;
}

@keyframes voiceBtnPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ███  MONO KARBON  ███  — Minimalist redesign katmanı
   Saf karbon siyahı · hairline çizgiler · keskin köşeler · tek beyaz
   aksan · monospace teknik dokunuşlar. Glassmorphism (blur/gradient/
   glow) tamamen kaldırılır. Yalnızca VARSAYILAN temada uygulanır;
   alternatif temalar (.theme-*) bozulmaz. Dosya sonunda → kazanır.
   ═══════════════════════════════════════════════════════════════════ */

/* 1) Glassmorphism'i komple kaldır — tüm blur'lar düzleşir */
body:not([class*="theme-"]) * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 2) Genel zemin & tipografi */
body:not([class*="theme-"]) {
  background: var(--bg) !important;
  color: var(--tx);
  letter-spacing: -0.01em;
}

body:not([class*="theme-"]) .main {
  background: var(--bg) !important;
}

/* 3) Kenar çubuğu — saf siyah, kenarlıksız (Grok gibi), dekorasyon yok */
body:not([class*="theme-"]) .sb {
  background: #000 !important;
  border-right: none !important;
}

body:not([class*="theme-"]) .sb::after {
  display: none !important;
}

/* Aktif sohbet / nav öğesi → koyu pill */
body:not([class*="theme-"]) .cl .ci.active,
body:not([class*="theme-"]) .cl .ci:hover {
  background: #161616 !important;
  border-radius: 8px !important;
}

body:not([class*="theme-"]) .sb-logo img {
  border-radius: var(--r-sm);
  box-shadow: none !important;
}

/* 4) Üst bar — düz, ince alt çizgi */

body:not([class*="theme-"]) .tb-av {
  background: var(--aa) !important;
  color: #000;
}

/* 5) Mesajlar — kullanıcı balonu düz karbon, AI sade, glow yok */
body:not([class*="theme-"]) .msg.user .mb {
  background: var(--sf) !important;
  border: 1px solid var(--bd2);
  border-radius: 1.5rem 1.5rem 5px 1.5rem;
  box-shadow: none !important;
}

body:not([class*="theme-"]) .msg.user .mb:hover {
  background: var(--sf2) !important;
  box-shadow: none !important;
}

body:not([class*="theme-"]) .mav {
  border-radius: var(--r-sm) !important;
}

body:not([class*="theme-"]) .mav.ai {
  background: var(--sf2) !important;
  border: 1px solid var(--bd2) !important;
  box-shadow: none !important;
}

/* Yazım imleci — yumuşak parıltı yok, net çizgi */
body:not([class*="theme-"]) .tc {
  box-shadow: none !important;
  border-radius: 0;
}

/* 6) Mesaj giriş kutusu — Grok-vari yuvarlak pill, düz koyu zemin */
body:not([class*="theme-"]) .ic {
  background: #141414 !important;
  border: 1px solid #262626;
  border-radius: 10rem !important;
  box-shadow: none !important;
  max-width: 760px;
}

body:not([class*="theme-"]) .ic.has-attachment,
body:not([class*="theme-"]) .ic.grown {
  border-radius: 20px !important;
}

body:not([class*="theme-"]) .ic:focus-within {
  border-color: #383838;
  box-shadow: none !important;
}

/* Gönder düğmesi → yuvarlak (pill içi) */
body:not([class*="theme-"]) .sbtn {
  border-radius: 50% !important;
}

body:not([class*="theme-"]) .ifoot {
  color: #555 !important;
  font-size: 11px;
}

/* 7) Modal & ayarlar kutusu — düz, keskin, ince çerçeve */
body:not([class*="theme-"]) .modal {
  background: rgba(0, 0, 0, .72) !important;
}

body:not([class*="theme-"]) .mbox {
  background: #0d0d0d !important;
  border: 1px solid var(--bd2);
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7) !important;
}

body:not([class*="theme-"]) .mbox td:first-child {
  color: var(--mu) !important;
}

/* 8) Kod penceresi — düz, keskin, monospace başlık */
body:not([class*="theme-"]) .cw {
  background: #070707 !important;
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
}

body:not([class*="theme-"]) .ch {
  background: #0d0d0d !important;
  border-bottom: 1px solid var(--bd);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0;
}

/* 9) Düğmeler & öneri çipleri — keskin, düz, sade hover */
body:not([class*="theme-"]) .msg-sugg-btn,
body:not([class*="theme-"]) .voice-inline-send {
  border-radius: var(--r-sm) !important;
}

body:not([class*="theme-"]) .msg-sugg-btn::after {
  display: none !important;
}

body:not([class*="theme-"]) .msg-sugg-btn:hover {
  background: var(--sf2) !important;
  transform: none !important;
}

/* 10) Monospace teknik dokunuşlar — zaman damgaları, model etiketleri, kod */
body:not([class*="theme-"]) code,
body:not([class*="theme-"]) pre,
body:not([class*="theme-"]) .ts,
body:not([class*="theme-"]) .msg-time,
body:not([class*="theme-"]) .model-tag,
body:not([class*="theme-"]) .ws-src,
body:not([class*="theme-"]) .stat-num {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
}

/* 11) İnce, sade scrollbar */
body:not([class*="theme-"]) ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body:not([class*="theme-"]) ::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 0;
  border: 2px solid var(--bg);
}

body:not([class*="theme-"]) ::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

body:not([class*="theme-"]) ::-webkit-scrollbar-track {
  background: transparent;
}

/* 12) Genel: büyük yuvarlak köşeleri ve parlak gölgeleri sadeleştir */
body:not([class*="theme-"]) .ld,
body:not([class*="theme-"]) .think-panel,
body:not([class*="theme-"]) .imggen,
body:not([class*="theme-"]) .card,
body:not([class*="theme-"]) .dropmenu,
body:not([class*="theme-"]) .ctx-menu {
  border-radius: var(--r-md) !important;
}

/* 13) TEK KARAKTER — değişen arkaplan / dot-matrix animasyonu kaldırıldı */
#app-dot-canvas,
.app-gradient-overlay,
#chat-spotlight {
  display: none !important;
}

#ap {
  background: #000 !important;
}

/* 14) Tema seçici & arkaplan değiştirme UI'sini gizle (artık tek sabit tema) */
[data-theme],
.theme-picker,
.bg-picker,
#bg-upload,
.pers-card {
  display: none !important;
}

/* 15) AI YANIT TİPOGRAFİSİ — Grok cevap CSS'i (prose) birebir uyarlandı
   Yazı: Universal Sans Text · normal 400 · kalın/başlık 550 · saf siyah-beyaz */
body:not([class*="theme-"]),
body:not([class*="theme-"]) input,
body:not([class*="theme-"]) textarea,
body:not([class*="theme-"]) button,
body:not([class*="theme-"]) .amd,
body:not([class*="theme-"]) .ai-formatted,
body:not([class*="theme-"]) .msg .mb {
  font-family: 'Universal Sans Text', system-ui, -apple-system, sans-serif;
}

/* Gövde — Grok prose: 16px / satır 1.75 (ferah, cümleler arası boşluklu) / 400 / beyaz */
body:not([class*="theme-"]) .msg.ai .mb {
  font-size: 16px;
}

body:not([class*="theme-"]) .amd {
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.1px;
  color: #fcfcfc;
  font-weight: 400;
}

/* Paragraflar — Grok prose-p my-2.5: cümle blokları arası net boşluk */
body:not([class*="theme-"]) .amd p {
  margin: 14px 0;
}

body:not([class*="theme-"]) .amd p:first-child {
  margin-top: 0;
}

body:not([class*="theme-"]) .amd p:last-child {
  margin-bottom: 0;
}

/* Başlıklar — Grok prose-headings: 550 ağırlık, leading-snug (1.375), my-2.5 */
body:not([class*="theme-"]) .amd h1,
body:not([class*="theme-"]) .amd h2,
body:not([class*="theme-"]) .amd h3,
body:not([class*="theme-"]) .amd h4 {
  font-weight: 550;
  color: #fcfcfc !important;
  text-transform: none !important;
  letter-spacing: -0.1px !important;
  margin: 20px 0 8px;
  line-height: 1.375;
}

body:not([class*="theme-"]) .amd h1 {
  font-size: 22px;
  border: none !important;
  padding: 0 !important;
}

body:not([class*="theme-"]) .amd h2 {
  font-size: 19px;
}

body:not([class*="theme-"]) .amd h3 {
  font-size: 17px;
}

body:not([class*="theme-"]) .amd h4 {
  font-size: 16px;
}

/* Listeler — boşluklu, soluk gri madde işareti */
body:not([class*="theme-"]) .amd ul,
body:not([class*="theme-"]) .amd ol {
  padding-left: 22px;
  margin: 14px 0;
}

body:not([class*="theme-"]) .amd li {
  margin: 6px 0;
  line-height: 1.7;
  padding-left: 4px;
}

body:not([class*="theme-"]) .amd li::marker {
  color: #8a8a8a;
}

/* Kalın vurgu — Grok birebir: 550 ağırlık, #FCFCFC */
body:not([class*="theme-"]) .amd strong,
body:not([class*="theme-"]) .amd b {
  font-weight: 550;
  color: #fcfcfc;
}

/* Satır içi kod */
body:not([class*="theme-"]) .amd code:not([class]) {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 13.5px;
  color: #f0f0f0;
}

/* Kullanıcı balonu da aynı font ailesinde, biraz daha küçük */
body:not([class*="theme-"]) .msg.user .mb {
  font-size: 15px;
  line-height: 1.65;
}

/* Sohbet yazı boyutu tercihi (küçük/büyük) Grok temasında da çalışsın */
body:not([class*="theme-"]).chatfont-small .amd {
  font-size: 14px;
}

body:not([class*="theme-"]).chatfont-large .amd {
  font-size: 18px;
}

/* ═══════════════ /MONO KARBON ═══════════════ */
.tb-login-btn {
  background: none;
  border: 1px solid var(--bd2);
  color: var(--tx);
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  margin-right: 6px;
}

.tb-login-btn:hover {
  background: var(--sf);
  border-color: var(--bd2);
}

.ls-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 50;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--tx);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.ls-close-btn:hover {
  background: rgba(255, 255, 255, .14);
}