.auth-page {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
.auth-header { padding: 0.9rem 1.2rem; }
.auth-header-note { color: #8f8d98; font-size: .9rem; }
.auth-main { position: relative; z-index: 1; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 34px; }
.auth-shell { display: grid; grid-template-columns: .72fr 1fr; gap: 34px; align-items: center; }
.auth-brand-copy { padding: 20px 12px 20px 4px; }
.auth-eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .18em; font-size: .76rem; margin-bottom: 14px; }
.auth-brand-copy h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 18px; }
.auth-brand-copy > p:last-child { color: #9d9aa8; max-width: 470px; line-height: 1.7; }
.auth-card { background: rgba(255,255,255,.05); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: 0 25px 80px rgba(0,0,0,.35); }
.auth-card-head { text-align: center; margin-bottom: 25px; }
.auth-kicker { color: var(--accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.auth-card h2 { font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.01em; margin: 5px 0 7px; }
.auth-card-head p { color: #97949f; font-size: .92rem; }
.auth-form { display: flex; flex-direction: column; gap: 9px; }
.auth-form > label:not(.check-label) { font-size: .86rem; font-weight: 600; margin-top: 7px; }
.auth-form > input:not([type="checkbox"]):not([type="radio"]) { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 14px; border: 1px solid #30303a; border-radius: 8px; outline: 0; background: rgba(8, 9, 15, .92); color: var(--text); caret-color: var(--accent); font: inherit; font-size: .92rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-form > input:not([type="checkbox"]):not([type="radio"]):hover { border-color: #4b4a58; }
.auth-form > input:not([type="checkbox"]):not([type="radio"]):focus { border-color: var(--accent); background: rgba(8, 16, 24, .98); box-shadow: 0 0 0 3px rgba(34, 211, 238, .14); }
.auth-form > input:not([type="checkbox"]):not([type="radio"])::placeholder { color: #706e7d; }
.auth-form > input:-webkit-autofill,
.auth-form > input:-webkit-autofill:hover,
.auth-form > input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px #08090f inset; transition: background-color 9999s ease-out; }
.auth-input-wrap { display: flex; align-items: center; border: 1px solid #30303a; background: #0c0c12; border-radius: 8px; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.auth-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.16); }
.auth-input-wrap > span { color: #7f7c87; width: 42px; text-align: center; }
.auth-input-wrap input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: white; padding: 13px 8px 13px 0; font-size: .92rem; }
.auth-input-wrap input::placeholder { color: #66636e; }
.password-toggle { border: 0; background: transparent; color: #77747f; padding: 10px 13px; cursor: pointer; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 9px 0 7px; }
.check-label { display: flex; align-items: flex-start; gap: 8px; color: #d2d0d7; font-size: .82rem; cursor: pointer; }
.check-label input { accent-color: var(--accent); margin-top: 2px; }
.text-button { border: 0; background: transparent; color: var(--accent); cursor: pointer; font: inherit; }
.auth-submit { width: 100%; margin-top: 7px; min-height: 50px; border: 0; border-radius: 7px; color: white; background: var(--gradient); font-size: 1rem; font-weight: 800; cursor: pointer; transition: transform .2s, filter .2s; }
.auth-submit:hover { transform: translateY(-1px); filter: brightness(1.08); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #77747f; margin: 22px 0 14px; font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: #2c2c35; flex: 1; }
.google-button { width: 100%; min-height: 48px; border-radius: 8px; border: 1px solid #30303a; background: transparent; color: #f2f2f5; cursor: pointer; font-size: .9rem; }
.google-button strong { color: #4285f4; font-size: 1.05rem; margin-right: 8px; }
.auth-switch { text-align: center; color: #9996a1; font-size: .86rem; margin-top: 22px; }
.auth-error { min-height: 20px; text-align: center; color: #ff6a9e; font-size: .83rem; margin-top: 12px; }
.auth-form small { color: #a5a2ad; font-size: .78rem; line-height: 1.4; }
.terms-label { margin-top: 8px; line-height: 1.4; }
.terms-label a { color: var(--accent); }
.auth-features { display: flex; justify-content: center; gap: 42px; margin-top: 30px; }
.auth-features > div { display: grid; grid-template-columns: 32px auto; column-gap: 10px; align-items: center; }
.auth-features span { grid-row: span 2; color: var(--accent); font-size: 1.55rem; text-align: center; }
.auth-features strong { font-size: .9rem; }
.auth-features small { color: #7f7c87; font-size: .76rem; }
.auth-card[hidden] { display: none; }

.user-menu { position: relative; margin-left: .25rem; }
.user-menu-button { display: flex; align-items: center; gap: .55rem; border: 1px solid #30303a; background: #0d0d13; color: #fff; border-radius: 999px; padding: .35rem .7rem .35rem .35rem; cursor: pointer; }
.user-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); font-weight: 800; font-size: .8rem; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.user-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); display: flex; flex-direction: column; gap: 8px; min-width: 238px; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: linear-gradient(155deg, rgba(12,18,24,.98), rgba(5,8,12,.98)); box-shadow: 0 24px 60px rgba(0,0,0,.52), 0 0 30px rgba(34,211,238,.05); }
.user-menu-email { order: 0; color: #8d9aa2; font-size: .76rem; padding: 3px 4px 9px; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid rgba(255,255,255,.08); }
.user-account-link, .user-switch-profile { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; box-sizing: border-box; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; color: #edfaff; text-align: center; text-decoration: none; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 750; transition: border-color .2s, background .2s, color .2s, transform .2s, box-shadow .2s; }
.user-account-link { order: 1; border-color: rgba(34,211,238,.75); background: linear-gradient(135deg, #06b6d4, #1687ee); color: #031216; box-shadow: 0 8px 22px rgba(6,182,212,.18); }
.user-switch-profile { order: 2; background: rgba(34,211,238,.07); }
.user-account-link:hover { border-color: #67e8f9; background: linear-gradient(135deg, #22d3ee, #2b7fff); color: #020b0e; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(34,211,238,.25); }
.user-switch-profile:hover { border-color: rgba(34,211,238,.7); background: rgba(34,211,238,.13); color: #67e8f9; transform: translateY(-1px); }
.user-menu-panel button[data-logout-button] { order: 3; width: 100%; min-height: 38px; margin-top: 2px; border: 0; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; padding: 10px 8px 4px; background: transparent; color: #89959d; cursor: pointer; font-size: .78rem; font-weight: 650; }
.user-menu-panel button[data-logout-button]:hover { border-color: rgba(255,255,255,.08); color: #fb7185; background: transparent; }
.user-menu[hidden], .user-menu-panel[hidden] { display: none; }

.header-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: .6rem; position: relative; z-index: 50; min-width: max-content; }
.search-box { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.search-box input[type="search"] { width: min(360px, 42vw); min-height: 38px; padding: 0 .9rem; border: 1px solid rgba(34, 211, 238, .35); border-radius: 999px; background: rgba(10, 11, 18, .9); color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.search-box input[type="search"]:focus { border-color: rgba(34, 211, 238, .8); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
.search-box input[type="search"]::placeholder { color: #777985; }
.search-box .header-right { grid-column: auto; }
.auth-open-btn { display: inline-flex; align-items: center; justify-content: center; visibility: visible; opacity: 1; border: 1px solid #30303a; background: transparent; color: var(--text); border-radius: 999px; padding: .5rem 1.15rem; cursor: pointer; font-size: .85rem; font-weight: 600; transition: border-color .2s, color .2s; white-space: nowrap; }
.auth-open-btn:hover { border-color: var(--accent); color: var(--accent); }
.auth-open-btn[hidden] { display: none; }

.auth-modal-overlay { position: fixed; inset: 0; background: rgba(5,5,10,.72); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 300; padding: 20px; }
.auth-modal-overlay[hidden] { display: none; }
.auth-modal { width: min(420px, 100%); }
.auth-modal .auth-card { position: relative; max-height: 90vh; overflow-y: auto; }
.auth-modal-close { position: absolute; top: 14px; right: 14px; border: 0; background: transparent; color: #9d9aa8; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.auth-modal-close:hover { color: var(--text); }

.profile-choice-overlay .auth-card { max-width: 430px; margin: 0 auto; }
.profile-create-overlay .auth-card { max-width: 430px; margin: 0 auto; }
.profile-choice-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 22px; }
.profile-choice-wrapper { display: grid; gap: 6px; }
.profile-choice { display: flex; flex-direction: column; align-items: center; gap: 9px; min-height: 112px; padding: 14px 10px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; font: inherit; font-weight: 700; transition: border-color .2s, background .2s, transform .2s; }
.profile-choice:hover { border-color: var(--accent); background: rgba(34,211,238,.1); transform: translateY(-2px); }
.profile-delete-choice { border: 1px solid rgba(255, 95, 109, .45); border-radius: 6px; padding: 5px 8px; background: transparent; color: #ff7d88; cursor: pointer; font: inherit; font-size: .75rem; }
.profile-delete-choice:hover { border-color: #ff7d88; background: rgba(255, 95, 109, .1); }
.profile-add-choice { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; margin-top: 14px; border: 1px dashed rgba(34,211,238,.65); border-radius: 10px; background: transparent; color: var(--accent); cursor: pointer; font: inherit; font-size: .88rem; font-weight: 700; transition: background .2s, border-color .2s, transform .2s; }
.profile-add-choice span:first-child { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; font-size: 1.1rem; line-height: 1; }
.profile-add-choice:hover { border-color: var(--accent); background: rgba(34,211,238,.1); transform: translateY(-1px); }
.profile-create-overlay .auth-card-head { margin-bottom: 20px; }
.profile-create-overlay .auth-form { text-align: left; }
.profile-choice-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); color: #001018; font-size: 1.1rem; font-weight: 800; }
.profile-choice-loading { grid-column: 1 / -1; color: var(--text-muted); text-align: center; }
.avatar-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.avatar-option { width: 38px; height: 38px; border: 2px solid transparent; border-radius: 50%; background: var(--gradient); cursor: pointer; font-size: 1.15rem; }
.avatar-option:hover, .avatar-option.is-selected { border-color: #fff; transform: scale(1.08); }
.profile-remember { display: flex; align-items: center; gap: 9px; margin: 20px auto 0; padding: 0; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; font: inherit; font-size: .82rem; }
.profile-remember-box { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); font-size: .75rem; }
.guest-benefits { display: grid; gap: 11px; margin: 22px 0; color: var(--text-muted); font-size: .88rem; }
.guest-benefits div { display: flex; align-items: center; gap: 11px; }
.guest-benefits strong { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(34,211,238,.14); color: var(--accent); font-size: .75rem; }
.guest-continue { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; font: inherit; font-size: .88rem; }
.guest-continue:hover { border-color: var(--accent); color: var(--text); }

@media (max-width: 640px) {
  .auth-open-btn { padding: .45rem .85rem; font-size: .8rem; }
  .user-name { display: none; }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-copy { text-align: center; padding-bottom: 0; }
  .auth-brand-copy > p:last-child { margin: 0 auto; }
}
@media (max-width: 600px) {
  .auth-main { width: min(100% - 20px, 520px); padding-top: 28px; }
  .auth-card { padding: 24px 18px; border-radius: 14px; }
  .auth-card h2 { font-size: 1.65rem; }
  .auth-brand-copy h1 { font-size: 2.15rem; }
  .auth-features { flex-direction: column; gap: 15px; align-items: flex-start; margin-left: 15px; }
  .auth-header-note { display: none; }
}

.site-header .header-right {
  margin-right: 6px;
  max-width: calc(100% - 6px);
  box-sizing: border-box;
}

.site-header .header-right .auth-open-btn {
  margin-right: 0;
}

.site-header .header-right .user-menu {
  margin-right: 0;
}

@media (max-width: 900px) {
  .site-header .header-right {
    margin-right: 16px;
  }
}

@media (max-width: 600px) {
  .site-header .header-right {
    margin-right: 12px;
    max-width: calc(100% - 12px);
  }

  .site-header .header-right .auth-open-btn {
    max-width: 154px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


html, body{
  background-color:#000 !important;
  background-image:none !important;
}
main, .container, .wrapper, .page-wrapper, .app-wrapper{
  background: transparent !important;
}
