:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-2: #171717;
  --surface-3: #1e1e1e;
  --border: #232323;
  --border-2: #2e2e2e;
  --text: #f2f2f2;
  --muted: #8a8a8a;
  --accent: #f5b301;
  --accent-2: #ffcf40;
  --on-accent: #1a1200;
  --grad: linear-gradient(135deg, #ffd65a 0%, #f5b301 48%, #d99a00 100%);
  --danger: #ff4d6d;
  --success: #2ee6a6;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }

::selection { background: rgba(245,179,1, .4); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1d1d23; border-radius: 10px; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: #2a2a2a; }

#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============ BRAND ============ */
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.brand h1 span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #1a1200; background: var(--grad);
  box-shadow: 0 0 24px rgba(245,179,1, .45), inset 0 1px 0 rgba(255,255,255,.3);
}
.brand-lg { flex-direction: column; text-align: center; gap: 16px; margin-bottom: 28px; }
.logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.logo:has(img) { background: none; }
.brand-lg .logo { width: 64px; height: 64px; font-size: 30px; border-radius: 20px; animation: float 4s ease-in-out infinite; }
.brand-lg h1 { font-size: 30px; }
.brand-lg p { margin-top: 4px; }

@keyframes float { 50% { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(245,179,1, .55); } }

/* ============ BUTTONS ============ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
  font-weight: 600; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad); color: #1a1200;
  box-shadow: 0 6px 24px -6px rgba(245,179,1, .6), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 10px 34px -6px rgba(245,179,1, .85), 0 0 0 1px rgba(255,255,255,.1) inset; transform: translateY(-1px); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: #34343e; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 6px 24px -6px rgba(255, 77, 109, .6); }
.btn-danger:hover { box-shadow: 0 10px 30px -6px rgba(255, 77, 109, .85); }

.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--border);
  transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-3); }
.icon-btn.ghost { background: transparent; border-color: transparent; }
.icon-btn.ghost:hover { background: var(--surface-3); }
.icon-btn svg { width: 16px; height: 16px; }

.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.35); transform: scale(0); animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ============ FIELDS ============ */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 12px; font-weight: 600; color: #a3a3ad; letter-spacing: .2px; }
.field input, .field textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 11px 13px; outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { font-family: "JetBrains Mono", monospace; font-size: 12.5px; }
.field input:focus, .field textarea:focus, .input-wrap:focus-within {
  border-color: var(--accent); background: #0b0b0f;
  box-shadow: 0 0 0 4px rgba(245,179,1, .15);
}
.input-wrap {
  display: flex; align-items: center; gap: 4px; padding: 0 6px 0 13px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap > svg { color: var(--muted); width: 17px; height: 17px; }
.input-wrap input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 12px 6px; }
.input-wrap.plain { padding-left: 0; }
.input-wrap.plain input { padding-left: 13px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============ AUTH ============ */
.auth {
  position: relative; z-index: 2; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
}
.auth-card {
  position: relative; width: 100%; max-width: 410px; border-radius: 24px; padding: 1px; overflow: hidden;
  animation: rise .8s var(--ease) both;
}
.auth-border {
  position: absolute; inset: -60%;
  background: conic-gradient(from 0deg, transparent 0 60%, var(--accent) 75%, var(--accent-2) 85%, transparent 100%);
  animation: spin 5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth-inner {
  position: relative; border-radius: 23px; padding: 38px 32px 30px;
  background: rgba(5, 5, 7, .96); backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.auth-error { color: var(--danger); font-size: 13px; min-height: 18px; margin: -4px 0 10px; text-align: center; }
.auth-error.shake { animation: shake .45s; }
.auth-hint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 16px; line-height: 1.5; }
.auth-hint:empty { display: none; }
.auth-forgot { display: block; margin: 10px auto 0; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: color .15s, background .15s; }
.auth-forgot:hover { color: #ffcf40; background: rgba(245,179,1,.08); }
.auth-forgot-text { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.auth-ok { margin: -4px 0 10px; color: #4ade80; font-size: 13px; font-weight: 600; text-align: center; }
.human-check { display: flex; justify-content: center; min-height: 65px; margin: 2px 0 12px; }
.auth-switch { display: block; margin: 14px auto 0; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: #f5b301; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: color .15s, background .15s; }
.auth-switch:hover { color: #ffd65a; background: rgba(245,179,1,.08); text-decoration: underline; }
.auth-switch[hidden] { display: none; }
#changeFields[hidden] { display: none; }
.auth-foot { margin-top: 22px; color: #55555f; font-size: 12px; animation: rise 1s .2s var(--ease) both; }
.auth-card.shake { animation: shake .45s; }

@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.auth.leaving { animation: leave .5s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: scale(1.04); filter: blur(8px); } }

/* ============ APP LAYOUT ============ */
#auth { display: none !important; }
.app { position: relative; z-index: 2; display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
@keyframes fadeIn { from { opacity: 0; } }

.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px;
  padding: 22px 16px; border-right: 1px solid var(--border);
  background: rgba(5, 5, 7, .97);
}
.sidebar .brand { padding: 0 6px; }
.nav { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.nav-title { font-size: 11px; font-weight: 700; color: #4e4e58; text-transform: uppercase; letter-spacing: 1px; padding: 14px 10px 8px; }
#storeLayer { position: fixed; inset: 0; z-index: 40; background: #0a0a0a; }
#storeLayer iframe { width: 100%; height: 100%; border: 0; background: #0a0a0a; }
.loja-cta {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px; padding: 12px; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #ffd65a 0%, #f5b301 48%, #d99a00 100%);
  box-shadow: 0 10px 30px -12px rgba(245, 179, 1, .9), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s;
}
.loja-cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); animation: lojaShine 2.8s ease-in-out infinite;
}
.loja-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(90, 80, 255, 1); }
.loja-cta strong, .loja-cta small { display: block; position: relative; }
.loja-cta strong { font-size: 15px; letter-spacing: -.2px; }
.loja-cta small { font-size: 11px; opacity: .85; font-weight: 500; }
.loja-ico {
  position: relative; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.loja-ico svg { width: 18px; height: 18px; fill: #fff; }
@keyframes lojaShine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.nav-item {
  position: relative; width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px; color: #9b9ba6; font-weight: 500; text-align: left;
  transition: background .2s, color .2s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(245,179,1, .16), rgba(245,179,1, .02)); color: #fff; }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: var(--grad); box-shadow: 0 0 12px var(--accent);
}
.nav-item.active svg { color: var(--accent-2); }
.nav-item .count {
  margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px;
  background: var(--surface-3); color: var(--muted);
}
.nav-item.active .count { background: rgba(245,179,1, .25); color: #fff; }
.nav-item .dot { width: 8px; height: 8px; border-radius: 50%; margin: 0 5px; flex-shrink: 0; }
.nav-item.danger:hover { color: var(--danger); background: rgba(255, 77, 109, .08); }
.sidebar-foot { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.pf-card { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--border-2); background: linear-gradient(180deg, #181818, #111); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.pf-card:hover { border-color: rgba(245,179,1,.55); }
.avatar.pf-avatar { width: 42px; height: 42px; border-radius: 50%; font-size: 16px; background: var(--grad); color: #1a1200; box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 3px rgba(245,179,1,.55); }
.pf-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pf-info strong { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-info small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-info small.warn { color: #ffb84d; }
.pf-info small.over { color: #ff6b85; }
.pf-edit { width: 16px; height: 16px; fill: currentColor; opacity: .45; flex-shrink: 0; transition: opacity .15s, color .15s; }
.pf-card:hover .pf-edit { opacity: 1; color: #ffcf40; }
.pf-bar { height: 6px; border-radius: 99px; background: #1d1d1d; overflow: hidden; }
.pf-bar.lg { height: 8px; }
.pf-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .5s var(--ease, ease); }
.pf-bar.warn i { background: linear-gradient(90deg, #ff9f43, #ffb84d); }
.pf-bar.over i { background: #ff4d6d; }
.pf-renew { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; border: 0; border-radius: 11px; background: var(--grad); color: #1a1200; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 #8f5f00, 0 10px 22px -12px rgba(245,179,1,.8), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .12s, box-shadow .12s, filter .12s; }
.pf-renew svg { width: 16px; height: 16px; fill: currentColor; }
.pf-renew:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pf-renew:active { transform: translateY(2px); box-shadow: 0 1px 0 #8f5f00; }
.pf-renew[hidden], .pf-bar[hidden] { display: none; }
.pf-modal { max-width: 460px; }
.pfm-photo { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.avatar.pfm-avatar { width: 92px; height: 92px; border-radius: 50%; font-size: 34px; background: var(--grad); color: #1a1200; box-shadow: 0 0 0 3px #111, 0 0 0 5px rgba(245,179,1,.6), 0 14px 30px -12px rgba(245,179,1,.6); }
.pfm-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pfm-photo-actions .btn { height: 38px; padding: 0 14px; font-size: 13px; }
.pfm-photo-actions small { flex-basis: 100%; font-size: 11.5px; }
.pfm-upload { cursor: pointer; }
.field input[readonly] { color: var(--muted); cursor: default; }
.pfm-plan { display: grid; gap: 12px; padding: 16px; margin-bottom: 14px; border-radius: 14px; border: 1px solid rgba(245,179,1,.25); background: linear-gradient(160deg, rgba(245,179,1,.08), rgba(245,179,1,.02)); }
.pfm-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pfm-plan-top > div { display: flex; flex-direction: column; gap: 3px; }
.pfm-plan-label { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #ffcf40; }
.pfm-plan-top b { font-size: 16px; }
.pfm-plan-top small { font-size: 12px; }
.pfm-days { flex-shrink: 0; padding: 8px 12px; border-radius: 12px; background: #0d0d0d; border: 1px solid #2a2a2a; font-size: 13px; font-weight: 700; color: #ffcf40; text-align: center; line-height: 1.2; }
.pfm-days b { display: block; font-size: 24px; color: #fff; }
.pfm-days.warn { color: #ffb84d; border-color: rgba(255,159,67,.45); }
.pfm-days.over { color: #ff6b85; border-color: rgba(255,77,109,.45); }
.pfm-backup { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.pfm-backup span { margin-right: auto; font-size: 12.5px; color: var(--muted); }
.pfm-backup .btn { height: 34px; padding: 0 12px; font-size: 12.5px; }
.pfm-error { min-height: 18px; margin: 8px 0 0; font-size: 13px; color: #ff6b85; }
.pfm-error:empty { min-height: 0; margin: 0; }

.main { padding: 26px 34px 60px; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 6; padding: 14px 0 12px;
  background: linear-gradient(#0a0a0a 80%, rgba(10,10,10,0));
}
.topbar h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.topbar > div:first-child { margin-right: auto; }
.view-sub { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.del-all { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255,77,109,.35); background: rgba(255,77,109,.08); color: #ff6b85; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 0 rgba(90,10,25,.9); transition: background .15s, color .15s, border-color .15s, transform .12s, box-shadow .12s; }
.del-all svg { width: 14px; height: 14px; fill: currentColor; }
.del-all:hover { background: #ff4d6d; border-color: #ff4d6d; color: #fff; transform: translateY(-1px); box-shadow: 0 3px 0 #8c1c31, 0 10px 22px -10px rgba(255,77,109,.8); }
.del-all:active { transform: translateY(2px); box-shadow: 0 0 0 #8c1c31; }
.del-all[hidden] { display: none; }
.unuse-all { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(46,230,166,.4); background: rgba(46,230,166,.1); color: #2ee6a6; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.unuse-all svg { width: 14px; height: 14px; fill: currentColor; }
.unuse-all:hover { background: #2ee6a6; border-color: #2ee6a6; color: #06281c; }
.unuse-all[hidden] { display: none; }

.search {
  display: flex; align-items: center; gap: 10px; width: 380px; max-width: 100%; height: 42px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, width .3s var(--ease);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,179,1, .14); }
.search svg { color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; }
kbd {
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted);
  padding: 2px 7px; border: 1px solid var(--border-2); border-radius: 6px; background: var(--surface-2);
}

.user-menu { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 30px;
  background: var(--surface); border: 1px solid var(--border-2); font-weight: 600; color: inherit;
  font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.user-chip:hover, .user-chip[aria-expanded="true"] { border-color: rgba(245,179,1,.6); box-shadow: 0 0 0 3px rgba(245,179,1,.15); }
.user-chip #userName { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-caret { width: 18px; height: 18px; fill: currentColor; opacity: .7; transition: transform .2s; }
.user-chip[aria-expanded="true"] .chip-caret { transform: rotate(180deg); }
.user-drop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 270px; z-index: 60; padding: 10px;
  background: linear-gradient(160deg, #141826, #0d1019); border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.55); animation: udIn .18s ease;
}
@keyframes udIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.ud-head { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.ud-head b { font-size: 15px; }
.ud-head span { font-size: 12px; color: var(--muted, #9aa0b4); }
.ud-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px;
  background: none; color: inherit; font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s;
}
.ud-item:hover { background: rgba(245,179,1,.12); }
.ud-item i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(245,179,1,.14); border: 1px solid rgba(245,179,1,.25); }
.ud-item i svg { width: 18px; height: 18px; fill: #ffe08a; }
.ud-item.danger i { background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.25); }
.ud-item.danger i svg { fill: #fda4af; }
.ud-item.danger:hover { background: rgba(244,63,94,.1); }
.avatar {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  font-weight: 800; font-size: 18px; color: #fff; text-transform: uppercase; overflow: hidden;
  background: #05070f;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.sm { width: 30px; height: 30px; border-radius: 50%; font-size: 13px; background: var(--grad); }

/* ============ STATS ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat {
  position: relative; overflow: hidden; padding: 16px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  animation: rise .5s var(--ease) backwards;
}
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%;
  background: var(--c, var(--accent)); filter: blur(40px); opacity: .25;
}
.stat p { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat b { display: block; font-size: 26px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; }

/* ============ GRID / CARDS ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.grid.no-rise .card { animation: none; }

.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); padding: 18px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
  animation: rise .5s var(--ease) backwards;
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(245,179,1, .14), transparent 45%);
  transition: opacity .3s;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -2; opacity: 0; padding: 1px;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(245,179,1, .9), rgba(255,207,64, .4) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -20px rgba(245,179,1, .35); border-color: transparent; }
.card:hover::before, .card:hover::after { opacity: 1; }

.card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.card-title { flex: 1; min-width: 0; }
.card-title h3 { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip {
  display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px;
  background: var(--surface-3); color: #a0a0ac; border: 1px solid var(--border-2);
}
.fav-btn { color: #3a3a44; transition: transform .25s var(--ease), color .2s; }
.fav-btn:hover { color: #ffcc4d; transform: scale(1.15); }
.fav-btn.on { color: #ffcc4d; filter: drop-shadow(0 0 8px rgba(255, 204, 77, .6)); }
.fav-btn svg { width: 20px; height: 20px; }

.fields { display: flex; flex-direction: column; gap: 8px; }
.frow {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}
.frow:hover { border-color: var(--border-2); background: #0f0f13; }
.frow .label { width: 62px; flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.frow .value {
  flex: 1; min-width: 0; font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: #d6d6de;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frow .value.empty { color: #3e3e48; font-family: inherit; font-style: italic; }
.frow .value.secret { letter-spacing: 2px; }

.copy-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border-radius: 8px; font-size: 12px; font-weight: 600; overflow: hidden;
  background: rgba(245,179,1, .12); color: #ffd66b; border: 1px solid rgba(245,179,1, .25);
  transition: all .2s var(--ease);
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { background: rgba(245,179,1, .25); color: #fff; box-shadow: 0 0 18px -4px rgba(245,179,1, .8); }
.copy-btn:disabled { opacity: .3; pointer-events: none; }
.copy-btn.done { background: rgba(46, 230, 166, .15); border-color: rgba(46, 230, 166, .4); color: var(--success); }
.copy-btn.json { background: rgba(255,207,64, .12); color: #ffe08a; border-color: rgba(255,207,64, .3); }
.copy-btn.json:hover { background: rgba(255,207,64, .24); color: #fff; box-shadow: 0 0 18px -4px rgba(255,207,64, .8); }
.copy-btn.json.done { background: rgba(46, 230, 166, .15); border-color: rgba(46, 230, 166, .4); color: var(--success); }
.frow .icon-btn { width: 30px; height: 30px; }

/* ---- conta já usada ---- */
.card.used {
  border-color: rgba(255, 159, 67, .3);
  background: linear-gradient(180deg, rgba(255, 159, 67, .07), transparent 45%), var(--surface);
}
.card.used .avatar img { filter: grayscale(.7) brightness(.8); }
.card.used .fields, .card.used .notes { opacity: .6; transition: opacity .2s; }
.card.used:hover .fields, .card.used:hover .notes { opacity: 1; }
.card.used .card-title h3 { color: #c9c3bb; }
.card.used:hover .avatar img { filter: none; }
.card.just-used { animation: usedPulse 1.1s var(--ease); }
@keyframes usedPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 159, 67, .55); }
  60% { box-shadow: 0 0 0 10px rgba(255, 159, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 159, 67, 0); }
}
.used-badge {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; height: 26px; padding: 0 10px 0 7px;
  border-radius: 20px; font-size: 11.5px; font-weight: 700; color: #ffb066;
  background: rgba(255, 159, 67, .12); border: 1px solid rgba(255, 159, 67, .35);
  transition: background .2s, border-color .2s, color .2s;
  animation: badgeIn .35s var(--ease);
}
.used-badge svg { width: 14px; height: 14px; fill: currentColor; }
.used-badge small { font-size: 10.5px; font-weight: 600; color: #b98a5e; }
.used-badge small::before { content: "·"; margin: 0 4px 0 1px; }
.used-badge:hover { background: rgba(255, 77, 109, .12); border-color: rgba(255, 77, 109, .4); color: #ff8fa3; }
.used-badge:hover span::after { content: " · desmarcar"; font-weight: 600; }
.used-badge:hover small { display: none; }
@keyframes badgeIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.frow.copied { position: relative; border-color: rgba(46, 230, 166, .22); }
.frow.copied .label { color: var(--success); }
.frow .tick {
  position: absolute; left: -7px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%;
  background: #0d2a20; border: 1px solid rgba(46, 230, 166, .55); box-shadow: 0 0 8px rgba(46, 230, 166, .35);
  animation: badgeIn .3s var(--ease);
}
.frow .tick svg { width: 10px; height: 10px; fill: var(--success); }

.notes {
  margin-top: 10px; font-size: 12.5px; color: #8a8a95; line-height: 1.5; padding: 9px 12px;
  border-left: 2px solid var(--border-2); white-space: pre-wrap; word-break: break-word;
}

.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-2); }
.card-foot .date { margin-right: auto; font-size: 11.5px; color: #4f4f5a; }
.card-foot .icon-btn.del:hover { color: var(--danger); border-color: rgba(255, 77, 109, .4); background: rgba(255, 77, 109, .08); }
.btn-all {
  height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border-2);
}
.btn-all:hover { border-color: var(--accent); color: #fff; }

/* ============ EMPTY ============ */
.empty { text-align: center; padding: 70px 20px; animation: rise .5s var(--ease); }
.empty-icon {
  width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 24px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--accent);
  box-shadow: 0 0 60px -10px rgba(245,179,1, .5);
}
.empty-icon svg { width: 38px; height: 38px; }
.empty h3 { font-size: 19px; margin-bottom: 6px; }
.empty p { margin-bottom: 22px; }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 24px 20px; overflow-y: auto; }
.modal-backdrop { position: absolute; inset: 0; z-index: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); animation: fadeIn .25s; }
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 560px; margin: auto; max-height: none; overflow: visible;
  background: #060608; border: 1px solid var(--border-2); border-radius: 20px; padding: 24px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(245,179,1, .08), 0 0 80px -30px rgba(245,179,1, .5);
  animation: pop .35s var(--ease);
}
.modal-card.sm { max-width: 400px; text-align: center; }
.modal-card.lg { max-width: 760px; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 6px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px;
  font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border);
  transition: color .2s, background .2s, border-color .2s;
}
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--text); background: var(--surface-3); }
.tab.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, rgba(245,179,1, .9), rgba(255,207,64, .75));
  box-shadow: 0 6px 20px -8px rgba(245,179,1, .8);
}
.tab-panel { animation: fadeIn .3s var(--ease); }
@media (max-width: 560px) {
  .tab span { display: none; }
  .tab { padding: 0 12px; }
}

.vault-conflict { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.vault-conflict h3 { text-align: center; }
.vault-conflict p.muted { font-size: 13px; line-height: 1.5; margin-bottom: 4px; }
.vault-conflict .field { margin-bottom: 0; }
.vault-conflict .btn { width: 100%; height: auto; min-height: 44px; white-space: normal; text-align: center; justify-content: center; }
.vc-error { min-height: 16px; font-size: 12.5px; color: var(--danger); }
.vc-later { align-self: center; background: none; border: 0; color: var(--muted); font-size: 12.5px; cursor: pointer; padding: 4px; }
.vc-later:hover { color: var(--text); }

/* ===== BULK IMPORT ===== */
.bulk-drop { position: relative; }
.bulk-drop-hint {
  position: absolute; left: 0; right: 0; bottom: 0; top: 24px; display: none; place-items: center;
  border: 2px dashed var(--accent); border-radius: 12px; background: rgba(6, 6, 8, .88);
  color: var(--accent); font-style: normal; font-weight: 600; font-size: 14px; pointer-events: none; z-index: 3;
}
.bulk-drop.dragging .bulk-drop-hint { display: grid; }
.bulk-tools .btn-all { display: inline-flex; align-items: center; gap: 6px; }
.bulk-tools .btn-all svg { width: 15px; height: 15px; fill: currentColor; }
.bulk-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 18px;
  padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
}
.inline-field { display: flex; flex-direction: column; gap: 5px; }
.inline-field > span { font-size: 11px; font-weight: 600; color: #a3a3ad; }
.inline-field select {
  height: 34px; padding: 0 10px; border-radius: 9px; cursor: pointer;
  background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text); outline: none;
}
.inline-field select:focus { border-color: var(--accent); }
.check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #b6b6bf; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.bulk-preview { margin-bottom: 8px; }
.bulk-preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12.5px; }
#bulkCount { font-weight: 700; color: var(--accent-2); }
.bulk-table-wrap {
  max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.bulk-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.bulk-table th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 700; color: var(--muted);
  padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border-2); white-space: nowrap;
}
.bulk-table td {
  padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top;
  font-family: "JetBrains Mono", monospace; color: #cfcfd8;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bulk-table td.idx { color: #50505a; width: 34px; }
.bulk-table td.miss { color: #44444e; font-style: italic; font-family: inherit; }
.bulk-table tr:last-child td { border-bottom: 0; }
.bulk-empty { padding: 26px; text-align: center; color: var(--muted); }

/* ===== COOKIE CONVERTER ===== */
.conv-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; }
.conv-opts .inline-field input {
  height: 34px; padding: 0 10px; border-radius: 9px; width: 200px;
  background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text); outline: none;
}
.conv-opts .inline-field input:focus { border-color: var(--accent); }
.conv-opts code, .conv-note code { font-family: "JetBrains Mono", monospace; color: var(--accent-2); font-size: 11.5px; }
.conv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.conv-pane { display: flex; flex-direction: column; gap: 10px; }
.conv-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #b6b6bf; }
.conv-label svg { width: 15px; height: 15px; color: var(--accent); }
.conv-pane textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 12px;
  padding: 12px; outline: none; resize: vertical; color: var(--text);
  font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.conv-pane textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,179,1, .14); }
#convOut { background: #050507; }
.conv-actions { display: flex; gap: 10px; }
.conv-note { font-size: 12px; margin-top: 12px; min-height: 16px; }

@media (max-width: 760px) { .conv-grid { grid-template-columns: 1fr; } }

/* ===== PLANOS ===== */
.bill-switch { display: flex; gap: 8px; margin-bottom: 18px; }
.bill-switch .tab { flex: 1; justify-content: center; }
.bill-plans { width: min(920px, 100%); animation: rise .6s var(--ease) both; }
.bill-plans h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card {
  position: relative; padding: 22px; border-radius: 18px; text-align: left;
  background: rgba(7, 7, 10, .92); border: 1px solid var(--border-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.plan-card.featured { border-color: transparent; box-shadow: 0 0 0 1px rgba(245,179,1, .7), 0 20px 50px -24px rgba(245,179,1, .8); }
.plan-card h3 { font-size: 18px; margin-bottom: 6px; }
.plan-card .price { font-size: 32px; font-weight: 800; letter-spacing: -.6px; margin: 10px 0 4px; }
.plan-card .price span { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan-card p { color: var(--muted); min-height: 40px; margin-bottom: 16px; }
.bill-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pix-qr { width: 220px; height: 220px; object-fit: contain; background: #fff; border-radius: 12px; margin: 8px auto 14px; display: block; }
#pixCode { width: 100%; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px; border: 2px solid #f5b301; background: #fffdf5; color: #111; font-family: "JetBrains Mono", Consolas, monospace; font-size: 12px; line-height: 1.5; word-break: break-all; resize: none; outline: 0; }
#pixCode:focus { box-shadow: 0 0 0 3px rgba(245,179,1,.35); }
#pixCode::selection { background: #f5b301; color: #111; }
@media (max-width: 800px) { .plan-grid { grid-template-columns: 1fr; } }
.modal-card.sm h3 { margin-bottom: 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-head h3 { font-size: 19px; font-weight: 700; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.modal-foot.center { justify-content: center; margin-top: 22px; }
.confirm-icon {
  width: 60px; height: 60px; border-radius: 18px; margin: 4px auto 16px; display: grid; place-items: center;
  background: rgba(255, 77, 109, .1); color: var(--danger); border: 1px solid rgba(255, 77, 109, .3);
}
.confirm-icon svg { width: 28px; height: 28px; }

/* ============ TOASTS ============ */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; min-width: 240px;
  background: rgba(10, 10, 13, .95); border: 1px solid var(--border-2); backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px -10px rgba(0,0,0,.9); font-weight: 500;
  animation: toastIn .4s var(--ease);
}
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast .t-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.toast.success .t-ico { background: rgba(46, 230, 166, .15); color: var(--success); }
.toast.error .t-ico { background: rgba(255, 77, 109, .15); color: var(--danger); }
.toast.info .t-ico { background: rgba(245,179,1, .15); color: var(--accent); }
.toast .t-ico svg { width: 15px; height: 15px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(.95); } }

/* ============ TEMA DOURADO ============ */
::selection { background: rgba(245,179,1,.35); color: #fff; }
::-webkit-scrollbar-thumb { background: #262626; border-color: #0a0a0a; }
.app {
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 44px 44px;
}
.sidebar { background: #101010; border-right-color: #1f1f1f; }
.nav-title { color: #5a5a5a; }
.nav-item { color: #a0a0a0; border: 1px solid transparent; }
.nav-item:hover { background: #171717; }
.nav-item.active { background: #1b1b1b; border-color: #2a2a2a; color: #fff; }
.nav-item.active svg { color: var(--accent); }
.nav-item.active .count { background: var(--accent); color: var(--on-accent); font-weight: 800; }
.logo { box-shadow: 0 0 0 1px rgba(245,179,1,.35), 0 0 24px rgba(245,179,1,.28); }
.loja-cta { color: var(--on-accent); background: var(--grad); box-shadow: 0 4px 0 #8f5f00, 0 14px 30px -12px rgba(245,179,1,.8), inset 0 1px 0 rgba(255,255,255,.5); }
.loja-cta:hover { box-shadow: 0 6px 0 #8f5f00, 0 18px 36px -12px rgba(245,179,1,.9), inset 0 1px 0 rgba(255,255,255,.5); }
.loja-ico { background: rgba(0,0,0,.14); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.loja-ico svg { fill: var(--on-accent); }
.search, .user-chip, .icon-btn { background: #151515; border-color: #2a2a2a; }
.user-drop { background: linear-gradient(160deg, #1a1a1a, #111); border-color: #2a2a2a; }
.avatar.sm { color: var(--on-accent); }
.stat, .card { background: #141414; border-color: #242424; }
.stat { border-radius: 16px; }
.modal-card { background: #111; border-color: #2a2a2a; }
.auth-inner { background: rgba(14,14,14,.97); }
.field input, .field textarea, .input-wrap { background: #121212; border-color: #2a2a2a; }

.btn { height: 44px; border-radius: 12px; font-weight: 700; }
.btn-primary {
  color: var(--on-accent); font-weight: 800; letter-spacing: .2px;
  box-shadow: 0 4px 0 #8f5f00, 0 12px 28px -10px rgba(245,179,1,.65), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #8f5f00, 0 18px 36px -10px rgba(245,179,1,.8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #8f5f00, 0 6px 16px -8px rgba(245,179,1,.6), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:disabled { filter: grayscale(.4) brightness(.8); transform: none; }
.btn-ghost {
  background: linear-gradient(180deg, #1e1e1e, #161616); border: 1px solid #303030; color: #eee;
  box-shadow: 0 3px 0 #050505, inset 0 1px 0 rgba(255,255,255,.06);
}
.btn-ghost:hover { border-color: rgba(245,179,1,.55); background: linear-gradient(180deg, #232323, #191919); color: #fff; }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 1px 0 #050505; }
.btn-danger { box-shadow: 0 4px 0 #8c1c31, 0 12px 26px -10px rgba(255,77,109,.6), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-danger:active { transform: translateY(3px); box-shadow: 0 1px 0 #8c1c31; }
.tab { background: #151515; border-color: #262626; }
.tab.active { color: var(--on-accent); background: var(--grad); box-shadow: 0 3px 0 #8f5f00, 0 8px 22px -10px rgba(245,179,1,.8); font-weight: 800; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .nav { max-height: 220px; }
  .main { padding: 20px 16px 60px; }
  .search { width: 100%; order: 3; }
  .user-chip #userName, .chip-caret { display: none; }
  .user-chip { padding: 5px; }
  .grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
}
