*, *::before, *::after{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: #FAF7F2;
}

/* ── NAV ─────────────────────────────────────────── */
.nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-border);
  z-index: 4000;
}

.nav__inner{
  height: 100%;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img{
  height: 38px;
  display: block;
}

.nav__actions{
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

/* nav buttons */
.navbtn{
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.navbtn:hover{
  background: var(--hover);
}

.navbtn--link{
  color: var(--text);
}

.navbtn--icon{
  padding: 8px 10px;
}

/* hamburger */
.hamburger{
  width: 20px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span{
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 999px;
  transition: opacity 0.2s;
}

/* avatar button */
.avatarBtn{
  border: 0;
  background: transparent;
  padding: 5px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.avatarBtn:hover{
  background: var(--hover);
}

.avatarBtn:active{
  transform: scale(0.95);
}

.avatarBtn__circle{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--btn);
  color: #FAF7F2;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  transition: background 0.15s ease;
}

/* ── DROPDOWN MENU ───────────────────────────────── */
.menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--cream-border);
  box-shadow: 0 12px 32px rgba(25,19,17,0.12), 0 2px 8px rgba(25,19,17,0.06);
  padding: 6px;
  z-index: 10000;
  display: none;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.menu[hidden]{
  display: none !important;
}

.menu:not([hidden]){
  display: block !important;
  pointer-events: all;
  animation: menuFadeIn 0.18s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes menuFadeIn{
  from{ opacity: 0; transform: translateY(-8px) scale(0.97); }
  to  { opacity: 1; transform: translateY(0)    scale(1);    }
}

.menu__row{
  display: block;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.13s ease;
}

.menu__row:hover{
  background: var(--hover);
}

.menu__row:active{
  transform: scale(0.99);
}

.menu__row:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.menu__divider{
  height: 1px;
  background: var(--cream-border);
  margin: 6px 0;
}

/* profile card inside menu */
.menu__profileCard{
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid var(--cream-border);
  padding: 11px 12px;
  margin-bottom: 6px;
  transition: background 0.13s ease;
  cursor: default;
}

.menu__profileCard:hover{
  background: var(--hover);
}

.menu__profileAvatar{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--btn);
  color: #FAF7F2;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.menu__profileName{
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--text);
}

.menu__profileEmail{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.menu__row--withIcon{
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu__icon{
  width: 20px;
  display: inline-flex;
  justify-content: center;
  opacity: 0.7;
  flex-shrink: 0;
}

/* menu rows with inline thumbnail photos */
.menu__row--withPhoto{
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu__rowPhoto{
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: inline-block;
  border: 1px solid var(--cream-border);
}

/* footer bar right group */
.footer-bar-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.footer-legal{
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(250,247,242,0.28);
  letter-spacing: 0.01em;
}

/* mobile header (hidden on desktop) */
.menu__mobileHeader{
  display: none !important;
}

/* nav loading shimmer */
.nav-loading{
  position: relative;
  color: transparent !important;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  pointer-events: none;
}

.nav-loading::after{
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: navShimmer 1.2s infinite;
}

@keyframes navShimmer{
  100%{ transform: translateX(100%); }
}

body.nav-menu-open{ overflow: hidden; }

@media (min-width: 768px){
  body.nav-menu-open{ overflow: auto; }
}

/* ── CURRENCY PANEL ──────────────────────────────── */
.currency{ position: relative; }

.currencyPanel{
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 600px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(25,19,17,0.14), 0 2px 8px rgba(25,19,17,0.06);
  z-index: 3000;
}

.currencyPanel__title{
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}

.currencyGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8px;
  row-gap: 4px;
}

.currencyItem{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  transition: background 0.13s;
}

.currencyItem:hover{
  background: var(--hover);
}

.currencyItem.is-active{
  background: var(--gold-pale);
}

.currencyItem__left{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.currencyItem__check{
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 999px;
  flex: 0 0 auto;
  opacity: 0;
}

.currencyItem.is-active .currencyItem__check{
  opacity: 1;
  background: var(--gold-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20.285 6.709a1 1 0 0 1 .006 1.414l-9.19 9.27a1 1 0 0 1-1.42-.002L3.71 11.41a1 1 0 1 1 1.414-1.414l4.245 4.245 8.48-8.55a1 1 0 0 1 1.436.018Z'/%3E%3C/svg%3E") center/12px 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20.285 6.709a1 1 0 0 1 .006 1.414l-9.19 9.27a1 1 0 0 1-1.42-.002L3.71 11.41a1 1 0 1 1 1.414-1.414l4.245 4.245 8.48-8.55a1 1 0 0 1 1.436.018Z'/%3E%3C/svg%3E") center/12px 12px no-repeat;
}

.currencyItem__code{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}

.currencyItem__name{
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.currencyItem__sym{
  font-size: 14px;
  color: var(--muted);
  flex: 0 0 auto;
}

/* ── FOOTER ──────────────────────────────────────── */
.site-footer{
  background: var(--bg);
  border-top: 1px solid var(--cream-border);
}

.site-footer__inner{
  padding: 72px 80px 64px;
  max-width: 1400px;
  margin: 0 auto;
}

.site-footer__top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
}

.site-footer__left{
  display: flex;
  gap: 80px;
}

.footer-col{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-label{
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link{
  width: fit-content;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.22s ease, opacity 0.22s ease;
}

.footer-link:hover{
  background-size: 100% 1px;
}

.site-footer__right{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 500px;
}

.footer-contact{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-link--contact{
  font-size: 15px;
  letter-spacing: -0.01em;
  background-size: 100% 1px;
}

.footer-link--contact:hover{
  background-size: 0 1px;
}

.footer-map{
  width: 340px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--cream-border);
}

.footer-map iframe{
  width: 100%;
  height: 155px;
  border: 0;
  display: block;
}

.footer-address{
  max-width: 340px;
}

/* bottom bar */
.site-footer-bar{
  width: 100%;
  background: var(--btn);
  display: block;
  position: relative;
  z-index: 1;
}

.site-footer-bar__inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo{
  height: 20px;
  width: auto;
  opacity: 0.5;
  filter: brightness(0) invert(1);
}

.footer-copy{
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(250,247,242,0.45);
}

/* ── RESPONSIVE ──────────────────────────────────── */

/* tablet: 601 - 1024 */
@media (min-width: 601px) and (max-width: 1024px){
  .currencyPanel{
    position: fixed;
    width: 520px;
    max-width: calc(100vw - 32px);
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    top: 74px;
    z-index: 10001;
  }
}

/* desktop */
@media (min-width: 1025px){
  .currencyPanel{
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 600px;
  }
}

/* tablet nav */
@media (min-width: 601px) and (max-width: 900px){
  .nav__actions .navbtn--link{ display: none; }
  .currencyPanel{ width: 480px; }
}

/* mobile */
@media (max-width: 600px){
  .nav__actions .navbtn--link{ display: none; }

  /* full-screen mobile menu */
  .menu{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    margin: 0;
    z-index: 10000;
    overflow-y: auto;
    padding: 16px 16px 32px;
    background: #FAF7F2;
    border: none;
    box-shadow: none;
  }

  .menu__mobileHeader{
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--cream-border);
    margin-bottom: 14px;
  }

  .menu__mobileLogo{
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
  }

  .menu__close{
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--cream-border);
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--text);
    transition: background 0.13s ease;
  }

  .menu__close:hover{ background: var(--hover); }

  .menu__close svg{
    width: 18px;
    height: 18px;
  }

  .menu__row{
    font-size: 15px;
    font-weight: 500;
    padding: 13px 14px;
    border-radius: 10px;
  }

  .menu__divider{ margin: 8px 0; }

  /* currency panel on mobile */
  .currencyPanel{
    position: fixed;
    width: calc(100vw - 32px);
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    top: 74px;
    padding: 18px;
    z-index: 10001;
  }

  .currencyGrid{
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .currencyItem{ padding: 13px 14px; }
  .currencyItem__name{ white-space: normal; }
}

/* footer responsive */
@media (max-width: 900px){
  .site-footer__inner{ padding: 56px 28px 48px; }
  .site-footer__top{ flex-direction: column; gap: 44px; }
  .site-footer__left{ gap: 48px; }
  .footer-map{ width: 100%; max-width: 480px; }
  .footer-address{ max-width: 480px; }
  .site-footer-bar__inner{ padding: 20px 28px; }
}

@media (max-width: 600px){
  .site-footer__inner{ padding: 48px 20px 40px; }
  .site-footer__left{ flex-direction: column; gap: 36px; }
  .footer-link{ font-size: 19px; }
  .footer-map{ max-width: none; }
  .site-footer-bar__inner{
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-bar-right{
    align-items: flex-start;
  }
}

@media (max-width: 480px){
  .site-footer__inner{ padding: 40px 16px; }
  .site-footer-bar__inner{ padding: 16px; }
}

/* very small */
@media (max-width: 380px){
  .menu__row{ padding: 12px 12px; }
  .currencyPanel{ top: 68px; }
}