/* =====================================================================
   BEXBY — sistema visual
   Oscuro, audiovisual, tarjetas grandes, bordes redondeados y transiciones suaves.
   ===================================================================== */

:root {
  --bg: #07070d;
  --bg-2: #0c0c16;
  --surface: #13131f;
  --surface-2: #1a1a29;
  --surface-3: #232336;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f3f8;
  --text-2: #b8b8cc;
  --muted: #7d7d96;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #f97316;
  --grad: linear-gradient(135deg, #7c3aed 0%, #db2777 60%, #f97316 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(219, 39, 119, 0.14) 60%, rgba(249, 115, 22, 0.12));
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --topbar-h: 66px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(124, 58, 237, 0.12), transparent 60%),
                    radial-gradient(900px 500px at -10% 10%, rgba(219, 39, 119, 0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
[hidden] { display: none !important; }
::selection { background: rgba(139, 92, 246, 0.45); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- Layout */
.page { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 40px) 60px; }
.page.page-wide { max-width: none; padding-left: 0; padding-right: 0; padding-top: 0; }
.page.page-narrow { max-width: 860px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 0; color: var(--text-2); }
.section { margin-bottom: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2 .icon { color: var(--accent-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------------------------------------------------------------- Topbar */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  background: linear-gradient(180deg, rgba(7, 7, 13, 0.96), rgba(7, 7, 13, 0.82));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { height: 100%; max-width: 1480px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 40px); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0.18em; font-size: 1.15rem; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand span { background: linear-gradient(90deg, #fff, #d9ccff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 550; font-size: 0.92rem; transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.main-nav a.active { color: #fff; background: rgba(139, 92, 246, 0.16); }
.main-nav a.active .icon { color: var(--accent-2); }
.topbar-search { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.topbar-search form { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 14px; height: 40px; transition: border-color 0.2s, background 0.2s; }
.topbar-search form:focus-within { border-color: rgba(139, 92, 246, 0.6); background: var(--surface-2); }
.topbar-search input { flex: 1; background: none; border: 0; outline: none; min-width: 0; font-size: 0.92rem; }
.topbar-search .icon { color: var(--muted); width: 18px; height: 18px; }
.search-open-btn { display: grid; place-items: center; background: none; border: 0; padding: 0; color: var(--muted); }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-height: 70vh; overflow-y: auto; padding: 8px;
}
.search-group-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 8px 10px 4px; }
.search-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.search-item:hover, .search-item.is-active { background: var(--surface-3); }
.search-item img.s-thumb, .search-item .s-thumb { width: 64px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--surface-3); flex-shrink: 0; }
.search-item .s-title { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item .s-sub { font-size: 0.78rem; color: var(--muted); }
.search-item > div { min-width: 0; }
.search-empty { padding: 14px; color: var(--muted); text-align: center; font-size: 0.9rem; }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.credit-pill {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, 0.35); font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.credit-pill:hover { transform: translateY(-1px); border-color: rgba(236, 72, 153, 0.6); }
.credit-pill .icon { color: var(--accent-2); width: 18px; height: 18px; }
.credit-pill strong { font-size: 1rem; }
.credit-pill.is-empty { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.4); }
.credit-pill.is-empty .icon { color: var(--danger); }
.credit-pill.bump { animation: bump 0.6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: transparent; border: 1px solid transparent; color: var(--text-2); transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.dot-badge {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent-2); color: #fff; font-size: 0.68rem; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.avatar-btn { display: flex; align-items: center; gap: 4px; background: none; border: 0; padding: 2px; border-radius: 999px; color: var(--text-2); }
.avatar-btn .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------- Dropdowns */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0.18s;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px;
  background: none; border: 0; color: var(--text-2); font-size: 0.92rem; text-align: left;
}
.menu-item:hover { background: var(--surface-3); color: #fff; }
.menu-item.danger { color: #fca5a5; }
.menu-item.danger:hover { background: rgba(239, 68, 68, 0.14); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.user-menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; }
.user-menu-head strong { display: block; }
.user-menu-head span { font-size: 0.8rem; color: var(--muted); word-break: break-all; }
.notif-menu { width: min(380px, 92vw); padding: 0; }
.notif-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-menu-head strong { font-size: 0.95rem; }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-menu-foot { display: block; text-align: center; padding: 10px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-2); }
.notif-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.88rem; transition: background 0.15s; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: rgba(139, 92, 246, 0.08); }
.notif-item.unread::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); flex-shrink: 0; margin-top: 6px; }
.notif-item .n-body { flex: 1; min-width: 0; }
.notif-item .n-time { color: var(--muted); font-size: 0.76rem; margin-top: 2px; }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-2); flex-shrink: 0; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: 0.92rem; white-space: nowrap; transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--surface-3); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn.is-loading { opacity: 0.6; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(219, 39, 119, 0.25); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 10px 30px rgba(219, 39, 119, 0.4); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-outline { background: transparent; }
.btn-danger { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.4); color: #fecaca; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); color: #fff; }
.btn-success { background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.4); color: #bbf7d0; }
.btn-success:hover { background: rgba(34, 197, 94, 0.25); }
.btn-white { background: #fff; color: #0b0b12; border-color: #fff; }
.btn-white:hover { background: #e9e9f2; color: #0b0b12; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 0.84rem; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn.is-active { border-color: rgba(236, 72, 153, 0.6); background: rgba(236, 72, 153, 0.14); color: #fff; }
.btn.is-active .icon { color: var(--accent-2); }
.btn .spinner { width: 16px; height: 16px; }

.spinner { width: 22px; height: 22px; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 0.78rem; color: var(--muted); }
.input, .select, .textarea, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .field input[type="search"], .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2);
  border: 1px solid var(--border-strong); color: var(--text); outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea, .textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(139, 92, 246, 0.8); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); background: var(--surface);
}
.field select, .select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9ab5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field select option, .select option { background: var(--surface); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: rgba(239, 68, 68, 0.8); }
.field-error { color: #fca5a5; font-size: 0.8rem; min-height: 0; }
.field-error:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9rem; color: var(--text-2); line-height: 1.45; }
.check input { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--bg-2); flex-shrink: 0; margin-top: 1px; display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; }
.check input:checked { background: var(--grad); border-color: transparent; }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: #d8b4fe; text-decoration: underline; text-underline-offset: 2px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 44px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; transition: background 0.2s; flex-shrink: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(20px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.input-icon input { padding-left: 42px !important; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 6px; }
.strength { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.strength span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 0.3s, background 0.3s; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-2); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.radio-card:hover { border-color: rgba(139, 92, 246, 0.5); }
.radio-card input { accent-color: var(--accent-2); margin-top: 3px; }
.radio-card:has(input:checked) { border-color: rgba(236, 72, 153, 0.7); background: rgba(236, 72, 153, 0.08); }
.radio-card strong { display: block; font-size: 0.92rem; }
.radio-card span { font-size: 0.8rem; color: var(--muted); }

/* ----------------------------------------------------------------- Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title-row h2, .card-title-row h3 { margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 0.76rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s; }
a.chip:hover { background: rgba(139, 92, 246, 0.2); color: #fff; }
.chip.active { background: var(--grad); color: #fff; }
.chip .icon { width: 14px; height: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { padding: 8px 14px; font-size: 0.85rem; }

.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge-published, .badge-active, .badge-resolved, .badge-visible { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.badge-pending, .badge-reviewing, .badge-open { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.badge-rejected, .badge-suspended, .badge-hidden { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.badge-deleted, .badge-dismissed { background: rgba(125, 125, 150, 0.2); color: #a1a1b5; }
.badge-public { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.badge-unlisted { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; }
.badge-private { background: rgba(236, 72, 153, 0.14); color: #f9a8d4; }
.badge-admin { background: var(--grad); color: #fff; }

/* --------------------------------------------------------------- Avatars */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-3); }
.avatar-initial { display: inline-grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--hue, 270) 70% 50%), hsl(calc(var(--hue, 270) + 50) 75% 45%)); }
.avatar-xs { width: 24px; height: 24px; font-size: 0.7rem; }
.avatar-sm { width: 34px; height: 34px; font-size: 0.85rem; }
.avatar-md { width: 44px; height: 44px; font-size: 1rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.6rem; }
.avatar-xl { width: 132px; height: 132px; font-size: 3rem; }

/* ----------------------------------------------------------- Video cards */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 20px; }
.video-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.3s; }
.card-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.65)); pointer-events: none; }
.video-card:hover .card-thumb { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(236, 72, 153, 0.35); }
.video-card:hover .card-thumb img { transform: scale(1.06); }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--grad-soft), var(--surface-2); color: rgba(255, 255, 255, 0.5); }
.thumb-fallback .icon { width: 42px; height: 42px; }
.card-duration { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.75); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; }
.card-lock { position: absolute; left: 10px; top: 10px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); color: #fcd34d; }
.card-lock.is-open { color: #86efac; }
.card-lock .icon { width: 16px; height: 16px; }
.card-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: #0b0b12; opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.3s var(--ease); }
.card-play .icon { width: 22px; height: 22px; margin-left: 3px; }
.video-card:hover .card-play { opacity: 1; transform: scale(1); }
.card-body { display: flex; gap: 12px; min-width: 0; }
.card-info { min-width: 0; flex: 1; }
.card-title { font-size: 0.98rem; font-weight: 650; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-author { font-size: 0.84rem; color: var(--text-2); }
.card-author:hover { color: #fff; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta .icon { width: 14px; height: 14px; }
.card-extra { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.card-extra .chip { font-size: 0.7rem; padding: 2px 8px; }

/* Filas horizontales tipo streaming */
.row-scroller { position: relative; }
.row-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 16px; scrollbar-width: none; }
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { scroll-snap-align: start; }
.row-btn { position: absolute; top: calc(50% - 44px); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(10, 10, 18, 0.85); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity 0.2s, transform 0.2s; backdrop-filter: blur(6px); }
.row-btn.prev { left: -14px; }
.row-btn.next { right: -14px; }
.row-scroller:hover .row-btn { opacity: 1; }
.row-btn:hover { transform: scale(1.08); }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; min-height: min(72vh, 620px); display: flex; align-items: flex-end;
  padding: 0 clamp(16px, 4vw, 56px) clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); transform: scale(1.04); animation: heroZoom 18s ease-in-out infinite alternate; }
.hero-bg.fallback { background: var(--grad); opacity: 0.35; }
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 7, 13, 0.95) 0%, rgba(7, 7, 13, 0.7) 40%, rgba(7, 7, 13, 0.15) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 45%); }
.hero-content { max-width: 620px; animation: fadeUp 0.7s var(--ease) both; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.hero-kicker .icon { width: 16px; height: 16px; color: var(--accent-3); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 12px; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.hero p { color: var(--text-2); font-size: 1.05rem; max-width: 540px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-2); font-size: 0.9rem; margin-bottom: 22px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .icon { width: 16px; height: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.home-rows { padding: 0 clamp(16px, 3vw, 40px); max-width: 1480px; margin: -30px auto 0; position: relative; z-index: 3; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Banner de créditos */
.credit-banner {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: var(--radius-lg);
  background: var(--grad-soft), var(--surface); border: 1px solid rgba(139, 92, 246, 0.3); margin-bottom: 36px; flex-wrap: wrap;
}
.credit-banner .cb-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 10px 30px rgba(219, 39, 119, 0.35); }
.credit-banner .cb-icon .icon { width: 28px; height: 28px; color: #fff; }
.credit-banner .cb-text { flex: 1; min-width: 220px; }
.credit-banner .cb-count { font-size: 1.5rem; font-weight: 800; }
.credit-banner p { margin: 2px 0 0; color: var(--text-2); }
.credit-banner.is-empty { background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(249, 115, 22, 0.1)), var(--surface); border-color: rgba(239, 68, 68, 0.35); }
.credit-banner.is-empty .cb-icon { background: linear-gradient(135deg, #ef4444, #f97316); }
.credit-banner.is-unlimited { background: linear-gradient(135deg, rgba(250, 204, 21, 0.14), rgba(249, 115, 22, 0.1)), var(--surface); border-color: rgba(250, 204, 21, 0.4); }
.credit-banner.is-unlimited .cb-icon { background: linear-gradient(135deg, #facc15, #f97316); box-shadow: 0 10px 30px rgba(250, 204, 21, 0.25); }
.credit-banner.is-unlimited .cb-icon .icon { color: #1a1205; }

/* --------------------------------------------------------- Empty states */
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.015); }
.empty .icon { width: 44px; height: 44px; color: var(--muted); margin-bottom: 12px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }

/* ----------------------------------------------------------------- Watch */
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.watch-main { min-width: 0; }
.player {
  position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); user-select: none; -webkit-user-select: none;
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; }
.player.hide-cursor { cursor: none; }
.player-overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; text-align: center; padding: 24px; }
.player-overlay .po-bg { position: absolute; inset: 0; z-index: -1; }
.player-overlay .po-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(0.35); transform: scale(1.1); }
.player-overlay .po-bg.fallback { background: var(--grad); opacity: 0.25; }
.po-card { max-width: 460px; animation: fadeUp 0.5s var(--ease) both; }
.po-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); display: grid; place-items: center; }
.po-icon .icon { width: 34px; height: 34px; }
.po-icon.locked { color: #fcd34d; }
.po-icon.ok { color: #86efac; }
.po-card h2 { font-size: 1.4rem; }
.po-card p { color: var(--text-2); }
.po-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: 78px; height: 78px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: #000; display: grid; place-items: center; transition: transform 0.2s var(--ease), opacity 0.2s; }
.big-play .icon { width: 32px; height: 32px; margin-left: 4px; }
.big-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.player.playing .big-play { opacity: 0; pointer-events: none; }
.player-spinner { position: absolute; left: 50%; top: 50%; margin: -22px 0 0 -22px; width: 44px; height: 44px; z-index: 3; border-width: 3px; }

.controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 30px 16px 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent); transition: opacity 0.3s, transform 0.3s var(--ease);
}
.player.idle.playing .controls { opacity: 0; transform: translateY(8px); pointer-events: none; }
.seek { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.seek-rail { position: relative; width: 100%; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); transition: height 0.15s; }
.seek:hover .seek-rail { height: 7px; }
.seek-buffer, .seek-played, .seek-allowed { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.seek-buffer { background: rgba(255, 255, 255, 0.3); }
.seek-allowed { background: rgba(252, 211, 77, 0.28); }
.seek-played { background: var(--grad); }
.seek-thumb { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.35); transform: scale(0); transition: transform 0.15s; }
.seek:hover .seek-thumb, .seek.dragging .seek-thumb { transform: scale(1); }
.seek-marker { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: #fcd34d; border-radius: 2px; box-shadow: 0 0 8px rgba(252, 211, 77, 0.8); }
.seek-tooltip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.85); font-size: 0.75rem; font-weight: 700; pointer-events: none; white-space: nowrap; }
.controls-row { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.ctrl { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: #fff; display: grid; place-items: center; transition: background 0.15s; }
.ctrl:hover { background: rgba(255, 255, 255, 0.12); }
.ctrl .icon { width: 22px; height: 22px; }
.ctrl-time { font-size: 0.84rem; font-variant-numeric: tabular-nums; color: #e5e5ef; padding: 0 8px; white-space: nowrap; }
.volume { display: flex; align-items: center; }
.volume input[type="range"] { width: 0; opacity: 0; transition: width 0.2s, opacity 0.2s; accent-color: var(--accent-2); }
.volume:hover input[type="range"], .volume:focus-within input[type="range"] { width: 80px; opacity: 1; }
.speed-menu { position: relative; }
.speed-menu .ctrl { width: auto; padding: 0 10px; font-size: 0.82rem; font-weight: 700; }
.speed-list { position: absolute; bottom: 46px; right: 0; background: rgba(15, 15, 25, 0.96); border: 1px solid var(--border-strong); border-radius: 12px; padding: 6px; min-width: 110px; }
.speed-list button { display: block; width: 100%; text-align: left; padding: 7px 12px; border: 0; background: none; border-radius: 8px; color: var(--text-2); font-size: 0.85rem; }
.speed-list button:hover { background: var(--surface-3); color: #fff; }
.speed-list button.active { color: #fff; font-weight: 700; }
.unlock-meter { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(8px); font-size: 0.8rem; font-weight: 600; transition: opacity 0.3s; }
.unlock-meter .icon { width: 16px; height: 16px; color: #fcd34d; }
.unlock-meter .um-bar { width: 90px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.unlock-meter .um-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fcd34d, #f97316); transition: width 0.5s; }
.unlock-meter.done .icon { color: #86efac; }
.unlock-meter.done .um-bar span { background: var(--success); }
.player.idle.playing .unlock-meter { opacity: 0.35; }

.watch-title { font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin: 20px 0 10px; }
.watch-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.watch-stats { display: flex; gap: 16px; color: var(--text-2); font-size: 0.9rem; flex-wrap: wrap; }
.watch-stats span { display: inline-flex; align-items: center; gap: 6px; }
.watch-stats .icon { width: 16px; height: 16px; }
.watch-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.react-wrap { position: relative; }
.react-picker { position: absolute; bottom: calc(100% + 10px); left: 0; display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px) scale(0.95); transition: all 0.2s var(--ease); z-index: 20; }
.react-wrap:hover .react-picker, .react-wrap.open .react-picker { opacity: 1; visibility: visible; transform: none; }
.react-option { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--text-2); display: grid; place-items: center; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s; position: relative; }
.react-option:hover { transform: scale(1.2) translateY(-3px); background: var(--surface-3); color: #fff; }
.react-option.active { color: var(--accent-2); background: rgba(236, 72, 153, 0.15); }
.react-option .icon { width: 22px; height: 22px; }
.react-option[data-type="like"]:hover, .react-option[data-type="like"].active { color: #60a5fa; }
.react-option[data-type="love"]:hover, .react-option[data-type="love"].active { color: #f472b6; }
.react-option[data-type="wow"]:hover, .react-option[data-type="wow"].active { color: #fbbf24; }
.react-option[data-type="fun"]:hover, .react-option[data-type="fun"].active { color: #34d399; }
.react-summary { display: flex; gap: 10px; font-size: 0.82rem; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.react-summary span { display: inline-flex; align-items: center; gap: 4px; }
.react-summary .icon { width: 14px; height: 14px; }

.author-box { display: flex; align-items: center; gap: 14px; padding: 18px 0; }
.author-box .ab-info { flex: 1; min-width: 0; }
.author-box .ab-name { font-weight: 700; font-size: 1.02rem; }
.author-box .ab-sub { font-size: 0.84rem; color: var(--muted); }
.description-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; white-space: pre-line; color: var(--text-2); font-size: 0.93rem; position: relative; }
.description-box.clamped { max-height: 140px; overflow: hidden; }
.description-box.clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: linear-gradient(transparent, var(--surface)); }
.desc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; white-space: normal; }
.side-list { display: flex; flex-direction: column; gap: 14px; }
.side-item { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 12px; align-items: start; }
.side-item .card-thumb { border-radius: 10px; }
.side-item .card-title { font-size: 0.9rem; }
.side-item .card-play { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
.side-item .card-play .icon { width: 16px; height: 16px; }

/* Comentarios */
.comments { margin-top: 30px; }
.comment-form { display: flex; gap: 12px; margin-bottom: 26px; }
.comment-form .cf-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.comment-form textarea { min-height: 48px; height: 48px; resize: none; transition: height 0.2s; }
.comment-form textarea:focus { height: 96px; }
.comment-form .cf-actions { display: flex; justify-content: flex-end; gap: 8px; }
.comment { display: flex; gap: 12px; margin-bottom: 18px; animation: fadeUp 0.35s var(--ease) both; }
.comment .c-body { flex: 1; min-width: 0; }
.comment .c-head { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; flex-wrap: wrap; }
.comment .c-head a { font-weight: 700; }
.comment .c-head .muted { font-size: 0.78rem; }
.comment .c-text { margin: 4px 0 6px; white-space: pre-line; word-wrap: break-word; font-size: 0.93rem; }
.comment .c-text.deleted { color: var(--muted); font-style: italic; }
.comment .c-actions { display: flex; gap: 4px; }
.comment .c-actions button { background: none; border: 0; color: var(--muted); font-size: 0.8rem; font-weight: 600; padding: 4px 8px; border-radius: 8px; }
.comment .c-actions button:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.comment .replies { margin-top: 12px; }
.comment .reply-form { margin: 10px 0 14px; }
.owner-tag { font-size: 0.68rem; padding: 1px 7px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; }

/* ---------------------------------------------------------------- Profile */
.profile-cover { position: relative; height: clamp(160px, 26vw, 300px); border-radius: var(--radius-lg); overflow: hidden; background: var(--grad); }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 7, 13, 0.7), transparent 60%); }
.profile-head { display: flex; align-items: flex-end; gap: 24px; padding: 0 clamp(12px, 3vw, 32px); margin-top: -66px; position: relative; z-index: 2; flex-wrap: wrap; }
.profile-head .avatar-xl { border: 5px solid var(--bg); box-shadow: var(--shadow); }
.profile-head .ph-info { flex: 1; min-width: 220px; padding-bottom: 8px; }
.profile-head h1 { margin: 0 0 4px; }
.profile-head .ph-actions { display: flex; gap: 8px; padding-bottom: 12px; flex-wrap: wrap; }
.profile-stats { display: flex; gap: 26px; flex-wrap: wrap; margin: 22px clamp(12px, 3vw, 32px) 10px; }
.profile-stats div strong { display: block; font-size: 1.3rem; font-weight: 800; }
.profile-stats div span { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.profile-bio { margin: 10px clamp(12px, 3vw, 32px) 28px; color: var(--text-2); max-width: 760px; white-space: pre-line; }

/* ------------------------------------------------------------------ Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--text-2); font-weight: 600; font-size: 0.92rem; white-space: nowrap; background: none; border: 0; }
.tab:hover { color: #fff; }
.tab.active { color: #fff; }
.tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); }
.tab .count { font-size: 0.72rem; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); }

/* ---------------------------------------------------------------- Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.table .t-thumb { width: 104px; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.table .t-title { font-weight: 650; display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .t-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.table .t-user { display: flex; align-items: center; gap: 10px; }
.num { font-variant-numeric: tabular-nums; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.page-link { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: 0.9rem; }
.page-link:hover { border-color: rgba(139, 92, 246, 0.6); color: #fff; }
.page-link.active { background: var(--grad); color: #fff; border-color: transparent; }
.page-link .icon { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- Modals */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-dialog { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(14px) scale(0.98); transition: transform 0.25s var(--ease); }
.modal.open .modal-dialog { transform: none; }
.modal-dialog.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 1.1rem; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); }
.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; }
.pick-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 8px 0 14px; }
.pick-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.pick-item:hover { background: var(--surface-2); }
.pick-item input { accent-color: var(--accent-2); width: 18px; height: 18px; }

/* ---------------------------------------------------------------- Toasts */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: min(400px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: 0.9rem; animation: toastIn 0.35s var(--ease) both; }
.toast.out { animation: toastOut 0.3s ease forwards; }
.toast .icon { width: 20px; height: 20px; margin-top: 1px; }
.toast.success .icon { color: var(--success); }
.toast.error .icon { color: var(--danger); }
.toast.info .icon { color: var(--info); }
.toast.credit { background: var(--grad-soft), var(--surface-2); border-color: rgba(236, 72, 153, 0.5); }
.toast.credit .icon { color: var(--accent-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ------------------------------------------------------------------ Auth */
.auth-body { background: var(--bg); }
.auth-wrap { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; background: var(--bg-2); isolation: isolate; }
.auth-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 20% 20%, rgba(124, 58, 237, 0.45), transparent 60%), radial-gradient(500px 400px at 80% 60%, rgba(219, 39, 119, 0.35), transparent 60%), radial-gradient(400px 300px at 40% 100%, rgba(249, 115, 22, 0.3), transparent 60%); }
.auth-mosaic { position: absolute; inset: -40px; z-index: -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; transform: rotate(-8deg) scale(1.15); opacity: 0.35; }
.auth-mosaic span { aspect-ratio: 16 / 10; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.08); animation: tileFloat 8s ease-in-out infinite alternate; }
.auth-mosaic span:nth-child(3n) { animation-delay: -3s; background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.12)); }
.auth-mosaic span:nth-child(4n+1) { animation-delay: -5s; }
@keyframes tileFloat { to { transform: translateY(-16px); } }
.auth-visual h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 520px; }
.auth-visual p { color: var(--text-2); max-width: 460px; font-size: 1.05rem; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 6vw, 80px); }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; animation: fadeUp 0.6s var(--ease) both; }
.auth-card .brand { margin-bottom: 32px; }
.auth-card h2 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); margin-bottom: 26px; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--text-2); font-size: 0.92rem; }
.auth-foot a { color: #d8b4fe; font-weight: 600; }
.age-box { border: 1px solid rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.07); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 16px; border: 1px solid; }
.alert .icon { width: 18px; height: 18px; margin-top: 2px; }
.alert-error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.35); color: #fecaca; }
.alert-info { background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.3); color: #bae6fd; }
.alert-warning { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.35); color: #fde68a; }
.alert-success { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.35); color: #bbf7d0; }

/* ---------------------------------------------------------------- Landing */
.guest-top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(16px, 4vw, 56px); }
.landing-hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 20px 80px; overflow: hidden; isolation: isolate; }
.landing-hero .auth-mosaic { opacity: 0.28; }
.landing-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(7, 7, 13, 0.5), var(--bg) 75%); }
.landing-hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 900; max-width: 900px; margin: 0 auto 18px; }
.landing-hero p { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-2); max-width: 640px; margin: 0 auto 32px; }
.landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; padding: 0 20px 90px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.step-card:hover { transform: translateY(-6px); border-color: rgba(236, 72, 153, 0.4); }
.step-card .step-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); margin-bottom: 18px; }
.step-card .step-icon .icon { width: 26px; height: 26px; color: #fff; }
.step-card p { color: var(--text-2); margin: 0; }
.adult-note { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(245, 158, 11, 0.4); color: #fde68a; font-size: 0.82rem; font-weight: 600; margin-bottom: 24px; background: rgba(245, 158, 11, 0.06); }
.adult-note .icon { width: 16px; height: 16px; }

/* --------------------------------------------------------------- Upload */
.upload-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.dropzone { position: relative; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; background: rgba(255, 255, 255, 0.015); transition: border-color 0.2s, background 0.2s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: rgba(236, 72, 153, 0.7); background: rgba(236, 72, 153, 0.05); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 16px 40px rgba(219, 39, 119, 0.35); }
.dropzone .dz-icon .icon { width: 34px; height: 34px; color: #fff; }
.dropzone h3 { font-size: 1.2rem; }
.upload-preview { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; margin-bottom: 14px; }
.upload-preview video { width: 100%; height: 100%; object-fit: contain; }
.file-info { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 16px; }
.file-info .icon { color: var(--accent-2); }
.file-info .fi-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.thumb-option { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--surface-3); padding: 0; transition: border-color 0.2s, transform 0.2s; }
.thumb-option img { width: 100%; height: 100%; object-fit: cover; }
.thumb-option.active { border-color: var(--accent-2); transform: scale(1.03); }
.thumb-option.custom { display: grid; place-items: center; color: var(--text-2); font-size: 0.72rem; font-weight: 600; gap: 2px; }
.thumb-option.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.progress { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width 0.25s; position: relative; overflow: hidden; }
.progress span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.upload-status { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: var(--text-2); margin-top: 8px; flex-wrap: wrap; }
.upload-steps { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.upload-steps span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; padding: 5px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.upload-steps span.active { background: rgba(139, 92, 246, 0.2); color: #fff; }
.upload-steps span.done { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.upload-steps .icon { width: 14px; height: 14px; }
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; color: var(--text-2); }
.info-list li { display: flex; gap: 10px; }
.info-list .icon { width: 18px; height: 18px; color: var(--accent-2); margin-top: 1px; }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; min-height: 44px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-strong); }
.tag-input:focus-within { border-color: rgba(139, 92, 246, 0.8); }
.tag-input input { flex: 1; min-width: 120px; background: none; border: 0; outline: none; padding: 4px 6px; }
.tag-input .chip button { background: none; border: 0; color: inherit; padding: 0; display: grid; place-items: center; }

/* --------------------------------------------------------- Stats boxes */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { position: relative; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.stat::before { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--grad); opacity: 0.12; }
.stat .s-label { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.stat .s-label .icon { width: 16px; height: 16px; color: var(--accent-2); }
.stat .s-value { font-size: 1.8rem; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .s-sub { font-size: 0.8rem; color: var(--text-2); }

.ledger { list-style: none; padding: 0; margin: 0; }
.ledger li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.ledger li:last-child { border-bottom: 0; }
.ledger .l-amt { font-weight: 800; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.ledger .l-amt.pos { color: var(--success); }
.ledger .l-amt.neg { color: #fca5a5; }
.ledger .l-note { flex: 1; min-width: 0; }

.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 4px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 0.92rem; }
.settings-nav a:hover { background: var(--surface); color: #fff; }
.settings-section { scroll-margin-top: calc(var(--topbar-h) + 20px); margin-bottom: 24px; }
.image-edit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cover-preview { width: 100%; height: 140px; border-radius: 14px; overflow: hidden; background: var(--grad); margin-bottom: 12px; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.session-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.session-item:last-child { border-bottom: 0; }
.session-item .si-info { flex: 1; min-width: 0; font-size: 0.88rem; }
.session-item .si-info div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.legal { max-width: 860px; }
.legal h2 { margin-top: 32px; }
.legal p, .legal li { color: var(--text-2); }
.legal li { margin-bottom: 6px; }

.site-footer { border-top: 1px solid var(--border); padding: 30px clamp(16px, 3vw, 40px); color: var(--muted); font-size: 0.85rem; }
.site-footer .sf-inner { max-width: 1480px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a:hover { color: #fff; }

.error-page { flex: 1; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; line-height: 1; }

.notif-page { overflow: hidden; }
.notif-row { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); padding-right: 10px; }
.notif-row:last-child { border-bottom: 0; }
.notif-row .notif-item { flex: 1; min-width: 0; border-bottom: 0; }
.search-page-form { display: flex; gap: 10px; margin-bottom: 18px; max-width: 720px; }
.search-page-form .input-icon { flex: 1; }
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.user-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px; text-align: center; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.2s var(--ease), border-color 0.2s; }
.user-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.file-btn { position: relative; cursor: pointer; }

/* ------------------------------------------------- Cuentas verificadas */
.vbadge { display: inline-flex; vertical-align: -0.12em; margin-left: 4px; color: #1d8cf8; flex-shrink: 0; line-height: 1; }
.vbadge .icon { width: 1.05em; height: 1.05em; min-width: 14px; min-height: 14px; }
.vbadge-lg .icon { width: 26px; height: 26px; }
.vbadge-md .icon { width: 20px; height: 20px; }
h1 .vbadge, h2 .vbadge { margin-left: 8px; }
.verify-status { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 18px; background: rgba(29, 140, 248, 0.1); border: 1px solid rgba(29, 140, 248, 0.35); }
.verify-status > .vbadge, .verify-status > .icon { margin: 0; }
.verify-status > .vbadge .icon, .verify-status > .icon { width: 34px; height: 34px; }
.verify-status > .icon { color: #93c5fd; }
.verify-status p { margin: 2px 0 0; color: var(--text-2); font-size: 0.9rem; }
.verify-status.is-pending { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.35); }
.verify-status.is-pending > .icon { color: #fcd34d; }
.req-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.req-list li { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; color: var(--text-2); }
.req-list .icon { width: 18px; height: 18px; }
.req-list li.ok .icon { color: var(--success); }
.req-list li.no .icon { color: var(--danger); }
.badge-approved { background: rgba(29, 140, 248, 0.15); color: #93c5fd; }
.text-verified { color: #93c5fd; font-weight: 600; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list .spacer { flex: 1; }

/* ------------------------------------------------------- Menú lateral */
.nav-toggle { display: inline-grid; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s var(--ease); }
.drawer-backdrop.show { opacity: 1; }
.side-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; width: min(320px, 86vw);
  display: flex; flex-direction: column; gap: 14px; padding: 16px 14px;
  background: var(--bg-2); border-right: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateX(-104%); transition: transform 0.32s var(--ease); overflow-y: auto; overscroll-behavior: contain;
}
.side-drawer.open { transform: none; }
body.drawer-open { overflow: hidden; }
.sd-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.sd-user { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.sd-user:hover { border-color: var(--border-strong); }
.sd-user div { display: flex; flex-direction: column; min-width: 0; }
.sd-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-user span { font-size: 0.8rem; color: var(--muted); }
.sd-plan { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid rgba(236, 72, 153, 0.3); }
.sd-plan > .icon { width: 26px; height: 26px; color: var(--accent-2); }
.sd-plan div { display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; color: var(--text-2); }
.sd-plan strong { color: #fff; font-size: 0.95rem; }
.sd-plan.is-empty { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.35); }
.sd-plan.is-empty > .icon { color: var(--danger); }
.sd-plan.is-unlimited { background: linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(249, 115, 22, 0.14)); border-color: rgba(250, 204, 21, 0.4); }
.sd-plan.is-unlimited > .icon { color: #facc15; }
.sd-byte-cta { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius); border: 1px dashed rgba(250, 204, 21, 0.45); font-size: 0.82rem; color: var(--text-2); }
.sd-byte-cta .icon { color: #facc15; width: 18px; height: 18px; }
.sd-byte-cta strong { color: #fde68a; }
.sd-byte-cta:hover { background: rgba(250, 204, 21, 0.08); }
.sd-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sd-section { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 12px 12px 4px; }
.sd-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 0.92rem; transition: background 0.15s, color 0.15s; }
.sd-nav a:hover, .sd-nav a:focus-visible { background: var(--surface); color: #fff; }
.sd-nav a.active { background: var(--grad-soft); color: #fff; box-shadow: inset 3px 0 0 var(--accent-2); }
.sd-nav a.active .icon { color: var(--accent-2); }
.sd-badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--accent-2); color: #fff; font-size: 0.72rem; text-align: center; }
.sd-foot { border-top: 1px solid var(--border); padding-top: 10px; }
.sd-logout { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: #fca5a5; font-weight: 600; font-size: 0.92rem; }
.sd-logout:hover { background: rgba(239, 68, 68, 0.1); }

.credit-pill.is-unlimited { background: linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(249, 115, 22, 0.14)); border-color: rgba(250, 204, 21, 0.45); }
.credit-pill.is-unlimited .icon { color: #facc15; }
.main-nav a.nav-byte { color: #fde68a; }
.main-nav a.nav-byte .icon { color: #facc15; }
.card-lock.is-byte { color: #facc15; }

/* ------------------------------------------------------------ Plan Byte */
.byte-hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); margin-bottom: 26px; background: radial-gradient(120% 140% at 100% 0%, rgba(250, 204, 21, 0.22), transparent 55%), radial-gradient(120% 140% at 0% 100%, rgba(219, 39, 119, 0.22), transparent 55%), var(--surface); border: 1px solid rgba(250, 204, 21, 0.3); }
.byte-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 10px 0 8px; }
.byte-hero p { color: var(--text-2); max-width: 640px; margin: 0; }
.byte-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: rgba(250, 204, 21, 0.14); color: #fde68a; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; }
.byte-kicker .icon { width: 16px; height: 16px; color: #facc15; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 30px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.plan-card.is-byte { border-color: rgba(250, 204, 21, 0.5); background: linear-gradient(160deg, rgba(250, 204, 21, 0.1), rgba(249, 115, 22, 0.06) 50%, transparent), var(--surface); box-shadow: 0 20px 50px rgba(250, 204, 21, 0.08); }
.plan-card h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.plan-card.is-byte h2 .icon { color: #facc15; }
.plan-price { font-size: 2.4rem; font-weight: 900; line-height: 1; }
.plan-price small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 0.92rem; }
.plan-features .icon { width: 18px; height: 18px; color: var(--success); margin-top: 1px; }
.plan-features li.no .icon { color: var(--muted); }
.plan-ribbon { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 99px; background: linear-gradient(135deg, #facc15, #f97316); color: #1a1205; font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.byte-status { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--radius); margin-bottom: 24px; background: linear-gradient(135deg, rgba(250, 204, 21, 0.14), rgba(249, 115, 22, 0.1)), var(--surface); border: 1px solid rgba(250, 204, 21, 0.4); }
.byte-status .bs-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #facc15, #f97316); color: #1a1205; flex-shrink: 0; }
.byte-status .bs-icon .icon { width: 28px; height: 28px; }
.byte-status .bs-text { flex: 1; min-width: 220px; }
.byte-status h2 { margin: 0 0 2px; }
.byte-status p { margin: 0; color: var(--text-2); }
.byte-status.is-pending { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.4); }
.byte-status.is-pending .bs-icon { background: rgba(245, 158, 11, 0.25); color: #fcd34d; }
.pay-info { padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 0.9rem; white-space: pre-line; }
.months-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.months-picker label { position: relative; cursor: pointer; }
.months-picker input { position: absolute; opacity: 0; pointer-events: none; }
.months-picker span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 700; transition: border-color 0.15s, background 0.15s; }
.months-picker span small { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.months-picker input:checked + span { border-color: #facc15; background: rgba(250, 204, 21, 0.1); }
.months-picker input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.badge-expired, .badge-cancelled { background: rgba(125, 125, 150, 0.2); color: #a1a1b5; }
.badge-byte { background: linear-gradient(135deg, #facc15, #f97316); color: #1a1205; }

.quality-badge { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); color: #fff; pointer-events: auto; }
.quality-badge .icon { width: 16px; height: 16px; }
.quality-badge.is-hd { color: #fde68a; }
.quality-badge.is-sd a { color: #fde68a; text-decoration: underline; font-weight: 700; }
.byte-note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin-top: 12px; border-radius: 12px; background: rgba(250, 204, 21, 0.08); border: 1px solid rgba(250, 204, 21, 0.3); font-size: 0.88rem; color: var(--text-2); }
.byte-note .icon { color: #facc15; }
.byte-note a { color: #fde68a; font-weight: 700; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1200px) {
  .main-nav a span { display: none; }
  .main-nav a { padding: 10px; }
  .watch-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .side-item { grid-template-columns: 140px minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .watch-layout { grid-template-columns: 1fr; }
  .side-item { grid-template-columns: 200px minmax(0, 1fr); }
  .upload-layout { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .credit-pill span { display: none; }
  .credit-pill::after { content: attr(data-short); font-weight: 800; }
}
@media (max-width: 860px) {
  :root { --topbar-h: 60px; }
  .main-nav { display: none; }
  .plans { grid-template-columns: 1fr; }
  .months-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-search { position: static; max-width: none; }
  .topbar-search form { width: 40px; padding: 0; justify-content: center; border-color: transparent; background: none; }
  .topbar-search form input { display: none; }
  .topbar-search.expanded form { position: absolute; left: 12px; right: 12px; top: 10px; width: auto; padding: 0 14px; background: var(--surface-2); border-color: var(--border-strong); z-index: 5; }
  .topbar-search.expanded form input { display: block; }
  .search-dropdown { left: 12px; right: 12px; top: calc(var(--topbar-h) - 4px); }
  .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .landing-steps { grid-template-columns: 1fr; }
  .row-btn { display: none; }
  .hero { min-height: 480px; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .brand span { display: none; }
  .video-grid { grid-template-columns: 1fr; gap: 22px; }
  .row-track { grid-auto-columns: 78%; }
  .side-item { grid-template-columns: 140px minmax(0, 1fr); }
  .player { border-radius: 0; margin: 0 calc(-1 * clamp(16px, 3vw, 40px)); }
  .page { padding-top: 16px; }
  .watch-page .page { padding-top: 0; }
  .ctrl { width: 36px; height: 36px; }
  .volume input[type="range"] { display: none; }
  .thumb-picker { grid-template-columns: repeat(2, 1fr); }
  .table .t-thumb { width: 80px; }
  .profile-head { justify-content: center; text-align: center; }
  .profile-head .ph-actions { justify-content: center; width: 100%; }
  .profile-stats { justify-content: center; }
  .modal { padding: 10px; align-items: end; }
  .modal-dialog { max-height: 92vh; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .topbar-actions { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
