/* Prademi Yönetim Paneli V6 – genel şablon (ana siteyle aynı palet: petrol mavisi yan menü ve üst bar, sarı vurgu; kırmızı yalnızca uyarılarda) */
:root {
  --a-bg: #f6f3ea;
  --a-surface: #ffffff;
  --a-surface-2: #fbf9f3;
  --a-ink: #10303b;
  --a-ink-2: #2f4b55;
  --a-muted: #5d7079;
  --a-line: #e6e0d0;
  --a-red: #d32f2f;
  --a-red-2: #b71c1c;
  --a-red-soft: #fdecec;
  --a-green: #16a34a;
  --a-green-soft: #e7f6ec;
  --a-blue: #0b5a78;
  --a-blue-soft: #e2eff3;
  --a-teal: #0f766e;
  --a-teal-soft: #e2f3f1;
  --a-orange: #c2620a;
  --a-orange-soft: #fdf0e1;
  --a-side: #0f4d61;
  --a-side-2: #0a3442;
  --a-acc: #0f4d61;
  --a-acc-2: #0b3d4f;
  --a-acc-soft: #e2eff3;
  --a-acc-line: #7fb3c4;
  --a-gold: #ffe08a;
  --a-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.06);
  --a-radius: 14px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --a-bg: #0f1218;
  --a-surface: #171b24;
  --a-surface-2: #1d222d;
  --a-ink: #eceff5;
  --a-ink-2: #cfd4df;
  --a-muted: #98a0b2;
  --a-line: #2a303d;
  --a-red-soft: rgba(211,47,47,.18);
  --a-green-soft: rgba(22,163,74,.18);
  --a-blue-soft: rgba(11,90,120,.25);
  --a-acc-soft: rgba(15,77,97,.3);
  --a-acc-line: #3f8aa0;
  --a-teal-soft: rgba(15,118,110,.22);
  --a-orange-soft: rgba(194,98,10,.2);
  --a-shadow: 0 1px 2px rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--a-bg); color: var(--a-ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--a-blue); }
h1, h2, h3, h4, p { margin: 0; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }

/* ---------------------------------------------------------- kabuk */
.a-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.a-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--a-side), var(--a-side-2)); color: #d8eaf0; }
.a-brand { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 18px; background: linear-gradient(90deg, #0a3442, #0b3d4f); border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; flex: none; }
.a-brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; padding: 3px; background: rgba(255,255,255,.1); }
.a-brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; opacity: .7; margin-top: -2px; }
.a-nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.a-navlabel { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.4); padding: 14px 12px 6px; }
.a-navitem { width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 1px 0; border: 0; border-radius: 10px; background: transparent; color: #d3e6ec; font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; }
.a-navitem:hover { background: rgba(255,255,255,.07); color: #fff; }
.a-navitem.on { background: #ffe08a; color: #0b3d4f; font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
/* yeni üye / bekleyen mesaj sayacı: daire yok, yalnızca +N yazısı; sıfırken hiç görünmez */
.a-navitem em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: #ffe08a; background: none; }
.a-navitem em[hidden], .a-navitem em:empty { display: none; }
.a-navitem.on em { color: #0b3d4f; }
.a-side-foot { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.55); }

.a-main { min-width: 0; display: flex; flex-direction: column; }
.a-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 26px; background: linear-gradient(90deg, #0b3d4f, #0f4d61 60%, #13627a); color: #fff; box-shadow: 0 2px 12px rgba(11,61,79,.25); }
.a-top h1 { font-size: 18px; font-weight: 700; }
.a-top-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.a-iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.a-iconbtn:hover { background: rgba(255,255,255,.2); }
.a-user { display: flex; align-items: center; gap: 10px; }
.a-user strong { display: block; font-size: 13px; line-height: 1.2; }
.a-user small { display: block; font-size: 11px; opacity: .75; text-align: right; }
.a-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #ffe08a; color: #0b3d4f; font-weight: 800; position: relative; }
.a-avatar::after { content: ''; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #0f4d61; }
.a-burger { display: none; }
.a-content { flex: 1; padding: 24px 26px 40px; max-width: 1500px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.a-foot { padding: 16px 26px; font-size: 12px; color: var(--a-muted); border-top: 1px solid var(--a-line); }

/* ---------------------------------------------------------- parçalar */
.a-card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-radius); box-shadow: var(--a-shadow); min-width: 0; }
.a-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--a-line); }
.a-card-head h2 { font-size: 16px; font-weight: 700; }
.a-card-head p { color: var(--a-muted); font-size: 12.5px; margin-top: 2px; }
.a-card-body { padding: 18px 20px; }
.a-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.a-pagehead h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.a-pagehead p { color: var(--a-muted); margin-top: 3px; }
.a-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.a-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #13627a, var(--a-acc-2)); color: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none; box-shadow: 0 4px 12px rgba(15,77,97,.25); }
.a-btn:hover:not(:disabled) { filter: brightness(1.05); }
.a-btn:disabled { opacity: .5; cursor: not-allowed; }
.a-btn.green { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 4px 12px rgba(22,163,74,.25); }
.a-btn.blue { background: linear-gradient(135deg, #4c6ef5, #364fc7); box-shadow: 0 4px 12px rgba(59,91,219,.25); }
.a-btn.ghost { background: var(--a-surface); color: var(--a-ink-2); border: 1px solid var(--a-line); box-shadow: none; }
.a-btn.ghost:hover:not(:disabled) { background: var(--a-surface-2); }
.a-btn.orange { background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: none; }
.a-btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.a-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border: 0; border-radius: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; background: var(--a-surface-2); color: var(--a-ink-2); }
.a-chip:hover:not(:disabled) { filter: brightness(.96); }
.a-chip:disabled { opacity: .45; cursor: not-allowed; }
.a-chip.blue { background: var(--a-blue-soft); color: var(--a-blue); }
.a-chip.red { background: var(--a-red-soft); color: var(--a-red); }
.a-chip.teal { background: var(--a-teal-soft); color: var(--a-teal); }
.a-chip.orange { background: var(--a-orange-soft); color: var(--a-orange); }
.a-chip.green { background: var(--a-green-soft); color: var(--a-green); }
.a-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.a-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--a-surface-2); color: var(--a-muted); white-space: nowrap; }
.a-badge.green { background: var(--a-green-soft); color: var(--a-green); }
.a-badge.red { background: var(--a-red-soft); color: var(--a-red); }
.a-badge.blue { background: var(--a-blue-soft); color: var(--a-blue); }
.a-badge.orange { background: var(--a-orange-soft); color: var(--a-orange); }
.a-muted { color: var(--a-muted); }
.a-small { font-size: 12px; }

.a-input, .a-select, .a-textarea { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--a-line); border-radius: 10px; background: var(--a-surface); color: var(--a-ink); outline: none; }
.a-textarea { height: auto; min-height: 100px; padding: 10px 12px; resize: vertical; }
.a-input:focus, .a-select:focus, .a-textarea:focus, .a-editor-area:focus { border-color: var(--a-acc-line); box-shadow: 0 0 0 3px rgba(15,77,97,.16); }
.a-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--a-ink-2); min-width: 0; }
.a-field.wide { grid-column: 1 / -1; }
.a-field small { font-weight: 400; color: var(--a-muted); }
.a-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.a-note { padding: 12px 14px; border-radius: 10px; background: var(--a-acc-soft); color: var(--a-acc-2); font-size: 12.5px; line-height: 1.6; }
:root[data-theme='dark'] .a-note { background: rgba(99,102,241,.15); color: #c7d2fe; }
.a-note.warn { background: var(--a-orange-soft); color: var(--a-orange); }
.a-search { position: relative; }
.a-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--a-muted); }
.a-search .a-input { padding-left: 36px; }

/* tablo */
.a-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; }
.a-tools .grow { flex: 1; }
.a-tools .a-select.size { width: 76px; }
.a-tools .a-search { width: min(300px, 100%); }
.a-scroll { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; }
.a-table th { text-align: left; padding: 11px 14px; background: var(--a-surface-2); color: var(--a-muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; border-top: 1px solid var(--a-line); border-bottom: 1px solid var(--a-line); white-space: nowrap; }
.a-table td { padding: 12px 14px; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
.a-table tr:hover td { background: color-mix(in srgb, var(--a-surface-2) 60%, transparent); }
.a-table td.num { color: var(--a-muted); font-weight: 600; width: 64px; }
.a-table td.actions { text-align: right; width: 1%; white-space: nowrap; }
.a-table td.check, .a-table th.check { width: 40px; }
.a-table td.actions .a-chips { flex-wrap: nowrap; }
@media (max-width: 1100px) { .a-table td.actions .a-chips { flex-wrap: wrap; min-width: 150px; } }
.a-table input[type='checkbox'] { width: 17px; height: 17px; accent-color: var(--a-acc); }
.a-table .clip { max-width: 520px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.a-blank { text-align: center; padding: 30px !important; color: var(--a-muted); }
.a-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 20px; }
.a-pager span { color: var(--a-muted); font-size: 12.5px; }
.a-pages { display: flex; gap: 6px; flex-wrap: wrap; }
.a-pages button { min-width: 36px; height: 34px; padding: 0 10px; border: 1px solid var(--a-line); border-radius: 8px; background: var(--a-surface); color: var(--a-ink-2); cursor: pointer; font-weight: 600; }
.a-pages button.on { background: var(--a-acc); border-color: var(--a-acc); color: #fff; }
.a-pages button:disabled { opacity: .45; cursor: default; }

/* panel */
.a-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.a-welcome h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.a-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.a-stat { display: flex; align-items: center; gap: 14px; padding: 18px; }
.a-stat > span { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.a-stat small { display: block; color: var(--a-ink-2); font-weight: 600; font-size: 12.5px; }
.a-stat strong { font-size: 26px; font-weight: 800; line-height: 1.15; }
.a-stat.link { cursor: pointer; }
.a-stat > div { min-width: 0; }
.a-stat small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-blue { background: var(--a-blue-soft); color: var(--a-blue); }
.t-green { background: var(--a-green-soft); color: var(--a-green); }
.t-red { background: var(--a-red-soft); color: var(--a-red); }
.t-orange { background: var(--a-orange-soft); color: var(--a-orange); }
.t-teal { background: var(--a-teal-soft); color: var(--a-teal); }
.a-chart { width: 100%; height: 260px; display: block; }
.a-chart .grid { stroke: var(--a-line); stroke-width: 1; }
.a-chart .area { fill: url(#aArea); }
.a-chart .line { fill: none; stroke: #0f4d61; stroke-width: 2.5; }
.a-chart .dot { fill: var(--a-surface); stroke: #0f4d61; stroke-width: 2; }
.a-chart text { fill: var(--a-muted); font-size: 11px; }
.a-bars { display: flex; flex-direction: column; gap: 9px; }
.a-bar { display: grid; grid-template-columns: minmax(120px, 38%) 1fr 44px; gap: 10px; align-items: center; font-size: 12.5px; }
.a-bar span:first-child { color: var(--a-ink-2); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-bar i { display: block; height: 12px; border-radius: 4px; background: linear-gradient(90deg, #0f4d61, #3f8aa0); min-width: 2px; }
.a-bar b { font-size: 12px; color: var(--a-muted); }
.a-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.a-quick button { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--a-line); background: var(--a-surface-2); cursor: pointer; font-weight: 600; text-align: left; }
.a-quick button:hover { border-color: var(--a-acc-line); }
.a-quick button span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }

/* modal */
.a-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(15,10,14,.55); }
.a-modal { width: min(620px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--a-surface); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); overflow: hidden; }
.a-modal.wide { width: min(980px, 100%); }
.a-modal.xl { width: min(1180px, 100%); }
.a-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--a-line); background: var(--a-surface-2); }
.a-modal-head h3 { font-size: 16px; font-weight: 700; }
.a-close { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--a-line); border-radius: 9px; background: var(--a-surface); color: var(--a-ink-2); cursor: pointer; }
.a-modal-body { padding: 20px 22px; overflow: auto; }
.a-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--a-line); }
.a-error { padding: 10px 12px; border-radius: 9px; background: var(--a-red-soft); color: var(--a-red); font-weight: 600; font-size: 13px; }
.a-confirm { text-align: center; padding: 28px 24px 8px; }
.a-confirm .ico { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; border: 3px solid #fcd9a8; color: #f59e0b; }
.a-confirm .ico svg { width: 28px; height: 28px; }

/* paket seçici (kurum gruplu) */
.a-picker { border: 1px solid var(--a-line); border-radius: 12px; max-height: 380px; overflow: auto; }
.a-picker-group > div { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; background: var(--a-surface-2); font-weight: 700; font-size: 13.5px; border-bottom: 1px solid var(--a-line); position: sticky; top: 0; }
.a-picker-group > div button { border: 0; background: none; color: var(--a-blue); font-weight: 600; font-size: 12px; cursor: pointer; }
.a-picker label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--a-line); font-weight: 500; cursor: pointer; }
.a-picker label:hover { background: var(--a-surface-2); }
.a-picker input { width: 17px; height: 17px; accent-color: var(--a-blue); }

/* editör */
.a-editor { border: 1px solid var(--a-line); border-radius: 10px; overflow: hidden; background: var(--a-surface); }
.a-editor-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--a-line); background: var(--a-surface-2); }
.a-editor-bar button { min-width: 32px; height: 30px; padding: 0 7px; border: 0; border-radius: 6px; background: transparent; color: var(--a-ink-2); cursor: pointer; font-weight: 700; display: inline-grid; place-items: center; }
.a-editor-bar button:hover, .a-editor-bar button.on { background: var(--a-line); }
.a-editor-bar .sep { width: 1px; margin: 4px 4px; background: var(--a-line); }
.a-editor-bar .sw { width: 18px; height: 18px; min-width: 18px; padding: 0; border-radius: 50%; margin: 6px 2px; border: 2px solid var(--a-surface); box-shadow: 0 0 0 1px var(--a-line); }
.a-editor-area { min-height: 150px; max-height: 380px; overflow: auto; padding: 12px 14px; outline: none; line-height: 1.65; font-weight: 400; }
.a-editor-area:empty::before { content: attr(data-placeholder); color: var(--a-muted); }
.a-editor-src { width: 100%; min-height: 150px; border: 0; padding: 12px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--a-surface); outline: none; resize: vertical; }
.a-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.a-option { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--a-ink-2); }
.a-option > div { display: flex; align-items: center; gap: 10px; }
.a-option label.correct { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--a-muted); cursor: pointer; white-space: nowrap; }
.a-option input[type='radio'] { width: 20px; height: 20px; accent-color: var(--a-blue); }
.a-option .rm { border: 0; background: none; color: var(--a-red); cursor: pointer; padding: 4px; }

/* soru önizleme ve teste soru ekleme */
.a-qprev { display: flex; flex-direction: column; gap: 10px; }
.a-qprev .q { font-size: 15px; line-height: 1.7; }
.a-qprev .opt { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--a-line); display: flex; gap: 10px; }
.a-qprev .opt.ok { background: var(--a-green-soft); border-color: #86efac; color: #166534; font-weight: 600; }
:root[data-theme='dark'] .a-qprev .opt.ok { color: #86efac; }
.a-qprev .opt b { min-width: 22px; }
.a-qprev .exp { padding: 12px 14px; border-radius: 10px; background: var(--a-surface-2); border: 1px solid var(--a-line); }
.a-qprev .exp small { display: block; font-weight: 700; color: var(--a-muted); margin-bottom: 4px; }
.a-builder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 20px; }
.a-builder h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.a-builder-list { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; max-height: calc(100vh - 330px); min-height: 300px; overflow: auto; padding-right: 4px; }
.a-qcard { padding: 18px 20px; border-radius: 12px; background: #eef2fe; color: #3451b2; display: flex; flex-direction: column; gap: 9px; }
.a-qcard.pool { background: var(--a-surface-2); color: var(--a-ink-2); border: 1px solid var(--a-line); }
:root[data-theme='dark'] .a-qcard { background: rgba(59,91,219,.14); color: #c5d0fa; }
.a-qcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.a-qcard .opt { line-height: 1.5; }
.a-qcard .opt.ok { padding: 9px 12px; border-radius: 8px; background: #d9f2e3; color: #11743b; }
:root[data-theme='dark'] .a-qcard .opt.ok { background: rgba(34,197,94,.18); color: #86efac; }
.a-progress { height: 8px; border-radius: 99px; background: var(--a-line); overflow: hidden; min-width: 160px; }
.a-progress i { display: block; height: 100%; background: linear-gradient(90deg, #0f4d61, #22c55e); }
.a-subject-row strong { display: block; }
.a-subject-row small { color: var(--a-muted); }
.a-res-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--a-line); }
.a-res-row:last-child { border-bottom: 0; }
.a-res-row > span:nth-child(2) { flex: 1; min-width: 0; }
.a-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px; border: 2px dashed var(--a-line); border-radius: 12px; text-align: center; cursor: pointer; color: var(--a-muted); }
.a-drop.on, .a-drop:hover { border-color: var(--a-acc-line); background: var(--a-acc-soft); }

/* giriş */
.a-login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1.4px) 0 0 / 22px 22px, radial-gradient(circle at 20% 10%, #13627a, transparent 45%), linear-gradient(135deg, #0a3442, #0f4d61); }
.a-login form { width: min(420px, 100%); background: var(--a-surface); border-radius: 22px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.a-login .brand { display: flex; align-items: center; gap: 12px; }
.a-login .brand img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; padding: 4px; background: #0f4d61; }
.a-login h1 { font-size: 24px; }

/* bildirim (toast) */
.a-toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; max-width: min(440px, calc(100vw - 40px)); padding: 13px 16px; border-radius: 12px; background: #1b2030; color: #fff; box-shadow: 0 14px 36px rgba(0,0,0,.3); font-weight: 500; }
.a-toast.err { background: #b71c1c; }
.a-loading { padding: 40px; text-align: center; color: var(--a-muted); }

@media (max-width: 1200px) {
  .a-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .a-shell { grid-template-columns: 1fr; }
  .a-side { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 270px; transform: translateX(-102%); transition: transform .2s; }
  .a-shell.menu .a-side { transform: none; }
  .a-shell.menu::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }
  .a-burger { display: grid; }
  .a-top { padding: 0 14px; }
  .a-user > div { display: none; }
  .a-content { padding: 16px 14px 32px; }
  .a-grid-2, .a-builder { grid-template-columns: 1fr; }
  .a-builder-list { max-height: none; }
}
@media (max-width: 640px) {
  .a-stats { grid-template-columns: 1fr; }
  .a-stat strong { font-size: 22px; }
  .a-welcome h2 { font-size: 22px; }
  .a-form, .a-options { grid-template-columns: 1fr; }
  .a-bar { grid-template-columns: minmax(90px, 40%) 1fr 36px; }
  .a-tools .a-search { width: 100%; }
  .a-table .hide-sm { display: none; }
  .a-chips { justify-content: flex-start; }
}

/* ===================================================================== V6.2 */
/* mesajlar */
.a-ticket-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--a-ink-2); }
.a-thread { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; padding: 4px; }
.a-msg { max-width: 85%; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; }
.a-msg small { display: block; font-size: 11px; color: var(--a-muted); margin-bottom: 3px; }
.a-msg p { white-space: pre-wrap; margin: 0; }
.a-msg.user { align-self: flex-start; background: var(--a-surface-2); border: 1px solid var(--a-line); }
.a-msg.staff { align-self: flex-end; background: var(--a-green-soft); }

/* paket vitrini */
.a-showcase { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 22px; }
.a-pkg { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; border: 1px solid var(--a-line); background: var(--a-surface); box-shadow: var(--a-shadow); }
.a-pkg.featured { border: 2px solid var(--a-acc); }
.a-pkg-badge { position: absolute; top: -12px; right: 18px; padding: 4px 12px; border-radius: 99px; background: #ffe08a; color: #3a2d05; font-size: 11.5px; font-weight: 800; }
.a-pkg small { color: var(--a-muted); }
.a-pkg h3 { font-size: 18px; }
.a-pkg p { color: var(--a-muted); font-size: 13px; }
.a-pkg-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.a-pkg-price s { color: var(--a-muted); }
.a-pkg-price b { font-size: 28px; }
.a-pkg-price span { color: var(--a-muted); font-size: 13px; }
.a-pkg ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.a-pkg li { display: flex; gap: 6px; align-items: flex-start; }
.a-pkg li svg { color: var(--a-green); margin-top: 2px; }
.a-pkg li.no { color: var(--a-muted); }
.a-pkg li.no svg { color: var(--a-red); }

/* bilgi kartı tasarımcısı */
.a-designer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 22px; }
.a-designer-preview { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; align-self: start; }
.a-flash { position: relative; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 34px 22px 30px; border-radius: 18px; color: #fff; background: linear-gradient(160deg, #13627a, #0b3d4f); box-shadow: 0 12px 28px rgba(16,24,40,.2); overflow: hidden; }
.a-flash.back { background: linear-gradient(160deg, #14532d, #0f2a1d); }
.a-flash em { position: absolute; top: 14px; left: 14px; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.16); }
.a-flash strong { line-height: 1.5; max-width: 100%; word-break: break-word; }
.a-flash small { position: absolute; bottom: 10px; font-size: 11px; opacity: .65; }
.a-flash img { max-width: 70%; max-height: 110px; object-fit: contain; border-radius: 10px; }
.a-flash .emo { font-size: 32px; line-height: 1; }
.a-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.a-swatches button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--a-surface); box-shadow: 0 0 0 1px var(--a-line); cursor: pointer; }
.a-swatches button.on { box-shadow: 0 0 0 3px var(--a-acc); }
.a-swatches input[type='color'] { width: 40px; height: 34px; border: 1px solid var(--a-line); border-radius: 10px; padding: 2px; background: var(--a-surface); cursor: pointer; }
.a-card-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.a-card-btns span { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--a-line); font-size: 11.5px; font-weight: 600; color: var(--a-ink-2); background: var(--a-surface-2); }
.a-mini-card { display: inline-block; max-width: 360px; padding: 8px 12px; border-radius: 10px; background: linear-gradient(160deg, #13627a, #0b3d4f); color: #fff; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 960px) {
  .a-showcase, .a-designer { grid-template-columns: 1fr; }
  .a-designer-preview { position: static; }
}

.a-input[type='color'] { padding: 4px; cursor: pointer; }

/* ortak yazı tipi: tüm öğeler */
body *:not(svg):not(svg *):not(pre):not(code):not(.a-editor-src) { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif; }

/* V6.3: sanal pos ve sosyal moderasyon */
.a-btn.teal { background: linear-gradient(135deg, #14b8a6, #0f766e); box-shadow: 0 4px 12px rgba(15,118,110,.25); }
.a-copyrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.a-copyrow small { min-width: 190px; font-weight: 700; }
.a-copyrow code { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 8px; background: var(--a-surface); color: var(--a-ink); font-size: 12px; overflow-wrap: anywhere; border: 1px solid var(--a-line); }
.a-switchfield { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
.a-switchfield > small { grid-column: 1 / -1; }
.a-switch { position: relative; width: 46px; height: 26px; display: inline-block; }
.a-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.a-switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--a-line); transition: background .2s; }
.a-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.a-switch input:checked + i { background: var(--a-green); }
.a-switch input:checked + i::after { transform: translateX(20px); }
.a-switch input:focus-visible + i { outline: 2px solid var(--a-blue); outline-offset: 2px; }
.a-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.a-kv > div { padding: 10px 12px; border-radius: 10px; background: var(--a-surface-2); }
.a-kv small { display: block; color: var(--a-muted); font-size: 11.5px; }
.a-kv b { font-size: 14px; overflow-wrap: anywhere; }
.a-table .clip2 { max-width: 460px; font-size: 13px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.a-red { color: var(--a-red); }
@media (max-width: 720px) { .a-kv { grid-template-columns: 1fr; } .a-copyrow small { min-width: 0; } }
.a-table td.num { white-space: nowrap; }
.a-stat strong { white-space: nowrap; }
.a-form > .a-note.wide, .a-form > [data-result] { grid-column: 1 / -1; }

/* V6.5: bilgi kartı tasarımcısı (tek yüz, şablonlu) */
.a-designer2 { grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); }
.a-tplgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.a-tplgrid button { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; height: 74px; padding: 10px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; text-align: left; box-shadow: 0 4px 10px rgba(11, 26, 63, .12); transition: transform .15s; }
.a-tplgrid button:hover { transform: translateY(-2px); }
.a-tplgrid button.on { border-color: #d7263d; box-shadow: 0 0 0 3px rgba(215, 38, 61, .25); }
.a-tplgrid button span { opacity: .9; }
.a-tplgrid button b { font-size: 11.5px; font-weight: 800; }
.a-icongrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin-top: 6px; max-height: 176px; overflow: auto; padding: 2px; }
.a-icongrid button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-surface); color: var(--a-ink-2); cursor: pointer; }
.a-icongrid button small { font-size: 10px; font-weight: 600; color: var(--a-muted, #6b7385); }
.a-icongrid button:hover { border-color: var(--a-acc); color: var(--a-acc); }
.a-icongrid button.on { background: linear-gradient(135deg, #13627a, #0b3d4f); border-color: #0b3d4f; color: #fff; }
.a-icongrid button.on small { color: rgba(255, 255, 255, .85); }
.a-gradrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 6px; padding: 10px; border-radius: 12px; border: 1px dashed var(--a-line); }
.a-gradrow label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 600; }
.a-gradrow input[type='color'] { width: 64px; height: 36px; padding: 2px; }
.a-gradrow .a-select { min-width: 150px; height: 36px; }
.a-gradcheck { flex-direction: row !important; align-items: center; gap: 6px !important; height: 36px; }
.a-card-btns span.b { background: linear-gradient(135deg, #13627a, #0b3d4f); color: #fff; border-color: #0b3d4f; }
.a-card-btns span.r { background: linear-gradient(135deg, #f05a67, #a3122b); color: #fff; border-color: #a3122b; }
.a-ic-compactwrap { max-width: 420px; }

/* kart önizlemesi (öğrenci tarafındaki .pp-ic ile aynı görünüm) */
.a-ic { --ic-accent: #fde68a; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; min-height: 330px; padding: 20px 22px 16px; border-radius: 22px; color: #fff; text-align: left; box-shadow: 0 20px 40px rgba(11, 26, 63, .25), inset 0 1px 0 rgba(255, 255, 255, .18); }
.a-ic.compact { min-height: 0; padding: 12px 14px 10px; border-radius: 16px; box-shadow: 0 8px 18px rgba(11, 26, 63, .2); }
.a-ic::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.a-ic.pat-grid::before { background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 22px 22px; opacity: .07; }
.a-ic.pat-lines::before { background-image: repeating-linear-gradient(180deg, transparent 0 29px, currentColor 29px 30px); opacity: .1; }
.a-ic.pat-lines.tpl-sinav::after { content: ''; position: absolute; left: 38px; top: 0; bottom: 0; width: 2px; background: rgba(215, 38, 61, .4); z-index: -1; }
.a-ic.pat-dots::before { background-image: radial-gradient(currentColor 1.2px, transparent 1.4px); background-size: 18px 18px; opacity: .12; }
.a-ic.tpl-postit { border-radius: 4px 4px 24px 4px; }
.a-ic.tpl-postit::after { content: ''; position: absolute; top: -2px; left: 50%; width: 80px; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 255, 255, .5); }
.a-ic-wm { position: absolute; right: -14px; bottom: -24px; z-index: -1; display: flex; flex-direction: column; align-items: flex-end; line-height: .85; opacity: .08; pointer-events: none; transform: rotate(-12deg); }
.a-ic-wm b { font-size: 190px; font-weight: 900; font-family: Georgia, "Times New Roman", serif; }
.a-ic-wm i { font-style: normal; font-size: 26px; font-weight: 900; letter-spacing: .3em; margin-top: -8px; margin-right: 22px; }
.a-ic.compact .a-ic-wm b { font-size: 110px; } .a-ic.compact .a-ic-wm i { font-size: 14px; }
.a-ic-deco { position: absolute; z-index: -1; opacity: .16; pointer-events: none; }
.a-ic-deco.d1 { top: 52px; right: 24px; transform: rotate(14deg); } .a-ic-deco.d2 { bottom: 64px; left: 18px; transform: rotate(-12deg); } .a-ic-deco.d3 { top: 40%; left: 46%; opacity: .1; }
.a-ic.compact .a-ic-deco.d1 { top: 38px; right: 14px; } .a-ic.compact .a-ic-deco.d2 { bottom: 40px; left: 10px; }
.a-ic-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.a-ic-label { display: inline-flex; padding: 5px 11px; border-radius: 99px; font-size: 10.5px; font-weight: 900; letter-spacing: .16em; background: color-mix(in srgb, currentColor 14%, transparent); border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.a-ic-count { font-size: 20px; font-weight: 900; font-family: Georgia, serif; font-style: italic; } .a-ic-count small { font-size: 12px; opacity: .65; }
.a-ic-brand { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; opacity: .7; }
.a-ic-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px 4px; }
.a-ic.al-center .a-ic-body { align-items: center; text-align: center; }
.a-ic.compact .a-ic-body { padding: 8px 2px; gap: 6px; }
.a-ic-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--ic-accent); background: color-mix(in srgb, currentColor 10%, transparent); border: 1.5px solid color-mix(in srgb, var(--ic-accent) 55%, transparent); transform: rotate(-4deg); }
.a-ic-icon em { font-style: normal; font-size: 28px; }
.a-ic.compact .a-ic-icon { width: 38px; height: 38px; border-radius: 12px; }
.a-ic h3 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.a-ic.sz-sm h3 { font-size: 17px; } .a-ic.sz-lg h3 { font-size: 26px; } .a-ic.compact h3 { font-size: 15px; }
.a-ic p { margin: 0; font-size: 13.5px; line-height: 1.55; opacity: .88; white-space: pre-line; overflow-wrap: anywhere; }
.a-ic.compact p { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-ic-img { max-width: 100%; max-height: 140px; border-radius: 12px; object-fit: contain; }
.a-ic-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, currentColor 25%, transparent); }
.a-ic-site { font-size: 10px; font-weight: 900; letter-spacing: .18em; opacity: .65; }
.a-ic-next { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 11px; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); background: color-mix(in srgb, currentColor 12%, transparent); font-weight: 800; font-size: 12.5px; }
.a-ic.compact .a-ic-next { height: 26px; font-size: 11.5px; }
@media (max-width: 1100px) { .a-designer2 { grid-template-columns: 1fr; } .a-tplgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.a-ic.tpl-sinav { padding-left: 54px; } .a-ic.tpl-sinav.compact { padding-left: 48px; }

:root[data-theme='dark'] .a-note:not(.warn) { color: #a9d6e3; }
