/* ===== Header & Navigation Styles (Amber/Gold Theme) ===== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(30, 18, 0, 0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217,119,6,0.25);
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(25, 14, 0, 0.98);
  box-shadow: 0 4px 30px rgba(217,119,6,0.25);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 70px;
  max-width: 1400px; margin: 0 auto;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(217,119,6,0.45);
  animation: float 3s ease-in-out infinite;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .brand { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #fff; }
.logo-text .tagline { font-size: 10px; color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }

/* Desktop Nav */
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  color: rgba(255,255,255,0.72);
  font-size: 14px; font-weight: 600;
  cursor: pointer; border-radius: 8px;
  transition: all 0.2s; text-decoration: none; position: relative;
}
.nav-link:hover { color: #fff; background: rgba(217,119,6,0.15); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -2px; left: 14px; right: 14px;
  height: 2px; border-radius: 2px; background: var(--accent);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-header-login {
  padding: 8px 20px;
  background: transparent; border: 1.5px solid var(--accent);
  color: var(--accent); border-radius: 8px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.btn-header-login:hover { background: var(--accent); color: #fff; }

/* User Avatar */
.user-avatar-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #b45309, #ea580c);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: all 0.2s; position: relative;
}
.user-avatar-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(217,119,6,0.45); }

/* User Dropdown */
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: 0 16px 50px rgba(0,0,0,0.18);
  min-width: 200px; padding: 8px; display: none; z-index: 600;
  border: 1px solid rgba(217,119,6,0.15);
  animation: fadeInUp 0.2s ease;
}
.user-dropdown.show { display: flex; flex-direction: column; }
.user-dropdown-header { padding: 12px 14px 10px; border-bottom: 1px solid #FEF3C7; margin-bottom: 6px; }
.user-dropdown-name { font-weight: 700; font-size: 14px; color: var(--text-dark); }
.user-dropdown-phone { font-size: 12px; color: var(--text-muted); }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  cursor: pointer; color: var(--text-mid); font-size: 14px; font-weight: 600;
  transition: background 0.15s;
}
.dropdown-item:hover { background: rgba(217,119,6,0.08); color: var(--primary); }
.dropdown-item.danger:hover { background: #FEE2E2; color: #DC2626; }

/* Logged-in state: hide login/register button everywhere */
.header-actions.user-logged-in .btn-header-login {
  display: none !important;
}

.page-content { padding-top: 70px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .header-inner { padding: 0 20px; }
}
