/* ---------- UI overlay ---------- */
.brand-logo{ position:absolute; top:-13vh; left:3vw; max-width:min(400px, 36vw); pointer-events:none; z-index:12; }
.brand-logo img{ width:100%; height:auto; display:block; filter:drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.ui-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* ---------- Topbar — full-width bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  z-index: 12;
  pointer-events: auto;

  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 0;

  font-family: 'Nunito', ui-rounded, system-ui, sans-serif;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

/* ---- Left ---- */
.topbar-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  padding-right: 4px;
  margin-right: 4px;
}

/* ---- Center ---- */
.topbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Right ---- */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 4px;
}

/* ---- Icon button (hamburger, store, inventory) ---- */
.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid rgba(232, 180, 120, 0.40);
  background: rgba(250, 244, 232, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #5c4033;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.14s, color 0.14s;
}

.topbar-icon-btn svg {
  width: 20px;
  height: 20px;
}

a.topbar-icon-btn { text-decoration: none; }

.topbar-icon-btn:hover {
  background: rgba(192, 98, 42, 0.09);
  color: #2b2213;
}

.topbar-icon-btn:active {
  background: rgba(192, 98, 42, 0.16);
}

/* ---- Action buttons (Tasks, AI Plan, Timer) ---- */
.topbar-action-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1.5px solid rgba(232, 180, 120, 0.40);
  border-radius: 999px;
  background: rgba(250, 244, 232, 0.55);
  color: #2b2213;
  font-family: 'Nunito', ui-rounded, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
}

.topbar-action-btn:hover {
  background: rgba(192, 98, 42, 0.09);
}

.topbar-action-btn:active {
  background: rgba(192, 98, 42, 0.16);
}

.topbar-action-btn:focus-visible {
  outline: 2px solid rgba(192, 98, 42, 0.40);
  outline-offset: -2px;
}

.topbar-action-icon {
  width: 17px;
  height: 17px;
  color: #c0622a;
  flex-shrink: 0;
}

/* ---- Currency pills ---- */
.topbar-currency-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 5px;
  background: rgba(250, 244, 232, 0.55);
  border: 1.5px solid rgba(232, 180, 120, 0.40);
  border-radius: 999px;
  font-family: 'Nunito', ui-rounded, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #2b2213;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, border-color 0.14s;
}

.topbar-currency-pill:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(192, 98, 42, 0.35);
}

.topbar-currency-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Greet container — hidden, kept for JS */
.topbar-right .greet-container {
  display: none;
}

/* Shared glass chip */
.chip.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid rgba(194, 178, 140, .4);
  background:
    radial-gradient(120px circle at 50% 42%, rgba(255, 255, 255, .4), rgba(245, 240, 230, .15) 70%),
    linear-gradient(135deg, rgba(222, 196, 160, .45) 0%, rgba(194, 178, 140, .35) 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .25),
    inset 0 0 0 1px rgba(245, 240, 230, .25),
    0 0 20px rgba(194, 178, 140, .2);
  color: #2b2213;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.chip.glass-chip:hover {
  transform: translateY(-1px);
  background:
    radial-gradient(120px circle at 50% 42%, rgba(255, 255, 255, .45), rgba(245, 240, 230, .2) 70%),
    linear-gradient(135deg, rgba(222, 196, 160, .55) 0%, rgba(194, 178, 140, .45) 100%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 2px solid rgba(194, 178, 140, .5);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, .3),
    inset 0 0 0 1px rgba(245, 240, 230, .3),
    0 0 30px rgba(194, 178, 140, .3);
  filter: brightness(1.05);
}

.chip.glass-chip:active {
  transform: translateY(0);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, .25),
    inset 0 0 0 1px rgba(245, 240, 230, .25),
    0 0 20px rgba(194, 178, 140, .2);
}

.timer-chip {
  justify-content: center;
  gap: 0;
  padding: 8px 14px;
  color: #000;
}

.timer-chip-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.menu-chip {
  justify-content: center;
  gap: 0;
  padding: 10px 14px;
  color: #000;
}

.menu-chip-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.chip.glass-chip:focus-visible {
  outline: 3px solid #2b2213;
  outline-offset: 2px;
}

/* ---------- History chip ---------- */
.history-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.history-chip .history-label {
  font-size: 16px;
}

/* ---------- Store chip + dropdown ---------- */
.store-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.store-chip .store-label {
  font-size: 16px;
}

/* ---------- Doros chip + dropdown ---------- */
.doros-chip .doros-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.doros-chip .doros-amount {
  font-size: 18px;
  font-weight: 800;
}

.doros-chip .doros-label {
  font-size: 12px;
  opacity: .85;
  margin-left: 2px;
}



/* ---------- Greeting chip + menu ---------- */
.greet-chip span {
  font-size: 18px;
}

.greet-container {
  position: relative;
  display: none;
}

.greet-chip {
  width: 100%;
}

/* greet menu */
.greet-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, 68vw);
  padding: 14px 16px;
  border-radius: 18px;
  background: radial-gradient(160px circle at 50% 15%, rgba(255, 255, 255, .6), rgba(255, 255, 255, .14) 72%), rgba(255, 255, 255, .92);
  border: 2px solid rgba(224, 162, 51, .85);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25), inset 0 0 0 4px rgba(255, 210, 100, .18);
  z-index: 220;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.greet-menu[hidden] {
  display: none;
}

.greet-menu-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.greet-menu-item {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 235, 160, .55);
  font-weight: 700;
  color: #2b2213;
  text-align: left;
  cursor: pointer;
  transition: transform .1s ease, filter .15s ease;
}

.greet-menu-item:hover,
.greet-menu-item:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

.greet-menu-item:active {
  transform: translateY(1px);
}

.greet-menu-divider {
  border: none;
  height: 1px;
  background: rgba(224, 162, 51, .45);
  margin: 0;
}

.greet-defaults {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.greet-defaults-heading {
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 14px;
}

.greet-defaults-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(43, 34, 19, .85);
}

.greet-defaults-input {
  appearance: none;
  border: 1px solid rgba(43, 34, 19, .35);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .95);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  min-width: 8ch;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12) inset;
}

.greet-defaults-input:focus-visible {
  outline: 2px solid #ffb400;
  outline-offset: 2px;
}

.greet-defaults-error {
  font-size: 12px;
  font-weight: 600;
  color: #b22f1e;
}

.greet-defaults-save {
  appearance: none;
  border-radius: 999px;
  padding: 10px 18px;
  border: 2px solid #e0a233;
  background: linear-gradient(#ffd36b, #f2b942);
  color: #2b2213;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  transition: filter .15s ease, transform .1s ease;
}

.greet-defaults-save:hover {
  filter: brightness(1.03);
}

.greet-defaults-save:active {
  transform: translateY(1px);
}

.greet-defaults-save:focus-visible {
  outline: 3px solid #2b2213;
  outline-offset: 2px;
}

/* doros dropdown */
.profile-container {
  position: relative;
}

.doros-dropdown {
  position: relative;
  display: inline-flex;
  pointer-events: auto;
}

.doros-dropdown .doros-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  padding: 10px;
  border-radius: 18px;
  background: radial-gradient(140px circle at 30% 15%, rgba(255, 255, 255, .6), rgba(255, 255, 255, .14) 72%), rgba(255, 255, 255, .92);
  border: 2px solid rgba(224, 162, 51, .85);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25), inset 0 0 0 4px rgba(255, 210, 100, .18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 40;
  pointer-events: auto;
}

.doros-menu[hidden] {
  display: none;
}

.doros-menu-item {
  appearance: none;
  border: 2px solid #e0a233;
  border-radius: 999px;
  background: linear-gradient(#ffd36b, #f2b942);
  color: #2b2213;
  font-weight: 700;
  text-align: left;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.doros-menu-item:hover {
  filter: brightness(1.03);
}

.doros-menu-item:active {
  transform: translateY(1px);
}

.doros-menu-item:focus-visible {
  outline: 3px solid #2b2213;
  outline-offset: 2px;
}
