/* 
 * Shopystreet Drop-Shop Custom Stylesheet
 * Brand Mood: Modern, Minimal, Lots of White Space, Friendly, Professional
 * Inspired by: Stripe, Linear, Apple, Shopify
 */

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

:root {
  --primary: #0f766e; /* Emerald Green */
  --primary-hover: #0d5c56;
  --primary-light: #f0fdf4;
  --accent: #2563eb; /* Blue */
  --accent-light: #eff6ff;
  --bg: #f8fafc; /* Slate 50 */
  --text: #0f172a; /* Slate 900 */
  --text-muted: #64748b; /* Slate 500 */
  --border: #e2e8f0; /* Slate 200 */
  --white: #ffffff;
  --gold: #d97706;
  --success: #10b981;
  
  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.03), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 32px -6px rgba(15, 23, 42, 0.07), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  opacity: 0;
  animation: pageFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  to { opacity: 1; }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Utilities */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Announcement Bar */
.announcement-bar {
  background-color: var(--text);
  color: var(--white);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
  position: relative;
  z-index: 100;
}

/* Sticky Navigation Header Styles */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 70px;
  display: flex;
  align-items: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-header.scrolled {
  height: 56px;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.sticky-header.scrolled .mobile-menu {
  top: 56px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 20px;
  letter-spacing: -0.7px;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style-type: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.nav-contact {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.nav-links a.nav-contact:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Hamburger & Mobile Menu Drawer */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  align-items: center;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 499;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 14px;
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-menu a:last-child {
  border-bottom: none;
  color: var(--primary);
}

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

/* Homepage Hero Entrance Section */
.hero-entrance-section {
  background-color: var(--bg); /* Slate 50 to contrast with pure white cards */
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
  text-align: center;
}

.hero-entrance-section .brand-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.hero-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 4px;
}

.hero-entrance-section p.tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 32px;
  letter-spacing: -0.2px;
}

/* Custom Search Bar Styles */
.search-bar-container {
  max-width: 580px;
  margin: 0 auto 56px;
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 6px 16px 6px 20px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.search-input-wrapper:focus-within {
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(15, 118, 110, 0.12), 0 10px 20px -5px rgba(15, 23, 42, 0.05);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
}

.search-input-wrapper input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  padding: 8px 0;
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-search-btn:hover {
  color: var(--text);
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  margin-top: 8px;
  max-height: 380px;
  overflow-y: auto;
  text-align: left;
}

/* Three Main Actions Grid */
.main-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.main-action-card {
  background-color: var(--white);
  border: 1.5px solid var(--border); /* Slightly stronger border */
  border-radius: var(--radius-md);
  padding: 32px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02); /* Solid depth shadow */
}

.main-action-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px); /* Confident lift */
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.04); /* Confident depth shadow */
}

.action-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.main-action-card:hover .action-card-icon {
  background-color: var(--primary);
  color: var(--white);
}

.main-action-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.main-action-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
  flex-grow: 1;
}

.action-btn-styled {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
}

.main-action-card:hover .action-btn-styled {
  text-decoration: underline;
}

/* Drop-Shop Philosophy Banner */
.philosophy-section {
  background-color: #f1f5f9; /* Rich contrasting background for this section */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
  text-align: center;
}

.philosophy-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.philosophy-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background-color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(15, 23, 42, 0.02);
  flex: 1;
  transition: all 0.3s ease;
  min-height: 200px;
  text-align: center;
}

.philosophy-step:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 20px -5px rgba(15, 23, 42, 0.06), 0 4px 8px -4px rgba(15, 23, 42, 0.04);
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  background-color: var(--primary-light);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 200px;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 26px;
  font-weight: 800;
  transform: rotate(-90deg); /* Rotate ↓ to point right → on desktop */
  transition: transform 0.3s ease;
  user-select: none;
}

/* Category Filter Rail (Scrollbar-hidden) */
.filter-rail-wrapper {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
}

.filter-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.filter-rail::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background-color: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.filter-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.filter-btn.active {
  background-color: var(--text);
  border-color: var(--text);
  color: var(--white);
}

/* Portals / Access Layers Grid */
.portals-section {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Portal Card Style */
.portal-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border); /* Solid clear border */
  overflow: hidden;
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.04), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.portal-card:hover {
  transform: translateY(-8px); /* Confident elevation */
  box-shadow: 0 25px 35px -8px rgba(15, 23, 42, 0.08), 0 12px 16px -4px rgba(15, 23, 42, 0.04);
  border-color: var(--primary);
}

.portal-media {
  position: relative;
  height: 280px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.portal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-card:hover .portal-media img {
  transform: scale(1.04);
}

/* Subtle inner gradient overlay at the bottom of the background image for text/boundary legibility and grounding */
.portal-media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0) 50%,
    rgba(15, 23, 42, 0.15) 75%,
    rgba(15, 23, 42, 0.45) 100%
  );
  pointer-events: none;
  z-index: 2;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-card:hover .portal-media::after {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0) 40%,
    rgba(15, 23, 42, 0.2) 70%,
    rgba(15, 23, 42, 0.55) 100%
  );
}

.portal-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.portal-carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.portal-carousel img.active {
  opacity: 1;
  z-index: 2;
}

.portal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.4));
  z-index: 3;
  pointer-events: none;
}

.portal-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
  z-index: 4;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.portal-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portal-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.portal-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.portal-enter-btn {
  width: 100%;
  background-color: var(--text); /* Confident solid dark slate */
  border: 1.5px solid var(--text);
  color: var(--white);
  padding: 14px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

/* Sourcing Request Hub Section */
.sourcing-section {
  background-color: var(--bg); /* Slate 50 background for contrast */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.sourcing-container {
  max-width: 800px;
  margin: 0 auto;
}

.sourcing-card {
  background-color: var(--white); /* Pure White Card */
  border: 1.5px solid var(--border); /* Solid confident border */
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.05), 0 5px 15px -3px rgba(15, 23, 42, 0.03); /* Rich premium depth */
}

.sourcing-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
  gap: 16px;
}

.sourcing-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 4px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

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

.sourcing-tab-btn.active {
  color: var(--primary);
}

.sourcing-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.sourcing-tab-content {
  display: none;
}

.sourcing-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* File Upload Drag & Drop */
.file-dropzone {
  border: 2px dashed var(--border);
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.file-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-text {
  font-size: 13px;
  color: var(--text-muted);
}

.dropzone-text strong {
  color: var(--primary);
}

.file-preview {
  margin-top: 12px;
  display: none;
  align-items: center;
  gap: 12px;
  background-color: var(--bg);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.file-preview img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.file-preview-info {
  flex-grow: 1;
  text-align: left;
}

.file-preview-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.file-preview-size {
  font-size: 11px;
  color: var(--text-muted);
}

.file-preview-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 18px;
}

/* Submit Sourcing Button */
.submit-sourcing-btn {
  width: 100%;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 16px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.submit-sourcing-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Interactive Scanning UI */
.scanning-ui {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.scanning-visual {
  position: relative;
  width: 200px;
  height: 200px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--white);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.scanning-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--success);
  box-shadow: 0 0 10px var(--success), 0 0 20px var(--success);
  animation: laserScan 2.5s infinite linear;
}

@keyframes laserScan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.scan-status-ticker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  margin-bottom: 8px;
  height: 18px;
}

.scan-progress-bar {
  width: 100%;
  max-width: 300px;
  height: 6px;
  background-color: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.scan-progress-fill {
  width: 0%;
  height: 100%;
  background-color: var(--primary);
  transition: width 0.1s linear;
}

.scan-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.scan-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 280px;
}

/* Link Inspector Interface */
.link-inspector-box {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.domain-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.domain-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

.domain-tag.active {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Parcel Tracker Section */
.tracker-section {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

.tracker-container {
  max-width: 650px;
  margin: 0 auto;
}

.tracker-search-card {
  background-color: var(--white);
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--primary); /* A premium solid accent header indicator */
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 10px -2px rgba(15, 23, 42, 0.02);
  margin-bottom: 30px;
}

.search-input-group {
  display: flex;
  gap: 12px;
}

.tracker-btn {
  background-color: var(--text);
  color: var(--white);
  border: none;
  padding: 0 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tracker-btn:hover {
  background-color: var(--primary);
}

.tracker-helper-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.tracker-helper-text strong {
  cursor: pointer;
  color: var(--primary);
  text-decoration: underline;
}

/* Timeline Layout */
.tracker-results {
  display: none;
  background-color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.06), 0 5px 15px -3px rgba(15, 23, 42, 0.03);
  animation: fadeIn 0.3s ease-out;
}

.tracker-results-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.tracking-id-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.tracking-status-badge {
  background-color: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 5px;
  width: 2px;
  height: calc(100% - 24px);
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border);
  border: 2px solid var(--white);
  z-index: 5;
  box-shadow: 0 0 0 1px var(--border);
}

.timeline-item.completed .timeline-dot {
  background-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.timeline-item.active .timeline-dot {
  background-color: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulseActive 2s infinite;
}

@keyframes pulseActive {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.timeline-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.timeline-text {
  flex-grow: 1;
}

.timeline-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}

.timeline-item.completed .timeline-title,
.timeline-item.active .timeline-title {
  color: var(--text);
  font-weight: 700;
}

.timeline-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.5;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: right;
}

/* Dedicated Portal View Drawer / Overlay */
.portal-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  z-index: 500;
  display: none;
  overflow-y: auto;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.portal-viewer-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.portal-viewer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.back-to-portals-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.back-to-portals-btn:hover {
  color: var(--primary);
}

.portal-viewer-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.portal-viewer-title span {
  color: var(--primary);
}

.portal-viewer-layout {
  max-width: 1140px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-sidebar-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.subcat-btn {
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.subcat-btn:hover {
  background-color: rgba(15, 118, 110, 0.05);
  color: var(--primary);
}

.subcat-btn.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.portal-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Product Card */
.product-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.product-media {
  height: 200px;
  background-color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-subcat {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.product-spec {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  flex-grow: 1;
}

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

.product-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.product-actions {
  display: flex;
  gap: 8px;
}

.product-action-btn {
  background-color: var(--primary-light);
  color: var(--primary);
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-action-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}

.product-custom-btn {
  background-color: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-custom-btn:hover {
  background-color: var(--text);
  color: var(--white);
  border-color: var(--text);
}

/* Float Actions & Success Alert */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: whatsapp-breathing 4s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  animation: none;
}

@keyframes whatsapp-breathing {
  0%, 80%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  }
  90% {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
  }
}

.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.success-modal {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon {
  width: 56px;
  height: 56px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  font-size: 24px;
}

.success-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

.success-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.success-btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.success-btn:hover {
  background-color: var(--primary-hover);
}

/* Footer Section */
.footer {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  padding: 40px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .portals-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .main-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .portal-viewer-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .portal-sidebar {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    gap: 8px;
  }
  .portal-sidebar::-webkit-scrollbar {
    display: none;
  }
  .portal-sidebar-title {
    display: none;
  }
  .portal-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-entrance-section {
    padding: 48px 16px;
  }
  .hero-logo {
    font-size: 34px;
    letter-spacing: -1.2px;
  }
  .main-actions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .philosophy-grid {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .step-arrow {
    transform: rotate(0deg); /* Points down on mobile */
    padding: 8px 0;
  }
  .sourcing-card {
    padding: 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-full {
    grid-column: span 1;
  }
  .portal-product-grid {
    grid-template-columns: 1fr;
  }
  .search-input-group {
    flex-direction: column;
  }
  .tracker-btn {
    padding: 12px;
  }
}

/* Premium Scroll Reveal Elements */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Image Loading Fade-in */
img {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

img.img-loaded {
  opacity: 1;
}

/* Custom premium hover scale animations for buttons */
button, .action-btn-styled, .portal-enter-btn, .sourcing-tab-btn, .filter-btn, .product-action-btn, .product-custom-btn, .tracker-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Soft pressed click dynamics */
button:active, .action-btn-styled:active, .portal-enter-btn:active, .sourcing-tab-btn:active, .filter-btn:active, .product-action-btn:active, .product-custom-btn:active, .tracker-btn:active {
  transform: scale(0.965) translateY(1px) !important;
}
