/* Auth UI: header button + dropdown */

.nav-auth-slot {
  display: inline-flex;
  align-items: center;
}

.auth-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--color-gold);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.18));
  color: var(--color-text, #1a1a1a);
  font-family: var(--font-heading), Georgia, serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  white-space: nowrap;
}

.auth-cta::after { display: none !important; }

.auth-cta:hover,
.auth-cta:focus-visible {
  background: linear-gradient(135deg, rgba(4, 99, 7, 0.95), rgba(4, 75, 6, 0.95));
  color: #fffdf6;
  box-shadow: 0 6px 18px rgba(4, 99, 7, 0.25);
  text-decoration: none;
}

.auth-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.auth-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(4, 99, 7, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text, #1a1a1a);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-trigger:hover,
.auth-trigger:focus-visible {
  border-color: var(--color-gold);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.auth-trigger-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #046307, #045b06);
  color: #f7e8a0;
  font-family: var(--font-heading), Georgia, serif;
  font-weight: 700;
  font-size: 0.85rem;
}

.auth-trigger-name {
  max-width: 8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-trigger-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.auth-menu-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 12rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  z-index: 50;
}

.auth-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--color-text, #1a1a1a);
  background: transparent;
  border: none;
  cursor: pointer;
}

.auth-menu-item + .auth-menu-item { margin-top: 0.15rem; }

.auth-menu-item:hover,
.auth-menu-item:focus-visible {
  background: rgba(212, 175, 55, 0.12);
  text-decoration: none;
}

.auth-menu-item.auth-logout {
  color: #8a1f1f;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 0.25rem;
  padding-top: 0.65rem;
}

/* Auth pages (login / register / reset) */

.auth-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border: 1.5px solid var(--color-gold);
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(4, 99, 7, 0.10);
}

.auth-card-title {
  font-family: var(--font-heading), Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5rem;
  color: #0a330d;
}

.auth-card-sub {
  text-align: center;
  color: var(--color-text-muted, #5c5c5c);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  background: rgba(4, 99, 7, 0.06);
  border-radius: 999px;
  padding: 0.25rem;
  margin: 0 0 1.5rem;
}

.auth-tab {
  border: none;
  background: transparent;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #045b06;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #046307, #045b06);
  color: #fffdf6;
  box-shadow: 0 4px 12px rgba(4, 99, 7, 0.22);
}

.auth-form { display: flex; flex-direction: column; gap: 0.9rem; }
.auth-form[hidden] { display: none; }

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .auth-row { grid-template-columns: 1fr; }
}

.auth-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #2d2d2d;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #fff;
  border: 1.2px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.auth-submit {
  margin-top: 0.4rem;
  padding: 0.9rem 1.4rem;
  border: 1.5px solid var(--color-gold);
  border-radius: 999px;
  background: linear-gradient(135deg, #046307, #045b06);
  color: #fffdf6;
  font-family: var(--font-heading), Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.auth-submit:hover { box-shadow: 0 10px 26px rgba(4, 99, 7, 0.28); transform: translateY(-1px); }
.auth-submit:disabled { opacity: 0.65; cursor: progress; transform: none; }

.auth-alt-action {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.auth-alt-action a {
  color: #046307;
  font-weight: 600;
}

.auth-alert {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.auth-alert--error {
  background: rgba(170, 30, 30, 0.08);
  border: 1px solid rgba(170, 30, 30, 0.25);
  color: #8a1f1f;
}

.auth-alert--success {
  background: rgba(4, 99, 7, 0.08);
  border: 1px solid rgba(4, 99, 7, 0.25);
  color: #045b06;
}

.auth-alert[hidden] { display: none; }

.auth-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #444;
}

.auth-check input { margin-top: 0.18rem; }

/* Account dashboard */

.account-page {
  padding: clamp(2rem, 4vw, 3.5rem) 1rem;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .account-grid { grid-template-columns: 280px 1fr; }
}

.account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  height: fit-content;
}

.account-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.account-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #046307, #045b06);
  color: #f7e8a0;
  font-family: var(--font-heading), Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.account-user-email {
  font-size: 0.78rem;
  color: #6b6b6b;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.account-nav a,
.account-nav button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 9px;
  font-size: 0.9rem;
  color: #2d2d2d;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.account-nav a:hover,
.account-nav a:focus-visible,
.account-nav button:hover,
.account-nav a.is-active {
  background: rgba(212, 175, 55, 0.14);
  color: #045b06;
  text-decoration: none;
}

.account-section {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.account-section + .account-section { margin-top: 1.25rem; }

.account-section h2 {
  font-family: var(--font-heading), Georgia, serif;
  font-size: 1.4rem;
  margin: 0 0 1rem;
  color: #0a330d;
}

.account-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.account-orders-table th,
.account-orders-table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
  vertical-align: top;
}

.account-orders-table th {
  font-weight: 700;
  color: #1a1a1a;
  background: rgba(4, 99, 7, 0.04);
}

.account-status {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(212, 175, 55, 0.18);
  color: #6a4d00;
}

.account-status--paid { background: rgba(4, 99, 7, 0.14); color: #045b06; }
.account-status--cancelled { background: rgba(170, 30, 30, 0.12); color: #8a1f1f; }

.account-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b6b6b;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.account-docs a {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  font-size: 0.78rem;
  color: #045b06;
  background: rgba(212, 175, 55, 0.08);
}

.account-docs a:hover {
  background: linear-gradient(135deg, #046307, #045b06);
  color: #fffdf6;
  text-decoration: none;
}
