@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Pharmex Portal Design System & Custom Properties
   ========================================================================== */
:root {

  /* Radius */
  --radius: 0.875rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);


  /* =========================================================
     COLOR PALETTE
     PharmaDeals — Warm Gold / Blue / Purple
     ========================================================= */

  /* Base */
  --background: #f4f6f9;
  --foreground: #111111;

  /* Cards / Surfaces */
  --card: #ffffff;
  --card-foreground: #111111;

  --popover: #ffffff;
  --popover-foreground: #111111;


  /* =========================================================
     PRIMARY BRAND COLORS
     ========================================================= */

  /* Deep purple */
  --primary: #3f2576;
  --primary-foreground: #ffffff;

  /* Purple highlight */
  --primary-glow: #542b7d;

  /* Blue */
  --blue: #3b4a96;
  --blue-soft: #3b528f;
  --blue-deep: #3c1a71;  


  /* =========================================================
     WARM GOLD
     ========================================================= */

  /* Main warm muted gold used in headings */
  --gold: #a78b69;

  /* Softer champagne-gold */
  --gold-soft: #dbbc99;

  /* Brighter gold accent */
  --gold-accent: #dab360;


  /* =========================================================
     SECONDARY / MUTED
     ========================================================= */

  --secondary: #f5f4fa;
  --secondary-foreground: #1a1a1a;

  --muted: #f5f4fa;
  --muted-foreground: #344054;

  --accent: #542b7d;
  --accent-foreground: #ffffff;


  /* =========================================================
     STATUS
     ========================================================= */

  --destructive: #c9372d;
  --destructive-foreground: #ffffff;


  /* =========================================================
     BORDERS / INPUTS
     ========================================================= */

  --border: rgba(229, 231, 235, 0.9);
  --input: rgba(229, 231, 235, 0.95);

  --ring: #3f2576;


  /* =========================================================
     BRAND GRADIENTS
     ========================================================= */

  /*
   * Main PharmaDeals gradient:
   * Warm Gold → Blue → Deep Purple
   */
  --gradient-primary: linear-gradient(
    90deg,
    #a78b69 0%,
    #3b4a96 48%,
    #3f2576 100%
  );


  /*
   * Button gradient:
   * Blue → Purple
   */
  --gradient-button: linear-gradient(
    90deg,
    #3b4a96 0%,
    #3c1a71 52%,
    #542b7d 100%
  );


  /*
   * Gold → Blue → Purple
   * Slightly stronger version for hero elements
   */
  --gradient-brand: linear-gradient(
    90deg,
    #a78b69 0%,
    #3b4a96 45%,
    #3f2576 100%
  );


  /*
   * Surface gradient
   */
  --gradient-surface: linear-gradient(
    160deg,
    #ffffff 0%,
    #fafafb 55%,
    #f5f4fa 100%
  );


  /*
   * Soft hero background (left stays clean white)
   */
  --gradient-hero:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fafafb 60%,
      #f5f4fa 100%
    );


  /*
   * Icon background
   */
  --gradient-icon: linear-gradient(
    135deg,
    rgba(167, 139, 105, 0.16),
    rgba(59, 74, 150, 0.12),
    rgba(63, 37, 118, 0.08)
  );


  /* =========================================================
     SHADOWS
     ========================================================= */

  --shadow-sm:
    0 2px 8px rgba(17, 17, 17, 0.04);

  --shadow-glow:
    0 20px 60px -20px rgba(63, 37, 118, 0.25);

  --shadow-panel:
    0 24px 60px -30px rgba(30, 30, 35, 0.14);

  --shadow-dropdown:
    0 16px 40px -10px rgba(0, 0, 0, 0.12);


  /* =========================================================
     TYPOGRAPHY
     ========================================================= */

  /*
   * Closest match to the screenshot:
   * Inter
   */
  --font-sans:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;


  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;


  /* Font weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--muted-foreground);
}

.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-gradient, .gradient-text {
  background-image: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Base Utilities */
.surface-card {
  background-image: var(--gradient-surface);
  box-shadow: var(--shadow-panel);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px -20px rgba(74, 29, 140, 0.45);
  filter: brightness(1.05);
}

.btn-secondary {
  background: #ffffff;
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--secondary);
  border-color: rgba(74, 29, 140, 0.3);
  transform: translateY(-2px);
  color: var(--primary);
}

.btn-pill {
  border-radius: 50px;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
}

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

.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* Main Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--foreground);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  word-break: keep-all;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--primary);
}

.chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
  stroke-width: 2.5;
  color: var(--muted-foreground);
}

.nav-link:hover .chevron-icon,
.nav-item:hover .chevron-icon {
  color: var(--primary);
  transform: translateY(1px);
}

/* Translucent Dropdowns */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 240px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.5rem;
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--foreground);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(74, 29, 140, 0.08);
  color: var(--primary);
  transform: translateX(4px);
}

.dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(74, 29, 140, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* Auth Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.btn-login {
  background: #ffffff;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  word-break: keep-all;
}

.btn-login:hover {
  background: var(--muted);
  border-color: rgba(74, 29, 140, 0.3);
  color: var(--primary);
}

.btn-register {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: all 0.25s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  word-break: keep-all;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(74, 29, 140, 0.5);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background-image: var(--gradient-hero);
  padding: 5rem 0 6rem;
}

/* =========================================================
   RIGHT-SIDE DECORATIVE PATTERN
   Structure taken from your reference
   Colours mapped to current Pharmex theme only
   ========================================================= */

.hero-decor {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 1024px) {
  .hero-decor {
    width: 55%;
  }
}

/* large soft circle, top-right */
.circle-top {
  position: absolute;
  top: -10rem;
  right: -6rem;
  width: 34rem;
  height: 34rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary-glow) 22%, transparent);
}

/* vertical light bands */
.bands {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12%;
  right: 0;
  background-image: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--primary) 12%, transparent) 0px,
    color-mix(in srgb, var(--primary) 12%, transparent) 58px,
    color-mix(in srgb, var(--primary) 4%, transparent) 58px,
    color-mix(in srgb, var(--primary) 4%, transparent) 116px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30%, #000 92%, transparent);
}

/* violet orb overlapping the bands */
.orb {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  filter: blur(2px);
}

/* bronze / gold quarter circle, bottom-right */
.bronze-arc {
  position: absolute;
  bottom: -6rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--gold) 32%, transparent);
}

/* Make sure all content sits above the decorative layer */
.hero .container,
.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

/* Paragraph font-size set to 15px as requested */
.hero p {
  font-size: 15px;
  margin-bottom: 2.25rem;
  max-width: 560px;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Completely hide any previous hero image */
.hero-image-wrapper,
.hero-image {
  display: none !important;
}

/* Sections General */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-title p {
  max-width: 620px;
  margin: 0 auto;
  font-size: var(--text-base);
}

/* Business Opportunities Section (Compact Small Cards, 5-4 Layout) */
.opportunities-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.opportunities-row-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
}

.opportunities-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  max-width: 82%;
  margin: 0 auto;
  width: 100%;
}

.opp-card-sm {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.15rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.opp-card-sm:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-panel);
  border-color: var(--primary);
  background: rgba(74, 29, 140, 0.015);
}

.opp-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px -4px rgba(74, 29, 140, 0.35);
  transition: transform 0.25s ease;
}

.opp-card-sm:hover .opp-icon-badge {
  transform: scale(1.08);
}

.opp-card-sm h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  line-height: 1.3;
}

.opp-card-sm p {
  font-size: 0.825rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.5;
}

.opp-link-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.opp-card-sm:hover .opp-link-sm {
  gap: 0.55rem;
}

/* Industries Section */
.industries-section {
  background: var(--card);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.industry-pill {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 0.85rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-sm);
}

.industry-pill:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  background: rgba(74, 29, 140, 0.03);
}

.industry-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(74, 29, 140, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.25s ease;
}

.industry-pill:hover .industry-icon {
  background: var(--gradient-primary);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 6px 16px -4px rgba(74, 29, 140, 0.35);
}

.industry-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.extra-industries {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.extra-industries.show {
  display: grid;
  opacity: 1;
}

.view-more-container {
  text-align: center;
}

/* How It Works Section (NO CARDS!) */
.how-it-works-section {
  background: #ffffff;
  padding: 5.5rem 0;
}

.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.how-it-works-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-glow));
  z-index: 1;
  opacity: 0.4;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 0.5rem;
}

.step-number-bubble {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--primary);
  box-shadow: 0 10px 25px rgba(74, 29, 140, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  transition: all 0.3s ease;
}

.step-item:hover .step-number-bubble {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.step-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--foreground);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Pre-Footer Grow Banner */
.grow-banner-section {
  padding: 3.5rem 0 5rem;
}

.grow-banner-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-panel);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.5rem;
  align-items: center;
}

.grow-left h2 {
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.grow-left p {
  font-size: var(--text-base);
  margin-bottom: 2rem;
}

.grow-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grow-feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 1px solid var(--border);
  padding-left: 1.25rem;
}

.grow-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(74, 29, 140, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.grow-feature-item h4 {
  font-size: var(--text-base);
  font-weight: 700;
}

.grow-feature-item p {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Footer Section — Reduced Column Distance (gap: 1.25rem) */
.footer {
  background: var(--gradient-primary);
  position: relative;
  padding-top: 0;
  color: #ffffff;
}

.footer-top-gradient-line {
  display: none;
}

.footer-main {
  padding: 4.5rem 0 3rem;
}

/* Footer grid gap reduced to 1.25rem for tighter column spacing */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr 1.5fr;
  gap: 1.25rem;
}

.footer-col-logo {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

/* White card behind logo on gradient footer */
.footer-col-logo > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: fit-content;
  line-height: 0;
}

.footer-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  background: #ffffff;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-icon:hover {
  background: #ffffff;
  color: var(--primary-glow);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(63, 37, 118, 0.25);
}

.footer-col-heading {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 2px;
}

.footer-newsletter-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  color: var(--foreground);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-newsletter-card h4 {
  color: var(--primary);
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

.footer-newsletter-card p {
  color: var(--muted-foreground);
  font-size: var(--text-xs);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #f8f7fc;
  font-size: var(--text-sm);
  color: var(--foreground);
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(63, 37, 118, 0.1);
  background: #ffffff;
}

.newsletter-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: var(--text-sm);
}

.newsletter-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(63, 37, 118, 0.25);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: text-decoration 0.2s ease, opacity 0.2s ease;
}

.footer-bottom a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-panel);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--muted);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--muted-foreground);
}

.modal-header h3 {
  font-size: var(--text-2xl);
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: var(--text-sm);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 29, 140, 0.1);
}

/* Clean Centered Auth Page (Login, Register, Forgot Password) */
.clean-auth-body {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 1.5rem;
  position: relative;
}

.clean-auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  padding: 1.5rem 0.5rem;
  text-align: center;
  margin: 0 auto;
}

.clean-auth-logo-wrapper {
  margin-bottom: 1.25rem;
}

.clean-auth-logo-img {
  height: 52px;
  width: auto;
}

.clean-auth-subheading {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Floating Label on Input Border Pattern */
.floating-input-group {
  position: relative;
  margin-bottom: 1.6rem;
  text-align: left;
}

.floating-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #d1d5db;
  border-radius: 18px;
  background: #f8fafc;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  padding: 0.15rem 0.5rem;
  height: 54px;
}

.floating-input-wrapper:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(74, 29, 140, 0.1);
}

.floating-input-icon {
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.floating-input-wrapper:focus-within .floating-input-icon {
  color: var(--primary);
}

.floating-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  color: var(--foreground);
  font-family: inherit;
  font-weight: 500;
  padding-left: 0.25rem;
}

.floating-label {
  position: absolute;
  left: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 6px;
  background: transparent;
  line-height: 1;
}

.floating-input-wrapper:focus-within .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label,
.floating-input-group.has-value .floating-label {
  top: -1px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: #ffffff;
  border-radius: 4px;
}

.auth-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 0.25rem;
}

.forgot-password-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.925rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

.toggle-switch-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--foreground);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 20px;
  transition: background 0.25s ease;
  display: inline-block;
  vertical-align: middle;
}

.toggle-switch-input {
  display: none;
}

.toggle-switch-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toggle-switch-input:checked + .toggle-switch {
  background: var(--primary);
}

.toggle-switch-input:checked + .toggle-switch .toggle-switch-slider {
  transform: translateX(20px);
}

.btn-pill-submit {
  width: 100%;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  background: var(--gradient-primary);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.btn-pill-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(74, 29, 140, 0.5);
  filter: brightness(1.05);
}

.clean-auth-footer-text {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.clean-auth-footer-text a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.clean-auth-footer-text a:hover {
  text-decoration: underline;
}

/* Enhanced Register Form Multi-Section & Multi-Column Styles */
.clean-auth-card.register-card-wide {
  max-width: 860px;
  text-align: left;
  padding: 2rem 1.5rem;
}

.register-header-centered {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 0.65rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.auth-section-title i {
  color: var(--primary);
  font-size: 1.05rem;
}

.auth-section-title .section-optional {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  margin-left: auto;
  background: #f1f5f9;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.auth-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.auth-grid-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem 1.25rem;
}

.auth-col-full {
  grid-column: 1 / -1;
}

select.floating-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2rem;
}

.floating-select-arrow {
  position: absolute;
  right: 1.15rem;
  pointer-events: none;
  color: #64748b;
  font-size: 0.8rem;
}

.register-notice-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}

.register-notice-box i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .clean-auth-card.register-card-wide {
    padding: 1.25rem 0.75rem;
  }
  .auth-grid-2col, .auth-grid-3col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-section-card {
    padding: 1.15rem 1rem 0.5rem;
  }
}

.clean-page-footer {
  margin-top: auto;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.clean-page-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.clean-page-footer a:hover {
  text-decoration: underline;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--foreground);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3.7s forwards;
}

.toast-success {
  border-left: 4px solid #22c55e;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .opportunities-row-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .opportunities-row-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .industries-grid, .extra-industries {
    grid-template-columns: repeat(3, 1fr);
  }
  .how-it-works-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
  .how-it-works-steps::before {
    display: none;
  }
  .grow-banner-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .grow-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .footer-newsletter-card {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .header .container {
    height: 3.75rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-panel);
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-actions {
    display: none;
  }
  .opportunities-row-5, .opportunities-row-4 {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .industries-grid, .extra-industries {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-it-works-steps {
    grid-template-columns: 1fr;
  }
  .grow-features {
    grid-template-columns: 1fr;
  }
  .grow-feature-item {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-newsletter-card {
    grid-column: span 1;
  }
  .footer-bottom-content {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Soften the pattern on mobile so text stays readable */
  .circle-top {
    width: 22rem;
    height: 22rem;
    top: -6rem;
    right: -4rem;
  }
  .orb {
    width: 12rem;
    height: 12rem;
  }
  .bronze-arc {
    width: 12rem;
    height: 12rem;
  }
}


/* ===== Auto breadcrumb — unified alignment (all pages) ===== */
.phx-breadcrumb-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 24px 14px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  clear: both;
  display: block;
  overflow: visible;
  background: #ffffff !important;
  background-color: #ffffff !important;
}
.phx-breadcrumb-wrap .phx-breadcrumb {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.phx-breadcrumb {
  font-size: 12px;
  line-height: 1.45;
  font-family: inherit;
  display: block;
}
.phx-bc-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 22px;
}
.phx-bc-item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  flex-shrink: 0;
}
.phx-bc-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.phx-bc-link:hover {
  color: var(--primary, #3f2576);
  text-decoration: none;
}
.phx-bc-current {
  color: #64748b;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(320px, 55vw);
}
.phx-bc-sep {
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  color: #cbd5e1;
  font-size: 9px;
  list-style: none;
  flex-shrink: 0;
}
.phx-bc-sep i {
  font-size: 9px;
}
/* Space between path and banner / next content */
.phx-breadcrumb-wrap + .trade-banner,
.phx-breadcrumb-wrap + .page-banner,
.phx-breadcrumb-wrap + .hero-banner,
.phx-breadcrumb-wrap + .deals-banner,
.phx-breadcrumb-wrap + .page-layout,
.phx-breadcrumb-wrap + .page-container {
  margin-top: 4px;
}
/* Post / form pages — align with post-page content width */
.post-page > .phx-breadcrumb-wrap {
  max-width: none;
  padding: 4px 0 14px;
  margin: 0;
}
/* Listing toolbars */
.trade-toolbar + .phx-breadcrumb-wrap,
.phx-breadcrumb-wrap + .trade-toolbar {
  /* keep natural flow */
}
@media (max-width: 768px) {
  .phx-breadcrumb-wrap {
    padding: 10px 16px 12px;
  }
  .phx-bc-current {
    max-width: 160px;
  }
  .post-page > .phx-breadcrumb-wrap {
    padding: 4px 0 12px;
  }
}

/* Notification count only when there are unread messages */
.notif-badge[hidden],
.notif-badge:empty {
  display: none !important;
}

/* ==========================================================================
   Owner Post Alert & Actions (Viewing Own Post)
   ========================================================================== */
.owner-post-alert-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.05) 100%);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-left: 4px solid #4f46e5;
  border-radius: 8px;
  padding: 12px 18px;
  margin: 16px 0 20px;
}
.owner-alert-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #4f46e5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}
.owner-alert-text {
  flex: 1;
}
.owner-alert-text strong {
  display: block;
  font-size: 14px;
  color: #1e1b4b;
  font-weight: 700;
  margin-bottom: 2px;
}
.owner-alert-text p {
  margin: 0;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.4;
}
.badge-own-post {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.25);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 8px;
  vertical-align: middle;
}
.details-page-actions .btn-owner-manage {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border: 1px solid #4f46e5 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.details-page-actions .btn-owner-manage:hover {
  background: #4338ca !important;
  border-color: #4338ca !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}
.details-page-actions .btn-owner-inquiries {
  background: #ffffff !important;
  color: #4f46e5 !important;
  border: 1px solid #c7d2fe !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.details-page-actions .btn-owner-inquiries:hover {
  background: rgba(79, 70, 229, 0.08) !important;
  border-color: #4f46e5 !important;
  color: #4338ca !important;
  transform: translateY(-1px);
}
