/**
 * Q-DASH Delivery Commerce Mall & Live Operations Center (Platform V3 Experience)
 * Path: assets/css/delivery-menu-platform-v3.css
 * Theme: Digital Mall + Live Operations Center + Multi-Platform Control
 * Scoped strictly to .qd-delivery-menu
 */

:root {
  --qdm-primary: #e05c2a;
  --qdm-primary-hover: #f07545;
  --qdm-primary-glow: rgba(224, 92, 42, 0.35);
  --qdm-navy-bg: #060c18;
  --qdm-navy-surface: #0c1628;
  --qdm-navy-card: #132238;
  --qdm-navy-card-hover: #192b45;
  --qdm-navy-border: rgba(255, 255, 255, 0.1);
  --qdm-navy-border-hover: rgba(224, 92, 42, 0.45);
  --qdm-cyan: #06b6d4;
  --qdm-cyan-light: #38bdf8;
  --qdm-green: #10b981;
  --qdm-green-light: #34d399;
  --qdm-amber: #f59e0b;
  --qdm-purple: #8b5cf6;
  --qdm-rose: #f43f5e;
  --qdm-talabat: #ff5a00;
  --qdm-snoonu: #e61c24;
  --qdm-rafeeq: #00a2ff;
  --qdm-keeta: #eab308;
  --qdm-text-main: #0f172a;
  --qdm-text-muted: #64748b;
  --qdm-text-light: #f8fafc;
  --qdm-text-sub: #94a3b8;
  --qdm-font: 'Tajawal', sans-serif;
  --qdm-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.05);
  --qdm-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --qdm-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.22);
  --qdm-shadow-glow: 0 0 35px rgba(224, 92, 42, 0.25);
  --qdm-radius: 16px;
}

.qd-delivery-menu {
  font-family: var(--qdm-font);
  color: var(--qdm-text-main);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

.qd-delivery-menu *,
.qd-delivery-menu *::before,
.qd-delivery-menu *::after {
  box-sizing: border-box;
}

/* Shell & Layout Helpers */
.qdm-shell {
  width: min(1280px, 94vw);
  margin-inline: auto;
}

.qdm-sec {
  padding: clamp(64px, 7vw, 104px) 0;
  position: relative;
}

.qdm-sec-dark {
  background: var(--qdm-navy-bg);
  color: var(--qdm-text-light);
  border-top: 1px solid var(--qdm-navy-border);
}

.qdm-sec-light {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.qdm-sec-white {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

/* Header & Typography */
.qdm-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}

.qdm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(224, 92, 42, 0.1);
  color: var(--qdm-primary);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(224, 92, 42, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qdm-sec-dark .qdm-kicker {
  background: rgba(224, 92, 42, 0.18);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.35);
}

.qdm-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 16px;
  color: inherit;
}

.qdm-title span {
  color: var(--qdm-primary);
  position: relative;
  display: inline-block;
}

.qdm-sec-dark .qdm-title span {
  color: #fb923c;
}

.qdm-subtitle {
  font-size: clamp(0.96rem, 1.2vw, 1.14rem);
  color: var(--qdm-text-muted);
  line-height: 1.7;
  margin: 0;
}

.qdm-sec-dark .qdm-subtitle {
  color: var(--qdm-text-sub);
}

/* Badges & Micro UI */
.qdm-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--qdm-cyan-light);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.qdm-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qdm-green);
  display: inline-block;
  box-shadow: 0 0 8px var(--qdm-green);
  animation: qdmPulse 2s infinite ease-in-out;
}

@keyframes qdmPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Buttons */
.qdm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  font-family: inherit;
}

.qdm-btn-primary {
  background: linear-gradient(135deg, #e05c2a 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(224, 92, 42, 0.35);
}

.qdm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(224, 92, 42, 0.45);
  color: #ffffff;
}

.qdm-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.qdm-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.qdm-btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.qdm-btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  color: #ffffff;
}

/* ==========================================================================
   01. HERO SECTION (DIGITAL MALL & LIVE COMMERCE CONTROL)
   ========================================================================== */
.qdm-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 50% 20%, #152544 0%, #060c18 70%);
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 90px);
}

.qdm-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.qdm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.qdm-hero-title {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 20px;
}

.qdm-hero-title span {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qdm-hero-desc {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: #94a3b8;
  line-height: 1.75;
  margin: 0 0 28px;
}

.qdm-hero-message-box {
  background: rgba(224, 92, 42, 0.12);
  border-inline-start: 4px solid var(--qdm-primary);
  border-radius: 0 10px 10px 0;
  padding: 12px 18px;
  margin-bottom: 30px;
  color: #ffedd5;
  font-weight: 700;
  font-size: 0.96rem;
}

.qdm-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.qdm-hero-channels-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qdm-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

/* Hero Courier 3D Showcase Visual */
.qdm-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qdm-hero-courier-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: radial-gradient(circle at 50% 40%, rgba(224, 92, 42, 0.25) 0%, rgba(6, 12, 24, 0.9) 75%);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(224, 92, 42, 0.2);
  backdrop-filter: blur(14px);
  overflow: visible;
  animation: qdmFloat 6s ease-in-out infinite;
}

@keyframes qdmFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.qdm-hero-courier-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: cover;
}

.qdm-hero-courier-live-badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 24px;
  background: #0f172a;
  border: 1px solid var(--qdm-primary);
  box-shadow: 0 8px 20px rgba(224, 92, 42, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.qdm-hero-floating-stat {
  position: absolute;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  z-index: 3;
  transition: all 0.3s ease;
}

.qdm-hero-floating-stat:hover {
  transform: scale(1.06);
  border-color: var(--qdm-primary);
}

.qdm-hero-floating-stat.stat-speed {
  bottom: -16px;
  inset-inline-start: 20px;
  border-color: var(--qdm-green);
}

.qdm-hero-floating-stat.stat-channels {
  bottom: 20px;
  inset-inline-end: -16px;
  border-color: var(--qdm-cyan-light);
}

/* ==========================================================================
   02. LIVE CONSUMER ORDERING & FAST FULFILLMENT SHOWCASE (3D PHONE EXPERIENCE)
   ========================================================================== */
.qdm-ordering-showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.qdm-ordering-phone-wrap {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0.8) 70%);
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(56, 189, 248, 0.2);
}

.qdm-ordering-phone-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: cover;
}

.qdm-ordering-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qdm-ordering-feature-card {
  background: var(--qdm-navy-surface);
  border: 1px solid var(--qdm-navy-border);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.25s ease;
}

.qdm-ordering-feature-card:hover {
  border-color: var(--qdm-primary);
  transform: translateX(-4px);
  background: var(--qdm-navy-card-hover);
}

.qdm-ordering-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(224, 92, 42, 0.14);
  color: #fb923c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(224, 92, 42, 0.3);
}

.qdm-ordering-feat-content h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.qdm-ordering-feat-content p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--qdm-text-sub);
  line-height: 1.6;
}
.qdm-orbit-card.bottom-left { bottom: 10px; inset-inline-start: 20px; }
.qdm-orbit-card.bottom-right { bottom: 0; inset-inline-end: 15px; }

/* ==========================================================================
   02. LIVE STORE OPERATIONS WALL
   ========================================================================== */
.qdm-ops-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.qdm-ops-card {
  background: var(--qdm-navy-surface);
  border: 1px solid var(--qdm-navy-border);
  border-radius: var(--qdm-radius);
  padding: 22px;
  transition: all 0.3s ease;
  position: relative;
}

.qdm-ops-card:hover {
  transform: translateY(-4px);
  border-color: var(--qdm-navy-border-hover);
  box-shadow: var(--qdm-shadow-lg);
}

.qdm-ops-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.qdm-ops-store-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qdm-ops-store-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--qdm-primary);
  border: 1px solid var(--qdm-navy-border);
}

.qdm-ops-store-title {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.qdm-ops-store-type {
  font-size: 0.78rem;
  color: var(--qdm-text-sub);
}

.qdm-ops-stats-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.qdm-ops-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}

.qdm-ops-stat-line span:first-child {
  color: var(--qdm-text-sub);
}

.qdm-ops-stat-line strong {
  color: #ffffff;
}

.qdm-ops-action-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--qdm-green-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   03. BEFORE / Q-DASH / AFTER WORKFLOW
   ========================================================================== */
.qdm-workflow-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.qdm-compare-card {
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 36px);
  position: relative;
  transition: all 0.3s ease;
}

.qdm-compare-card.chaos {
  background: #fff5f5;
  border: 2px solid #fecaca;
}

.qdm-compare-card.managed {
  background: #f0fdf4;
  border: 2px solid #86efac;
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.12);
}

.qdm-compare-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.qdm-compare-card-title h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.qdm-compare-card.chaos h3 { color: #991b1b; }
.qdm-compare-card.managed h3 { color: #166534; }

.qdm-compare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qdm-compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  line-height: 1.6;
}

.qdm-compare-card.chaos li { color: #7f1d1d; }
.qdm-compare-card.managed li { color: #14532d; font-weight: 600; }

.qdm-compare-list li i {
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ==========================================================================
   04. PRODUCT CONTROL DASHBOARD (INTERACTIVE DEMO)
   ========================================================================== */
.qdm-dash-wrapper {
  background: var(--qdm-navy-surface);
  border: 1px solid var(--qdm-navy-border);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--qdm-shadow-lg);
}

.qdm-dash-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--qdm-navy-border);
}

.qdm-dash-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--qdm-navy-border);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #ffffff;
}

.qdm-dash-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.qdm-dash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 0.88rem;
}

.qdm-dash-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--qdm-text-sub);
  padding: 14px;
  font-weight: 800;
  border-bottom: 1px solid var(--qdm-navy-border);
  white-space: nowrap;
}

.qdm-dash-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  vertical-align: middle;
}

.qdm-dash-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.qdm-dash-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.qdm-dash-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fb923c;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.qdm-mismatch-row {
  background: rgba(245, 158, 11, 0.08) !important;
}

.qdm-mismatch-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   05. ADMIN CONTROL PANEL SIMULATOR PREVIEW (FIXED HIGH CONTRAST)
   ========================================================================== */
.qdm-admin-sim-shell {
  background: #0b1324;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  color: #f8fafc;
}

.qdm-admin-sim-bar {
  background: #131f38;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.qdm-admin-sim-dots {
  display: flex;
  gap: 6px;
}

.qdm-sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.qdm-admin-sim-body {
  padding: clamp(20px, 3.5vw, 36px);
  color: #f8fafc;
}

.qdm-admin-sim-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.qdm-admin-sim-sidebar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qdm-sim-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: start;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.qdm-sim-nav-btn.active,
.qdm-sim-nav-btn:hover {
  background: rgba(224, 92, 42, 0.2);
  color: #fb923c;
  border-inline-start: 3px solid var(--qdm-primary);
}

.qdm-admin-sim-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  color: #f8fafc;
}

.qdm-admin-sim-content * {
  color: inherit;
}

.qdm-sim-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.qdm-sim-input-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 6px;
}

.qdm-sim-input-group input,
.qdm-sim-input-group select,
.qdm-sim-input-group textarea {
  width: 100%;
  background: #17243e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  font-family: inherit;
}

/* Sim Addons & Variations High Contrast Row */
.qdm-sim-addon-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 18px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.qdm-sim-addon-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(224, 92, 42, 0.3);
}

.qdm-sim-addon-title {
  color: #f8fafc !important;
  font-weight: 700;
}

.qdm-sim-addon-price {
  color: var(--qdm-green-light) !important;
  font-weight: 900;
  font-size: 0.96rem;
}

/* ==========================================================================
   07. CROSS-PLATFORM COMPARISON MATRIX (DECK & ACCORDION)
   ========================================================================== */
.qdm-matrix-deck {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--qdm-shadow-md);
  margin-bottom: 24px;
}

.qdm-matrix-deck-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.3fr;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 800;
  font-size: 0.88rem;
  align-items: center;
}

.qdm-matrix-deck-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.3fr;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.qdm-matrix-deck-row:hover {
  background: #f8fafc;
}

.qdm-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 4px 10px;
  border-radius: 6px;
}

.qdm-platform-tag.talabat { background: #fff1eb; color: var(--qdm-talabat); }
.qdm-platform-tag.snoonu { background: #fdf2f2; color: var(--qdm-snoonu); }
.qdm-platform-tag.rafeeq { background: #f0f9ff; color: var(--qdm-rafeeq); }
.qdm-platform-tag.keeta { background: #fefce8; color: #a16207; }

/* Mobile Comparison Accordion */
.qdm-matrix-acc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--qdm-shadow-sm);
  transition: all 0.25s ease;
}

.qdm-matrix-acc-card.is-open {
  border-color: var(--qdm-primary);
  box-shadow: 0 8px 20px rgba(224, 92, 42, 0.1);
}

.qdm-matrix-acc-header-btn {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.96rem;
  color: #0f172a;
  cursor: pointer;
  text-align: start;
}

.qdm-matrix-acc-card.is-open .qdm-matrix-acc-header-btn {
  background: #fff7ed;
  color: var(--qdm-primary);
}

.qdm-matrix-acc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px 20px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.qdm-matrix-acc-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

/* ==========================================================================
   08. ALL SUPPORTED BUSINESS SECTORS EXPLORER
   ========================================================================== */
.qdm-sector-tabs-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.qdm-sector-filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.qdm-sector-filter-btn.active,
.qdm-sector-filter-btn:hover {
  background: var(--qdm-primary);
  color: #ffffff;
  border-color: var(--qdm-primary);
}

.qdm-sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.qdm-sector-pill-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
  box-shadow: var(--qdm-shadow-sm);
}

.qdm-sector-pill-card:hover {
  transform: translateY(-3px);
  border-color: var(--qdm-primary);
  box-shadow: var(--qdm-shadow-md);
}

.qdm-sector-pill-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--qdm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.qdm-sector-pill-info h5 {
  margin: 0 0 2px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.qdm-sector-pill-info span {
  font-size: 0.76rem;
  color: #64748b;
}

.qdm-sector-disclaimer-bar {
  text-align: center;
  font-size: 0.86rem;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 20px;
  max-width: 860px;
  margin: 0 auto;
}

/* ==========================================================================
   09. IMAGE QUALITY ANALYSIS & PHOTOGRAPHY DISCLAIMER
   ========================================================================== */
.qdm-img-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.qdm-img-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--qdm-shadow-sm);
}

.qdm-img-box.weak {
  border-top: 4px solid #ef4444;
}

.qdm-img-box.optimized {
  border-top: 4px solid #10b981;
}

.qdm-img-visual-mock {
  height: 180px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.qdm-img-visual-mock.weak {
  background: #f8fafc;
  border: 2px dashed #fca5a5;
  color: #991b1b;
}

.qdm-img-visual-mock.optimized {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
  color: #166534;
}

.qdm-photo-disclaimer-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px solid #fdba74;
  border-radius: 16px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.qdm-photo-disclaimer-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--qdm-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.qdm-photo-disclaimer-text h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #9a3412;
}

.qdm-photo-disclaimer-text p {
  margin: 0;
  font-size: 0.92rem;
  color: #7c2d12;
  line-height: 1.6;
}

/* ==========================================================================
   10. SCOPE MATRIX (REDESIGNED 2 DISTINCT POWER CARDS)
   ========================================================================== */
.qdm-scope-power-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.qdm-scope-power-card {
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 36px);
  position: relative;
  box-shadow: var(--qdm-shadow-md);
  transition: all 0.3s ease;
}

.qdm-scope-power-card.included {
  background: #ffffff;
  border: 2px solid #86efac;
}

.qdm-scope-power-card.included:hover {
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.15);
}

.qdm-scope-power-card.not-included {
  background: #fafaf9;
  border: 2px solid #e7e5e4;
}

.qdm-scope-power-card.not-included:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.qdm-scope-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.qdm-scope-power-card.included .qdm-scope-header-badge {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.qdm-scope-power-card.not-included .qdm-scope-header-badge {
  background: #f5f5f4;
  color: #44403c;
  border: 1px solid #d6d3d1;
}

.qdm-scope-card-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qdm-scope-power-card.included .qdm-scope-card-title { color: #166534; }
.qdm-scope-power-card.not-included .qdm-scope-card-title { color: #292524; }

.qdm-scope-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.qdm-scope-micro-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.qdm-scope-power-card.included .qdm-scope-micro-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
}

.qdm-scope-power-card.included .qdm-scope-micro-card:hover {
  background: #dcfce7;
  transform: translateX(-3px);
}

.qdm-scope-power-card.not-included .qdm-scope-micro-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  color: #57534e;
}

.qdm-scope-power-card.not-included .qdm-scope-micro-card:hover {
  border-color: var(--qdm-primary);
  transform: translateX(-3px);
}

/* ==========================================================================
   11 & 12. PLANS & PRICING (DISTINCT CARDS + PRICING BOXES)
   ========================================================================== */
.qdm-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.qdm-plan-card {
  background: var(--qdm-navy-surface);
  border: 1px solid var(--qdm-navy-border);
  border-radius: 22px;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.qdm-plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--qdm-navy-border-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

/* Individual Plan Identity Styles */
.qdm-plan-card.plan-start {
  border-top: 4px solid var(--qdm-cyan-light);
}

.qdm-plan-card.plan-growth {
  border-top: 4px solid var(--qdm-primary);
  border-color: var(--qdm-primary);
  background: radial-gradient(circle at 50% 0%, #1e2e4e 0%, #0c1628 85%);
  box-shadow: 0 20px 50px rgba(224, 92, 42, 0.28);
}

.qdm-plan-card.plan-pro {
  border-top: 4px solid var(--qdm-purple);
}

.qdm-plan-card.plan-enterprise {
  border-top: 4px solid #eab308;
  background: radial-gradient(circle at 50% 0%, #25221b 0%, #0c1628 85%);
}

.qdm-plan-badge {
  position: absolute;
  top: -14px;
  inset-inline-end: 20px;
  background: linear-gradient(135deg, #e05c2a 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 5px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(224, 92, 42, 0.5);
}

.qdm-plan-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px;
}

.qdm-plan-subtitle {
  font-size: 0.84rem;
  color: var(--qdm-text-sub);
  margin-bottom: 18px;
  min-height: 38px;
}

/* Prominent Pricing Box */
.qdm-plan-pricing-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.qdm-plan-price-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.qdm-plan-price-currency {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--qdm-primary);
}

.qdm-plan-price-period {
  font-size: 0.78rem;
  color: var(--qdm-text-sub);
  margin-top: 4px;
}

.qdm-plan-limits-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--qdm-navy-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qdm-plan-limit-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
}

.qdm-plan-limit-row span {
  color: var(--qdm-text-sub);
}

.qdm-plan-limit-row strong {
  color: var(--qdm-cyan-light);
}

.qdm-plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: #cbd5e1;
  flex-grow: 1;
}

.qdm-plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.qdm-plan-features-list li i {
  color: var(--qdm-green);
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.qdm-plan-features-list li.photo-row {
  color: #fcd34d;
  font-size: 0.82rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: 4px;
}

.qdm-plan-features-list li.photo-row i {
  color: #f59e0b;
}

.qdm-overage-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--qdm-navy-border);
  border-radius: 14px;
  padding: 18px 24px;
  text-align: center;
  font-size: 0.9rem;
  color: #cbd5e1;
  max-width: 860px;
  margin: 0 auto;
}

/* ==========================================================================
   13. OPTIONAL ADD-ONS (5 UNIQUE THEMED SERVICE CARDS)
   ========================================================================== */
.qdm-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.qdm-addon-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--qdm-shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.qdm-addon-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--qdm-shadow-md);
}

.qdm-addon-card.theme-photo { border-top: 4px solid #8b5cf6; }
.qdm-addon-card.theme-photo .qdm-addon-icon { background: #f5f3ff; color: #8b5cf6; }

.qdm-addon-card.theme-image { border-top: 4px solid #10b981; }
.qdm-addon-card.theme-image .qdm-addon-icon { background: #ecfdf5; color: #10b981; }

.qdm-addon-card.theme-graphic { border-top: 4px solid #f59e0b; }
.qdm-addon-card.theme-graphic .qdm-addon-icon { background: #fffbeb; color: #f59e0b; }

.qdm-addon-card.theme-copy { border-top: 4px solid #06b6d4; }
.qdm-addon-card.theme-copy .qdm-addon-icon { background: #ecfeff; color: #06b6d4; }

.qdm-addon-card.theme-ads { border-top: 4px solid #f43f5e; }
.qdm-addon-card.theme-ads .qdm-addon-icon { background: #fff1f2; color: #f43f5e; }

.qdm-addon-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.qdm-addon-card h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
}

.qdm-addon-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
  flex-grow: 1;
}

.qdm-addon-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  background: #f1f5f9;
  color: #475569;
}

/* ==========================================================================
   14 & 15. OPERATIONS TEAM & CLIENT JOURNEY STEPPER
   ========================================================================== */
.qdm-team-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.qdm-team-role-card {
  background: var(--qdm-navy-surface);
  border: 1px solid var(--qdm-navy-border);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
}

.qdm-team-role-card:hover {
  transform: translateY(-4px);
  border-color: var(--qdm-primary);
}

.qdm-team-role-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(224, 92, 42, 0.14);
  color: #fb923c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 14px;
  border: 1px solid rgba(224, 92, 42, 0.3);
}

.qdm-team-role-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.qdm-team-role-desc {
  font-size: 0.82rem;
  color: var(--qdm-text-sub);
  margin: 0;
  line-height: 1.55;
}

/* 6-Step Client Journey Stepper */
.qdm-journey-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  position: relative;
}

.qdm-journey-step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--qdm-navy-border);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.qdm-journey-step-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--qdm-primary);
  transform: translateY(-4px);
}

.qdm-journey-step-num {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--qdm-primary);
  background: rgba(224, 92, 42, 0.15);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.qdm-journey-step-icon {
  font-size: 1.6rem;
  color: var(--qdm-cyan-light);
  margin-bottom: 10px;
}

.qdm-journey-step-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.qdm-journey-step-desc {
  font-size: 0.78rem;
  color: var(--qdm-text-sub);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   18. INTERACTIVE ACCORDION FAQ
   ========================================================================== */
.qdm-faq-accordion {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qdm-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--qdm-shadow-sm);
  transition: all 0.25s ease;
}

.qdm-faq-item.is-open {
  border-color: var(--qdm-primary);
  box-shadow: 0 8px 24px rgba(224, 92, 42, 0.1);
}

.qdm-faq-toggle-btn {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  text-align: start;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qdm-faq-item.is-open .qdm-faq-toggle-btn {
  background: #fff7ed;
  color: var(--qdm-primary);
}

.qdm-faq-toggle-btn:hover {
  background: #f8fafc;
}

.qdm-faq-icon-rotator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qdm-faq-item.is-open .qdm-faq-icon-rotator {
  transform: rotate(180deg);
  background: var(--qdm-primary);
  color: #ffffff;
}

.qdm-faq-content-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.qdm-faq-content-inner {
  padding: 0 22px 20px;
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.7;
}

/* ==========================================================================
   RESPONSIVE & MOBILE RULES
   ========================================================================== */
@media (max-width: 1024px) {
  .qdm-hero-grid { grid-template-columns: 1fr; }
  .qdm-admin-sim-grid { grid-template-columns: 1fr; }
  .qdm-scope-power-grid { grid-template-columns: 1fr; }
  .qdm-matrix-deck { display: none; }
}

@media (min-width: 1025px) {
  .qdm-matrix-mobile-accordion { display: none; }
}

@media (max-width: 768px) {
  .qdm-workflow-compare-grid,
  .qdm-img-compare-grid { grid-template-columns: 1fr; }
  .qdm-sim-form-row { grid-template-columns: 1fr; }
  .qdm-photo-disclaimer-banner { flex-direction: column; text-align: center; }
  .qdm-plans-grid { grid-template-columns: 1fr; }
}
