/* ===================================================
   AL AHLI HOSPITAL MEDICAL AUCTION - MASTER STYLESHEET
   Matching Figma Prototype Design Pixel-by-Pixel
   =================================================== */

:root {
  /* Brand Colors */
  --primary: #E60050;
  --primary-hover: #C50042;
  --primary-light: #FDE8EE;
  --primary-glow: rgba(230, 0, 80, 0.35);
  
  /* Dark Navy Palette */
  --navy-darkest: #071224;
  --navy-dark: #0B1727;
  --navy-card: #0D1B2E;
  --navy-border: #1E293B;
  --navy-hover: #16243A;

  /* Neutral Grayscale */
  --white: #FFFFFF;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Accent Colors */
  --green-verified: #10B981;
  --green-light: #ECFDF5;
  --amber-warning: #F59E0B;
  --amber-light: #FEF3C7;
  --blue-accent: #3B82F6;
  --blue-light: #EFF6FF;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Cairo', 'Inter', sans-serif;

  /* Shadow Presets */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 8px 24px var(--primary-glow);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--white);
  color: var(--slate-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* RTL Support for Arabic Switch */
html[dir="rtl"] {
  font-family: var(--font-ar);
}
html[dir="rtl"] .hero-actions i,
html[dir="rtl"] .btn i {
  transform: scaleX(-1);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* ================= CONTAINER ================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= TOP BAR ================= */
.top-bar {
  background-color: var(--navy-darkest);
  color: var(--slate-300);
  font-size: 0.8125rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-300);
  font-weight: 400;
}

.contact-item i {
  color: var(--primary);
  font-size: 0.875rem;
}

.contact-item:hover {
  color: var(--white);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-200);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.top-divider {
  width: 1px;
  height: 14px;
  background-color: var(--slate-600);
}

.currency-selector {
  color: var(--slate-300);
  font-weight: 600;
  font-size: 0.8125rem;
}

/* ================= MAIN HEADER & NAV ================= */
.main-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

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

/* Header Left: User Profile */
.header-user-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.user-profile-badge:hover {
  background-color: var(--slate-100);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E60050 0%, #B3003B 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(230, 0, 80, 0.3);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-900);
}

.chevron-icon {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.verified-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green-verified);
}

.verified-tag i {
  font-size: 0.75rem;
}

.notification-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background-color: var(--white);
  color: var(--slate-700);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.notification-btn:hover {
  border-color: var(--slate-400);
  background-color: var(--slate-50);
  color: var(--slate-900);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* Nav Menu Pills */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--slate-50);
  padding: 6px;
  border-radius: 9999px;
  border: 1px solid var(--slate-200);
}

.nav-link {
  display: block;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--slate-900);
  background-color: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  background-color: var(--white);
  color: var(--slate-900);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Header Logo */
.header-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.brand-logo:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.header-logo-img {
  height: 50px;
  max-height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.footer-logo-badge {
  background: var(--white);
  padding: 8px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast);
}

.footer-logo-badge:hover {
  transform: translateY(-2px);
}

.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.ar-title {
  font-family: var(--font-ar);
  font-size: 1.125rem;
  font-weight: 800;
  color: #0E5484; /* Al Ahli signature medical blue */
  line-height: 1.1;
  letter-spacing: -0.2px;
}

.en-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #0E5484;
}

.logo-emblem {
  width: 48px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-svg {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  filter: drop-shadow(0 4px 8px rgba(230, 0, 80, 0.25));
}

.mobile-toggle-btn {
  display: none;
  font-size: 1.25rem;
  color: var(--slate-700);
  padding: 8px;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 9999px;
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
}

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

.btn-glow {
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-glow:hover {
  box-shadow: 0 8px 24px rgba(230, 0, 80, 0.5);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: #0E5484;
  border: 1.5px solid #CBD5E1;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: var(--white);
  border-color: #0E5484;
  color: #08385A;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--slate-800);
  border: 1.5px solid var(--slate-300);
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-bid {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  padding: 11px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.btn-bid:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-disabled {
  background: var(--slate-200) !important;
  color: var(--slate-500) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-block {
  width: 100%;
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #F0F5FA 0%, #FFFFFF 50%, #F5F7FB 100%);
  padding: 68px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--slate-200);
}

.hero-background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(14, 84, 132, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(230, 0, 80, 0.06) 0%, transparent 45%),
    linear-gradient(rgba(241, 245, 249, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 245, 249, 0.3) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
}

.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #0A2540;
  margin-bottom: 20px;
}

.text-highlight {
  color: var(--primary);
  display: block;
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--slate-600);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--slate-600);
  font-weight: 500;
}

.shield-icon {
  color: var(--green-verified);
  font-size: 1rem;
}

/* Hero Visual Column */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}

.visual-glow-backdrop {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(230, 0, 80, 0.12) 0%, rgba(14, 84, 132, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
}

.verified-seller-tag {
  position: absolute;
  top: 10px;
  right: 20px;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  padding: 6px 14px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-800);
  box-shadow: var(--shadow-md);
  z-index: 5;
}

.verified-seller-tag i {
  color: var(--green-verified);
}

.device-showcase-container,
.hero-device-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-device-transparent-img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(15, 23, 42, 0.18));
  animation: heroFloat 5s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.hero-device-shadow {
  width: 65%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.06) 50%, transparent 75%);
  margin-top: -12px;
  border-radius: 50%;
  filter: blur(5px);
}

.xray-device-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.15));
}

/* Floating Bid Card */
.floating-bid-card {
  position: absolute;
  bottom: 0px;
  left: 10px;
  width: 300px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.15), 0 8px 16px -6px rgba(15, 23, 42, 0.08);
  z-index: 10;
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.card-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: capitalize;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 0, 80, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(230, 0, 80, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 0, 80, 0); }
}

.hero-timer {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.card-device-meta {
  margin-bottom: 14px;
}

.device-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.3;
}

.device-brand {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
}

.card-bid-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--slate-100);
  padding-top: 10px;
}

.bid-amount-wrap {
  display: flex;
  flex-direction: column;
}

.bid-label {
  font-size: 0.6875rem;
  color: var(--slate-500);
  font-weight: 500;
}

.bid-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
}

.bid-value small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-700);
}

.bids-count-tag {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ================= STATS COUNTER BAR ================= */
.stats-counter-bar {
  background-color: var(--navy-dark);
  color: var(--white);
  padding: 44px 0;
  border-bottom: 1px solid var(--navy-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-card {
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--slate-400);
  font-weight: 500;
}

/* ================= VALUE PROPOSITION PILLARS ================= */
.pillars-section {
  background-color: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--slate-100);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-300);
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--blue-light);
  color: #0E5484;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.pillar-desc {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.4;
}

/* ================= SECTION HEADINGS ================= */
.section-heading {
  margin-bottom: 44px;
}

.text-center {
  text-align: center;
}

.category-badge,
.sub-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #0E5484;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pink-badge {
  color: var(--primary) !important;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--slate-900);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--slate-600);
  max-width: 640px;
  margin: 0 auto;
}

.text-white {
  color: var(--white) !important;
}

.text-slate {
  color: var(--slate-400) !important;
}

/* ================= MEDICAL CATEGORIES ================= */
.categories-section {
  background-color: var(--slate-50);
  padding: 80px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: #0E5484;
  box-shadow: var(--shadow-lg);
}

.cat-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--blue-light);
  color: #0E5484;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  transition: all var(--transition-fast);
}

.cat-card:hover .cat-icon-circle {
  background-color: #0E5484;
  color: var(--white);
}

.cat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-800);
}

/* ================= FEATURED AUCTIONS ================= */
.auctions-section {
  background-color: var(--white);
  padding: 88px 0;
}

.auctions-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.auctions-header-row .section-subtitle {
  margin: 0;
}

/* Filter Tabs */
.auction-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  background-color: var(--slate-100);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  background-color: var(--slate-200);
  color: var(--slate-900);
}

.tab-btn.active {
  background-color: var(--navy-dark);
  color: var(--white);
}

/* 8 Grid Cards */
.auction-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.auction-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-slow);
}

.auction-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--slate-300);
}

.card-ended {
  opacity: 0.85;
}

.card-top-status {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 5;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

.status-live {
  background-color: var(--primary-light);
  color: var(--primary);
}

.status-ending {
  background-color: var(--amber-light);
  color: #B45309;
}

.warning-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--amber-warning);
}

.status-upcoming {
  background-color: var(--slate-100);
  color: var(--slate-700);
}

.status-ended {
  background-color: var(--slate-200);
  color: var(--slate-600);
}

.ended-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--slate-500);
}

/* Card Thumbnail */
.card-thumb {
  height: 180px;
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF4F9 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.thumb-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #0E5484;
  opacity: 0.85;
  transition: transform var(--transition-normal);
}

.card-device-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.auction-card:hover .card-device-img,
.auction-card:hover .thumb-illustration {
  transform: scale(1.06);
}

.author-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.xray-thumb { color: #0284C7; }
.monitor-thumb { color: #E60050; }
.dialysis-thumb { color: #2563EB; }
.anesthesia-thumb { color: #0D9488; }
.bed-thumb { color: #4F46E5; }
.cryo-thumb { color: #06B6D4; }
.vent-thumb { color: #D946EF; }
.steril-thumb { color: #64748B; }

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0E5484;
}

.cat-meta {
  font-size: 0.6875rem;
  color: var(--slate-400);
  font-weight: 500;
}

.card-product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
  line-height: 1.35;
  min-height: 42px;
}

.card-pricing {
  margin-bottom: 12px;
}

.price-caption {
  display: block;
  font-size: 0.6875rem;
  color: var(--slate-500);
  font-weight: 500;
  margin-bottom: 2px;
}

.price-amount {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary);
}

.card-ended .price-amount {
  color: var(--slate-700);
}

.price-amount .currency {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-700);
}

.card-stats-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--slate-600);
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--slate-100);
}

.bids-text {
  font-weight: 500;
}

.bids-text i {
  color: var(--slate-400);
  margin-right: 4px;
}

.timer-countdown {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.timer-pink { color: var(--primary); }
.timer-amber { color: #D97706; }
.timer-upcoming { color: #0284C7; }
.timer-ended { color: var(--slate-500); }

/* ================= HOW DOES THE AUCTION WORK ================= */
.how-it-works-section {
  background-color: var(--navy-darkest);
  padding: 96px 0;
  position: relative;
}

.dark-heading .section-title {
  color: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 36px 24px 28px;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 0, 80, 0.4);
}

.step-number-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.step-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.step-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step-card-desc {
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.5;
}

/* ================= WHY AL AHLI HOSPITAL & DEPOSIT ================= */
.why-us-section {
  background-color: var(--slate-50);
  padding: 96px 0;
}

.why-us-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.why-us-left .section-title {
  text-align: left;
}

.why-us-left .section-subtitle {
  margin: 0 0 36px 0;
  text-align: left;
}

.features-2x2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-item-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
}

.feature-text {
  font-size: 0.8125rem;
  color: var(--slate-600);
  line-height: 1.45;
}

/* Right Deposit Banner Card */
.deposit-banner-card {
  background: linear-gradient(145deg, #0D1B2E 0%, #081220 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 20px 40px rgba(7, 18, 36, 0.25);
  position: relative;
  overflow: hidden;
}

.deposit-banner-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(230, 0, 80, 0.2) 0%, transparent 70%);
  filter: blur(30px);
}

.deposit-card-inner {
  position: relative;
  z-index: 2;
}

.deposit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.deposit-badge i {
  color: var(--primary);
}

.deposit-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
}

.deposit-explanation {
  font-size: 0.875rem;
  color: var(--slate-300);
  line-height: 1.6;
  margin-bottom: 24px;
}

.deposit-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.deposit-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--white);
  font-weight: 500;
}

.check-green {
  color: var(--green-verified);
  font-size: 1rem;
}

/* ================= BUYER REVIEWS / TESTIMONIALS ================= */
.reviews-section {
  background-color: var(--white);
  padding: 88px 0;
}

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

.review-card {
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: all var(--transition-normal);
}

.review-card:hover {
  background-color: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-300);
}

.star-rating {
  display: flex;
  gap: 4px;
  color: var(--primary);
  font-size: 0.9375rem;
}

.review-text {
  font-size: 0.9375rem;
  color: var(--slate-700);
  line-height: 1.6;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #0E5484;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slate-900);
}

.author-role {
  font-size: 0.75rem;
  color: var(--slate-500);
}

/* ================= BRAND LOGOS MARQUEE ================= */
.brands-section {
  background-color: var(--white);
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--slate-200);
}

.brands-headline {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--slate-400);
  margin-bottom: 32px;
}

.brands-marquee {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.brand-item {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-400);
  letter-spacing: -0.5px;
  transition: color var(--transition-fast);
}

.brand-item:hover {
  color: #0E5484;
}

/* ================= NEWSLETTER SUBSCRIBE ================= */
.newsletter-section {
  background-color: var(--navy-darkest);
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.newsletter-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}

.newsletter-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter-desc {
  font-size: 0.875rem;
  color: var(--slate-400);
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.newsletter-input {
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 14px 22px;
  font-size: 0.875rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-input::placeholder {
  color: var(--slate-500);
}

.btn-subscribe {
  padding: 14px 28px;
}

.newsletter-msg {
  font-size: 0.8125rem;
  margin-top: 8px;
}

/* ================= FOOTER ================= */
.site-footer {
  background-color: var(--navy-darkest);
  color: var(--white);
  padding: 80px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo .ar-title,
.footer-logo .en-title {
  color: var(--white);
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.footer-contact-link i {
  color: var(--primary);
  font-size: 0.875rem;
}

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

.footer-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--slate-400);
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

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

.copyright-text {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ================= MODAL DIALOG ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(7, 18, 36, 0.7);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

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

.modal-box {
  background-color: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition-slow);
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.75rem;
  color: var(--slate-400);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
}

.modal-close:hover {
  color: var(--slate-900);
  background-color: var(--slate-100);
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--slate-900);
}

.modal-brand {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-bottom: 20px;
}

.bid-summary-box {
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.bid-sum-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.text-pink { color: var(--primary); }
.text-green { color: var(--green-verified); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 6px;
}

.bid-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--slate-300);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--white);
  transition: border-color var(--transition-fast);
}

.bid-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.currency-tag {
  background-color: var(--slate-100);
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-700);
  border-right: 1px solid var(--slate-200);
}

.bid-input {
  flex-grow: 1;
  border: none;
  padding: 12px 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  outline: none;
}

.bid-help-text {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 6px;
  margin-bottom: 16px;
}

.deposit-guarantee-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: var(--green-light);
  border: 1px solid #A7F3D0;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.75rem;
  color: #065F46;
  margin-bottom: 24px;
}

.deposit-guarantee-note i {
  font-size: 1rem;
  color: var(--green-verified);
  margin-top: 2px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--navy-dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.3s ease;
}

.toast i {
  color: var(--green-verified);
}

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

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1080px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust-badge {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 20px;
  }
  .floating-bid-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 20px;
    width: 100%;
    max-width: 320px;
  }
  .pillars-grid,
  .categories-grid,
  .auction-cards-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-us-layout {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .main-nav {
    display: none;
  }
  .mobile-toggle-btn {
    display: block;
  }
  .header-logo-img {
    height: 38px;
    max-height: 40px;
    max-width: 170px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
  .stat-card::after {
    display: none !important;
  }
  .pillars-grid,
  .categories-grid,
  .auction-cards-grid,
  .steps-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .features-2x2-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-card {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  .btn-subscribe {
    width: 100%;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ================= EQUIPMENT MEDIA VIEWER & VIDEO ================= */
.media-nav-tabs {
  display: inline-flex;
  background: #E2E8F0;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 16px;
}

.media-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate-600);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.media-video-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: var(--shadow-md);
}

.media-video-container iframe,
.media-video-container video {
  width: 100%;
  height: 380px;
  display: block;
  border: none;
}

