/* Gojoo — tema monocromo (negro / blanco / gris) */
:root {
  --bg: #000;
  --glass: rgba(14, 14, 15, 0.62);
  --stroke: rgba(255, 255, 255, 0.07);
  --stroke-hi: rgba(255, 255, 255, 0.16);
  --text: #f2f2f2;
  --muted: #7c7c7c;
  --dim: #4a4a4a;
  --white: #fff;
  --glow: rgba(255, 255, 255, 0.12);
  --ok: #e8e8e8;
  --off: #3a3a3a;
  --radius: 22px;
  --sidebar: 268px;
  --rail: 84px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #fff; color: #000; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Intro ─────────────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .7s var(--ease), visibility .7s;
}
.splash.gone { opacity: 0; visibility: hidden; }
.splash-ring { position: relative; width: 110px; height: 110px; border-radius: 50%; padding: 3px; animation: splashIn .9s var(--ease) both; }
.splash-ring::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, #fff 25%, transparent 50%);
  animation: spin 1.1s linear infinite;
}
.splash-ring img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #000; }
.splash-name { font-weight: 700; letter-spacing: 12px; font-size: 15px; color: #fff; animation: fadeUp .9s .25s var(--ease) both; padding-left: 12px; }
@keyframes splashIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Fondo ─────────────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-img {
  position: absolute; inset: -80px;
  background: url('img/back.png') center / cover no-repeat;
  filter: blur(30px) brightness(0.42) saturate(1.15);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.1) translate(0, 0); } to { transform: scale(1.22) translate(-30px, 20px); } }
.bg-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, rgba(0,0,0,.25), #000 78%); }
.bg-spot {
  position: absolute; top: -35%; right: 8%; width: 50vw; height: 95vh;
  background: radial-gradient(ellipse at top, rgba(255,255,255,.11), transparent 60%);
  transform-origin: top center; pointer-events: none;
  animation: beam 9s ease-in-out infinite alternate;
}
@keyframes beam { from { transform: rotate(-22deg); opacity: .75; } to { transform: rotate(-12deg); opacity: 1; } }
.bg-grain {
  position: absolute; inset: -50%; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }

/* Cristal con foco que sigue al cursor (--mx / --my desde app.js) */
.glass {
  background:
    radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(255,255,255,.06), transparent 45%),
    var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 60px rgba(0,0,0,.6);
}

/* Entrada escalonada */
/* "backwards" en vez de "both": así, al terminar, el transform vuelve a quedar libre para hover / tilt */
.view.active .reveal { animation: rise .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ── Layout ────────────────────────────────────────────────── */
.app { display: flex; gap: 22px; min-height: 100vh; padding: 22px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  position: sticky; top: 22px; height: calc(100vh - 44px);
  width: var(--sidebar); flex-shrink: 0;
  display: flex; flex-direction: column;
  padding: 26px 16px 16px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(24,24,25,.78), rgba(8,8,9,.82));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 70px rgba(0,0,0,.7);
  transition: width .4s var(--ease), transform .4s var(--ease);
  z-index: 20;
  animation: slideIn .8s .1s var(--ease) both;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px 22px; border-bottom: 1px solid var(--stroke); }
.brand-pfp { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--stroke-hi); transition: transform .4s var(--ease), box-shadow .4s; }
.brand:hover .brand-pfp { transform: rotate(-12deg) scale(1.12); box-shadow: 0 0 18px rgba(255,255,255,.25); }
.brand-name { font-weight: 600; font-size: 16px; white-space: nowrap; letter-spacing: .3px; }

.nav { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.nav-group { padding: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.nav-group + .nav-group { border-top: 1px solid var(--stroke); }

.nav-item {
  position: relative; display: flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 14px; border-radius: 18px;
  color: #9a9a9a; font-weight: 500; font-size: 14.5px; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.nav-item svg { transition: transform .35s var(--ease); }
.nav-item:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav-item:hover svg { transform: scale(1.12) rotate(-6deg); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 60%);
  border-color: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.06);
}
.nav-item.active::before {
  content: ''; position: absolute; left: -16px; top: 50%; width: 4px; height: 20px;
  border-radius: 0 4px 4px 0; transform: translateY(-50%);
  background: #fff; box-shadow: 0 0 14px #fff, 0 0 4px #fff;
  animation: barIn .4s var(--ease);
}
@keyframes barIn { from { height: 0; } }
.badge {
  margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600;
  padding: 2px 9px; border-radius: 99px; border: 1px solid var(--stroke-hi); color: #ccc;
}
.badge-hot { border: 0; color: #000; background: linear-gradient(90deg, #fff, #9a9a9a, #fff); background-size: 200% 100%; animation: sheen 3s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }

.side-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--stroke); }
.collapse-btn {
  display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px;
  border-radius: 16px; border: 1px solid var(--stroke); background: rgba(255,255,255,.02);
  color: var(--muted); font: 500 13.5px 'Poppins', sans-serif; cursor: pointer; white-space: nowrap;
  transition: color .2s, background .2s;
}
.collapse-btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.collapse-btn svg { transition: transform .4s var(--ease); }

/* Selector de idioma */
.lang-switch {
  position: relative; display: inline-flex; padding: 4px; border-radius: 99px;
  background: rgba(0,0,0,.55); border: 1px solid var(--stroke-hi);
}
.lang-switch::before {
  content: ''; position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px);
  border-radius: 99px; background: #fff; transition: transform .35s var(--ease);
}
.lang-switch.en::before { transform: translateX(100%); }
.lang-switch button {
  position: relative; z-index: 1; flex: 1; min-width: 38px; height: 28px; padding: 0 10px; border: 0; background: none;
  font: 600 12px 'Poppins', sans-serif; color: var(--muted); cursor: pointer; border-radius: 99px; transition: color .3s;
}
.lang-switch button.on { color: #000; }
.side-foot .lang-switch { display: flex; }

/* Rail (contraído) */
.app.collapsed .sidebar { width: var(--rail); padding-left: 14px; padding-right: 14px; }
.app.collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.app.collapsed .nav-item, .app.collapsed .collapse-btn { justify-content: center; padding: 0; gap: 0; }
.app.collapsed .brand-name,
.app.collapsed .nav-item span,
.app.collapsed .collapse-btn span,
.app.collapsed .badge { display: none; }
.app.collapsed .nav-item.active::before { left: -14px; }
.app.collapsed .nav-item.active { border-radius: 50%; width: 48px; margin: 0 auto; }
.app.collapsed .collapse-btn svg { transform: scaleX(-1); }
.app.collapsed .side-foot .lang-switch::before { width: calc(100% - 8px); transform: none; }
.app.collapsed .side-foot .lang-switch button:not(.on) { display: none; }

/* ── Topbar ────────────────────────────────────────────────── */
.topbar { display: flex; align-items: center; justify-content: center; position: relative; min-height: 50px; animation: fadeDown .8s .2s var(--ease) both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.pill-nav {
  display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 14px;
  border-radius: 99px; background: rgba(10,10,10,.7); border: 1px solid var(--stroke-hi);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.pill-nav a { position: relative; padding: 8px 14px; font-size: 13px; color: var(--muted); border-radius: 99px; transition: color .25s; }
.pill-nav a:not(.pill-cta)::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 0; height: 1px; background: #fff; transition: width .3s var(--ease), left .3s var(--ease); }
.pill-nav a:hover, .pill-nav a.on { color: #fff; }
.pill-nav a.on::after { width: 16px; left: calc(50% - 8px); }
.pill-nav .pill-cta { background: #fff; color: #000; font-weight: 600; padding: 8px 20px; margin-left: 6px; transition: background .2s, transform .2s; }
.pill-nav .pill-cta:hover { color: #000; background: #d9d9d9; transform: scale(1.04); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; margin-right: 6px; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.topbar-right { position: absolute; right: 0; display: flex; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 99px; font-size: 12.5px; background: rgba(10,10,10,.7); border: 1px solid var(--stroke);
}
#demoChip { color: #bbb; border-style: dashed; border-color: var(--stroke-hi); }
.live { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }
.menu-btn { display: none; position: absolute; left: 0; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(10,10,10,.7); color: #fff; cursor: pointer; align-items: center; justify-content: center; }

/* ── Views ─────────────────────────────────────────────────── */
.view { display: none; flex-direction: column; gap: 22px; }
.view.active { display: flex; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.view-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -.5px; }
.view-head p { font-size: 14px; margin-top: 2px; }
.view-head b { color: #ddd; }

/* Hero */
.hero { overflow: hidden; padding: 0; }
.hero-banner { height: 230px; position: relative; overflow: hidden; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -3%); } }
.hero-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(12,12,13,.95)); }
.shine { position: absolute; inset: 0; z-index: 1; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%); transform: translateX(-100%); animation: shine 6s 1.2s ease-in-out infinite; }
@keyframes shine { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }
.hero-body { display: flex; align-items: flex-end; gap: 22px; padding: 0 28px 26px; margin-top: -60px; position: relative; z-index: 2; flex-wrap: wrap; }
.hero-pfp-wrap { position: relative; flex-shrink: 0; width: 124px; height: 124px; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.pfp-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg, #fff, #555, #111, #888, #fff);
  animation: spin 6s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.25));
}
.hero-pfp {
  position: relative; width: 124px; height: 124px; border-radius: 50%; object-fit: cover;
  border: 5px solid #0c0c0d; background: #0c0c0d;
  transition: transform .6s var(--ease);
}
.hero-pfp-wrap:hover .hero-pfp { transform: scale(1.06) rotate(-4deg); }
.status-dot { position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #0c0c0d; z-index: 1; }
.status-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; animation: pulse 2s infinite; }
.hero-info { flex: 1; min-width: 220px; padding-bottom: 4px; }
.hero-info h1 { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.verified { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #fff; color: #000; letter-spacing: .5px; }
.hero-info p { font-size: 14px; margin: 2px 0 12px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--stroke-hi); color: var(--muted); background: rgba(255,255,255,.03); }
.tag b { color: #fff; font-weight: 600; margin-left: 4px; }
.hero-actions { display: flex; gap: 10px; padding-bottom: 4px; }

.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 99px; font-size: 13.5px; font-weight: 600; transition: transform .2s var(--ease), background .2s, box-shadow .3s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { box-shadow: 0 8px 30px rgba(255,255,255,.22); }
.btn-dark { background: #000; color: #fff; border: 1px solid var(--stroke-hi); }
.btn-dark:hover { background: #111; border-color: rgba(255,255,255,.3); }
.btn.block { width: 100%; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stats-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.stat:hover { transform: translateY(-4px); border-color: var(--stroke-hi); }
.stat::after { content: ''; position: absolute; top: -50px; right: -50px; width: 120px; height: 120px; border-radius: 50%; background: var(--glow); filter: blur(34px); transition: transform .6s var(--ease); }
.stat:hover::after { transform: scale(1.5); }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-val { font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1.15; }
.stat-val.sm { font-size: 24px; letter-spacing: -.3px; padding: 5px 0; }
.stat-sub { font-size: 12px; color: var(--dim); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.card { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h3 { font-size: 16px; font-weight: 600; }
.link { font-size: 13px; color: #fff; opacity: .7; transition: opacity .2s; }
.link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.spark { width: 100%; height: 170px; display: block; overflow: visible; }
.spark .area { fill: url(#sparkFill); stroke: none; }
.spark .line { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(255,255,255,.5)); stroke-dasharray: 2000; animation: draw 1.4s var(--ease) both; }
.spark .grid { stroke: rgba(255,255,255,.05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark .dot { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
@keyframes draw { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }

.mini-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; transition: background .2s, transform .3s var(--ease); animation: rise .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.mini-list li:hover { background: rgba(255,255,255,.04); transform: translateX(4px); }
.mini-list .n { font-size: 14px; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list .m { font-size: 12.5px; color: var(--muted); }

.g-icon { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: linear-gradient(135deg, #262626, #0e0e0e); border: 1px solid var(--stroke); color: #ddd; }
.g-icon { transition: transform .4s var(--ease); }
.guild:hover .g-icon, .mini-list li:hover .g-icon { transform: scale(1.08) rotate(-4deg); }

/* Search / tabs */
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 99px; width: 300px; max-width: 100%; color: var(--muted); transition: border-color .3s, box-shadow .3s; }
.search:focus-within { border-color: rgba(255,255,255,.3); box-shadow: 0 0 0 4px rgba(255,255,255,.05); color: #fff; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 14px 'Poppins', sans-serif; }
.search svg { width: 18px; height: 18px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--stroke); background: rgba(10,10,10,.6); color: var(--muted); font: 500 13px 'Poppins', sans-serif; cursor: pointer; transition: all .25s var(--ease); }
.tab:hover { color: #fff; transform: translateY(-1px); }
.tab.on { color: #000; background: #fff; border-color: #fff; box-shadow: 0 6px 24px rgba(255,255,255,.15); }
.tab em { font-style: normal; opacity: .55; margin-left: 4px; }

/* Guilds */
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.guild { overflow: hidden; padding: 0; transition: transform .35s var(--ease), border-color .35s; animation: rise .55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.guild:hover { transform: translateY(-6px); border-color: var(--stroke-hi); }
.guild-cover { height: 84px; background: url('img/banner.jpg') center / cover; position: relative; filter: brightness(.7); transition: filter .5s, background-size .8s var(--ease); background-size: 110%; }
.guild:hover .guild-cover { filter: brightness(1); background-size: 125%; }
.guild-body { padding: 0 18px 18px; margin-top: -26px; position: relative; }
.guild .g-icon { width: 56px; height: 56px; border-radius: 18px; border: 4px solid #0e0e0f; font-size: 18px; }
.guild h4 { font-size: 15px; font-weight: 600; margin: 10px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.guild .meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--stroke); color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--off); }
.pill.on { color: #eee; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.pill.on::before { background: #fff; box-shadow: 0 0 6px #fff; }
.main-tag { font-size: 10px; padding: 2px 7px; border-radius: 6px; background: #fff; color: #000; flex-shrink: 0; font-weight: 700; }

/* Commands */
.cmd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cmd { padding: 16px 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: border-color .25s, transform .3s var(--ease); animation: rise .45s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 25ms); }
.cmd:hover { border-color: rgba(255,255,255,.25); transform: translateY(-3px); }
.cmd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cmd-name { font-weight: 600; font-size: 15px; }
.cmd-name i { font-style: normal; color: var(--muted); }
.cmd-cat { font-size: 11px; color: var(--dim); }
.cmd p { font-size: 13px; color: #a8a8a8; line-height: 1.5; }
.cmd code { font: 12px ui-monospace, Consolas, monospace; color: #e6e6e6; background: rgba(255,255,255,.05); border: 1px solid var(--stroke); padding: 4px 8px; border-radius: 8px; align-self: flex-start; word-break: break-all; transition: background .25s, color .25s; }
.cmd.copied code { background: #fff; color: #000; }
.empty { padding: 40px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Table */
.table-card { padding: 8px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 12px 14px; border-bottom: 1px solid var(--stroke); }
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.04); }
.table tbody tr { transition: background .2s; animation: rise .45s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.table tbody tr:hover { background: rgba(255,255,255,.03); }
.table tr:last-child td { border-bottom: 0; }
.table .who { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.table .g-icon { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }

/* Bars */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 70px; align-items: center; gap: 14px; font-size: 13px; }
.bar-row .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #555, #fff); box-shadow: 0 0 12px rgba(255,255,255,.3); width: 0; transition: width 1s var(--ease); }
.bar-row .v { text-align: right; color: var(--muted); }

/* ── Pricing ───────────────────────────────────────────────── */
.pricing { position: relative; display: flex; flex-direction: column; align-items: center; padding: 30px 0 40px; }
.pricing-word {
  font-size: clamp(90px, 15vw, 210px); font-weight: 600; letter-spacing: -4px; line-height: 1;
  background: linear-gradient(100deg, #fff 30%, #8a8a8a 50%, #fff 70%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px rgba(255,255,255,.12));
  margin-bottom: -86px; user-select: none; pointer-events: none;
  animation: sheen 6s linear infinite, wordIn 1s var(--ease) both;
}
@keyframes wordIn { from { opacity: 0; letter-spacing: 10px; } }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; max-width: 1040px; position: relative; }
.plan {
  padding: 30px 28px 28px; display: flex; flex-direction: column;
  background:
    radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(255,255,255,.07), transparent 45%),
    rgba(6,6,7,.55);
  backdrop-filter: blur(30px) saturate(1.2); -webkit-backdrop-filter: blur(30px) saturate(1.2);
  border-radius: 26px; transition: transform .4s var(--ease), border-color .4s;
}
.plan:hover { transform: translateY(-8px); border-color: var(--stroke-hi); }
.plan.featured { border-color: rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 70px rgba(255,255,255,.07), 0 30px 60px rgba(0,0,0,.6); }
.plan-kind { font-size: 13px; color: #bdbdbd; }
.plan-price { font-size: 46px; font-weight: 600; letter-spacing: -1px; margin: 14px 0 22px; }
.plan-price small { font-size: 36px; color: #7e7e7e; font-weight: 500; }
.plan-price span { display: inline-block; }
.plan-price span.flip { animation: flip .45s var(--ease); }
@keyframes flip { from { opacity: 0; transform: translateY(-12px); filter: blur(4px); } }
.plan hr { border: 0; border-top: 1px solid var(--stroke); margin-bottom: 24px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; flex: 1; }
.plan li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #9d9d9d; }
.plan li::before {
  content: ''; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: #161616 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7.5 12.5 3 3 6-6.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 1px solid var(--stroke);
}
.toggle { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 13.5px; color: #c6c6c6; cursor: pointer; align-self: flex-start; margin-left: max(0px, calc((100% - 1040px) / 2)); }
.toggle input { display: none; }
.toggle-track { width: 40px; height: 22px; border-radius: 99px; background: #262626; position: relative; transition: background .3s; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease), background .3s; }
.toggle input:checked + .toggle-track { background: #fff; }
.toggle input:checked + .toggle-track .toggle-thumb { background: #000; transform: translateX(18px); }
.save { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.1); color: #fff; margin-left: 4px; }

/* ── Animaciones extra ─────────────────────────────────────── */
/* Partículas del fondo (canvas en app.js) */
.bg-particles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Luz que sigue al cursor */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.07), transparent 60%);
  transition: opacity .5s; will-change: transform;
}
.cursor-glow.on { opacity: 1; }
.app { position: relative; z-index: 1; }

/* Inclinación 3D (--rx / --ry desde app.js) */
.stat, .plan, .guild {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
  transition: transform .3s ease-out, border-color .35s;
  transform-style: preserve-3d;
}
.stat:hover, .plan:hover, .guild:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
}

/* Onda al hacer click */
.tab, .pill-nav .pill-cta, .cmd { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0);
  background: rgba(255,255,255,.35); animation: ripple .65s ease-out forwards;
}
.btn-light .ripple, .pill-cta .ripple, .tab.on .ripple { background: rgba(0,0,0,.18); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Órbita alrededor de la pfp */
.pfp-orbit { position: absolute; inset: -16px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); animation: spin 14s linear infinite reverse; }
.pfp-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.pfp-orbit i:nth-child(1) { top: -3px; left: calc(50% - 3px); }
.pfp-orbit i:nth-child(2) { bottom: 14%; left: 4%; width: 5px; height: 5px; opacity: .7; }
.pfp-orbit i:nth-child(3) { bottom: 14%; right: 4%; width: 4px; height: 4px; opacity: .5; }

/* Máquina de escribir */
.typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -2px; background: #fff; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Barrido en el menú */
.nav-item:not(.active):hover {
  background: linear-gradient(100deg, rgba(255,255,255,.02) 30%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.02) 70%) 0 0 / 250% 100%;
  animation: navSweep 1.1s var(--ease);
}
@keyframes navSweep { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Títulos con línea que crece */
.view-head h2 { position: relative; display: inline-block; }
.view-head h2::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, #fff, transparent);
}
.view.active .view-head h2::after { animation: underline .9s .3s var(--ease) forwards; }
@keyframes underline { to { width: 60%; } }

/* Destello cuando cambia un número / contador */
.flash { animation: flash .8s var(--ease); }
@keyframes flash { 30% { text-shadow: 0 0 18px rgba(255,255,255,.8); } }
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Pulso en el plan destacado */
.plan.featured::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(255,255,255,.35); animation: halo 3s ease-in-out infinite;
}
.plan { position: relative; }
@keyframes halo { 0%, 100% { opacity: 0; transform: scale(1); } 50% { opacity: 1; transform: scale(1.015); } }

/* Iconos de las estadísticas flotando en la tarjeta */
.stat-val { display: inline-block; transition: transform .35s var(--ease); }
.stat:hover .stat-val { transform: translateZ(30px) scale(1.05); }

/* ── Liquid Glass (estilo Apple) ───────────────────────────── */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

:root {
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  /* Borde de luz: arriba/izquierda brillante, abajo/derecha tenue, y un reflejo interno arriba */
  --lg-rim:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 1px 0 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(255,255,255,.07),
    inset -1px 0 0 rgba(255,255,255,.07),
    inset 0 14px 28px -18px rgba(255,255,255,.28);
  --lg-sheen: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,0) 38%, rgba(255,255,255,0) 70%, rgba(255,255,255,.04));
}

/* Reflejo y borde de luz (todos los navegadores) */
.glass {
  background:
    radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(255,255,255,.08), transparent 45%),
    var(--lg-sheen),
    var(--glass);
  box-shadow: var(--lg-rim), 0 24px 60px rgba(0,0,0,.55);
}
.plan {
  background:
    radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(255,255,255,.09), transparent 45%),
    var(--lg-sheen),
    rgba(6,6,7,.5);
}
.plan.featured { box-shadow: var(--lg-rim), 0 0 70px rgba(255,255,255,.07), 0 30px 60px rgba(0,0,0,.6); }
.sidebar { box-shadow: var(--lg-rim), 0 30px 70px rgba(0,0,0,.7); }
.pill-nav { box-shadow: var(--lg-rim), 0 10px 30px rgba(0,0,0,.6); }
.chip, .lang-switch, .search, .tab, .menu-btn, .collapse-btn { box-shadow: var(--lg-rim); }
.search:focus-within { box-shadow: var(--lg-rim), 0 0 0 4px rgba(255,255,255,.06); }
.tab.on { box-shadow: inset 0 -2px 6px rgba(0,0,0,.18), 0 6px 24px rgba(255,255,255,.15); }

/* Refracción real (solo Chromium: html.liquid lo pone effects/liquidGlass.ts) */
html.liquid { --glass: rgba(18,18,20,.30); }
html.liquid :is(.sidebar, .pill-nav, .chip, .lang-switch, .search, .tab:not(.on), .menu-btn, .stat, .card, .plan, .hero, .seg, .select, .cta, .cat-rail) {
  backdrop-filter: url(#liquid-glass) blur(1.5px) saturate(1.8) brightness(1.08);
}
html.liquid .modal-card { backdrop-filter: url(#liquid-glass) blur(14px) saturate(1.8) brightness(1.05); }
html.liquid .sidebar { background: linear-gradient(180deg, rgba(30,30,32,.36), rgba(10,10,12,.44)); }
html.liquid :is(.pill-nav, .chip, .lang-switch, .search, .tab:not(.on), .menu-btn, .seg, .select) { background: rgba(20,20,22,.26); }
html.liquid .plan {
  background:
    radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(255,255,255,.09), transparent 45%),
    var(--lg-sheen),
    rgba(10,10,12,.28);
}

/* Al pulsar se hunde y rebota como gel */
:is(.btn, .tab, .nav-item, .pill-nav a, .collapse-btn, .menu-btn, .chip) {
  transition: transform .55s var(--spring), background .25s, color .25s, border-color .25s, box-shadow .3s;
}
:is(.btn, .tab, .nav-item, .pill-nav a, .collapse-btn, .menu-btn):active {
  transform: scale(.94);
  transition-duration: .12s;
}
.stat:active, .plan:active { scale: .985; }
.stat, .plan { transition: transform .3s ease-out, border-color .35s, scale .5s var(--spring); }

/* Selector de idioma: la gota se estira al moverse */
.lang-switch::before {
  transition: transform .55s var(--spring);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(0,0,0,.15), 0 2px 12px rgba(255,255,255,.25);
}
.lang-switch.en::before { animation: dropRight .55s var(--spring); }
.lang-switch:not(.en)::before { animation: dropLeft .55s var(--spring); }
@keyframes dropRight { 35% { scale: 1.35 .82; } }
@keyframes dropLeft { 35% { scale: 1.35 .82; } }

/* Interruptor: al pulsar, el botón crece y se vuelve una lente de cristal */
.toggle-thumb { transition: transform .5s var(--spring), scale .5s var(--spring), background .3s, box-shadow .3s; }
.toggle:active .toggle-thumb {
  scale: 1.6 1.25;
  background: rgba(255,255,255,.3);
  box-shadow: var(--lg-rim), 0 4px 14px rgba(0,0,0,.4);
  backdrop-filter: blur(1px) saturate(1.8);
}
html.liquid .toggle:active .toggle-thumb { backdrop-filter: url(#liquid-glass) blur(.5px) saturate(1.8); }

/* ══ Secciones ════════════════════════════════════════════════ */
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0; }
mark { background: rgba(255,255,255,.9); color: #000; border-radius: 4px; padding: 0 2px; }
kbd {
  font: 600 11px ui-monospace, Consolas, monospace; color: var(--muted);
  padding: 2px 7px; border-radius: 6px; border: 1px solid var(--stroke-hi); background: rgba(255,255,255,.04);
}
.search:focus-within kbd { opacity: 0; }

/* Barra de herramientas: buscador + filtros + orden */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .search { width: 280px; }
.toolbar .search.grow { flex: 1; width: auto; min-width: 220px; }
.result-count { font-size: 12.5px; margin-left: auto; }

.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 99px; height: 46px; align-items: center; }
.seg button {
  height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: none; color: var(--muted);
  font: 500 12.5px 'Poppins', sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background .35s var(--spring), color .25s, transform .5s var(--spring);
}
.seg button:hover { color: #fff; }
.seg button.on { background: #fff; color: #000; box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(255,255,255,.15); }
.seg button:active { transform: scale(.92); }
.icon-seg button { width: 40px; padding: 0; justify-content: center; }
.icon-seg svg { width: 18px; height: 18px; }
.small-seg { height: 38px; }
.small-seg button { height: 30px; padding: 0 12px; font-size: 12px; }

.select { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 99px; color: var(--muted); box-shadow: var(--lg-rim); }
.select svg { width: 18px; height: 18px; }
.select select { background: none; border: 0; outline: 0; color: #fff; font: 500 13px 'Poppins', sans-serif; cursor: pointer; padding-right: 4px; }
.select option { background: #111; color: #fff; }

.btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }

/* ── Servidores ─────────────────────────────────────────────── */
.guild { cursor: pointer; outline: none; }
.guild:focus-visible { border-color: rgba(255,255,255,.4); }
.guild-body { display: flex; flex-direction: column; gap: 10px; }
.guild .guild-info h4 { margin: 0 0 4px; }
.guild .meta { flex-wrap: wrap; gap: 6px 12px; margin: 0; }
.guild-side { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Vista de lista */
.guild-grid.as-list { grid-template-columns: 1fr; gap: 10px; }
.as-list .guild-cover { display: none; }
.as-list .guild-body { flex-direction: row; align-items: center; margin-top: 0; padding: 14px 18px; gap: 16px; }
.as-list .guild .g-icon { width: 46px; height: 46px; border-radius: 14px; border-width: 2px; }
.as-list .guild-info { flex: 1; min-width: 0; }
.as-list .guild-side { gap: 16px; }
.guild-grid.as-list .guild:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateX(4px); }

/* Medidor de protección (2 barras) */
.shield-meter { display: inline-flex; gap: 4px; }
.shield-meter i { width: 18px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); transition: background .4s; }
.shield-meter.lvl-1 i:first-child,
.shield-meter.lvl-2 i { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.6); }

/* ── Ventana de detalle ─────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal-card {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 28px; border-radius: 30px; background: var(--lg-sheen), rgba(16,16,18,.72);
  backdrop-filter: blur(30px) saturate(1.5);
  opacity: 0; transform: translateY(24px) scale(.94);
  transition: opacity .3s, transform .55s var(--spring);
}
.modal.open .modal-scrim { opacity: 1; }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-x {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--stroke-hi); background: rgba(255,255,255,.05); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--lg-rim); transition: transform .5s var(--spring), background .2s;
}
.modal-x:hover { background: rgba(255,255,255,.12); transform: rotate(90deg); }
.modal-x svg { width: 16px; height: 16px; }

.m-head { display: flex; align-items: center; gap: 16px; padding-right: 44px; margin-bottom: 20px; }
.m-head > div { flex: 1; min-width: 0; }
.m-head h3 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-icon.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
.cmd-glyph { font-size: 28px; }
.copy-chip {
  margin-top: 6px; font: 500 11.5px ui-monospace, Consolas, monospace; color: var(--muted);
  padding: 4px 10px; border-radius: 99px; border: 1px solid var(--stroke-hi); background: rgba(255,255,255,.04); cursor: pointer;
  transition: color .2s, background .2s;
}
.copy-chip:hover { color: #fff; }
.copy-chip.copied, .icon-btn.copied { background: #fff; color: #000; }
.m-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.m-stats div { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--stroke); text-align: center; box-shadow: var(--lg-rim); }
.m-stats b { display: block; font-size: 20px; font-weight: 700; }
.m-stats span { font-size: 11.5px; color: var(--muted); }
.m-section { padding: 16px 0; border-top: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 8px; }
.m-row { display: flex; align-items: center; justify-content: space-between; }
.m-row h4 { font-size: 15px; font-weight: 600; }
.m-section b { color: #eee; }
.m-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-top: 4px; }
.m-desc { color: #c9c9c9; font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.m-foot { border-top: 1px solid var(--stroke); padding-top: 14px; }
.bars.compact { gap: 8px; }
.bars.compact .bar-row { grid-template-columns: 130px 1fr 30px; font-size: 12.5px; }
.bars.compact .bar-track { height: 7px; }
.usage-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(0,0,0,.4); border: 1px solid var(--stroke); }
.usage-box code { flex: 1; font: 13px ui-monospace, Consolas, monospace; color: #fff; word-break: break-all; }

/* ── Comandos ───────────────────────────────────────────────── */
.stat-val.mono { font-size: 34px; }
.cmd-layout { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.cat-rail {
  position: sticky; top: 22px; display: flex; flex-direction: column; gap: 4px; padding: 8px;
  border-radius: 24px; border: 1px solid var(--stroke); background: var(--lg-sheen), var(--glass); box-shadow: var(--lg-rim);
}
.cat-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 16px;
  border: 1px solid transparent; background: none; color: #a9a9a9; text-align: left; cursor: pointer;
  font: 500 13px 'Poppins', sans-serif; transition: background .25s, color .25s, transform .5s var(--spring);
}
.cat-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.cat-item:active { transform: scale(.96); }
.cat-item.on { color: #fff; background: linear-gradient(100deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); border-color: rgba(255,255,255,.14); box-shadow: var(--lg-rim); }
.cat-emoji { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.cat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cat-text small { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.cat-item em { font-style: normal; font-size: 11px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--stroke-hi); color: #bbb; }
.cmd-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cmd { outline: none; }
.cmd:focus-visible { border-color: rgba(255,255,255,.4); }
.cmd-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.cmd-foot code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--stroke); background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer;
  transition: color .2s, background .2s, transform .5s var(--spring);
}
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.icon-btn:active { transform: scale(.85); }
.icon-btn svg { width: 15px; height: 15px; }

/* ── Seguridad ──────────────────────────────────────────────── */
.sec-top { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.sec-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* justify-content: flex-start para que .gauge-center (absoluto, top = padding) quede sobre el anillo */
.gauge-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 26px; }
.gauge { width: 170px; height: 170px; transform: rotate(-90deg); overflow: visible; }
.gauge circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.gauge-bg { stroke: rgba(255,255,255,.07); }
.gauge-arc {
  stroke: #fff; stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.55));
  transition: stroke-dashoffset 1.4s var(--ease);
}
.gauge-center { position: absolute; top: 26px; left: 0; right: 0; height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-center b { font-size: 38px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.gauge-center span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.gauge-title { font-size: 13px; }

.alerts { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.alerts li {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px;
  border: 1px solid var(--stroke); background: rgba(255,255,255,.02);
  animation: rise .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms);
  transition: background .25s, transform .4s var(--spring);
}
.alerts li:hover { background: rgba(255,255,255,.05); transform: translateX(4px); }
.alerts li.lvl-0 { border-left: 3px solid #fff; }
.alerts li.lvl-1 { border-left: 3px solid #777; }
.alert-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.alert-text b { font-size: 14px; font-weight: 600; }
.alert-text span { font-size: 12px; color: var(--muted); }
.alerts .all-good { justify-content: center; color: #ddd; padding: 22px; border-style: dashed; }
.card-head.pad { padding: 12px 14px 4px; margin-bottom: 4px; }
.table tbody tr[data-guild] { cursor: pointer; outline: none; }
.table tbody tr[data-guild]:focus-visible { background: rgba(255,255,255,.06); }

/* ── Estadísticas ───────────────────────────────────────────── */
.split.even { grid-template-columns: 1fr 1fr; }
.mini-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mini-chips span { font-size: 11.5px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03); }
.mini-chips em { font-style: normal; color: var(--muted); }
.mini-chips b { font-weight: 600; }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut { width: 170px; height: 170px; flex-shrink: 0; }
.donut circle { fill: none; stroke-width: 14; transform: rotate(-90deg); transform-origin: 60px 60px; }
.donut-bg { stroke: rgba(255,255,255,.05); }
.donut-seg { animation: donutIn 1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 120ms); transition: stroke-width .3s; }
.donut-seg:hover { stroke-width: 18; }
@keyframes donutIn { from { stroke-dasharray: 0 100; } }
.donut-total { fill: #fff; font: 700 15px 'Poppins', sans-serif; text-anchor: middle; }
.donut-sub { fill: var(--muted); font: 9px 'Poppins', sans-serif; text-anchor: middle; }
.legend { list-style: none; flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 6px rgba(255,255,255,.2); }
.legend span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cfcfcf; }
.legend b { font-weight: 600; }
.kv { display: flex; flex-direction: column; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 500; text-align: right; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }

/* ── Planes: extra ──────────────────────────────────────────── */
.plan-badge {
  position: absolute; top: 26px; right: 24px; font-size: 11px; font-weight: 600; color: #000;
  padding: 4px 10px; border-radius: 99px; background: linear-gradient(90deg, #fff, #9a9a9a, #fff); background-size: 200% 100%;
  animation: sheen 3s linear infinite;
}
.compare { min-width: 560px; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 18%; }
.compare .hl { background: rgba(255,255,255,.04); }
.compare th.hl { color: #fff; }
.compare td.y::before, .compare td.n::before {
  content: ''; display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle;
  background: center / 12px no-repeat;
}
.compare td.y::before {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
}
.compare td.n::before {
  background-color: rgba(255,255,255,.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
}
.compare td.t { font-size: 12.5px; color: #ddd; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.faq details { border-radius: 20px; padding: 0; overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: var(--stroke-hi); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 500; font-size: 14.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 22px; font-weight: 300; line-height: 1; color: var(--muted);
  transition: transform .5s var(--spring), color .2s;
}
.faq details[open] summary::after { transform: rotate(135deg); color: #fff; }
.faq details p { padding: 0 22px 20px; color: #b5b5b5; font-size: 13.5px; line-height: 1.65; }
.faq details[open] p { animation: fadeUp .45s var(--ease); }
.faq details p b { color: #fff; }

.cta { display: flex; align-items: center; gap: 22px; padding: 26px 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.08) 50%, transparent 65%);
  transform: translateX(-100%); animation: shine 7s 1s ease-in-out infinite;
}
.cta img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--stroke-hi); animation: float 5s ease-in-out infinite; }
.cta > div { flex: 1; min-width: 220px; }
.cta h3 { font-size: 20px; font-weight: 700; }
.cta p { font-size: 13.5px; margin-top: 2px; }

@media (max-width: 1180px) {
  .sec-top { grid-template-columns: 1fr; }
  .split.even { grid-template-columns: 1fr; }
  .cmd-layout { grid-template-columns: 1fr; }
  .cat-rail { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .cat-item { width: auto; flex-shrink: 0; }
  .cat-text small { display: none; }
}
@media (max-width: 640px) {
  .sec-stats { grid-template-columns: 1fr; }
  .toolbar .search { width: 100%; }
  .result-count { margin-left: 0; }
  .m-stats { grid-template-columns: repeat(2, 1fr); }
  .as-list .guild-side { display: none; }
  .modal-card { padding: 22px 18px; border-radius: 24px; }
  .bars.compact .bar-row { grid-template-columns: 100px 1fr 24px; }
}

/* Cambio de idioma: fundido del texto */
body.lang-swap [data-i18n], body.lang-swap [data-i18n-html] { animation: langFade .4s var(--ease); }
@keyframes langFade { from { opacity: 0; filter: blur(3px); } }

.scrim { display: none; }

/* Con "reducir movimiento" solo se calma el fondo; el resto de animaciones se mantiene */
@media (prefers-reduced-motion: reduce) {
  .bg-img, .bg-grain, .bg-spot { animation: none; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .topbar-right .chip { display: none; }
}
@media (max-width: 1400px) {
  .topbar-right { display: none; }
}
@media (max-width: 900px) {
  .app { padding: 16px; gap: 16px; }
  .sidebar { position: fixed; left: 16px; top: 16px; height: calc(100vh - 32px); transform: translateX(calc(-100% - 24px)); animation: none; }
  .app.open .sidebar { transform: none; }
  .app.collapsed .sidebar { width: var(--sidebar); }
  .collapse-btn { display: none; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 15; backdrop-filter: blur(3px); }
  .app.open + .scrim { display: block; }
  .menu-btn { display: inline-flex; }
  .topbar { justify-content: flex-end; }
  .pill-nav a:not(.pill-cta) { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-word { margin-bottom: -40px; }
  .hero-banner { height: 150px; }
  .hero-body { padding: 0 18px 20px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .bar-row { grid-template-columns: 110px 1fr 50px; }
}
@media (max-width: 520px) {
  .stats-grid, .stats-grid.three { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .stat-val { font-size: 26px; }
  .view-head h2 { font-size: 24px; }
  .search { width: 100%; }
  .cmd-list, .guild-grid { grid-template-columns: 1fr; }
}
