/* ==========================================================================
   Menuz customer panel: account side (Ayarlar, Faturalama, Destek, Özel Ayarlar, API).
   Light theme tokens come from panel-polish.css (body.panel-light).
   Brand: green #0f7b5a (actions), saffron #f2a93b (small accents), ink #17140f.
   ========================================================================== */
.acc-page, .bz-page, .api-page, .tk-page, .tk-modal, .acb-page, .acc-toast {
    --acc-green: #0f7b5a;
    --acc-green-2: #12946c;
    --acc-green-soft: #eaf5f0;
    --acc-saffron: #f2a93b;
    --acc-saffron-soft: #fdf3e2;
    --acc-red: #c02626;
    --acc-red-soft: #fdf0f0;
    --acc-ink: #17140f;
    --acc-line: rgba(23, 20, 15, .09);
    --acc-ease: cubic-bezier(.22, .61, .36, 1);
    --acc-spring: cubic-bezier(.34, 1.56, .64, 1);
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- shared atoms ---------- */
.acc-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--bg3); color: var(--text2); }
.acc-chip .icon { font-size: 13px; }
.acc-chip--brand { background: var(--acc-green-soft); color: var(--acc-green); }
.acc-chip--ok { background: #e6f4ec; color: #137a4b; }
.acc-chip--warn { background: var(--acc-saffron-soft); color: #9a5b00; }
.acc-chip--err { background: var(--acc-red-soft); color: var(--acc-red); }
.acc-chip--muted { background: var(--bg3); color: var(--text3); }
.acc-chip--info { background: #eaf1fb; color: #2b5ea8; }
.acc-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.acc-chip--warn .acc-dot { animation: accPulse 1.8s ease-in-out infinite; }
@keyframes accPulse { 50% { opacity: .35; } }
.acc-req { color: var(--acc-red); font-weight: 700; }
.acc-opt { margin-left: 4px; font-size: 11.5px; font-weight: 500; color: var(--text3); }
.acc-hint { display: flex; gap: 8px; margin: -4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text3); }
.acc-hint .icon { flex: none; margin-top: 2px; font-size: 14px; }
.acc-field-msg { margin: 6px 0 0; font-size: 12px; color: var(--acc-red); }
.acc-field-msg[hidden] { display: none; }
.acc-textarea { min-height: 72px !important; resize: vertical; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.acc-narrow { max-width: calc(50% - 8px); }
@media (max-width: 640px) { .acc-grid { grid-template-columns: 1fr; } .acc-narrow { max-width: none; } }

/* ---------- cards ---------- */
.acc-card { padding: 0; overflow: hidden; scroll-margin-top: 80px; }
.acc-card__head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px 18px; border-bottom: 1px solid var(--acc-line); }
.acc-card__ico { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--acc-green-soft); color: var(--acc-green); font-size: 19px; }
.acc-card__title { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.01em; color: var(--text); }
.acc-card__sub { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--text3); }
.acc-card__badge { margin-left: auto; }
.acc-form { padding: 20px 24px 0; }
.acc-card__body { padding: 20px 24px 22px; }
.acc-card__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 18px -24px 0; padding: 14px 24px; border-top: 1px solid var(--acc-line); background: #fbfaf7; }
.acc-card__foot .btn .icon, .acc-btn-ico .icon { font-size: 16px; }
@media (max-width: 640px) {
    .acc-card__head { padding: 16px 16px 14px; gap: 12px; flex-wrap: wrap; }
    .acc-card__head > div { flex: 1 1 0; min-width: 0; }
    .acc-form, .acc-card__body { padding-left: 16px; padding-right: 16px; }
    .acc-card__foot { margin-left: -16px; margin-right: -16px; padding: 12px 16px; }
    .acc-card__foot .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- settings page ---------- */
.acc-page { max-width: 1120px; }
.acc-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding: 20px 22px; border-radius: 18px; background: linear-gradient(120deg, #ffffff 0%, #f3f8f5 100%); border: 1px solid var(--acc-line); box-shadow: var(--shadow); }
.acc-hero__avatar { display: grid; flex: none; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--acc-green); color: #fff; font-size: 22px; font-weight: 800; }
.acc-hero__text { min-width: 0; flex: 1; }
.acc-hero__name { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-hero__mail { margin: 2px 0 0; font-size: 13.5px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-hero__plan { display: grid; justify-items: end; gap: 4px; text-decoration: none; }
.acc-hero__plan small { font-size: 12px; color: var(--text3); }
.acc-hero__plan:hover .acc-chip { background: #dcefe6; }
@media (max-width: 640px) { .acc-hero { flex-wrap: wrap; padding: 16px; } .acc-hero__plan { justify-items: start; width: 100%; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; } }

.acc-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.acc-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.acc-nav__link { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text2); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.acc-nav__link .icon { font-size: 16px; color: var(--text3); transition: color .2s ease; }
.acc-nav__link:hover { background: #fff; color: var(--text); }
.acc-nav__link.is-on { background: var(--acc-green-soft); color: var(--acc-green); }
.acc-nav__link.is-on .icon { color: var(--acc-green); }
.acc-sections { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 900px) {
    .acc-layout { grid-template-columns: 1fr; gap: 14px; }
    .acc-nav { position: sticky; top: 56px; z-index: 5; display: flex; gap: 6px; margin: 0 -16px; padding: 8px 16px; overflow-x: auto; background: var(--bg); scrollbar-width: none; }
    .acc-nav::-webkit-scrollbar { display: none; }
    .acc-nav__link { flex: none; height: 36px; padding: 0 12px; border: 1px solid var(--acc-line); background: #fff; font-size: 13px; }
}

/* segmented control with sliding pill (Bireysel / Kurumsal, plan group, cycle) */
.acc-seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-bottom: 20px; padding: 4px; border-radius: 12px; background: var(--bg3); isolation: isolate; }
.acc-seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; z-index: -1; width: var(--pill-w, 0); border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(23, 20, 15, .12), 0 4px 12px -6px rgba(23, 20, 15, .2); transform: translateX(var(--pill-x, 0)); transition: transform .38s var(--acc-ease), width .38s var(--acc-ease); }
.acc-seg:not(.is-ready) .acc-seg__pill { opacity: 0; }
.acc-seg__opt { position: relative; margin: 0; cursor: pointer; }
.acc-seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.acc-seg__opt span { display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 18px; border-radius: 9px; font-size: 13.5px; font-weight: 650; color: var(--text3); white-space: nowrap; transition: color .25s ease; }
.acc-seg__opt input:checked + span { color: var(--text); }
.acc-seg__opt input:focus-visible + span { box-shadow: var(--focus); }
.acc-seg:not(.is-ready) .acc-seg__opt input:checked + span { background: #fff; }
@media (max-width: 640px) { .acc-seg { display: grid; width: 100%; } .acc-seg__opt span { padding: 0 10px; } }

/* cross-fading panes */
.acc-swap { position: relative; transition: height .35s var(--acc-ease); }
.acc-swap__pane { min-width: 0; margin: 0; padding: 0; border: 0; }
.acc-swap__pane[hidden] { display: none; }
.acc-swap__pane.is-entering { animation: accPaneIn .38s var(--acc-ease) both; }
@keyframes accPaneIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* password meter */
.acc-meter { height: 4px; margin-top: 8px; border-radius: 4px; background: var(--bg3); overflow: hidden; }
.acc-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--acc-red); transition: width .3s var(--acc-ease), background-color .3s ease; }

/* language choice */
.acc-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px 24px 24px; }
.acc-lang { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--acc-line); border-radius: 14px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .2s ease, background-color .2s ease, transform .3s var(--acc-spring); }
.acc-lang:hover { border-color: rgba(15, 123, 90, .4); }
.acc-lang:active { transform: scale(.98); }
.acc-lang__code { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--bg3); font-size: 13px; font-weight: 800; color: var(--text2); }
.acc-lang__name { flex: 1; font-size: 14.5px; font-weight: 650; }
.acc-lang__check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--acc-line); color: transparent; font-size: 13px; transition: all .2s ease; }
.acc-lang.is-on { border-color: var(--acc-green); background: #f6fbf8; }
.acc-lang.is-on .acc-lang__code { background: var(--acc-green); color: #fff; }
.acc-lang.is-on .acc-lang__check { background: var(--acc-green); border-color: var(--acc-green); color: #fff; }
@media (max-width: 640px) { .acc-langs { padding: 16px; gap: 10px; } .acc-lang { padding: 12px; } }

@media (prefers-reduced-motion: reduce) {
    .acc-seg__pill, .acc-swap, .acc-meter i, .acc-lang { transition: none !important; }
    .acc-swap__pane.is-entering { animation: none; }
    .acc-chip--warn .acc-dot { animation: none; }
}

/* toast (copy feedback) */
.acc-toast { position: fixed; left: 50%; bottom: 28px; z-index: 9999; padding: 10px 16px; border-radius: 12px; background: #17140f; color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .25s ease, transform .3s cubic-bezier(.22, .61, .36, 1); }
.acc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.acc-toast.is-err { background: #c02626; }
@media (prefers-reduced-motion: reduce) { .acc-toast { transition: none; } }

/* ==========================================================================
   API page (api-access.php) + shared docs (views/partials/api-docs-section.php)
   ========================================================================== */
.api-page { max-width: 1180px; }
.api-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 22px; padding: 26px 28px; border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, rgba(15, 123, 90, .12), transparent 55%), #fff; border: 1px solid var(--acc-line); box-shadow: var(--shadow); }
.api-hero__title { margin: 12px 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; color: var(--text); }
.api-hero__lead { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text2); }
.api-hero__req { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: #17140f; color: #f4efe6; box-shadow: 0 18px 40px -24px rgba(23, 20, 15, .7); min-width: 0; }
.api-hero__req .api-ep { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.api-hero__req .api-ep code { color: #f4efe6; }
.api-hero__hdr code { display: block; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: 12.5px; color: #c8e8d9; overflow-wrap: anywhere; }
@media (max-width: 900px) { .api-hero { grid-template-columns: 1fr; padding: 20px; } .api-hero__title { font-size: 20px; } }

.api-ep { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--acc-line, rgba(23, 20, 15, .09)); background: var(--bg3); }
.api-ep__m { flex: none; padding: 3px 8px; border-radius: 6px; background: #0f7b5a; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.api-ep code { min-width: 0; font-size: 13px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }

.api-key { margin-bottom: 26px; }
.api-key__fresh { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #e6f4ec; color: #137a4b; font-size: 13px; font-weight: 600; }
.api-key__row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--acc-line); border-radius: 12px; background: #fbfaf7; }
.api-key__val { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--text); overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.api-key__btns { display: flex; flex: none; gap: 6px; }
.api-key__btns .btn { gap: 6px; }
.api-key__btns .btn .icon { font-size: 14px; }
.api-key__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12.5px; color: var(--text3); }
.api-key__meta span { display: inline-flex; align-items: center; gap: 6px; }
.api-empty { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed rgba(15, 123, 90, .3); border-radius: 14px; background: #f8fbf9; }
.api-empty--lock { border-color: rgba(242, 169, 59, .45); background: #fffaf1; }
.api-empty__ico { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: #0f7b5a; font-size: 19px; box-shadow: 0 1px 3px rgba(23, 20, 15, .08); }
.api-empty--lock .api-empty__ico { color: #b5740b; }
.api-empty b { font-size: 14.5px; color: var(--text); }
.api-empty p { margin: 2px 0 0; font-size: 13px; color: var(--text3); line-height: 1.5; }
.api-slugs { margin-top: 16px; }
.api-slugs__label { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--text2); }
.api-slugs__list { display: flex; flex-wrap: wrap; gap: 6px; }
.api-slug { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid var(--acc-line); border-radius: 9px; background: #fff; color: var(--text3); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.api-slug code { font-size: 12.5px; color: var(--text); }
.api-slug .icon { font-size: 13px; }
.api-slug:hover, .api-slug.is-copied { border-color: rgba(15, 123, 90, .45); color: #0f7b5a; }
.acc-btn-danger { color: #c02626 !important; }
.acc-btn-danger:hover { border-color: rgba(192, 38, 38, .4) !important; background: #fdf0f0 !important; }
@media (max-width: 640px) {
    .api-key__row { flex-wrap: wrap; padding: 12px; }
    .api-key__val { flex-basis: 100%; font-size: 13px; }
    .api-key__btns { width: 100%; }
    .api-key__btns .btn { flex: 1; justify-content: center; }
}

.api-docs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.api-toc { position: sticky; top: 84px; display: grid; gap: 2px; }
.api-toc__title { margin: 0 0 6px 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.api-toc .acc-nav__link { height: 34px; font-size: 13.5px; }
.api-docs-card { padding: 6px 30px 10px; min-width: 0; }
@media (max-width: 1000px) {
    .api-docs-layout { grid-template-columns: 1fr; gap: 12px; }
    .api-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
    .api-toc__title { width: 100%; margin: 0 0 2px; }
    .api-toc .acc-nav__link { height: 32px; border: 1px solid var(--acc-line, rgba(23, 20, 15, .09)); background: #fff; font-size: 12.5px; }
    .api-docs-card { padding: 4px 18px 8px; }
}

.api-doc { color: var(--text2); font-size: 14.5px; line-height: 1.65; }
.api-doc__sec { padding: 26px 0 24px; border-bottom: 1px solid rgba(23, 20, 15, .09); scroll-margin-top: 80px; }
.api-doc__sec:last-child { border-bottom: 0; }
.api-doc__h2 { margin: 0 0 10px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.api-doc p { margin: 0 0 12px; }
.api-doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.api-doc p code, .api-doc td code, .api-doc li code { padding: 2px 6px; border-radius: 6px; background: var(--bg3); color: var(--text); overflow-wrap: anywhere; }
.api-doc__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.api-doc__facts li { display: grid; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid rgba(23, 20, 15, .09); border-radius: 12px; background: #fbfaf7; }
.api-doc__facts span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.api-doc__facts code, .api-doc__facts b { font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }
.api-doc__list { margin: 0; padding-left: 20px; }
.api-doc__list li { margin-bottom: 6px; }
.api-doc .api-ep { margin: 4px 0 12px; }
@media (max-width: 640px) { .api-doc__facts { grid-template-columns: 1fr; } .api-doc { font-size: 14px; } }

.api-code { margin: 10px 0 14px; border-radius: 14px; background: #17140f; overflow: hidden; box-shadow: 0 16px 36px -26px rgba(23, 20, 15, .8); }
.api-code__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; font-weight: 700; color: rgba(244, 239, 230, .6); }
.api-code__copy { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .08); color: #f4efe6; font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color .2s ease; }
.api-code__copy:hover { background: rgba(255, 255, 255, .16); }
.api-code__copy.is-copied { background: #0f7b5a; }
.api-code__copy .icon { font-size: 13px; }
.api-code__pre { margin: 0; padding: 14px 16px; max-height: 460px; overflow: auto; font-size: 12.5px; line-height: 1.65; color: #f4efe6; white-space: pre; tab-size: 2; background: none; border: 0; border-radius: 0; }
.api-code__pre code { font-size: inherit; color: inherit; background: none; padding: 0; }

.api-table-wrap { margin: 12px 0 4px; overflow-x: auto; border: 1px solid rgba(23, 20, 15, .09); border-radius: 12px; }
.api-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.api-table th { padding: 10px 14px; background: #fbfaf7; text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); border-bottom: 1px solid rgba(23, 20, 15, .09); white-space: nowrap; }
.api-table td { padding: 11px 14px; border-bottom: 1px solid rgba(23, 20, 15, .09); vertical-align: top; color: var(--text2); }
.api-table tr:last-child td { border-bottom: 0; }
.api-status { display: inline-block; min-width: 40px; padding: 2px 8px; border-radius: 6px; text-align: center; font-size: 12px; font-weight: 800; font-family: ui-monospace, Menlo, Consolas, monospace; }
.api-status--ok { background: #e6f4ec; color: #137a4b; }
.api-status--warn { background: #fdf3e2; color: #9a5b00; }
.api-status--err { background: #fdf0f0; color: #c02626; }
.api-fields { display: grid; gap: 8px; margin: 14px 0; }
.api-field { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 1px solid rgba(23, 20, 15, .09); border-radius: 12px; }
.api-field__k { align-self: start; justify-self: start; padding: 3px 8px; border-radius: 6px; background: #eaf5f0; color: #0f7b5a !important; font-weight: 700; }
.api-field__list { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.api-field p { margin: 4px 0 0; font-size: 13px; color: var(--text3); }
@media (max-width: 640px) { .api-field { grid-template-columns: 1fr; gap: 6px; } }

/* CSS-only tabs (examples) */
.api-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.api-tabs__bar { display: inline-flex; gap: 2px; margin: 6px 0 2px; padding: 3px; border-radius: 10px; background: var(--bg3); }
.api-tabs__bar label { margin: 0; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--text3); cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.api-tabs__panel { display: none; }
#api-tab-curl:checked ~ .api-tabs__bar label[for="api-tab-curl"],
#api-tab-php:checked ~ .api-tabs__bar label[for="api-tab-php"],
#api-tab-js:checked ~ .api-tabs__bar label[for="api-tab-js"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(23, 20, 15, .12); }
#api-tab-curl:focus-visible ~ .api-tabs__bar label[for="api-tab-curl"],
#api-tab-php:focus-visible ~ .api-tabs__bar label[for="api-tab-php"],
#api-tab-js:focus-visible ~ .api-tabs__bar label[for="api-tab-js"] { box-shadow: var(--focus); }
#api-tab-curl:checked ~ [data-tab="curl"], #api-tab-php:checked ~ [data-tab="php"], #api-tab-js:checked ~ [data-tab="js"] { display: block; animation: accPaneIn .3s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes accPaneIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .api-tabs__panel { animation: none !important; } }

/* public docs page (guest layout, /api-docs.php) */
.api-public { max-width: 1120px; margin: 0 auto; padding: 120px 20px 70px; }
.api-public .api-hero { margin-bottom: 26px; }
.api-public__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.api-public .api-docs-card { background: #fff; border: 1px solid rgba(23, 20, 15, .09); border-radius: 18px; }
.api-public .acc-nav__link { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text2); text-decoration: none; }
.api-public .acc-nav__link:hover { background: #fff; color: var(--text); }
.api-public .acc-nav__link.is-on { background: #eaf5f0; color: #0f7b5a; }
.api-public .acc-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.api-public .acc-chip--brand { background: #eaf5f0; color: #0f7b5a; }
.api-public .acc-chip--muted { background: var(--bg3); color: var(--text3); }
@media (max-width: 640px) { .api-public { padding: 96px 16px 48px; } }

/* ==========================================================================
   Özel Ayarlar (business-settings.php)
   ========================================================================== */
.bz-page { max-width: 1180px; display: grid; gap: 20px; }
.bz-intro { margin: 0; font-size: 14px; color: var(--text3); max-width: 760px; }
.bz-domain__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.bz-domain__main { padding: 22px 24px 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.bz-domain__form .form-label { margin-bottom: 8px; }
.bz-domain__input { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.bz-domain__input:focus-within { border-color: rgba(31, 174, 124, .6); box-shadow: var(--focus); }
.bz-domain__scheme { display: flex; align-items: center; padding: 0 4px 0 14px; font-size: 14px; color: var(--text3); background: #fbfaf7; border-right: 1px solid var(--acc-line); padding-right: 12px; }
.bz-domain__input .form-control { border: 0 !important; box-shadow: none !important; border-radius: 0; min-width: 0; font-size: 15px; font-weight: 600; }
.bz-domain__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bz-domain__actions .btn .icon { font-size: 15px; }
.bz-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; animation: accPaneIn .35s var(--acc-ease) both; }
.bz-alert > .icon { flex: none; margin-top: 2px; font-size: 18px; }
.bz-alert b { display: block; color: var(--text); font-size: 14px; }
.bz-alert p { margin: 3px 0 0; color: var(--text2); }
.bz-alert small { display: block; margin-top: 6px; font-size: 12px; color: var(--text3); }
.bz-alert code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .7); font-size: 12.5px; overflow-wrap: anywhere; }
.bz-alert a { color: var(--acc-green); font-weight: 600; overflow-wrap: anywhere; }
.bz-alert--ok { background: #eef7f2; color: #137a4b; }
.bz-alert--warn { background: #fef7ea; color: #b5740b; }
.bz-alert--err { background: #fdf2f2; color: var(--acc-red); }
.bz-dns { border: 1px solid var(--acc-line); border-radius: 14px; overflow: hidden; }
.bz-dns__head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fbfaf7; border-bottom: 1px solid var(--acc-line); font-size: 12.5px; font-weight: 700; color: var(--text2); }
.bz-dns__grid { display: grid; grid-template-columns: 90px 1fr 1.6fr 90px; margin: 0; }
.bz-dns__grid > div { padding: 12px 14px; border-right: 1px solid var(--acc-line); min-width: 0; }
.bz-dns__grid > div:last-child { border-right: 0; }
.bz-dns__grid dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.bz-dns__grid dd { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; min-width: 0; }
.bz-dns__grid code { font-size: 13.5px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.bz-copy { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border: 1px solid var(--acc-line); border-radius: 8px; background: #fff; color: var(--text3); cursor: pointer; transition: color .2s ease, border-color .2s ease, transform .3s var(--acc-spring); }
.bz-copy .icon { font-size: 13px; }
.bz-copy:hover, .bz-copy.is-copied { color: var(--acc-green); border-color: rgba(15, 123, 90, .4); }
.bz-copy:active { transform: scale(.9); }
@media (max-width: 700px) {
    .bz-dns__grid { grid-template-columns: 1fr 1fr; }
    .bz-dns__grid > div { border-bottom: 1px solid var(--acc-line); }
    .bz-dns__grid > div:nth-child(2n) { border-right: 0; }
    .bz-dns__grid > div:nth-child(3) { grid-column: 1 / -1; order: 5; border-right: 0; border-bottom: 0; }
}

.bz-steps { padding: 22px 24px 24px; background: linear-gradient(180deg, #fbfaf7, #f7f5ef); border-left: 1px solid var(--acc-line); min-width: 0; }
.bz-steps__title { margin: 0 0 16px; font-size: 14.5px; font-weight: 800; color: var(--text); }
.bz-steps__list { position: relative; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.bz-steps__list li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.bz-steps__list li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 32px; bottom: -14px; width: 2px; border-radius: 2px; background: var(--acc-line); }
.bz-steps__list li.is-done:not(:last-child)::after { background: rgba(15, 123, 90, .35); }
.bz-steps__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1.5px solid var(--acc-line); font-size: 13px; font-weight: 800; color: var(--text3); transition: all .3s ease; }
.bz-steps__n .icon { font-size: 15px; }
.bz-steps__list li.is-on .bz-steps__n { border-color: var(--acc-green); color: var(--acc-green); box-shadow: 0 0 0 4px rgba(15, 123, 90, .1); }
.bz-steps__list li.is-done .bz-steps__n { background: var(--acc-green); border-color: var(--acc-green); color: #fff; }
.bz-steps__list b { display: block; margin-top: 4px; font-size: 13.5px; color: var(--text); }
.bz-steps__list p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text3); }
.bz-trouble { margin-top: 20px; border: 1px solid var(--acc-line); border-radius: 12px; background: #fff; }
.bz-trouble summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 13px; font-weight: 700; color: var(--text2); cursor: pointer; list-style: none; }
.bz-trouble summary::-webkit-details-marker { display: none; }
.bz-trouble summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s ease; }
.bz-trouble[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.bz-trouble ul { margin: 0; padding: 0 14px 12px 32px; font-size: 12.5px; line-height: 1.55; color: var(--text2); }
.bz-trouble li { margin-bottom: 6px; }
.bz-trouble[open] ul { animation: accPaneIn .3s var(--acc-ease) both; }
@media (max-width: 960px) {
    .bz-domain__grid { grid-template-columns: 1fr; }
    .bz-steps { border-left: 0; border-top: 1px solid var(--acc-line); }
}
@media (max-width: 640px) { .bz-domain__main, .bz-steps { padding: 16px; } .bz-domain__actions .btn { flex: 1 1 auto; justify-content: center; } }

.bz-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.bz-row > .acc-card { display: flex; flex-direction: column; }
.bz-row > .acc-card > .acc-form, .bz-row > .acc-card > .acc-card__body { display: flex; flex: 1; flex-direction: column; }
.bz-row .acc-card__foot { margin-top: auto; }
.bz-row .acc-card__body .acc-card__foot { margin-bottom: -22px; }
@media (max-width: 900px) { .bz-row { grid-template-columns: 1fr; } }

/* toggle switch */
.bz-switch { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--acc-line); border-radius: 14px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.bz-switch:hover { border-color: rgba(15, 123, 90, .35); }
.bz-switch input { position: absolute; opacity: 0; pointer-events: none; }
.bz-switch__track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 99px; background: #d9d5cc; transition: background-color .25s ease; }
.bz-switch__thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s var(--acc-spring); }
.bz-switch input:checked + .bz-switch__track { background: var(--acc-green); }
.bz-switch input:checked + .bz-switch__track .bz-switch__thumb { transform: translateX(18px); }
.bz-switch input:focus-visible + .bz-switch__track { box-shadow: var(--focus); }
.bz-switch input:disabled + .bz-switch__track { opacity: .5; }
.bz-switch__text b { display: block; font-size: 14px; color: var(--text); }
.bz-switch__text small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text3); }

.bz-api__ep { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #17140f; }
.bz-api__ep code { font-size: 13px; font-weight: 600; color: #f4efe6; }
.bz-api__list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text2); }
.bz-api__list li { display: flex; align-items: center; gap: 8px; }
.bz-api__list .icon { color: var(--acc-green); font-size: 15px; }

.bz-brand__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.bz-brand__fields .acc-hint { margin-top: -6px; }
.bz-preview { align-self: start; padding: 14px; border-radius: 16px; background: #f1efe9; }
.bz-preview__label { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.bz-preview__tab { display: flex; align-items: center; gap: 8px; width: 82%; padding: 8px 12px; border-radius: 10px 10px 0 0; background: #fff; }
.bz-preview__fav { display: grid; flex: none; place-items: center; width: 16px; height: 16px; border-radius: 4px; overflow: hidden; color: var(--text3); font-size: 13px; }
.bz-preview__fav img, .bz-preview__logo img, .bz-preview__og img { width: 100%; height: 100%; object-fit: cover; }
.bz-preview__title { overflow: hidden; font-size: 12.5px; font-weight: 600; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.bz-preview__card { border-radius: 0 12px 12px 12px; background: #fff; overflow: hidden; box-shadow: 0 10px 24px -18px rgba(23, 20, 15, .4); }
.bz-preview__og { display: grid; place-items: center; aspect-ratio: 1200 / 630; background: linear-gradient(135deg, #e7f1ec, #f6efe2); color: rgba(23, 20, 15, .25); font-size: 30px; }
.bz-preview__meta { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.bz-preview__logo { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 9px; overflow: hidden; background: var(--acc-green-soft); color: var(--acc-green); font-size: 15px; }
.bz-preview__meta b { display: block; font-size: 13px; color: var(--text); }
.bz-preview__meta small { display: block; font-size: 11.5px; color: var(--text3); overflow-wrap: anywhere; }
@media (max-width: 900px) { .bz-brand__grid { grid-template-columns: 1fr; } .bz-preview { max-width: 360px; } }
@media (prefers-reduced-motion: reduce) { .bz-alert, .bz-trouble[open] ul { animation: none; } .bz-switch__thumb, .bz-steps__n { transition: none; } }

/* mobile + state fixes */
.acc-page .btn:disabled, .bz-page .btn:disabled, .api-page .btn:disabled, .tk-page .btn:disabled, .acb-page .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.bz-row .acc-card__body { padding-bottom: 22px; }
.bz-api__list { margin-bottom: 4px; }
@media (max-width: 640px) {
    .acc-card__head > div { flex: 1 1 calc(100% - 60px); }
    .acc-card__head .acc-card__badge { margin-left: 52px; }
}
@media (max-width: 700px) {
    .bz-dns__grid { grid-template-columns: 1fr; }
    .bz-dns__grid > div, .bz-dns__grid > div:nth-child(3) { display: flex; align-items: center; justify-content: space-between; gap: 12px; grid-column: auto; order: 0; border-right: 0; border-bottom: 1px solid var(--acc-line); padding: 10px 14px; }
    .bz-dns__grid > div:last-child { border-bottom: 0; }
    .bz-dns__grid dd { margin: 0; justify-content: flex-end; }
}

/* ==========================================================================
   Faturalama (billing.php)
   ========================================================================== */
.acb-page { max-width: 1180px; }
.acb-banner { display: flex; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; animation: accPaneIn .4s var(--acc-ease) both; }
.acb-banner > .icon { flex: none; margin-top: 2px; font-size: 19px; }
.acb-banner b { display: block; font-size: 14.5px; color: var(--text); }
.acb-banner p { margin: 2px 0 0; color: var(--text2); }
.acb-banner--ok { background: #eef7f2; color: #137a4b; border: 1px solid rgba(19, 122, 75, .18); }
.acb-banner--warn { background: #fef7ea; color: #b5740b; border: 1px solid rgba(181, 116, 11, .2); }
.acb-banner--info { background: #eef4fb; color: #2b5ea8; border: 1px solid rgba(43, 94, 168, .18); }

.acb-current { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 30px; padding: 20px 22px; border-radius: 18px; background: linear-gradient(120deg, #fff 0%, #f3f8f5 100%); border: 1px solid var(--acc-line); box-shadow: var(--shadow); }
.acb-current__plan { display: flex; align-items: center; gap: 14px; }
.acb-current__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--acc-green); color: #fff; font-size: 22px; }
.acb-current__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.acb-current__name { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.acb-current__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.acb-current__facts > div { display: grid; gap: 1px; min-width: 130px; }
.acb-current__facts span { font-size: 12px; color: var(--text3); }
.acb-current__facts b { font-size: 15px; color: var(--text); }
.acb-current__facts b.is-muted { color: var(--text3); }
.acb-current__facts small { font-size: 12.5px; color: var(--text3); }
.acb-current__facts small.is-warn { color: #b5740b; font-weight: 600; }
.acb-current__facts a { color: var(--acc-green); font-weight: 600; }

.acb-head { text-align: center; margin-bottom: 16px; }
.acb-head__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.025em; color: var(--text); }
.acb-head__sub { margin: 6px 0 0; font-size: 14px; color: var(--text3); }
.acb-switches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 0 0 28px; }
.acb-seg { margin: 0; }
.acb-seg__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; font-size: 13.5px; font-weight: 650; color: var(--text3); white-space: nowrap; cursor: pointer; transition: color .25s ease; }
.acb-seg__btn .icon { font-size: 15px; }
.acb-seg__btn.is-on { color: var(--text); }
.acb-seg__btn:focus-visible { outline: none; box-shadow: var(--focus); }
.acc-seg:not(.is-ready) .acb-seg__btn.is-on { background: #fff; }
.acb-save { padding: 2px 7px; border-radius: 99px; background: var(--acc-saffron-soft); color: #9a5b00; font-size: 11px; font-weight: 800; }

.acb-stage { position: relative; transition: height .45s var(--acc-ease); }
.acb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 22px; align-items: stretch; }
.acb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-left: auto; margin-right: auto; }
.acb-grid[hidden] { display: none; }
.acb-grid.is-out .acb-card { opacity: 0; transform: translateY(8px) scale(.985); transition: opacity .18s ease, transform .2s ease; }
.acb-grid.is-in .acb-card { animation: acbCardIn .48s var(--acc-ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes acbCardIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.acb-card { position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; border: 1px solid var(--acc-line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); transition: transform .35s var(--acc-ease), box-shadow .35s ease, border-color .25s ease; }
.acb-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 20, 15, .04), 0 22px 40px -26px rgba(23, 20, 15, .35); }
.acb-card--featured { border: 1.5px solid rgba(15, 123, 90, .55); background: linear-gradient(180deg, #f3faf6 0%, #fff 42%); }
.acb-card--current { border-color: rgba(15, 123, 90, .35); }
.acb-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.acb-card__name { margin: 0; font-size: 17px; font-weight: 800; color: var(--text); }
.acb-pop { background: var(--acc-green); color: #fff; }
.acb-price { display: flex; align-items: flex-start; gap: 4px; margin-top: 16px; color: var(--text); }
.acb-price__cur { margin-top: 6px; font-size: 20px; font-weight: 700; }
.acb-price__num { font-size: 44px; font-weight: 850; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.acb-price__per { margin-top: 6px; font-size: 13px; color: var(--text3); }
.acb-price__eq { display: inline-block; align-self: flex-start; margin-top: 8px; padding: 3px 9px; border-radius: 8px; background: var(--bg3); font-size: 12px; font-weight: 600; color: var(--text2); }
[data-price], [data-per], [data-eq] { transition: opacity .17s ease, transform .2s ease, filter .2s ease; }
.is-swap { opacity: 0; transform: translateY(-6px); filter: blur(2px); }
.acb-feats { display: grid; gap: 10px; flex: 1; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--acc-line); list-style: none; }
.acb-feats li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; font-size: 13.5px; line-height: 1.45; color: var(--text2); }
.acb-feats li .icon { margin-top: 2px; font-size: 15px; color: var(--acc-green); }
.acb-feats li.is-off { color: var(--text3); opacity: .6; }
.acb-feats li.is-off .icon { color: var(--text3); }
.acb-actions { display: grid; gap: 10px; margin-top: 22px; }
.acb-actions .btn { width: 100%; justify-content: center; gap: 8px; min-height: 46px; }
.acb-actions .btn .icon { font-size: 16px; }
.acb-alt { text-align: center; font-size: 13px; font-weight: 600; color: var(--text2); text-decoration: underline; text-underline-offset: 3px; }
.acb-alt:hover { color: var(--acc-green); }
@media (max-width: 1000px) { .acb-grid, .acb-grid--2 { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }
@media (max-width: 640px) {
    .acb-current { padding: 16px; }
    .acb-current__facts { gap: 12px 20px; }
    .acb-head__title { font-size: 20px; }
    .acb-switches { display: grid; }
    .acb-seg { display: grid; width: 100%; }
    .acb-seg__btn { padding: 0 8px; font-size: 13px; }
    .acb-card { padding: 22px 18px 18px; }
}

.acb-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 820px; margin: 0 auto 22px; animation: accPaneIn .4s var(--acc-ease) both; }
.acb-extras[hidden] { display: none; }
.acb-extra { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; }
.acb-extra b { display: block; font-size: 14px; }
.acb-extra small { display: block; margin-top: 3px; color: var(--text3); font-size: 12.5px; line-height: 1.45; }
.acb-extra strong { white-space: nowrap; font-size: 15px; }
@media (max-width: 1000px) { .acb-extras { grid-template-columns: 1fr; max-width: 480px; } }

.acb-how { margin: 8px 0 26px; padding: 22px 24px; border-radius: 18px; background: #17140f; color: #f4efe6; }
.acb-how__head { display: flex; gap: 14px; }
.acb-how__ico { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(76, 199, 154, .15); color: #4cc79a; font-size: 20px; }
.acb-how h3 { margin: 0; font-size: 16px; font-weight: 750; color: #fff; }
.acb-how__head p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: rgba(244, 239, 230, .7); }
.acb-how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.acb-how__steps li { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.acb-how__steps li > span { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f2a93b; color: #17140f; font-size: 13px; font-weight: 800; }
.acb-how__steps b { display: block; font-size: 13.5px; color: #fff; }
.acb-how__steps p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(244, 239, 230, .65); overflow-wrap: anywhere; }
@media (max-width: 900px) { .acb-how__steps { grid-template-columns: 1fr; } .acb-how { padding: 18px 16px; } }

.acb-empty { display: grid; justify-items: center; gap: 4px; padding: 34px 20px 38px; text-align: center; }
.acb-empty > span { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; background: var(--bg3); color: var(--text3); font-size: 21px; }
.acb-empty b { font-size: 15px; color: var(--text); }
.acb-empty p { margin: 0; font-size: 13px; color: var(--text3); }
.acb-table table { width: 100%; }
@media (prefers-reduced-motion: reduce) {
    .acb-stage, .acb-card, [data-price], [data-per], [data-eq] { transition: none !important; }
    .acb-grid.is-in .acb-card, .acb-banner, .acb-extras { animation: none !important; }
}

/* ==========================================================================
   Destek (tickets.php)
   ========================================================================== */
.tk-page { max-width: 1240px; }
.tk-hello { max-width: 760px; margin: 20px auto; padding: 38px 34px; text-align: center; border-radius: 22px; background: radial-gradient(90% 120% at 50% 0%, rgba(15, 123, 90, .1), transparent 60%), #fff; border: 1px solid var(--acc-line); box-shadow: var(--shadow); }
.tk-hello__ico { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--acc-green); color: #fff; font-size: 26px; }
.tk-hello h1 { margin: 16px 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.025em; color: var(--text); }
.tk-hello p { margin: 0 auto; max-width: 520px; font-size: 14.5px; line-height: 1.6; color: var(--text2); }
.tk-hello__cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.tk-hello__cat { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--acc-line); border-radius: 14px; background: #fbfaf7; color: var(--text); font-size: 13.5px; font-weight: 650; text-align: left; text-decoration: none; transition: border-color .2s ease, background-color .2s ease, transform .3s var(--acc-spring); }
.tk-hello__cat .icon { flex: none; font-size: 18px; color: var(--acc-green); }
.tk-hello__cat:hover { border-color: rgba(15, 123, 90, .4); background: #fff; transform: translateY(-2px); }
@media (max-width: 640px) { .tk-hello { padding: 26px 18px; } .tk-hello__cats { grid-template-columns: 1fr 1fr; } }

.tk-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 140px); border: 1px solid var(--acc-line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.tk-list { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--acc-line); background: #fbfaf7; }
.tk-list__head { padding: 16px 16px 12px; border-bottom: 1px solid var(--acc-line); }
.tk-list__head > b { font-size: 14px; color: var(--text); }
.tk-filters { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.tk-filter { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid transparent; border-radius: 99px; background: transparent; font-size: 12.5px; font-weight: 650; color: var(--text3); cursor: pointer; transition: all .2s ease; }
.tk-filter span { font-size: 11px; color: var(--text3); }
.tk-filter:hover { color: var(--text); }
.tk-filter.is-on { background: #fff; border-color: var(--acc-line); color: var(--text); box-shadow: 0 1px 2px rgba(23, 20, 15, .06); }
.tk-list__items { flex: 1; overflow-y: auto; padding: 6px; }
.tk-list__none { margin: 18px 12px; font-size: 13px; color: var(--text3); }
.tk-item { position: relative; display: flex; gap: 12px; padding: 12px; border-radius: 14px; color: inherit; text-decoration: none; transition: background-color .2s ease; }
.tk-item[hidden] { display: none; }
.tk-item + .tk-item { margin-top: 2px; }
.tk-item:hover { background: #fff; }
.tk-item.is-on { background: #fff; box-shadow: inset 3px 0 0 var(--acc-green), 0 1px 3px rgba(23, 20, 15, .06); }
.tk-item__ico { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #fff; border: 1px solid var(--acc-line); color: var(--text2); font-size: 16px; }
.tk-item.is-on .tk-item__ico { background: var(--acc-green-soft); border-color: transparent; color: var(--acc-green); }
.tk-item__main { display: grid; gap: 4px; flex: 1; min-width: 0; }
.tk-item__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tk-item__row b { overflow: hidden; font-size: 13.5px; font-weight: 650; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.tk-item__row time { flex: none; font-size: 11.5px; color: var(--text3); }
.tk-item__prev { overflow: hidden; font-size: 12.5px; color: var(--text3); text-overflow: ellipsis; white-space: nowrap; }
.tk-item__prev em { font-style: normal; font-weight: 700; color: var(--acc-green); }
.tk-item.is-unread .tk-item__row b { font-weight: 800; }
.tk-item.is-unread::after { content: ''; position: absolute; top: 16px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc-green); box-shadow: 0 0 0 3px rgba(15, 123, 90, .15); }
.tk-item.is-unread .tk-item__row time { margin-right: 12px; }
.tk-item__chips { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.tk-item__chips .acc-chip { height: 22px; font-size: 11px; padding: 0 8px; gap: 5px; }
.tk-item__chips small { font-size: 11.5px; color: var(--text3); }

.tk-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tk-blank { display: grid; flex: 1; place-content: center; justify-items: center; gap: 8px; padding: 40px 24px; text-align: center; }
.tk-blank__ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 16px; background: var(--bg3); color: var(--text3); font-size: 24px; }
.tk-blank h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text); }
.tk-blank p { margin: 0 0 10px; max-width: 360px; font-size: 13.5px; color: var(--text3); }
.tk-conv__head { display: flex; align-items: flex-start; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--acc-line); }
.tk-back { display: none; }
.tk-conv__title { flex: 1; min-width: 0; }
.tk-conv__title h1 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.015em; color: var(--text); overflow-wrap: anywhere; }
.tk-conv__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.tk-conv__chips small { font-size: 12px; color: var(--text3); }
.tk-conv__act { flex: none; }
.tk-conv__act .btn { gap: 6px; }

.tk-thread { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 22px; overflow-y: auto; background: linear-gradient(180deg, #fbfaf7, #fff 140px); }
.tk-day { display: flex; justify-content: center; }
.tk-day span { padding: 3px 10px; border-radius: 99px; background: var(--bg3); font-size: 11.5px; font-weight: 650; color: var(--text3); }
.tk-msg { display: flex; align-items: flex-end; gap: 10px; max-width: 78%; animation: tkIn .35s var(--acc-ease) both; animation-delay: calc(var(--d, 0) * 40ms); }
@keyframes tkIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tk-msg--me { align-self: flex-end; flex-direction: row-reverse; }
.tk-msg__av { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--acc-green); color: #fff; font-size: 13px; font-weight: 800; }
.tk-msg--staff .tk-msg__av { background: #17140f; color: #f2a93b; font-size: 15px; }
.tk-msg__body { min-width: 0; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--acc-line); box-shadow: 0 1px 2px rgba(23, 20, 15, .04); }
.tk-msg--me .tk-msg__body { border-bottom-right-radius: 6px; background: #eaf5f0; border-color: rgba(15, 123, 90, .16); }
.tk-msg--staff .tk-msg__body { border-bottom-left-radius: 6px; }
.tk-msg__who { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.tk-msg__who b { font-size: 12.5px; color: var(--text); }
.tk-msg__who time { font-size: 11.5px; color: var(--text3); }
.tk-msg__text { font-size: 14px; line-height: 1.6; color: var(--text2); overflow-wrap: anywhere; }
.tk-att { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 12px 8px 8px; border: 1px solid var(--acc-line); border-radius: 12px; background: #fff; color: var(--text2); text-decoration: none; transition: border-color .2s ease; }
.tk-att:hover { border-color: rgba(15, 123, 90, .4); color: var(--acc-green); }
.tk-att__ico { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg3); color: var(--text2); font-size: 16px; }
.tk-att__meta { display: grid; min-width: 0; flex: 1; }
.tk-att__meta b { overflow: hidden; font-size: 13px; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.tk-att__meta small { font-size: 11.5px; color: var(--text3); }
.tk-wait { align-self: center; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--acc-saffron-soft); color: #8a5200; font-size: 12.5px; font-weight: 600; text-align: center; }

.tk-composer { padding: 14px 18px 16px; border-top: 1px solid var(--acc-line); background: #fff; }
.tk-composer__note { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; color: var(--text3); }
.tk-composer__ta { min-height: 76px !important; resize: none; border-radius: 14px; }
.tk-composer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.tk-composer__bar .btn { flex: none; gap: 7px; }
.tk-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.tk-file__btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; margin: 0; padding: 0 12px; border: 1px dashed rgba(23, 20, 15, .2); border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.tk-file__btn:hover { border-color: var(--acc-green); color: var(--acc-green); }
.tk-file input:focus-visible + .tk-file__chip, .tk-file__btn:focus-within { box-shadow: var(--focus); }
.tk-file__chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 32px; padding: 0 4px 0 10px; border-radius: 9px; background: var(--acc-green-soft); color: var(--acc-green); font-size: 12.5px; font-weight: 600; animation: accPaneIn .25s var(--acc-ease) both; }
.tk-file__chip[hidden] { display: none; }
.tk-file__chip [data-file-name] { overflow: hidden; max-width: 220px; text-overflow: ellipsis; white-space: nowrap; }
.tk-file__chip button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 7px; background: transparent; color: inherit; cursor: pointer; }
.tk-file__chip button:hover { background: rgba(15, 123, 90, .12); }
.tk-file__hint { font-size: 11.5px; color: var(--text3); }
.tk-file .acc-field-msg { width: 100%; margin: 0; }

.tk-modal .modal { max-width: 600px; width: 100%; }
.tk-modal .modal { max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.tk-modal form { display: flex; flex-direction: column; min-height: 0; }
.tk-modal .modal__body { flex: 1; min-height: 0; overflow-y: auto; }
.tk-field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.tk-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tk-cat { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1.5px solid var(--acc-line); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.tk-cat input { position: absolute; opacity: 0; pointer-events: none; }
.tk-cat .icon { flex: none; font-size: 16px; color: var(--text3); transition: color .2s ease; }
.tk-cat:hover { border-color: rgba(15, 123, 90, .35); }
.tk-cat.is-on, .tk-cat:has(input:checked) { border-color: var(--acc-green); background: #f3faf6; color: var(--text); }
.tk-cat.is-on .icon, .tk-cat:has(input:checked) .icon { color: var(--acc-green); }
.tk-cat:has(input:focus-visible) { box-shadow: var(--focus); }
.tk-prio { display: grid; width: 100%; margin-bottom: 8px; }
.tk-prio .acc-seg__opt span { padding: 0 8px; height: 36px; }
.tk-prio__hint { margin: 0; }
@media (max-width: 560px) { .tk-cats { grid-template-columns: 1fr 1fr; } }

@media (max-width: 900px) {
    .tk-shell { grid-template-columns: 1fr; min-height: 0; }
    .tk-list { border-right: 0; }
    .tk-page.has-ticket .tk-list { display: none; }
    .tk-page:not(.has-ticket) .tk-main { display: none; }
    .tk-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12.5px; font-weight: 650; color: var(--text3); text-decoration: none; }
    .tk-conv__head { flex-wrap: wrap; padding: 14px 16px; }
    .tk-conv__title { flex-basis: 100%; }
    .tk-conv__act { order: 3; }
    .tk-thread { padding: 16px 12px; }
    .tk-msg { max-width: 92%; }
    .tk-composer { padding: 12px; }
    .tk-file__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tk-msg, .tk-file__chip { animation: none; } .tk-hello__cat, .tk-item { transition: none; } }
.acb-invoices .acb-empty { padding: 30px 20px 34px; }
.api-table { min-width: 560px; }
.api-table td:first-child code, .api-table td:nth-child(2) code { white-space: nowrap; }
.acc-card__body > .acc-card__foot:last-child { margin-bottom: -22px; }

/* ---------- round 2: wide layouts ---------- */
/* Özel Ayarlar: balanced card grid */
.bz-page { max-width: 1680px; }
.bz-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "domain" "guide" "wl" "api" "brand"; gap: 20px; }
.bz-grid > .bz-domain { grid-area: domain; }
.bz-grid > .bz-guide { grid-area: guide; }
.bz-grid > .bz-wl { grid-area: wl; }
.bz-grid > .bz-api { grid-area: api; }
.bz-grid > .bz-brand { grid-area: brand; }
.bz-grid > .acc-card { display: flex; flex-direction: column; min-width: 0; }
.bz-grid > .acc-card > .acc-form, .bz-grid > .acc-card > .acc-card__body, .bz-grid > .acc-card > .bz-domain__main { display: flex; flex: 1; flex-direction: column; }
.bz-grid > .acc-card > .acc-form > .acc-card__foot, .bz-grid > .acc-card > .acc-card__body > .acc-card__foot { margin-top: auto; }
.bz-grid .bz-wl .bz-switch { margin-bottom: 22px; }
.bz-guide .bz-steps { flex: 1; border: 0; background: linear-gradient(180deg, #fbfaf7, #fff); }
@media (min-width: 1200px) {
    .bz-grid { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); grid-template-areas: "domain guide" "brand wl" "brand api"; }
}
@media (min-width: 1200px) and (max-width: 1499px) {
    .bz-brand__grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
    .bz-brand .acc-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1700px) { .bz-brand__grid { grid-template-columns: minmax(0, 1fr) 360px; } }

/* Ayarlar: nav + forms + account summary */
.acc-page { max-width: 1680px; }
.acc-layout { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "nav nav" "main side"; gap: 16px 24px; }
.acc-layout > .acc-nav { grid-area: nav; position: sticky; top: 56px; z-index: 5; display: flex; gap: 6px; margin: 0; padding: 6px 0; overflow-x: auto; background: var(--bg); scrollbar-width: none; }
.acc-layout > .acc-nav::-webkit-scrollbar { display: none; }
.acc-layout > .acc-nav .acc-nav__link { flex: none; height: 36px; border: 1px solid var(--acc-line); background: #fff; font-size: 13px; }
.acc-layout > .acc-nav .acc-nav__link.is-on { border-color: rgba(15, 123, 90, .3); background: var(--acc-green-soft); }
.acc-layout > .acc-sections { grid-area: main; }
.acc-side { grid-area: side; position: sticky; top: 112px; display: grid; gap: 16px; align-self: start; min-width: 0; }
@media (min-width: 1440px) {
    .acc-layout { grid-template-columns: 180px minmax(0, 1fr) 320px; grid-template-areas: "nav main side"; }
    .acc-layout > .acc-nav { top: 84px; display: grid; gap: 2px; padding: 0; background: none; overflow: visible; align-self: start; }
    .acc-layout > .acc-nav .acc-nav__link { height: 40px; border: 0; background: none; font-size: 14px; }
    .acc-layout > .acc-nav .acc-nav__link:hover { background: #fff; }
    .acc-layout > .acc-nav .acc-nav__link.is-on { background: var(--acc-green-soft); }
    .acc-side { top: 84px; }
}
@media (min-width: 1700px) { .acc-layout { grid-template-columns: 200px minmax(0, 1fr) 360px; } }
@media (max-width: 1099px) {
    .acc-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "nav" "main"; }
    .acc-side { position: static; }
    .acc-quick { display: none !important; }
}
.acc-sum { padding: 20px; }
.acc-sum__who { display: flex; align-items: center; gap: 12px; }
.acc-sum .acc-hero__avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 20px; }
.acc-sum .acc-hero__name { font-size: 17px; }
.acc-sum__facts { display: grid; gap: 10px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--acc-line); }
.acc-sum__facts > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-sum__facts dt { font-size: 12.5px; color: var(--text3); }
.acc-sum__facts dd { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--text); }
.acc-sum__bill { margin-top: 16px; padding: 14px; border-radius: 14px; background: #fbfaf7; border: 1px solid var(--acc-line); }
.acc-sum__bill-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.acc-sum__bill-head b { font-size: 13px; color: var(--text); }
.acc-sum__bill-head a { font-size: 12.5px; font-weight: 650; color: var(--acc-green); }
.acc-sum__bill p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text3); overflow-wrap: anywhere; }
.acc-sum__bill .acc-sum__bill-name { font-size: 13.5px; font-weight: 650; color: var(--text); }
.acc-sum__bill-miss { display: flex; gap: 6px; color: #9a5b00 !important; }
.acc-sum__bill-miss .icon { flex: none; margin-top: 2px; }
.acc-quick { display: grid; padding: 6px; }
.acc-quick a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text2); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.acc-quick a .icon:first-child { font-size: 16px; color: var(--text3); }
.acc-quick a span { flex: 1; }
.acc-quick a .icon:last-child { font-size: 14px; color: var(--text3); transition: transform .25s var(--acc-ease); }
.acc-quick a:hover { background: var(--bg3); color: var(--text); }
.acc-quick a:hover .icon:last-child { transform: translateX(3px); }
@media (max-width: 1099px) { .acc-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; } .acc-sum__facts { margin-top: 0; padding-top: 0; border-top: 0; } .acc-sum__bill { grid-column: 1 / -1; } }
@media (max-width: 640px) { .acc-sum { display: block; padding: 16px; } .acc-sum__facts { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--acc-line); } }

/* Faturalama: plans + side column (current plan, billing details, how payment works) */
.acb-page { max-width: 1760px; }
.acb-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "current" "plans" "how" "inv"; gap: 0 28px; align-items: start; }
.acb-layout > .acb-current { grid-area: current; }
.acb-layout > .acb-plans { grid-area: plans; min-width: 0; }
.acb-layout > .acb-how { grid-area: how; }
.acb-layout > .acb-invoices { grid-area: inv; }
@media (min-width: 1400px) {
    .acb-layout { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "plans current" "plans how" "inv how"; grid-template-rows: auto auto 1fr; }
    .acb-layout > .acb-current { display: grid; gap: 16px; margin-bottom: 16px; padding: 20px; }
    .acb-layout > .acb-current .acb-current__facts { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--acc-line); }
    .acb-layout > .acb-how { position: sticky; top: 84px; margin: 0; padding: 20px; }
    .acb-layout > .acb-how .acb-how__steps { grid-template-columns: 1fr; gap: 10px; }
    .acb-layout > .acb-how .acb-how__head { flex-direction: column; gap: 12px; }
    .acb-layout > .acb-plans .acb-head { text-align: left; }
    .acb-layout > .acb-plans .acb-switches { justify-content: flex-start; }
    .acb-layout > .acb-plans .acb-grid { gap: 16px; }
    .acb-layout > .acb-plans .acb-grid--2, .acb-layout > .acb-plans .acb-extras { max-width: none; margin-left: 0; margin-right: 0; }
    .acb-layout > .acb-plans .acb-card { padding: 24px 20px 20px; }
    .acb-layout > .acb-invoices { margin-top: 6px; }
}
@media (min-width: 1400px) and (max-width: 1599px) {
    .acb-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 0 22px; }
    .acb-layout > .acb-plans .acb-price__num { font-size: 38px; }
    .acb-layout > .acb-plans .acb-feats li { font-size: 13px; }
}
@media (min-width: 1800px) { .acb-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (min-width: 1000px) and (max-width: 1399px) {
    .acb-layout > .acb-how .acb-how__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- round 3: API page (panel + public) ---------- */
.api-page { max-width: 1760px; }
.api-shell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "side" "toc" "docs"; gap: 18px 24px; align-items: start; }
.api-shell > .api-toc { grid-area: toc; }
.api-shell > .api-intro { grid-area: intro; }
.api-shell > .api-docs-card { grid-area: docs; min-width: 0; }
.api-shell > .api-side { grid-area: side; }
.api-intro { padding: 4px 4px 0; }
.api-intro__title { margin: 10px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; color: var(--text); }
.api-intro__lead { margin: 0; max-width: 760px; font-size: 14.5px; line-height: 1.6; color: var(--text2); }
.api-side { display: grid; gap: 16px; min-width: 0; }
.api-panel { padding: 18px; background: #fff; border: 1px solid rgba(23, 20, 15, .09); border-radius: 16px; box-shadow: var(--shadow); }
.api-panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.api-panel__head .acc-card__ico { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.api-panel__head h2 { flex: 1; margin: 0; font-size: 15px; font-weight: 750; color: var(--text); }
.api-panel__text { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text2); }
.api-panel__text b { color: var(--text); }
.api-panel__note { margin: 8px 0 0; font-size: 12px; color: var(--text3); }
.api-panel__actions { display: flex; gap: 8px; margin-top: 14px; }
.api-panel__actions > form { display: flex; flex: 1; }
.api-panel__actions .btn { flex: 1; justify-content: center; gap: 7px; }
.api-panel .acc-hint { margin: 10px 0 0; }
.api-key__box { padding: 12px; border: 1px solid rgba(23, 20, 15, .09); border-radius: 12px; background: #fbfaf7; }
.api-key__box .api-key__val { display: block; margin-bottom: 10px; font-size: 13px; }
.api-key__box .api-key__btns { display: flex; gap: 6px; }
.api-key__box .api-key__btns .btn { flex: 1; justify-content: center; }
.api-quick__row { display: grid; gap: 6px; margin-bottom: 12px; }
.api-quick__label { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text3); }
.api-quick__copy { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid rgba(23, 20, 15, .09); border-radius: 9px; background: #fbfaf7; color: var(--text3); text-align: left; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.api-quick__copy code { min-width: 0; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.api-quick__copy .icon { flex: none; font-size: 13px; }
.api-quick__copy:hover, .api-quick__copy.is-copied { border-color: rgba(15, 123, 90, .4); color: #0f7b5a; }
.api-code--mini { margin: 4px 0 0; }
.api-code--mini .api-code__pre { padding: 12px 14px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.api-docs-card { padding: 6px 32px 10px; }
.api-doc .api-code__pre { font-size: 13px; }
@media (min-width: 1100px) {
    .api-shell { grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "toc toc" "intro side" "docs side"; grid-template-rows: auto auto 1fr; }
    .api-shell > .api-toc { position: sticky; top: 56px; z-index: 6; display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 8px 0; overflow-x: auto; background: var(--bg); scrollbar-width: none; }
    .api-shell > .api-toc::-webkit-scrollbar { display: none; }
    .api-shell > .api-toc .api-toc__title { display: none; }
    .api-shell > .api-toc .acc-nav__link { flex: none; height: 34px; padding: 0 12px; border: 1px solid rgba(23, 20, 15, .09); background: #fff; font-size: 13px; }
    .api-shell > .api-toc .acc-nav__link.is-on { border-color: rgba(15, 123, 90, .35); background: #eaf5f0; }
    .api-shell > .api-side { position: sticky; top: 112px; }
}
@media (min-width: 1600px) {
    .api-shell { grid-template-columns: 190px minmax(0, 1fr) 350px; grid-template-areas: "toc intro side" "toc docs side"; grid-template-rows: auto 1fr; }
    .api-shell > .api-toc { top: 84px; display: grid; gap: 2px; padding: 0; background: none; overflow: visible; }
    .api-shell > .api-toc .api-toc__title { display: block; }
    .api-shell > .api-toc .acc-nav__link { height: 34px; border: 0; background: none; font-size: 13.5px; }
    .api-shell > .api-toc .acc-nav__link:hover { background: #fff; }
    .api-shell > .api-toc .acc-nav__link.is-on { background: #eaf5f0; }
    .api-shell > .api-side { top: 84px; }
}
@media (min-width: 1900px) { .api-shell { grid-template-columns: 200px minmax(0, 1fr) 380px; } }
@media (max-height: 760px) and (min-width: 1100px) { .api-shell > .api-side { position: static; } }
@media (max-width: 1099px) { .api-shell > .api-toc { display: flex; flex-wrap: wrap; gap: 6px; } .api-docs-card { padding: 4px 18px 8px; } .api-intro__title { font-size: 21px; } }
/* public page: fixed site header is taller */
.api-public { max-width: 1760px; padding-top: 110px; }
.api-public .api-shell > .api-toc { top: 76px; }
.api-public .api-shell > .api-side { top: 132px; }
@media (min-width: 1600px) { .api-public .api-shell > .api-toc, .api-public .api-shell > .api-side { top: 96px; } }
.api-public .api-panel__head .acc-card__ico { display: grid; place-items: center; background: #eaf5f0; color: #0f7b5a; }
.api-doc__facts li:first-child { grid-column: 1 / -1; }

/* ---------- round 3: support wide layout ---------- */
.tk-page { max-width: 1760px; }
.tk-shell { grid-template-columns: 360px minmax(0, 1fr); }
.tk-info { display: none; }
.tk-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tk-filters::-webkit-scrollbar { display: none; }
.tk-filter { flex: none; }
@media (min-width: 1600px) {
    .tk-page.has-ticket .tk-shell { grid-template-columns: 340px minmax(0, 1fr) 300px; }
    .tk-info { display: block; padding: 20px; border-left: 1px solid var(--acc-line); background: #fbfaf7; }
}
@media (min-width: 1100px) and (max-width: 1599px) { .tk-shell { grid-template-columns: 320px minmax(0, 1fr); } }
@media (min-width: 901px) and (max-width: 1099px) { .tk-shell { grid-template-columns: 280px minmax(0, 1fr); } }
.tk-info__title { margin: 0 0 14px; font-size: 14px; font-weight: 800; color: var(--text); }
.tk-info__dl { display: grid; gap: 10px; margin: 0; }
.tk-info__dl > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tk-info__dl dt { font-size: 12.5px; color: var(--text3); }
.tk-info__dl dd { margin: 0; font-size: 13px; font-weight: 650; color: var(--text); text-align: right; }
.tk-info__sub { margin: 20px 0 8px; padding-top: 16px; border-top: 1px solid var(--acc-line); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.tk-info__atts { display: grid; gap: 6px; }
.tk-info__atts a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--acc-line); border-radius: 10px; background: #fff; font-size: 12.5px; color: var(--text2); text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.tk-info__atts a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-info__atts a:hover { border-color: rgba(15, 123, 90, .4); color: #0f7b5a; }
.tk-info__note { display: flex; gap: 8px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--acc-line); font-size: 12.5px; line-height: 1.5; color: var(--text3); overflow-wrap: anywhere; }
.tk-info__note .icon { flex: none; margin-top: 2px; }
@media (min-width: 1400px) { .acb-layout > .acb-current { justify-content: stretch; align-items: stretch; } .acb-layout > .acb-current .acb-current__facts > div { min-width: 0; } }
@media (min-width: 1200px) { .bz-brand .acc-grid { grid-template-columns: 1fr; } .bz-brand__grid { align-items: start; } }
.bz-api .bz-api__list { margin-bottom: 20px; }
.api-public { max-width: 1280px; margin-left: auto; margin-right: auto; }
@media (min-width: 1600px) { .api-public { max-width: 1440px; } }
.api-doc__facts li:last-child { grid-column: 1 / -1; }
