/* ─── Site Header & Navigation ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.2s ease;
}

.nav {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(92%, 1240px);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: 38px;
  max-width: 170px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  font-weight: 600;
  font-size: 0.93rem;
  list-style: none;
}

.nav-links a {
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease;
  padding: 6px 2px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ea580c;
}

/* Hide duplicate mobile auth actions on desktop */
.mobile-auth-actions {
  display: none !important;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-actions .btn {
  height: 40px;
  min-height: 40px;
  padding: 0 1.15rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.nav-actions .btn-outline {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
}

.nav-actions .btn-outline:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.nav-actions .nav-user-btn {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-actions .nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  border-color: #cbd5e1;
  color: #334155;
}

.nav-actions .nav-profile-btn:hover {
  border-color: #ff6b35;
  color: #ea580c;
  background: #fff7ed;
}

.nav-actions .nav-profile-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  flex-shrink: 0;
}

.nav-actions .nav-dash-btn {
  font-weight: 700;
  border-color: #cbd5e1;
}

.nav-actions .nav-dash-btn:hover {
  border-color: #ff6b35;
  color: #ea580c;
}

.nav-actions .btn-primary {
  border: none;
  background: linear-gradient(135deg, #ff6b35 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.25);
}

.nav-actions .btn-primary:hover {
  background: linear-gradient(135deg, #ff7a47 0%, #d94e09 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(234, 88, 12, 0.35);
}

.menu-btn {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  color: #0f172a;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.menu-btn:hover {
  background: #f1f5f9;
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(251, 191, 36, 0.06), #fff);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: -0.055em;
}

.hero-art {
  min-height: 500px;
  border-radius: 32px;
  background: linear-gradient(145deg, #1f2937, #ff6b35);
  padding: 1.2rem;
  display: grid;
  place-items: center;
  color: #fff;
}

.search-panel {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 0.8fr auto;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.search-panel input,
.search-panel select {
  border: 0;
  background: var(--soft);
  border-radius: 10px;
  padding: 0.8rem;
  min-width: 0;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark, #0B0F14);
  color: #d7dce4;
  padding: 4.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-logo {
  width: 220px;
  margin-bottom: 1rem;
}

.footer a {
  display: block;
  margin: 0.45rem 0;
  color: #c6ccd5;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #2a3038;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ─── Dashboard & Misc Layouts ─────────────────────────────────────────────── */
.page-hero {
  padding: 4rem 0;
  background: var(--warm);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2rem 0 5rem;
}

.sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  height: max-content;
}

.sidebar a {
  display: block;
  padding: 0.65rem;
  border-radius: 9px;
  text-decoration: none;
  color: inherit;
}

.sidebar a:hover,
.sidebar a.active {
  background: #fff0e9;
  color: #b83f16;
}

.legal {
  width: min(92%, 850px);
  margin: auto;
  padding: 4rem 0;
}

.legal h2 {
  margin-top: 2rem;
}

/* ── Partner Sidebar Actions & Global Modals ───────────────────────────────── */
.sidebar-divider {
  margin: 0.75rem 0;
  border: 0;
  border-top: 1px solid var(--line, #e2e8f0);
}

.sidebar-action-btn {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand, #ff6b35) !important;
  border-radius: 9px;
  padding: 0.65rem;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.sidebar-action-btn:hover {
  background: #fff0e9 !important;
  color: #b83f16 !important;
}

.ps-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  overflow-y: auto;
}

.ps-modal-backdrop[hidden] {
  display: none !important;
}

.ps-modal-window {
  background: #ffffff;
  border-radius: 16px;
  width: min(100%, 580px);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line, #e2e8f0);
  padding: 1.5rem;
  position: relative;
}

.ps-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 12px;
}

.ps-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.ps-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
