:root {
  --bg: #0f172a;
  --surface: #111c2f;
  --surface2: #1b2842;
  --surface3: #223154;
  --primary: #10b981;
  --primaryGlow: rgba(16,185,129,.22);
  --accent: #f59e0b;
  --danger: #ef4444;
  --text: #f8fafc;
  --muted: #94a3b8;
  --radius: 22px;
  --radiusSm: 12px;
  --border: 1px solid rgba(255,255,255,.08);
  --shadow: 0 18px 55px rgba(0,0,0,.55);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background-color: var(--bg); }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  padding-bottom: 120px;
  overflow-x: hidden;
}
body.lock-login {
  height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  padding-bottom: 0;
}
body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
.container { max-width: 980px; margin: 0 auto; padding: 20px; }
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  gap: 20px;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.splash-spin i { font-size: 3rem; color: var(--primary); }
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-hint { color: var(--muted); font-size: 0.9rem; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: .5 } 50% { opacity: 1 } 100% { opacity: .5 } }
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%);
  width: min(92%,920px);
  background: rgba(30,41,59,.92);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  z-index: 2000;
  opacity: 0; pointer-events: none;
  transition: .2s;
}
.toast.show { opacity: 1; pointer-events: auto; }
.toast i { margin-top: 2px; }
.toast .t-title { font-weight: 900; margin-bottom: 2px; }
.toast .t-msg { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.auth-errors {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(94%,520px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}
.auth-toast {
  background: linear-gradient(180deg, rgba(20,30,50,.92), rgba(10,15,25,.92));
  border: 1px solid rgba(255,80,80,.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,.55);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: authPop .22s ease;
  position: relative;
  overflow: hidden;
}
.auth-toast::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(239,68,68,1), rgba(239,68,68,.2));
}
.auth-toast i { color: #ef4444; font-size: 18px; margin-top: 2px; }
.auth-title { font-weight: 900; font-size: .95rem; }
.auth-msg { color: #94a3b8; font-size: .85rem; line-height: 1.35; }
.auth-close { position: absolute; right: 12px; top: 10px; cursor: pointer; opacity: .7; }
.auth-close:hover { opacity: 1; }
.auth-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: rgba(239,68,68,.25); overflow: hidden;
}
.auth-progress > div {
  height: 100%; width: 100%; transform-origin: left;
  background: rgba(239,68,68,.85); animation: authBar 5.5s linear forwards;
}
@keyframes authPop { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes authBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.view { display: none; opacity: 0; animation: fadeIn .32s forwards; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hidden { display: none !important; }
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}
.login-card {
  width: min(440px, 94%);
  min-height: 560px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), rgba(15,23,42,.55);
  box-shadow: 0 28px 90px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.06);
  padding: 22px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.login-inner { position: relative; z-index: 1; }
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.brand-badge {
  width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.20);
  color: var(--primary);
  box-shadow: 0 18px 42px -26px rgba(16,185,129,.85);
  display: none !important;
}
i[class^="fa-"], i[class*=" fa-"] { display: inline-block !important; line-height: 1 !important; }
.brand-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 900;
}
.brand-sub {
  margin: 0;
  margin-top: 4px;
  color: rgba(148,163,184,.95);
  font-weight: 650;
  font-size: .95rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px 0;
  color: rgba(148,163,184,.9);
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.10);
}
.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  height: 54px;
  min-height: 54px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .14s, box-shadow .14s, background .14s, border-color .14s;
  user-select: none;
  margin-bottom: 12px;
}
.oauth-btn:last-of-type { margin-bottom: 0; }
.oauth-btn:active { transform: scale(.985); }
.oauth-btn:focus { outline: none; box-shadow: 0 0 0 4px var(--primaryGlow); }
.oauth-google { background: rgba(255,255,255,.95); color: #0b1220; border: 1px solid rgba(255,255,255,.12); }
.oauth-google:hover { background: #ffffff; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.oauth-github { background: rgba(17,24,39,.78); color: rgba(248,250,252,.96); border: 1px solid rgba(255,255,255,.12); }
.oauth-github:hover { background: rgba(17,24,39,.92); border-color: rgba(255,255,255,.18); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.oauth-twitter { background: #000000; color: #fff; border: 1px solid rgba(255,255,255,.2); }
.oauth-twitter:hover { background: #1a1a1a; border-color: rgba(255,255,255,.25); box-shadow: none; }
.oauth-yahoo { background: #6001d2; color: #fff; border: 1px solid rgba(255,255,255,.2); }
.oauth-btn:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); pointer-events: none; }
.trust-row {
  margin-top: 14px; display: flex; flex-direction: column; gap: 8px;
  color: rgba(148,163,184,.95); font-size: .88rem; line-height: 1.45;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03);
}
.trust-pill i { color: rgba(16,185,129,.95); }
@media (max-width: 420px){
  .login-card { min-height: 540px; padding: 20px; }
  .brand-title { font-size: 1.45rem; }
}
.btn {
  width: 100%; padding: 15px 14px; border: none; border-radius: 14px;
  font-size: 1rem; font-weight: 900; cursor: pointer; transition: .14s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  user-select: none; font-family: inherit; background-clip: padding-box;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--primary); color: #04261a; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 2px solid rgba(148,163,184,.22); color: var(--muted); }
.btn-ghost:hover { border-color: rgba(248,250,252,.55); color: var(--text); }
.btn-soft { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); color: var(--text); }
.btn-stack { display: flex; flex-direction: column; gap: 12px; }
.btn-stack .btn { margin: 0 !important; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,23,42,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  max-width: 980px; margin: 0 auto; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card {
  border-radius: var(--radius); border: var(--border);
  background: rgba(255,255,255,.02); box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 18px; overflow: hidden; position: relative;
}
h2,h3,h4 { margin: 0 0 10px 0; font-weight: 900; letter-spacing: -.02em; }
h3 { color: var(--primary); }
p { margin: 0 0 10px 0; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.divider { height: 1px; background: rgba(255,255,255,.08); margin: 16px 0; }
label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 8px 0; font-size: .82rem; color: var(--muted); font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
}
.label-right {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: rgba(148,163,184,.9);
  font-weight: 800; letter-spacing: .6px; text-transform: none;
}
.form-control {
  width: 100%; padding: 14px 14px; border-radius: var(--radiusSm);
  border: 2px solid transparent; background: rgba(51,65,85,.65);
  color: white; font-family: inherit; font-size: 1rem; margin-bottom: 14px; transition: .2s;
}
.form-control:focus {
  outline: none; border-color: var(--primary); background: rgba(30,41,59,.95);
  box-shadow: 0 0 0 4px var(--primaryGlow);
}
textarea.form-control { resize: none; }
select.form-control option { background: #1e293b; color: #f8fafc; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  padding: 8px 12px; border-radius: 999px; background: rgba(51,65,85,.75);
  color: var(--muted); font-size: .92rem; cursor: pointer;
  border: 1px solid rgba(255,255,255,.06); transition: .15s;
  user-select: none; display: inline-flex; align-items: center; gap: 8px;
}
.chip i { opacity: .9; }
.chip:hover { background: rgba(71,85,105,.88); }
.chip.active {
  background: var(--primary); color: #04261a; font-weight: 900;
  border-color: rgba(16,185,129,.35);
  box-shadow: 0 10px 25px -18px rgba(16,185,129,.85);
}
.chip.danger.active {
  background: var(--danger); color: white; border-color: rgba(239,68,68,.35);
  box-shadow: 0 10px 25px -18px rgba(239,68,68,.85);
}
.badge {
  font-size: .75rem; padding: 4px 8px; border-radius: 8px;
  background: rgba(51,65,85,.78); color: var(--muted);
  border: 1px solid rgba(255,255,255,.06); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 999px;
  background: #1d9bf0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  vertical-align: middle;
  transition: transform 0.1s ease;
}
.verified i { font-size: .72rem; color: #fff; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2)); }
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  border-radius: 50%;
  font-size: 0.65rem;
  color: #fff;
  vertical-align: middle;
  cursor: help;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.1s ease;
}
.role-badge i { font-size: 0.65rem; }
.verified:hover, .role-badge:hover { transform: scale(1.1); }
.support-card {
  border-radius: 20px; border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)), rgba(255,255,255,.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 0 rgba(0,0,0,.35);
  padding: 16px; position: relative; overflow: hidden;
  clip-path: inset(0 0 0 0 round 20px); margin: 10px 0 18px 0; isolation: isolate;
}
.support-head, .support-body, .support-actions, .support-card * { position: relative; z-index: 1; }
.support-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.support-title { font-weight: 900; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.support-title .leaf {
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.20); color: #f59e0b;
}
.support-close {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04);
  color: rgba(148,163,184,.95); cursor: pointer; transition: .15s;
}
.support-close:hover {
  border-color: rgba(255,255,255,.18); color: rgba(248,250,252,.95); background: rgba(255,255,255,.08);
}
.support-body { color: rgba(226,232,240,.92); line-height: 1.45; font-size: .92rem; }
.support-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.support-actions .btn { width: auto; padding: 11px 13px; font-size: .92rem; border-radius: 12px; }
.btn-warm { background: rgba(245,158,11,.16); border: 1px solid rgba(245,158,11,.22); color: rgba(255,255,255,.95); }
.btn-warm:hover { border-color: rgba(245,158,11,.32); }
.btn-mini { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); color: rgba(248,250,252,.95); }
.feed-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  flex: 0 0 auto;
}
.meta h4 { margin: 0; font-size: 1rem; color: var(--text); font-weight: 900; }
.meta span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.like-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 1.05rem; transition: .2s; padding: 6px 8px; border-radius: 10px;
  display: flex; align-items: center; gap: 6px; font-family: inherit;
}
.like-btn:hover { background: rgba(255,255,255,.04); }
.like-btn.liked { color: var(--danger); animation: pop .28s cubic-bezier(.175,.885,.32,1.275); }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }
.save-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 1.05rem; transition: .2s; padding: 6px 8px; border-radius: 10px;
  display: flex; align-items: center; gap: 6px; font-family: inherit;
}
.save-btn:hover { background: rgba(255,255,255,.04); }
.save-btn.saved { color: var(--accent); animation: pop .28s cubic-bezier(.175,.885,.32,1.275); }
.content-mask {
  max-height: 260px; overflow: hidden;
  -webkit-mask-image: linear-gradient(black 70%, transparent 100%);
  mask-image: linear-gradient(black 70%, transparent 100%);
  margin-bottom: 10px;
}
.profile-header {
  text-align: center; padding: 22px 18px;
  background: linear-gradient(180deg, rgba(34,49,84,.88), rgba(15,23,42,.25));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.avatar-lg {
  width: 86px; height: 86px; border-radius: 50%; object-fit: cover;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 30px rgba(0,0,0,.35); margin-bottom: 10px;
}
.stats-row {
  display: flex; justify-content: center; gap: 18px;
  margin-top: 12px; flex-wrap: wrap;
}
.stat-item { text-align: center; min-width: 86px; }
.stat-val { font-size: 1.05rem; font-weight: 900; color: white; display: block; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.nav-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 92%; max-width: 920px;
  background: rgba(30,41,59,.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 10px 14px;
  border-radius: 999px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
  z-index: 1000;
  gap: 8px;
}
.nav-item {
  color: var(--muted); font-size: 1.1rem; padding: 12px; border-radius: 50%;
  transition: .18s; cursor: pointer; position: relative; width: 48px;
  display: grid; place-items: center;
}
.nav-item.active {
  color: var(--primary); background: rgba(16,185,129,.12); transform: translateY(-2px);
}
.nav-item.active::after {
  content: ''; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; background: var(--primary); border-radius: 50%;
}
.nav-notify-dot {
  position: absolute; top: 10px; right: 10px; width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%; border: 1px solid var(--bg);
  display: none;
}
.nav-notify-dot.show { display: block; }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02); cursor: pointer; transition: .15s;
}
.list-item:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.12); }
.li-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.li-txt { min-width: 0; }
.li-title { font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.li-sub { color: var(--muted); font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: rgba(148,163,184,.85); }
.notif-item { align-items: flex-start; }
.notif-item.unread { background: rgba(16,185,129, 0.08); border-color: rgba(16,185,129, 0.2); }
.notif-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; flex: 0 0 auto; }
.notif-icon.like { color: var(--danger); background: rgba(239,68,68,0.15); }
.notif-icon.follow { color: #3b82f6; background: rgba(59,130,246,0.15); }
.notif-icon.save { color: #f59e0b; background: rgba(245,158,11,0.15); }
.notif-icon.comment { color: #8b5cf6; background: rgba(139,92,246,0.15); }
.modal {
  position: fixed; inset: 0; z-index: 4000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(2,6,23,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal.show { display: flex; }
.modal-card {
  width: min(920px, 96%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(15,23,42,.92);
  box-shadow: 0 30px 90px rgba(0,0,0,.75);
  overflow: hidden;
  position: relative;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.modal-title { font-weight: 900; letter-spacing: -.02em; }
.icon-btn { width: auto; padding: 10px 12px; border-radius: 12px; }
.modal-body { padding: 16px; max-height: 74vh; overflow: auto; }
.recipe-content { line-height: 1.6; color: #cbd5e1; }
.recipe-content h3 { color: var(--primary); margin-top: 0; }
.recipe-content h4 { color: var(--text); margin: 14px 0 8px 0; }
.recipe-content ul, .recipe-content ol { padding-left: 20px; }
.recipe-content .badge { margin-right: 8px; margin-top: 6px; }
.btn-follow { width: auto; padding: 10px 12px; font-size: .92rem; border-radius: 12px; }
.btn-follow.primary { background: var(--primary); color: #04261a; }
.btn-follow.ghost { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); color: rgba(248,250,252,.95); }
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  margin-bottom: 10px;
}
.set-left { min-width: 0; }
.set-title { font-weight: 900; }
.set-sub { color: var(--muted); font-size: .86rem; font-weight: 600; }
.toggle {
  width: 54px; height: 32px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(51,65,85,.7);
  position: relative; cursor: pointer; flex: 0 0 auto;
  transition: .18s;
}
.toggle::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  left: 4px; width: 24px; height: 24px; border-radius: 999px;
  background: rgba(248,250,252,.92);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  transition: .18s;
}
.toggle.on { background: rgba(16,185,129,.22); border-color: rgba(16,185,129,.35); }
.toggle.on::after { left: 26px; background: #10b981; }
.set-select {
  width: auto;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(30,41,59,.85);
  color: rgba(248,250,252,.96);
  font-family: inherit;
  font-weight: 800;
  outline: none;
  cursor: pointer;
}
.comments-wrap {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 16px;
  overflow: hidden;
}
.comments-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.comments-title { font-weight: 900; }
.comments-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow: auto; overscroll-behavior: contain; }
.comment-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.comment-item .cmeta { min-width: 0; width: 100%; }
.comment-item .cname { font-weight: 900; line-height: 1.1; }
.comment-item .ctime { font-size: .78rem; color: var(--muted); font-weight: 700; }
.comment-item .ctext { color: rgba(226,232,240,.92); line-height: 1.35; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.c-actions { display: flex; gap: 8px; margin-top: 6px; }
.c-react {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 99px; padding: 2px 8px; font-size: 0.8rem; cursor: pointer;
  color: var(--muted); transition: .1s; display: flex; align-items: center; gap: 4px;
}
.c-react:hover { background: rgba(255,255,255,.08); }
.c-react.active { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.25); color: var(--primary); }
.c-react.fire.active { color: #f59e0b; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.25); }
.c-react.heart.active { color: #ef4444; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.25); }
.comments-form {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.01);
  position: relative;
}
.comments-form .row { align-items: stretch; }
.comments-form textarea { margin-bottom: 0; }
.mention-list {
  position: absolute; bottom: 100%; left: 12px; right: 12px;
  background: #1e293b; border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; overflow: hidden; z-index: 10;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
  display: none; max-height: 150px; overflow-y: auto;
}
.mention-list.show { display: block; }
.mention-item {
  padding: 10px 12px; display: flex; align-items: center; gap: 10px;
  cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.05);
}
.mention-item:hover { background: rgba(255,255,255,.05); }
.mention-item img { width: 24px; height: 24px; border-radius: 50%; }
.mention-item span { font-weight: 700; font-size: 0.9rem; }
.cfm {
  position: fixed; inset: 0; z-index: 5000;
  display: none; align-items: flex-end; justify-content: center;
  padding: 18px;
  background: rgba(2,6,23,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cfm.show { display: flex; }
.cfm-card {
  width: min(520px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), rgba(15,23,42,.92);
  box-shadow: 0 30px 90px rgba(0,0,0,.75);
  overflow: hidden;
  transform: translateY(12px);
  animation: cfmIn .18s ease forwards;
}
@keyframes cfmIn { to { transform: translateY(0); } }
.cfm-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.cfm-title {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; letter-spacing: -.02em;
}
.cfm-title .ico {
  width: 38px; height: 38px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.20);
  color: #f59e0b;
}
.cfm-close {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(148,163,184,.95);
  cursor: pointer;
  transition: .15s;
}
.cfm-close:hover {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(248,250,252,.95);
}
.cfm-body { padding: 14px 16px 16px; }
.cfm-msg { color: rgba(226,232,240,.92); line-height: 1.45; }
.cfm-hint { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.cfm-hint .badge { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.18); color: #fecaca; }
.cfm-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 0 16px 16px;
}
.cfm-actions .btn { width: auto; flex: 1; min-width: 160px; }
.btn-danger { background: rgba(239,68,68,.16); border: 1px solid rgba(239,68,68,.28); color: rgba(255,255,255,.95); }
.btn-danger:hover { border-color: rgba(239,68,68,.38); }
@media (min-width: 520px){ .cfm { align-items: center; } .cfm-card { border-radius: 24px; } }
.custom-footer {
  margin-top: 40px;
  padding: 30px 20px 40px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, transparent, rgba(15,23,42,0.4));
  text-align: center;
  position: relative;
  z-index: 10;
}
.f-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.f-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.f-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.f-link:hover { color: var(--primary); }
.f-copy {
  font-size: 0.75rem;
  color: rgba(148,163,184,0.5);
  margin-top: 10px;
}
.skeleton {
  background: #1e293b;
  background-image: linear-gradient(90deg, #1e293b 0px, #334155 40px, #1e293b 80px);
  background-size: 300px;
  animation: shine 1.6s infinite linear;
  border-radius: 8px;
}
@keyframes shine {
  0% { background-position: -40px; }
  60%, 100% { background-position: 280px; }
}
@media (max-width: 480px) {
  .modal-head { padding: 10px 12px; gap: 8px; }
  .btn-follow { padding: 6px 10px !important; font-size: 0.8rem !important; white-space: nowrap; }
  .modal-title { font-size: 1rem; }
  #umAvatar { width: 36px; height: 36px; }
  #umMeta { font-size: 0.75rem; }
}
@media print {
  body { background-color: white !important; color: black !important; }
  .nav-bar, .topbar, .footer, .btn, .sidebar, #cookieConsentBanner, .terms-box { display: none !important; }
  .card, #generated-result { border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; width: 100% !important; color: black !important; }
  h1, h2, h3, p, li { color: #000 !important; }
  body::after { content: "Recipe generated by SmidgenAI.com"; display: block; text-align: center; margin-top: 20px; font-size: 12px; color: #666; }
}

/* ELIMINACIÓN COMPLETA DEL CÍRCULO VERDE (focus ring) */
button, .btn, .chip, .nav-item, .oauth-btn, .toggle, .csel-trigger, .set-select, .form-control, .like-btn, .save-btn, .c-react, .list-item, .modal-head button, .cfm-close, .cfm-actions .btn, a, [role="button"] {
  outline: none;
}
button:focus, .btn:focus, .chip:focus, .nav-item:focus, .oauth-btn:focus, .toggle:focus, .csel-trigger:focus, .set-select:focus, .form-control:focus, .like-btn:focus, .save-btn:focus, .c-react:focus, .list-item:focus, .modal-head button:focus, .cfm-close:focus, .cfm-actions .btn:focus, a:focus, [role="button"]:focus {
  outline: none;
}
button:focus-visible, .btn:focus-visible, .chip:focus-visible, .nav-item:focus-visible, .oauth-btn:focus-visible, .toggle:focus-visible, .csel-trigger:focus-visible, .set-select:focus-visible, .form-control:focus-visible, .like-btn:focus-visible, .save-btn:focus-visible, .c-react:focus-visible, .list-item:focus-visible, .modal-head button:focus-visible, .cfm-close:focus-visible, .cfm-actions .btn:focus-visible, a:focus-visible, [role="button"]:focus-visible {
  box-shadow: 0 0 0 3px var(--primaryGlow);
  border-color: var(--primary);
  outline: 1px solid var(--primary);
  outline-offset: 2px;
}
/* Overlay de logout */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.2s;
}
.loading-content {
  background: var(--surface);
  padding: 20px 30px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 20px 35px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}
.loading-content i {
  font-size: 1.8rem;
  color: var(--primary);
}

/* ========== CORRECCIÓN: botón de logout visible ========== */
#view-profile {
  padding-bottom: 55px;
}
#view-profile .btn-stack {
  margin-bottom: 20px;
}
/* ========== CORRECCIÓN PARA MÓVILES ========== */
@media (max-width: 600px) {
  .card > div:first-child {
    flex-wrap: wrap;
  }
  .card > div:first-child > div:first-child {
    flex: 1 1 100%;
    margin-bottom: 8px;
  }
  .badge {
    font-size: 0.7rem;
    padding: 4px 6px;
    white-space: normal;
  }
}