:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(255, 255, 255, .035);
  --panel-solid: #0d0d0d;
  --panel2: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #f6f3ef;
  --muted: #9a948d;
  --accent: #ff6a1a;
  --accent2: #ffa24a;
  --hot: #ff3d54;
  --accent-soft: rgba(255, 106, 26, .14);
  --grad: linear-gradient(135deg, #ffa24a 0%, #ff6a1a 48%, #e8361c 100%);
  --grad-text: linear-gradient(100deg, #ffc27a 0%, #ff8a2b 38%, #ff4f2a 72%, #ff8a2b 100%);
  --glow: 0 10px 34px rgba(255, 106, 26, .38);
  --danger: #ff5d55;
  --ok: #4fd18b;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Plus Jakarta Sans", "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  min-height: 100vh;
  font: 15px/1.55 var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
em { font-style: normal; background: var(--grad-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s ease-in-out infinite; }
[x-cloak] { display: none !important; }
.lucide { width: 18px; height: 18px; flex: none; }
.ic { display: inline-flex; align-items: center; }
::selection { background: rgba(255, 106, 26, .45); }
* { scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }

/* Arka plan: hareketli degrade ve ince ızgara */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(38% 34% at 82% 8%, rgba(255, 106, 26, .34), transparent 70%),
    radial-gradient(34% 30% at 8% 30%, rgba(232, 54, 28, .20), transparent 70%),
    radial-gradient(40% 36% at 55% 105%, rgba(255, 162, 74, .20), transparent 70%);
  filter: blur(30px);
  animation: aurora 22s ease-in-out infinite alternate;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(-3%, 4%, 0) scale(1.08) rotate(3deg); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.03) rotate(-2deg); }
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.992); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.82); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(79, 209, 139, .55); } 100% { box-shadow: 0 0 0 9px rgba(79, 209, 139, 0); } }
@keyframes sweep { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
@keyframes rip { to { transform: scale(2.6); opacity: 0; } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes barGrow { from { transform: scaleX(.2); } to { transform: scaleX(1); } }

/* Butonlar */
button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--grad);
  background-size: 140% 140%;
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  letter-spacing: .005em;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-position .4s var(--ease), border-color .2s, background-color .2s, color .2s;
}
button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}
button:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 16px 40px rgba(255, 106, 26, .5), inset 0 1px 0 rgba(255, 255, 255, .3); }
button:hover::after { animation: sweep .85s var(--ease); }
button:active { transform: translateY(0) scale(.97); box-shadow: 0 6px 18px rgba(255, 106, 26, .35); }
button.ghost {
  background: var(--panel2);
  border: 1px solid var(--line2);
  color: var(--text);
  font-weight: 600;
  box-shadow: none;
  backdrop-filter: blur(8px);
}
button.ghost::after { display: none; }
button.ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 138, 43, .55); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
button.small { padding: 8px 13px; font-size: 13px; border-radius: 11px; }
button.danger { background: transparent; border: 1px solid rgba(255, 93, 85, .4); color: var(--danger); box-shadow: none; }
button.danger::after { display: none; }
button.danger:hover { background: rgba(255, 93, 85, .12); border-color: var(--danger); box-shadow: none; }
button:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
button:disabled::after { display: none; }
.rip { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: rgba(255, 255, 255, .32); transform: scale(0); animation: rip .6s var(--ease) forwards; pointer-events: none; }
button.ghost .rip { background: rgba(255, 138, 43, .3); }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }

/* Üst bar */
.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 30px;
  background: rgba(5, 5, 5, .6);
  backdrop-filter: blur(18px) saturate(140%);
}
.site-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 138, 43, .55), transparent); }
.logo { font-size: 27px; font-weight: 800; letter-spacing: -.045em; text-decoration: none; transition: transform .25s var(--spring); }
.logo:hover { transform: scale(1.05); }
.logo b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-right { display: flex; align-items: center; gap: 12px; }
.top-right form { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6b6b6b; }
.dot.on { background: var(--ok); animation: ring 1.8s ease-out infinite; }

/* Yerleşim ve sol menü */
.shell { position: relative; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; max-width: 1380px; margin: 0 auto; padding: 28px 30px 70px; }
.side { position: sticky; top: 98px; align-self: start; display: grid; gap: 8px; padding: 10px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); backdrop-filter: blur(14px); animation: rise .6s var(--ease) both; }
.acc-head { width: 100%; justify-content: flex-start; padding: 13px 14px; background: transparent; color: var(--text); border: 1px solid transparent; box-shadow: none; font-weight: 700; border-radius: 14px; }
.acc-head::after { display: none; }
.acc-head:hover { transform: none; background: var(--panel2); box-shadow: none; }
.acc-head .lucide { color: var(--muted); transition: color .2s, transform .3s var(--spring); }
.acc-head:hover .lucide { color: var(--accent2); transform: scale(1.12) rotate(-6deg); }
.acc-head .chev { margin-left: auto; transition: transform .35s var(--ease); }
.acc.open .acc-head { background: rgba(255, 255, 255, .06); border-color: var(--line); }
.acc.open .acc-head .lucide { color: var(--accent2); }
.acc.open .chev { transform: rotate(180deg); }
.acc-body { display: grid; gap: 3px; padding: 8px 0 6px 12px; margin-left: 22px; border-left: 1px solid var(--line); }
.acc-link { position: relative; justify-content: flex-start; width: 100%; background: transparent; color: var(--muted); font-weight: 600; padding: 10px 14px; box-shadow: none; border-radius: 12px; }
.acc-link::after { display: none; }
.acc-link::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0; border-radius: 3px; background: var(--grad); transform: translateY(-50%); transition: height .3s var(--spring); }
.acc-link:hover { background: var(--panel2); color: var(--text); transform: translateX(4px); box-shadow: none; }
.acc-link.on { background: linear-gradient(90deg, rgba(255, 106, 26, .22), rgba(255, 106, 26, .04)); color: #ffc58f; }
.acc-link.on::before { height: 60%; }
.acc-link .n { margin-left: auto; min-width: 24px; text-align: center; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.acc-link.on .n { background: rgba(255, 106, 26, .3); color: #fff; }

.content { display: grid; gap: 24px; min-width: 0; align-content: start; }
.hero { animation: rise .55s var(--ease) both; }
.hero h1 { margin: 0; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; }
.hero p { margin: 12px 0 0; max-width: 640px; color: var(--muted); font-size: 17px; }

/* İstatistik kartları */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
  animation: rise .6s var(--ease) both;
}
.stat:nth-child(2) { animation-delay: .06s; }
.stat:nth-child(3) { animation-delay: .12s; }
.stat:nth-child(4) { animation-delay: .18s; }
.stat:hover { transform: translateY(-4px); border-color: rgba(255, 138, 43, .5); }
.stat-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--grad); color: #fff; box-shadow: var(--glow); transition: transform .4s var(--spring); }
.stat:hover .stat-ic { transform: rotate(-8deg) scale(1.1); }
.stat b { display: block; font-size: 28px; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }

.notice { padding: 13px 18px; border-radius: 16px; font-size: 14px; background: linear-gradient(90deg, rgba(255, 106, 26, .16), rgba(255, 106, 26, .04)); color: #ffd7b0; border: 1px solid rgba(255, 138, 43, .28); animation: rise .5s var(--ease) both; }

/* Kartlar: cam efekti ve imleci izleyen ışık */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.card, .item {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
  backdrop-filter: blur(14px);
}
.card { border-radius: 26px; padding: 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.card::before, .item::before, .stat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 138, 43, .13), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover::before, .item:hover::before, .stat:hover::before { opacity: 1; }
.card h2 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.stack { display: grid; gap: 28px; }
.block { display: grid; gap: 15px; }
.block + .block { padding-top: 26px; border-top: 1px solid var(--line); }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 11px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; box-shadow: var(--glow); }
.hint { margin: 0; color: var(--muted); font-size: 13px; }
.pg { animation: rise .5s var(--ease) both; }

/* Form alanları */
.sr-file { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.drop { display: grid; place-items: center; gap: 5px; min-height: 148px; padding: 24px 16px; border: 1.5px dashed rgba(255, 255, 255, .2); border-radius: 20px; background: radial-gradient(circle at 50% 0%, rgba(255, 106, 26, .1), transparent 70%), var(--panel); text-align: center; color: var(--muted); cursor: pointer; transition: border-color .25s, transform .3s var(--ease), background .3s; }
.drop:hover, .drop.on { border-color: var(--accent2); color: var(--text); transform: translateY(-2px); background: radial-gradient(circle at 50% 0%, rgba(255, 106, 26, .22), transparent 70%), var(--panel); }
.drop b { color: var(--text); }
.drop .lucide { width: 28px; height: 28px; color: var(--accent2); transition: transform .4s var(--spring); }
.drop:hover .lucide, .drop.on .lucide { transform: translateY(-4px) scale(1.15); }
.drop-ready { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line2); border-radius: 18px; background: var(--panel); animation: pop .45s var(--spring) both; }
.drop-ready img { width: 66px; height: 66px; border-radius: 13px; object-fit: cover; }
.drop-ready span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

textarea, .field, .editor { width: 100%; padding: 13px 15px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); border-radius: 14px; outline: none; transition: border-color .2s, box-shadow .25s, background .2s; }
textarea { min-height: 170px; resize: vertical; }
textarea:focus, .field:focus, .editor:focus { border-color: var(--accent2); background: rgba(0, 0, 0, .5); box-shadow: 0 0 0 4px rgba(255, 106, 26, .16), 0 10px 30px rgba(255, 106, 26, .12); }
.field::placeholder, textarea::placeholder { color: #666; }
.meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
.toolbar button { width: 36px; height: 34px; display: grid; place-items: center; padding: 0; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); border-radius: 10px; color: #ddd; cursor: pointer; font-size: 14px; }
.toolbar button:hover { border-color: var(--accent2); color: #fff; }
.editor { min-height: 170px; white-space: pre-wrap; overflow-wrap: anywhere; }
.editor:empty::before { content: attr(data-placeholder); color: #666; }
.editor blockquote { margin: 4px 0; padding: 2px 10px; border-left: 3px solid var(--accent2); }
.switches { display: flex; flex-wrap: wrap; gap: 16px; }
.switch { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; cursor: pointer; }
.switch input { accent-color: var(--accent2); width: 16px; height: 16px; }
.edit-banner { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: #ffbb7d; font-size: 14px; }
.edit-banner .ghost { margin-left: auto; }
.tg-text tg-spoiler { background: #8d96a3; color: transparent; border-radius: 4px; }
.tg-text blockquote { margin: 4px 0; padding: 2px 8px; border-left: 3px solid #5eb5f7; }
.pill.deleted { background: rgba(255, 255, 255, .06); color: #888; }
.over { color: var(--danger); font-weight: 800; }

.emoji-wrap { position: relative; }
.emoji-pop { position: absolute; z-index: 8; top: 46px; right: 0; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .7)); animation: pop .3s var(--spring) both; transform-origin: top right; }
.emoji-pop emoji-picker { width: min(320px, calc(100vw - 48px)); height: 360px; }

/* Buton düzeni seçimi */
.layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.layout-opt { display: grid; gap: 11px; padding: 14px; background: var(--panel); border: 1.5px solid var(--line); color: var(--text); font-weight: 600; font-size: 13px; text-align: left; justify-content: stretch; box-shadow: none; border-radius: 16px; }
.layout-opt::after { display: none; }
.layout-opt:hover { background: var(--panel2); border-color: rgba(255, 138, 43, .55); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.layout-opt.on { border-color: transparent; background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, var(--grad) border-box; box-shadow: 0 0 0 1px rgba(255, 106, 26, .2), var(--glow); }
.mini { display: grid; gap: 4px; min-height: 24px; align-content: center; }
.mini div { display: flex; gap: 4px; }
.mini span { flex: 1; height: 9px; border-radius: 4px; background: #4a4640; transition: background .25s; }
.layout-opt.on .mini span { background: var(--grad); transform-origin: left; animation: barGrow .45s var(--ease) both; }
.mini div:nth-child(2) span { animation-delay: .06s; }
.mini div:nth-child(3) span { animation-delay: .12s; }
.mini .none { font-size: 11px; color: var(--muted); text-align: center; }

.brows { display: grid; gap: 16px; }
.brow { display: grid; gap: 9px; animation: rise .4s var(--ease) both; }
.brow-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.brow-grid { display: grid; gap: 11px; }
.brow-grid.two { grid-template-columns: 1fr 1fr; }
.bfield { display: grid; gap: 9px; padding: 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; transition: border-color .25s, transform .3s var(--ease); animation: pop .4s var(--spring) both; }
.bfield:focus-within { border-color: rgba(255, 138, 43, .6); transform: translateY(-2px); }
.bnum { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 8px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; }
.bfield-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.empty { padding: 22px; text-align: center; color: var(--muted); border: 1px dashed rgba(255, 255, 255, .16); border-radius: 18px; background: var(--panel); }

/* Zamanlayıcı */
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; width: fit-content; background: rgba(0, 0, 0, .4); border: 1px solid var(--line2); border-radius: 16px; }
.seg button { background: transparent; color: var(--muted); box-shadow: none; }
.seg button::after { display: none; }
.seg button:hover { color: var(--text); background: rgba(255, 255, 255, .06); transform: none; box-shadow: none; }
.seg button.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.day { padding: 14px 0; background: var(--panel); border: 1px solid var(--line2); color: var(--muted); font-weight: 700; box-shadow: none; border-radius: 14px; }
.day::after { display: none; }
.day:hover { color: var(--text); background: var(--panel2); transform: translateY(-3px); box-shadow: none; border-color: rgba(255, 138, 43, .55); }
.day.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); animation: pop .35s var(--spring); }
.sched-row { display: flex; flex-wrap: wrap; align-items: end; gap: 13px; }
.sched-row label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.sched-row .field { width: auto; min-width: 150px; color-scheme: dark; }
.sched-row label.grow { flex: 1 1 200px; }
.sched-row label.grow .field { width: 100%; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.save-row, .submit { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.save-row .field { flex: 1 1 200px; width: auto; }
.submit button[type="submit"] { padding: 15px 30px; font-size: 16px; border-radius: 16px; }

/* Telefon önizleme */
.preview-col { position: sticky; top: 98px; display: grid; gap: 14px; }
.preview-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 600; }
.preview-label span:last-child { padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent2); }
.phone-wrap { position: relative; padding: 10px 0 24px; }
.phone-wrap::before { content: ""; position: absolute; inset: 8% -6% 4%; background: radial-gradient(closest-side, rgba(255, 106, 26, .35), transparent 70%); filter: blur(30px); animation: floaty 7s ease-in-out infinite; pointer-events: none; }
.phone { position: relative; width: 100%; max-width: 372px; margin: 0 auto; padding: 10px; border-radius: 48px; background: linear-gradient(145deg, #3a3a3a, #0a0a0a 55%, #2a2a2a); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset, 0 40px 80px rgba(0, 0, 0, .75); animation: floaty 7s ease-in-out infinite; transition: transform .4s var(--ease); }
.phone-screen { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 600px; border-radius: 38px; background: #0e1621; }
.island { position: absolute; z-index: 3; top: 9px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 8px; background: #17212b; color: #fff; font-size: 13px; font-weight: 700; }
.status svg { width: 15px; height: 15px; }
.status-r { display: flex; gap: 5px; align-items: center; }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; background: #17212b; border-bottom: 1px solid #0b121a; }
.tg-back { color: #6ab3f3; display: grid; }
.tg-back svg { width: 22px; height: 22px; }
.tg-title { flex: 1; min-width: 0; line-height: 1.2; }
.tg-title b { display: block; color: #fff; font-size: 15px; }
.tg-title small { color: #708499; font-size: 12px; }
.tg-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; }
.tg-chat { flex: 1; padding: 14px 10px; background-color: #0e1621; background-image: radial-gradient(circle at 20% 15%, rgba(255, 106, 26, .1), transparent 45%), radial-gradient(rgba(255, 255, 255, .035) 1.2px, transparent 1.2px); background-size: auto, 18px 18px; }
.tg-msg { max-width: 316px; animation: bubbleIn .5s var(--spring) both; }
.tg-bubble { position: relative; overflow: hidden; background: #182533; color: #fff; border-radius: 16px 16px 16px 4px; }
.tg-bubble img { display: block; width: 100%; max-height: 340px; object-fit: cover; animation: pop .5s var(--ease) both; }
.tg-text { padding: 7px 11px 6px; font-size: 14.5px; line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; }
.tg-text.blank { color: #5f7285; }
.tg-link { color: #6ab3f3; }
.tg-time { float: right; margin: 7px 0 -2px 12px; color: #6d8499; font-size: 11.5px; line-height: 1; white-space: nowrap; }
.tg-time.on-img { position: absolute; right: 8px; bottom: 8px; float: none; margin: 0; padding: 3px 8px; border-radius: 10px; background: rgba(0, 0, 0, .5); color: #fff; }
.tg-views { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; vertical-align: -1px; }
.tg-views svg { width: 13px; height: 13px; }
.tg-kb { display: grid; gap: 3px; margin-top: 3px; }
.tg-row { display: flex; gap: 3px; }
.tg-btn { position: relative; flex: 1; min-width: 0; padding: 9px 22px; background: rgba(24, 37, 51, .92); border-radius: 8px; color: #fff; font-size: 14px; font-weight: 500; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: pop .4s var(--spring) both; transition: background .2s, transform .2s var(--spring); }
.tg-btn:hover { background: rgba(38, 56, 77, .95); transform: scale(1.02); }
.tg-btn svg { position: absolute; top: 5px; right: 5px; width: 11px; height: 11px; opacity: .75; }
.tg-foot { display: grid; place-items: center; height: 46px; background: #17212b; color: #6ab3f3; font-size: 15px; font-weight: 600; border-top: 1px solid #0b121a; }
.home-bar { height: 22px; background: #17212b; display: grid; place-items: center; }
.home-bar i { width: 120px; height: 4px; border-radius: 4px; background: #fff; opacity: .85; }

/* Listeler */
.list { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item { display: grid; gap: 11px; padding: 18px; border-radius: 20px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
.item:hover { transform: translateY(-4px); border-color: rgba(255, 138, 43, .45); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.span2 { grid-column: 1 / -1; }
.thumb { overflow: hidden; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.item:hover .thumb img { transform: scale(1.06); }
.item p { margin: 0; }
.item strong { font-size: 16px; }
.item-top, .item-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.item-top { justify-content: space-between; }
.snippet { color: var(--muted); overflow-wrap: anywhere; }
.pill { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--panel2); color: var(--muted); border: 1px solid var(--line2); }
.pill.sent, .pill.on { background: rgba(79, 209, 139, .12); border-color: transparent; color: var(--ok); }
.pill.failed { background: rgba(255, 93, 85, .12); border-color: transparent; color: var(--danger); }
.pill.pending, .pill.draft { background: var(--accent-soft); border-color: transparent; color: var(--accent2); }
.muted { color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 9px; background: linear-gradient(135deg, rgba(255, 162, 74, .2), rgba(255, 106, 26, .12)); color: #ffbb7d; font-size: 12px; font-weight: 700; }
.rename { display: flex; gap: 8px; }
.rename .field { flex: 1; width: auto; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .66); backdrop-filter: blur(8px); }
.modal-card { width: min(430px, 100%); display: grid; gap: 10px; background: linear-gradient(165deg, #1b1b1b, #0c0c0c); border: 1px solid var(--line2); border-radius: 26px; padding: 28px; box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 106, 26, .12), 0 0 80px rgba(255, 106, 26, .12); }
.modal-card h3 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.modal-card p { margin: 0 0 10px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.m-bg-enter, .m-bg-leave { transition: opacity .22s ease; }
.m-bg-start { opacity: 0; }
.m-bg-end { opacity: 1; }
.m-enter { transition: opacity .28s ease, transform .4s var(--spring); }
.m-leave { transition: opacity .16s ease, transform .18s ease; }
.m-start { opacity: 0; transform: translateY(18px) scale(.92); }
.m-end { opacity: 1; transform: none; }

/* Giriş sayfası */
.login-body { display: grid; place-items: center; padding: 20px; }
.login-card { position: relative; width: min(430px, 100%); display: grid; gap: 15px; padding: 34px; border-radius: 30px; border: 1px solid var(--line2); background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)); backdrop-filter: blur(18px); box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 106, 26, .1); animation: rise .7s var(--ease) both; }
.login-card h1 { margin: 0; font-size: 36px; line-height: 1.05; letter-spacing: -.04em; }
.login-card form { display: grid; gap: 15px; }
.login-card label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.login-card .notice { background: rgba(255, 93, 85, .12); color: #ffb4ae; border-color: rgba(255, 93, 85, .3); }

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .side { position: static; }
  .site-top { padding: 0 16px; }
  .stats, .grid2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .layouts, .grid2 { grid-template-columns: 1fr 1fr; }
  .brow-grid.two { grid-template-columns: 1fr; }
  .week { gap: 4px; }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Kartlardaki küçük Telegram mesajı */
.tg-mini { padding: 12px; border-radius: 18px; background-color: #0e1621; background-image: radial-gradient(circle at 15% 10%, rgba(255, 106, 26, .1), transparent 50%), radial-gradient(rgba(255, 255, 255, .035) 1.2px, transparent 1.2px); background-size: auto, 18px 18px; border: 1px solid rgba(255, 255, 255, .06); }
.tg-mini .tg-msg { max-width: 100%; animation: none; }
.tg-mini .tg-bubble img { max-height: 230px; animation: none; }
.tg-mini .tg-text { padding-bottom: 9px; }
.tg-mini .clamp { display: -webkit-box; -webkit-line-clamp: 12; -webkit-box-orient: vertical; overflow: hidden; }
.tg-mini .tg-btn { animation: none; }
