/* Hesabım ve ajans paneli — public/js/account/*.js. Sitenin renk değişkenlerini kullanır (tema ile değişir). */

#tab-account { padding: 28px 16px 64px; }
.ac-wrap { max-width: var(--maxw, 1160px); margin: 0 auto; display: grid; gap: 16px; }
.ac-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Üst kart */
.ac-head {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: var(--r-xl, 24px);
  background: radial-gradient(120% 140% at 0% 0%, var(--acc-soft), transparent 55%), var(--surface);
}
.ac-hello { flex: 1; min-width: 0; }
.ac-hello h1 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-hello span { color: var(--muted); font-size: 14px; }
.ac-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.ac-avatar { flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--grad, var(--acc)); color: var(--on-acc); font-weight: 800; }
.ac-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-avatar-lg { width: 64px; height: 64px; font-size: 26px; box-shadow: 0 0 0 4px var(--acc-soft); }
.ac-avatar-md { width: 72px; height: 72px; font-size: 28px; }
.ac-avatar-sm { width: 40px; height: 40px; font-size: 16px; }
/* Davet edilenin fotoğrafı: 12 px'lik kopya büyütülüp bulanıklaştırılır */
.ac-blur img { filter: blur(3px) saturate(.8); transform: scale(1.25); image-rendering: auto; }

/* Sekmeler */
.ac-tabs { display: flex; gap: 4px; padding: 6px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.ac-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid transparent; border-radius: 11px;
  background: transparent; color: var(--text-soft); font: 600 14.5px/1 var(--font); white-space: nowrap; cursor: pointer;
}
.ac-tab:hover { color: var(--text); background: var(--surface-2); }
.ac-tab[aria-current="page"] { color: var(--text); background: var(--surface-3); border-color: var(--line-2); }
.ac-tab[aria-current="page"] .ac-ic { color: var(--acc); }
.ac-tab:focus-visible, .ac-btn:focus-visible, .ac-input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.ac-body { display: grid; gap: 16px; }
.ac-title { margin: 8px 0 0; font-size: 20px; font-weight: 800; color: var(--text); }
.ac-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ac-card { display: grid; gap: 14px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: var(--r-lg, 18px); background: var(--surface); min-width: 0; }
.ac-card-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.ac-muted { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.ac-small { font-size: 12.5px; }
.ac-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(255, 77, 106, .1); border: 1px solid rgba(255, 77, 106, .35); color: #ffb3c0; font-size: 14px; }
.ac-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ac-row-start { justify-content: flex-start; }
.ac-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ac-lic-name { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--text); }

/* Sayılar */
.ac-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ac-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ac-stat { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); min-width: 0; }
.ac-stat b { font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ac-stat span { font-size: 12.5px; color: var(--muted); }

/* Kod ve bağlantı satırları */
.ac-code-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); min-width: 0; }
.ac-code-row > span { color: var(--muted); font-size: 13px; min-width: 64px; }
.ac-code-dashed { border-style: dashed; border-color: var(--acc-line); }
.ac-code { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font-family: var(--mono); font-size: 13px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-code-big { font-size: 22px; font-weight: 700; letter-spacing: .14em; color: var(--text); white-space: normal; overflow-wrap: anywhere; }
.ac-code-sm { flex: none; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }

/* Düğmeler */
.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 600 14.5px/1 var(--font); cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s;
}
.ac-btn:hover:not(:disabled) { border-color: rgba(255, 255, 255, .26); background: var(--surface-2); }
.ac-btn:active:not(:disabled) { transform: scale(.98); }
.ac-btn:disabled { opacity: .5; cursor: not-allowed; }
.ac-btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.ac-btn-primary { background: var(--grad, var(--acc)); border-color: transparent; color: var(--on-acc); box-shadow: var(--glow); }
.ac-btn-primary:hover:not(:disabled) { background: var(--acc-2); border-color: transparent; }
.ac-btn-danger { color: #ffb3c0; border-color: rgba(255, 77, 106, .35); }
.ac-btn-danger:hover:not(:disabled) { background: rgba(255, 77, 106, .12); border-color: rgba(255, 77, 106, .6); }
.ac-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
label.ac-btn { position: relative; }

/* Durum etiketleri */
.ac-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--text-soft); background: var(--surface-3); border: 1px solid var(--line-2); white-space: nowrap; }
.ac-pill.is-ok { color: #86efbd; background: rgba(63, 207, 142, .12); border-color: rgba(63, 207, 142, .35); }
.ac-pill.is-warn { color: #ffd98a; background: rgba(255, 196, 77, .12); border-color: rgba(255, 196, 77, .35); }
.ac-pill.is-bad { color: #ffb3c0; background: rgba(255, 77, 106, .12); border-color: rgba(255, 77, 106, .35); }
.ac-pill.is-live { color: #fff; background: var(--live, #ff4d6a); border-color: transparent; }

/* Formlar */
.ac-form { display: grid; gap: 14px; }
.ac-form > .ac-btn { justify-self: start; }
.ac-form-row > .ac-btn { justify-self: stretch; }
.ac-form-row { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
.ac-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ac-field { display: grid; gap: 6px; min-width: 0; }
.ac-field label { font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.ac-input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); color: var(--text); font: 500 15px/1.2 var(--font); }
.ac-input:disabled { opacity: .7; }
.ac-select { min-height: 36px; width: auto; padding: 0 10px; font-size: 13.5px; }
.ac-hint { color: var(--muted); font-size: 12.5px; }

/* Paketler */
.ac-pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ac-pkg { position: relative; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); color: var(--text); }
.ac-pkg.is-hot { border-color: var(--acc-line); }
.ac-pkg.is-mine { box-shadow: inset 0 0 0 1px var(--acc); }
.ac-pkg-price { font-size: 20px; font-weight: 800; }
.ac-pkg small { color: var(--muted); }
.ac-pkg-tag { justify-self: start; font-size: 11.5px; font-weight: 700; color: var(--acc); }

/* Davet */
.ac-invite { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ac-invite-main, .ac-invite-side { display: grid; gap: 12px; }
.ac-invite p { margin: 0; color: var(--text-soft); line-height: 1.55; }
.ac-ref-list { display: grid; gap: 8px; }
.ac-ref { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.ac-ref-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ac-ref-main b { color: var(--text); }
.ac-ref-main small { color: var(--muted); }

/* Ajans */
.ac-agency { display: grid; gap: 16px; }
.ac-seat-list { display: grid; gap: 10px; }
.ac-seat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.ac-seat-main { display: grid; gap: 6px; min-width: 0; }
.ac-seat-main b { color: var(--text); font-size: 16px; }
.ac-seat-main small { color: var(--muted); }
.ac-seat-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ac-cred { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--acc-line); border-radius: 14px; background: var(--acc-soft); }
.ac-cred > b { color: var(--text); }

/* Bildirim */
.ac-toast { position: fixed; left: 50%; bottom: 24px; z-index: 4000; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); font: 600 14px/1.35 var(--font); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .7); }
.ac-toast[data-kind="err"] { border-color: rgba(255, 77, 106, .55); color: #ffb3c0; }
.ac-toast[hidden] { display: none; }

@media (max-width: 900px) {
  .ac-grid, .ac-invite { grid-template-columns: minmax(0, 1fr); }
  .ac-form-row { grid-template-columns: minmax(0, 1fr); }
  .ac-stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ac-head { flex-wrap: wrap; padding: 16px; }
  .ac-head-actions { width: 100%; }
  .ac-head-actions .ac-btn { flex: 1; }
  .ac-two, .ac-stats-3 { grid-template-columns: minmax(0, 1fr); }
  .ac-code-big { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .ac-btn { transition: none; } }
