﻿.top-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: fit-content;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(155%);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0 22px;
  font-family: "Roboto", sans-serif;
}

.top-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 10px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-left {
  flex: 1;
}

.nav-right {
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.header-icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 3px 3px 9px rgba(15, 23, 42, 0.035);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.header-icon-btn:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-strong);
  transform: translateY(0px);
}

.header-icon-btn img {
  width: 18px;
  height: 18px;
}

.list-navbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 10px;
}

.list-navbar li a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 3px 3px 9px rgba(15, 23, 42, 0.02);
  text-decoration: none;
  font-size: 12.75px;
  font-weight: 500;
  color: var(--color-text-soft);
  text-transform: capitalize;
  transition: var(--transition);
}

.list-navbar li a:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border);
  transform: translateY(0px);
}

.list-navbar li a img,
.nav-icon,
.nav-icon svg {
  width: 16px;
  height: 16px;
}

/* ── My Tools dropdown — scoped to #bimoToolsDropdown ──────── */
#bimoToolsDropdown {
  position: relative;
}

#bimoToolsDropdown .dropdown-btn {
  min-height: 34px;
  height: 34px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 12.75px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 3px 3px 9px rgba(15, 23, 42, 0.02);
  font-family: inherit;
}

#bimoToolsDropdown .dropdown-btn:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border);
  box-shadow: 3px 3px 9px rgba(15, 23, 42, 0.02);
  transform: translateY(0px);
}

#bimoToolsDropdown .dropdown-btn .btn-icon,
#bimoToolsDropdown .dropdown-btn .chevron {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

#bimoToolsDropdown .dropdown-btn .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.22s ease;
  opacity: 0.72;
  margin-left: 1px;
}

#bimoToolsDropdown.show .dropdown-btn .chevron {
  transform: rotate(180deg);
}

#bimoToolsDropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 25px);
  left: 0;
  right: auto;
  width: min(980px, calc(100vw - 24px));
  max-height:500px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(var(--tools-dd-shift, 0px), 6px, 0) scale(0.99);
  transform-origin: top left;
  transition: 0.24s ease;
  z-index: 100;
  overflow-x: hidden;
  overflow-y: auto;
}

#bimoToolsDropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate3d(var(--tools-dd-shift, 0px), 0, 0) scale(1);
}

#bimoToolsDropdown .menu-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  align-items: start;
}

#bimoToolsDropdown section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#bimoToolsDropdown .left-side,
#bimoToolsDropdown .right-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#bimoToolsDropdown .featured-box {
  border: 1px solid var(--color-border);
  background:
    radial-gradient(circle at top left, rgba(var(--color-primary-rgb), 0.10), transparent 34%),
    radial-gradient(circle at bottom right, rgba(var(--color-primary-rgb), 0.06), transparent 34%),
    var(--color-surface-2);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

#bimoToolsDropdown .featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

#bimoToolsDropdown .featured-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--color-text);
}

#bimoToolsDropdown .featured-subtitle {
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 560px;
}

#bimoToolsDropdown .featured-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#bimoToolsDropdown .solid-btn,
#bimoToolsDropdown .ghost-btn,
#bimoToolsDropdown .footer-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

#bimoToolsDropdown .solid-btn,
#bimoToolsDropdown .footer-btn {
  border: 0;
  background: #111827;
  color: #ffffff;
}

#bimoToolsDropdown .solid-btn:hover,
#bimoToolsDropdown .footer-btn:hover {
  opacity: 0.92;
}

#bimoToolsDropdown .ghost-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

#bimoToolsDropdown .ghost-btn:hover {
  background: var(--color-surface-2);
}

#bimoToolsDropdown .section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-faint);
  margin-bottom: 6px;
  font-weight: 700;
}

#bimoToolsDropdown .items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#bimoToolsDropdown .items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#bimoToolsDropdown .menu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 12px 12px 11px;
  border-radius: 16px;
  transition: 0.22s ease;
  border: 1px solid transparent;
  position: relative;
}

#bimoToolsDropdown .menu-item:focus-visible {
  outline: none;
  border-color: var(--color-primary-border);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb),0.10);
}

#bimoToolsDropdown .menu-item:hover {
  background: var(--color-surface-subtle);
  border-color: var(--color-border);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

#bimoToolsDropdown .icon-box {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 15px;
  background: linear-gradient(180deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

#bimoToolsDropdown .icon-box img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

#bimoToolsDropdown .item-content {
  min-width: 0;
  flex: 1;
}

#bimoToolsDropdown .item-title {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 5px;
}

#bimoToolsDropdown .item-subtitle {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-soft);
}

#bimoToolsDropdown .tiny-chip {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#bimoToolsDropdown .badge {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

#bimoToolsDropdown .badge.top {
  color: #a16207;
  background: #fef3c7;
  border-color: #fde68a;
}

#bimoToolsDropdown .badge.new {
  color: var(--color-primary);
  background: #fde8e0;
  border-color: rgba(var(--color-primary-rgb),0.25);
}

#bimoToolsDropdown .badge.popular {
  color: #7e22ce;
  background: #f3e8ff;
  border-color: #e9d5ff;
}

#bimoToolsDropdown .menu-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

#bimoToolsDropdown .menu-footer p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-soft);
}

@media (max-width: 960px) {
  #bimoToolsDropdown {
    position: static;
  }

  #bimoToolsDropdown .dropdown-btn {
    min-height: 40px;
    height: 40px;
    padding: 9px 12px;
  }

  #bimoToolsDropdown .dropdown-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - var(--header-height));
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 14px 12px 16px;
    overflow: auto;
    transform: translate3d(0, 6px, 0) scale(1);
  }

  #bimoToolsDropdown.show .dropdown-menu {
    transform: translate3d(0, 0, 0) scale(1);
  }

  #bimoToolsDropdown .menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #bimoToolsDropdown .items-grid {
    grid-template-columns: 1fr;
  }

  #bimoToolsDropdown .items-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #bimoToolsDropdown .featured-title {
    font-size: 21px;
  }

  #bimoToolsDropdown .featured-actions,
  #bimoToolsDropdown .menu-footer {
    flex-direction: column;
    align-items: stretch;
  }

  #bimoToolsDropdown .solid-btn,
  #bimoToolsDropdown .ghost-btn,
  #bimoToolsDropdown .footer-btn {
    width: 100%;
  }
}

.nav-link-primary {
  background: linear-gradient(180deg, rgba(var(--color-primary-rgb),0.12) 0%, rgba(var(--color-primary-rgb),0.06) 100%) !important;
  color: var(--color-accent) !important;
  border-color: rgba(var(--color-primary-rgb),0.18) !important;
  box-shadow: 3px 3px 9px rgba(var(--color-primary-rgb),0.08) !important;
}

.nav-link-primary:hover {
  background: linear-gradient(180deg, rgba(var(--color-primary-rgb),0.16) 0%, rgba(var(--color-primary-rgb),0.08) 100%) !important;
  color: var(--color-accent-hover) !important;
}

.credits-btn {
  position: relative;
  isolation: isolate;
  min-width: 204px;
  min-height: 42px;
  padding: 4px 8px 4px 9px;
  border: 1px solid rgba(194, 154, 63, 0.34);
  border-radius: 8px;
  
  background: linear-gradient(135deg, #fff9ea 0%, #fff1cb 54%, #ffe29a 100%);
  box-shadow:
    3px 3px 9px rgba(166, 126, 28, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #61450d;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.credits-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.3));
  z-index: -1;
}

.credits-btn:hover {
  transform: translateY(0px);
  border-color: rgba(177, 136, 42, 0.44);
  box-shadow:
    4px 6px 14px rgba(166, 126, 28, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.credits-btn:focus-visible,
.list-navbar li a:focus-visible,
.header-icon-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(191, 152, 60, 0.18),
    3px 3px 9px rgba(15, 23, 42, 0.05);
}

.credits-icon,
.credits-number,
.profile-trigger,
.drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.credits-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(157, 119, 34, 0.18);
  color: #b58312;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.credits-icon svg {
  width: 14px;
  height: 14px;
}

.credits-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title badge"
    "caption badge";
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  text-align: left;
}

.credits-copy::after {
  content: "Recharge";
  grid-area: badge;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(167, 126, 33, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #8c6614;
  white-space: nowrap;
}

.credits-text {
  grid-area: title;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: #573c0a;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.credits-subtext {
  grid-area: caption;
  min-width: 0;
  font-size: 10.5px;
  color: #8b6a19;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.credits-number {
  min-width: 36px;
  height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(157, 119, 34, 0.18);
  font-size: 12.5px;
  font-weight: 800;
  color: #4d370a;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.Sign-in_buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.Sign-in_buttons button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-transform: capitalize;
  transition: var(--transition);
}

.sign-up {
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.sign-up:hover {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
}

.log-in {
  background: var(--color-accent);
  color: white;
}

.log-in:hover {
  background: var(--color-accent-hover);
  transform: translateY(0px);
}

.profile-menu {
  position: relative;
}

.profile-trigger {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.profile-trigger:hover,
.profile-menu.open .profile-trigger {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
}

.profile-avatar,
.profile-avatar svg {
  width: 22px;
  height: 22px;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition: 0.22s ease;
  z-index: 40;
}

.profile-menu.open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--color-surface-2);
}

.drop-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.drop-icon svg {
  width: 17px;
  height: 17px;
}

.auth-dropdown-item {
  color: var(--color-text);
}

.auth-dropdown-item .drop-icon {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}

.profile-dropdown-divider {
  display: none;
  height: 1px;
  margin: 6px 4px;
  background: var(--color-border);
}

.profile-mobile-only {
  display: none;
}

.logout-item {
  color: var(--color-danger);
}

.logout-item .drop-icon {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.profile-avatar {
  border-radius: inherit;
  overflow: hidden;
}

.profile-avatar img,
.profile-summary__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-initials,
.profile-summary__initials,
.profile-summary__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(var(--color-primary-rgb),0.09), rgba(var(--color-primary-rgb),0.04));
  color: var(--color-accent);
  font-size: 12px;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 12px;
}

.profile-summary__avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(var(--color-primary-rgb),0.08), rgba(var(--color-primary-rgb),0.03));
  border: 1px solid rgba(var(--color-primary-rgb),0.14);
  color: var(--color-accent);
  flex-shrink: 0;
  overflow: hidden;
}

.profile-summary__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-summary__copy strong {
  font-size: 14px;
  color: var(--color-text);
}

.profile-summary__copy span {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.profile-dropdown-divider {
  display: block;
}

/* Profile menu polish: trigger centering + anchored popup */
.profile-menu {
  position: relative;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.profile-avatar {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-initials,
.profile-summary__initials,
.profile-summary__avatar {
  justify-content: center;
}

.profile-dropdown {
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 252px;
  padding: 9px;
  border-radius: 16px;
  transform-origin: top right;
}

.profile-summary {
  padding: 8px 8px 12px;
  gap: 11px;
}

.profile-dropdown-divider {
  margin: 7px 4px;
}

.dropdown-item {
  min-height: 44px;
  align-items: center;
}

@media (max-width: 640px) {
  .profile-menu {
    display: inline-flex;
    align-items: center;
  }

  .profile-trigger {
    border-radius: 11px;
  }

  .profile-avatar {
    width: 20px;
    height: 20px;
  }

  .profile-dropdown {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(252px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    border-radius: 14px;
    padding: 8px;
    transform-origin: top right;
  }

  .profile-summary {
    padding: 7px 7px 11px;
  }

  .dropdown-item {
    min-height: 42px;
    padding: 10px 11px;
  }

  .drop-icon {
    width: 30px;
    height: 30px;
  }
}

.new-btn.is-disabled {
  opacity: 0.56;
  pointer-events: none;
  box-shadow: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.project-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(8px);
}

.project-modal__dialog {
  position: relative;
  width: min(100%, 440px);
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 18px;
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.project-modal.is-open .project-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.project-modal__dialog:focus-visible {
  outline: none;
}

.project-modal__head {
  display: grid;
  gap: 8px;
}

.project-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(var(--color-primary-rgb),0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--color-primary-rgb),0.07), rgba(var(--color-primary-rgb),0.04));
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-modal__head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.project-modal__head p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.project-modal__field {
  display: grid;
  gap: 8px;
}

.project-modal__field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.project-modal__field input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface-subtle);
  color: var(--color-text);
  font: inherit;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-modal__field input::placeholder {
  color: var(--color-text-faint);
}

.project-modal__field input:focus {
  outline: none;
  border-color: rgba(var(--color-accent-rgb), 0.28);
  background: var(--color-surface);
  box-shadow: 0 0 0 4px rgba(var(--color-accent-rgb), 0.08);
}

.project-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.project-modal__button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.project-modal__button:hover {
  transform: translateY(0px);
}

.project-modal__button--ghost {
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.project-modal__button--ghost:hover {
  background: var(--color-surface-muted);
  border-color: var(--color-border-strong);
}

.project-modal__button--primary {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 8px 18px rgba(var(--color-accent-rgb), 0.18);
}

.project-modal__button--primary:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
}

.project-modal__button.is-loading {
  cursor: wait;
  opacity: 0.82;
}

.project-modal__button.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(var(--color-primary-rgb),0.22);
  border-top-color: currentColor;
  border-radius: 999px;
  display: inline-block;
  vertical-align: -2px;
  animation: projectModalSpin 0.8s linear infinite;
}

@keyframes projectModalSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .project-modal {
    padding: 16px;
  }

  .project-modal__dialog {
    width: min(100%, 100%);
    padding: 20px;
    border-radius: 20px;
    gap: 16px;
  }

  .project-modal__head h2 {
    font-size: 21px;
  }

 

  .project-modal__button {
    width: 100%;
  }
}


/* Clarity cleanup: header controls */
.top-header__inner {
  gap: 14px;
  padding-block: 8px;
  
}

.nav-left,
.nav-right {
  gap: 10px;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-color: var(--color-border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.list-navbar {
  gap: 8px;
}

.list-navbar li a {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.25px;
  font-weight: 500;
  color: var(--color-text-secondary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

.nav-link-primary {
  box-shadow: 0 1px 2px rgba(var(--color-primary-rgb),0.08) !important;
}

.Sign-in_buttons {
  gap: 8px;
}

.Sign-in_buttons button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
}

.credits-btn {
  min-width: 192px;
  min-height: 38px;
  padding: 3px 7px 3px 8px;
  gap: 8px;
  box-shadow:
    0 1px 2px rgba(166, 126, 28, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
}

.credits-btn:hover {
  box-shadow:
    0 4px 10px rgba(166, 126, 28, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.credits-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.credits-icon svg {
  width: 13px;
  height: 13px;
}

.credits-copy {
  column-gap: 6px;
  row-gap: 1px;
}

.credits-copy::after {
  height: 18px;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 600;
}

.credits-text {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.05;
}

.credits-subtext {
  font-size: 9.75px;
  line-height: 1.05;
}

.credits-number {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}


/* Strict header cleanup */
.top-header,
.top-header * ,
.profile-dropdown,
.profile-dropdown * {
  font-family: "Inter", "Cairo", sans-serif;
}

.top-header {
  background: var(--color-header-bg);
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  padding-inline: 14px;
  height: 70px;
}

.top-header__inner {
  gap: 10px;
  padding-block: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.list-navbar li a,
.header-icon-btn {
  min-height: 34px;
  border-color: var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.025);
}

.list-navbar li a {
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-secondary);
  gap: 6px;
}

.header-icon-btn {
  width: 34px;
  height: 34px;
}

.credits-btn {
  min-width: 178px;
  min-height: 36px;
  padding: 3px 7px 3px 7px;
  gap: 7px;
  border-color: rgba(200, 177, 112, 0.34);
  background: linear-gradient(180deg, #fffdfa 0%, #fff6e6 100%);
  color: #5b4a1f;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.credits-btn::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.35));
}

.credits-btn:hover {
  border-color: rgba(189, 163, 96, 0.4);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

.credits-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(195, 163, 88, 0.14), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.credits-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(187, 160, 90, 0.16);
}

.credits-icon svg {
  width: 12px;
  height: 12px;
}

.credits-copy {
  column-gap: 5px;
  row-gap: 1px;
}

.credits-copy::after {
  content: "Add";
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  color: #7c6730;
  background: rgba(255, 255, 255, 0.78);
}

.credits-text {
  font-size: 11px;
  font-weight: 600;
  color: #4d3f1a;
}

.credits-subtext {
  font-size: 9px;
  color: #88744a;
}

.credits-number {
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #4a3c18;
}


/* ── Premium dual-tone gradient border for credits button ────── */

/* Header action credits button */
.header-action-btn {
  --btn-height: 36px;
  --btn-radius: 10px;
  position: relative;
  height: var(--btn-height);
  min-width: 0;
  padding: 0 12px;
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  /* Dual-tone gradient border:
     bright champagne gold (top-left) → deep warm amber (bottom-right).
     Reads as a polished metallic edge — elegant, not loud. */
  border: 1.5px solid transparent;
  background:
    linear-gradient(160deg, #fefdfb 0%, #fdf8ed 100%) padding-box,
    linear-gradient(
      148deg,
      rgba(255, 220, 95, 0.95) 0%,
      rgba(215, 172, 58, 0.40) 50%,
      rgba(158, 115, 26, 0.70) 100%
    ) border-box;
  color: #38280e;
  box-shadow:
    0 1px 3px rgba(168, 126, 20, 0.08),
    0 3px 10px rgba(168, 126, 20, 0.05);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

/* Inner top-edge shimmer — subtle highlight that reads as a polished surface */
.header-action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 238, 148, 0.96),
    transparent
  );
  z-index: 1;
  pointer-events: none;
}

.header-action-btn:hover {
  opacity: 0.88;
  box-shadow:
    0 2px 6px rgba(168, 126, 20, 0.12),
    0 6px 16px rgba(168, 126, 20, 0.08);
}

.header-action-btn:active {
  transform: scale(0.98);
}

.header-action-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 154, 63, 0.2);
}

.header-action-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.header-action-btn__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #9e7614;
  opacity: 0.94;
}

.header-action-btn__text {
  display: inline-block;
  color: #38280e;
}

.header-action-btn__plus {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  color: #9e7614;
  opacity: 0.70;
  margin-left: -1px;
}

.header-action-btn__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile: hide the "Credits" word — keep icon + number + plus only.
   min-width: 0 is explicitly re-stated here to defeat any cascaded
   min-width from .credits-btn rules earlier in the sheet. */
@media (max-width: 768px) {
  .header-action-btn .credits-label {
    display: none;
  }

  .header-action-btn {
    min-width: 0;
    width: auto;
    padding: 0 9px;
    gap: 4px;
  }
}

.header-action-btn .credits-copy,
.header-action-btn .credits-text,
.header-action-btn .credits-subtext,
.header-action-btn .credits-number,
.header-action-btn .credits-icon {
  display: none;
}




/* Profile trigger + menu polish (lp-generate) */
.top-header .profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.top-header .profile-trigger {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.top-header .profile-avatar {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-header .profile-avatar svg,
.top-header .profile-avatar img,
.top-header .profile-avatar-initials {
  width: 100%;
  height: 100%;
}

.top-header .profile-dropdown {
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 252px;
  max-width: min(252px, calc(100vw - 20px));
  padding: 9px;
  border-radius: 16px;
  transform-origin: top right;
  z-index: 140;
}

.top-header .profile-summary {
  align-items: center;
  gap: 11px;
  padding: 8px 8px 12px;
}

.top-header .profile-summary__avatar,
.top-header .profile-summary__initials,
.top-header .profile-avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.top-header .profile-dropdown .dropdown-item {
  min-height: 44px;
  padding: 10px 11px;
  align-items: center;
}

.top-header .profile-dropdown .drop-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
}

.top-header .profile-dropdown .drop-icon svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 640px) {
  .top-header .profile-trigger {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 11px;
  }

  .top-header .profile-avatar {
    width: 20px;
    height: 20px;
  }

  .top-header .profile-dropdown {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(252px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    border-radius: 14px;
    transform-origin: top right;
  }
}
