.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: 150ms ease-out;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  color: var(--white);
  background: var(--accent);
  border: none;
}

.btn-primary:hover {
  background: #A3182F;
}

.btn-secondary {
  color: var(--white);
  border: 1px solid var(--white);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
}

.btn-ghost {
  color: var(--text-secondary);
  border: none;
  background: transparent;
}

.btn-ghost:hover {
  text-decoration: underline;
}

.btn-danger {
  color: var(--white);
  background: var(--error);
  border: none;
}

.btn-danger:hover {
  background: #c91e2a;
}

.btn-pill {
  border-radius: 9999px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.card {
  background: #0A0A0A;
  border: 1px solid var(--gray-800);
  border-radius: 12px;
  padding: 32px;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  transition: 150ms ease-out;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: #16181C;
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  padding: 32px;
}

.input {
  background: transparent;
  border: 1px solid var(--gray-800);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  width: 100%;
}

.input:focus {
  border-color: var(--accent);
  outline: none;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-md {
  width: 40px;
  height: 40px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
}

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 150ms;
}

.tooltip:hover::after {
  opacity: 1;
}

/* ================================================================
   SHARED NAVIGATION
   ================================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  background: #000;
  border-bottom: 1px solid transparent;
  transition: background 200ms;
}

.nav.scrolled {
  border-bottom-color: var(--gray-800);
  backdrop-filter: blur(12px);
}

.nav__logo {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__logo .cross-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0 auto;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 150ms;
  text-decoration: none;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}

.nav__auth {
  flex-shrink: 0;
}

.nav__profile-link {
  display: flex;
  align-items: center;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: 150ms ease-out;
}

.nav__mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--black);
  border-left: 1px solid var(--gray-800);
  z-index: 200;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 250ms ease-out;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}

.nav__mobile-menu.open {
  transform: translateX(0);
}

.nav__mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__mobile-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav__mobile-links a {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms;
}

.nav__mobile-links a:hover {
  color: var(--accent);
}

.nav__mobile-auth {
  margin-top: auto;
}

/* ================================================================
   SHARED FOOTER
   ================================================================ */

.footer {
  border-top: 2px solid var(--accent);
  padding: 64px 24px 32px;
  background: #000;
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer__brand h2 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.footer__links h3 {
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer__links ul {
  list-style: none;
}

.footer__links a {
  color: var(--text-primary);
  font-size: 14px;
  display: block;
  padding: 4px 0;
  transition: color 150ms;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__mission {
  text-align: right;
}

.footer__mission p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  font-style: italic;
}

.footer__bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 13px;
}

@media (max-width: 1023px) {
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .footer__content {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}
