:root {

  --bg:           #f5f5f7;
  --bg-2:         #ffffff;
  --bg-3:         #ebebef;
  --surface:      rgba(255,255,255,0.78);
  --surface-2:    rgba(255,255,255,0.92);
  --border:       rgba(0,0,0,0.08);
  --border-strong:rgba(0,0,0,0.14);

  --text:         #0b0c10;
  --text-soft:    #4b5563;
  --text-muted:   #8a8a8e;

  --accent:        #ef4444;
  --accent-soft:   #fee2e2;
  --accent-2:      #3b82f6;
  --accent-2-soft: #dbeafe;
  --success:       #10b981;
  --success-soft:  #d1fae5;
  --warning:       #f59e0b;
  --gold:          #FFD700;
  --legendary:     linear-gradient(135deg,#a855f7,#ec4899,#f59e0b);
  --platinum:      linear-gradient(135deg,#60a5fa,#c084fc);
  --gold-grad:     linear-gradient(135deg,#fbbf24,#f59e0b);
  --silver:        linear-gradient(135deg,#cbd5e1,#94a3b8);
  --bronze:        linear-gradient(135deg,#fb923c,#a16207);

  --shadow-sm:    0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg:    0 24px 48px rgba(0,0,0,0.12);
  --shadow-glow:  0 0 0 4px rgba(239,68,68,0.18);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --font:        'Outfit', -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, "SF Mono", monospace;

  --header-h: 76px;
  --bottom-h: 72px;
}

[data-theme="dark"] {
  --bg:           #0a0a0f;
  --bg-2:         #14141c;
  --bg-3:         #1c1c26;
  --surface:      rgba(28,28,38,0.72);
  --surface-2:    rgba(28,28,38,0.92);
  --border:       rgba(255,255,255,0.08);
  --border-strong:rgba(255,255,255,0.14);

  --text:         #f5f5f7;
  --text-soft:    #c7c7cc;
  --text-muted:   #8e8e93;

  --accent-soft:   rgba(239,68,68,0.18);
  --accent-2-soft: rgba(59,130,246,0.18);
  --success-soft:  rgba(16,185,129,0.18);

  --shadow-sm:    0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg:    0 24px 48px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

body {
  min-height: 100vh;
  background:
    radial-gradient(at 0% 0%, rgba(239,68,68,0.07) 0%, transparent 40%),
    radial-gradient(at 100% 0%, rgba(59,130,246,0.07) 0%, transparent 40%),
    radial-gradient(at 100% 100%, rgba(168,85,247,0.05) 0%, transparent 40%),
    var(--bg);
}

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

.auth-screen {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding: 24px;
  overflow: hidden;
  z-index: 100;
}
.auth-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.auth-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.blob-1 { width: 500px; height: 500px; background: #ef4444; top: -120px; left: -120px; animation: float 18s ease-in-out infinite; }
.blob-2 { width: 460px; height: 460px; background: #3b82f6; bottom: -100px; right: -120px; animation: float 22s ease-in-out infinite reverse; }
.blob-3 { width: 360px; height: 360px; background: #a855f7; top: 40%; left: 50%; transform: translateX(-50%); animation: float 26s ease-in-out infinite; }

@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(60px,-40px) scale(1.08); }
  66%     { transform: translate(-40px,30px) scale(0.94); }
}

.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: var(--surface-2);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 32px 28px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
}
.auth-logo-img {
  width: 120px;
  max-width: 90%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(239,68,68,0.15));
}
.auth-logo p { font-size: 14px; color: var(--text-muted); margin-top: 0; }

.auth-wordmark {
  display: inline-block;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 10px;
}

.subscribe-required-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 14px;
  background: rgba(239,68,68,0.08);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.bulk-actions-disabled {
  opacity: 0.58;
}

.bulk-actions-disabled .bulk-btn,
.qty-btn:disabled {
  cursor: not-allowed;
}

.theme-logo-dark  { display: none; }
.theme-logo-light { display: block; }
[data-theme="dark"] .theme-logo-dark  { display: block; }
[data-theme="dark"] .theme-logo-light { display: none;  }

.auth-tabs {
  display: flex; gap: 4px;
  background: var(--bg-3);
  padding: 4px; border-radius: 12px;
  margin-bottom: 14px;
}
.tab-btn {
  flex: 1; padding: 10px;
  border-radius: 9px;
  font-weight: 600; font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--bg-2);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.demo-banner {
  margin-bottom: 14px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px; font-weight: 500; line-height: 1.45;
  text-align: center;
}
.demo-banner strong { font-weight: 800; }
.demo-banner--open {
  background: rgba(16,185,129,0.09);
  border: 1px solid rgba(16,185,129,0.22);
  color: #10b981;
}
[data-theme="dark"] .demo-banner--open { background: rgba(16,185,129,0.13); }
.demo-banner--full {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.22);
  color: var(--accent);
}
.btn-disabled { opacity: 0.5 !important; cursor: not-allowed !important; }

.auth-form { display: none; flex-direction: column; gap: 14px; }
.auth-form.active { display: flex; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; }
.auth-form label span {
  font-size: 12px; font-weight: 600;
  color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.04em;
}
.auth-form input {
  padding: 13px 14px;
  background: var(--bg-3);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-2);
  box-shadow: var(--shadow-glow);
}

.btn-primary {
  margin-top: 8px;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #dc2626);
  color: white;
  border-radius: 14px;
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(239,68,68,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(239,68,68,0.45); }
.btn-primary:active { transform: translateY(0); }

.form-error { color: var(--accent); font-size: 13px; text-align: center; min-height: 18px; margin-top: 4px; }

.auth-foot { display: flex; justify-content: center; margin-top: 20px; }
.lang-toggle {
  padding: 8px 14px; border-radius: 999px;
  background: var(--bg-3); color: var(--text-soft);
  font-size: 13px; font-weight: 600;
  transition: all 0.2s;
}
.lang-toggle:hover { background: var(--bg-2); color: var(--text); }

.app { min-height: 100vh; padding-bottom: var(--bottom-h); }

.app-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 20px;
  position: relative;
}
.logo-btn {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
  color: var(--text);
  padding: 4px 6px;
  border-radius: 10px;
  transition: background 0.2s;
}
.logo-btn:hover { background: var(--bg-3); }
.logo-img {
  height: 56px;
  width: auto;
}

.header-nav {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px;
}
.nav-link {
  padding: 8px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--text-soft);
  transition: all 0.2s;
}
.nav-link:hover { background: var(--bg-3); color: var(--text); }
.nav-link.active { background: var(--accent); color: white; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-3);
  transition: all 0.2s;
}
.icon-btn:hover { background: var(--accent); color: white; }
.icon-btn .icon-moon { display: none; }
[data-theme="dark"] .icon-btn .icon-sun { display: none; }
[data-theme="dark"] .icon-btn .icon-moon { display: block; }

.user-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: var(--bg-3);
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
}
.user-pill:hover { background: var(--accent); color: white; }
.avatar-mini {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-2); overflow: hidden;
  display: grid; place-items: center;
}
.avatar-mini img { width: 100%; height: 100%; object-fit: cover; }

.app-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.page-header {
  margin-bottom: 26px;
}
.page-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 15px;
}

.welcome-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(at 100% 0%, rgba(239,68,68,0.25) 0%, transparent 50%),
    radial-gradient(at 0% 100%, rgba(59,130,246,0.18) 0%, transparent 50%),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.welcome-stats {
  justify-content: center;
}
.welcome-card::after {
  content: none;
}
.welcome-greeting { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.welcome-name {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800; letter-spacing: -0.02em;
  margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 0;
}

.welcome-wave {
  display: inline-block;
  width: 0;
  overflow: visible;
  white-space: nowrap;
  font-size: 0.75em;
  user-select: none;
  pointer-events: none;
  margin-left: 8px;

}
.welcome-stats {
  display: flex; gap: 24px; margin-top: 18px; flex-wrap: wrap;
}
.welcome-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.welcome-stat-value {
  font-family: var(--font);
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em;
}
.welcome-stat-label {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}

.level-bar {
  margin-top: 22px;
  background: var(--bg-3);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  position: relative;
}
.level-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--warning));
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.level-bar-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.level-meta {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: 12px; color: var(--text-muted); font-weight: 600;
}

.section-title {
  position: relative;
  display: flex; align-items: baseline; justify-content: flex-end;
  margin: 32px 0 16px;
}
.section-title h2 {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
}
.section-title a {
  font-size: 13px; font-weight: 600; color: var(--accent);
  position: relative; z-index: 1;
}

.set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.set-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
  cursor: pointer;
}
.set-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.set-card-header {
  padding: 14px 14px 12px;
  display: flex; gap: 12px; align-items: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--bg-3), transparent);
}
.set-card-logo {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.set-card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.set-card-info { flex: 1; min-width: 0; }
.set-card-name {
  font-size: 15px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.set-card-era-row {
  display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap;
}
.set-card-era-pill {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.set-card-era-pill.era-scarlet_violet {
  background: rgba(239,68,68,0.12); color: #ef4444;
}
.set-card-era-pill.era-mega_evolution {
  background: rgba(168,85,247,0.12); color: #a855f7;
}
.set-card-badge-inline {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.set-card-badge-inline.subscribed {
  background: var(--accent-2-soft); color: var(--accent-2);
}
.set-card-badge-inline.complete {
  background: var(--success-soft); color: var(--success);
}

.set-card-sub-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-3);
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
  color: var(--text-muted);
}
.set-card-sub-btn svg { width: 16px; height: 16px; }
.set-card-sub-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.set-card-sub-btn.subscribed {
  background: var(--accent-2-soft); color: var(--accent-2); border-color: var(--accent-2);
}
.set-card-sub-btn.subscribed:hover {
  background: var(--accent); color: white; border-color: var(--accent);
}

.set-card-body { padding: 14px 16px 16px; }
.set-card-progress { display: flex; flex-direction: column; gap: 10px; }
.progress-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.progress-row-label { flex: 1; font-weight: 600; color: var(--text-soft); }
.progress-row-value {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-muted);
}
.progress-bar {
  height: 8px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-bar-fill.master { background: var(--legendary); }
.progress-bar-fill.complete { background: linear-gradient(90deg, var(--success), #34d399); }

.cards-loading {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 2px 2px;
}
.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 6px;
  border-radius: 12px;
  background: var(--bg-3);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s;
  min-width: 0;
  box-sizing: border-box;
}
.avatar-option:hover { transform: scale(1.05); border-color: var(--border-strong); }
.avatar-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--accent-soft);
}
.avatar-img-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar-option img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}
.avatar-pokemon-name {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.lang-toggle-sm {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.lang-toggle-sm:hover { background: var(--accent); color: white; border-color: var(--accent); }

.filter-bar {
  display: flex; gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
  padding: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.filter-chip {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px; font-weight: 600;
  color: var(--text-soft);
  transition: all 0.2s;
}
.filter-chip.active {
  background: var(--accent); color: white;
}
.filter-chip:hover:not(.active) { background: var(--bg-3); color: var(--text); }

.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
}
.search-bar input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 14px;
}

.set-detail-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.set-detail-logo {
  width: 140px; height: 140px;
  display: grid; place-items: center;
  background: var(--bg-3);
  border-radius: var(--r-md);
  padding: 16px;
}
.set-detail-logo img { max-width: 100%; max-height: 100%; }
.set-detail-info h1 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800; letter-spacing: -0.02em;
}
.set-detail-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 14px;
  margin-top: 6px;
}
.set-detail-actions {
  margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap;
}
.btn-sub, .btn-secondary {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
}
.btn-sub {
  background: var(--accent); color: white;
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}
.btn-sub:hover { transform: translateY(-1px); }
.btn-sub.subscribed { background: var(--bg-3); color: var(--text); box-shadow: none; }
.btn-secondary {
  background: var(--bg-3); color: var(--text);
}
.btn-secondary:hover { background: var(--border-strong); }

.set-progress-block {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.progress-card {
  background: var(--bg-3);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.progress-card-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.progress-card-label strong {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-soft);
}
.progress-card-label span {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-muted);
}
.progress-card-percent {
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.card-tile {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--bg-3);
  aspect-ratio: 2.5 / 3.5;
}
.card-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter 0.25s;
}
.card-tile.not-owned img { filter: grayscale(1) brightness(0.5); }
.card-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex; align-items: flex-end;
  padding: 8px 10px;
  opacity: 0; transition: opacity 0.2s;
}
.card-tile:hover .card-tile-overlay { opacity: 1; }
.card-tile-number {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.7); color: white;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 3px 7px; border-radius: 6px;
  backdrop-filter: blur(6px);
}

.card-tile-variants {
  position: absolute; bottom: 6px; left: 6px; right: 6px;
  display: flex; gap: 3px; flex-wrap: wrap;
  align-items: flex-end;
}

.variant-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.15s;
}
.variant-dot:hover { transform: scale(1.15); }

.variant-dot.missing {
  opacity: 0.45;
  filter: grayscale(0.3);
}

.variant-dot.owned {
  border-color: #10b981;
  box-shadow: 0 0 0 2px #10b981, 0 1px 4px rgba(0,0,0,0.4);
}
.dot-check {
  width: 11px; height: 11px;
  stroke: white;
  stroke-width: 3.5;
  position: absolute;
}

.variant-dot.normal              { background: #64748b; }
.variant-dot.holo                { background: linear-gradient(135deg,#fbbf24,#ec4899); }
.variant-dot.reverse_holo        { background: linear-gradient(135deg,#60a5fa,#34d399); }
.variant-dot.first_edition       { background: linear-gradient(135deg,#fcd34d,#92400e); }
.variant-dot.double_rare         { background: linear-gradient(135deg,#1e40af,#60a5fa); }
.variant-dot.art_rare            { background: linear-gradient(135deg,#06b6d4,#8b5cf6); }
.variant-dot.super_rare          { background: linear-gradient(135deg,#3b82f6,#8b5cf6); }
.variant-dot.full_art            { background: linear-gradient(135deg,#3b82f6,#8b5cf6); }
.variant-dot.special_illustration{ background: linear-gradient(135deg,#a855f7,#ec4899); }
.variant-dot.hyper_rare          { background: linear-gradient(135deg,#fbbf24,#dc2626); }
.variant-dot.gold                { background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.variant-dot.ace_spec            { background: linear-gradient(135deg,#dc2626,#111); }
.variant-dot.shiny               { background: linear-gradient(135deg,#fef3c7,#fbbf24,#fef3c7); }
.variant-dot.promo               { background: linear-gradient(135deg,#111,#fbbf24); }
.variant-dot.poke_ball           { background: linear-gradient(135deg,#ef4444 50%,#f5f5f5 50%); }
.variant-dot.master_ball         { background: linear-gradient(135deg,#7c3aed 50%,#ec4899 50%); }
.variant-dot.team_rocket         { background: linear-gradient(135deg,#111 50%,#dc2626 50%); }
.variant-dot.type_reverse        { background: linear-gradient(135deg,#34d399,#06b6d4,#a855f7); }
.variant-dot.black_white_rare    { background: linear-gradient(135deg,#1e1e1e 50%,#e5e5e5 50%); border-color: rgba(255,255,255,0.6); }

.card-tile-progress {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.75);
  color: white;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 3px 7px; border-radius: 999px;
  backdrop-filter: blur(6px);
  line-height: 1;
}

.card-tile:not(.not-owned) .card-tile-progress {
  background: rgba(16,185,129,0.9);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.profile-badges-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.profile-badges-grid .badge-card {
  padding: 16px 12px;
}
.profile-badges-grid .badge-icon {
  width: 52px; height: 52px;
  margin-bottom: 10px;
}
.profile-badges-grid .badge-icon svg { width: 26px; height: 26px; }
.badge-card {
  position: relative;
  padding: 22px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.25s;
  cursor: pointer;
}
.badge-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.badge-card.locked { opacity: 0.55; filter: grayscale(0.8); }

.badge-icon {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  position: relative;
  color: white;
}
.badge-icon svg { width: 36px; height: 36px; }
.badge-icon.bronze    { background: var(--bronze); }
.badge-icon.silver    { background: var(--silver); }
.badge-icon.gold      { background: var(--gold-grad); }
.badge-icon.platinum  { background: var(--platinum); }
.badge-icon.legendary { background: var(--legendary); animation: legendary-spin 6s linear infinite; }
@keyframes legendary-spin {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
.badge-icon::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.15;
  z-index: -1;
  filter: blur(8px);
}

.badge-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.badge-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.badge-xp {
  margin-top: 10px;
  display: inline-block;
  padding: 3px 10px; border-radius: 999px;
  background: var(--bg-3);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--text-soft);
}
.badge-xp.unlocked { background: var(--accent-soft); color: var(--accent); }

.badge-tier-tag {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: var(--bg-3); color: var(--text-muted);
}

.profile-hero {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background:
    radial-gradient(at 100% 0%, rgba(168,85,247,0.18) 0%, transparent 50%),
    radial-gradient(at 0% 100%, rgba(239,68,68,0.15) 0%, transparent 50%),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.profile-avatar-wrap {
  position: relative;
  width: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}
.profile-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--bg-3);
  border: 4px solid var(--bg-2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
  display: grid; place-items: center;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-edit-avatar {
  position: absolute; bottom: calc(50% - 60px - 4px); right: calc(50% - 60px - 4px);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: white;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(239,68,68,0.4);
  transition: transform 0.2s;
}
.profile-edit-avatar:hover { transform: scale(1.1); }

.profile-avatar-wrap {
  position: relative;
  width: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}

.profile-hero > div:not(.profile-avatar-wrap),
.profile-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 32px;
  text-align: center;
  min-width: 0;
  position: relative;
}

.profile-username,
.profile-email {
  margin-left: -180px;
  width: calc(100% + 180px);
  text-align: center;
}

.profile-level-pill-wrap {
  margin-left: -180px;
  width: calc(100% + 180px);
  display: flex;
  justify-content: center;
}
.profile-level-pill {

}

.profile-xp-bar-wrap {
  margin-left: 0;
  width: 100%;
}

.profile-xp-bar-wrap {
  width: 100%;
  margin-top: 8px;
}
.profile-xp-bar-wrap .level-meta-above {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.profile-xp-bar-wrap .level-bar {
  margin-top: 0;
}

.profile-username {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
}
.profile-email {
  color: var(--text-muted); font-size: 14px;
  margin-top: 2px;
}

.profile-level-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.profile-level-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 16px; border-radius: 999px;
  background: var(--accent); color: white;
  font-weight: 700; font-size: 13px;
}
.profile-level-progress {
  width: 100%;
  max-width: 360px;
}

.profile-showcase {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px;
  align-items: flex-start;
}
.showcase-slot {
  width: 78px;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: transform 0.15s;
}
.showcase-slot:hover { transform: translateY(-2px); }
.showcase-slot:not(.filled) {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px dashed var(--border-strong);
  display: grid; place-items: center;
  font-size: 22px;
  font-weight: 300;
}
.showcase-slot.filled .badge-icon {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.showcase-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--text-soft);
  line-height: 1.2;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.stat-card-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.stat-card-value {
  font-size: 32px; font-weight: 800; letter-spacing: -0.02em;
  margin-top: 6px;
}

.settings-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px;
  margin-bottom: 16px;
}
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px;
  border-radius: 12px;
}
.setting-row + .setting-row { border-top: 1px solid var(--border); border-radius: 0; }

.setting-row-label { font-weight: 500; }
.setting-row-control { display: flex; gap: 6px; }
.toggle-segment {
  display: flex; gap: 2px;
  background: var(--bg-3); padding: 3px; border-radius: 10px;
}
.toggle-segment button {
  padding: 6px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
}
.toggle-segment button.active {
  background: var(--bg-2); color: var(--text);
  box-shadow: var(--shadow-sm);
}

.logout-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700;
  transition: all 0.2s;
}
.logout-btn:hover { background: var(--accent); color: white; }

.profile-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.profile-legal-links a {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease;
}
.profile-legal-links a:hover {
  color: var(--accent);
}
@media (max-width: 760px) {
  .profile-legal-links {
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 8px;
  }
}

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s;
}
.modal-content {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content.card-modal {
  height: min(95vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-modal .modal-header  { flex-shrink: 0; }
.card-modal .modal-nav-row { flex-shrink: 0; }
.card-modal .modal-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  min-height: 0;
}
.card-modal .modal-body::-webkit-scrollbar { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

.modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.modal-header-info { flex: 1; min-width: 0; }
.modal-header-info h3 {
  font-size: 17px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.modal-card-meta {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
  margin-top: 2px; display: block;
  font-family: var(--font-mono);
}
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-3); flex-shrink: 0;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--accent); color: white; }

.modal-nav-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.card-nav-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px; font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: all 0.18s;
  cursor: pointer;
  min-width: 0;
  max-width: 140px;
  flex-shrink: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-nav-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.card-nav-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-nav-btn:hover:not(.disabled) {
  background: var(--accent); color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}
.card-nav-btn.disabled {
  opacity: 0.3; cursor: default; pointer-events: none;
}
.card-nav-prev span { order: 1; }
.card-nav-prev svg  { order: 0; }
.card-nav-next span { order: 0; }
.card-nav-next svg  { order: 1; }

.card-nav-dots {
  flex: 1;
  display: flex; justify-content: center; align-items: center;
  gap: 5px;
}
.card-nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.35;
  cursor: pointer;
  transition: all 0.15s;
}
.card-nav-dot:hover { opacity: 0.7; transform: scale(1.3); }
.card-nav-dot.active {
  opacity: 1;
  background: var(--accent);
  width: 18px; border-radius: 3px;
}

.modal-kbd-hint {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 2px;
  font-size: 11px;
  color: var(--text-muted);
}
.modal-kbd-hint kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.modal-body { padding: 18px 20px 24px; }

.card-modal-meta {
  display: flex; gap: 14px; justify-content: center;
  margin-top: 12px;
  font-size: 13px; color: var(--text-muted); flex-wrap: wrap;
}
.variants-heading {
  margin: 20px 0 10px;
  font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-soft);
  font-weight: 700;
}

@media (max-width: 480px) {
  .card-nav-btn span { display: none; }
  .card-nav-btn { padding: 8px; min-width: 36px; max-width: 36px; justify-content: center; }
}

.card-modal-img {


  display: block;
  margin: 0 auto;
  height: 196px;
  width: auto;
  aspect-ratio: 63 / 88;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  max-width: 140px;
}
.variant-list {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.variant-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--bg-3);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.variant-row:hover { background: var(--border-strong); }
.variant-row.owned {
  background: var(--success-soft);
  border-color: var(--success);
}
.variant-row-label {
  flex: 1; font-weight: 600; font-size: 14px;
}
.variant-row-control { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-2);
  display: grid; place-items: center;
  font-weight: 700;
  transition: all 0.2s;
}
.qty-btn:hover { background: var(--accent); color: white; }
.qty-value {
  min-width: 28px; text-align: center;
  font-family: var(--font-mono); font-weight: 700;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.avatar-option {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-3);
  cursor: pointer;
  overflow: hidden;
  border: 3px solid transparent;
  transition: all 0.2s;
}
.avatar-option:hover { transform: scale(1.05); }
.avatar-option.selected { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.avatar-option img { width: 100%; height: 100%; }

.toast-container {
  position: fixed; bottom: 90px; right: 20px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 300;
  pointer-events: none;
}
.toast {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 280px; max-width: 380px;
  display: flex; align-items: center; gap: 12px;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: all;
}
.toast.success { border-left-color: var(--success); }
.toast.badge {
  border-left-color: var(--gold);
  background: linear-gradient(135deg, var(--bg-2), rgba(255,215,0,0.06));
}
.toast-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  color: white;
}
.toast.success .toast-icon { background: var(--success); }
.toast.badge .toast-icon { background: var(--gold-grad); }
.toast.error .toast-icon { background: var(--accent); }
.toast-text { flex: 1; font-size: 14px; }
.toast-title { font-weight: 700; }
.toast-desc { font-size: 12px; color: var(--text-muted); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-h);
  background: var(--surface-2);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 50;
}
.bn-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px; font-weight: 600;
  transition: color 0.2s;
}
.bn-btn svg { width: 24px; height: 24px; }
.bn-btn.active { color: var(--accent); }

.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 0%, var(--border-strong) 50%, var(--bg-3) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s linear infinite;
  border-radius: var(--r-md);
}
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-state-icon {
  font-size: 56px; margin-bottom: 12px; opacity: 0.5;
}
.empty-state-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.empty-state-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-actions .user-pill span { display: none; }
  .app-main { padding: 18px 14px 24px; }
  .bottom-nav { display: flex; }
  .app { padding-bottom: var(--bottom-h); }

  .welcome-card { padding: 22px 20px; }
  .profile-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-avatar-wrap {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px;
  }

  .profile-hero > div:not(.profile-avatar-wrap),
  .profile-hero-info {
    padding: 20px 20px 24px;
    align-items: center;
    width: 100%;
  }
  .profile-username,
  .profile-email {
    margin-left: 0;
    width: 100%;
  }
  .profile-level-pill-wrap {
    margin-left: 0;
    width: 100%;
  }
  .profile-showcase { justify-content: center; }
  .set-detail-header {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px;
  }
  .set-detail-logo { margin: 0 auto; }
  .set-detail-actions { justify-content: center; }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }
  .set-progress-block { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-card { padding: 18px 12px; }
  .badge-icon { width: 60px; height: 60px; }
}

@media (min-width: 769px) {
  .bottom-nav { display: none !important; }
}

.featured-sets-list { display: flex; flex-direction: column; gap: 14px; }

.featured-set-row {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px 16px;
}
.featured-set-info {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.featured-set-logo { width: 48px; height: 32px; object-fit: contain; flex-shrink: 0; }
.featured-set-name { font-weight: 700; font-size: 14px; }

.featured-categories {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.featured-cat { display: flex; flex-direction: column; gap: 6px; }
.featured-cat-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 999px;
  display: inline-block;
}
.owned-label { background: rgba(16,185,129,0.12); color: var(--success); }
.wished-label { background: rgba(245,158,11,0.12); color: var(--warning); }

.featured-card-slots { display: flex; gap: 8px; }

.featured-slot {
  width: 64px; height: 90px;
  border-radius: 8px;
  border: 2px dashed var(--border-strong);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  color: var(--text-muted);
  background: var(--bg-3);
  flex-shrink: 0;
  overflow: hidden;
}
.featured-slot.empty:hover { border-color: var(--accent); color: var(--accent); }

.featured-slot.occupied {
  border: none !important;
  background: transparent;
}
.featured-slot.occupied img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 6px;
  display: block;
}
.featured-slot-overlay {
  position: absolute; inset: 0;
  background: rgba(239,68,68,0.8);
  display: grid; place-items: center;
  opacity: 0; transition: opacity 0.2s;
  border-radius: 6px;
}
.featured-slot.occupied:hover .featured-slot-overlay { opacity: 1; }

.featured-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
}
.featured-pick-item {
  cursor: pointer; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; transition: all 0.18s;
  background: var(--bg-3);
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 4px 6px; position: relative;
}
.featured-pick-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.featured-pick-item img { width: 80px; height: 112px; object-fit: cover; border-radius: 7px; }
.fpi-noimg { width: 80px; height: 112px; display: grid; place-items: center; font-size: 28px; }
.fpi-name {
  font-size: 10px; font-weight: 700; text-align: center; margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 84px; color: var(--text-soft);
}
.fpi-num { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); }

.home-featured-strip {
  border-top: 1px solid var(--border);
  background: var(--bg-3);
  padding: 10px 14px 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.home-feat-cat { display: flex; flex-direction: column; gap: 6px; }
.home-feat-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 7px; border-radius: 999px; display: inline-block;
}
.home-feat-cards { display: flex; gap: 7px; }
.home-featured-card {
  width: 52px; height: 72px;
  border-radius: 6px; overflow: hidden;
  flex-shrink: 0; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}
.home-featured-card:hover { transform: translateY(-2px) scale(1.05); }
.home-featured-card img { width: 100%; height: 100%; object-fit: cover; }
.home-featured-card.wished { opacity: 0.75; }
.home-featured-card.wished img { filter: grayscale(0.2); }

.home-featured-strip {
  border-top: 1px solid var(--border);
  background: var(--bg-3);
  padding: 12px 14px 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.home-feat-cat { display: flex; flex-direction: column; gap: 7px; }
.home-feat-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 999px; display: inline-block;
}
.home-feat-cards { display: flex; gap: 7px; align-items: flex-end; }

.home-featured-card {
  width: 54px; height: 76px;
  border-radius: 7px; overflow: hidden;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
  background: var(--bg-3);
  border: 1px solid var(--border);
}
.home-featured-card.has-card { border: none; }
.home-featured-card:hover { transform: translateY(-2px) scale(1.05); }
.home-featured-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-featured-card.wished img { filter: grayscale(0.15); }

.home-card-del {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(239,68,68,0.9); color: white;
  font-size: 9px; font-weight: 900;
  display: grid; place-items: center;
  opacity: 0; transition: opacity 0.15s;
  cursor: pointer; line-height: 1;
}
.home-featured-card.has-card:hover .home-card-del { opacity: 1; }

.home-featured-card.empty-slot {
  display: grid; place-items: center;
  color: var(--text-muted);
  border: 2px dashed var(--border-strong);
}
.home-featured-card.empty-slot.owned:hover { border-color: var(--success); color: var(--success); }
.home-featured-card.empty-slot.wished:hover { border-color: var(--warning); color: var(--warning); }

.profile-card-pick-wrap {
  display: flex; flex-direction: column; gap: 18px;
}
.profile-card-pick-cat { display: flex; flex-direction: column; }
.profile-card-pick-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.profile-pick-card {
  width: 64px; height: 90px;
  border-radius: 8px; overflow: hidden;
  cursor: pointer; position: relative;
  border: 2px solid transparent;
  transition: all 0.18s;
  box-shadow: var(--shadow-sm);
}
.profile-pick-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-pick-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.profile-pick-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pick-selected-badge {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 900;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.showcase-card-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.showcase-card-group {
  display: flex; flex-direction: column; gap: 6px;
}
.showcase-card-mini-grid {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.showcase-mini-card {
  width: 52px; height: 72px;
  border-radius: 6px; overflow: hidden;
  cursor: pointer; position: relative;
  border: 2px solid transparent;
  transition: all 0.18s;
  box-shadow: var(--shadow-sm);
  background: var(--bg-3);
}
.showcase-mini-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-mini-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.showcase-mini-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.bulk-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
  margin-right: 4px;
}
.bulk-btn {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-soft);
  transition: all 0.15s;
  white-space: nowrap;
}
.bulk-btn:hover { background: var(--accent-2-soft); color: var(--accent-2); border-color: var(--accent-2); }
.bulk-btn.bulk-full:hover { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.bulk-btn.bulk-master:hover { background: rgba(168,85,247,0.12); color: #a855f7; border-color: #a855f7; }
.bulk-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.badge-lock-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(1px);
}

.showcase-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.showcase-row .profile-showcase {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 0;
}

.profile-section-title,
.profile-section-heading {
  margin: 34px 4px 16px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}
.profile-card-title {
  margin: 22px 0 12px;
}
.showcase-row {
  gap: 28px;
  row-gap: 22px;
}
#profile-showcase-cards {
  min-width: 180px;
}
.profile-card-showcase-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.profile-card-choice {
  width: 92px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.profile-card-choice:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.profile-card-choice-img {
  width: 64px;
  height: 90px;
  margin: 7px auto 6px;
  border-radius: 7px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-2);
}
.profile-card-choice-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-card-choice-name {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-soft);
  min-height: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-card-choice-change {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.profile-card-picker-grid .featured-pick-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.profile-badges-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.profile-badges-grid .badge-card {
  padding: 22px 20px;
}
.profile-badges-grid .badge-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}
.profile-badges-grid .badge-icon svg {
  width: 36px;
  height: 36px;
}
.profile-badges-grid .badge-tier-tag {
  top: 12px;
  right: 12px;
}
.profile-show-more-wrap {
  text-align: center;
  margin-top: 18px;
}
.profile-show-more-wrap .btn-secondary {
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

#profile-showcase-cards {
  min-width: 220px;
  align-self: flex-start;
}
.profile-card-title {
  margin: 8px 0 10px;
  font-size: 18px;
  line-height: 1.15;
}
.profile-card-showcase-row {
  gap: 10px;
}
.profile-card-choice {
  width: 88px;
  min-height: 0;
  padding: 7px 7px 8px;
  border-radius: 12px;
}
.profile-card-choice .home-feat-label {
  position: static;
  display: inline-flex;
  margin: 0 auto 5px;
  font-size: 9px;
  line-height: 1;
  padding: 4px 7px;
}
.profile-card-choice-img {
  width: 48px;
  height: 67px;
  margin: 0 auto 5px;
  border-radius: 6px;
}
.profile-card-choice-name {
  font-size: 9px;
  min-height: 21px;
}
.profile-card-choice-change {
  margin-top: 4px;
  font-size: 9px;
}
.showcase-row {
  align-items: flex-start;
  column-gap: 28px;
  row-gap: 12px;
}

.inline-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 8px;
  animation: spin 0.8s linear infinite;
}
#confirm-ok:disabled,
#confirm-cancel:disabled,
.modal-close:disabled {
  opacity: 0.65;
  cursor: wait !important;
}

@media (max-width: 900px) {
  #profile-showcase-cards {
    min-width: 100%;
  }
}

.profile-top-row-wrap {
  margin-top: 18px;
}
.profile-mini-section-title {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}
.profile-showcase-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.profile-showcase-col .profile-showcase {
  margin-top: 0;
}
#profile-showcase-cards {
  align-self: flex-start;
  min-width: 198px;
}
#profile-showcase-cards .profile-card-title {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}
.showcase-row {
  align-items: flex-start;
  column-gap: 28px;
  row-gap: 16px;
}
.profile-card-showcase-row {
  align-items: flex-start;
}
.profile-card-choice {
  width: 82px;
  padding: 6px 6px 7px;
}
.profile-card-choice-img {
  width: 44px;
  height: 61px;
  margin-bottom: 4px;
}
.profile-card-choice-name {
  font-size: 9px;
  min-height: 20px;
}
.profile-card-choice-change {
  font-size: 9px;
  margin-top: 3px;
}

.badge-icon.set-completion {
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.70));
  color: var(--text);
}
.badge-set-logo {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  display: block;
}
.showcase-badge-icon {
  width: 54px !important;
  height: 54px !important;
}
.showcase-badge-icon .badge-set-logo {
  max-width: 82%;
  max-height: 82%;
}

@media (max-width: 900px) {
  #profile-showcase-cards {
    min-width: 100%;
  }
}

.profile-top-row-wrap,
.showcase-row {
  width: 100%;
}
.showcase-row {
  align-items: flex-start;
}
.profile-highlights-panel {
  min-width: 430px;
  min-height: 154px;
  align-self: flex-start;
}
.profile-highlights-row {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
}
.profile-highlights-row .profile-mini-section-title,
.profile-showcase-col .profile-mini-section-title {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}
.profile-top-chases-block,
.profile-favorite-sets-block {
  min-height: 132px;
}
.profile-favorite-sets-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.profile-set-choice {
  width: 106px;
  min-height: 116px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  border-radius: 12px;
  padding: 7px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.profile-set-choice:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.profile-set-logo {
  height: 48px;
  margin: 2px auto 7px;
  border-radius: 8px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-set-logo img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}
.profile-set-name {
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 22px;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-card-choice.placeholder,
.profile-set-choice.placeholder {
  opacity: 0.45;
  pointer-events: none;
}
.profile-card-choice.placeholder::before,
.profile-set-choice.placeholder::before {
  content: '';
  display: block;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2));
}
.profile-set-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.profile-set-picker-item {
  position: relative;
  border: 2px solid transparent;
  background: var(--bg-3);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.profile-set-picker-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.profile-set-picker-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.profile-set-picker-logo {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.profile-set-picker-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.profile-set-picker-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-soft);
}

.bulk-btn[data-bulk$="-remove"]:hover,
.bulk-btn.bulk-full[data-bulk$="-remove"]:hover,
.bulk-btn.bulk-master[data-bulk$="-remove"]:hover {
  background: var(--danger-soft, rgba(239,68,68,0.12));
  color: var(--danger, #ef4444);
  border-color: var(--danger, #ef4444);
}

.home-feat-cat {
  align-items: center;
  text-align: center;
}
.home-feat-label {
  text-align: center;
  align-self: center;
}
.home-feat-cards {
  justify-content: center;
}

@media (max-width: 900px) {
  .profile-highlights-panel { min-width: 100%; }
  .profile-hero { min-height: 0; }
}

#profile-showcase-cards .profile-highlights-row {
  align-items: flex-start;
}
#profile-showcase-cards .profile-favorite-sets-block {
  order: 1;
}
#profile-showcase-cards .profile-top-chases-block {
  order: 2;
}
#profile-showcase-cards .profile-card-choice:hover,
#profile-showcase-cards .profile-set-choice:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.badge-icon.set-completion {
  border-radius: 50%;
  padding: 8px;
  overflow: visible;
}
.badge-icon.set-completion .badge-set-logo {
  width: 72%;
  height: 72%;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  border-radius: 50%;
  padding: 6px;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.08);
}
.profile-badges-grid .badge-icon.set-completion .badge-set-logo,
.showcase-badge-icon.badge-icon.set-completion .badge-set-logo {
  width: 74%;
  height: 74%;
  max-width: 74%;
  max-height: 74%;
  padding: 5px;
}

.set-card-badge-inline.complete.master-set {
  background: rgba(245,158,11,0.16);
  color: #d97706;
  border: 1px solid rgba(245,158,11,0.32);
}

#profile-showcase-cards .profile-highlights-row {
  gap: 32px;
}
#profile-showcase-cards .profile-card-choice,
#profile-showcase-cards .profile-set-choice {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  width: 86px;
  min-height: 0;
  color: var(--text);
  transition: transform 0.16s ease, opacity 0.16s ease;
}
#profile-showcase-cards .profile-card-choice:hover,
#profile-showcase-cards .profile-set-choice:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: none;
}
#profile-showcase-cards .profile-card-choice.empty,
#profile-showcase-cards .profile-set-choice.empty {
  opacity: 0.8;
}
#profile-showcase-cards .profile-card-choice .home-feat-label {
  justify-content: center;
  min-width: 68px;
  margin-bottom: 7px;
}
#profile-showcase-cards .profile-card-choice-img {
  width: 54px;
  height: 75px;
  margin: 0 auto 6px;
  border-radius: 7px;
  background: transparent;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.18);
}
#profile-showcase-cards .profile-card-choice-img span {
  width: 54px;
  height: 75px;
  border-radius: 6px;
  border: 2px dashed var(--border-strong);
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
}
#profile-showcase-cards .profile-set-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55));
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: visible;
}
#profile-showcase-cards .profile-set-logo::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.16;
  z-index: -1;
  filter: blur(8px);
}
#profile-showcase-cards .profile-set-logo img {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}
#profile-showcase-cards .profile-set-logo span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px dashed var(--border-strong);
  display: grid;
  place-items: center;
}
#profile-showcase-cards .profile-set-name,
#profile-showcase-cards .profile-card-choice-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-soft);
  max-width: 86px;
  margin: 0 auto;
}
#profile-showcase-cards .profile-card-choice-change {
  font-size: 9px;
  margin-top: 4px;
}

.badge-icon.set-completion {
  border-radius: 50%;
  padding: 0;
  overflow: visible;
  display: grid;
  place-items: center;
}
.badge-icon.set-completion .badge-set-logo {
  width: 88%;
  height: 88%;
  max-width: 88%;
  max-height: 88%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}
.profile-badges-grid .badge-icon.set-completion .badge-set-logo,
.showcase-badge-icon.badge-icon.set-completion .badge-set-logo {
  width: 88%;
  height: 88%;
  max-width: 88%;
  max-height: 88%;
  padding: 0;
}

.set-card-sub-btn.subscribed {
  position: relative;
}
.set-card-sub-btn.subscribed:hover {
  background: var(--danger-soft, rgba(239,68,68,0.12));
  color: var(--danger, #ef4444);
  border-color: var(--danger, #ef4444);
}
.set-card-sub-btn.subscribed:hover svg {
  opacity: 0;
}
.set-card-sub-btn.subscribed:hover::before,
.set-card-sub-btn.subscribed:hover::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  left: 50%;
  top: 50%;
}
.set-card-sub-btn.subscribed:hover::before { transform: translate(-50%, -50%) rotate(45deg); }
.set-card-sub-btn.subscribed:hover::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.set-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.set-logo-modal-img {
  max-width: min(420px, 88vw);
  max-height: 240px;
  object-fit: contain;
  display: block;
  margin: 8px auto 14px;
}
.set-logo-modal-empty {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 8px auto 14px;
  background: var(--bg-3);
  font-size: 42px;
}

.settings-block {
  overflow: hidden;
}
.setting-row,
.setting-row + .setting-row {
  border-radius: 12px;
}
.setting-row + .setting-row {
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  #profile-showcase-cards .profile-highlights-row {
    gap: 22px;
  }
}
#profile-showcase-cards .profile-set-logo { position: relative; }

body.modal-open {
  overflow: hidden;
}

.modal-content.avatar-picker-modal {
  max-width: min(860px, 94vw);
  overflow: hidden;
}
.avatar-picker-modal .modal-body {
  max-height: min(72vh, 640px);
  overflow-y: auto;
  padding: 18px 22px 24px !important;
}
.avatar-picker-modal .avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 14px;
  max-height: none;
  overflow: visible;
  padding: 4px;
  margin-top: 0;
}
.avatar-picker-modal .avatar-option {
  aspect-ratio: auto;
  min-height: 116px;
  border-radius: 18px;
  background: var(--bg-3);
  padding: 10px 8px 8px;
  overflow: visible;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.avatar-picker-modal .avatar-img-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-2);
}
.avatar-picker-modal .avatar-option img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
}
.avatar-picker-modal .avatar-pokemon-name {
  display: block;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
}
.avatar-picker-modal .avatar-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.badge-tier-tag.bronze {
  background: rgba(251,146,60,.18);
  color: #b45309;
}
.badge-tier-tag.silver {
  background: rgba(148,163,184,.22);
  color: #64748b;
}
.badge-tier-tag.gold {
  background: rgba(245,158,11,.18);
  color: #d97706;
}
.badge-tier-tag.platinum {
  background: rgba(96,165,250,.18);
  color: #7c3aed;
}
.badge-tier-tag.legendary {
  background: rgba(236,72,153,.18);
  color: #db2777;
}

.badge-icon.set-completion {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 0;
  overflow: visible;
  display: grid;
  place-items: center;
  color: white;
  background: var(--platinum);
}
.badge-icon.set-completion.bronze    { background: var(--bronze); }
.badge-icon.set-completion.silver    { background: var(--silver); }
.badge-icon.set-completion.gold      { background: var(--gold-grad); }
.badge-icon.set-completion.platinum  { background: var(--platinum); }
.badge-icon.set-completion.legendary { background: var(--legendary); }
.badge-icon.set-completion::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08);
  z-index: 0;
}
.badge-icon.set-completion .badge-set-logo {
  position: relative;
  z-index: 1;
  width: 70%;
  height: 70%;
  max-width: 70%;
  max-height: 70%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}
.profile-badges-grid .badge-icon.set-completion,
.showcase-badge-icon.badge-icon.set-completion {
  width: 72px !important;
  height: 72px !important;
}
.profile-badges-grid .badge-icon.set-completion .badge-set-logo,
.showcase-badge-icon.badge-icon.set-completion .badge-set-logo {
  width: 70%;
  height: 70%;
  max-width: 70%;
  max-height: 70%;
}

.btn-sub.subscribed {
  position: relative;
}
.btn-sub.subscribed:hover {
  background: var(--danger-soft, rgba(239,68,68,0.12));
  color: var(--danger, #ef4444);
  border-color: var(--danger, #ef4444);
}
.btn-sub.subscribed:hover::after {
  content: '×';
  margin-left: 8px;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 560px) {
  .avatar-picker-modal .avatar-grid {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 10px;
  }
  .avatar-picker-modal .avatar-option { min-height: 98px; }
  .avatar-picker-modal .avatar-img-wrap { width: 58px; height: 58px; }
  .avatar-picker-modal .avatar-option img { width: 56px; height: 56px; }
}

.level-meta-above {
  margin-top: 0;
  margin-bottom: 8px;
}

.set-era-group {
  margin-top: 22px;
}
.set-era-group:first-child {
  margin-top: 0;
}
.set-era-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
}
.collection-card-search {
  margin: -4px 0 14px;
}
.collection-card-search input {
  width: 100%;
}

body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.showcase-slot.filled .badge-icon,
.showcase-slot.filled .showcase-badge-icon,
.showcase-slot.filled .badge-icon.set-completion,
.showcase-slot.filled .showcase-badge-icon.badge-icon.set-completion {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px;
  min-height: 60px;
  margin-bottom: 6px;
}
.showcase-slot.filled .badge-icon svg,
.showcase-slot.filled .showcase-badge-icon svg {
  width: 30px;
  height: 30px;
}

.badge-icon.set-completion::before {
  inset: 4px;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}
.badge-icon.set-completion .badge-set-logo,
.profile-badges-grid .badge-icon.set-completion .badge-set-logo,
.showcase-badge-icon.badge-icon.set-completion .badge-set-logo {
  width: 78%;
  height: 78%;
  max-width: 78%;
  max-height: 78%;
}

.profile-badges-grid .badge-icon.set-completion {
  width: 52px !important;
  height: 52px !important;
}
.profile-badges-grid .badge-icon.set-completion .badge-set-logo {
  width: 78%;
  height: 78%;
  max-width: 78%;
  max-height: 78%;
}

.modal-content.avatar-picker-modal {
  max-width: min(980px, 96vw) !important;
  width: min(980px, 96vw);
}
.avatar-picker-modal .modal-body {
  max-height: min(74vh, 680px);
  overflow-y: auto;
  overflow-x: hidden;
}
.avatar-picker-modal .avatar-grid {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch;
}
.avatar-picker-modal .avatar-option {
  min-height: 132px !important;
  width: 100%;
  overflow: hidden;
}
.avatar-picker-modal .avatar-img-wrap {
  width: 82px !important;
  height: 82px !important;
  overflow: visible;
}
.avatar-picker-modal .avatar-option img {
  width: 78px !important;
  height: 78px !important;
  object-fit: contain !important;
  image-rendering: auto;
}

@media (max-width: 560px) {
  .avatar-picker-modal .avatar-grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)) !important;
  }
  .avatar-picker-modal .avatar-option { min-height: 112px !important; }
}

.home-level-bar-fill {
  transition: none !important;
}

.level-meta-above {
  margin-bottom: 3px !important;
}

.modal-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-2);
}
.modal-body {
  overflow-y: auto;
  min-height: 0;
}
.modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.modal-footer .btn-primary {
  min-width: 140px;
}
.modal-footer-hint {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.showcase-picker-body {
  max-height: min(70vh, 620px);
}
.showcase-picker-card {
  cursor: pointer;
  border-width: 2px;
}
.showcase-picker-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.showcase-position-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(239,68,68,0.45);
  line-height: 1;
}
.showcase-picker-card.selected:hover .showcase-position-badge {
  background: #dc2626;

}
.showcase-picker-card.selected:hover .showcase-position-badge::after {
  content: '×';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #dc2626;
  border-radius: 50%;
  font-size: 16px;
}
.showcase-picker-action {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  z-index: 4;
  pointer-events: none;
}
.showcase-picker-card:not(.selected):hover .showcase-picker-action {
  content: '';
  opacity: 1;
  transform: scale(1);
  background: var(--success, #22c55e);
}
.showcase-picker-card:not(.selected):hover .showcase-picker-action::before {
  content: '✓';
}
.showcase-picker-card.selected:hover .showcase-picker-action {
  opacity: 1;
  transform: scale(1);
  background: var(--danger, #ef4444);
}
.showcase-picker-card.selected:hover .showcase-picker-action::before {
  content: '×';
  line-height: 1;
}

.badges-grid .badge-icon.set-completion,
.badge-card .badge-icon.set-completion {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px;
  min-height: 72px;
}
.badge-icon.set-completion::before {
  inset: 3px !important;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.05) !important;
}
.badge-icon.set-completion .badge-set-logo {
  width: 88% !important;
  height: 88% !important;
  max-width: 88% !important;
  max-height: 88% !important;
}
.profile-badges-grid .badge-icon.set-completion {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px;
  min-height: 52px;
}
.profile-badges-grid .badge-icon.set-completion::before {
  inset: 3px !important;
}
.profile-badges-grid .badge-icon.set-completion .badge-set-logo {
  width: 86% !important;
  height: 86% !important;
  max-width: 86% !important;
  max-height: 86% !important;
}
.showcase-slot.filled .badge-icon.set-completion,
.showcase-slot.filled .showcase-badge-icon.badge-icon.set-completion {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px;
  min-height: 60px;
}
.showcase-slot.filled .badge-icon.set-completion .badge-set-logo,
.showcase-slot.filled .showcase-badge-icon.badge-icon.set-completion .badge-set-logo {
  width: 86% !important;
  height: 86% !important;
  max-width: 86% !important;
  max-height: 86% !important;
}

.profile-level-row .level-meta-above {
  margin-bottom: 2px !important;
  line-height: 1.1;
}
.profile-level-row .level-bar {
  margin-top: 0 !important;
}

.profile-badges-grid .badge-icon,
.profile-badges-grid .badge-icon.set-completion {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  margin: 0 auto 10px !important;
}
.profile-badges-grid .badge-icon.set-completion::before {
  inset: 2px !important;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06) !important;
}
.profile-badges-grid .badge-icon.set-completion .badge-set-logo {
  width: 92% !important;
  height: 92% !important;
  max-width: 92% !important;
  max-height: 92% !important;
}

.badges-grid:not(.profile-badges-grid) .badge-icon.set-completion {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
}
.badges-grid:not(.profile-badges-grid) .badge-icon.set-completion::before {
  inset: 2px !important;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06) !important;
}
.badges-grid:not(.profile-badges-grid) .badge-icon.set-completion .badge-set-logo {
  width: 92% !important;
  height: 92% !important;
  max-width: 92% !important;
  max-height: 92% !important;
}

.toast.error .toast-icon {
  background: var(--danger, #ef4444) !important;
  color: #fff !important;
}

.logo-wordmark {
  display: inline-block;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.app-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: 28px;
}
.app-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.app-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}
.app-footer-logo {
  width: 52px;
  height: auto;
  display: block;
}
.app-footer-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.app-footer-brand p,
.app-footer-meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}
.app-footer-meta {
  max-width: 720px;
  text-align: right;
}
.app-footer-meta p + p {
  margin-top: 6px;
  font-weight: 700;
}

.profile-level-progress {
  flex: 1;
  min-width: 0;
}
.profile-level-progress .level-meta-above {
  margin-bottom: 1px !important;
  line-height: 1;
}
.profile-level-progress .level-bar {
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  .logo-wordmark { display: none; }

  .app-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bottom-nav .bn-btn span {
    white-space: nowrap;
    font-size: 10px;
    line-height: 1;
  }


  .home-featured-strip {
    justify-content: center !important;
    align-items: flex-start;
    text-align: center;
    width: 100%;
  }
  .home-feat-cat {
    align-items: center !important;
    justify-content: flex-start;
  }
  .home-feat-cards {
    justify-content: center;
  }
  .home-feat-label {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }


  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 24px 16px;
  }
  .profile-avatar-wrap {
    width: 118px;
    height: 118px;
  }
  .profile-level-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    width: 100%;
  }
  .profile-level-progress {
    width: min(100%, 420px);
    flex: none;
  }
  .profile-level-progress .level-meta-above {
    margin-bottom: 2px !important;
  }
  .profile-top-row-wrap {
    margin-top: 18px;
  }
  .showcase-row,
  .profile-highlights-row {
    justify-content: center;
    text-align: center;
  }
  .profile-showcase-col,
  #profile-showcase-cards,
  .profile-favorite-sets-block,
  .profile-top-chases-block {
    width: 100%;
  }
  .profile-showcase,
  .profile-favorite-sets-row,
  .profile-card-showcase-row {
    justify-content: center;
  }
  .profile-highlights-row .profile-mini-section-title,
  .profile-showcase-col .profile-mini-section-title,
  .profile-section-heading {
    text-align: center;
  }

  .profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-card {
    text-align: center;
    padding: 14px 8px;
  }
  .stat-card-label {
    font-size: 10px;
    letter-spacing: 0.03em;
  }
  .stat-card-value {
    font-size: 24px;
  }


  .filter-bar {
    gap: 5px;
    padding: 5px;
    justify-content: center;
  }
  .filter-chip {
    padding: 7px 9px;
    font-size: 11px;
    letter-spacing: -0.01em;
  }


  .set-detail-header {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 22px 16px;
  }
  .set-detail-info {
    width: 100%;
  }
  .set-detail-meta,
  .set-detail-badges,
  .set-detail-actions {
    justify-content: center;
    text-align: center;
  }
  .set-progress-block {
    text-align: left;
  }

  .page-title,
  .profile-section-heading,
  #profile-badges-section h3 {
    text-align: center;
  }

  .app-footer {
    display: none;
  }
}

@media (max-width: 420px) {
  .filter-chip {
    font-size: 10.5px;
    padding-left: 7px;
    padding-right: 7px;
  }
  .profile-grid {
    gap: 8px;
  }
  .stat-card-label {
    font-size: 9.5px;
  }
}

.page-header,
.page-title,
.page-subtitle {
  text-align: left !important;
}

@media (max-width: 760px) {
  .logo-wordmark {
    display: inline-block !important;
    font-size: 15px;
  }
  .logo-btn {
    gap: 7px;
    padding-left: 2px;
    padding-right: 2px;
  }
  .logo-img {
    height: 46px;
  }
}
@media (max-width: 380px) {
  .logo-wordmark { font-size: 13px; }
  .logo-img { height: 42px; }
}

.home-featured-strip {
  justify-content: center !important;
  align-items: flex-start;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.42)), var(--bg-2) !important;
  border-top: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
[data-theme="dark"] .home-featured-strip {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)), var(--bg-2) !important;
  border-top-color: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.home-feat-cat {
  align-items: center !important;
}
.home-feat-cards {
  justify-content: center !important;
}

.profile-grid.profile-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-level-row {
  margin-top: 16px;
  margin-bottom: 20px;
}
.profile-top-row-wrap {
  margin-top: 24px;
}
.showcase-row {
  row-gap: 28px;
}
.profile-highlights-panel,
#profile-showcase-cards {
  margin-top: 2px;
}
.profile-showcase-col .profile-mini-section-title {
  text-align: center;
}
.profile-showcase-col .profile-showcase {
  justify-content: center;
}

.badge-card {
  padding-top: 48px !important;
  min-height: 256px;
}
.badge-card .badge-tier-tag {
  top: 14px;
  right: 14px;
  z-index: 3;
}
.badge-card .badge-icon {
  margin-top: 0 !important;
}

.profile-badges-grid .badge-icon,
.profile-badges-grid .badge-icon.set-completion,
.badges-grid.profile-badges-grid .badge-icon.set-completion,
.badge-card .badge-icon.set-completion {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  margin: 0 auto 14px !important;
}
.profile-badges-grid .badge-icon svg {
  width: 36px !important;
  height: 36px !important;
}
.profile-badges-grid .badge-icon.set-completion::before {
  inset: 2px !important;
}
.profile-badges-grid .badge-icon.set-completion .badge-set-logo {
  width: 92% !important;
  height: 92% !important;
  max-width: 92% !important;
  max-height: 92% !important;
}

.showcase-slot.filled .badge-icon,
.showcase-slot.filled .showcase-badge-icon,
.showcase-slot.filled .badge-icon.set-completion,
.showcase-slot.filled .showcase-badge-icon.badge-icon.set-completion {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  margin: 0 auto 6px !important;
}

@media (max-width: 760px) {
  .profile-grid.profile-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-hero {
    row-gap: 24px;
  }
  .profile-level-row {
    margin-top: 14px;
    margin-bottom: 22px;
  }
  .profile-top-row-wrap {
    margin-top: 26px;
  }
  .profile-highlights-row .profile-mini-section-title,
  .profile-showcase-col .profile-mini-section-title,
  .profile-section-heading {
    text-align: center !important;
  }
  .badge-card {
    padding-top: 46px !important;
  }
}

.bottom-nav [data-route="sets"] [data-i18n="nav_collections"] {
  white-space: nowrap;
}

.profile-edit-avatar,
.profile-edit-avatar:hover,
.profile-edit-avatar:focus,
.profile-edit-avatar:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 999px !important;
  aspect-ratio: 1 / 1;
}
.profile-edit-avatar svg {
  display: block;
  width: 16px;
  height: 16px;
}

@media (max-width: 760px) {

  .bottom-nav .bn-btn span {
    font-size: 9.5px !important;
    letter-spacing: -0.03em;
  }


  .welcome-stat-label {
    white-space: nowrap;
  }


  .profile-hero .profile-showcase-col,
  .profile-hero .profile-showcase-col .profile-mini-section-title,
  .profile-hero .showcase-row .profile-mini-section-title {
    width: 100% !important;
    text-align: center !important;
    align-self: center !important;
  }
  .profile-hero .profile-showcase-col .profile-mini-section-title {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .profile-hero .profile-showcase {
    justify-content: center !important;
  }


  .profile-hero {
    row-gap: 34px !important;
  }
  .profile-level-row {
    margin-top: 18px !important;
    margin-bottom: 30px !important;
  }
  .profile-top-row-wrap {
    margin-top: 30px !important;
  }
  .profile-hero .showcase-row {
    gap: 34px !important;
    row-gap: 34px !important;
  }
  .profile-highlights-row,
  #profile-showcase-cards {
    margin-top: 16px !important;
  }


  .profile-edit-avatar,
  .profile-edit-avatar:hover,
  .profile-edit-avatar:focus,
  .profile-edit-avatar:focus-visible {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    right: 2px;
    bottom: 2px;
  }
}

@media (max-width: 760px) {

  .profile-level-progress .level-meta-above {
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 2px !important;
    width: 100%;
  }
  .profile-level-progress .level-meta-above span:first-child {
    display: block !important;
    width: 100%;
    text-align: center !important;
    margin: 0 auto !important;
  }
  .profile-level-progress .level-meta-above span:last-child {
    display: none !important;
  }


  .logo-btn {
    padding-left: 6px !important;
    padding-right: 14px !important;
    border-radius: 12px !important;
  }
}

.welcome-stat-label-sets .welcome-stat-short {
  display: none;
}
.welcome-stat-label-sets .welcome-stat-full {
  display: inline;
}

@media (max-width: 760px) {
  .welcome-stat-label-sets .welcome-stat-full {
    display: none;
  }
  .welcome-stat-label-sets .welcome-stat-short {
    display: inline;
  }


  .profile-level-row {
    gap: 14px !important;
  }
  .profile-level-progress {
    margin-top: 2px !important;
  }
  .profile-level-progress .level-meta-above {
    margin-bottom: 6px !important;
  }


  #profile-showcase-cards .profile-highlights-row {
    row-gap: 30px !important;
    gap: 30px !important;
  }
  #profile-showcase-cards .profile-favorite-sets-block {
    margin-bottom: 10px !important;
  }
  #profile-showcase-cards .profile-top-chases-block {
    margin-top: 4px !important;
  }


  .profile-avatar-wrap .profile-edit-avatar,
  .profile-avatar-wrap .profile-edit-avatar:hover,
  .profile-avatar-wrap .profile-edit-avatar:focus,
  .profile-avatar-wrap .profile-edit-avatar:focus-visible,
  .profile-avatar-wrap .profile-edit-avatar:active {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    line-height: 0 !important;
    background: var(--accent) !important;
    background-clip: padding-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent;
    right: 0 !important;
    bottom: 0 !important;
  }
  .profile-avatar-wrap .profile-edit-avatar::before,
  .profile-avatar-wrap .profile-edit-avatar::after {
    display: none !important;
    content: none !important;
  }
  .profile-avatar-wrap .profile-edit-avatar svg {
    flex: 0 0 auto !important;
    width: 16px !important;
    height: 16px !important;
    display: block !important;
  }
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0 !important;
}
.app-main {
  flex: 1 0 auto;
}
.app-footer {
  flex-shrink: 0;
  margin-top: auto !important;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border-top: 1px solid var(--border);
}

.app-footer-logo.theme-logo-dark { display: none !important; }
.app-footer-logo.theme-logo-light { display: block !important; }
[data-theme="dark"] .app-footer-logo.theme-logo-dark { display: block !important; }
[data-theme="dark"] .app-footer-logo.theme-logo-light { display: none !important; }

.home-featured-strip {
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.66)),
    #f0f3f8 !important;
  border-top: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85) !important;
}
[data-theme="dark"] .home-featured-strip {
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04)),
    #191923 !important;
  border-top-color: rgba(255,255,255,.09) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}

@media (max-width: 760px) {
  .app {
    padding-bottom: var(--bottom-h) !important;
  }
  .app-footer {
    display: none !important;
  }


  .profile-top-row-wrap {
    margin-top: 18px !important;
  }
  .profile-hero .showcase-row {
    gap: 22px !important;
    row-gap: 22px !important;
  }
  #profile-showcase-cards,
  .profile-highlights-panel {
    margin-top: 0 !important;
  }
  #profile-showcase-cards .profile-highlights-row {
    gap: 22px !important;
    row-gap: 22px !important;
  }
  #profile-showcase-cards .profile-favorite-sets-block {
    margin-bottom: 0 !important;
  }
  #profile-showcase-cards .profile-top-chases-block {
    margin-top: 0 !important;
  }


  .profile-settings-title {
    text-align: center !important;
  }
}

.app-main {
  width: 100% !important;
  max-width: 1280px !important;
}
.app-header,
.app-footer {
  width: 100%;
}
.header-inner,
.app-footer-inner {
  width: 100%;
}

[data-theme="dark"] .profile-avatar,
[data-theme="dark"] .avatar-mini,
[data-theme="dark"] .avatar-img-wrap {
  background: #fff !important;
}
[data-theme="dark"] .profile-avatar {
  border-color: #fff !important;
}

#home-subs .set-card {
  display: flex !important;
  flex-direction: column !important;
}
#home-subs .set-card-body {
  flex: 1 1 auto !important;
}

.home-featured-strip {
  background: linear-gradient(180deg, rgb(255 254 254 / 94%), rgb(211 211 211 / 66%)), #f0f3f8 !important;
  border-top: 1px solid rgba(15, 23, 42, .08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85) !important;
  margin-top: auto !important;
  margin-bottom: -1px !important;
  margin-left: -1px !important;
  margin-right: -1px !important;
  padding-bottom: 16px !important;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
[data-theme="dark"] .home-featured-strip {
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.04)), #191923 !important;
  border-top-color: rgba(255,255,255,.09) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.home-card-del {
  top: 4px !important;
  right: 4px !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 13px !important;
  box-shadow: 0 8px 18px rgba(239,68,68,.34);
}

#profile-showcase-cards .profile-card-choice .home-feat-label {
  margin: 5px auto 0 !important;
  min-width: 0 !important;
  order: 3;
}
#profile-showcase-cards .profile-card-choice-change {
  display: none !important;
}
#profile-showcase-cards .profile-card-choice,
#profile-showcase-cards .profile-set-choice {
  position: relative;
}
#profile-showcase-cards .profile-card-choice-img,
#profile-showcase-cards .profile-set-logo {
  position: relative;
}
.profile-choice-remove {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(239,68,68,.96);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: scale(.82);
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 8px 20px rgba(239,68,68,.36);
  z-index: 5;
  pointer-events: auto;
}
#profile-showcase-cards .profile-card-choice:hover .profile-choice-remove,
#profile-showcase-cards .profile-set-choice:hover .profile-choice-remove {
  opacity: 1;
  transform: scale(1);
}

.profile-hero .profile-showcase-col,
.profile-hero .profile-top-chases-block,
.profile-hero .profile-favorite-sets-block {
  align-items: center !important;
  text-align: center !important;
}
.profile-hero .profile-mini-section-title,
.profile-highlights-row .profile-mini-section-title,
.profile-showcase-col .profile-mini-section-title {
  width: 100%;
  text-align: center !important;
}
.profile-hero .profile-showcase,
.profile-hero .profile-favorite-sets-row,
.profile-hero .profile-card-showcase-row {
  justify-content: center !important;
}
.profile-grid.profile-grid-compact .stat-card,
.profile-grid.profile-grid-compact .stat-card-label,
.profile-grid.profile-grid-compact .stat-card-value {
  text-align: center !important;
}

.home-card-del,
.profile-choice-remove {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  border-radius: 50% !important;
  background: rgba(239,68,68,0.9) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  display: grid !important;
  place-items: center !important;
  opacity: 0 !important;
  transform: none !important;
  transition: opacity 0.15s ease !important;
  cursor: pointer !important;
  line-height: 1 !important;
  box-shadow: none !important;
  z-index: 6 !important;
  pointer-events: auto !important;
}
.home-featured-card.has-card:hover .home-card-del,
#profile-showcase-cards .profile-card-choice:hover .profile-choice-remove,
#profile-showcase-cards .profile-set-choice:hover .profile-choice-remove {
  opacity: 1 !important;
  transform: none !important;
}
#profile-showcase-cards .profile-card-choice-img,
#profile-showcase-cards .profile-set-logo {
  position: relative !important;
}

#profile-showcase-cards .profile-set-logo .profile-choice-remove {
  top: 3px !important;
  right: 3px !important;
}

@media (max-width: 760px) {
  .profile-level-progress {
    max-width: 340px;
  }
}

.share-avatar-btn {
  position: absolute;
  bottom: calc(50% - 60px - 4px);
  left:   calc(50% - 60px - 4px);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-2);
  color: var(--text-soft);
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
}
.share-avatar-btn:hover {
  transform: scale(1.1);
  background: var(--bg-3);
  color: var(--text);
}

@media (max-width: 768px) {

  .profile-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: unset !important;
    justify-items: unset !important;
    padding: 0 !important;
    gap: 0 !important;
  }


  .profile-avatar-wrap {
    width: 100% !important;
    height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 28px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }


  .profile-hero > div:not(.profile-avatar-wrap),
  .profile-hero-info {
    width: 100% !important;
    padding: 24px 20px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }


  .profile-username,
  .profile-email {
    margin-left: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }


  .profile-level-pill-wrap {
    margin-left: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }


  .profile-xp-bar-wrap {
    width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }


  .profile-avatar {
    width: 110px !important;
    height: 110px !important;
  }
  .profile-edit-avatar {
    bottom: calc(50% - 55px - 4px) !important;
    right: calc(50% - 55px - 4px) !important;
  }
  .share-avatar-btn {
    bottom: calc(50% - 55px - 4px) !important;
    left: calc(50% - 55px - 4px) !important;
  }
}

@media (max-width: 768px) {
  .profile-avatar-wrap .profile-edit-avatar,
  .profile-avatar-wrap .profile-edit-avatar:hover,
  .profile-avatar-wrap .profile-edit-avatar:focus,
  .profile-avatar-wrap .profile-edit-avatar:focus-visible,
  .profile-avatar-wrap .profile-edit-avatar:active {
    bottom: calc(50% - 55px - 4px) !important;
    right: calc(50% - 55px - 4px) !important;
  }
}

.home-collections-title {
  padding-bottom: 10px;
}
.home-collections-title h2 {
  padding-bottom: 6px;
}
.collection-cards-title {
  min-height: 34px;
  margin-bottom: 28px;
}
.collection-card-search {
  margin-top: 0;
}
.to-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239,68,68,.94), rgba(220,38,38,.94));
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(239,68,68,.28), var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.96);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  z-index: 120;
}
.to-top-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}
.to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.to-top-btn:hover {
  background: linear-gradient(135deg, #f87171, var(--accent));
  color: #fff;
  border-color: rgba(255,255,255,.34);
  transform: translateY(-2px) scale(1.03);
}
.profile-section-heading {
  text-align: left !important;
  width: 100%;
}
@media (min-width: 761px) {
  .filter-bar {
    justify-content: flex-start;
  }
  .set-era-title {
    text-align: left;
  }
}
@media (max-width: 760px) {
  .to-top-btn {
    right: 16px;
    bottom: calc(var(--bottom-h, 0px) + 16px);
    width: 42px;
    height: 42px;
    }
}

@media (min-width: 769px) {
  .header-nav {
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin-left: 24px !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
  }

  .header-actions {
    margin-left: 0 !important;
  }
}

.app-header {
  z-index: 100;
}
.header-inner {
  padding: 0 20px;
  gap: 28px;
}
.logo-btn {
  gap: 10px;
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}
.logo-img {
  height: 56px;
}
.header-nav {
  position: static !important;
  left: auto !important;
  transform: none !important;
  margin-left: 8px;
  margin-right: auto;
  gap: 6px;
}
.header-actions {
  margin-left: auto;
  height: 38px;
  gap: 8px;
}
.header-actions > * {
  flex-shrink: 0;
}
.lang-toggle-sm {
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
}
.to-top-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 760px) {
  .header-inner {
    gap: 10px;
  }
}
@media (min-width: 769px) {
  .header-nav {
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin-left: 8px !important;
    margin-right: auto !important;
  }
  .header-actions {
    margin-left: auto !important;
  }
}


.legal-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.legal-links a {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease;
}
.legal-links a:hover {
  color: var(--accent);
}

.cookie-banner-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--cookie-backdrop-height, 220px);
  z-index: 299;
  pointer-events: none;
  background: linear-gradient(to top, rgba(15, 23, 42, .22), rgba(15, 23, 42, .14) 54%, rgba(15, 23, 42, 0));
}
[data-theme="dark"] .cookie-banner-backdrop {
  background: linear-gradient(to top, rgba(0, 0, 0, .42), rgba(0, 0, 0, .24) 54%, rgba(0, 0, 0, 0));
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: var(--cookie-visual-bottom, calc(16px + env(safe-area-inset-bottom)));
  transform: translateX(-50%) translateY(18px);
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  z-index: 300;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .22), var(--shadow-md);
  border-radius: 24px;
  padding: 18px;
  display: none;
  gap: 16px;
  align-items: center;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.cookie-banner.visible {
  display: flex;
  animation: cookie-in .22s ease forwards;
}
.cookie-banner-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 12px 28px rgba(239, 68, 68, .24);
}
.cookie-banner-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cookie-banner-content {
  min-width: 0;
  flex: 1;
}
.cookie-banner-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.cookie-banner-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
}
.cookie-banner-text a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  align-items: center;
}
.cookie-banner-actions button,
.cookie-banner-actions a {
  height: 38px;
  border-radius: 12px;
  padding: 0 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-reject {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.cookie-accept {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 20px rgba(239, 68, 68, .24);
}
.legal-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}
.legal-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.legal-hero {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--bg-2) 90%, transparent));
  border-radius: 32px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.legal-hero:after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -120px;
  background: radial-gradient(circle, rgba(239, 68, 68, .22), transparent 68%);
  pointer-events: none;
}
.legal-kicker {
  display: inline-flex;
  height: 32px;
  padding: 0 12px;
  align-items: center;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}
.legal-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 900;
}
.legal-hero p {
  margin: 0;
  max-width: 680px;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 16px;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 4vw, 34px);
  margin-bottom: 18px;
}
.legal-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -.02em;
}
.legal-card h3 {
  margin: 20px 0 10px;
  font-size: 17px;
}
.legal-card p,
.legal-card li {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 15px;
}
.legal-card p {
  margin: 0 0 12px;
}
.legal-card ul {
  margin: 0 0 14px 18px;
  padding: 0;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  margin: 16px 0;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  padding: 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--text-soft);
}
.legal-table th {
  color: var(--text);
  background: var(--bg-2);
  font-weight: 800;
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (max-width: 760px) {
  
.cookie-banner-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--cookie-backdrop-height, 220px);
  z-index: 299;
  pointer-events: none;
  background: linear-gradient(to top, rgba(15, 23, 42, .22), rgba(15, 23, 42, .14) 54%, rgba(15, 23, 42, 0));
}
[data-theme="dark"] .cookie-banner-backdrop {
  background: linear-gradient(to top, rgba(0, 0, 0, .42), rgba(0, 0, 0, .24) 54%, rgba(0, 0, 0, 0));
}

.cookie-banner {
    align-items: flex-start;
    flex-direction: column;
    bottom: var(--cookie-visual-bottom, calc(16px + env(safe-area-inset-bottom)));
    border-radius: 22px;
  }
  .cookie-banner-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .cookie-banner-actions button,
  .cookie-banner-actions a {
    flex: 1;
  }
  .legal-links {
    justify-content: flex-start;
  }
  .legal-main {
    padding: 34px 16px 56px;
  }
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }
}


@media (max-width: 760px) {
  :root {
    --bottom-h: 92px;
  }

  .bottom-nav {
    left: 14px !important;
    right: 14px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    height: 70px !important;
    padding: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.08)),
      rgba(255, 255, 255, 0.18) !important;
    box-shadow:
      0 22px 60px rgba(0, 0, 0, 0.28),
      0 8px 26px rgba(0, 0, 0, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      inset 0 -1px 0 rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(34px) saturate(210%) contrast(108%) !important;
    -webkit-backdrop-filter: blur(34px) saturate(210%) contrast(108%) !important;
    transform: translateZ(0) !important;
  }

  [data-theme="dark"] .bottom-nav {
    border-color: rgba(255, 255, 255, 0.16) !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.04)),
      rgba(12, 18, 30, 0.55) !important;
    box-shadow:
      0 24px 70px rgba(0, 0, 0, 0.48),
      0 10px 30px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      inset 0 -1px 0 rgba(255, 255, 255, 0.06) !important;
  }

  .bottom-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.62), transparent 34%),
      radial-gradient(circle at 82% 100%, rgba(255, 255, 255, 0.28), transparent 36%),
      linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.20) 48%, transparent 58%);
    opacity: 0.88;
    mix-blend-mode: screen;
  }

  [data-theme="dark"] .bottom-nav::before {
    opacity: 0.34;
  }

  .bottom-nav::after {
    content: "";
    position: absolute;
    inset: 1px;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
      inset 10px 0 22px rgba(255, 255, 255, 0.10),
      inset -10px 0 22px rgba(255, 255, 255, 0.06),
      inset 0 0 1px rgba(255, 255, 255, 0.72);
  }

  .bottom-nav .bn-btn {
    position: relative !important;
    z-index: 1 !important;
    height: 56px !important;
    min-width: 0 !important;
    border-radius: 999px !important;
    gap: 3px !important;
    color: color-mix(in srgb, var(--text) 64%, transparent) !important;
    background: transparent !important;
    border: 0 !important;
    transition:
      color 0.22s ease,
      background 0.22s ease,
      transform 0.22s ease,
      box-shadow 0.22s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .bottom-nav .bn-btn svg {
    width: 22px !important;
    height: 22px !important;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.20)) !important;
    transition: transform 0.22s ease, filter 0.22s ease !important;
  }

  .bottom-nav .bn-btn span {
    max-width: 100% !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .bottom-nav .bn-btn.active {
    color: #fff !important;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.12)),
      linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #fff 8%), color-mix(in srgb, var(--accent-2, var(--accent)) 82%, #000 18%)) !important;
    box-shadow:
      0 10px 26px color-mix(in srgb, var(--accent) 34%, transparent),
      0 3px 10px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.48),
      inset 0 -1px 0 rgba(0, 0, 0, 0.10) !important;
    transform: translateY(-1px) scale(1.02) !important;
  }

  .bottom-nav .bn-btn.active svg {
    transform: translateY(-1px) scale(1.06) !important;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.20)) !important;
  }

  .bottom-nav .bn-btn:active {
    transform: scale(0.96) !important;
  }

  .app {
    padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)) !important;
  }

  .to-top-btn {
    bottom: calc(var(--bottom-h) + 18px + env(safe-area-inset-bottom)) !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (max-width: 760px) {
    .bottom-nav {
      background: color-mix(in srgb, var(--bg-2) 92%, transparent) !important;
    }
  }
}

.legal-page .landing-logo .theme-logo-light,
.legal-page .footer-logo.theme-logo-light {
  display: block !important;
}
.legal-page .landing-logo .theme-logo-dark,
.legal-page .footer-logo.theme-logo-dark {
  display: none !important;
}
[data-theme="dark"] .legal-page .landing-logo .theme-logo-light,
[data-theme="dark"] .legal-page .footer-logo.theme-logo-light {
  display: none !important;
}
[data-theme="dark"] .legal-page .landing-logo .theme-logo-dark,
[data-theme="dark"] .legal-page .footer-logo.theme-logo-dark {
  display: block !important;
}
.legal-page .landing-logo img,
.legal-page .footer-logo {
  flex: 0 0 auto;
}
.legal-page .legal-links,
.profile-legal-links {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}
.legal-page .legal-links {
  justify-content: flex-end;
}
.profile-legal-links {
  justify-content: center;
}
@media (max-width: 760px) {
  .legal-page .landing-nav {
    display: none;
  }
  .legal-page .landing-logo span {
    display: inline-block !important;
    font-size: 15px;
    font-weight: 900;
  }
  .legal-page .landing-logo img {
    height: 46px;
  }
  .legal-page .landing-actions .btn-primary,
  .legal-page .landing-actions .btn-ghost {
    display: none;
  }
  .legal-page.is-logged-in .landing-actions .btn-primary {
    display: inline-flex;
    padding-left: 12px !important;
    padding-right: 12px !important;
    white-space: nowrap;
  }
  .legal-page .footer-brand-main {
    justify-content: center;
  }
  .legal-page .landing-footer-inner,
  .legal-page .footer-meta {
    align-items: center;
    text-align: center;
  }
  .legal-page .legal-links {
    justify-content: center;
    gap: 12px;
    width: 100%;
  }
  .legal-page .legal-links a,
  .profile-legal-links a {
    white-space: nowrap;
    font-size: 12px;
  }
}


html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 760px) {
  html,
  body {
    min-width: 0;
    overscroll-behavior-x: none;
  }

  .app-main {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding-left: max(14px, env(safe-area-inset-left)) !important;
    padding-right: max(14px, env(safe-area-inset-right)) !important;
  }

  .bottom-nav {
    left: max(14px, env(safe-area-inset-left)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: calc(10px + env(safe-area-inset-bottom) + var(--pt-visual-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    will-change: bottom, transform !important;
  }

  .app {
    padding-bottom: calc(var(--bottom-h) + 28px + env(safe-area-inset-bottom) + var(--pt-visual-bottom, 0px)) !important;
  }

  .to-top-btn {
    bottom: calc(var(--bottom-h) + 24px + env(safe-area-inset-bottom) + var(--pt-visual-bottom, 0px)) !important;
  }

  .auth-screen {
    position: fixed;
    inset: 0;
    min-height: 100dvh;
    height: 100dvh;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(18px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .auth-card {
    margin: 0 auto;
    padding: 28px 20px 22px;
    max-width: 420px;
  }

  .auth-logo {
    margin-bottom: 18px;
  }

  .auth-logo-img-wrap {
    margin-bottom: 8px;
  }

  .auth-logo-img {
    width: 168px !important;
    max-width: 58vw !important;
  }

  .auth-wordmark {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .auth-tabs {
    margin-bottom: 18px;
  }
}

@media (max-width: 380px) {
  .auth-logo-img {
    width: 146px !important;
    max-width: 54vw !important;
  }

  .auth-card {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.cookie-banner {
  overflow: visible !important;
}

@media (max-width: 760px) {
  .cookie-banner {
    width: min(720px, calc(100dvw - 32px)) !important;
    max-height: calc(var(--pt-dvh, 100dvh) - 32px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .cookie-banner-backdrop {
    bottom: 0 !important;
    height: var(--cookie-backdrop-height, 220px) !important;
  }

  .app-main {
    width: calc(100dvw - max(28px, calc(env(safe-area-inset-left) + env(safe-area-inset-right) + 28px))) !important;
    max-width: calc(100dvw - max(28px, calc(env(safe-area-inset-left) + env(safe-area-inset-right) + 28px))) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .landing-header-inner,
  .hero,
  .section,
  .legal-main,
  .landing-footer-inner {
    width: calc(100dvw - max(32px, calc(env(safe-area-inset-left) + env(safe-area-inset-right) + 32px))) !important;
    max-width: calc(100dvw - max(32px, calc(env(safe-area-inset-left) + env(safe-area-inset-right) + 32px))) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero {
    padding-top: 52px !important;
    padding-bottom: 64px !important;
  }

  .section,
  .legal-main {
    padding-top: 52px !important;
    padding-bottom: 56px !important;
  }

  .bottom-nav {
    left: max(14px, env(safe-area-inset-left)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: calc(12px + env(safe-area-inset-bottom) + var(--pt-visual-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
  }

  .to-top-btn {
    bottom: calc(var(--bottom-h) + 28px + env(safe-area-inset-bottom) + var(--pt-visual-bottom, 0px)) !important;
  }

  .auth-screen {
    position: fixed !important;
    inset: 0 !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    padding: calc(16px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .auth-card {
    margin: 0 auto !important;
    max-width: 420px !important;
  }

  .auth-logo-img {
    width: 96px !important;
    max-width: 34vw !important;
  }

  .auth-wordmark {
    font-size: 24px !important;
  }
}

@media (max-width: 380px) {
  .auth-logo-img {
    width: 86px !important;
    max-width: 32vw !important;
  }
}

.auth-screen.auth-hidden,
body.is-authenticated #auth-screen {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 760px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .app-main {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .bottom-nav {
    position: fixed !important;
    left: max(12px, env(safe-area-inset-left)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    transform: translate3d(0, 0, 0) !important;
  }

  .app {
    padding-bottom: calc(var(--bottom-h) + 28px + env(safe-area-inset-bottom)) !important;
  }

  .to-top-btn {
    bottom: calc(var(--bottom-h) + 28px + env(safe-area-inset-bottom)) !important;
  }

  .auth-screen {
    display: grid !important;
    align-items: start !important;
    justify-items: center !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 100svh !important;
    height: 100svh !important;
    padding: calc(16px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .auth-card {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    padding: 26px 20px 22px !important;
  }

  .auth-logo-img {
    width: 82px !important;
    max-width: 28vw !important;
  }

  .auth-wordmark {
    font-size: 24px !important;
  }

  .cookie-banner {
    left: 50% !important;
    right: auto !important;
    width: calc(100% - 32px) !important;
    max-width: 720px !important;
    bottom: var(--cookie-visual-bottom, calc(16px + env(safe-area-inset-bottom))) !important;
    transform: translateX(-50%) translateZ(0) !important;
  }

  .cookie-banner-backdrop {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 380px) {
  .auth-logo-img {
    width: 74px !important;
    max-width: 26vw !important;
  }
}

@media (min-width: 761px) {
  html,
  body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
  }

  body:not(.modal-open) {
    position: static !important;
    top: auto !important;
  }

  .cookie-banner {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (min-width: 761px) {
  .profile-legal-links {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .profile-legal-links {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 16px !important;
  }
}

.profile-avatar {
  width: 136px !important;
  height: 136px !important;
}

.profile-avatar-wrap {
  width: 200px !important;
}

.profile-edit-avatar {
  bottom: calc(50% - 68px - 4px) !important;
  right: calc(50% - 68px - 4px) !important;
  width: 38px !important;
  height: 38px !important;
}

.profile-edit-avatar svg {
  width: 18px !important;
  height: 18px !important;
}

.share-avatar-btn {
  bottom: calc(50% - 68px - 4px) !important;
  left: calc(50% - 68px - 4px) !important;
}

@media (max-width: 768px) {
  .profile-avatar-wrap {
    width: 136px !important;
    height: 136px !important;
    padding: 18px !important;
  }

  .profile-avatar {
    width: 124px !important;
    height: 124px !important;
  }

  .profile-avatar-wrap .profile-edit-avatar,
  .profile-avatar-wrap .profile-edit-avatar:hover,
  .profile-avatar-wrap .profile-edit-avatar:focus,
  .profile-avatar-wrap .profile-edit-avatar:focus-visible,
  .profile-avatar-wrap .profile-edit-avatar:active {
    bottom: calc(50% - 62px - 4px) !important;
    right: calc(50% - 62px - 4px) !important;
    width: 38px !important;
    height: 38px !important;
  }

  .share-avatar-btn {
    bottom: calc(50% - 62px - 4px) !important;
    left: calc(50% - 62px - 4px) !important;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .app-main {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: max(14px, env(safe-area-inset-left)) !important;
    padding-right: max(14px, env(safe-area-inset-right)) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .bottom-nav {
    left: max(12px, env(safe-area-inset-left)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(10px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    transform: translate3d(0, 0, 0) !important;
  }

  .to-top-btn {
    bottom: calc(var(--bottom-h) + 24px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  .cookie-banner {
    left: 50% !important;
    right: auto !important;
    width: calc(100% - 32px) !important;
    max-width: 720px !important;
    max-height: calc(var(--pt-dvh, 100svh) - 28px) !important;
    bottom: calc(var(--cookie-bottom-gap, 14px) + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
    transform: translateX(-50%) translateZ(0) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .cookie-banner-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100svh !important;
    background: linear-gradient(to top, rgba(15, 23, 42, .28), rgba(15, 23, 42, .18) 28%, rgba(15, 23, 42, .08) 55%, rgba(15, 23, 42, 0)) !important;
  }

  [data-theme="dark"] .cookie-banner-backdrop {
    background: linear-gradient(to top, rgba(0, 0, 0, .52), rgba(0, 0, 0, .34) 28%, rgba(0, 0, 0, .14) 55%, rgba(0, 0, 0, 0)) !important;
  }

  .auth-screen {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 100svh !important;
    height: 100svh !important;
    padding: calc(16px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .auth-card {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
  }

  .auth-logo-img {
    width: 74px !important;
    max-width: 26vw !important;
  }

  .profile-avatar-wrap {
    width: 100% !important;
    height: auto !important;
    padding: 28px 24px !important;
  }

  .profile-avatar {
    width: 110px !important;
    height: 110px !important;
  }

  .profile-avatar-wrap .profile-edit-avatar,
  .profile-avatar-wrap .profile-edit-avatar:hover,
  .profile-avatar-wrap .profile-edit-avatar:focus,
  .profile-avatar-wrap .profile-edit-avatar:focus-visible,
  .profile-avatar-wrap .profile-edit-avatar:active {
    bottom: calc(50% - 55px - 4px) !important;
    right: calc(50% - 55px - 4px) !important;
    width: 38px !important;
    height: 38px !important;
  }

  .share-avatar-btn {
    bottom: calc(50% - 55px - 4px) !important;
    left: calc(50% - 55px - 4px) !important;
  }
}

.auth-screen.auth-hidden,
body.is-authenticated #auth-screen,
body.is-authenticated .auth-screen {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

@media (min-width: 761px) {
  .profile-avatar {
    width: 136px !important;
    height: 136px !important;
  }

  .profile-avatar-wrap {
    width: 200px !important;
  }
}

@media (max-width: 768px) {
  .bottom-nav {
    bottom: calc(4px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }
}

@media (max-width: 768px) {
  html.pt-browser-ui-hidden .bottom-nav {
    bottom: 0 !important;
  }

  html.pt-browser-ui-hidden .to-top-btn {
    bottom: calc(var(--bottom-h) + 18px) !important;
  }

  html.pt-browser-ui-hidden .app {
    padding-bottom: calc(var(--bottom-h) + 18px) !important;
  }
}

@media (max-width: 768px) {
  html.pt-browser-ui-hidden .bottom-nav {
    bottom: 10px !important;
  }

  html.pt-browser-ui-hidden .to-top-btn {
    bottom: calc(var(--bottom-h) + 28px) !important;
  }

  html.pt-browser-ui-hidden .app {
    padding-bottom: calc(var(--bottom-h) + 28px) !important;
  }

  .cookie-banner-backdrop {
    inset: 0 !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    background: linear-gradient(to top, rgba(15, 23, 42, .34) 0%, rgba(15, 23, 42, .28) 18%, rgba(15, 23, 42, .18) 42%, rgba(15, 23, 42, .08) 68%, rgba(15, 23, 42, 0) 100%) !important;
  }

  [data-theme="dark"] .cookie-banner-backdrop {
    background: linear-gradient(to top, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .44) 18%, rgba(0, 0, 0, .28) 42%, rgba(0, 0, 0, .12) 68%, rgba(0, 0, 0, 0) 100%) !important;
  }
}


@media (max-width: 768px) {
  html.pt-browser-ui-hidden .bottom-nav {
    bottom: 16px !important;
  }

  html.pt-browser-ui-hidden .to-top-btn {
    bottom: calc(var(--bottom-h) + 34px) !important;
  }

  html.pt-browser-ui-hidden .app {
    padding-bottom: calc(var(--bottom-h) + 34px) !important;
  }

  .cookie-banner {
    bottom: calc(var(--cookie-bottom-gap, 22px) + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  .cookie-banner-backdrop {
    position: fixed !important;
    inset: -2px 0 -180px 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: calc(100vh + 180px) !important;
    min-height: calc(100svh + 180px) !important;
    min-height: calc(var(--pt-dvh, 100svh) + var(--pt-browser-bottom, 0px) + 180px) !important;
    background: linear-gradient(to top, rgba(15, 23, 42, .38) 0%, rgba(15, 23, 42, .34) 22%, rgba(15, 23, 42, .24) 48%, rgba(15, 23, 42, .10) 76%, rgba(15, 23, 42, 0) 100%) !important;
  }

  [data-theme="dark"] .cookie-banner-backdrop {
    background: linear-gradient(to top, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .52) 22%, rgba(0, 0, 0, .34) 48%, rgba(0, 0, 0, .14) 76%, rgba(0, 0, 0, 0) 100%) !important;
  }
}

@media (max-width: 760px) {
  .cookie-banner {
    bottom: calc(var(--cookie-bottom-gap, 8px) + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .22), 0 420px 0 420px rgba(15, 23, 42, .30), var(--shadow-md) !important;
  }

  html.pt-browser-ui-hidden .cookie-banner {
    bottom: var(--cookie-bottom-gap-hidden, 8px) !important;
  }

  html.pt-cookie-has-bottom-nav .cookie-banner {
    bottom: calc(var(--cookie-bottom-gap, 104px) + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-cookie-has-bottom-nav.pt-browser-ui-hidden .cookie-banner {
    bottom: var(--cookie-bottom-gap-hidden, 104px) !important;
  }

  [data-theme="dark"] .cookie-banner {
    box-shadow: 0 22px 60px rgba(0, 0, 0, .35), 0 420px 0 420px rgba(0, 0, 0, .46), var(--shadow-md) !important;
  }

  .cookie-banner-backdrop {
    inset: 0 0 -420px 0 !important;
    min-height: calc(var(--pt-dvh, 100svh) + 420px) !important;
    background: linear-gradient(to top, rgba(15, 23, 42, .34) 0%, rgba(15, 23, 42, .28) 30%, rgba(15, 23, 42, .16) 62%, rgba(15, 23, 42, 0) 100%) !important;
  }

  [data-theme="dark"] .cookie-banner-backdrop {
    background: linear-gradient(to top, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .44) 30%, rgba(0, 0, 0, .22) 62%, rgba(0, 0, 0, 0) 100%) !important;
  }

  .profile-hero {
    gap: 0 !important;
    margin-bottom: 14px !important;
  }

  .profile-avatar-wrap {
    border-bottom: 0 !important;
    padding: 18px 24px 8px !important;
  }

  .profile-hero > div:not(.profile-avatar-wrap),
  .profile-hero-info {
    padding-top: 8px !important;
  }
}

@media (max-width: 760px) {
  .cookie-banner-backdrop {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    background: rgba(15, 23, 42, .30) !important;
    z-index: 299 !important;
    pointer-events: none !important;
  }

  [data-theme="dark"] .cookie-banner-backdrop {
    background: rgba(0, 0, 0, .50) !important;
  }

  .cookie-banner {
    box-shadow: 0 22px 60px rgba(15, 23, 42, .22), var(--shadow-md) !important;
  }

  [data-theme="dark"] .cookie-banner {
    box-shadow: 0 22px 60px rgba(0, 0, 0, .35), var(--shadow-md) !important;
  }

  .profile-hero {
    gap: 0 !important;
    margin-bottom: 12px !important;
  }

  .profile-avatar-wrap {
    border-bottom: 0 !important;
    padding-bottom: 4px !important;
  }

  .profile-hero > div:not(.profile-avatar-wrap),
  .profile-hero-info {
    padding-top: 4px !important;
  }
}

.cookie-banner-backdrop {
  position: fixed !important;
  top: -100vh !important;
  right: 0 !important;
  bottom: -100vh !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 300vh !important;
  z-index: 2147483000 !important;
  pointer-events: none !important;
  background: rgba(15, 23, 42, .32) !important;
}

[data-theme="dark"] .cookie-banner-backdrop {
  background: rgba(0, 0, 0, .52) !important;
}

.cookie-banner {
  z-index: 2147483001 !important;
}

@media (max-width: 760px) {
  .cookie-banner-backdrop {
    top: -100vh !important;
    bottom: -100vh !important;
    min-height: 300vh !important;
    background: rgba(15, 23, 42, .34) !important;
  }

  [data-theme="dark"] .cookie-banner-backdrop {
    background: rgba(0, 0, 0, .54) !important;
  }

  .cookie-banner {
    box-shadow: 0 22px 60px rgba(15, 23, 42, .24), var(--shadow-md) !important;
  }

  [data-theme="dark"] .cookie-banner {
    box-shadow: 0 22px 60px rgba(0, 0, 0, .38), var(--shadow-md) !important;
  }
}

html.cookie-consent-active::before,
body.cookie-consent-active::before {
  display: none !important;
  background: none !important;
}

[data-theme="dark"].cookie-consent-active::before,
[data-theme="dark"] body.cookie-consent-active::before {
  display: none !important;
  background: none !important;
}

.cookie-banner-backdrop {
  display: none !important;
  background: none !important;
}

[data-theme="dark"] .cookie-banner-backdrop {
  display: none !important;
  background: none !important;
}

.cookie-banner {
  z-index: 2147483001 !important;
}

@media (max-width: 760px) {
  html.cookie-consent-active::before,
  body.cookie-consent-active::before,
  .cookie-banner-backdrop {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100svh !important;
    height: 100dvh !important;
    min-height: -webkit-fill-available !important;
    background: rgba(15, 23, 42, .38) !important;
  }

  [data-theme="dark"].cookie-consent-active::before,
  [data-theme="dark"] body.cookie-consent-active::before,
  [data-theme="dark"] .cookie-banner-backdrop {
    background: rgba(0, 0, 0, .58) !important;
  }

  .cookie-banner {
    left: 50% !important;
    width: calc(100% - 32px) !important;
    max-width: 720px !important;
    bottom: calc(var(--cookie-bottom-gap, 8px) + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .24), var(--shadow-md) !important;
  }

  html.pt-browser-ui-hidden .cookie-banner {
    bottom: var(--cookie-bottom-gap-hidden, 8px) !important;
  }

  html.pt-cookie-has-bottom-nav .cookie-banner {
    bottom: calc(var(--cookie-bottom-gap, 104px) + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-cookie-has-bottom-nav.pt-browser-ui-hidden .cookie-banner {
    bottom: var(--cookie-bottom-gap-hidden, 104px) !important;
  }
}

html.cookie-consent-active::before,
body.cookie-consent-active::before,
.cookie-banner-backdrop {
  position: fixed !important;
  left: -100px !important;
  right: -100px !important;
  top: -1000px !important;
  bottom: -1000px !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: rgba(15, 23, 42, .38) !important;
  z-index: 2147483000 !important;
  pointer-events: none !important;
}

[data-theme="dark"].cookie-consent-active::before,
[data-theme="dark"] body.cookie-consent-active::before,
[data-theme="dark"] .cookie-banner-backdrop {
  background: rgba(0, 0, 0, .58) !important;
}

.cookie-banner {
  z-index: 2147483001 !important;
}

@media (max-width: 760px) {
  html.cookie-consent-active::before,
  body.cookie-consent-active::before,
  .cookie-banner-backdrop {
    left: -100px !important;
    right: -100px !important;
    top: -1000px !important;
    bottom: -1000px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    background: rgba(15, 23, 42, .40) !important;
  }

  [data-theme="dark"].cookie-consent-active::before,
  [data-theme="dark"] body.cookie-consent-active::before,
  [data-theme="dark"] .cookie-banner-backdrop {
    background: rgba(0, 0, 0, .60) !important;
  }
}

.cookie-page-dim {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  background: rgba(15, 23, 42, .42) !important;
  z-index: 2147482998 !important;
  pointer-events: none !important;
}

[data-theme="dark"] .cookie-page-dim {
  background: rgba(0, 0, 0, .62) !important;
}

.cookie-banner-backdrop,
html.cookie-consent-active::before,
body.cookie-consent-active::before {
  display: none !important;
}

.cookie-banner {
  z-index: 2147483001 !important;
}

@media (max-width: 760px) {
  html,
  body {
    background: var(--bg) !important;
  }

  .auth-screen {
    min-height: 100vh !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    background: var(--bg) !important;
  }

  .auth-bg {
    min-height: 100vh !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    background: var(--bg) !important;
  }

  .cookie-page-dim {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  .cookie-banner {
    bottom: calc(var(--cookie-bottom-gap, 8px) + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-browser-ui-hidden .cookie-banner {
    bottom: 8px !important;
  }

  html.pt-cookie-has-bottom-nav .cookie-banner {
    bottom: calc(104px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-cookie-has-bottom-nav.pt-browser-ui-hidden .cookie-banner {
    bottom: 104px !important;
  }

  .bottom-nav {
    bottom: calc(6px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-browser-ui-hidden .bottom-nav {
    bottom: 6px !important;
  }

  .to-top-btn {
    bottom: calc(var(--bottom-h) + 4px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-browser-ui-hidden .to-top-btn {
    bottom: calc(var(--bottom-h) + 8px) !important;
  }
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-form .password-field input {
  width: 100%;
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .18s ease;
}

.password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle:hover,
.password-toggle.is-visible {
  background: rgba(239,68,68,.12);
  color: var(--primary);
}

[data-theme="dark"] .password-toggle {
  background: rgba(255,255,255,.08);
}

.cookie-page-dim {
  position: fixed !important;
  inset: -120vh 0 -120vh 0 !important;
  width: 100vw !important;
  min-width: 100vw !important;
  height: auto !important;
  min-height: 300vh !important;
  background: rgba(15, 23, 42, .42) !important;
  z-index: 2147482998 !important;
  pointer-events: none !important;
}

[data-theme="dark"] .cookie-page-dim {
  background: rgba(0, 0, 0, .62) !important;
}

.cookie-banner {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme="dark"] .cookie-banner {
  background: #111827 !important;
}

@media (max-width: 760px) {
  .cookie-page-dim {
    position: fixed !important;
    inset: -140vh 0 -140vh 0 !important;
    height: auto !important;
    min-height: 360vh !important;
  }

  .auth-screen,
  .auth-bg {
    background: var(--bg) !important;
  }

  .auth-screen::before {
    content: '';
    position: fixed;
    inset: -80vh 0 -80vh 0;
    background: var(--bg);
    z-index: -1;
  }

  .to-top-btn {
    bottom: calc(86px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-browser-ui-hidden .to-top-btn {
    bottom: 86px !important;
  }
}

.cookie-page-dim {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  background: rgba(15, 23, 42, .38) !important;
  z-index: 2147482998 !important;
  pointer-events: none !important;
}

[data-theme="dark"] .cookie-page-dim {
  background: rgba(0, 0, 0, .58) !important;
}

.cookie-banner {
  background: var(--bg-2) !important;
  z-index: 2147483001 !important;
  overflow: visible !important;
  isolation: isolate !important;
}

.cookie-banner::before {
  content: "" !important;
  position: absolute !important;
  left: -120vw !important;
  right: -120vw !important;
  top: 100% !important;
  height: 140vh !important;
  background: rgba(15, 23, 42, .38) !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

[data-theme="dark"] .cookie-banner::before {
  background: rgba(0, 0, 0, .58) !important;
}

@media (max-width: 760px) {
  .cookie-page-dim {
    position: fixed !important;
    inset: -120vh -80px !important;
    background: rgba(15, 23, 42, .38) !important;
  }

  [data-theme="dark"] .cookie-page-dim {
    background: rgba(0, 0, 0, .58) !important;
  }

  .cookie-banner {
    bottom: calc(var(--cookie-bottom-gap, 8px) + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
    background: var(--bg-2) !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .24), var(--shadow-md) !important;
  }

  html.pt-browser-ui-hidden .cookie-banner {
    bottom: var(--cookie-bottom-gap-hidden, 8px) !important;
  }

  html.pt-cookie-has-bottom-nav .cookie-banner {
    bottom: calc(var(--cookie-bottom-gap, 104px) + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-cookie-has-bottom-nav.pt-browser-ui-hidden .cookie-banner {
    bottom: var(--cookie-bottom-gap-hidden, 104px) !important;
  }

  .cookie-banner::before {
    height: 160vh !important;
    background: rgba(15, 23, 42, .38) !important;
  }

  [data-theme="dark"] .cookie-banner::before {
    background: rgba(0, 0, 0, .58) !important;
  }
}

@media (max-width: 760px) {
  .auth-screen,
  .auth-bg {
    background:
      radial-gradient(at 0% 0%, rgba(239,68,68,0.07) 0%, transparent 40%),
      radial-gradient(at 100% 0%, rgba(59,130,246,0.07) 0%, transparent 40%),
      radial-gradient(at 100% 100%, rgba(168,85,247,0.05) 0%, transparent 40%),
      var(--bg) !important;
  }

  .auth-bg {
    position: fixed !important;
    inset: -120vh 0 -120vh 0 !important;
  }

  .auth-screen::before {
    content: '' !important;
    position: fixed !important;
    inset: -120vh 0 -120vh 0 !important;
    background:
      radial-gradient(at 0% 0%, rgba(239,68,68,0.07) 0%, transparent 40%),
      radial-gradient(at 100% 0%, rgba(59,130,246,0.07) 0%, transparent 40%),
      radial-gradient(at 100% 100%, rgba(168,85,247,0.05) 0%, transparent 40%),
      var(--bg) !important;
    z-index: -1 !important;
  }
}

@media (max-width: 760px) {
  .bottom-nav {
    bottom: calc(18px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-browser-ui-hidden .bottom-nav,
  html.pt-cookie-scroll-active .bottom-nav {
    bottom: 18px !important;
  }

  .to-top-btn {
    bottom: calc(var(--bottom-h) + 30px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-browser-ui-hidden .to-top-btn,
  html.pt-cookie-scroll-active .to-top-btn {
    bottom: calc(var(--bottom-h) + 42px) !important;
  }

  .cookie-banner {
    bottom: calc(8px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-browser-ui-hidden .cookie-banner,
  html.pt-cookie-scroll-active .cookie-banner {
    bottom: 8px !important;
  }

  html.pt-cookie-has-bottom-nav .cookie-banner {
    bottom: calc(112px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-cookie-has-bottom-nav.pt-browser-ui-hidden .cookie-banner,
  html.pt-cookie-has-bottom-nav.pt-cookie-scroll-active .cookie-banner {
    bottom: 112px !important;
  }
}

.cookie-page-dim {
  position: fixed !important;
  top: -200vh !important;
  right: -200vw !important;
  bottom: -200vh !important;
  left: -200vw !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: rgba(15, 23, 42, .38) !important;
  z-index: 2147482998 !important;
  pointer-events: none !important;
  transform: translateZ(0) !important;
}

[data-theme="dark"] .cookie-page-dim {
  background: rgba(0, 0, 0, .58) !important;
}

html.cookie-consent-active,
body.cookie-consent-active {
  background-color: rgba(15, 23, 42, .38) !important;
}

[data-theme="dark"].cookie-consent-active,
[data-theme="dark"] body.cookie-consent-active {
  background-color: rgba(0, 0, 0, .58) !important;
}

.cookie-banner {
  position: fixed !important;
  top: auto !important;
  left: 50% !important;
  right: auto !important;
  bottom: 14px !important;
  transform: translateX(-50%) !important;
  z-index: 2147483001 !important;
  background: var(--bg-2) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .24), var(--shadow-md) !important;
  overflow: visible !important;
}

.cookie-banner::before {
  display: none !important;
}

@media (max-width: 760px) {
  .cookie-page-dim {
    position: fixed !important;
    top: -220vh !important;
    right: -220vw !important;
    bottom: -220vh !important;
    left: -220vw !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .cookie-banner {
    position: fixed !important;
    top: auto !important;
    left: max(12px, env(safe-area-inset-left)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(var(--cookie-bottom-gap, 8px) + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    transform: translateZ(0) !important;
  }

  html.pt-browser-ui-hidden .cookie-banner {
    bottom: var(--cookie-bottom-gap, 8px) !important;
  }

  html.pt-cookie-has-bottom-nav .cookie-banner {
    bottom: calc(var(--cookie-bottom-gap, 112px) + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-cookie-has-bottom-nav.pt-browser-ui-hidden .cookie-banner {
    bottom: var(--cookie-bottom-gap, 112px) !important;
  }
}


.cookie-page-dim {
  position: fixed !important;
  left: -100vw !important;
  right: -100vw !important;
  top: -100vh !important;
  bottom: -100vh !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: rgba(15, 23, 42, .40) !important;
  z-index: 2147482999 !important;
  pointer-events: none !important;
}

[data-theme="dark"] .cookie-page-dim {
  background: rgba(0, 0, 0, .60) !important;
}

.cookie-banner-backdrop,
html.cookie-consent-active::before,
body.cookie-consent-active::before {
  display: none !important;
}

.cookie-banner {
  z-index: 2147483001 !important;
}

@media (max-width: 760px) {
  .cookie-page-dim {
    position: fixed !important;
    left: -100vw !important;
    right: -100vw !important;
    top: -100vh !important;
    bottom: -100vh !important;
    width: auto !important;
    height: auto !important;
    background: rgba(15, 23, 42, .40) !important;
  }

  [data-theme="dark"] .cookie-page-dim {
    background: rgba(0, 0, 0, .60) !important;
  }

  .cookie-banner {
    left: 50% !important;
    width: calc(100% - 32px) !important;
    max-width: 720px !important;
    bottom: calc(var(--cookie-bottom-offset, 8px) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-cookie-ui-hidden .cookie-banner {
    bottom: var(--cookie-bottom-offset, 8px) !important;
  }
}


.cookie-banner-backdrop,
html.cookie-consent-active::before,
body.cookie-consent-active::before {
  display: none !important;
}

.cookie-page-dim {
  position: fixed !important;
  inset: -240vh -240vw !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: rgba(15, 23, 42, .40) !important;
  z-index: 2147482998 !important;
  pointer-events: none !important;
  transform: translateZ(0) !important;
}

[data-theme="dark"] .cookie-page-dim {
  background: rgba(0, 0, 0, .60) !important;
}

.cookie-banner {
  position: fixed !important;
  top: auto !important;
  left: 50% !important;
  right: auto !important;
  bottom: 14px !important;
  transform: translate3d(-50%, 0, 0) !important;
  width: calc(100% - 32px) !important;
  max-width: 720px !important;
  z-index: 2147483001 !important;
  isolation: isolate !important;
  background: var(--bg-2) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

.cookie-banner::before {
  content: '' !important;
  position: fixed !important;
  inset: -240vh -240vw !important;
  display: block !important;
  background: rgba(15, 23, 42, .40) !important;
  z-index: -1 !important;
  pointer-events: none !important;
  transform: translateZ(0) !important;
}

[data-theme="dark"] .cookie-banner::before {
  background: rgba(0, 0, 0, .60) !important;
}

@media (max-width: 760px) {
  .cookie-page-dim {
    inset: -300vh -300vw !important;
    background: rgba(15, 23, 42, .40) !important;
  }

  [data-theme="dark"] .cookie-page-dim {
    background: rgba(0, 0, 0, .60) !important;
  }

  .cookie-banner {
    left: 50% !important;
    right: auto !important;
    width: min(calc(100vw - 24px), 720px) !important;
    max-width: none !important;
    bottom: calc(18px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
    transform: translate3d(-50%, 0, 0) !important;
  }

  html.pt-browser-ui-hidden .cookie-banner {
    bottom: 18px !important;
  }

  html.pt-cookie-has-bottom-nav .cookie-banner {
    bottom: calc(112px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-cookie-has-bottom-nav.pt-browser-ui-hidden .cookie-banner {
    bottom: 112px !important;
  }

  .cookie-banner::before {
    inset: -300vh -300vw !important;
    background: rgba(15, 23, 42, .40) !important;
  }

  [data-theme="dark"] .cookie-banner::before {
    background: rgba(0, 0, 0, .60) !important;
  }
}

.cookie-page-dim {
  position: fixed !important;
  inset: -120vh -120vw !important;
  width: auto !important;
  height: auto !important;
  background: rgba(15, 23, 42, .40) !important;
  z-index: 2147482998 !important;
  pointer-events: none !important;
}

[data-theme="dark"] .cookie-page-dim {
  background: rgba(0, 0, 0, .60) !important;
}

.cookie-banner {
  position: fixed !important;
  top: auto !important;
  left: 50% !important;
  right: auto !important;
  bottom: 14px !important;
  width: calc(100% - 32px) !important;
  max-width: 720px !important;
  transform: translate3d(-50%, 0, 0) !important;
  z-index: 2147483001 !important;
}

.cookie-banner::before,
.cookie-banner-backdrop,
html.cookie-consent-active::before,
body.cookie-consent-active::before {
  display: none !important;
}

@media (max-width: 760px) {
  .cookie-page-dim {
    inset: -180vh -180vw !important;
  }

  .cookie-banner {
    left: 50% !important;
    right: auto !important;
    bottom: calc(6px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
    width: min(calc(100% - 24px), 720px) !important;
    max-width: none !important;
    transform: translate3d(-50%, 0, 0) !important;
  }

  html.pt-browser-ui-hidden .cookie-banner {
    bottom: 6px !important;
  }

  html.pt-cookie-has-bottom-nav .cookie-banner {
    bottom: calc(var(--bottom-h, 76px) + 18px + env(safe-area-inset-bottom) + var(--pt-browser-bottom, 0px)) !important;
  }

  html.pt-cookie-has-bottom-nav.pt-browser-ui-hidden .cookie-banner {
    bottom: calc(var(--bottom-h, 76px) + 18px) !important;
  }
}

.cookie-page-dim,
.cookie-banner-backdrop,
.cookie-banner::before,
html.cookie-consent-active::before,
body.cookie-consent-active::before {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  background: transparent !important;
}

html.cookie-consent-active,
body.cookie-consent-active {
  background: inherit !important;
}

.cookie-banner {
  z-index: 2147483001 !important;
}

html.cookie-consent-active::before,
body.cookie-consent-active::before,
.cookie-banner-backdrop {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.cookie-banner {
  box-shadow: 0 22px 60px rgba(15, 23, 42, .24), var(--shadow-md) !important;
}

[data-theme="dark"] .cookie-banner {
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38), var(--shadow-md) !important;
}

.cookie-banner-backdrop,
[data-theme="dark"] .cookie-banner-backdrop {
  background: none !important;
  display: none !important;
}


html.cookie-consent-active::before,
html.cookie-consent-active::after,
body.cookie-consent-active::before,
body.cookie-consent-active::after,
html[data-theme].cookie-consent-active::before,
html[data-theme="dark"].cookie-consent-active::before,
html[data-theme="dark"] body.cookie-consent-active::before,
.cookie-banner-backdrop,
html[data-theme="dark"] .cookie-banner-backdrop {
  display: none !important;
  content: none !important;
  background: transparent !important;
  opacity: 0 !important;
}

html .cookie-banner::before,
html .cookie-banner::after,
html[data-theme] .cookie-banner::before,
html[data-theme] .cookie-banner::after,
html[data-theme="dark"] .cookie-banner::before,
html[data-theme="dark"] .cookie-banner::after,
html .cookie-page-dim,
html[data-theme] .cookie-page-dim {
  display: none !important;
  content: none !important;
  background: transparent !important;
  opacity: 0 !important;
}

html .to-top-btn,
html[data-theme] .to-top-btn {
  bottom: 24px !important;
  right: 24px !important;
}
@media (max-width: 768px) {
  html .to-top-btn,
  html[data-theme] .to-top-btn,
  html.pt-browser-ui-hidden .to-top-btn,
  html.pt-cookie-scroll-active .to-top-btn {
    bottom: 24px !important;
    right: 16px !important;
  }
}

.turnstile-wrap {
  width: 100%;
  margin: 4px 0;
}
.turnstile-wrap > div {
  width: 100% !important;
}
