.nav-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
}

.nav-action,
.nav-account-button {
  min-height: 38px;
  border-radius: 7px;
  border: 1px solid #35423d;
  background: #171f1c;
  color: #e8f1ec;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.nav-action:hover,
.nav-account-button:hover {
  background: #202b27;
  border-color: #4b5e56;
}

.nav-account-button {
  border-color: #1aaf72;
  background: #13a76b;
  color: #fff;
}

.nav-account-button:hover { background: #08784d; }

.nav-home-button {
  border-color: #49715f;
  background: #21332b;
}

.nav-home-button:hover {
  border-color: #6e9d88;
  background: #2a4036;
}

.home-button-icon {
  position: relative;
  width: 12px;
  height: 10px;
  margin-top: 3px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 1px;
}

.home-button-icon::before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  left: -1px;
  top: -5px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-user-trigger {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #53df9b;
  flex: 0 0 auto;
}

.account-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 248px;
  padding: 8px;
  border: 1px solid #dbe3dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(13, 17, 16, 0.2);
  z-index: 150;
}

.account-menu-email {
  padding: 9px 10px 10px;
  color: #65726b;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px solid #edf1ee;
  margin-bottom: 4px;
}

.account-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #1a231f;
  padding: 10px;
  border-radius: 6px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.account-menu button:hover { background: #f1f6f3; }
.account-menu .sign-out { color: #b42318; }

.watchlist-save-button {
  min-width: 118px;
  min-height: 38px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  margin-top: 10px;
}

.watchlist-save-button:hover { background: rgba(255, 255, 255, 0.14); }
.watchlist-save-button.saved {
  border-color: #53df9b;
  background: rgba(83, 223, 155, 0.14);
  color: #9bf0c5;
}

.watchlist-save-button:disabled,
.auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.watchlist-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 18px;
  border-bottom: 1px solid #dbe3dd;
}

.watchlist-title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: #101412;
}

.watchlist-subtitle {
  margin-top: 5px;
  font-size: 13px;
  color: #65726b;
}

.watchlist-filters {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #e8eee9;
}

.watchlist-filter {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #59665f;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.watchlist-filter.active {
  background: #fff;
  color: #111816;
  box-shadow: 0 1px 3px rgba(16, 20, 18, 0.12);
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0 36px;
}

.watchlist-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe3dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 20, 18, 0.05);
}

.watchlist-item-main {
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.watchlist-item-logo {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  border: 1px solid #e2e8e3;
  background: #f7f9f7;
  object-fit: contain;
  padding: 5px;
}

.watchlist-item-fallback {
  display: grid;
  place-items: center;
  color: #08784d;
  font-size: 15px;
  font-weight: 850;
}

.watchlist-item-symbol {
  color: #101412;
  font-size: 14px;
  font-weight: 850;
}

.watchlist-item-name {
  margin-top: 2px;
  color: #65726b;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watchlist-item-type {
  margin-top: 6px;
  color: #08784d;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.watchlist-remove {
  width: 34px;
  height: 34px;
  border: 1px solid #e2e7e3;
  border-radius: 7px;
  background: #fff;
  color: #7b8881;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.watchlist-remove:hover {
  border-color: #f0b7b2;
  background: #fff5f4;
  color: #b42318;
}

.watchlist-empty {
  grid-column: 1 / -1;
  padding: 64px 20px;
  border-top: 1px solid #e2e8e3;
  border-bottom: 1px solid #e2e8e3;
  text-align: center;
}

.watchlist-empty strong {
  display: block;
  color: #25302b;
  font-size: 15px;
}

.watchlist-empty span {
  display: block;
  margin-top: 6px;
  color: #758179;
  font-size: 12px;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 10, 8, 0.66);
  backdrop-filter: blur(5px);
}

.auth-dialog {
  width: min(100%, 430px);
  border: 1px solid #dce4de;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(6, 10, 8, 0.32);
  overflow: hidden;
}

.auth-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 14px;
}

.auth-dialog-title {
  color: #101412;
  font-size: 20px;
  font-weight: 850;
}

.auth-dialog-copy {
  margin-top: 5px;
  color: #6c7871;
  font-size: 12px;
  line-height: 1.55;
}

.auth-close {
  width: 34px;
  height: 34px;
  border: 1px solid #e1e7e2;
  border-radius: 7px;
  background: #fff;
  color: #5f6b64;
  font-size: 20px;
  cursor: pointer;
}

.auth-close:hover { background: #f3f6f4; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 0 22px;
  padding: 3px;
  border-radius: 8px;
  background: #edf2ee;
}

.auth-tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #68756e;
  padding: 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.active {
  background: #fff;
  color: #111816;
  box-shadow: 0 1px 3px rgba(16, 20, 18, 0.12);
}

.auth-form { padding: 18px 22px 22px; }

.auth-field { display: block; margin-bottom: 13px; }
.auth-field span {
  display: block;
  margin-bottom: 6px;
  color: #37423d;
  font-size: 11px;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ccd6cf;
  border-radius: 7px;
  background: #fff;
  color: #111816;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.auth-field input:focus {
  border-color: #13a76b;
  box-shadow: 0 0 0 3px rgba(19, 167, 107, 0.12);
}

.auth-submit {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: #111816;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-submit:hover { background: #24302b; }

.auth-secondary {
  display: block;
  margin: 13px auto 0;
  border: 0;
  background: transparent;
  color: #08784d;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.auth-message {
  min-height: 18px;
  margin-bottom: 12px;
  padding: 0;
  color: #68756e;
  font-size: 11px;
  line-height: 1.5;
}

.auth-message.error { color: #b42318; }
.auth-message.success { color: #08784d; }

.auth-toast {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 1200;
  width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid #a6e0bc;
  border-radius: 6px;
  background: #ecfdf3;
  color: #166534;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.14);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  transform: translateX(-50%);
}

.auth-toast.error {
  border-color: #f4b9b2;
  background: #fff1f0;
  color: #b42318;
}

@media (max-width: 900px) {
  .nav-user-trigger { max-width: 120px; }
  .watchlist-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nav-account {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .nav-action,
  .nav-account-button { flex: 1 1 0; }
  .nav-user-trigger { max-width: none; }

  .watchlist-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
  }

  .watchlist-filters { width: 100%; }
  .watchlist-filter { flex: 1 1 0; padding-left: 6px; padding-right: 6px; }
  .watchlist-title { font-size: 22px; }
  .watchlist-grid { padding-top: 14px; }
  .watchlist-item { grid-template-columns: 40px minmax(0, 1fr) 34px; padding: 12px; }
  .watchlist-item-logo { width: 40px; height: 40px; }

  .watchlist-save-button {
    width: 100%;
    margin-top: 12px;
  }

  .auth-overlay { align-items: flex-end; padding: 0; }
  .auth-dialog {
    width: 100%;
    border-radius: 8px 8px 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }
}
