/* /account paneli — app.css değişkenleri üzerine */
.acct { max-width: 1080px; margin: 0 auto; padding: 18px 20px 60px; }
.acct-head { display: flex; align-items: center; gap: 16px; margin: 10px 0 22px; }
.acct-head h1 { margin: 0; font-size: 26px; line-height: 1.2; }
.acct-email { margin: 2px 0 0; color: var(--muted); font-size: 14px; word-break: break-all; }
.acct-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #000;
  background: linear-gradient(135deg, #fbbf24, var(--amber) 55%, #d97706);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

.acct-tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 22px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  overflow-x: auto; scrollbar-width: none;
}
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tabs button {
  flex: 1 0 auto; background: none; border: 0; color: var(--muted); cursor: pointer;
  padding: 9px 14px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s;
}
.acct-tabs button:hover { color: var(--text); }
.acct-tabs button[aria-selected="true"] { background: var(--amber-soft); color: var(--amber); }

.acct :focus-visible, .acct-dialog :focus-visible, .topnav :focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

[role="tabpanel"] { outline: none; }
.acct-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.acct-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.acct-card + .acct-card { margin-top: 16px; }
.acct-grid .acct-card + .acct-card { margin-top: 0; }
.acct-card h2 { margin: 0 0 14px; font-size: 17px; }
.acct-card h3 { margin: 18px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.acct-hero { background: linear-gradient(135deg, rgba(245, 158, 11, .14), var(--panel) 60%); border-color: rgba(245, 158, 11, .35); }
.acct-kicker { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.acct-big { font-size: 26px; font-weight: 800; margin: 2px 0 4px; }
.acct-muted { color: var(--muted); font-size: 14px; margin: 0; }

.acct-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
}
.acct-badge.ok { color: var(--green); border-color: rgba(16, 185, 129, .4); background: rgba(16, 185, 129, .08); }
.acct-badge.warn { color: var(--amber); border-color: rgba(245, 158, 11, .4); background: var(--amber-soft); }
.acct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.acct-dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }

.acct-bar { margin: 12px 0; }
.acct-bar-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.acct-bar-track { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin-top: 5px; }
.acct-bar-fill { height: 100%; border-radius: 99px; background: var(--amber); transition: width .4s; }
.acct-bar-fill.full { background: var(--red); }

.acct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.acct-stat { background: var(--panel2); border-radius: 12px; padding: 12px 14px; }
.acct-stat b { display: block; font-size: 20px; }
.acct-stat span { color: var(--muted); font-size: 12px; }
.acct .btn.btn-ghost, .acct .btn.btn-danger, .acct .btn.btn-warn { border-width: 1px; border-style: solid; }
.acct .btn.btn-ghost { border-color: var(--border); }
.acct .btn.btn-danger { border-color: var(--red); }
.acct .btn.btn-warn { border-color: var(--amber); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.acct-list { list-style: none; margin: 0; padding: 0; }
.acct-item {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.acct-item:first-child { border-top: 0; padding-top: 0; }
.acct-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--panel2); display: grid; place-items: center; color: var(--amber); flex-shrink: 0; }
.acct-icon svg { width: 20px; height: 20px; }
.acct-main { flex: 1 1 200px; min-width: 0; }
.acct-title { font-weight: 700; overflow-wrap: anywhere; }
.acct-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 13px; margin-top: 2px; }
.acct-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }
.acct-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-btns .btn-ghost, .acct-btns .btn-danger { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.acct-secret { width: 100%; background: var(--bg); border: 1px dashed rgba(245, 158, 11, .45); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.acct-secret div { display: flex; align-items: center; gap: 8px; }
.acct-secret dt { color: var(--muted); font-size: 12px; min-width: 88px; }
.acct-secret dd { margin: 0; flex: 1; }
.acct-inline { display: flex; gap: 6px; flex: 1 1 200px; }
.acct-inline input { margin: 0; padding: 7px 10px; font-size: 14px; }
.acct-empty { color: var(--muted); text-align: center; padding: 18px 0; margin: 0; }

.acct-form { display: grid; gap: 0; max-width: 460px; }
.acct-form .btn { margin-top: 14px; justify-self: start; }
.acct-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--panel2); gap: 3px; margin-bottom: 4px; }
.acct-seg label { margin: 0; }
.acct-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acct-seg span { display: block; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; }
.acct-seg input:checked + span { background: var(--panel); color: var(--text); }
.acct-seg input:focus-visible + span { outline: 2px solid var(--amber); }
.acct-danger { border-color: rgba(239, 68, 68, .35); }
.acct-danger h2 { color: var(--red); }
.acct-row-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.acct-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 18px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px);
}
.acct-toast.show { opacity: 1; transform: translate(-50%, 0); }
.acct-toast.ok { border-color: rgba(16, 185, 129, .5); }
.acct-toast.err { border-color: rgba(239, 68, 68, .55); }

.acct-dialog {
  background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; width: min(420px, calc(100% - 32px));
}
.acct-dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.acct-dialog h2 { margin: 0 0 4px; font-size: 19px; }
.acct-or { text-align: center; margin: 16px 0 8px; }
#reauthGoogle { display: flex; justify-content: center; }

.acct .plans { margin-top: 6px; }

@media (max-width: 640px) {
  .acct { padding: 10px 16px 48px; }
  .acct-head h1 { font-size: 21px; }
  .acct-avatar { width: 46px; height: 46px; font-size: 17px; }
  .acct-card { padding: 18px; }
  .acct-tabs button { flex: 0 0 auto; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .acct *, .acct-toast { transition: none !important; animation: none !important; }
}
