/* Kapponi 19X9 · Login polish and working theme switch */
#authContainer .auth-card {
  overflow: hidden;
  background: linear-gradient(145deg, #151519 0%, #0c0c0f 100%) !important;
  border-color: rgba(255,255,255,.16) !important;
}
#authContainer .auth-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -42% 30%;
  height: 180px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(242,13,37,.13), transparent 68%);
}
#authContainer .auth-card-heading,
#authContainer .auth-form,
#authContainer .auth-tabs { position: relative; z-index: 1; }
#authContainer .auth-card-heading strong { letter-spacing: -.055em !important; }
#authContainer .auth-input-wrap { transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important; }
#authContainer .auth-input-wrap:hover { border-color: rgba(255,255,255,.28) !important; }
#authContainer .auth-submit { letter-spacing: -.01em; }
#authContainer .auth-submit:hover:not(:disabled) { transform: translateY(-2px) !important; }
#authContainer .auth-divider { position: relative; z-index: 1; }
#authContainer .auth-community-links {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
#authContainer .auth-community-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  color: #d5d5d7 !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}
#authContainer .auth-community-link i { color: #f1f1ee !important; font-size: 14px; }
#authContainer .google-auth-btn {
  position: relative;
  justify-content: center !important;
  gap: 9px !important;
  text-align: center !important;
}
#authContainer .google-auth-btn > i {
  flex: 0 0 auto !important;
  margin: 0 !important;
  color: #f1f1ee !important;
  font-size: 14px !important;
}
#authContainer .google-auth-btn > span {
  display: inline-block;
  flex: 0 1 auto;
  line-height: 1.2;
  text-align: center;
}
#authContainer .auth-community-link:hover,
#authContainer .auth-community-link:focus-visible {
  color: #fff !important;
  background: rgba(255,255,255,.1) !important;
  border-color: rgba(255,255,255,.35) !important;
  outline: none;
  transform: translateY(-2px);
}
#authContainer .auth-community-link:focus-visible,
#authContainer .auth-theme-toggle:focus-visible,
#authContainer .auth-submit:focus-visible,
#authContainer .google-auth-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,.18) !important;
}
#authContainer .auth-social-links { display: none !important; }
#authContainer .auth-theme-toggle { position: relative; z-index: 2; }

/* The JavaScript already toggles html[data-theme]; these rules make that state visible. */
html[data-theme="light"] #authContainer.auth-container,
html[data-theme="light"] #authContainer.auth-page {
  color-scheme: light;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.95), transparent 42%), #eef0f4 !important;
  color: #1d2026 !important;
}
html[data-theme="light"] #authContainer .auth-grid-glow {
  opacity: .55;
  background-image: linear-gradient(rgba(27,32,40,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(27,32,40,.045) 1px, transparent 1px) !important;
}
html[data-theme="light"] #authContainer .auth-top-brand,
html[data-theme="light"] #authContainer .auth-top-brand b { color: #1d2026 !important; }
html[data-theme="light"] #authContainer .auth-language-control,
html[data-theme="light"] #authContainer .auth-language-control select,
html[data-theme="light"] #authContainer .auth-plans-link { color: #5d6470 !important; }
html[data-theme="light"] #authContainer .auth-card {
  background: linear-gradient(145deg, #ffffff 0%, #f5f6f8 100%) !important;
  border-color: rgba(28,35,46,.14) !important;
  box-shadow: 0 28px 70px rgba(31,42,58,.16), inset 0 1px rgba(255,255,255,.9) !important;
}
html[data-theme="light"] #authContainer .auth-card::before { background: linear-gradient(90deg, transparent, rgba(25,31,42,.22), transparent); }
html[data-theme="light"] #authContainer .auth-card::after { background: radial-gradient(circle, rgba(185,20,43,.09), transparent 68%); }
html[data-theme="light"] #authContainer .auth-card-brand { background: #eef0f3 !important; border-color: rgba(25,31,42,.14) !important; }
html[data-theme="light"] #authContainer .auth-card-heading strong { color: #1c2027 !important; }
html[data-theme="light"] #authContainer .auth-card-heading small,
html[data-theme="light"] #authContainer .auth-field-label > span,
html[data-theme="light"] #authContainer .auth-terms { color: #737a85 !important; }
html[data-theme="light"] #authContainer .auth-form > label,
html[data-theme="light"] #authContainer .auth-field-label label { color: #343a44 !important; }
html[data-theme="light"] #authContainer .auth-input-wrap,
html[data-theme="light"] #authContainer .google-auth-btn,
html[data-theme="light"] #authContainer .auth-community-link {
  color: #252a33 !important;
  background: #fff !important;
  border-color: rgba(30,38,50,.16) !important;
}
html[data-theme="light"] #authContainer .auth-input-wrap:hover,
html[data-theme="light"] #authContainer .google-auth-btn:hover,
html[data-theme="light"] #authContainer .auth-community-link:hover,
html[data-theme="light"] #authContainer .auth-community-link:focus-visible { border-color: rgba(30,38,50,.38) !important; background: #f7f8fa !important; }
html[data-theme="light"] #authContainer .auth-input-wrap input { color: #1c2027 !important; }
html[data-theme="light"] #authContainer .auth-input-wrap input::placeholder { color: #9aa1ab !important; }
html[data-theme="light"] #authContainer .auth-input-icon,
html[data-theme="light"] #authContainer .auth-community-link i,
html[data-theme="light"] #authContainer .google-auth-btn i { color: #4d5561 !important; }
html[data-theme="light"] #authContainer .auth-divider { color: #858c96; }
html[data-theme="light"] #authContainer .auth-divider::before,
html[data-theme="light"] #authContainer .auth-divider::after { background: rgba(30,38,50,.14); }
html[data-theme="light"] #authContainer .auth-footer { color: #7b828c !important; border-color: rgba(30,38,50,.12) !important; }
html[data-theme="light"] #authContainer .auth-theme-toggle { color: #4e5662; background: rgba(30,38,50,.06); border-color: rgba(30,38,50,.16); }
html[data-theme="light"] #authContainer .auth-theme-toggle:hover { color: #1c2027; background: rgba(30,38,50,.12); }
html[data-theme="light"] #authContainer .auth-forgot a,
html[data-theme="light"] #authContainer .auth-register-terms a { color: #5c626d !important; }

@media (max-width: 560px) {
  #authContainer .auth-community-link { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #authContainer .auth-community-link,
  #authContainer .auth-submit { transition: none !important; }
}

/* Explicit screen state for mobile browsers: never let the store sit behind login. */
body.auth-screen-active {
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
body.auth-screen-active #mainApp,
body.auth-screen-active .assistant-widget,
body.auth-screen-active #installBanner,
body.auth-screen-active #iosInstallOverlay,
body.auth-screen-active #cookieConsent {
  display: none !important;
}
body.auth-screen-active #authContainer {
  display: flex !important;
  visibility: visible !important;
}
body:not(.auth-screen-active) #authContainer {
  display: none !important;
}
body:not(.auth-screen-active) {
  min-height: 100dvh;
  overflow-x: hidden;
}


/* Auth language carried into the authenticated store: obsidian, graphite, white and red. */
:root {
  --login-black: #050506;
  --login-graphite: #101014;
  --login-panel: #151519;
  --login-line: rgba(255,255,255,.14);
  --login-red: #f20d25;
  --login-red-soft: rgba(242,13,37,.12);
}
body:not(.auth-screen-active),
body:not(.auth-screen-active) #mainApp {
  background: #050506 !important;
  color: #f4f4f5 !important;
}
body:not(.auth-screen-active)::before {
  background: radial-gradient(circle at 8% 0%, rgba(242,13,37,.12), transparent 28rem), radial-gradient(circle at 92% 18%, rgba(255,255,255,.035), transparent 24rem) !important;
}
body:not(.auth-screen-active) .main-header,
body:not(.auth-screen-active) .store-header,
body:not(.auth-screen-active) .professional-footer,
body:not(.auth-screen-active) .professional-footer-main,
body:not(.auth-screen-active) .professional-footer-bottom {
  background: rgba(5,5,6,.94) !important;
  border-color: var(--login-line) !important;
}
body:not(.auth-screen-active) .store-view,
body:not(.auth-screen-active) .home-view,
body:not(.auth-screen-active) .products-view,
body:not(.auth-screen-active) .downloads-view {
  color: #f4f4f5 !important;
}
body:not(.auth-screen-active) .home-command,
body:not(.auth-screen-active) .home-quick-card,
body:not(.auth-screen-active) .home-feature-strip,
body:not(.auth-screen-active) .home-live-community,
body:not(.auth-screen-active) .home-endcap,
body:not(.auth-screen-active) .catalog-hero,
body:not(.auth-screen-active) .catalog-controls,
body:not(.auth-screen-active) .store-benefits article,
body:not(.auth-screen-active) .product-card,
body:not(.auth-screen-active) .downloads-hero,
body:not(.auth-screen-active) .downloads-toolbar,
body:not(.auth-screen-active) .modal-content,
body:not(.auth-screen-active) .dashboard-content {
  background: linear-gradient(145deg, rgba(21,21,25,.98), rgba(10,10,13,.98)) !important;
  border-color: var(--login-line) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.38) !important;
}
body:not(.auth-screen-active) .home-primary-action,
body:not(.auth-screen-active) .hero-primary,
body:not(.auth-screen-active) .auth-btn,
body:not(.auth-screen-active) .btn-save,
body:not(.auth-screen-active) .profile-save-button,
body:not(.auth-screen-active) .cart-checkout {
  background: linear-gradient(135deg, #f20d25, #b90d24) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(242,13,37,.22) !important;
}
body:not(.auth-screen-active) .home-primary-action:hover,
body:not(.auth-screen-active) .hero-primary:hover,
body:not(.auth-screen-active) .auth-btn:hover,
body:not(.auth-screen-active) .btn-save:hover,
body:not(.auth-screen-active) .profile-save-button:hover {
  background: linear-gradient(135deg, #ff3048, #d11331) !important;
  transform: translateY(-2px);
}
body:not(.auth-screen-active) input,
body:not(.auth-screen-active) textarea,
body:not(.auth-screen-active) select,
body:not(.auth-screen-active) .search-box,
body:not(.auth-screen-active) .search-input {
  background: #0b0b0e !important;
  color: #f4f4f5 !important;
  border-color: var(--login-line) !important;
}
body:not(.auth-screen-active) .home-eyebrow,
body:not(.auth-screen-active) .section-eyebrow,
body:not(.auth-screen-active) .home-online-pill,
body:not(.auth-screen-active) .menu-item-icon,
body:not(.auth-screen-active) .home-quick-icon,
body:not(.auth-screen-active) .store-benefits i {
  color: #ff3048 !important;
}

/* Refined account drawer: clear hierarchy, compact rows and strong active/exit states. */
.account-dashboard-backdrop { background: rgba(0,0,0,.72) !important; backdrop-filter: blur(7px); }
.menu-box.account-menu {
  width: min(410px, calc(100vw - 22px)) !important;
  max-height: calc(100dvh - 22px) !important;
  overflow-y: auto !important;
  padding: 18px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 24px !important;
  background: linear-gradient(160deg, #17171c 0%, #08080b 72%) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 0 1px rgba(242,13,37,.08) inset !important;
}
.account-menu-head { padding: 4px 4px 16px !important; border-bottom: 1px solid rgba(255,255,255,.10) !important; }
.account-menu-kicker, .account-menu-label { color: #f20d25 !important; letter-spacing: .16em !important; font-weight: 800 !important; }
.account-menu-head strong { color: #fff !important; font-size: 22px !important; letter-spacing: -.04em; }
.account-menu-head p { color: #a0a0aa !important; }
.account-dashboard-close { width: 36px !important; height: 36px !important; border: 1px solid rgba(255,255,255,.13) !important; border-radius: 12px !important; background: rgba(255,255,255,.05) !important; color: #fff !important; }
.account-dashboard-overview { margin: 16px 0 !important; padding: 14px !important; border: 1px solid rgba(242,13,37,.30) !important; border-radius: 18px !important; background: linear-gradient(120deg, rgba(242,13,37,.16), rgba(255,255,255,.035)) !important; }
.account-dashboard-avatar { color: #fff !important; background: #f20d25 !important; box-shadow: 0 8px 22px rgba(242,13,37,.25); }
.account-dashboard-person strong, .account-dashboard-stat strong { color: #fff !important; }
.account-dashboard-person small, .account-dashboard-stat small { color: #a5a5ae !important; }
.account-menu-group { display: grid !important; gap: 7px !important; margin-top: 18px !important; }
.account-menu-item { min-height: 60px !important; display: grid !important; grid-template-columns: 38px minmax(0,1fr) 16px !important; align-items: center !important; gap: 10px !important; padding: 10px 12px !important; border: 1px solid transparent !important; border-radius: 15px !important; background: rgba(255,255,255,.035) !important; color: #fff !important; text-align: left !important; }
.account-menu-item:hover, .account-menu-item:focus-visible { border-color: rgba(242,13,37,.42) !important; background: rgba(242,13,37,.11) !important; transform: translateX(2px); outline: none; }
.menu-item-icon { width: 34px !important; height: 34px !important; display: grid !important; place-items: center !important; border-radius: 11px !important; background: rgba(242,13,37,.12) !important; color: #ff3048 !important; }
.menu-item-copy { min-width: 0; display: grid; gap: 3px; }
.menu-item-copy strong { color: #f7f7f8 !important; font-size: 12px !important; }
.menu-item-copy small { color: #8e8e98 !important; font-size: 10px !important; }
.menu-item-arrow { color: #767681 !important; }
.account-menu-item.logout { margin-top: 8px; color: #ff7180 !important; background: rgba(242,13,37,.09) !important; border-color: rgba(242,13,37,.20) !important; }
@media (max-width: 560px) {
  .menu-box.account-menu { inset: 10px 10px 10px auto !important; width: calc(100vw - 20px) !important; border-radius: 20px !important; }
  .home-command, .catalog-hero, .downloads-hero { border-radius: 20px !important; }
}
