/* Kurban Sistemi — base.css kurumsal tokenları üzerine panel bileşenleri */
.brand-app small { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; color: var(--gold); margin-left: 6px; letter-spacing: .04em; }
.wa-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.wa-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--mute); }
.wa-pill.on i { background: var(--forest-mid); box-shadow: 0 0 0 3px rgba(37, 160, 90, .2); }
.wa-pill.warn i { background: var(--gold-warm); }
.wa-pill.off i { background: var(--bad); }
.search { margin-left: 24px; }

.nav a { align-items: center; justify-content: flex-start !important; }
.nav a .n { margin-left: auto; }
.nav .ni { width: 20px; text-align: center; color: var(--forest); opacity: .75; font-size: 14px; }
.nav a.active .ni { opacity: 1; }
.group-list .n.warn { background: #fdf0d0; color: #8a6510; font-weight: 700; }
.side .side-title { margin-top: 14px; }
.side-foot { margin-top: 28px; padding: 16px 12px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--mute); font-size: 11.5px; }
.side-foot img { opacity: .85; height: auto; }
@media (prefers-color-scheme: dark) { .side-foot img { background: #fff; border-radius: 6px; padding: 3px 6px; } }

.main { max-width: 1320px; }
.spacer { flex: 1; }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .92em; letter-spacing: .02em; }
.warn-t { color: #a06d00; font-weight: 600; }
.bad-t { color: var(--bad); }
.h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 22px 0 8px; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; color: inherit; resize: vertical; outline: none; }
textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(26, 107, 60, .14); }
input[type=date], input[type=tel], input[type=file] { font: inherit; }
input[type=date] { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.card { box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 720px; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.card h2 .muted { font-family: Inter, sans-serif; font-weight: 500; letter-spacing: 0; }
.alert { border-radius: 12px; padding: 11px 14px; background: #fdf6e3; border: 1px solid #f0dca0; color: #6b4e0a; font-size: 14px; margin-bottom: 14px; }
.alert.info { background: var(--forest-pale); border-color: #cfe6d7; color: var(--forest-dark); }
.check { align-items: flex-start; }
.check input { margin-top: 3px; flex: none; }
.row-end { align-items: center; flex-wrap: wrap; }
.toolbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.sel-sm { width: auto; padding: 6px 12px; border-radius: 99px; font-size: 14px; }
.chip { text-decoration: none; color: var(--ink-soft); }

/* durum etiketleri */
.st { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface2); color: var(--mute); white-space: nowrap; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.st.ok { background: var(--forest-pale); color: var(--forest); }
.st.wait { background: #eef2f7; color: #475569; }
.st.warn { background: #fdf0d0; color: #8a6510; }
.st.bad { background: #fdecea; color: var(--bad); }
@media (prefers-color-scheme: dark) { .st.wait { background: #1c2a24; color: #a9bdb3; } .st.warn { background: #2a2310; color: #f0d48a; } .st.bad { background: #2c1514; } .alert { background: #2a2310; border-color: #4a3d18; color: #f0d48a; } .alert.info { background: var(--brand-soft); border-color: #1f4a33; color: #bfe6cd; } .group-list .n.warn { background: #2a2310; color: #f0d48a; } }
.tag { display: inline-block; padding: 3px 11px; border-radius: 99px; background: var(--forest-pale); color: var(--forest-dark); font-size: 13px; font-weight: 600; }
.tag.gold { background: #fbf3dc; color: #7a5a0e; }
@media (prefers-color-scheme: dark) { .tag { color: #bfe6cd; } .tag.gold { background: #2a2310; color: #f0d48a; } }
.no { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 9px; background: var(--forest-deep); color: #fff; font-family: var(--head); font-weight: 800; font-size: 14px; box-shadow: inset 0 -2px 0 var(--gold); }

/* pano */
.kpis4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--forest), var(--gold)); opacity: .7; }
.kpi span { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.kpi b { display: block; font-family: var(--head); font-size: 30px; color: var(--ink); line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi b small { font-size: 16px; color: var(--mute); font-weight: 600; }
.kpi em { display: block; font-style: normal; font-size: 12.5px; color: var(--mute); margin-top: 4px; }
.bar { height: 7px; border-radius: 99px; background: var(--surface2); overflow: hidden; margin-top: 8px; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--forest), var(--forest-mid)); border-radius: 99px; transition: width .5s var(--ease); }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: f; display: grid; gap: 4px; }
.flow li { counter-increment: f; position: relative; padding: 10px 10px 10px 48px; border-radius: 12px; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; }
.flow li::before { content: counter(f); position: absolute; left: 8px; top: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 13px; background: var(--surface2); color: var(--mute); border: 1px solid var(--line); }
.flow li.done::before { content: '✓'; background: var(--forest); color: #fff; border-color: var(--forest); }
.flow li.now { background: #fdf6e3; }
.flow li.now::before { background: var(--gold); color: #fff; border-color: var(--gold); }
.flow li b { color: var(--ink); }
.flow li span { grid-column: 1; font-size: 13.5px; color: var(--mute); }
.flow li a { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 13px; font-weight: 600; color: var(--forest); text-decoration: none; }
.flow.plain li { grid-template-columns: 1fr; }
@media (prefers-color-scheme: dark) { .flow li.now { background: #2a2310; } }
.live-card h2 { margin-bottom: 6px; }
.live-row { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.live-row:last-child { border-bottom: 0; }
.live-row > div { flex: 1; min-width: 0; }
.live-row b { color: var(--ink); }
.live-row p { margin: 1px 0 0; font-size: 13px; color: var(--mute); overflow-wrap: anywhere; }
.live-card.wide { margin-bottom: 16px; padding-top: 10px; padding-bottom: 10px; }
.live-card.wide .live-row { align-items: center; }
.dot { flex: none; width: 11px; height: 11px; border-radius: 50%; margin-top: 6px; background: var(--line); }
.dot.on { background: var(--forest-mid); box-shadow: 0 0 0 4px rgba(37, 160, 90, .16); animation: pulse 2s infinite; }
.dot.off { background: var(--bad); }
.dot.warn { background: var(--gold-warm); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 160, 90, .45); } 70% { box-shadow: 0 0 0 9px rgba(37, 160, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 160, 90, 0); } }
.mini-list { display: grid; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.mini-row:last-child { border-bottom: 0; }
a.mini-row:hover { background: var(--forest-mist); border-radius: 10px; }
.mini-row img, .mini-row .ph { width: 64px; height: 40px; object-fit: cover; border-radius: 7px; background: var(--forest-mist); display: grid; place-items: center; flex: none; color: var(--mute); }
.mini-row .t { flex: 1; min-width: 0; display: grid; }
.mini-row .t b { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.mini-row .t em { font-style: normal; color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tablolar */
.tbl th { background: var(--surface2); padding: 11px 12px; }
.tbl td { padding: 11px 12px; }
.tbl tr[data-href] { cursor: pointer; }
.tbl td.names { max-width: 420px; color: var(--ink); font-size: 14px; }
.tbl td.act { text-align: right; white-space: nowrap; }
.tbl td.act .btn + .btn { margin-left: 6px; }
.tbl.sm th, .tbl.sm td { padding: 6px 8px; font-size: 13px; }
.dol { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.dol .bar { flex: 1; margin: 0; }
.dol span { font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; }

/* kurban detay */
.k-hero { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; background: linear-gradient(120deg, var(--surface) 60%, var(--forest-mist)); }
.k-no { flex: none; width: 112px; height: 112px; border-radius: 22px; display: grid; place-content: center; text-align: center; color: #fff; background: radial-gradient(120px 80px at 20% 0%, rgba(37, 160, 90, .45), transparent 60%), linear-gradient(160deg, var(--forest-dark), var(--forest-deep)); box-shadow: inset 0 -4px 0 var(--gold), var(--shadow-grn); }
.k-no small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; }
.k-no b { font-family: var(--head); font-size: 44px; line-height: 1; font-weight: 800; }
.k-no.sm { width: 64px; height: 64px; border-radius: 14px; }
.k-no.sm b { font-size: 26px; }
.k-no.sm small { font-size: 9px; }
.k-meta { flex: 1; min-width: 0; }
.k-meta .tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.k-meta p { margin: 10px 0 12px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.slots { display: grid; gap: 8px; }
.slot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--forest-mist); border: 1px solid #e3efe7; }
.slot .sn { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-dark); color: #fff; font-family: var(--head); font-weight: 800; box-shadow: inset 0 0 0 2px var(--gold-warm); }
.slot .sb { flex: 1; min-width: 0; display: grid; }
.slot .sb b { color: var(--ink); font-family: var(--head); }
.slot .sb span { font-size: 12.5px; color: var(--mute); }
.slot .sb a { color: var(--forest); text-decoration: none; }
.slot .niyet { font-size: 12px; font-weight: 700; color: #7a5a0e; background: #fbf3dc; padding: 2px 10px; border-radius: 99px; }
.slot.bos { background: transparent; border-style: dashed; }
.slot.bos .sn { background: var(--line); color: var(--mute); box-shadow: none; }
.icon-btn.sm { width: 30px; height: 30px; font-size: 15px; }
@media (prefers-color-scheme: dark) { .slot { border-color: var(--line); } .slot .niyet { background: #2a2310; color: #f0d48a; } }
.kv { margin-bottom: 14px; }
.kv video { width: 100%; border-radius: 12px; background: #000; max-height: 340px; display: block; }
.kv-m { margin-top: 6px; font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kv-m a { color: var(--forest); }

/* kartlar */
.kart-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tips { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; display: grid; gap: 6px; }
.kart-prev { position: relative; width: 100%; aspect-ratio: 210 / 297; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.kart-prev iframe { position: absolute; left: 0; top: 0; width: 794px; height: 1123px; border: 0; transform-origin: 0 0; }

/* yükleme */
.drop { display: grid; place-items: center; text-align: center; gap: 6px; padding: 44px 20px; border: 2px dashed #b9d6c4; border-radius: 18px; background: var(--forest-mist); cursor: pointer; margin-bottom: 18px; transition: background .2s, border-color .2s; }
.drop:hover, .drop.over { background: var(--forest-pale); border-color: var(--forest); }
.drop input { display: none; }
.drop b { font-family: var(--head); font-size: 18px; color: var(--ink); }
.drop span { color: var(--mute); font-size: 14px; }
.drop-ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff; font-size: 26px; box-shadow: var(--shadow-grn), inset 0 -3px 0 var(--gold); }
.drop.small { padding: 18px; margin-bottom: 10px; }
.drop.small b { font-size: 15px; }
@media (prefers-color-scheme: dark) { .drop { border-color: #2a4a38; } }
.up-list { display: grid; gap: 8px; max-height: 62vh; overflow-y: auto; }
.up { display: grid; grid-template-columns: minmax(0, 1fr) 120px 110px; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.up .n { display: grid; min-width: 0; }
.up .n b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 600; }
.up .bar { margin: 0; }
.up .s { text-align: right; font-size: 13px; font-weight: 600; color: var(--mute); }
.up .s a { color: var(--forest); text-decoration: none; }
.up.tamam .bar i { background: var(--forest); }
.up.hata .bar i { background: var(--bad); }

/* video ızgarası */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.vt { text-align: left; padding: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; overflow: hidden; cursor: pointer; font: inherit; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.vt:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.vt .th { position: relative; aspect-ratio: 16 / 9; background: var(--forest-deep); display: grid; place-items: center; color: rgba(255, 255, 255, .6); font-size: 28px; }
.vt .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt .th em { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .6); padding: 1px 7px; border-radius: 6px; }
.vt .th .st { position: absolute; left: 8px; top: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.vt .cap { padding: 10px 12px 12px; display: grid; gap: 3px; }
.vt .cap b { font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt .cap b .no { min-width: 30px; height: 22px; font-size: 12px; border-radius: 6px; }
.vt .cap span { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* diyalog */
.dlg { width: min(520px, calc(100% - 24px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.dlg.xl { width: min(1020px, calc(100% - 24px)); }
.dlg .row-end { margin-top: 6px; }
.dlg .prev { margin-top: 10px; max-height: 320px; overflow: auto; }
.vd { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.vd-player video, .vd-player .ph { width: 100%; border-radius: 12px; background: #000; max-height: 70vh; display: grid; place-items: center; color: #9fb5a9; aspect-ratio: 16 / 9; }
.vd-info h2 { font-size: 16px; overflow-wrap: anywhere; margin-bottom: 6px; }
.vd-info .aciklama { font-size: 13.5px; color: var(--ink-soft); background: var(--surface2); padding: 8px 10px; border-radius: 10px; }
.kanit { display: grid; grid-template-columns: 82px 1fr; gap: 6px 10px; font-size: 13px; margin: 10px 0; }
.kanit dt { color: var(--mute); font-weight: 600; }
.kanit dd { margin: 0; overflow-wrap: anywhere; }
.vk { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); margin: 10px 0; }
.vk b { color: var(--ink); }
.vk a { color: var(--forest); }
.adaylar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.assign .inline { display: flex; gap: 8px; }
.assign .inline input { flex: 1; }
.wa-prev { white-space: pre-wrap; font: 14px/1.5 Inter, sans-serif; background: #e7f6dc; color: #102a12; padding: 12px 14px; border-radius: 12px 12px 12px 2px; }
.phone { background: #efe7dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23e3d9cc' stroke-width='1'/%3E%3C/svg%3E"); border-radius: 18px; padding: 18px; min-height: 280px; }
.bubble { background: #dcf8c6; color: #102a12; padding: 10px 12px; border-radius: 12px 12px 12px 3px; white-space: pre-wrap; font-size: 14px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); max-width: 92%; overflow-wrap: anywhere; }
.toast.bad { border-left-color: var(--bad); background: #3b1210; }
.tabs { margin-bottom: 18px; }
.qr { display: block; margin: 10px 0; }

@media (max-width: 1100px) { .grid-2, .kart-grid, .vd { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .search { margin-left: 0; }
  .wa-pill span { display: none; }
  .cols3 { grid-template-columns: 1fr 1fr; }
  .k-hero { flex-direction: column; align-items: flex-start; }
  .up { grid-template-columns: minmax(0, 1fr) 90px; }
  .up .bar { display: none; }
  .tbl td.names { max-width: 220px; }
}
@media (max-width: 520px) { .cols2, .cols3 { grid-template-columns: 1fr; } .page-head .btn { flex: 1; } }
