/* ==========================================================================
   BlackID — arayüz
   Apple tasarım ilkeleri: anında geri bildirim, yumuşak yaylı hareket,
   yarı saydam katmanlar, boyuta göre tipografi.
   ========================================================================== */

:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --ink-4: #86868b;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .12);
  --bg: #f5f5f7;
  --card: #ffffff;
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .08);

  --red: #e41e26;
  --red-ink: #c4141b;
  --red-soft: rgba(228, 30, 38, .08);
  --green: #1a9b4b;
  --green-soft: rgba(26, 155, 75, .1);
  --amber: #b26b00;
  --amber-soft: rgba(255, 159, 10, .14);

  --yin: #111113;
  --yin-2: #1c1c1f;
  --yin-3: #2a2a2e;
  --yang: #e41e26;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .02);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --sh-3: 0 10px 30px rgba(0, 0, 0, .08), 0 30px 60px rgba(0, 0, 0, .10);

  /* Kritik sönümlü yay (damping 1.0, response ~0.4) */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.32, .72, 0, 1);
  --press: 110ms;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* Hafif yaylanma — yalnızca momentum taşıyan geçişlerde */
    --spring: linear(0, .006, .025 2.8%, .101 6.1%, .539 18.9%, .721 25.3%, .849 31.5%, .937 38.1%, .968 41.8%, .991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.9%, 1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.47 var(--font);
  letter-spacing: -.009em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: rgba(228, 30, 38, .18); }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ---------- Tipografi ---------- */
.h-display { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.06; letter-spacing: -.028em; font-weight: 700; margin: 0; }
.h1 { font-size: 28px; line-height: 1.12; letter-spacing: -.022em; font-weight: 700; margin: 0; }
.h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.018em; font-weight: 650; margin: 0; }
.h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.012em; font-weight: 600; margin: 0; }
.sub { color: var(--ink-3); margin: 6px 0 0; font-size: 15px; }
.small { font-size: 13px; letter-spacing: -.003em; }
.tiny { font-size: 12px; letter-spacing: 0; }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }

/* ---------- Marka ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; user-select: none; }
.brand img { height: 22px; width: auto; }
.brand-id {
  display: inline-grid; place-items: center;
  height: 22px; padding: 0 7px 0 8px;
  border-radius: 7px;
  font: 800 12.5px/1 var(--font); letter-spacing: .12em;
  color: #fff;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(135deg, #2b2b2f 0%, #0b0b0c 70%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .18), 0 1px 2px rgba(0, 0, 0, .25);
  position: relative;
}
.brand-id::after {
  content: ""; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 2px var(--bg);
}
.brand--lg img { height: 34px; }
.brand--lg .brand-id { height: 32px; padding: 0 11px 0 12px; border-radius: 10px; font-size: 17px; }
.brand--lg .brand-id::after { width: 10px; height: 10px; right: -4px; top: -4px; }

/* ---------- Üst bar (yarı saydam malzeme) ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 245, 247, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-in { max-width: 1180px; margin: 0 auto; height: 58px; padding: 0 22px; display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; gap: 2px; margin-left: 8px; }
.nav-link {
  padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease), transform var(--press) ease-out;
}
.nav-link:hover { background: var(--fill-2); color: var(--ink); }
.nav-link:active { transform: scale(.96); }
.nav-link.is-active { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.nav-spacer { flex: 1; }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; transition: background .2s; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--fill-2); }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 6px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border-radius: 16px; box-shadow: var(--sh-3), inset 0 0 0 .5px var(--line-2);
  transform-origin: top right; animation: pop .32s var(--spring);
}
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; font-size: 14px; }
.menu-item:hover { background: var(--fill-2); }
.menu-item.danger { color: var(--red-ink); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Sayfa ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 34px 22px 120px; }
.page--narrow { max-width: 760px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-4); margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Kartlar ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1), 0 0 0 .5px var(--line); }
.card-pad { padding: 22px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-body { padding: 22px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stat { padding: 18px 20px; }
.stat-v { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ---------- Düğmeler ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform var(--press) ease-out, background .2s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active, .btn.is-pressed { transform: scale(.965); }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.btn--red { --bg: var(--red); }
.btn--ghost { --bg: var(--fill); --fg: var(--ink); }
.btn--ghost:hover { filter: none; background: rgba(118, 118, 128, .18); }
.btn--white { --bg: #fff; --fg: var(--ink); box-shadow: var(--sh-1), 0 0 0 .5px var(--line-2); }
.btn--danger { --bg: var(--red-soft); --fg: var(--red-ink); }
.btn--danger:hover { filter: none; background: rgba(228, 30, 38, .14); }
.btn--sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn--lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { width: 40px; padding: 0; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Form ---------- */
.field { display: block; margin-bottom: 16px; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 7px 2px; }
.hint { font-size: 12px; color: var(--ink-4); margin: 6px 0 0 2px; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--card); border: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 15px; transition: box-shadow .2s var(--ease), background .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #a1a1a6; }
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(0, 0, 0, .06); }
.input[readonly] { background: var(--fill-2); }
.select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%2386868b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.textarea.mono { font-size: 12.5px; line-height: 1.55; tab-size: 2; }
.row { display: flex; gap: 12px; align-items: center; }
.row-wrap { flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }

/* Büyük, Apple ID tarzı giriş alanı */
.ifield { position: relative; }
.ifield .input { height: 56px; padding: 22px 16px 6px; font-size: 17px; border-radius: 14px; }
.ifield label { position: absolute; left: 17px; top: 18px; font-size: 17px; color: var(--ink-4); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
.ifield .input:focus + label, .ifield .input:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.71); color: var(--ink-3); }
.ifield-stack { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--card); }
.ifield-stack .ifield + .ifield { border-top: 1px solid var(--line-2); }
.ifield-stack .input { box-shadow: none; background: transparent; border-radius: 0; }
.ifield-stack .ifield:first-child .input { border-radius: 14px 14px 0 0; }
.ifield-stack .ifield:last-child .input { border-radius: 0 0 14px 14px; }
.ifield-stack:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(0, 0, 0, .06); }

/* iOS anahtar */
.switch { position: relative; display: inline-block; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(120, 120, 128, .16); transition: background .25s var(--ease); }
.switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06);
  transition: transform .35s var(--spring), width .2s var(--ease);
}
.switch input:active + span::after { width: 32px; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:checked:active + span::after { transform: translateX(15px); }
.switch input:focus-visible + span { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; }
.switch--yin input:checked + span { background: var(--yin); }
.switch--yang input:checked + span { background: var(--yang); }

/* Yetki çipleri */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--fill-2); color: var(--ink-2); font-size: 13px; font-weight: 500;
  box-shadow: inset 0 0 0 1px transparent; transition: background .2s var(--ease), color .2s, box-shadow .2s, transform var(--press) ease-out;
}
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-4); transition: all .2s var(--ease); }
.chip:active span { transform: scale(.96); }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:checked + span::before { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m4 7.2 2 2 4-4.4'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; }
.is-yang .chip input:checked + span { background: var(--yang); }
.is-yang .chip input:checked + span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23e41e26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m4 7.2 2 2 4-4.4'/%3E%3C/svg%3E"); }

/* ---------- Segment kontrol (Yin / Yang) ---------- */
.seg {
  position: relative; display: inline-flex; padding: 3px; gap: 0; border-radius: 12px;
  background: rgba(118, 118, 128, .12); isolation: isolate;
}
.seg button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 16px; border: 0; background: none; border-radius: 9px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em;
  transition: color .3s var(--ease), transform var(--press) ease-out;
  -webkit-tap-highlight-color: transparent;
}
.seg button:active { transform: scale(.96); }
.seg button .count { font-size: 12px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(0, 0, 0, .06); color: var(--ink-3); transition: background .3s var(--ease), color .3s; }
.seg .seg-ind {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 9px;
  background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04), inset 0 0 0 .5px rgba(0, 0, 0, .04);
  transform: translateX(var(--x, 3px)); width: var(--w, 0);
  transition: transform .5s var(--spring), width .5s var(--spring), background .35s var(--ease);
}
.seg[data-active="yin"] .seg-ind { background: var(--yin); }
.seg[data-active="yang"] .seg-ind { background: var(--yang); }
.seg[data-active="yin"] button[data-tab="yin"], .seg[data-active="yang"] button[data-tab="yang"] { color: #fff; }
.seg[data-active="yin"] button[data-tab="yin"] .count, .seg[data-active="yang"] button[data-tab="yang"] .count { background: rgba(255, 255, 255, .2); color: #fff; }
.seg button[data-tab="all"][aria-selected="true"] { color: var(--ink); }

.yy { width: 16px; height: 16px; flex: none; }

/* ---------- Panel kartları (gösterge) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pcard {
  position: relative; display: flex; flex-direction: column; min-height: 208px; padding: 20px;
  border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--spring), box-shadow .4s var(--ease), opacity .35s var(--ease);
  will-change: transform;
}
.pcard--dark {
  color: #f5f5f7;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .09), transparent 50%),
    linear-gradient(160deg, #222226 0%, #121214 60%, #0c0c0d 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 10px 30px rgba(0, 0, 0, .12), inset 0 0 0 .5px rgba(255, 255, 255, .08);
}
.pcard--yang {
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(228, 30, 38, .10), transparent 55%),
    #fff;
  box-shadow: var(--sh-1), 0 0 0 .5px var(--line), 0 10px 30px rgba(228, 30, 38, .04);
}
.pcard:hover { transform: translateY(-3px); }
.pcard--dark:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 20px 44px rgba(0, 0, 0, .22), inset 0 0 0 .5px rgba(255, 255, 255, .1); }
.pcard--yang:hover { box-shadow: var(--sh-2), 0 0 0 .5px var(--line), 0 20px 44px rgba(228, 30, 38, .1); }
.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pcard-name { margin-top: 18px; font-size: 18px; font-weight: 650; letter-spacing: -.018em; line-height: 1.25; }
.pcard-desc { font-size: 13px; margin-top: 4px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard--dark .pcard-desc { color: rgba(245, 245, 247, .55); }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pcard-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard--dark .btn--go { --bg: #fff; --fg: #111; }
.pcard--dark .btn--go.is-disabled { opacity: .35; }
.pcard--yang .btn--go { --bg: var(--red); --fg: #fff; }
.pcard.is-hidden { display: none; }
.pcard--dark .tag { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .78); }

.side-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 7px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.side-pill--yin { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); }
.side-pill--yang { background: var(--red-soft); color: var(--red-ink); }
.side-pill--yin.on-light { background: var(--yin); color: #fff; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--fill-2); color: var(--ink-2); white-space: nowrap; }
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--red { background: var(--red-soft); color: var(--red-ink); }
.tag--amber { background: var(--amber-soft); color: var(--amber); }
.tag--dark { background: var(--ink); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* Panel logoları */
.plogo { display: inline-grid; place-items: center; flex: none; overflow: hidden; }
.plogo--md { width: 52px; height: 52px; border-radius: 14px; padding: 8px; }
.plogo--sm { width: 40px; height: 40px; border-radius: 11px; padding: 6px; }
.plogo--xs { width: 30px; height: 30px; border-radius: 8px; padding: 4px; }
.plogo--lg { width: 72px; height: 72px; border-radius: 18px; padding: 11px; }
.plogo img { width: 100%; height: 100%; object-fit: contain; }
.plogo.is-light { background: #fff; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06); }
.plogo.is-dark { background: #121214; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .2); }
.plogo--mono { font-weight: 700; letter-spacing: -.02em; color: #fff; }
.plogo--md.plogo--mono { font-size: 18px; }
.plogo--sm.plogo--mono { font-size: 15px; }
.plogo--xs.plogo--mono { font-size: 11px; }
.plogo--lg.plogo--mono { font-size: 24px; }
.plogo--mono { background: linear-gradient(145deg, #3a3a3f, #0d0d0e); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .25); }
.plogo--mono.plogo--yang { background: linear-gradient(145deg, #ff4d53, #c4141b); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25), 0 1px 2px rgba(196, 20, 27, .3); }
.pcard--dark .plogo--mono { background: linear-gradient(145deg, #4a4a50, #2a2a2e); }

/* Avatar */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 600; color: #fff; letter-spacing: -.01em;
  background: linear-gradient(145deg, hsl(var(--h) 45% 62%), hsl(calc(var(--h) + 25) 50% 42%)); }
.avatar--xs { width: 26px; height: 26px; font-size: 10.5px; }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.avatar--md { width: 40px; height: 40px; font-size: 14px; }
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }

/* ---------- Karşılama ---------- */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 30px 0 18px; }
.search { position: relative; width: 280px; max-width: 100%; }
.search .input { height: 38px; padding-left: 36px; border-radius: 11px; background: rgba(118, 118, 128, .1); box-shadow: none; font-size: 14px; }
.search .input:focus { background: #fff; }
.search svg { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; color: var(--ink-4); pointer-events: none; }
.search kbd { position: absolute; right: 9px; top: 9px; font: 600 11px/20px var(--font); padding: 0 6px; border-radius: 6px; color: var(--ink-4); background: rgba(0, 0, 0, .05); }

.recent { display: flex; gap: 10px; flex-wrap: wrap; }
.recent a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px; background: #fff; box-shadow: var(--sh-1), 0 0 0 .5px var(--line); font-size: 13.5px; font-weight: 550; transition: transform var(--press) ease-out, box-shadow .2s; }
.recent a:hover { box-shadow: var(--sh-2), 0 0 0 .5px var(--line); }
.recent a:active { transform: scale(.97); }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--fill-2); }

/* ---------- Liste / tablo ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); transition: background .15s; }
.list-row:first-child { border-top: 0; }
a.list-row:hover, .list-row.is-link:hover { background: rgba(0, 0, 0, .018); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-end { display: flex; align-items: center; gap: 8px; flex: none; }
.chev { width: 8px; height: 13px; color: #c7c7cc; flex: none; }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-4); padding: 12px 22px; border-bottom: 1px solid var(--line); letter-spacing: .02em; }
.table td { padding: 12px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Erişim düzenleyici ---------- */
.acc { border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1), 0 0 0 .5px var(--line); overflow: hidden; transition: box-shadow .3s var(--ease); }
.acc + .acc { margin-top: 12px; }
.acc-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-body > div { overflow: hidden; }
.acc.is-on .acc-body { grid-template-rows: 1fr; }
.acc-inner { padding: 4px 20px 20px 86px; }
@media (max-width: 620px) { .acc-inner { padding-left: 20px; } }
.acc.is-on.is-yin { box-shadow: 0 0 0 1.5px var(--yin), var(--sh-2); }
.acc.is-on.is-yang { box-shadow: 0 0 0 1.5px var(--yang), var(--sh-2); }
.pgroup + .pgroup { margin-top: 16px; }
.pgroup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.linkbtn { border: 0; background: none; padding: 2px 4px; cursor: pointer; color: var(--ink-3); font-size: 12px; font-weight: 600; border-radius: 6px; }
.linkbtn:hover { color: var(--ink); background: var(--fill-2); }
.adv { margin-top: 16px; }
.adv summary { cursor: pointer; font-size: 13px; color: var(--ink-3); font-weight: 600; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary::before { content: "›"; display: inline-block; transition: transform .25s var(--ease); font-size: 16px; line-height: 1; }
.adv[open] summary::before { transform: rotate(90deg); }

.tabpanes > [data-pane] { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Alt kaydetme çubuğu — yüzen malzeme */
.savebar {
  position: fixed; left: 50%; bottom: 22px; z-index: 30; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(29, 29, 31, .82); color: #fff;
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28), inset 0 0 0 .5px rgba(255, 255, 255, .12);
  font-size: 14px; white-space: nowrap;
  transition: transform .5s var(--spring), opacity .3s var(--ease);
}
.savebar.is-idle { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.savebar .btn { --bg: #fff; --fg: #111; }

/* ---------- Bildirimler ---------- */
.toasts { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: var(--sh-3), inset 0 0 0 .5px var(--line-2); font-size: 14px; font-weight: 500;
  animation: toastIn .55s var(--spring);
}
.toast.is-leaving { animation: toastOut .3s var(--ease) forwards; }
.toast-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-size: 13px; font-weight: 700; }
.toast--ok .toast-ic { background: var(--green); }
.toast--error .toast-ic { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.98); } }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 14px; background: var(--fill-2); }
.notice--warn { background: var(--amber-soft); color: #6b4300; }
.notice--ok { background: var(--green-soft); color: #0f5e2d; }
.notice--red { background: var(--red-soft); color: var(--red-ink); }
.notice--dark { background: var(--ink); color: #f5f5f7; }

/* Kimlik bilgisi kutusu */
.secret {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px;
  background: var(--fill-2); font-family: var(--mono); font-size: 13px; word-break: break-all;
}
.secret code { flex: 1; }

/* ---------- Kimlik doğrulama sayfaları ---------- */
.auth {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 40px 20px 60px;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(228, 30, 38, .07), transparent 60%),
    radial-gradient(700px 520px at -10% 110%, rgba(0, 0, 0, .06), transparent 60%),
    var(--bg);
}
.auth-box { width: 100%; max-width: 420px; text-align: center; animation: rise .7s var(--ease); }
.auth-box--wide { max-width: 520px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 34px; }
.auth-title { font-size: 32px; line-height: 1.1; letter-spacing: -.028em; font-weight: 700; margin: 0; }
.auth-sub { color: var(--ink-3); font-size: 16px; margin: 10px auto 28px; max-width: 360px; line-height: 1.45; }
.auth-form { text-align: left; }
.auth-foot { margin-top: 28px; font-size: 12.5px; color: var(--ink-4); }
.auth-alert { margin-bottom: 16px; text-align: left; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.arrow-btn { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--fill); color: var(--ink-3); transition: background .25s var(--ease), color .25s, transform var(--press) ease-out; }
.arrow-btn svg { width: 16px; height: 16px; }
.arrow-btn:active { transform: scale(.92); }
.ifield-stack.is-ready .arrow-btn { background: var(--ink); color: #fff; }

/* OTP kutuları */
.otp { display: flex; justify-content: center; gap: 8px; margin: 6px 0 22px; }
.otp input {
  width: 50px; height: 62px; border: 0; border-radius: 14px; text-align: center; font: 600 26px/1 var(--font); letter-spacing: 0;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); caret-color: var(--red);
  transition: box-shadow .2s var(--ease), transform .3s var(--spring);
}
.otp input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(0, 0, 0, .06); transform: translateY(-1px); }
.otp .sep { width: 10px; align-self: center; height: 2px; background: var(--line-2); border-radius: 2px; }
.otp.is-error { animation: shake .45s var(--ease); }
.otp.is-error input { box-shadow: inset 0 0 0 1.5px var(--red); }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
@media (max-width: 400px) { .otp input { width: 42px; height: 54px; font-size: 22px; } .otp { gap: 6px; } }

.qr-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; text-align: left; padding: 20px; }
.qr { width: 180px; height: 180px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 .5px var(--line-2), var(--sh-2); }
.qr svg, .qr img { width: 100%; height: 100%; }
@media (max-width: 520px) { .qr-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.steps li { counter-increment: s; display: flex; gap: 10px; }
.steps li::before { content: counter(s); width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }

.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 16px; border-radius: 16px; background: var(--fill-2); font-family: var(--mono); font-size: 15px; letter-spacing: .04em; }
.codes span { padding: 8px 10px; background: #fff; border-radius: 10px; text-align: center; box-shadow: var(--sh-1); }

.check { display: grid; gap: 2px; list-style: none; padding: 0; margin: 0; }
.check li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.check li:first-child { border-top: 0; }

dialog.sheet { border: 0; padding: 0; border-radius: 22px; width: min(440px, calc(100vw - 32px)); box-shadow: var(--sh-3); background: #fff; color: var(--ink); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
dialog.sheet[open] { animation: pop .4s var(--spring); }

.divider { height: 1px; background: var(--line); margin: 22px 0; border: 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; word-break: break-word; }

.footer { text-align: center; font-size: 12px; color: var(--ink-4); padding: 30px 0 10px; }

/* ---------- Erişilebilirlik ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .seg .seg-ind, .pcard, .switch span::after, .savebar, .acc-body { transition-duration: 160ms !important; transition-timing-function: ease !important; }
  .pcard:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .menu-pop, .savebar, .toast { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .savebar { background: #1d1d1f; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(0, 0, 0, .3); --line-2: rgba(0, 0, 0, .45); --ink-3: #3a3a3c; --ink-4: #48484a; }
  .nav { background: #fff; }
}

.ic { width: 18px; height: 18px; flex: none; }
.ic--sm { width: 15px; height: 15px; }
.brand-word { font-weight: 800; font-size: 15px; letter-spacing: .14em; color: var(--ink); }
.brand--lg .brand-word { font-size: 22px; }
.secret .btn { font-family: var(--font); letter-spacing: -.01em; }
#totp-secret { word-break: normal; word-spacing: .15em; }

/* Pasif / ayarlanmamış panel */
.pcard.is-off { opacity: .72; }
.pcard.is-off:hover { transform: none; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.status-pill--off { background: rgba(255, 159, 10, .18); color: #ffc46b; }
.status-pill--on { background: rgba(48, 209, 88, .16); color: #6fe08f; }
.acc.is-on { box-shadow: 0 0 0 1.5px var(--ink), var(--sh-2); }
