/* =====================================================================
   TemaCode — müşteri paneli (/hesap)
   Sitenin dili: açık zemin, Geist, yuvarlak kartlar, turuncu→pembe vurgu
   ===================================================================== */

:root {
  --bg: #f6f6f7;
  --surface: #fff;
  --ink: #0a0a0b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-2: #f1f1f3;
  --grad: linear-gradient(100deg, #ff5a1f 0%, #ff2d6f 100%);
  --dark: #0b0b0f;
  --ok: #16a34a;
  --warn: #c2410c;
  --bad: #dc2626;
  --wa: #1fae5b;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r: 18px;
  --shadow: 0 1px 2px rgba(10, 10, 11, .04), 0 12px 32px -14px rgba(10, 10, 11, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid #ff5a1f; outline-offset: 2px; border-radius: 6px; }

.acc-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }

/* ---------------------------------------------------------- üst çubuk */
.acc-top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.acc-top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.acc-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; font-size: 16px; }
.acc-logo small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: -2px; }
.acc-logo.big { font-size: 20px; margin-bottom: 26px; }
.acc-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--dark); color: #ff5a1f; flex: none; }
.acc-nav { display: flex; gap: 4px; flex: 1; }
.acc-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.acc-nav a:hover { background: var(--line-2); color: var(--ink); }
.acc-nav a.on { background: var(--ink); color: #fff; }
.acc-user { display: flex; align-items: center; gap: 10px; }
.acc-user form { margin: 0; }
.acc-avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; }
.acc-user-name { font-size: 14px; font-weight: 600; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-link { background: none; border: 0; padding: 6px 8px; color: var(--muted); font-size: 13.5px; border-radius: 8px; }
.acc-link:hover { color: var(--ink); background: var(--line-2); }

.acc-main { padding-top: clamp(22px, 4vw, 40px); padding-bottom: 60px; flex: 1; }
.acc-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 16px 34px; }
.acc-foot a { color: var(--ink-2); }

/* ---------------------------------------------------------- düğme + uyarı */
.acc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.acc-btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.acc-btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.acc-btn.primary:hover { background: var(--grad); border-color: transparent; }
.acc-btn.ghost { background: transparent; }
.acc-btn.light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #fff; }
.acc-btn.light.ok { background: #16a34a; border-color: #16a34a; }
.acc-btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.acc-btn.full { width: 100%; }
.acc-btn + .acc-btn.full { margin-top: 8px; }

.acc-alert { padding: 13px 16px; border-radius: 14px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.acc-alert.ok { background: #ecfdf3; border-color: #bbf0cf; color: #146c3a; }
.acc-alert.err { background: #fef2f2; border-color: #fbd0d0; color: #9f1d1d; }
.acc-alert.warn { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.acc-alert.warn a { font-weight: 600; margin-left: 4px; }

.lic-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.lic-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lic-badge.s-active { background: #e7f6ee; color: #15803d; }
.lic-badge.s-expired { background: #fff4e0; color: #a35d00; }
.lic-badge.s-suspended { background: #fff1e8; color: var(--warn); }
.lic-badge.s-revoked, .lic-badge.s-deleted { background: #fdecec; color: var(--bad); }

/* ---------------------------------------------------------- giriş ekranları */
.acc-auth { background: radial-gradient(60% 50% at 15% 0%, rgba(255, 90, 31, .14), transparent 70%), radial-gradient(50% 45% at 90% 10%, rgba(255, 45, 111, .12), transparent 70%), var(--bg); }
.acc-auth-main { flex: 1; display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 5vw, 38px); box-shadow: 0 40px 80px -40px rgba(10, 10, 11, .35); }
.auth-card h1 { font-size: 26px; letter-spacing: -.04em; margin: 0 0 6px; }
.auth-sub { color: var(--muted); margin: 0 0 22px; font-size: 14.5px; }
.auth-links { margin-top: 18px; text-align: center; font-size: 13.5px; }
.auth-links a { color: var(--muted); }

.acc-form { display: grid; gap: 14px; }
.acc-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.acc-form input, .acc-form textarea, .acc-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: 400 15px var(--sans); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.acc-form input:focus, .acc-form textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10, 10, 11, .06); }
.acc-form .acc-btn { justify-self: start; }
.acc-form .acc-btn.full { justify-self: stretch; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------------------------------------------------------- pano */
.acc-eyebrow { display: inline-block; font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.acc-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: clamp(22px, 4vw, 34px); margin-bottom: 20px; border-radius: 24px; background: var(--dark); color: #fafafa; position: relative; overflow: hidden; }
.acc-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 420px; background: radial-gradient(closest-side, rgba(255, 90, 31, .35), transparent), radial-gradient(closest-side at 70% 60%, rgba(255, 45, 111, .3), transparent); filter: blur(20px); pointer-events: none; }
.acc-hero > * { position: relative; }
.acc-hero .acc-eyebrow { color: #a1a1aa; }
.acc-hero h1 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.045em; line-height: 1.1; margin: 0 0 8px; }
.acc-hero p { margin: 0; color: #a1a1aa; max-width: 520px; }
.acc-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-stats div { min-width: 104px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.acc-stats b { display: block; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.acc-stats span { font-size: 12.5px; color: #a1a1aa; }
.acc-stats .warn b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.lic-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.lic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lic-cover { position: relative; display: block; aspect-ratio: 16 / 8; background: var(--line-2); border-bottom: 1px solid var(--line); }
.lic-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lic-cover .lic-badge { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.lic-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 34px; font-weight: 700; letter-spacing: -.04em; color: #fff; background: linear-gradient(135deg, var(--accent, #ff5a1f), #0b0b0f); }
.lic-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.lic-title { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.lic-domain { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.lic-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.lic-key-mini { font-size: 12.5px; color: var(--muted); padding-top: 8px; border-top: 1px dashed var(--line); }

.acc-empty { text-align: center; padding: 54px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: 24px; }
.acc-empty h2 { margin: 0 0 6px; letter-spacing: -.03em; }
.acc-empty p { color: var(--muted); margin: 0 auto 18px; max-width: 440px; }

/* ---------------------------------------------------------- lisans detayı */
.acc-back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 14px; }
.acc-back:hover { color: var(--ink); }
.lic-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; align-items: center; padding: clamp(22px, 4vw, 34px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; position: relative; overflow: hidden; }
.lic-head::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--accent, #ff5a1f); }
.lic-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.045em; line-height: 1.05; margin: 0 0 8px; }
.lic-head p { margin: 0 0 14px; color: var(--ink-2); }
.lic-head-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.lic-head-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 10; }
.lic-head-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.acc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.acc-stack { display: grid; gap: 20px; }
.acc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 24px); min-width: 0; }
.acc-card h2 { font-size: 16px; letter-spacing: -.02em; margin: 0 0 14px; }

.key-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; background: var(--dark); color: #fafafa; margin-bottom: 16px; background-image: radial-gradient(120% 140% at 100% 0%, rgba(255, 90, 31, .22), transparent 55%); }
.key-box code { flex: 1; min-width: 0; font-size: clamp(15px, 2.4vw, 19px); font-weight: 600; letter-spacing: .06em; overflow-wrap: anywhere; }
.steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }

.feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px 16px; }
.feat li { position: relative; padding-left: 26px; font-size: 14.5px; }
.feat li::before { content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat, var(--grad); }

.sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sites li { display: flex; gap: 12px; align-items: flex-start; }
.sites b { display: block; }
.sites small { display: block; color: var(--muted); font-size: 12.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: none; background: #a1a1aa; }
.dot.ok { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .16); }

.expiry { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.expiry b { font-size: 44px; line-height: 1; letter-spacing: -.05em; }
.expiry span { color: var(--muted); }
.expiry.warn b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-bottom: 14px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.kv { margin: 0 0 14px; display: grid; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.help { background: linear-gradient(180deg, #fff, #fafafa); }
.help p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }

.acc-page-head { margin-bottom: 18px; }
.acc-page-head h1 { margin: 0; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -.045em; }

@media (max-width: 960px) {
  .acc-cols, .lic-head { grid-template-columns: 1fr; }
  .acc-user-name { display: none; }
}
@media (max-width: 640px) {
  .acc-top-in { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  .acc-logo small { display: none; }
  .acc-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .acc-user { margin-left: auto; }
  .grid2 { grid-template-columns: 1fr; }
  .acc-stats { width: 100%; }
  .acc-stats div { flex: 1; min-width: 0; }
}

/* kayıt */
.auth-card.wide { max-width: 560px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.acc-form label.chk { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.acc-form label.chk input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #0a0a0b; }
.auth-links .sep { margin: 0 6px; color: var(--line); }
.auth-links a.strong { color: var(--ink); font-weight: 600; }
.hint a { color: var(--ink); }
