/*
 * Vizasound redesign
 * A clean-slate, mobile-first interface for the authenticated product.
 * Legacy main.css is intentionally not a dependency of this file.
 */

:root {
  color-scheme: dark;
  --vz-bg: #070a12;
  --vz-bg-raised: #0d1120;
  --vz-popup-bg: #0b1020;
  --vz-surface: #121728;
  --vz-surface-2: #181e32;
  --vz-surface-3: #20273d;
  --vz-line: rgba(184, 194, 225, .14);
  --vz-line-strong: rgba(184, 194, 225, .24);
  --vz-text: #f7f8ff;
  --vz-text-2: #b8bfd4;
  --vz-text-3: #7f89a4;
  --vz-nav-idle: #cbd5e1;
  --vz-violet: #8b5cf6;
  --vz-violet-2: #6d5dfc;
  --vz-secondary-selection: #7554b5;
  --vz-secondary-selection-hover: #8060c2;
  --vz-selection-fill: linear-gradient(135deg, rgba(109, 93, 252, .30), rgba(139, 92, 246, .18));
  --vz-selection-border: rgba(139, 92, 246, .38);
  --vz-cyan: #32d6ff;
  --vz-blue: #5a70ff;
  --vz-pink: #f472d0;
  --vz-green: #5ee0a0;
  --vz-danger: #ff6b81;
  --vz-gradient: linear-gradient(135deg, #6d5dfc 0%, #9c55f6 52%, #db5fc7 100%);
  --vz-avatar-gradient: linear-gradient(135deg, #334155 0%, #64748b 100%);
  --vz-gradient-cool: linear-gradient(135deg, #5a70ff 0%, #8b5cf6 48%, #32d6ff 120%);
  --vz-shadow-sm: 0 12px 30px rgba(0, 0, 0, .22);
  --vz-shadow-lg: 0 28px 80px rgba(0, 0, 0, .46);
  --vz-radius-sm: 10px;
  --vz-radius: 16px;
  --vz-radius-lg: 24px;
  --vz-radius-xl: 32px;
  --vz-content-card-gap: 12px;
  --header-height-mobile: 64px;
  --header-height-desktop: 72px;
  --vz-content: 1500px;
  --vz-sidebar: 218px;
  --vz-mobile-nav: var(--mobile-bottom-nav-height, 60px);
  --vz-mobile-page-end: var(--mobile-page-bottom-buffer, 24px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; overflow-x: clip; background: var(--vz-bg); scroll-behavior: smooth; }
body.viza-redesign {
  min-height: 100vh;
  margin: 0;
  padding: var(--header-height-mobile) 0 calc(var(--vz-mobile-nav) + var(--vz-mobile-page-end) + var(--mobile-web-safe-area-bottom));
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 0%, rgba(109, 93, 252, .12), transparent 34rem),
    radial-gradient(circle at 4% 36%, rgba(50, 214, 255, .06), transparent 28rem),
    var(--vz-bg);
  color: var(--vz-text);
  font: 400 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The application canvas stays deliberately quiet on phones.  Gradients belong
   to individual cards and calls to action, not behind normal page content. */
@media (max-width: 959px) {
  body.viza-redesign { background: var(--vz-bg); }
}

body.viza-redesign.viza-scroll-locked { overflow: hidden; }
body.viza-redesign img, body.viza-redesign video { display: block; max-width: 100%; }
body.viza-redesign button, body.viza-redesign input, body.viza-redesign textarea, body.viza-redesign select { font: inherit; }
/* Native select carets cannot be inset consistently with padding alone. Keep
   the native picker, and draw one shared caret inside the closed control. */
body.viza-redesign select:not([multiple]):is(:not([size]), [size="1"]) {
  -webkit-appearance: none; appearance: none;
  padding-inline-end: 42px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23cbd5e1' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 14px !important;
}
body.viza-redesign select:not([multiple]):is(:not([size]), [size="1"]):dir(rtl) {
  background-position: left 14px center !important;
}
@media (forced-colors: active) {
  body.viza-redesign select:not([multiple]):is(:not([size]), [size="1"]) {
    -webkit-appearance: auto; appearance: auto; background-image: none !important;
  }
}
body.viza-redesign button, body.viza-redesign a { -webkit-tap-highlight-color: transparent; }
body.viza-redesign a { color: inherit; text-decoration: none; }
body.viza-redesign h1, body.viza-redesign h2, body.viza-redesign h3, body.viza-redesign p { margin-top: 0; }
body.viza-redesign h1, body.viza-redesign h2, body.viza-redesign h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.035em;
}
body.viza-redesign :focus-visible { outline: 3px solid rgba(50, 214, 255, .78); outline-offset: 3px; }
body.viza-redesign ::selection { background: rgba(139, 92, 246, .45); color: #fff; }

.viza-redesign .hidden, .viza-redesign [hidden] { display: none !important; }
.viza-redesign .sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.viza-redesign .single-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viza-redesign .show-mobile { display: initial; }
.viza-redesign .hide-mobile { display: none !important; }

/* List-feed completion is intentionally quiet and secondary to the content. */
.viza-redesign #loading.feed-status--end {
  clear: both;
  margin: 2rem auto 0;
  padding: 0.25rem 1rem 1rem;
  color: var(--vz-text-3);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

/* Shared top bar */
.viza-redesign .fixed-header {
  position: fixed; z-index: 1100; inset: 0 0 auto;
  height: var(--header-height-mobile);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--vz-line);
  background: rgba(7, 10, 18, .88);
  backdrop-filter: blur(22px) saturate(145%);
}
.viza-redesign .logo-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.viza-redesign .logo-full { display: none; height: 34px; width: auto; }
.viza-redesign .logo-mobile-icon { display: block; width: 35px; height: 35px; object-fit: contain; }
.viza-redesign.home-logged-in .fixed-header .logo-full { display: block; height: 32px; }
.viza-redesign.home-logged-in .fixed-header .logo-mobile-icon { display: none; }
.viza-redesign.home-logged-in .fixed-header .logo-link.logo-link-compact-mobile .logo-full { display: none; }
.viza-redesign.home-logged-in .fixed-header .logo-link.logo-link-compact-mobile .logo-mobile-icon { display: block; }
.viza-redesign .header-desktop-search { position: relative; z-index: 2; display: none; }
.viza-redesign .header-mobile-search { flex: 1; min-width: 0; }
.viza-redesign .header-mobile-search:not(.is-home) { flex: 1 1 0; width: auto; max-width: none; }
.viza-redesign .header-mobile-search-form { width: 100%; }
.viza-redesign .header-mobile-search-trigger { display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto; border: 0; border-radius: 50%; background: transparent; color: var(--vz-text-2); }
.viza-redesign .header-mobile-search:not(.is-home) .header-mobile-search-trigger { display: none; }
.viza-redesign .header-mobile-search-form,
.viza-redesign .header-desktop-search-form {
  position: relative; display: flex; align-items: center; min-width: 0;
  height: 42px; border: 1px solid var(--vz-line); border-radius: 999px;
  background: rgba(255,255,255,.055); transition: border-color .2s, background .2s, box-shadow .2s;
}
.viza-redesign .header-mobile-search-form:focus-within,
.viza-redesign .header-desktop-search-form:focus-within {
  border-color: rgba(139, 92, 246, .7); background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 4px rgba(139,92,246,.11);
}
.viza-redesign .header-mobile-search-form > i,
.viza-redesign .header-desktop-search-form > i { margin-left: 14px; color: var(--vz-text-3); font-size: 14px; }
.viza-redesign .header-desktop-search-submit-left,
.viza-redesign .header-mobile-search-submit-left {
  display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--vz-text-3); cursor: pointer;
}
.viza-redesign .header-desktop-search-submit-left:hover,
.viza-redesign .header-mobile-search-submit-left:hover { background: rgba(255,255,255,.06); color: #fff; }
.viza-redesign .header-mobile-search-form input,
.viza-redesign .header-desktop-search-form input {
  min-width: 0; flex: 1; height: 100%; padding: 0 10px; border: 0; outline: 0;
  background: transparent; color: var(--vz-text); font-size: 14px;
}
.viza-redesign .header-mobile-search-form input::placeholder,
.viza-redesign .header-desktop-search-form input::placeholder { color: var(--vz-text-3); }
.viza-redesign .header-desktop-search-form input[type="search"]::-webkit-search-decoration,
.viza-redesign .header-desktop-search-form input[type="search"]::-webkit-search-cancel-button,
.viza-redesign .header-desktop-search-form input[type="search"]::-webkit-search-results-button,
.viza-redesign .header-desktop-search-form input[type="search"]::-webkit-search-results-decoration,
.viza-redesign .header-mobile-search-form input[type="search"]::-webkit-search-decoration,
.viza-redesign .header-mobile-search-form input[type="search"]::-webkit-search-cancel-button,
.viza-redesign .header-mobile-search-form input[type="search"]::-webkit-search-results-button,
.viza-redesign .header-mobile-search-form input[type="search"]::-webkit-search-results-decoration { display: none; appearance: none; -webkit-appearance: none; }
.viza-redesign .header-search-aux-btn {
  flex: 0 0 34px; width: 34px; height: 34px; margin-right: 3px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--vz-text-3); cursor: pointer;
}
.viza-redesign .header-search-aux-btn:hover { background: var(--vz-surface-3); color: #fff; }
.viza-redesign .header-search-clear {
  display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; margin-right: 3px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--vz-text-3); cursor: pointer;
}
.viza-redesign .header-search-clear:hover,
.viza-redesign .header-search-clear:focus-visible { background: var(--vz-surface-3); color: #fff; }
.viza-redesign .header-search-clear.hidden { display: none; }
.viza-redesign .header-mobile-search-history,
.viza-redesign .header-desktop-search-history {
  position: absolute; z-index: 1450; top: calc(100% + 8px); left: 0; right: 0; max-height: min(72vh,620px);
  overflow-y: auto; overscroll-behavior: contain; border: 1px solid #fff; border-radius: 18px;
  background: #202638; box-shadow: var(--vz-shadow-lg); backdrop-filter: blur(22px);
}
.viza-redesign .header-mobile-search-history.hidden,
.viza-redesign .header-desktop-search-history.hidden { display: none; }
.viza-redesign .header-search-panel .header-search-list { border: 0; }
.viza-redesign :is(.header-mobile-search-history-row, .header-search-row) {
  border-radius: 10px; transition: background-color .16s ease;
}
.viza-redesign :is(.header-mobile-search-history-row, .header-search-row):hover,
.viza-redesign :is(.header-mobile-search-history-row, .header-search-row):focus-within { background: rgba(139,92,246,.12); }
.viza-redesign :is(.header-mobile-search-history-row, .header-search-row):hover :is(.header-mobile-search-history-select, [data-recent-select]),
.viza-redesign :is(.header-mobile-search-history-row, .header-search-row):focus-within :is(.header-mobile-search-history-select, .header-search-row-main) { color: #fff; }
.viza-redesign .header-search-panel :is(.header-mobile-search-history-remove, [data-recent-remove]) {
  border: 0; background: transparent; color: #99a6ba; cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.viza-redesign .header-search-panel :is(.header-mobile-search-history-remove, [data-recent-remove]):hover,
.viza-redesign .header-search-panel :is(.header-mobile-search-history-remove, [data-recent-remove]):focus-visible {
  background: rgba(139,92,246,.18); color: #fff;
}
.viza-redesign .header-search-panel :is(.header-mobile-search-history-select, [data-recent-select]) i { color: #99a6ba; }
.viza-redesign .header-search-panel { padding: 10px 0 12px; }
.viza-redesign .header-search-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 11px; }
.viza-redesign .header-search-panel-head span { color: var(--vz-text-3); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.viza-redesign .header-search-panel-head button { padding: 5px 7px; border: 0; border-radius: 8px; background: transparent; color: #bca9ff; font-size: 12px; font-weight: 750; }
.viza-redesign .header-search-pills { display: flex; gap: 7px; overflow-x: auto; padding: 3px 10px 10px; scrollbar-width: none; }
.viza-redesign .header-search-pill { flex: 0 0 auto; min-height: 34px; padding: 0 13px; border: 1px solid var(--vz-line); border-radius: 999px; background: var(--vz-surface-2); color: var(--vz-text-2); font-size: 12px; font-weight: 800; }
.viza-redesign .header-search-pill.is-active { border-color: transparent; background: #fff; color: #080b14; }
.viza-redesign .header-search-section { padding-top: 5px; }
.viza-redesign .header-search-section-head { display: flex; align-items: center; justify-content: space-between; padding: 3px 12px 7px; color: var(--vz-text); font-size: 14px; font-weight: 800; }
.viza-redesign .header-search-section-head button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.viza-redesign .header-search-section-title-btn { border-radius: 7px !important; transition: color .16s ease, background .16s ease; }
.viza-redesign .header-search-section-title-btn:hover,
.viza-redesign .header-search-section-title-btn:focus-visible { background: rgba(139,92,246,.12); color: #cbbdff; outline: none; }
.viza-redesign .header-search-section-head > button:not(.header-search-section-title-btn) {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: #bca9ff;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.viza-redesign .header-search-section-head > button:not(.header-search-section-title-btn):hover,
.viza-redesign .header-search-section-head > button:not(.header-search-section-title-btn):focus-visible {
  background: rgba(139,92,246,.2);
  color: #e7e0ff;
  outline: none;
  transform: translateX(2px);
}
.viza-redesign .header-search-list { margin: 0 9px; overflow: hidden; border: 1px solid var(--vz-line); border-radius: 13px; }
.viza-redesign .header-search-row,
.viza-redesign .header-mobile-search-history-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 52px; padding: 7px 10px; border-top: 1px solid var(--vz-line); }
.viza-redesign .header-search-row:first-child,
.viza-redesign .header-mobile-search-history-row:first-child { border-top: 0; }
.viza-redesign .header-search-row-main,
.viza-redesign .header-mobile-search-history-select { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--vz-text); text-align: left; }
.viza-redesign .header-search-row-main > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.viza-redesign .header-search-row-main strong,
.viza-redesign .header-search-row-main small,
.viza-redesign .header-mobile-search-history-select span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viza-redesign .header-search-row-main strong { font-size: 13px; }
.viza-redesign .header-search-row-main small { color: var(--vz-text-3); font-size: 11px; }
.viza-redesign .header-search-row-action,
.viza-redesign .header-search-row-action-play,
.viza-redesign .header-mobile-search-history-remove { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--vz-surface-3); color: var(--vz-text-2); }
.viza-redesign .header-search-btn { padding: 7px 12px; border-radius: 999px; background: var(--vz-surface-3); color: var(--vz-text); font-size: 11px; font-weight: 800; }
.viza-redesign .header-search-row-action-play,
.viza-redesign .header-search-btn { transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.viza-redesign .header-search-row-action-play:hover,
.viza-redesign .header-search-row-action-play:focus-visible {
  background: rgba(139,92,246,.34);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(196,181,253,.48);
  outline: none;
  transform: scale(1.06);
}
.viza-redesign .header-search-btn:hover,
.viza-redesign .header-search-btn:focus-visible {
  background: rgba(139,92,246,.42);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(196,181,253,.48);
  outline: none;
}
.viza-redesign .swal2-popup.report-issue-modal {
  width: min(92vw, 620px) !important;
}
.viza-redesign .swal2-popup.report-issue-modal .swal2-title {
  padding-right: 44px !important;
  text-align: left;
}
.viza-redesign .swal2-popup.report-issue-modal .swal2-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 18px;
}
.viza-redesign .swal2-popup.report-issue-modal .swal2-html-container {
  width: 100%;
  margin: 0.75rem 0 0;
}
.viza-redesign .swal2-popup.report-issue-modal .report-issue-textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 170px;
  margin: 0;
  resize: vertical;
  padding: 16px;
  border: 1px solid var(--vz-line-strong);
  border-radius: 12px;
  background: var(--vz-bg);
  color: var(--vz-text);
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: none;
}
.viza-redesign .swal2-popup.report-issue-modal .report-issue-textarea::placeholder {
  color: var(--vz-text-3);
}
.viza-redesign .swal2-popup.report-issue-modal .report-issue-textarea:focus {
  border-color: var(--vz-violet);
  outline: none;
  box-shadow: 0 0 0 2px rgba(139,92,246,.18);
}
.viza-redesign .header-search-avatar,
.viza-redesign .header-search-thumb { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; overflow: hidden; border-radius: 10px; background: var(--vz-surface-3); }
.viza-redesign .header-search-avatar-img,
.viza-redesign .header-search-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.viza-redesign .header-search-avatar-initial { display: grid; place-items: center; width: 100%; height: 100%; background: var(--vz-avatar-gradient); font-weight: 800; }
.viza-redesign .header-search-video-thumb { position: relative; }
.viza-redesign .header-search-video-thumb .header-search-video-duration {
  position: absolute; right: 3px; bottom: 3px; z-index: 1; padding: 1px 4px; border-radius: 5px;
  background: rgba(3,5,12,.82); color: #fff; font-size: 9px; line-height: 1.25;
}
.viza-redesign .header-search-video-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 9px; }
.viza-redesign .header-search-video { position: relative; min-height: 104px; overflow: hidden; border-radius: 12px; background: var(--vz-surface-2); }
.viza-redesign .header-search-video::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent,rgba(3,5,12,.92)); }
.viza-redesign .header-search-video img { width: 100%; height: 104px; object-fit: cover; }
.viza-redesign .header-search-video-duration { position: absolute; z-index: 2; top: 6px; right: 6px; padding: 2px 6px; border-radius: 999px; background: rgba(3,5,12,.78); color: #fff; font-size: 10px; }
.viza-redesign .header-search-video-meta { position: absolute; z-index: 2; right: 7px; bottom: 7px; left: 7px; display: flex; flex-direction: column; min-width: 0; }
.viza-redesign .header-search-video-meta strong,
.viza-redesign .header-search-video-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viza-redesign .header-search-video-meta strong { color: #fff; font-size: 11px; }
.viza-redesign .header-search-video-meta small { color: #cbd5e1; font-size: 10px; }
.viza-redesign .header-search-empty { padding: 16px; color: var(--vz-text-3); text-align: center; font-size: 13px; }
.viza-redesign .header-search-empty-loading { display: flex; align-items: center; justify-content: center; gap: 8px; }
.viza-redesign .header-search-spinner { width: 17px; height: 17px; border: 2px solid var(--vz-line-strong); border-top-color: var(--vz-violet); border-radius: 50%; animation: vz-spin .8s linear infinite; }
.viza-redesign .header-search-more { display: block; width: calc(100% - 18px); min-height: 38px; margin: 10px 9px 0; border: 1px solid var(--vz-line); border-radius: 10px; background: var(--vz-surface-2); color: var(--vz-text-2); font-weight: 750; }
.viza-redesign .header-mobile-search-history-select i { color: var(--vz-text-3); font-size: 11px; }
.viza-redesign .header-mobile-search-history-select span { min-width: 0; }
@keyframes vz-spin { to { transform: rotate(360deg); } }
.viza-redesign .header-controls { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; gap: 6px; margin-left: auto; }
.viza-redesign .header-credits { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.viza-redesign .desktop-nav { display: none; }
.viza-redesign .desktop-nav-right { display: flex; align-items: center; gap: 6px; }
.viza-redesign .desktop-nav > .language-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--vz-text-2);
  font-size: 15px;
  box-shadow: none;
}
.viza-redesign .desktop-nav > .language-icon:hover,
.viza-redesign .desktop-nav > .language-icon:focus-visible {
  border-color: var(--vz-line);
  background: rgba(255,255,255,.05);
  color: #fff;
}
.viza-redesign .desktop-nav > .header-signin-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--vz-text-2);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
.viza-redesign .desktop-nav > .header-signin-link:hover { color: #fff; }
.viza-redesign .header-primary-cta {
  display: none; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--vz-gradient); color: #fff; font-weight: 800;
  box-shadow: 0 9px 28px rgba(109,93,252,.3); transition: transform .18s, box-shadow .18s;
}
.viza-redesign .header-primary-cta:hover { transform: translateY(-1px); box-shadow: 0 13px 34px rgba(109,93,252,.42); }
.viza-redesign .notification-icon,
.viza-redesign .hamburger-icon,
.viza-redesign .profile-menu-button,
.viza-redesign .desktop-nav-right > a:not(.header-primary-cta) {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border: 1px solid transparent; border-radius: 50%;
  background: transparent; color: var(--vz-text-2); cursor: pointer;
}
.viza-redesign .notification-icon:hover,
.viza-redesign .hamburger-icon:hover,
.viza-redesign .profile-menu-button:hover { background: var(--vz-surface-2); color: #fff; }
.viza-redesign .hamburger-icon { color: #f5f7ff; }
@media (max-width: 959px) {
  /* Auth screens have no mobile search or credits control to occupy this flex row. */
  .viza-redesign.auth-page .header-controls > .hamburger-icon { margin-left: auto; }
  .viza-redesign .credits-icon.show-mobile {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    height: 42px;
    margin-left: auto;
    padding: 0 10px;
    border: 1px solid var(--vz-line);
    border-radius: 999px;
    color: var(--vz-text-2);
  }
  .viza-redesign.credits-temp-page .header-mobile-search { display: none !important; }
}
.viza-redesign .header-utility-icon { position: relative; }
.viza-redesign .header-utility-icon .notification-dot {
  position: absolute; top: 7px; right: 7px; width: 8px; height: 8px;
  border: 2px solid #090c15; border-radius: 50%; background: #ff4d6d;
  box-sizing: content-box; box-shadow: 0 0 0 2px rgba(255,77,109,.1);
}
.viza-redesign .header-utility-icon .notification-dot.hidden { display: none; }
.viza-redesign .profile-menu-container { position: relative; }
.viza-redesign .profile-menu-trigger { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.viza-redesign .profile-menu-trigger > img,
.viza-redesign .profile-menu-trigger > .profile-image-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; object-fit: cover; background: var(--vz-avatar-gradient); color: #fff; font-weight: 800; cursor: pointer; }
.viza-redesign .profile-menu-trigger:is(:hover,:focus-visible) > :is(img,.profile-image-icon) { border-color: var(--vz-violet); }
.viza-redesign .profile-menu-dropdown {
  position: fixed; z-index: 1400; top: calc(var(--header-height-mobile) - 2px); right: 12px; display: none;
  width: min(320px, calc(100vw - 24px)); max-height: calc(100dvh - var(--header-height-desktop) - 24px);
  overflow-y: auto; padding: 12px; border: 1px solid #fff; border-radius: 18px;
  background: var(--vz-popup-bg); box-shadow: 0 24px 64px rgba(0,0,0,.48);
}
.viza-redesign .profile-menu-identity { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; }
.viza-redesign .profile-menu-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--vz-avatar-gradient); color: var(--vz-text); font-weight: 800; }
.viza-redesign .profile-menu-avatar-trigger { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.viza-redesign .profile-menu-avatar-trigger:focus-visible { outline: 2px solid var(--vz-violet); outline-offset: 3px; }
.viza-redesign .profile-menu-identity-copy { display: block; min-width: 0; flex: 1; text-decoration: none; }
.viza-redesign .profile-menu-identity-copy:focus-visible { outline: 2px solid var(--vz-violet); outline-offset: 4px; border-radius: 4px; }
.viza-redesign .profile-menu-close { align-self: flex-start; margin: -4px -4px 0 0; }
.viza-redesign .profile-menu-account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--vz-text); font-size: 16px; font-weight: 800; }
.viza-redesign .profile-menu-dropdown ul { display: grid; gap: 2px; margin: 0; padding: 10px 0; border-top: 1px solid var(--vz-line); list-style: none; }
.viza-redesign .profile-menu-dropdown li { min-width: 0; }
.viza-redesign .profile-menu-dropdown li a {
  display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px;
  border: 0; border-radius: 10px; background: transparent; color: #d5d9e5; text-decoration: none;
}
.viza-redesign .profile-menu-dropdown li a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viza-redesign .profile-menu-dropdown li a:hover,
.viza-redesign .profile-menu-dropdown li a:focus-visible { background: rgba(139,92,246,.15); color: #fff; }
.viza-redesign .profile-menu-dropdown li a:focus-visible { outline: 2px solid var(--vz-violet); outline-offset: -2px; }
.viza-redesign .profile-menu-dropdown i { flex: 0 0 20px; width: 20px; text-align: center; color: inherit; }
.viza-redesign .profile-menu-dropdown li a:is(:hover,:focus-visible) i { color: var(--vz-violet); }
.viza-redesign .profile-menu-dropdown .profile-menu-shortcuts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; padding: 12px 0; }
.viza-redesign .profile-menu-shortcuts li a { flex-direction: column; justify-content: center; gap: 10px; min-height: 74px; padding: 10px 3px; font-size: 11px; }
.viza-redesign .profile-menu-shortcuts li a > span { max-width: 100%; }
.viza-redesign .profile-menu-shortcuts i { flex-basis: auto; font-size: 23px; width: 28px; height: 24px; line-height: 24px; }
.viza-redesign .profile-menu-dropdown .profile-menu-session { padding-bottom: 0; }

/* Secondary drawer: compact on mobile, primary labeled rail on wide screens. */
.viza-redesign .mobile-nav-backdrop {
  position: fixed;
  z-index: 1590;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  appearance: none;
  background: rgba(2, 4, 10, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  display: none !important;
}
.viza-redesign .mobile-nav-backdrop.active { opacity: 1; pointer-events: auto; }
.viza-redesign #mobile-nav-popup {
  /* The drawer is its own full-height surface, above the header. This gives
     navigation the whole mobile viewport; closing it immediately reveals the
     unchanged header underneath. */
  position: fixed; z-index: 1600; inset: 0 0 0 auto;
  width: min(88vw, 360px); overflow-y: auto; padding: 0 16px 28px;
  border-left: 1px solid var(--vz-line); background: rgba(10, 13, 24, .98);
  box-shadow: -24px 0 70px rgba(0,0,0,.5); transform: translateX(105%);
  transition: transform .26s cubic-bezier(.2,.8,.2,1); backdrop-filter: blur(28px);
}
.viza-redesign #mobile-nav-popup.active,
.viza-redesign #mobile-nav-popup.show,
.viza-redesign #mobile-nav-popup.open,
.viza-redesign #mobile-nav-popup[aria-hidden="false"] { transform: translateX(0); }
.viza-redesign .mobile-menu-header {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  min-height: 66px; margin: 0 -16px 8px; padding: 0 18px; border-bottom: 1px solid var(--vz-line);
  background: rgba(10,13,24,.96);
}
.viza-redesign .mobile-menu-header h2 { margin: 0; font-size: 20px; }
.viza-redesign .mobile-menu-header button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--vz-surface-2); color: #fff; }
.viza-redesign .mobile-menu-profile { display: flex; align-items: center; min-width: 0; gap: 11px; }
.viza-redesign .mobile-menu-profile-avatar-link { display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; }
.viza-redesign .mobile-menu-profile-image { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; object-fit: cover; background: var(--vz-avatar-gradient); color: #fff; font-weight: 800; }
.viza-redesign .mobile-menu-profile-copy { min-width: 0; }
.viza-redesign .mobile-menu-profile-name { display: block; overflow: hidden; color: var(--vz-text); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.viza-redesign .mobile-menu-profile-name:hover,
.viza-redesign .mobile-menu-profile-credits:is(:hover,:focus-visible) { color: var(--vz-violet); }
.viza-redesign .mobile-menu-profile-credits { color: var(--vz-text-3); font-size: 12px; }
.viza-redesign .mobile-menu-sections { display: grid; gap: 16px; }
.viza-redesign .mobile-menu-section { padding-bottom: 14px; border-bottom: 1px solid var(--vz-line); }
.viza-redesign .mobile-menu-section:last-child { border: 0; }
.viza-redesign .mobile-menu-section > h3,
.viza-redesign .mobile-menu-section > h4 { margin: 6px 10px 8px; color: var(--vz-text-3); font: 700 11px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.viza-redesign .menu-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.viza-redesign .menu-list li {
  display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; min-width: 0;
  border-radius: 12px; color: var(--vz-nav-idle); transition: background-color .16s ease, color .16s ease;
}
.viza-redesign .menu-list li a,
.viza-redesign .menu-list li button {
  display: flex; align-items: center; gap: 13px; width: 100%; min-width: 0; min-height: 46px; padding: 8px 10px;
  border: 0; border-radius: 12px; background: transparent; color: var(--vz-nav-idle); text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.viza-redesign .menu-list li:hover,
.viza-redesign .menu-list li:has(> a:focus-visible),
.viza-redesign .menu-list li:has(> button:focus-visible) { background: var(--vz-surface-2); color: #fff; }
.viza-redesign .menu-list li:hover a,
.viza-redesign .menu-list li:hover button,
.viza-redesign .menu-list li:has(> a:focus-visible) a,
.viza-redesign .menu-list li:has(> button:focus-visible) button { background: transparent; color: #fff; }
.viza-redesign .menu-list li.current,
.viza-redesign .menu-list li.is-current,
.viza-redesign .menu-list li:has(> a[aria-current="page"]) { background: rgba(139,92,246,.15); color: #fff; }
.viza-redesign .menu-list li.current a,
.viza-redesign .menu-list li.is-current a,
.viza-redesign .menu-list li:has(> a[aria-current="page"]) a { background: transparent; color: #fff; }
.viza-redesign .menu-list i { width: 22px; text-align: center; color: var(--vz-nav-idle); font-size: 16px; }
.viza-redesign .menu-list li:hover i,
.viza-redesign .menu-list li:has(> a:focus-visible) i,
.viza-redesign .menu-list li:has(> button:focus-visible) i { color: var(--vz-text); }
.viza-redesign .menu-list .current i,
.viza-redesign .menu-list .is-current i,
.viza-redesign .menu-list li:has(> a[aria-current="page"]) i { color: #a98cff; }
.viza-redesign .mobile-menu-desktop-primary { display: none; }
.viza-redesign .mobile-menu-shortcuts {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
  padding: 12px 0 16px; border-bottom: 1px solid var(--vz-line);
}
.viza-redesign .mobile-menu-shortcuts > div { min-width: 0; border-radius: 12px; }
.viza-redesign .mobile-menu-shortcuts a,
.viza-redesign .mobile-menu-shortcuts button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-width: 0; min-height: 70px; padding: 8px 0; border: 0; border-radius: 12px;
  background: transparent; color: var(--vz-text); font: 600 11px/1.2 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none; cursor: pointer;
}
.viza-redesign .mobile-menu-shortcuts a > span,
.viza-redesign .mobile-menu-shortcuts button > span:last-child {
  display: block; min-width: 0; max-width: calc(100% - 4px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.viza-redesign .mobile-menu-shortcuts i { font-size: 22px; }
.viza-redesign .mobile-menu-shortcuts .current,
.viza-redesign .mobile-menu-shortcuts a:hover,
.viza-redesign .mobile-menu-shortcuts button:hover { background: rgba(139,92,246,.15); }
.viza-redesign .mobile-menu-shortcuts :is(a,button):focus-visible { outline: 2px solid var(--vz-violet); outline-offset: -2px; }
.viza-redesign .mobile-menu-shortcut-create i {
  display: grid; place-items: center; width: 32px; height: 32px; margin: -5px 0;
  border-radius: 10px; background: var(--vz-gradient); font-size: 20px;
}
.viza-redesign .mobile-menu-shortcut-icon { position: relative; }
.viza-redesign .mobile-menu-shortcut-icon .notification-dot { position: absolute; top: -3px; right: -4px; }
.viza-redesign .mobile-menu-legal { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 16px 0; color: var(--vz-text-3); font-size: 12px; }
.viza-redesign .mobile-menu-legal a { display: flex; align-items: center; min-height: 44px; color: inherit; }
/* Bottom navigation uses words and icons: no learned mystery controls. */
.viza-redesign .mobile-footer {
  position: fixed; z-index: 1050; inset: auto 0 0; height: calc(var(--mobile-footer-height) + var(--mobile-web-safe-area-bottom));
  min-height: 0; padding: 4px 7px var(--mobile-web-safe-area-bottom); border-top: 1px solid var(--vz-line);
  background: rgba(8, 11, 20, .94); backdrop-filter: blur(22px) saturate(150%);
}
.viza-redesign .mobile-footer-nav { display: grid; grid-template-columns: repeat(5, 1fr); height: 100%; }
.viza-redesign .mobile-footer.has-custom-content {
  --mobile-footer-height: var(--mobile-bottom-action-height, 64px);
  height: calc(var(--mobile-footer-height) + var(--mobile-web-safe-area-bottom));
  padding: 6px 16px var(--mobile-web-safe-area-bottom);
}
.viza-redesign .mobile-footer.has-custom-content .mobile-footer-nav { display: none; }
.viza-redesign .mobile-footer-custom,
.viza-redesign .mobile-footer-custom > *,
.viza-redesign .mobile-footer-custom .btn { width: 100%; height: 100%; }
.viza-redesign .mobile-footer-custom .btn { min-height: 50px; border-radius: 14px; }
.viza-redesign .mobile-footer-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; border: 0; border-radius: 12px; background: transparent; color: var(--vz-text);
}
.viza-redesign .mobile-footer-btn-icon { display: grid; place-items: center; min-height: 23px; font-size: 18px; }
.viza-redesign .mobile-footer-btn-label { max-width: 100%; overflow: hidden; color: var(--vz-text-3); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.viza-redesign .mobile-footer-btn.active,
.viza-redesign .mobile-footer-btn[aria-current="page"] { color: #bba7ff; background: rgba(139,92,246,.09); }
.viza-redesign .mobile-footer-btn.active .mobile-footer-btn-label,
.viza-redesign .mobile-footer-btn[aria-current="page"] .mobile-footer-btn-label { color: #f5f3ff; }
.viza-redesign .mobile-footer-btn.create-btn .mobile-footer-btn-icon {
  width: 38px; height: 38px; margin-top: -19px; border-radius: 14px; background: var(--vz-gradient); color: #fff;
  box-shadow: 0 8px 24px rgba(109,93,252,.42);
}
/* The shared legacy footer gives Create a larger circular icon. In the
   redesign dock that shifts only its label down; keep every label on one
   baseline instead. */
.viza-redesign .mobile-footer-btn[data-footer-key="create"] {
  justify-self: stretch;
  align-self: stretch;
}
.viza-redesign .mobile-footer-btn[data-footer-key="create"] .mobile-footer-btn-icon {
  width: 28px;
  min-height: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
}
.viza-redesign .mobile-footer-btn[data-footer-key="create"] i { font-size: 18px; }

/* Logged-out Explore uses the shared public dock, not the authenticated
   redesign dock. Keep this override next to the redesign footer because this
   stylesheet loads after shared-ui.css on Explore. */
.viza-redesign .mobile-footer--logged-out {
  z-index: 1200;
  inset: auto 0 0;
  height: calc(var(--mobile-footer-height) + var(--mobile-web-safe-area-bottom));
  min-height: 0;
  padding: 4px 16px calc(4px + var(--mobile-web-safe-area-bottom));
  background: #161f2d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: none;
}
.viza-redesign .mobile-footer--logged-out .mobile-footer-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  /* Match the authenticated dock's full-height grid so the icon row stays
     vertically centered instead of sitting at the top of the footer. */
  height: 100%;
  gap: 4px;
}
.viza-redesign .mobile-footer--logged-out .mobile-footer-btn {
  /* Keep public and authenticated navigation on the same icon/label rhythm. */
  gap: 3px;
  border-radius: 14px;
  color: #f5f7ff;
}
.viza-redesign .mobile-footer--logged-out .mobile-footer-btn.active {
  color: #bba7ff;
  background: rgba(139, 92, 246, 0.16);
}
.viza-redesign .mobile-footer--logged-out .mobile-footer-btn.active .mobile-footer-btn-label {
  color: #f5f3ff;
}

/* Buttons and form controls */
.viza-redesign .btn,
.viza-redesign .btn-primary,
.viza-redesign .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px;
  padding: 0 20px; border: 1px solid transparent; border-radius: 13px; color: #fff; font-weight: 800; cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s, box-shadow .18s;
}
.viza-redesign .btn-primary { background: var(--vz-gradient); box-shadow: 0 10px 30px rgba(109,93,252,.28); }
.viza-redesign .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 38px rgba(109,93,252,.4); }
.viza-redesign .btn-secondary { border-color: var(--vz-line-strong); background: var(--vz-surface-2); color: var(--vz-text-2); }
.viza-redesign .ux-input,
.viza-redesign .field input,
.viza-redesign .field textarea,
.viza-redesign .field select {
  width: 100%; min-height: 50px; padding: 13px 15px; border: 1px solid var(--vz-line);
  border-radius: 13px; outline: none; background: rgba(7,10,18,.78); color: var(--vz-text);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.viza-redesign .field textarea { min-height: 136px; resize: vertical; }
.viza-redesign .ux-input:focus,
.viza-redesign .field input:focus,
.viza-redesign .field textarea:focus,
.viza-redesign .field select:focus { border-color: var(--vz-violet); background: #0b0f1c; box-shadow: 0 0 0 4px rgba(139,92,246,.12); }

