/* ==========================================================================
   XTen National Directory & People Portal - Cool White Modern Design System
   ========================================================================== */

:root {
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-hover: #F8FAFC;
  
  --border-light: #E2E8F0;
  --border-focus: #3B82F6;
  --border-subtle: #EDF2F7;
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;
  
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-glow: rgba(37, 99, 235, 0.15);
  
  --success: #059669;
  --success-bg: #ECFDF5;
  --success-border: #A7F3D0;
  
  --accent-cyan: #0284C7;
  --accent-cyan-bg: #F0F9FF;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 30px -6px rgba(15, 23, 42, 0.12), 0 8px 10px -4px rgba(15, 23, 42, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary) 0%, #0284C7 100%);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.logo-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Segmented Tab Switcher */
.tab-switcher {
  display: flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-btn .badge {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-secondary-sm {
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary-sm:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: #CBD5E1;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  background: radial-gradient(circle at top, rgba(239, 246, 255, 0.8) 0%, rgba(248, 250, 252, 0) 70%);
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Search Bar Container (Interactive)
   -------------------------------------------------------------------------- */
.search-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-card:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 12px 28px -4px var(--primary-glow), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
}

.search-inputs {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.input-field {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field input, .input-field select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.4rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-main);
  outline: none;
  transition: all 0.15s ease;
}

.input-field select {
  padding-left: 2.2rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}

.input-field input:focus, .input-field select:focus {
  background: var(--bg-surface);
  border-color: var(--border-focus);
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-light);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.btn-search {
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 6px var(--primary-glow);
  transition: all 0.15s ease;
}

.btn-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.search-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 0.25rem 0.65rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-tag:hover, .filter-tag.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #BFDBFE;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}

.filter-checkbox input {
  accent-color: var(--primary);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Stats Summary Strip
   -------------------------------------------------------------------------- */
.stats-strip {
  max-width: 1080px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-item strong {
  color: var(--text-main);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Main Results Section
   -------------------------------------------------------------------------- */
.main-content {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.results-count {
  font-size: 1rem;
  color: var(--text-muted);
}

.results-count strong {
  color: var(--text-main);
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sort-select {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 0.85rem;
  color: var(--text-main);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.entity-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.entity-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.entity-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.entity-title a:hover {
  color: var(--primary);
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-unverified {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.entity-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.abn-tag {
  font-family: monospace;
  font-weight: 600;
  color: var(--text-main);
  background: #E2E8F0;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.entity-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.view-stat {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-card-action {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-main);
}

.btn-card-action:hover {
  background: var(--bg-subtle);
  border-color: #CBD5E1;
}

.btn-card-claim {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #BFDBFE;
}

.btn-card-claim:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   Legal & Privacy Strip (people.xten.au specific)
   -------------------------------------------------------------------------- */
.privacy-banner {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #1E40AF;
}

.privacy-banner a.link-action {
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Modal Dialogs
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-modal-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
}

.btn-modal-close:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Detail Rows in Modal */
.detail-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.85rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.detail-value {
  color: var(--text-main);
  font-weight: 600;
}

/* Form inputs in Claim modal */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--bg-subtle);
}

.form-control:focus {
  background: var(--bg-surface);
  border-color: var(--border-focus);
  outline: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .search-inputs {
    grid-template-columns: 1fr 1fr;
  }
  .btn-search {
    grid-column: span 2;
    justify-content: center;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }
  .tab-switcher {
    width: 100%;
    justify-content: center;
  }
  .search-inputs {
    grid-template-columns: 1fr;
  }
  .btn-search {
    grid-column: span 1;
  }
  .hero-title {
    font-size: 2rem;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Purchasable Features & Tiers Styling (Featured, Prominent, Video)
   -------------------------------------------------------------------------- */

/* Badges */
.badge-prominent {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  background: #EFF6FF;
  border: 1px solid #93C5FD;
  color: #1D4ED8;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  color: #B45309;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-video {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  background: #FAF5FF;
  border: 1px solid #D8B4FE;
  color: #7E22CE;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.badge-video:hover {
  background: #F3E8FF;
  border-color: #C084FC;
}

/* Card Accents for Prominent and Featured */
.entity-card.tier-prominent {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-color: #93C5FD;
  box-shadow: 0 0 0 1.5px rgba(37, 99, 235, 0.25), var(--shadow-md);
}

.entity-card.tier-featured {
  border-color: #FCD34D;
  box-shadow: 0 0 0 1.5px rgba(245, 158, 11, 0.25), var(--shadow-sm);
}

/* Video Showcase Player Box in Modal */
.video-showcase-box {
  background: #0F172A;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: white;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-player-screen {
  background: #1E293B;
  border-radius: var(--radius-sm);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid #334155;
}

.play-circle-btn {
  width: 54px;
  height: 54px;
  background: rgba(37, 99, 235, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.play-circle-btn:hover {
  transform: scale(1.08);
  background: var(--primary);
}

.video-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94A3B8;
}

.video-progress {
  width: 100%;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  overflow: hidden;
}

.video-progress-fill {
  height: 100%;
  width: 45%;
  background: var(--primary);
}

/* --------------------------------------------------------------------------
   Pricing Modal & Plan Comparison Cards
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3), var(--shadow-md);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.plan-badge-top {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.plan-badge-top.blue {
  background: var(--primary);
  color: white;
}

.plan-badge-top.amber {
  background: #F59E0B;
  color: white;
}

.plan-badge-top.purple {
  background: #9333EA;
  color: white;
}

.plan-header {
  margin-bottom: 1rem;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.plan-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 2.5rem;
}

.plan-pricing-block {
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.plan-price-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.plan-price-period {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.plan-features-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.plan-features-list li span.check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.btn-select-plan {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-select-plan:hover {
  background: var(--bg-subtle);
  border-color: #CBD5E1;
}

.btn-select-plan.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 6px var(--primary-glow);
}

.btn-select-plan.primary:hover {
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================================================
   Header Verify Button & Badges
   ========================================================================== */
.btn-verify-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-verify-header:hover {
  background: #DBEAFE;
  border-color: #93C5FD;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.badge-accent {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Faceted Search Filter Pills & Quick Hubs Bar
   ========================================================================== */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.facet-pill {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.facet-pill:hover {
  background: var(--bg-subtle);
  border-color: #CBD5E1;
  color: var(--text-main);
}

.facet-pill.active {
  background: var(--primary-light);
  border-color: #93C5FD;
  color: var(--primary);
  font-weight: 700;
}

.quick-hubs-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0 0.25rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.hub-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-grow: 1;
}

.hub-chip {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.hub-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.hub-chip.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  font-weight: 600;
}

.btn-toggle-anzsic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: auto;
}

.btn-toggle-anzsic:hover {
  background: var(--primary-light);
  border-color: #93C5FD;
}

.btn-toggle-anzsic .chevron {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.btn-toggle-anzsic.expanded .chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   ANZSIC Industry Classification Drawer
   ========================================================================== */
.anzsic-drawer {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.anzsic-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-drawer-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
}

.btn-drawer-close:hover {
  color: var(--text-main);
}

.anzsic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.anzsic-card-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.anzsic-card-item:hover {
  background: var(--primary-light);
  border-color: #BFDBFE;
  transform: translateY(-1px);
}

.anzsic-card-item.active {
  background: #EFF6FF;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.anzsic-card-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.anzsic-card-info {
  flex-grow: 1;
  min-width: 0;
}

.anzsic-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anzsic-card-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  gap: 0.4rem;
}

/* ==========================================================================
   Invoice & Payee Safety Checker
   ========================================================================== */
.invoice-checker-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .invoice-checker-grid {
    grid-template-columns: 1fr;
  }
}

.checker-form-pane {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.btn-text-action {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

.btn-text-action:hover {
  color: var(--primary-hover);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.checksum-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-light);
  border: 1px solid var(--border-light);
}

.checksum-pill.valid {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.checksum-pill.invalid {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}

.verification-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  gap: 1rem;
}

.report-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.report-entity-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-top: 0.15rem;
}

.report-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.score-badge {
  text-align: center;
  background: var(--bg-page);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  min-width: 90px;
}

.score-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1;
  display: block;
}

.score-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
  display: block;
}

.score-badge.low-risk {
  background: var(--success-bg);
  border-color: var(--success);
}
.score-badge.low-risk .score-num {
  color: var(--success);
}

.score-badge.medium-risk {
  background: #FEF3C7;
  border-color: #F59E0B;
}
.score-badge.medium-risk .score-num {
  color: #B45309;
}

.score-badge.high-risk {
  background: #FEE2E2;
  border-color: #DC2626;
}
.score-badge.high-risk .score-num {
  color: #DC2626;
}

.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
}

.check-row.pass {
  border-left: 3px solid var(--success);
  background: #F0FDF4;
}
.check-row.warn {
  border-left: 3px solid #F59E0B;
  background: #FFFBEB;
}
.check-row.fail {
  border-left: 3px solid #DC2626;
  background: #FEF2F2;
}

.check-icon {
  font-size: 1rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.check-text strong {
  display: block;
  color: var(--text-main);
  font-size: 0.82rem;
}

.check-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.risk-callout {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.4;
}

.risk-callout.clean {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.risk-callout.warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.risk-callout.danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

/* ==========================================================================
   Trust Badge & QR Code Modal
   ========================================================================== */
.badge-modal-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .badge-modal-layout {
    grid-template-columns: 1fr;
  }
}

.badge-style-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.style-tab-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
}

.style-tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.badge-preview-box {
  padding: 1.5rem;
  background: #F8FAFC;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.code-snippet-box {
  position: relative;
}

.btn-copy-snippet {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: #1E293B;
  color: #E2E8F0;
  border: 1px solid #475569;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-copy-snippet:hover {
  background: #334155;
  color: #FFFFFF;
}

.qr-preview-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.qr-svg-holder {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

.qr-svg-holder svg {
  max-width: 160px;
  height: auto;
}

/* ==========================================================================
   Card Utility Buttons (Copy Accounting & Request Quote)
   ========================================================================== */
.card-utilities-bar {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.btn-util {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-util:hover {
  background: var(--bg-subtle);
  border-color: #CBD5E1;
  color: var(--text-main);
}

.btn-util.primary-util {
  color: var(--primary);
  border-color: #BFDBFE;
  background: var(--primary-light);
}

.btn-util.primary-util:hover {
  background: #DBEAFE;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Print Due Diligence Certificate (@media print)
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  
  #invoiceCheckerModal,
  #invoiceCheckerModal * {
    visibility: visible;
  }
  
  #invoiceCheckerModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: white !important;
    display: block !important;
    opacity: 1 !important;
    padding: 0;
  }

  .modal-card {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  .btn-modal-close,
  .modal-footer,
  .checker-form-pane {
    display: none !important;
  }

  .invoice-checker-grid {
    display: block !important;
  }

  .verification-card {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    padding: 2rem !important;
  }

  .verification-card::before {
    content: "OFFICIAL XTen.REGISTER DUE DILIGENCE AUDIT CERTIFICATE";
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    border-bottom: 2px solid #000000;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .verification-card::after {
    content: "Certified as extracted from Australian Business Register (ABR) Commonwealth Open Data. Retain this certificate with payment approval voucher for tax and audit compliance.";
    display: block;
    font-size: 0.75rem;
    color: #555555;
    border-top: 1px solid #CCCCCC;
    padding-top: 0.5rem;
    margin-top: 2rem;
    text-align: center;
  }
}


/* --------------------------------------------------------------------------
   UNSPSC product & service picker (search panel + claim form), 2026-09-25
   -------------------------------------------------------------------------- */
.unspsc-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.unspsc-panel-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}
.unspsc-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}
.unspsc-picker { position: relative; }
.unspsc-results {
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 40;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
}
.unspsc-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--text-main);
  cursor: pointer;
}
.unspsc-row:last-child { border-bottom: 0; }
.unspsc-row:hover, .unspsc-row:focus { background: var(--primary-light); outline: none; }
.unspsc-row .unspsc-code { font-family: var(--font-mono, monospace); font-size: 0.72rem; color: var(--text-light); flex-shrink: 0; }
.unspsc-row .unspsc-title { flex: 1; }
.unspsc-level {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
  flex-shrink: 0;
}
.unspsc-level.group { background: #FEF3C7; color: #92400E; }
.unspsc-empty { padding: 0.6rem 0.75rem; font-size: 0.8rem; color: var(--text-light); }
.unspsc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.4rem; }
.unspsc-chips:empty { display: none; }
.unspsc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem 0.25rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #93C5FD;
  border-radius: var(--radius-full);
}
.unspsc-chip.group { color: #92400E; background: #FEF3C7; border-color: #FCD34D; }
.unspsc-chip button {
  border: 0; background: none; cursor: pointer; color: inherit;
  font-size: 1rem; line-height: 1; padding: 0 2px;
}
.unspsc-counter {
  float: right;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
}
.unspsc-counter.over { color: #B91C1C; }
.unspsc-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-full);
}
.unspsc-active-pill button { border: 0; background: none; cursor: pointer; color: inherit; font-size: 1rem; line-height: 1; }
/* display:inline-flex above would otherwise beat the [hidden] UA rule */
.unspsc-active-pill[hidden], .unspsc-chips[hidden] { display: none !important; }
