:root {
  --bg: #0f1115;
  --bg-alt: #171a21;
  --surface: #20242d;
  --surface-soft: #282d38;
  --text: #f3f4f6;
  --text-strong: #ffffff;
  --muted: #aeb4c0;
  --muted-2: #727986;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --brand: #4778ff;
  --brand-2: #8f6cff;
  --brand-3: #27c7ff;
  --success: #7ee2aa;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1180px;
  --header-h: 72px;
}

html[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-soft: #eef1f5;
  --text: #1f2430;
  --text-strong: #0c111b;
  --muted: #5f6673;
  --muted-2: #7b8492;
  --line: rgba(18, 24, 36, 0.12);
  --line-strong: rgba(18, 24, 36, 0.18);
  --shadow: 0 18px 46px rgba(20, 30, 52, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 4%, rgba(71, 120, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(143, 108, 255, 0.12), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 26rem);
}

a {
  text-decoration: none;
}

/* New navbar */

.arthouse-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 17, 21, 0.82);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .arthouse-header {
  background: rgba(246, 247, 249, 0.86);
}

.arthouse-nav {
  width: min(100% - 36px, var(--container));
  min-height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.arthouse-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.arthouse-brand:hover {
  color: var(--text-strong);
}

.arthouse-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: transparent;
}

.arthouse-logo-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
}

.arthouse-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.arthouse-nav-links a,
.arthouse-products-button {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.arthouse-nav-links a:hover,
.arthouse-products-button:hover,
.arthouse-nav-links a:focus-visible,
.arthouse-products-button:focus-visible {
  color: var(--text-strong);
}

.arthouse-products {
  position: relative;
}

.arthouse-products-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 240px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.arthouse-products:hover .arthouse-products-menu,
.arthouse-products:focus-within .arthouse-products-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.arthouse-products-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.arthouse-products-menu a:hover {
  color: var(--text-strong);
  background: var(--surface-soft);
}

.arthouse-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arthouse-button,
.arthouse-icon-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

html[data-theme="light"] .arthouse-button,
html[data-theme="light"] .arthouse-icon-button {
  background: rgba(255, 255, 255, 0.82);
}

.arthouse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 0.92rem;
  font-weight: 750;
}

.arthouse-icon-button {
  width: 40px;
  display: grid;
  place-items: center;
}

.arthouse-button:hover,
.arthouse-icon-button:hover {
  color: var(--text-strong);
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.arthouse-button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(71, 120, 255, 0.28);
}

.arthouse-button-primary:hover {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #3f70f4, #805cff);
}

.arthouse-menu-toggle {
  display: none;
}

.arthouse-mobile-menu {
  position: fixed;
  inset: var(--header-h) 18px auto;
  z-index: 999;
  display: none;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.arthouse-mobile-menu.is-open {
  display: grid;
  gap: 8px;
}

.arthouse-mobile-menu a,
.arthouse-mobile-menu button {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.arthouse-mobile-menu a:hover,
.arthouse-mobile-menu button:hover {
  color: var(--text-strong);
  background: var(--surface-soft);
}

/* Page surface update */

main {
  background: transparent;
}

.carousel-main {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.py-5 {
  background: var(--bg);
}

.product-card {
  min-height: 430px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .product-card {
  color: #111827;
}

/* Make Bootstrap buttons closer to Websitefy style */

.btn-primary {
  border-color: transparent;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 750;
  box-shadow: 0 10px 22px rgba(71, 120, 255, 0.24);
}

.btn-primary:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #3f70f4, #805cff);
}

.btn-outline-secondary {
  border-radius: 8px;
  border-color: rgba(18, 24, 36, 0.2);
  font-weight: 750;
}

/* New footer */

.arthouse-footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-alt);
}

.arthouse-footer-container {
  width: min(100% - 36px, var(--container));
  margin: 0 auto;
}

.arthouse-footer-top {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.arthouse-footer-brand p {
  max-width: 330px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.arthouse-footer-title {
  margin-bottom: 14px;
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 850;
}

.arthouse-footer-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.arthouse-footer-list a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.arthouse-footer-list a:hover {
  color: var(--text-strong);
}

.arthouse-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.arthouse-social-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.arthouse-social-link:hover {
  color: var(--text-strong);
  border-color: var(--line-strong);
}

.arthouse-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.arthouse-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.arthouse-footer-bottom-links a {
  color: var(--muted);
}

.arthouse-footer-bottom-links a:hover {
  color: var(--text-strong);
}

/* Language dropdown */

.arthouse-language-select {
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 17px,
    calc(100% - 11px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.arthouse-language-select option {
  background: var(--surface);
  color: var(--text);
}

html[data-theme="light"] .arthouse-language-select {
  background-color: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.arthouse-mobile-language-select {
  width: 100%;
  min-height: 42px;
}

/* Arabic + Persian language fonts */

@font-face {
    font-family: 'Dubai';
    src: url('/fonts/arabic/DUBAI-LIGHT.TTF') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dubai';
    src: url('/fonts/arabic/DUBAI-REGULAR.TTF') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dubai';
    src: url('/fonts/arabic/DUBAI-MEDIUM.TTF') format('truetype');
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dubai';
    src: url('/fonts/arabic/DUBAI-BOLD.TTF') format('truetype');
    font-weight: 800 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn RD';
    src: url('/fonts/persian/Vazirmatn-RD-Light.TTF') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn RD';
    src: url('/fonts/persian/Vazirmatn-RD-Regular.TTF') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn RD';
    src: url('/fonts/persian/Vazirmatn-RD-Medium.TTF') format('truetype');
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn RD';
    src: url('/fonts/persian/Vazirmatn-RD-Bold.TTF') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn RD';
    src: url('/fonts/persian/Vazirmatn-RD-Black.TTF') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Use Dubai for Arabic */
html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea {
    font-family: 'Dubai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Use Vazirmatn for Persian/Farsi */
html[lang="fa"],
html[lang="fa"] body,
html[lang="fa"] button,
html[lang="fa"] input,
html[lang="fa"] select,
html[lang="fa"] textarea {
    font-family: 'Vazirmatn RD', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Fix heavy Latin logo/app-name fonts so RTL pages do not look cramped */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .arthouse-button,
html[lang="ar"] .btn,
html[lang="ar"] .product-header,
html[lang="ar"] .product-desc,
html[lang="ar"] .arthouse-footer-title,
html[lang="ar"] .arthouse-products-button,
html[lang="ar"] .arthouse-language-select,
html[lang="ar"] .arthouse-launch-badge,
html[lang="ar"] .arthouse-products-heading,
html[lang="ar"] [data-i18n] {
    font-family: 'Dubai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] h4,
html[lang="fa"] h5,
html[lang="fa"] h6,
html[lang="fa"] .arthouse-button,
html[lang="fa"] .btn,
html[lang="fa"] .product-header,
html[lang="fa"] .product-desc,
html[lang="fa"] .arthouse-footer-title,
html[lang="fa"] .arthouse-products-button,
html[lang="fa"] .arthouse-language-select,
html[lang="fa"] .arthouse-launch-badge,
html[lang="fa"] .arthouse-products-heading,
html[lang="fa"] [data-i18n] {
    font-family: 'Vazirmatn RD', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Preserve the ARTHOUSE brand/logo text font */
html[lang="ar"] .arthouse-logo-name,
html[lang="fa"] .arthouse-logo-name,
html[lang="ar"] .montserrat-app-name,
html[lang="fa"] .montserrat-app-name {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* RTL readability refinements */
html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .arthouse-nav,
html[dir="rtl"] .arthouse-footer-top,
html[dir="rtl"] .arthouse-footer-bottom,
html[dir="rtl"] .arthouse-launch-shell {
    direction: rtl;
}

html[dir="rtl"] .arthouse-nav-links,
html[dir="rtl"] .arthouse-nav-actions,
html[dir="rtl"] .arthouse-social-row,
html[dir="rtl"] .arthouse-launch-actions,
html[dir="rtl"] .btn-product {
    direction: rtl;
}

html[dir="rtl"] .arthouse-products-menu {
    text-align: right;
}

html[dir="rtl"] .product-card {
    text-align: center;
}


/* Fix Bootstrap product buttons on mobile and desktop */

.btn-product {
  align-items: center;
}

.btn-product .btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  text-align: center;
  padding: 0 16px;
}

@media (max-width: 768px) {
  .btn-product {
    flex-direction: column;
    width: 100%;
  }

  .btn-product .btn {
    width: 100%;
    margin: 0;
  }
}

/* Animated hamburger */

.arthouse-menu-toggle {
  position: relative;
  place-items: center;
}

.hamburger-line {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.24s ease,
    opacity 0.18s ease,
    top 0.24s ease;
}

.hamburger-line:nth-child(1) {
  top: 13px;
}

.hamburger-line:nth-child(2) {
  top: 19px;
}

.hamburger-line:nth-child(3) {
  top: 25px;
}

.arthouse-menu-toggle.is-open .hamburger-line:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.arthouse-menu-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.arthouse-menu-toggle.is-open .hamburger-line:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* Better RTL support for Arabic/Persian */

html[dir="rtl"] .arthouse-products-menu {
  left: auto;
  right: 50%;
  transform: translateX(50%) translateY(8px);
}

html[dir="rtl"] .arthouse-products:hover .arthouse-products-menu,
html[dir="rtl"] .arthouse-products:focus-within .arthouse-products-menu {
  transform: translateX(50%) translateY(0);
}

html[dir="rtl"] .arthouse-mobile-menu a,
html[dir="rtl"] .arthouse-mobile-menu button {
  text-align: right;
}

/* Fix primary buttons in light mode */
.arthouse-button.arthouse-button-primary,
.arthouse-button.arthouse-button-primary:visited,
html[data-theme="light"] .arthouse-button.arthouse-button-primary,
html[data-theme="light"] .arthouse-button.arthouse-button-primary:visited {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(71, 120, 255, 0.28);
}

.arthouse-button.arthouse-button-primary:hover,
html[data-theme="light"] .arthouse-button.arthouse-button-primary:hover {
  border-color: transparent !important;
  background: linear-gradient(135deg, #3f70f4, #805cff) !important;
  color: #fff !important;
}

/* Keep product buttons compact on mobile */
.btn-product {
  align-items: center;
  flex-wrap: wrap;
}

.btn-product .btn {
  width: auto !important;
  min-width: 118px;
  min-height: 40px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1.1;
  padding: 0 16px;
  margin: 0 !important;
  text-align: center;
}

@media (max-width: 768px) {
  .btn-product {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .btn-product .btn {
    width: auto !important;
    max-width: max-content;
  }
}

/* Fix product dropdown hover gap */
.arthouse-products {
  position: relative;
  padding: 22px 0;
  margin: -22px 0;
}

.arthouse-products::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -24px;
  right: -24px;
  height: 18px;
}

.arthouse-products-menu {
  top: calc(100% + 8px);
}

/* Language dropdown */
.arthouse-language-select {
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 17px,
    calc(100% - 11px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.arthouse-language-select option {
  color: var(--text);
  background: var(--surface);
}

html[data-theme="light"] .arthouse-language-select {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.82);
}

.arthouse-mobile-language-select {
  width: 100%;
  min-height: 42px;
}

/* Animated hamburger */
.arthouse-menu-toggle {
  position: relative;
  place-items: center;
}

.hamburger-line {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.24s ease,
    opacity 0.18s ease,
    top 0.24s ease;
}

.hamburger-line:nth-child(1) {
  top: 13px;
}

.hamburger-line:nth-child(2) {
  top: 19px;
}

.hamburger-line:nth-child(3) {
  top: 25px;
}

.arthouse-menu-toggle.is-open .hamburger-line:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.arthouse-menu-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.arthouse-menu-toggle.is-open .hamburger-line:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* Hide desktop language dropdown on mobile */
@media (max-width: 1060px) {
  .arthouse-nav-actions .arthouse-language-select {
    display: none;
  }
}

/* RTL support */
html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .arthouse-nav,
html[dir="rtl"] .arthouse-nav-actions,
html[dir="rtl"] .btn-product,
html[dir="rtl"] .arthouse-social-row,
html[dir="rtl"] .arthouse-footer-bottom,
html[dir="rtl"] .arthouse-footer-bottom-links {
  direction: rtl;
}

html[dir="rtl"] .arthouse-products-menu {
  left: auto;
  right: 50%;
  transform: translateX(50%) translateY(8px);
}

html[dir="rtl"] .arthouse-products:hover .arthouse-products-menu,
html[dir="rtl"] .arthouse-products:focus-within .arthouse-products-menu {
  transform: translateX(50%) translateY(0);
}

html[dir="rtl"] .arthouse-mobile-menu a,
html[dir="rtl"] .arthouse-mobile-menu button {
  text-align: right;
}

@media (max-width: 1060px) {
  .arthouse-nav-links,
.arthouse-nav-actions .arthouse-login-link,
.arthouse-nav-actions .arthouse-signup-link,
.arthouse-nav-actions .arthouse-language-select {
  display: none;
}

  .arthouse-menu-toggle {
    display: grid;
  }

  .arthouse-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arthouse-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .arthouse-nav {
    width: min(100% - 28px, var(--container));
  }

  .arthouse-logo {
    width: 42px;
    height: 42px;
  }

  .arthouse-footer-container {
    width: min(100% - 28px, var(--container));
  }

  .arthouse-footer-top {
    grid-template-columns: 1fr;
  }

  .arthouse-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

.arthouse-auth-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.arthouse-account-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(71, 120, 255, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

html[data-theme="light"] .arthouse-account-button {
  background: rgba(255, 255, 255, 0.82);
}

.arthouse-account-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.arthouse-account-button img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.arthouse-mobile-auth-links {
  display: grid;
  gap: 8px;
}

.arthouse-mobile-account-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-strong);
  background: var(--surface-soft);
  font-weight: 750;
}

.arthouse-mobile-account-link img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1060px) {
  .arthouse-auth-links {
    display: none;
  }
}

.arthouse-account-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.arthouse-account-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
}

.arthouse-account-button img {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.arthouse-account-button:hover {
  border-color: var(--line-strong, rgba(255, 255, 255, 0.28));
  background: rgba(255, 255, 255, 0.08);
}

.arthouse-account-button::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1001;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: 9px;
  color: var(--text-strong, #fff);
  background: var(--surface, #151922);
  box-shadow: var(--shadow, 0 16px 40px rgba(0, 0, 0, 0.25));
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 160ms ease;
  pointer-events: none;
}

.arthouse-account-button:hover::after,
.arthouse-account-button:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.arthouse-account-menu-wrap.is-open .arthouse-account-button::after {
  display: none;
}

.arthouse-account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1000;
  width: 230px;
  padding: 10px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: 14px;
  background: var(--surface, #151922);
  box-shadow: var(--shadow, 0 18px 48px rgba(0, 0, 0, 0.28));
  animation: arthouseAccountMenuIn 160ms ease both;
}

@keyframes arthouseAccountMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.arthouse-account-menu-name {
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  color: var(--text-strong, #fff);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.arthouse-account-menu-item {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text, #e9edf7);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 750;
  text-align: left;
}

.arthouse-account-menu-item:hover {
  border-color: var(--line, rgba(255, 255, 255, 0.14));
  color: var(--text-strong, #fff);
  background: rgba(255, 255, 255, 0.055);
}

.arthouse-account-menu-logout {
  color: #ff9b9b;
}

.arthouse-account-menu-logout:hover {
  border-color: rgba(255, 109, 109, 0.38);
  color: #ffb3b3;
  background: rgba(255, 109, 109, 0.08);
}

.arthouse-mobile-account-menu {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.arthouse-mobile-account-name {
  color: var(--text-strong, #fff);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.arthouse-mobile-account-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  color: var(--text, #e9edf7);
  text-decoration: none;
  font-weight: 750;
}

.arthouse-mobile-account-link img {
  border-radius: 50%;
}

.arthouse-mobile-account-logout {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 109, 109, 0.38);
  border-radius: 9px;
  color: #ff9b9b;
  background: rgba(255, 109, 109, 0.08);
  cursor: pointer;
  font-weight: 750;
  text-align: left;
}

.arthouse-mobile-account-logout:hover {
  background: rgba(255, 109, 109, 0.14);
}