/* Teymensel Hesap - Google Hesap benzeri koyu tema */
:root {
  --bg: #131314; --surface: #1e1f20; --surface-2: #28292a; --surface-3: #333537;
  --text: #e3e3e3; --muted: #9aa0a6; --line: #2f3032; --blue: #8ab4f8; --blue-bg: #0b3d6b;
  --green: #81c995; --red: #f28b82; --amber: #fdd663; --warn-bg: #4a2a00; --warn-line: #7a4a00;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hidden { display: none !important; }

/* Ust cubuk */
.top { position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 12px; background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.01em; margin-right: auto; padding: 4px 8px; border-radius: 10px; }
.brand b { font-weight: 500; color: var(--muted); }
.logo { width: 32px; height: 32px; border-radius: 9px; background: #fff; color: #000; display: grid; place-items: center; font-weight: 800; }
.top-right { display: flex; align-items: center; gap: 4px; }
.slot { position: relative; }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--text); }
.icon-btn:hover { background: var(--surface-2); }
.menu-btn { display: none; }
.avatar { border-radius: 50%; background: var(--surface-3); display: inline-grid; place-items: center; font-weight: 600; overflow: hidden; flex: none; color: var(--text); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-btn { border: 2px solid #3c4043; background: none; padding: 0; border-radius: 50%; display: grid; }
.avatar-btn:hover { border-color: var(--blue); }

/* Acilir paneller */
.pop { position: absolute; right: 0; top: 52px; z-index: 80; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 48px rgba(0,0,0,.55); overflow: hidden; }
.pop-accounts { width: min(360px, calc(100vw - 24px)); }
.pop-apps { width: min(340px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; padding: 14px; }
.pop-head { padding: 22px 16px 14px; text-align: center; }
.pop-head .name { font-size: 16px; font-weight: 600; margin-top: 10px; }
.pop-head .mail { color: var(--muted); font-size: 13px; }
.pop-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; }
.pop-row:hover { background: var(--surface-2); }
.pop-row .meta { flex: 1; min-width: 0; }
.pop-row .meta div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-row .sub { color: var(--muted); font-size: 12px; }
.pop-foot { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.pill { border: 1px solid #5f6368; background: none; border-radius: 999px; padding: 9px 18px; font-weight: 500; color: var(--blue); }
.pill:hover { background: rgba(138,180,248,.08); }
.pill.fill { background: var(--blue); color: #062e6f; border-color: var(--blue); }
.pill.fill:hover { filter: brightness(1.08); }
.pill.danger { color: var(--red); border-color: #5f3a38; }
.pill:disabled { opacity: .5; cursor: not-allowed; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 14px; text-align: center; font-size: 12px; }
.app-tile:hover { background: var(--surface-2); }
.app-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #111; }

/* Yerlesim */
.layout { display: flex; max-width: 1400px; margin: 0 auto; }
.side { width: 272px; flex: none; padding: 8px 12px 24px 8px; position: sticky; top: 64px; align-self: flex-start; height: calc(100vh - 64px); overflow: auto; }
.nav-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 6px 16px 6px 8px; margin-bottom: 4px; border: 0; background: none; border-radius: 999px; text-align: left; font-weight: 500; }
.nav-item:hover { background: var(--surface-2); }
.nav-item.active { background: var(--blue-bg); }
.nav-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #111; }
.nav-ico svg { width: 20px; height: 20px; }
.main { flex: 1; min-width: 0; padding: 8px 24px 24px; display: flex; flex-direction: column; min-height: calc(100vh - 64px); }
.view { width: 100%; max-width: 780px; margin: 0 auto; flex: 1; outline: none; }
.foot { max-width: 780px; margin: 48px auto 0; width: 100%; color: var(--muted); font-size: 12px; }
.foot-links { display: flex; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }

/* Ana sayfa */
.hero { text-align: center; padding: 24px 0 8px; }
.hero .avatar-wrap { position: relative; display: inline-block; }
.hero .edit { position: absolute; right: 0; bottom: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); border: 3px solid var(--bg); display: grid; place-items: center; }
.hero .edit svg { width: 16px; height: 16px; }
.hero h1 { font-size: 32px; font-weight: 500; margin: 14px 0 4px; letter-spacing: -.01em; }
.hero .mail { color: var(--muted); font-size: 15px; }
.searchbox { position: relative; margin: 28px auto 16px; max-width: 700px; }
.searchbox input { width: 100%; height: 48px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); padding: 0 20px 0 52px; font: inherit; font-size: 16px; outline: none; }
.searchbox input:focus { background: var(--surface-3); box-shadow: 0 0 0 2px var(--blue); }
.searchbox > svg { position: absolute; left: 18px; top: 12px; color: var(--muted); }
.results { position: absolute; left: 0; right: 0; top: 54px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; z-index: 20; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.results a { display: block; padding: 12px 20px; border-top: 1px solid var(--line); }
.results a:first-child { border-top: 0; }
.results a:hover, .results a.sel { background: var(--surface-2); }
.results small { color: var(--muted); display: block; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.chip { border: 1px solid #5f6368; border-radius: 10px; padding: 8px 16px; font-weight: 500; background: none; }
.chip:hover { background: var(--surface-2); }

/* Kartlar */
.card { background: var(--surface); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.card > h2 { font-size: 16px; font-weight: 500; margin: 0; padding: 18px 24px 4px; }
.card > p.lead { color: var(--muted); margin: 0; padding: 0 24px 14px; }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 20px 24px; display: flex; gap: 16px; }
.warn .ic { color: var(--amber); }
.warn.info { background: var(--surface); border-color: var(--line); }
.warn.info .ic { color: var(--blue); }
.warn h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.warn p { margin: 0; color: #d8c7a5; line-height: 1.5; }
.warn.info p { color: var(--muted); }
.warn .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.warn .body { flex: 1; }
.btn-text { border: 0; background: none; color: var(--text); padding: 9px 14px; border-radius: 999px; font-weight: 600; }
.btn-text:hover { background: rgba(255,255,255,.08); }
.more { background: var(--surface-2); border-radius: var(--radius); }
.more > button { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; background: none; padding: 18px 24px; font-weight: 500; font-size: 15px; }
.more .count { background: var(--bg); border-radius: 10px; padding: 4px 10px; display: inline-flex; gap: 6px; align-items: center; }
.more .inner { padding: 0 8px 8px; }
.row { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); }
.row.link:hover { background: var(--surface-2); cursor: pointer; }
.row .meta { flex: 1; min-width: 0; }
.row .t { font-weight: 500; }
.row .s { color: var(--muted); font-size: 13px; margin-top: 2px; word-break: break-word; }
.row .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--blue); flex: none; }
.row .ico svg { width: 20px; height: 20px; }
.badge { font-size: 11px; border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.badge.ok { background: #0f3d22; color: var(--green); }
.badge.bad { background: #4a1d1a; color: var(--red); }
.badge.mut { background: var(--surface-3); color: var(--muted); }
.score { display: flex; align-items: center; gap: 24px; padding: 22px 24px; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--surface-3) 0); flex: none; }
.ring span { width: 66px; height: 66px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 20px; font-weight: 600; }
.page-title { font-size: 28px; font-weight: 500; margin: 20px 0 6px; letter-spacing: -.01em; }
.page-sub { color: var(--muted); margin: 0 0 22px; line-height: 1.5; }

/* Formlar */
.field { display: block; padding: 10px 24px; }
.field label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1px solid #5f6368; border-radius: 10px; color: var(--text); padding: 12px 14px; font: inherit; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.field input[readonly] { color: var(--muted); background: var(--surface-2); border-color: transparent; }
.field .hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.qr { background: #fff; padding: 10px; border-radius: 12px; width: 176px; height: 176px; display: grid; place-items: center; }
.secret { font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; word-break: break-all; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.keybox { margin: 10px 24px 4px; padding: 14px; border: 1px dashed #5f6368; border-radius: 12px; word-break: break-all; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #e3e3e3; color: #131314; border-radius: 12px; padding: 12px 20px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #f9dedc; color: #410e0b; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 60; display: none; }
.skeleton { height: 160px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; margin-bottom: 16px; }
@keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .side { position: fixed; left: 0; top: 0; height: 100vh; width: 290px; background: var(--surface); z-index: 70; transform: translateX(-102%); transition: transform .25s; padding-top: 72px; }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; }
  .main { padding: 8px 14px 24px; }
  .hero h1 { font-size: 26px; }
  .two { grid-template-columns: 1fr; }
  .brand span:last-child { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Oturum acmamis ziyaretci tanitim sayfasi */
.intro { max-width: 600px; margin: 30px auto 0; padding: 0 8px; line-height: 1.6; font-size: 14px; }
.intro-art { text-align: center; margin: 12px 0 34px; }
.intro p { margin: 0 0 16px; }
.intro a:not(.pill) { color: var(--blue); text-decoration: underline; }
.intro-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 34px; }
.pill.big { padding: 12px 28px; min-width: 190px; text-align: center; border-radius: 999px; font-weight: 500; }
.signin-pill { background: #c2e7ff; color: #001d35; border-color: #c2e7ff; padding: 10px 20px; }
.signin-pill:hover { background: #d3edff; }
a.pill { display: inline-block; }

.intro-art svg { width: 170px; height: 128px; stroke-width: 1.6; }
