/* ==========================================================================
   NyxDrop — Kimlik doğrulama ve hesap alanı
   ========================================================================== */

/* ---------- Ortak form durumları ---------- */
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-optional { margin-left: 2px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--faint); border: 1px solid var(--border); }
.field-error { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12.5px; line-height: 1.45; color: #fca5a5; animation: fade-up .3s var(--ease) both; }
.field-error svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: rgba(248, 113, 113, 0.6); box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1); }
.check.is-invalid .check-box { border-color: rgba(248, 113, 113, 0.75); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); }
.input-group-1 .input { padding-right: 52px; }
.auth-link { color: #c4b5fd; font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-decoration-color: rgba(196, 181, 253, 0.3); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.auth-link svg { width: 14px; height: 14px; }
.auth-link:hover { color: #ede9fe; text-decoration-color: currentColor; }
button.auth-link { background: none; border: 0; padding: 0; cursor: pointer; }

/* Şifre gücü */
.strength { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--faint); }
.strength-bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength-bars span { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); transition: background .3s, box-shadow .3s; }
.strength-label { min-width: 104px; text-align: right; font-weight: 500; transition: color .3s; }
.strength[data-score='1'] .strength-bars span:nth-child(-n+1) { background: #f87171; box-shadow: 0 0 10px rgba(248, 113, 113, 0.5); }
.strength[data-score='1'] .strength-label { color: #fca5a5; }
.strength[data-score='2'] .strength-bars span:nth-child(-n+2) { background: #fbbf24; box-shadow: 0 0 10px rgba(251, 191, 36, 0.45); }
.strength[data-score='2'] .strength-label { color: #fde68a; }
.strength[data-score='3'] .strength-bars span:nth-child(-n+3) { background: #22d3ee; box-shadow: 0 0 10px rgba(34, 211, 238, 0.45); }
.strength[data-score='3'] .strength-label { color: #a5f3fc; }
.strength[data-score='4'] .strength-bars span { background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, 0.45); }
.strength[data-score='4'] .strength-label { color: #a7f3d0; }

/* 6 haneli kod girişi */
.otp { position: relative; width: 100%; max-width: 360px; margin: 0 auto; cursor: text; }
.otp-input {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0;
  font-size: 16px; border: 0; background: transparent; color: transparent; caret-color: transparent; outline: none;
}
.otp-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp-slots .otp-slot:nth-child(3) { margin-right: 6px; }
.otp-slots .otp-slot:nth-child(4) { margin-left: 6px; }
.otp-slot {
  position: relative; height: 58px; border-radius: 14px; display: grid; place-items: center;
  font: 600 24px/1 var(--font-mono); color: #fff; background: rgba(0, 0, 0, 0.38); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s, transform .25s var(--spring), background .2s;
}
.otp-slot.is-filled { border-color: rgba(167, 139, 250, 0.45); background: rgba(139, 92, 246, 0.1); animation: otp-pop .25s var(--spring); }
.otp-slot.is-active { border-color: rgba(139, 92, 246, 0.8); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16); }
.otp-slot.is-active:not(.is-filled)::after { content: ''; width: 2px; height: 26px; border-radius: 2px; background: #c4b5fd; animation: otp-caret 1s steps(1) infinite; }
.otp.is-error .otp-slot { border-color: rgba(248, 113, 113, 0.65); background: rgba(248, 113, 113, 0.08); }
.otp.is-error { animation: shake .45s var(--ease); }
.otp.is-disabled { opacity: .55; pointer-events: none; }
@keyframes otp-pop { from { transform: scale(.9); } }
@keyframes otp-caret { 50% { opacity: 0; } }

.otp-timer { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--faint); }
.otp-timer-bar { flex: 1; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.otp-timer-bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #22d3ee); transform-origin: left; transition: transform 1s linear; }
.otp-timer.is-low .otp-timer-bar span { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.otp-timer-text strong { color: var(--text-soft); font-variant-numeric: tabular-nums; }

/* ---------- Kimlik doğrulama sayfaları ---------- */
.page-auth .site-main { display: flex; flex-direction: column; justify-content: center; }
.auth-shell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 12px 0 24px; }
.auth-shell::before, .auth-split::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 40%; width: min(620px, 90vw); height: 420px;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.06) 45%, transparent 70%);
  filter: blur(20px);
}
.auth-card { --angle: 0deg; width: 100%; max-width: 460px; padding: 34px; isolation: isolate; }
.auth-card::after {
  content: ''; position: absolute; inset: -1px; z-index: 1; padding: 1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0%, rgba(139, 92, 246, 0.9) 9%, rgba(34, 211, 238, 0.85) 18%, transparent 30%, transparent 52%, rgba(244, 114, 182, 0.55) 64%, rgba(139, 92, 246, 0.75) 73%, transparent 85%);
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude; -webkit-mask-composite: xor;
  animation: rotate-border 9s linear infinite;
  opacity: .7;
}
.auth-head { text-align: center; }
.auth-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 17px; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 16px 40px -14px rgba(139, 92, 246, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: float 5s ease-in-out infinite;
}
.auth-icon svg { width: 26px; height: 26px; }
.auth-icon-green { background: linear-gradient(135deg, #10b981, #0ea5e9); box-shadow: 0 16px 40px -14px rgba(16, 185, 129, 0.8); }
.auth-icon-red { background: linear-gradient(135deg, #f43f5e, #f97316); box-shadow: 0 16px 40px -14px rgba(244, 63, 94, 0.8); animation: none; }
.auth-icon-spin { background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.35); box-shadow: none; animation: none; }
.auth-icon-spin .spinner { width: 24px; height: 24px; display: block; color: #c4b5fd; }
.auth-head h1, .auth-state h1 { font-size: clamp(24px, 3vw, 28px); font-weight: 700; }
.auth-head p, .auth-state p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.auth-head p strong { color: var(--text-soft); }
.auth-alert { margin-top: 20px; }
.auth-form { display: grid; gap: 18px; margin-top: 26px; }
.auth-form .btn-lg { margin-top: 4px; }
.auth-terms { align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.auth-terms .check-box { margin-top: 1px; }
.auth-terms .auth-link { font-size: inherit; }
.auth-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; font-size: 14px; color: var(--muted); }
.auth-foot-split { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; }
.auth-note { display: flex; align-items: flex-start; gap: 8px; max-width: 420px; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.auth-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.auth-state { text-align: center; padding: 4px 0; }
.auth-state .check-anim { width: 64px; height: 64px; margin: 0 auto 18px; }
.auth-state .auth-small { font-size: 13px; }
.auth-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

.auth-split {
  position: relative; display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 400px); gap: 36px;
  justify-content: center; align-items: center; padding: 12px 0 24px;
}
.auth-split .auth-card { max-width: none; }
.auth-perks { padding: 8px 4px; }
.auth-perks h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; margin: 10px 0 24px; }
.perk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.perk {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px;
  background: var(--surface-soft); border: 1px solid var(--border); backdrop-filter: blur(10px);
  transition: border-color .3s, transform .35s var(--ease);
}
.perk:hover { border-color: rgba(139, 92, 246, 0.35); transform: translateX(4px); }
.perk-icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: rgba(139, 92, 246, 0.13); border: 1px solid rgba(139, 92, 246, 0.3); color: #c4b5fd; }
.perk-icon svg { width: 19px; height: 19px; }
.perk strong { display: block; font-size: 14.5px; font-weight: 600; }
.perk span:not(.perk-icon) { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.perk-premium { background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(139, 92, 246, 0.1)); border-color: rgba(251, 191, 36, 0.28); }
.perk-premium .perk-icon { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.35); color: var(--amber); }

/* ---------- Hesap: ortak ---------- */
.page-account .site-main { padding-top: 24px; }
/* Tek sütunlu ızgaralar uzun içerikle (ör. user-agent) genişlemesin */
.page-account .account-content, .session-list, .recent-list, .flist, .usage-stack, .perk-list, .auth-form, .edit-form,
.tfa-form, .tfa-disable, .tfa-steps, .settings-form:not(.form-grid) { grid-template-columns: minmax(0, 1fr); }
.avatar-xl { width: 72px; height: 72px; font-size: 30px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.8); }
.avatar-xl.avatar-premium { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35), 0 16px 40px -14px rgba(139, 92, 246, 0.9); }
.acc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acc-head h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin-top: 4px; }
.acc-head p { margin-top: 6px; font-size: 14px; }
.mini-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--text-soft); background: var(--surface-soft); border: 1px solid var(--border); }
.mini-chip svg { width: 12px; height: 12px; }
.mini-chip.is-amber { color: #fde68a; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); }
.mini-chip.is-red { color: #fecaca; background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.3); }
.mini-chip.is-violet { color: #ddd6fe; background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.32); }
.mini-chip.is-cyan { color: #a5f3fc; background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.3); }
.mini-chip.is-green { color: #a7f3d0; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.3); }
.btn-ghost.is-danger:hover { color: #fecaca; background: rgba(248, 113, 113, 0.12); }

/* ---------- Genel bakış ---------- */
.acc-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 26px 28px; overflow: hidden;
  background: radial-gradient(ellipse 60% 120% at 0% 0%, rgba(139, 92, 246, 0.2), transparent 60%), radial-gradient(ellipse 50% 100% at 100% 100%, rgba(34, 211, 238, 0.1), transparent 60%), var(--surface);
}
.acc-hero-main { display: flex; align-items: center; gap: 20px; min-width: 0; }
.acc-hero-text { min-width: 0; }
.acc-hero-text h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 4px 0 4px; word-break: break-word; }
.acc-hero-text p { font-size: 13.5px; word-break: break-word; }
.acc-hero .chips { margin-top: 12px; }
.acc-hero .chips:empty { display: none; }
.acc-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.verify-banner { align-items: center; flex-wrap: wrap; }
.verify-banner-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.verify-banner-text strong { color: #fff; }
.verify-banner .btn { flex-shrink: 0; }

.acc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
.plan-card { --plan-color: #8b5cf6; overflow: hidden; }
.plan-card.is-premium {
  border-color: rgba(251, 191, 36, 0.32);
  background: radial-gradient(ellipse 80% 90% at 100% 0%, rgba(251, 191, 36, 0.12), transparent 60%), radial-gradient(ellipse 70% 80% at 0% 100%, rgba(139, 92, 246, 0.16), transparent 60%), var(--surface);
}
.plan-card.is-premium .card-title svg { color: var(--amber); }
.plan-top { display: flex; align-items: center; gap: 16px; }
.plan-emblem {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--plan-color), color-mix(in srgb, var(--plan-color) 45%, #0b0b15));
  box-shadow: 0 14px 30px -14px var(--plan-color), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.plan-emblem svg { width: 26px; height: 26px; }
.plan-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 700 24px/1.2 var(--font-display); }
.plan-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.plan-meta { margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.plan-meta div { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); }
.plan-meta dt { font-size: 12px; color: var(--faint); }
.plan-meta dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.plan-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.plan-cta .upsell { flex: 1 1 100%; }

.usage-stack { display: grid; gap: 20px; }
.usage-head .usage-value { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.usage-head span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.usage-head svg { width: 15px; height: 15px; }
.usage-bar.is-unlimited span { width: 100% !important; opacity: .35; background: repeating-linear-gradient(-45deg, rgba(139, 92, 246, 0.8) 0 8px, rgba(34, 211, 238, 0.6) 8px 16px); background-size: 200% 100%; animation: usage-flow 3s linear infinite; }
@keyframes usage-flow { to { background-position: 45px 0; } }
.usage-foot { font-size: 12px; color: var(--faint); }

.stats-grid .stat .stat-value { font-size: 26px; }
.stat-hint { font-size: 12px; color: var(--faint); margin-top: 2px; }

.limits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.limit-item {
  position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 15px; border-radius: 16px;
  background: rgba(0, 0, 0, 0.26); border: 1px solid var(--border); transition: border-color .25s, transform .3s var(--ease);
}
.limit-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.limit-icon { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.28); color: #c4b5fd; }
.limit-icon svg { width: 17px; height: 17px; }
.limit-label { font-size: 12.5px; color: var(--muted); }
.limit-value { font: 600 16px/1.3 var(--font-display); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.limit-value svg { width: 16px; height: 16px; }
.limit-item.is-on .limit-value svg { color: var(--green); }
.limit-item.is-locked { border-style: dashed; }
.limit-item.is-locked .limit-icon { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); color: var(--amber); }
.limit-item.is-locked .limit-value { color: var(--muted); }
.limit-item a.limit-upgrade { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 600; color: #fde68a; }
.limit-item a.limit-upgrade svg { width: 12px; height: 12px; }
.limit-item a.limit-upgrade:hover { text-decoration: underline; }
.retention-strip { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.retention-strip > span:first-child { font-size: 13px; color: var(--muted); margin-right: 4px; display: inline-flex; align-items: center; gap: 6px; }
.retention-strip > span:first-child svg { width: 15px; height: 15px; }

.recent-list { display: grid; gap: 10px; }
.ritem { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border); transition: border-color .2s, background .2s; animation: fade-up .45s var(--ease) both; }
.ritem:hover { border-color: var(--border-strong); background: rgba(0, 0, 0, 0.38); }
.ritem-body { flex: 1; min-width: 0; }
.ritem-name { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ritem-name:hover { color: #ddd6fe; }
.ritem-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ritem-meta svg { width: 12px; height: 12px; display: inline; vertical-align: -1px; }
.ritem-meta .mini-chip svg { vertical-align: 0; }
.ritem-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Boş durumlar */
.empty-state { text-align: center; padding: 44px 20px; }
.empty-state-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; color: #c4b5fd; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.3); animation: float 5s ease-in-out infinite; }
.empty-state-icon svg { width: 32px; height: 32px; }
.empty-state h3 { font-size: 18px; font-weight: 600; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 420px; margin: 8px auto 0; }
.empty-state .btn { margin-top: 20px; }

/* ---------- Dosyalarım ---------- */
.files-card { padding: 22px; }
.files-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 200px 170px auto; gap: 10px; align-items: center; }
.search-field { position: relative; }
.search-field > svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-field .input { padding-left: 42px; }
.search-field .input::-webkit-search-cancel-button { filter: invert(.7); cursor: pointer; }
#f-dir svg { transition: transform .3s var(--ease); }
#f-dir.is-asc svg { transform: rotate(180deg); }

.bulk-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 10px 12px 10px 16px; border-radius: 14px; font-size: 13.5px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.07)); border: 1px solid rgba(139, 92, 246, 0.38);
  animation: fade-up .3s var(--ease) both;
}
.bulk-actions { display: flex; gap: 6px; }

.flist { margin-top: 16px; display: grid; gap: 8px; }
.flist-cols { grid-template-columns: 24px minmax(0, 1fr) 124px 116px 146px; }
.flist-head { display: grid; align-items: center; gap: 14px; padding: 0 14px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.flist-head .check { gap: 0; }
.frow {
  display: grid; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 15px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border);
  transition: border-color .2s, background .2s, opacity .3s, transform .3s var(--ease);
  animation: fade-up .4s var(--ease) both; animation-delay: var(--d, 0s);
}
.frow:hover { border-color: var(--border-strong); background: rgba(0, 0, 0, 0.38); }
.frow.is-selected { border-color: rgba(139, 92, 246, 0.55); background: rgba(139, 92, 246, 0.08); }
.frow.is-removing { opacity: 0; transform: translateX(16px); }
.frow .check { gap: 0; }
.frow-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.frow-text { min-width: 0; }
.frow-name { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow-name:hover { color: #ddd6fe; }
.frow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.frow-meta .mini-chip { margin-right: -4px; }
.frow-cells { display: contents; }
.frow-cell { font-size: 13px; color: var(--text-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.frow-cell small { display: block; font-size: 11.5px; color: var(--faint); }
.frow-expiry.is-soon { color: #fde68a; }
.soon-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--amber); vertical-align: 2px; animation: pulse-ring-dot 1.6s ease-in-out infinite; }
@keyframes pulse-ring-dot { 50% { opacity: .3; } }
.frow-actions { display: flex; justify-content: flex-end; gap: 2px; }
.frow-actions .btn { color: var(--muted); }
.frow-actions .btn:hover { color: var(--text); }
.frow.is-disabled .frow-name { color: var(--muted); }
.pager-info strong { color: var(--text); }
.pager-buttons .btn.is-current { color: #fff; border-color: rgba(139, 92, 246, 0.55); background: rgba(139, 92, 246, 0.2); }
.pager-buttons .btn-sm:not(.btn-icon) { min-width: 34px; padding: 0 10px; }
.pager-gap { display: inline-grid; place-items: center; width: 24px; color: var(--faint); }

/* Düzenleme penceresi */
.edit-dialog { max-width: 580px; max-height: calc(100dvh - 40px); overflow-y: auto; padding: 26px; }
.edit-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.edit-head-text { flex: 1; min-width: 0; }
.edit-head h2 { margin: 0; font-size: 19px; }
.edit-head p { margin: 2px 0 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edit-head .btn { align-self: flex-start; }
.edit-form { display: grid; gap: 18px; }
.edit-form .alert { margin: 0; }
.edit-form .segmented label.is-locked { opacity: .5; cursor: not-allowed; }
.ret-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.ret-opt { position: relative; }
.ret-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ret-opt span {
  display: flex; align-items: center; justify-content: center; gap: 5px; height: 40px; padding: 0 10px; border-radius: 11px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border);
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.ret-opt span svg { width: 13px; height: 13px; }
.ret-opt span:hover { color: var(--text); border-color: var(--border-strong); }
.ret-opt input:checked + span { color: #fff; border-color: rgba(167, 139, 250, 0.6); background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.2)); box-shadow: 0 6px 18px -8px rgba(139, 92, 246, 0.9); }
.ret-opt input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.ret-opt.is-locked span { cursor: not-allowed; color: var(--faint); border-style: dashed; }
.ret-opt.is-locked span svg { color: var(--amber); }
.ret-opt.ret-keep { grid-column: span 2; }
.edit-actions {
  position: sticky; bottom: -26px; z-index: 2; display: flex; justify-content: flex-end; gap: 10px;
  margin: 4px -26px -26px; padding: 14px 26px 26px; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: linear-gradient(to bottom, rgba(14, 14, 25, 0), rgba(14, 14, 25, 0.96) 35%);
}
.edit-form .upsell { padding: 10px 12px; font-size: 13px; }
.edit-form .upsell .btn { height: 32px; }

/* ---------- Hesap ayarları ---------- */
.settings-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-jump a {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--muted); background: var(--surface-soft); border: 1px solid var(--border); transition: color .2s, border-color .2s, background .2s;
}
.settings-jump a svg { width: 14px; height: 14px; }
.settings-jump a:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); }
.settings-jump a.is-danger:hover { color: #fecaca; border-color: rgba(248, 113, 113, 0.4); }
.settings-card { scroll-margin-top: 96px; }
.settings-card:target { border-color: rgba(139, 92, 246, 0.45); }
.settings-head { display: flex; align-items: flex-start; gap: 16px; }
.settings-head > div { flex: 1; min-width: 0; }
.settings-head h2 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.settings-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; max-width: 640px; }
.settings-head p strong { color: var(--text-soft); }
.settings-icon { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); color: #c4b5fd; }
.settings-icon svg { width: 20px; height: 20px; }
.settings-icon-danger { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.3); color: var(--red); }
.settings-head-action { flex-shrink: 0; }
.settings-form { margin-top: 22px; }
.settings-form:not(.form-grid) { display: grid; gap: 16px; max-width: 520px; }
.settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.settings-actions .field-hint { margin-right: auto; }
.settings-card > .settings-actions { margin-top: 20px; justify-content: flex-start; }
.settings-form:not(.form-grid) .settings-actions { justify-content: flex-start; }
.current-email { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.26); border: 1px solid var(--border); }
.current-email-text { display: flex; flex-direction: column; min-width: 0; }
.current-email-text span { font-size: 12px; }
.current-email-text strong { font-size: 15px; word-break: break-all; }
#email-status { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#email-pending { margin-top: 14px; }
.confirm-word { font: 700 12px/1 var(--font-mono); padding: 3px 6px; border-radius: 6px; color: #fecaca; background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.3); }

/* 2FA */
.tfa-state { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, 0.26); border: 1px solid var(--border); flex-wrap: wrap; }
.tfa-state-icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.tfa-state-icon svg { width: 20px; height: 20px; }
.tfa-state.is-on { border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.06); }
.tfa-state.is-on .tfa-state-icon { background: rgba(52, 211, 153, 0.14); color: var(--green); }
.tfa-state-text { flex: 1; min-width: 200px; }
.tfa-state-text strong { display: block; font-size: 14.5px; }
.tfa-state-text span { font-size: 13px; color: var(--muted); }
.tfa-apps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tfa-setup { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 26px; margin-top: 22px; align-items: start; animation: fade-up .45s var(--ease) both; }
.qr-box { padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 22px 50px -22px rgba(139, 92, 246, 0.85); animation: pop-in .5s var(--spring); }
.qr-box img { width: 180px; height: 180px; image-rendering: pixelated; }
.tfa-steps { list-style: none; counter-reset: tfa; margin: 0; padding: 0; display: grid; gap: 16px; }
.tfa-steps li { counter-increment: tfa; position: relative; padding-left: 40px; font-size: 13.5px; color: var(--muted); }
.tfa-steps li::before { content: counter(tfa); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-display); color: #ddd6fe; background: rgba(139, 92, 246, 0.16); border: 1px solid rgba(139, 92, 246, 0.4); }
.tfa-steps li strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.secret-box { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); }
.secret-box code { flex: 1; min-width: 0; font: 600 13px/1.5 var(--font-mono); letter-spacing: .06em; color: #fff; word-break: break-all; }
.tfa-form { display: grid; gap: 14px; margin-top: 6px; }
.tfa-form .otp { margin: 0; }
.tfa-form .settings-actions { justify-content: flex-start; }
.tfa-form .input { max-width: 360px; }
.tfa-disable { margin-top: 16px; display: grid; gap: 16px; padding: 18px; border-radius: 16px; border: 1px solid rgba(248, 113, 113, 0.25); background: rgba(248, 113, 113, 0.04); animation: fade-up .35s var(--ease) both; }
.tfa-disable .otp { margin: 0; }

/* Oturumlar */
.session-list { display: grid; gap: 10px; margin-top: 20px; }
.session-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(0, 0, 0, 0.26); border: 1px solid var(--border); transition: border-color .2s, opacity .3s, transform .3s var(--ease); animation: fade-up .4s var(--ease) both; }
.session-item.is-current { border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.05); }
.session-item.is-removing { opacity: 0; transform: translateX(16px); }
.session-icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-soft); }
.session-icon svg { width: 20px; height: 20px; }
.session-item.is-current .session-icon { color: var(--green); background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); }
.session-info { flex: 1; min-width: 0; }
.session-info strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.session-info > span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.session-info .session-ua { font: 11px/1.4 var(--font-mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Duyarlı tasarım ---------- */
@media (max-width: 960px) {
  .auth-split { grid-template-columns: minmax(0, 520px); }
  .auth-perks { order: 2; }
  .acc-grid { grid-template-columns: minmax(0, 1fr); }
  .files-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .files-toolbar .search-field { grid-column: 1 / -1; }
  .page-account .account-nav { scrollbar-width: none; }
}
@media (max-width: 760px) {
  .flist-head { display: none; }
  .frow, .flist-cols { grid-template-columns: 24px minmax(0, 1fr) auto; row-gap: 10px; }
  .frow .frow-main { grid-column: 2 / 4; }
  .frow .frow-cell { grid-column: auto; font-size: 12.5px; }
  .frow .frow-cell::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
  .frow-cells { grid-column: 2 / 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .frow .frow-actions { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px; }
  .tfa-setup { grid-template-columns: minmax(0, 1fr); }
  .qr-box { justify-self: center; }
}
@media (max-width: 680px) {
  .auth-card { padding: 26px 20px; }
  .auth-shell, .auth-split { padding-top: 10px; }
  .otp-slot { height: 52px; font-size: 21px; border-radius: 12px; }
  .otp-slots { gap: 6px; }
  .otp-slots .otp-slot:nth-child(3) { margin-right: 3px; }
  .otp-slots .otp-slot:nth-child(4) { margin-left: 3px; }
  .acc-hero { padding: 22px 20px; }
  .acc-hero-main { align-items: flex-start; gap: 14px; }
  .avatar-xl { width: 56px; height: 56px; font-size: 24px; }
  .acc-hero-actions { width: 100%; }
  .acc-hero-actions .btn { flex: 1; }
  .files-card { padding: 16px; }
  .files-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .files-toolbar #f-dir { display: none; }
  .settings-head { flex-wrap: wrap; }
  .settings-head-action { width: 100%; }
  .settings-actions .btn { flex: 1; }
  .ritem-actions .btn:not(.btn-icon) { display: none; }
  .session-item { flex-wrap: wrap; }
  .session-item > .btn { flex: 1 1 100%; }
  .limits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .limit-item { padding: 12px; gap: 10px; flex-direction: column; }
  .stats-grid .stat .stat-value { font-size: 22px; }
  .edit-dialog { padding: 20px; }
  .edit-actions { bottom: -20px; margin: 4px -20px -20px; padding: 14px 20px 20px; }
  .modal { padding: 12px; }
  .strength-label { min-width: 0; }
}
