@import url("buttons.css");

:root {
  --gold: #d4af37;
  --gold-2: #f4d77a;
  --gold-3: #ffd76a;
  --gold-dark: #8f6b13;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --border: rgba(255,255,255,0.08);
  --border-gold: rgba(212,175,55,0.18);
  --top-btn-height: 52px;
  --desktop-rail-width: 86px;
  --desktop-rail-expanded: 320px;
  --mobile-bottom-nav-height: 86px;
  --mobile-nav-bg: rgba(10, 10, 10, 0.94);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.48) 0%, rgba(7, 7, 7, 0.72) 45%, rgba(7, 7, 7, 0.82) 100%),
    radial-gradient(circle at top, rgba(212, 175, 55, 0.14), transparent 30%),
    url("../../bg-mobile-final-1080x1920.webp");
  background-size: cover, auto, cover;
  background-position: center top, center top, center center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, scroll, fixed;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  padding: 0 18px 44px calc(var(--desktop-rail-width) + 28px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

.site-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 100px;
}

.header-wrap {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.78), rgba(0,0,0,0.42) 70%, rgba(0,0,0,0));
  backdrop-filter: blur(8px);
}

.header-bar {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 4px;
  position: relative;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-left {
  justify-content: flex-start;
}

.currency-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  width: max-content;
  min-width: 88px;
  max-width: none;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(14,14,14,0.88), rgba(10,10,10,0.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 22px rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.currency-badge-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.currency-badge-value {
  display: inline-block;
  flex: 0 0 auto;
  min-width: 0;
  color: #f7e6ac;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.header-center {
  justify-content: center;
  pointer-events: none;
}

.header-center > * {
  pointer-events: auto;
}

.header-right {
  justify-content: flex-end;
  position: relative;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header-logo {
  display: block;
  width: min(288px, 45vw);
  height: auto;
  filter:
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 20px rgba(212, 175, 55, 0.08));
}

.header-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    linear-gradient(180deg, rgba(10,10,10,0.86), rgba(10,10,10,0.92));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 22px rgba(0,0,0,0.24);
  backdrop-filter: blur(4px);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
  padding: 0;
  text-decoration: none;
}

.header-icon-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 14px 24px rgba(0,0,0,0.28);
}

.person-icon {
  position: relative;
  width: 22px;
  height: 22px;
}

.person-icon::before,
.person-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2.2px solid #f5f5f5;
  box-sizing: border-box;
}

.person-icon::before {
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.person-icon::after {
  bottom: -1px;
  width: 21px;
  height: 11px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom: 0;
}

.header-avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(212,175,55,0.55);
  background: #111;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.24),
    0 0 0 3px rgba(212,175,55,0.08);
  cursor: pointer;
}

.header-avatar-btn img,
.header-avatar-btn .header-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.header-avatar-fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #3a2d0d, #a98325);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Space Grotesk', sans-serif;
}

.account-menu {
  display: none !important;
  position: absolute;
  top: 52px;
  right: 0;
  min-width: 210px;
  padding: 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.96), rgba(10,10,10,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  z-index: 90;
}

.account-menu-actions {
  display: grid;
  gap: 8px;
}

.account-menu-link,
.account-menu button {
  width: 100%;
  text-decoration: none;
  text-align: center;
}

.desktop-side-nav {
  position: fixed;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  width: var(--desktop-rail-width);
  height: min(84vh, 780px);
  z-index: 120;
  display: flex;
  align-items: stretch;
  overflow: visible;
  transition: width 0.34s cubic-bezier(.22,.61,.36,1);
}

.desktop-side-nav:hover {
  width: var(--desktop-rail-expanded);
}

.desktop-side-nav-panel {
  width: 100%;
  height: 100%;
  transition: width 0.34s cubic-bezier(.22,.61,.36,1);
  display: flex;
  flex-direction: column;
  padding: 18px 0 16px;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.desktop-side-links,
.desktop-side-bottom {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: stretch;
}

.desktop-side-links {
  flex: 1;
  padding-top: 2px;
}

.desktop-side-bottom {
  margin-top: auto;
  padding-top: 24px;
}

.desktop-nav-link,
.desktop-nav-button {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 0 18px;
  color: rgba(245,245,245,0.96);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Manrope', sans-serif;
  transition: transform 0.18s ease, opacity 0.18s ease, color 0.18s ease, background 0.18s ease;
  text-align: left;
  position: relative;
  border-radius: 18px;
}

.desktop-side-nav:hover .desktop-nav-link,
.desktop-side-nav:hover .desktop-nav-button {
  width: 100%;
}

.desktop-nav-link:hover,
.desktop-nav-button:hover {
  transform: translateX(2px);
  background:
    linear-gradient(90deg, rgba(212,175,55,0.16), rgba(212,175,55,0.05) 58%, transparent);
}

.desktop-nav-link.active,
.desktop-nav-button.active {
  color: #fff5d2;
  background: transparent;
}

.desktop-nav-link.active::after,
.desktop-nav-link.active::after,
.desktop-nav-button.active::after {
  display: none;
}

.desktop-nav-icon,
.mobile-nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.desktop-nav-icon {
  width: 30px;
  height: 30px;
}

.mobile-nav-icon {
  width: 24px;
  height: 24px;
}

.nav-icon-mask {
  width: 100%;
  height: 100%;
  display: block;
  background:
    #B0B0B0 !important;
  -webkit-mask-image: var(--icon-url);
  mask-image: var(--icon-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter: none;
  opacity: 0.98;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease, background 0.18s ease;
  pointer-events: none;
  user-select: none;
}

.desktop-nav-link:hover .nav-icon-mask,
.desktop-nav-button:hover .nav-icon-mask,
.mobile-nav-link:hover .nav-icon-mask {
  transform: scale(1.04);
  opacity: 1;
  background: #f5c84b !important;
  filter: none;
}

.desktop-nav-link.active .nav-icon-mask,
.desktop-nav-button.active .nav-icon-mask,
.mobile-nav-link.active .nav-icon-mask {
  background: #FFD76A !important;
  filter: none;
}

.desktop-nav-label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1px;
  font-family: 'Manrope', sans-serif;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.26s ease,
    transform 0.34s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
  min-width: 170px;
  max-width: 200px;
  overflow: visible;
  text-overflow: clip;
  text-align: left;
}

.desktop-side-nav:hover .desktop-nav-label {
  opacity: 1;
  transform: translateX(0);
}

.mobile-bottom-nav-wrap {
  display: none;
}

.auth-panel-wrap {
  max-width: 720px;
  margin: 0 auto 0;
}

.auth-box {
  width: min(720px, 100%);
  text-align: left;
  margin: 0 auto;
  padding: 8px 0 0;
}

.auth-box h3 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0,0,0,0.28);
  font-family: 'Space Grotesk', sans-serif;
}

.auth-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.auth-box input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(16,16,16,0.92) 0%, rgba(12,12,12,0.96) 100%);
  color: white;
  font-size: 14px;
  outline: none;
  min-height: 46px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 6px 16px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  font-family: 'Manrope', sans-serif;
}

.auth-box input:focus {
  border-color: rgba(212,175,55,0.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 3px rgba(212,175,55,0.08);
}

.auth-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.auth-message {
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  color: #cfcfcf;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0,0,0,0.28);
  font-family: 'Manrope', sans-serif;
}

.metal-btn {
  border: 1px solid rgba(255,255,255,0.16);
  background:
    linear-gradient(180deg, #fbfbfb 0%, #d6d6d6 16%, #b6b6b6 35%, #8b8b8b 52%, #d2d2d2 72%, #f4f4f4 100%);
  color: #151515;
  padding: 13px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.72),
    inset 0 -2px 3px rgba(0,0,0,0.18),
    0 10px 22px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  backdrop-filter: blur(2px);
  font-family: 'Manrope', sans-serif;
}

.metal-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.metal-btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.metal-btn .icon {
  color: #6a560c;
  margin-right: 7px;
  font-size: 15px;
}

.submit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  color: #231700;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  background:
    linear-gradient(180deg, #fff5c9 0%, #f4d77a 20%, #d4af37 52%, #b98816 75%, #7c5a11 100%);
  border: 1px solid rgba(255, 230, 150, 0.38);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.45),
    inset 0 -2px 4px rgba(90,50,0,0.28),
    0 12px 26px rgba(212,175,55,0.22),
    0 0 0 1px rgba(212,175,55,0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,255,255,0.22);
  backdrop-filter: blur(2px);
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
}

.submit-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.page-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.hero-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    radial-gradient(circle at top, rgba(212,175,55,0.12), transparent 55%),
    linear-gradient(180deg, rgba(24,24,24,0.88) 0%, rgba(17,17,17,0.94) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  padding: 30px 28px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.42),
    0 0 35px rgba(212,175,55,0.10),
    inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  text-align: center;
}

.section-kicker {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.82;
  margin-bottom: 10px;
}

.page-title {
  font-size: clamp(30px, 5vw, 46px);
  margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.3);
}

.page-note {
  max-width: 620px;
  margin: 0 auto;
  color: #ddd;
  font-size: 15px;
  line-height: 1.7;
}

.panel-card {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(22,22,22,0.86) 0%, rgba(16,16,16,0.92) 100%);
  border-radius: 26px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field-group {
  text-align: left;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Space Grotesk', sans-serif;
  opacity: 0.82;
}

.field-input,
.field-textarea,
.field-file,
.field-select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(16,16,16,0.92) 0%, rgba(12,12,12,0.96) 100%);
  color: white;
  font-size: 15px;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 6px 16px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  font-family: 'Manrope', sans-serif;
}

.field-input,
.field-file,
.field-select {
  min-height: 52px;
  padding: 0 14px;
}

.field-select {
  appearance: none;
}

.field-textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
}

.field-input:focus,
.field-textarea:focus,
.field-file:focus,
.field-select:focus {
  border-color: rgba(212,175,55,0.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 3px rgba(212,175,55,0.08);
}

.field-file {
  padding: 12px 14px;
  color: #ddd;
  cursor: pointer;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(16,16,16,0.92) 0%, rgba(12,12,12,0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 6px 16px rgba(0,0,0,0.18);
}

.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.checkbox-copy {
  color: #ddd;
  font-size: 14px;
  line-height: 1.6;
}

.form-meta {
  margin-top: 8px;
  color: #9f9f9f;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.notice-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 16px 18px;
  text-align: center;
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 18px;
}

.action-row {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.status-box {
  margin-top: 18px;
  min-height: 22px;
  color: #cfcfcf;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.sub-link-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ghost-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,175,55,0.32);
  font-weight: 500;
}

.ghost-link:hover {
  opacity: 0.88;
}

@media (max-width: 760px) {
  body {
    padding: 0 14px calc(var(--mobile-bottom-nav-height) + 18px);
    background:
      linear-gradient(180deg, rgba(7, 7, 7, 0.50) 0%, rgba(7, 7, 7, 0.76) 42%, rgba(7, 7, 7, 0.86) 100%),
      radial-gradient(circle at top, rgba(212, 175, 55, 0.12), transparent 26%),
      url("../../bg-mobile-final-1080x1920.webp");
    background-size: cover, auto, 100% auto;
    background-position: center top, center top, center top;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-attachment: scroll, scroll, scroll;
  }

  .desktop-side-nav {
    display: none;
  }

  .mobile-bottom-nav-wrap {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--mobile-bottom-nav-height);
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(212,175,55,0.08);
    box-shadow: 0 -8px 28px rgba(0,0,0,0.28);
    z-index: 130;
  }

  .mobile-bottom-nav {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2px;
    padding: 8px 8px 10px;
  }

  .mobile-nav-link {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    color: #f4f4f4;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    font-family: 'Manrope', sans-serif;
    padding: 6px 2px;
    background: transparent;
  }

  .mobile-nav-link.hidden {
    display: none !important;
  }

  .mobile-nav-link.active {
    color: #fff5d2;
  }

  .mobile-nav-label {
    line-height: 1;
  }

  .header-bar {
    grid-template-columns: 90px 1fr 42px;
    min-height: 68px;
    padding: 6px 8px 2px 6px;
  }

  .header-left {
    justify-content: flex-start;
    margin-left: -2px;
  }


  .currency-badge {
    min-height: 40px;
    width: max-content;
    min-width: 80px;
    max-width: none;
    padding: 0 12px 0 10px;
    gap: 8px;
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  .currency-badge-icon {
    width: 24px;
    height: 24px;
  }

  .currency-badge-value {
    font-size: 14px;
    white-space: nowrap;
  }

  .header-logo {
    width: min(200px, 40vw);
  }

  .header-icon-btn,
  .header-avatar-btn {
    width: 38px;
    height: 38px;
  }

  .account-menu {
  display: none !important;
    top: 48px;
    min-width: 150px;
  }

  .auth-box {
    width: min(420px, 100%);
  }

  .auth-inputs {
    grid-template-columns: 1fr;
  }

  .auth-row {
    flex-direction: column;
  }

  .auth-row .metal-btn,
  .submit-link {
    width: 100%;
  }

  .hero-card,
  .panel-card {
    padding: 20px;
  }
}


.field-group-wide {
  grid-column: 1 / -1;
}

.role-list {
  display: grid;
  gap: 12px;
}

.role-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.role-remove-btn {
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}

.role-remove-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.add-role-btn {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    linear-gradient(180deg, rgba(10,10,10,0.86), rgba(10,10,10,0.94));
  color: #f5f5f5;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 22px rgba(0,0,0,0.22),
    0 0 0 1px rgba(212,175,55,0.05);
}

.add-role-btn::before {
  content: '+';
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff6cb 0%, #e9c75f 24%, #d4af37 52%, #b98714 76%, #826113 100%);
  color: #111;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 6px 14px rgba(0,0,0,0.22);
}

.add-role-btn:hover {
  transform: translateY(-1px);
}

.toggle-field-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 34px;
  flex: 0 0 auto;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  transition: 0.2s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(212,175,55,0.8);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}


/* v8 header + mobile account menu refinements */
.account-menu:not(.hidden) {
  display: block !important;
}

.header-logo {
  width: min(216px, 33.75vw);
}

@media (max-width: 768px) {
  .header-wrap .site-shell > header,
  .header-wrap .site-header,
  .header-wrap header {
    grid-template-columns: 72px 1fr 72px;
    gap: 8px;
  }

  .header-left {
    justify-content: flex-start;
  }

  .header-center {
    justify-content: center;
  }

  .header-right {
    justify-content: flex-end;
  }

  .header-logo-link {
    width: 100%;
    justify-content: center;
  }

  .header-logo {
    width: min(150px, 46vw);
    margin: 0 auto;
  }

  .account-menu {
    top: 50px;
    right: 0;
    min-width: 180px;
    padding: 8px;
  }

  .account-menu-actions {
    gap: 6px;
  }

  .account-menu .metal-btn,
  .account-menu .account-menu-link {
    min-height: 42px;
    border-radius: 14px;
    font-size: 14px;
  }
}


/* v10 unified mobile header + upward account menu */
@media (max-width: 768px) {
  .header-wrap .site-shell > header,
  .header-wrap .site-header,
  .header-wrap header {
    grid-template-columns: 72px 1fr 72px;
    gap: 8px;
  }

  .header-left {
    justify-content: flex-start;
  }

  .header-center {
    justify-content: center;
  }

  .header-right {
    justify-content: flex-end;
  }

  .header-logo-link {
    width: 100%;
    justify-content: center;
    transform: none;
  }

  .header-logo {
    width: min(150px, 46vw);
    margin: 0 auto;
  }

  .account-menu {
    top: auto;
    bottom: 50px;
    right: 0;
    min-width: 180px;
    padding: 8px;
  }

  .account-menu-actions {
    gap: 6px;
  }

  .account-menu .metal-btn,
  .account-menu .account-menu-link {
    min-height: 42px;
    border-radius: 14px;
    font-size: 14px;
  }
}


/* v11 mobile account menu visibility fix */
@media (max-width: 768px) {
  .header-right {
    overflow: visible;
  }

  .account-menu {
    top: 50px;
    bottom: auto;
    right: 0;
    left: auto;
    min-width: 176px;
    max-width: min(220px, calc(100vw - 20px));
    transform: none;
  }
}


/* v13 remove notifications shortcut from avatar popup */
#accountNotificationsLink {
  display: none !important;
}


/* v22 mobile background force */
@media (max-width: 768px) {
  body {
    background:
      linear-gradient(180deg, rgba(7, 7, 7, 0.46) 0%, rgba(7, 7, 7, 0.72) 45%, rgba(7, 7, 7, 0.84) 100%),
      radial-gradient(circle at top, rgba(212, 175, 55, 0.14), transparent 30%),
      url("../../bg-mobile-final-1080x1920.webp") !important;
    background-size: cover, auto, 100% auto !important;
    background-position: center top, center top, center top !important;
    background-repeat: no-repeat, no-repeat, no-repeat !important;
    background-attachment: scroll, scroll, scroll !important;
  }
}


@media (max-width: 768px) {
  body {
    background-size: cover, auto, 100% auto !important;
    background-position: center top, center top, center top !important;
    background-repeat: no-repeat, no-repeat, no-repeat !important;
    background-attachment: scroll, scroll, scroll !important;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    body {
      background-size: cover, auto, cover !important;
      background-position: center top, center top, center top !important;
      background-attachment: scroll, scroll, scroll !important;
    }
  }
}

/* PREMIUM UI V3 - shared visual polish */
:root{--premium-bg:#050507;--premium-surface:rgba(18,18,22,.74);--premium-border:rgba(255,255,255,.105);--premium-gold:#f5c84b;--premium-muted:rgba(255,255,255,.68)}
body{background:radial-gradient(circle at 50% -10%,rgba(245,200,75,.12),transparent 34%),radial-gradient(circle at 88% 20%,rgba(146,74,255,.09),transparent 28%),#050507!important;color:#fff!important}
.logo-slogan,.site-slogan,.slogan,[class*="slogan"]{color:#fff!important;text-shadow:0 0 18px rgba(255,255,255,.16)!important}
.auth-card,.auth-panel-wrap,.hero-card,.panel-card,.dashboard-card,.metrics-card,.priority-card,.store-hero-card,.store-balance-card,.store-card,.empty-card,.state-card,.check-card,.playlist-card,main section:not(.desktop-side-nav-panel){background:rgba(18,18,22,.74)!important;border-color:rgba(255,255,255,.105)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 24px 70px rgba(0,0,0,.50),0 0 42px rgba(245,200,75,.08)!important;backdrop-filter:blur(20px) saturate(1.18)!important;-webkit-backdrop-filter:blur(20px) saturate(1.18)!important}
.auth-card:hover,.hero-card:hover,.panel-card:hover,.dashboard-card:hover,.store-card:hover,.playlist-card:hover{border-color:rgba(245,200,75,.38)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 28px 78px rgba(0,0,0,.54),0 0 48px rgba(245,200,75,.15)!important}

/* Sidebar icon progress-bar visual match start */
/* Matches the main progress bar treatment without changing button backgrounds. */
.nav-icon-mask {
  position: relative !important;
  overflow: visible !important;
  background:
    #B0B0B0 !important;
  filter: none;
  opacity: 1 !important;
}

.nav-icon-mask::before {
  content: "";
  position: absolute;
  inset: -1px;
  display: block;
  background:
    #B0B0B0 !important;
  -webkit-mask-image: var(--icon-url);
  mask-image: var(--icon-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter: blur(6px);
  opacity: 0.34;
  pointer-events: none;
  z-index: -1;
}

.desktop-nav-link:hover .nav-icon-mask,
.desktop-nav-button:hover .nav-icon-mask,
.mobile-nav-link:hover .nav-icon-mask,
.desktop-nav-link.active .nav-icon-mask,
.desktop-nav-button.active .nav-icon-mask,
.mobile-nav-link.active .nav-icon-mask {
  background: #FFD76A !important;
  filter: none;
}
/* Sidebar icon progress-bar visual match end */

/* ================================================================
   Edit Profile — glass style (desktop + mobile)
   Matched to submit-track page glass language
   ================================================================ */
:root {
  --edit-glass-bg: rgba(255,255,255,0.06);
  --edit-glass-border: rgba(255,255,255,0.14);
  --edit-glass-border-top: rgba(255,255,255,0.22);
  --edit-glass-hover: rgba(212,175,55,0.45);
}

/* Cards & containers */
.page-wrap .panel-card,
.page-wrap .notice-box,
.page-wrap .state-card,
.page-wrap .auth-card,
.page-wrap .auth-panel-wrap {
  background: var(--edit-glass-bg) !important;
  background-image: none !important;
  border: 1px solid var(--edit-glass-border) !important;
  border-top: 1px solid var(--edit-glass-border-top) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 8px 32px rgba(0,0,0,0.28) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border-radius: 28px !important;
  padding: 28px !important;
}

/* Inputs / selects / textarea */
.page-wrap .field-input,
.page-wrap .field-textarea,
.page-wrap .field-file,
.page-wrap .field-select {
  background: rgba(255,255,255,0.06) !important;
  background-image: none !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-top: 1px solid rgba(255,255,255,0.22) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 8px 24px rgba(0,0,0,0.20) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
}

.page-wrap .field-input:focus,
.page-wrap .field-textarea:focus,
.page-wrap .field-file:focus,
.page-wrap .field-select:focus {
  border-color: rgba(212,175,55,0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 3px rgba(212,175,55,0.12),
    0 0 22px rgba(212,175,55,0.14) !important;
  outline: none !important;
}

.page-wrap .field-input::placeholder,
.page-wrap .field-textarea::placeholder {
  color: rgba(255,255,255,0.48) !important;
}

.page-wrap .field-select option {
  background: #141416;
  color: #ffffff;
}

/* Buttons */
.page-wrap .gold-btn,
.page-wrap .ghost-btn,
.page-wrap .metal-btn,
.page-wrap button:not(.desktop-nav-button):not(.mobile-nav-link):not(.desktop-nav-link) {
  background: rgba(255,255,255,0.055) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-top: 1px solid rgba(255,255,255,0.22) !important;
  border-radius: 999px !important;
  text-shadow: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 12px 30px rgba(0,0,0,0.30) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background-color .18s ease !important;
}

.page-wrap .gold-btn:hover,
.page-wrap .ghost-btn:hover,
.page-wrap .metal-btn:hover,
.page-wrap button:not(.desktop-nav-button):not(.mobile-nav-link):not(.desktop-nav-link):hover {
  transform: translateY(-2px) !important;
  background: rgba(255,255,255,0.075) !important;
  color: #ffffff !important;
  border-color: var(--edit-glass-hover) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 16px 38px rgba(0,0,0,0.36),
    0 0 24px rgba(212,175,55,0.18) !important;
}

/* Ghost link */
.page-wrap .ghost-link {
  color: rgba(255,255,255,0.86) !important;
  border-bottom-color: rgba(255,255,255,0.18) !important;
}
.page-wrap .ghost-link:hover {
  color: #ffffff !important;
  border-bottom-color: rgba(212,175,55,0.45) !important;
}

/* Profile photo upload area */
.page-wrap .photo-upload-wrap,
.page-wrap .photo-dropzone {
  background: rgba(255,255,255,0.04) !important;
  border: 1px dashed rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-radius: 20px !important;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .page-wrap .panel-card,
  .page-wrap .auth-card,
  .page-wrap .auth-panel-wrap {
    padding: 22px 16px !important;
    border-radius: 24px !important;
  }
}

/* ================================================================
   Edit Profile — UI updates
   ================================================================ */

/* Remove hero-card dark rectangle */
.hero-card {
  display: none !important;
}

/* field-label-row: label + inline toggle side by side */
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.field-label-row .field-label {
  margin-bottom: 0;
}

/* Inline toggle */
.inline-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-toggle-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
}

/* Glass add role button */
.glass-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f4d77a;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.30);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.glass-add-btn:hover {
  background: rgba(212,175,55,0.13);
  border-color: rgba(212,175,55,0.50);
}

/* Photo preview */
.photo-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 14px;
}

.photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.photo-preview-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

/* Bio counter */
#bioCount {
  float: right;
}

/* Role-list spacing */
.role-list {
  margin-bottom: 4px;
}


/* ================================================================
   Edit Profile — fixes round 2
   ================================================================ */

/* 1. Remove dark rectangle: auth-panel-wrap */
#authPanelWrap,
.auth-panel-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* 2. Add role button: bigger + spacing */
.glass-add-btn {
  padding: 10px 22px !important;
  font-size: 13px !important;
  margin-top: 16px !important;
  margin-bottom: 8px !important;
}

/* 3. Inline toggle: left-aligned */
.field-label-row {
  align-items: flex-start;
}

.inline-toggle {
  flex-shrink: 0;
  margin-left: 0;
}

/* 4. City autocomplete dropdown */
.city-suggestions {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  background: rgba(18, 16, 10, 0.96);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 12px;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.city-suggestions li {
  padding: 11px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.12s;
}

.city-suggestions li:last-child {
  border-bottom: none;
}

.city-suggestions li:hover,
.city-suggestions li.highlighted {
  background: rgba(212,175,55,0.10);
  color: #f4d77a;
}

.field-group {
  position: relative;
}

/* 5. Photo preview */
.photo-preview-wrap {
  display: flex !important;
  width: 96px !important;
  height: 96px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.06) !important;
  border: 2px solid rgba(212,175,55,0.25) !important;
  margin-bottom: 14px !important;
  flex-shrink: 0 !important;
}

.photo-preview {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.photo-preview-fallback {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.45) !important;
}

/* Toggle left-aligned inside field */
.inline-toggle--left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 8px 0 10px !important;
}

.inline-toggle--left .inline-toggle-label {
  font-size: 12px !important;
  color: rgba(255,255,255,0.45) !important;
}

/* Square photo preview */
.photo-preview-wrap--square {
  width: 120px !important;
  height: 120px !important;
  border-radius: 12px !important;
}

.photo-preview-wrap--square .photo-preview {
  border-radius: 10px !important;
}

.photo-preview-wrap--square .photo-preview-fallback {
  border-radius: 10px !important;
}

/* === toggle row spacing === */
.inline-toggle--left {
  margin-top: 14px !important;
}
/* === end toggle row spacing === */
