/* ==========================================================================
   DASHSMS — PREMIUM UPGRADE SYSTEM v2
   Mobile Conversion Bar · Card Diversity · Icon Scale · Animated Journey
   CTA System · Motion · Smart Dashboard · Visual QA Fixes
   ========================================================================== */

:root {
  --du-navy:        #0F172A;
  --du-navy-soft:   #1E293B;
  --du-orange:      #F15A24;
  --du-orange-glow: rgba(241,90,36,0.20);
  --du-teal:        #0EA5E9;
  --du-emerald:     #10B981;
  --du-amber:       #FBBF24;
  --du-slate:       #64748B;
  --du-bg-light:    #F8FAFC;
  --du-border:      rgba(15,23,42,0.09);
  --du-shadow-sm:   0 4px 16px rgba(15,23,42,0.06);
  --du-shadow-md:   0 12px 32px rgba(15,23,42,0.10);
  --du-shadow-lg:   0 24px 60px rgba(15,23,42,0.14);
  --du-transition:  0.28s cubic-bezier(0.16,1,0.3,1);
  --du-radius-md:   16px;
  --du-radius-lg:   22px;
  --du-radius-xl:   30px;
}

/* 1. MOBILE CONVERSION BAR */
.du-mobile-cta-bar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9990;
  background: rgba(15,23,42,0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 16px max(10px,env(safe-area-inset-bottom));
  gap: 8px;
}
.du-mobile-cta-bar .du-bar-btn {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 54px;
  border-radius: var(--du-radius-md);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--du-transition);
  border: none;
  line-height: 1.2;
}
.du-mobile-cta-bar .du-bar-btn svg { width: 20px; height: 20px; }
.du-mobile-cta-bar .du-bar-btn--call { background: rgba(255,255,255,0.08); color:#fff; border: 1px solid rgba(255,255,255,0.12); }
.du-mobile-cta-bar .du-bar-btn--wa   { background: #25D366; color:#fff; }
.du-mobile-cta-bar .du-bar-btn--book { background: var(--du-orange); color:#fff; flex: 1.4; }
.du-mobile-cta-bar .du-bar-btn:hover  { transform: translateY(-2px); opacity:0.9; }
.du-mobile-cta-bar .du-bar-btn:active { transform: translateY(0); }

@media (max-width: 768px) {
  .du-mobile-cta-bar { display: flex; }
  body.email-landing-page { padding-bottom: 82px; }
  body.qdash-saas         { padding-bottom: 82px; }
}

/* 2. ICON SCALE SYSTEM */
.du-icon-primary { width:56px;height:56px;border-radius:var(--du-radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0;background:rgba(241,90,36,0.10);color:var(--du-orange);transition:var(--du-transition); }
.du-icon-primary svg { width:28px;height:28px; }
.du-icon-card    { width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--du-bg-light);color:var(--du-navy); }
.du-icon-card svg { width:22px;height:22px; }
.du-icon-mini    { width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.du-icon-mini svg { width:18px;height:18px; }

/* 3. GLOBAL BUTTON SYSTEM */
.du-btn { display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;padding:0.75rem 1.5rem;border-radius:var(--du-radius-md);font-size:0.92rem;font-weight:700;cursor:pointer;transition:var(--du-transition);border:none;text-decoration:none;white-space:nowrap;min-height:48px;font-family:inherit; }
.du-btn svg { width:18px;height:18px;flex-shrink:0; }
.du-btn:focus-visible { outline:3px solid var(--du-orange);outline-offset:3px; }
.du-btn:not(:disabled):active { transform:scale(0.97); }

.du-btn--primary { background:var(--du-orange);color:#fff;box-shadow:0 4px 16px rgba(241,90,36,0.30); }
.du-btn--primary:hover { background:#D94B18;box-shadow:0 8px 24px rgba(241,90,36,0.40);transform:translateY(-2px);color:#fff; }
.du-btn--dark    { background:var(--du-navy);color:#fff; }
.du-btn--dark:hover { background:var(--du-navy-soft);transform:translateY(-2px);color:#fff; }
.du-btn--ghost   { background:transparent;color:var(--du-navy);border:1.5px solid var(--du-border); }
.du-btn--ghost:hover { border-color:var(--du-orange);color:var(--du-orange);transform:translateY(-2px); }
.du-btn--wa      { background:#25D366;color:#fff; }
.du-btn--wa:hover { background:#1da851;transform:translateY(-2px);color:#fff; }
.du-btn--lg      { padding:1rem 2rem;font-size:1rem;min-height:56px;border-radius:var(--du-radius-lg); }

/* 4. STATUS CHIPS & LIVE DOT */
.du-status-chip { display:inline-flex;align-items:center;gap:0.4rem;font-size:0.78rem;font-weight:700;padding:0.3rem 0.75rem;border-radius:999px; }
.du-status-chip--success { background:#ECFDF5;color:#059669; }
.du-status-chip--info    { background:#EFF6FF;color:#2563EB; }
.du-status-chip--warn    { background:#FFFBEB;color:#D97706; }
.du-status-chip--neutral { background:var(--du-bg-light);color:var(--du-slate); }
.du-live-dot { display:inline-block;width:8px;height:8px;border-radius:50%;background:#10B981;box-shadow:0 0 0 2px rgba(16,185,129,0.3);animation:duPulse 2s infinite ease-in-out;flex-shrink:0; }
@keyframes duPulse { 0%,100%{transform:scale(1);opacity:0.9} 50%{transform:scale(1.25);opacity:1} }

/* 5. CARD TYPE: SPOTLIGHT */
.du-card-spotlight { background:var(--du-navy);color:#fff;border-radius:var(--du-radius-xl);padding:2.5rem;position:relative;overflow:hidden;box-shadow:var(--du-shadow-lg); }
.du-card-spotlight::before { content:"";position:absolute;inset-inline-end:-80px;top:-80px;width:280px;height:280px;background:radial-gradient(circle,rgba(241,90,36,0.22) 0%,transparent 70%);filter:blur(40px); }
.du-card-spotlight h3 { color:#fff;font-size:1.5rem;font-weight:800;margin-bottom:0.75rem;position:relative;z-index:2; }
.du-card-spotlight p  { color:#94A3B8;position:relative;z-index:2; }

/* 6. CARD TYPE: ACTION CTA */
.du-action-card { background:linear-gradient(135deg,#0F172A 0%,#1E293B 100%);border-radius:var(--du-radius-xl);padding:3rem 2.5rem;text-align:center;color:#fff;position:relative;overflow:hidden; }
.du-action-card::after { content:"";position:absolute;inset-inline-end:-60px;top:-60px;width:250px;height:250px;background:radial-gradient(circle,rgba(241,90,36,0.22) 0%,transparent 70%);filter:blur(40px); }
.du-action-card h2,.du-action-card h3 { color:#fff;position:relative;z-index:2; }
.du-action-card p  { color:#94A3B8;position:relative;z-index:2; }

/* 7. MID-PAGE CTA STRIP */
.du-cta-strip { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1.25rem;background:var(--du-bg-light);border:1px solid var(--du-border);border-radius:var(--du-radius-xl);padding:1.75rem 2.5rem; }
.du-cta-strip__text h3 { font-size:1.25rem;font-weight:800;color:var(--du-navy);margin:0 0 0.35rem; }
.du-cta-strip__text p  { font-size:0.92rem;color:var(--du-slate);margin:0; }
.du-cta-strip__actions { display:flex;gap:0.75rem;flex-wrap:wrap;align-items:center; }

/* 8. ANIMATED JOURNEY - HORIZONTAL DESKTOP */
.du-journey-section { padding:5.5rem 0;background:var(--du-bg-light);position:relative;overflow:hidden; }
.du-journey-section::before { content:"";position:absolute;inset-inline-start:-200px;bottom:-150px;width:500px;height:500px;background:radial-gradient(circle,rgba(241,90,36,0.12) 0%,transparent 70%);filter:blur(80px);pointer-events:none; }
.du-journey-container { max-width:1220px;margin:0 auto;padding:0 1.5rem; }
.du-journey-header { text-align:center;max-width:780px;margin:0 auto 3.5rem; }

.du-journey-flow { display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;position:relative; }
.du-journey-flow::after { content:"";position:absolute;top:2.3rem;inset-inline-start:calc(12.5% + 26px);inset-inline-end:calc(12.5% + 26px);height:2px;background:var(--du-border);pointer-events:none;z-index:1; }

.du-journey-node { display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;opacity:0;transform:translateY(24px);transition:opacity 0.6s ease,transform 0.6s ease; }
.du-journey-node.is-visible { opacity:1;transform:none; }
.du-journey-node__icon { width:52px;height:52px;border-radius:50%;background:#fff;border:2px solid var(--du-border);display:flex;align-items:center;justify-content:center;position:relative;z-index:2;color:var(--du-slate);margin-bottom:1.25rem;transition:all 0.5s cubic-bezier(0.16,1,0.3,1);box-shadow:var(--du-shadow-sm); }
.du-journey-node__icon svg { width:24px;height:24px; }
.du-journey-node.is-active .du-journey-node__icon,
.du-journey-node.is-done   .du-journey-node__icon { background:var(--du-orange);border-color:var(--du-orange);color:#fff;box-shadow:0 0 0 8px var(--du-orange-glow),var(--du-shadow-md);transform:scale(1.12); }
.du-journey-node__num { font-size:0.7rem;font-weight:800;color:var(--du-orange);background:rgba(241,90,36,0.1);padding:0.15rem 0.5rem;border-radius:999px;margin-bottom:0.5rem;display:inline-block; }
.du-journey-node h4 { font-size:0.95rem;font-weight:700;color:var(--du-navy);margin:0 0 0.4rem; }
.du-journey-node p  { font-size:0.8rem;color:var(--du-slate);margin:0;line-height:1.55; }

/* VERTICAL MOBILE JOURNEY */
.du-journey-mobile { display:none;flex-direction:column;gap:0;position:relative;padding-inline-start:2.5rem; }
.du-journey-mobile::before { content:"";position:absolute;inset-inline-start:16px;top:0;bottom:0;width:2px;background:linear-gradient(to bottom,var(--du-orange),var(--du-border)); }
.du-journey-mobile-node { padding:0 0 1.75rem 1rem;position:relative;opacity:0;transform:translateX(-12px);transition:opacity 0.5s ease,transform 0.5s ease; }
.du-journey-mobile-node.is-visible { opacity:1;transform:none; }
.du-journey-mobile-node::before { content:"";position:absolute;inset-inline-start:-1.6rem;top:2px;width:14px;height:14px;border-radius:50%;background:var(--du-orange);border:2px solid #fff;box-shadow:0 0 0 3px rgba(241,90,36,0.2); }
.du-journey-mobile-node h4 { font-size:0.95rem;font-weight:700;color:var(--du-navy);margin:0 0 0.3rem; }
.du-journey-mobile-node p  { font-size:0.83rem;color:var(--du-slate);margin:0;line-height:1.55; }

/* 9. TRACKING PIPELINE */
.du-pipeline-section { padding:5rem 0;background:var(--du-navy);position:relative;overflow:hidden; }
.du-pipeline-section::before { content:"";position:absolute;inset-inline-end:-150px;top:-150px;width:500px;height:500px;background:radial-gradient(circle,rgba(241,90,36,0.18) 0%,transparent 70%);filter:blur(80px);pointer-events:none; }
.du-pipeline-header { text-align:center;max-width:720px;margin:0 auto 3rem;position:relative;z-index:2; }
.du-pipeline-header h2 { color:#fff;font-size:clamp(1.7rem,3vw,2.4rem);font-weight:800;margin-bottom:0.75rem; }
.du-pipeline-header p  { color:#94A3B8;line-height:1.7; }
.du-pipeline-grid { display:flex;align-items:stretch;gap:0;position:relative;z-index:2; }
.du-pipeline-grid::before { content:"";position:absolute;top:50%;inset-inline:0;height:2px;background:rgba(255,255,255,0.06);transform:translateY(-50%);pointer-events:none; }
.du-pipeline-step { flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:1.5rem 0.75rem;position:relative;z-index:2; }
.du-pipeline-step__icon { width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);display:flex;align-items:center;justify-content:center;color:#94A3B8;margin-bottom:1rem;transition:all 0.5s ease; }
.du-pipeline-step__icon svg { width:22px;height:22px; }
.du-pipeline-step.is-active .du-pipeline-step__icon { background:var(--du-orange);border-color:var(--du-orange);color:#fff;box-shadow:0 0 0 8px rgba(241,90,36,0.2); }
.du-pipeline-step h4 { font-size:0.88rem;font-weight:700;color:#fff;margin:0 0 0.3rem; }
.du-pipeline-step p  { font-size:0.75rem;color:#64748B;margin:0;line-height:1.5; }
.du-pipeline-connector { display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,0.15);flex-shrink:0;align-self:center;position:relative;z-index:2; }

/* 10. ANALYTICS BARS */
.du-analytics-row { display:flex;flex-direction:column;gap:0.85rem;margin-top:1.5rem; }
.du-analytics-item { display:flex;align-items:center;gap:1rem; }
.du-analytics-label { font-size:0.8rem;font-weight:700;color:#94A3B8;min-width:80px; }
.du-analytics-track { flex:1;background:rgba(255,255,255,0.06);border-radius:999px;height:8px;overflow:hidden; }
.du-analytics-fill { height:100%;border-radius:999px;background:var(--du-orange);width:0%;transition:width 1.6s cubic-bezier(0.22,1,0.36,1); }
.du-analytics-fill.is-animated { width:var(--du-fill-width,0%); }
.du-analytics-fill--teal    { background:var(--du-teal); }
.du-analytics-fill--emerald { background:var(--du-emerald); }
.du-analytics-fill--amber   { background:var(--du-amber); }
.du-analytics-val { font-size:0.82rem;font-weight:700;color:#fff;min-width:38px;text-align:end; }
.du-demo-badge { display:inline-flex;align-items:center;gap:0.4rem;font-size:0.7rem;font-weight:700;color:#64748B;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);padding:0.2rem 0.6rem;border-radius:999px;text-transform:uppercase;letter-spacing:0.06em; }

/* 11. PROGRESS RAIL */
.du-progress-rail { display:flex;align-items:center;gap:0;overflow-x:auto;padding:1.5rem 0 1rem; }
.du-rail-node { display:flex;flex-direction:column;align-items:center;gap:0.5rem;min-width:70px;position:relative;z-index:2; }
.du-rail-node__circle { width:36px;height:36px;border-radius:50%;background:#F8FAFC;border:2px solid var(--du-border);display:flex;align-items:center;justify-content:center;color:var(--du-slate);transition:all 0.4s ease; }
.du-rail-node__circle svg { width:16px;height:16px; }
.du-rail-node.is-done   .du-rail-node__circle { background:#10B981;border-color:#10B981;color:#fff; }
.du-rail-node.is-active .du-rail-node__circle { background:var(--du-orange);border-color:var(--du-orange);color:#fff;box-shadow:0 0 0 6px var(--du-orange-glow); }
.du-rail-node__label { font-size:0.67rem;font-weight:700;color:var(--du-slate);text-align:center;white-space:nowrap; }
.du-rail-node.is-done   .du-rail-node__label { color:#10B981; }
.du-rail-node.is-active .du-rail-node__label { color:var(--du-orange); }
.du-rail-connector { height:2px;flex:1;background:var(--du-border);min-width:20px;transition:background 0.8s ease;align-self:flex-start;margin-top:17px; }
.du-rail-connector.is-filled { background:#10B981; }

/* 12. ICON SCALE FIXES FOR EXISTING EMAIL-MARKETING CARDS */
.email-pillar-card .pillar-icon-box { width:56px!important;height:56px!important;border-radius:16px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(241,90,36,0.10)!important;color:var(--du-orange)!important;margin-bottom:1.25rem!important; }
.email-pillar-card .pillar-icon-box svg { width:28px!important;height:28px!important; }

.email-who-card .who-card-icon { width:52px!important;height:52px!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(241,90,36,0.10)!important;color:var(--du-orange)!important;flex-shrink:0!important; }
.email-who-card .who-card-icon svg { width:26px!important;height:26px!important; }

.email-why-card .why-icon-box { width:56px!important;height:56px!important;border-radius:16px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(241,90,36,0.12)!important;color:var(--du-orange)!important;margin-bottom:1.25rem!important; }
.email-why-card .why-icon-box svg { width:28px!important;height:28px!important; }

.email-process-step .step-icon { width:56px!important;height:56px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(241,90,36,0.10)!important;border-radius:14px!important;color:var(--du-orange)!important;margin:0.75rem auto 1rem!important; }
.email-process-step .step-icon svg { width:32px!important;height:32px!important; }

.comp-icon-box { width:52px!important;height:52px!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important; }
.comp-icon-box svg { width:26px!important;height:26px!important; }

.sector-card .qd-icon { width:60px!important;height:60px!important;border-radius:16px!important; }
.sector-card .qd-icon svg { width:30px!important;height:30px!important; }

/* Fix lucide icons size in general */
[data-lucide] { display:block; }

/* 13. CARD VISUAL DIVERSITY */
.email-pillars-grid { display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:1.5rem!important; }
.email-pillar-card { background:#fff;border:1px solid var(--du-border);border-radius:var(--du-radius-lg);padding:2rem 1.75rem;position:relative;overflow:hidden;transition:var(--du-transition); }
.email-pillar-card::before { content:"";position:absolute;top:0;inset-inline-start:0;width:100%;height:3px;background:linear-gradient(90deg,var(--du-orange),rgba(241,90,36,0));opacity:0;transition:opacity 0.3s ease; }
.email-pillar-card:hover { border-color:rgba(241,90,36,0.25);box-shadow:var(--du-shadow-md);transform:translateY(-4px); }
.email-pillar-card:hover::before { opacity:1; }
.email-pillar-card:nth-child(1) { background:var(--du-navy);color:#fff; }
.email-pillar-card:nth-child(1)::before { opacity:1; }
.email-pillar-card:nth-child(1) h3 { color:#fff; }
.email-pillar-card:nth-child(1) p  { color:#94A3B8; }
.email-pillar-card:nth-child(1) .pillar-icon-box { background:rgba(241,90,36,0.2)!important; }

.email-who-grid { display:grid!important;grid-template-columns:1.5fr 1fr 1fr!important;gap:1.5rem!important; }
.email-who-card { display:flex;align-items:flex-start;gap:1rem;padding:1.75rem;background:#fff;border:1px solid var(--du-border);border-radius:var(--du-radius-lg);transition:var(--du-transition); }
.email-who-card:first-child { background:var(--du-bg-light);flex-direction:column;gap:1.25rem; }
.email-who-card:hover { border-color:rgba(241,90,36,0.2);box-shadow:var(--du-shadow-sm);transform:translateY(-3px); }

.email-why-grid { display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:1.5rem!important; }
.email-why-card { padding:2rem 1.75rem;background:#fff;border:1px solid var(--du-border);border-radius:var(--du-radius-lg);transition:var(--du-transition);position:relative;overflow:hidden; }
.email-why-card:hover { transform:translateY(-5px);box-shadow:var(--du-shadow-md);border-color:rgba(241,90,36,0.2); }
.email-why-card:nth-child(1) { grid-column:span 2;background:linear-gradient(135deg,#0F172A 0%,#1E293B 100%);color:#fff; }
.email-why-card:nth-child(1) h3 { color:#fff;font-size:1.35rem; }
.email-why-card:nth-child(1) p  { color:#94A3B8; }
.email-why-card:nth-child(1) .why-icon-box { background:rgba(241,90,36,0.2)!important; }

/* 14. SCROLL REVEAL MOTION */
@media (prefers-reduced-motion: no-preference) {
  .du-reveal       { opacity:0;transform:translateY(28px);transition:opacity 0.7s ease,transform 0.7s cubic-bezier(0.16,1,0.3,1); }
  .du-reveal.is-visible { opacity:1;transform:none; }
  .du-reveal-left  { opacity:0;transform:translateX(-28px);transition:opacity 0.7s ease,transform 0.7s cubic-bezier(0.16,1,0.3,1); }
  .du-reveal-left.is-visible  { opacity:1;transform:none; }
  .du-reveal-right { opacity:0;transform:translateX(28px);transition:opacity 0.7s ease,transform 0.7s cubic-bezier(0.16,1,0.3,1); }
  .du-reveal-right.is-visible { opacity:1;transform:none; }
}

/* 15. SECTION TAG */
.du-section-tag { display:inline-flex;align-items:center;gap:0.4rem;font-size:0.78rem;font-weight:700;color:var(--du-orange);text-transform:uppercase;letter-spacing:0.09em;margin-bottom:0.75rem; }
.du-section-tag::before { content:"";display:block;width:18px;height:2px;background:var(--du-orange);border-radius:2px; }

/* 16. RESPONSIVE */
@media (max-width: 1100px) {
  .email-pillars-grid { grid-template-columns:repeat(2,1fr)!important; }
  .email-who-grid     { grid-template-columns:1fr 1fr!important; }
  .email-why-grid     { grid-template-columns:repeat(2,1fr)!important; }
  .email-why-card:nth-child(1) { grid-column:span 2; }
  .du-cta-strip       { flex-direction:column;align-items:flex-start; }
  .du-journey-flow    { grid-template-columns:repeat(2,1fr); }
  .du-journey-flow::after { display:none; }
}
@media (max-width: 768px) {
  .email-pillars-grid { grid-template-columns:1fr!important; }
  .email-who-grid     { grid-template-columns:1fr!important; }
  .email-why-grid     { grid-template-columns:1fr!important; }
  .email-why-card:nth-child(1) { grid-column:auto; }
  .du-journey-flow    { display:none; }
  .du-journey-mobile  { display:flex; }
  .du-pipeline-grid   { flex-direction:column; }
  .du-pipeline-grid::before { display:none; }
  .du-pipeline-step   { flex-direction:row;gap:1rem;text-align:start;padding:1rem 1.5rem; }
  .du-pipeline-step__icon { margin-bottom:0;flex-shrink:0; }
  .du-final-cta__actions { flex-direction:column;align-items:center; }
  .du-cta-strip { padding:1.25rem 1.5rem; }
}
@media (max-width: 430px) {
  .du-btn--lg { padding:0.85rem 1.35rem;font-size:0.9rem; }
}

/* 17. RTL FIXES */
[dir="rtl"] .du-journey-mobile::before { inset-inline-start:auto;inset-inline-end:16px; }
[dir="rtl"] .du-journey-mobile-node::before { inset-inline-start:auto;inset-inline-end:-1.6rem; }

/* 18. PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .du-reveal,.du-reveal-left,.du-reveal-right { opacity:1!important;transform:none!important;transition:none!important; }
  .du-journey-node,.du-journey-mobile-node { opacity:1!important;transform:none!important; }
  .du-live-dot { animation:none!important; }
  .du-analytics-fill { transition:none!important;width:var(--du-fill-width,0%)!important; }
  .smart-progress-fill { transition:none!important; }
}

/* ==========================================================================
   19. INTERACTIVE EMAIL CAMPAIGN GALLERY SYSTEM
   ========================================================================== */
.email-gallery-workspace {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 2rem;
  background: #fff;
  border: 1px solid var(--du-border);
  border-radius: var(--du-radius-xl);
  padding: 1.75rem;
  box-shadow: var(--du-shadow-md);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

/* Nav Rail */
.gallery-nav-rail {
  display: flex;
  flex-direction: column;
  background: var(--du-bg-light);
  border: 1px solid var(--du-border);
  border-radius: var(--du-radius-lg);
  padding: 1.25rem 1rem;
  gap: 0.5rem;
}
.gallery-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem 0.75rem;
  border-bottom: 1px solid var(--du-border);
  margin-bottom: 0.5rem;
}
.gallery-nav-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--du-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gallery-nav-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--du-orange);
  background: rgba(241,90,36,0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.gallery-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.gallery-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--du-radius-md);
  background: #fff;
  border: 1px solid transparent;
  color: var(--du-navy);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
  transition: var(--du-transition);
  position: relative;
}
.gallery-nav-btn:hover {
  background: #fff;
  border-color: rgba(241,90,36,0.25);
  transform: translateX(-3px);
  box-shadow: var(--du-shadow-sm);
}
[dir="ltr"] .gallery-nav-btn:hover {
  transform: translateX(3px);
}
.gallery-nav-btn.is-active {
  background: var(--du-navy);
  color: #fff;
  border-color: var(--du-navy);
  box-shadow: 0 6px 20px rgba(15,23,42,0.18);
}
.gallery-nav-btn .nav-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(241,90,36,0.1);
  color: var(--du-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--du-transition);
}
.gallery-nav-btn.is-active .nav-btn-icon {
  background: rgba(241,90,36,0.25);
  color: #fff;
}
.gallery-nav-btn .nav-btn-icon svg {
  width: 18px;
  height: 18px;
}
.gallery-nav-btn .nav-btn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}
.gallery-nav-btn .nav-btn-type {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-nav-btn .nav-btn-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--du-slate);
}
.gallery-nav-btn.is-active .nav-btn-badge {
  color: #94A3B8;
}
.gallery-nav-btn .nav-btn-chevron {
  color: var(--du-slate);
  opacity: 0.6;
}
.gallery-nav-btn.is-active .nav-btn-chevron {
  color: var(--du-orange);
  opacity: 1;
}
.gallery-nav-btn .nav-btn-chevron svg {
  width: 16px;
  height: 16px;
}

/* Stage Area */
.gallery-stage-area {
  position: relative;
  min-height: 520px;
}
.gallery-stage-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gallery-stage-panel.is-active {
  display: block;
  opacity: 1;
  transform: none;
}
.gallery-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--du-border);
}
.stage-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(241,90,36,0.1);
  color: var(--du-orange);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.stage-type-pill svg {
  width: 16px;
  height: 16px;
}
.stage-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--du-slate);
  background: var(--du-bg-light);
  border: 1px solid var(--du-border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* Split Layout: Center Preview + Side Intel */
.gallery-stage-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* Mockup Email Window */
.email-mockup-window {
  background: #fff;
  border: 1px solid var(--du-border);
  border-radius: var(--du-radius-lg);
  box-shadow: var(--du-shadow-md);
  overflow: hidden;
}
.mockup-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #F1F5F9;
  border-bottom: 1px solid var(--du-border);
}
.window-traffic-lights {
  display: flex;
  gap: 6px;
}
.window-traffic-lights .light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.light-red    { background: #EF4444; }
.light-yellow { background: #F59E0B; }
.light-green  { background: #10B981; }

.mockup-inbox-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--du-slate);
}
.mockup-auth-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.mockup-auth-tag.is-verified {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid rgba(16,185,129,0.2);
}
.mockup-auth-tag.is-demo {
  background: #F8FAFC;
  color: var(--du-slate);
  border: 1px solid var(--du-border);
}

.mockup-envelope-meta {
  padding: 1.25rem 1.5rem;
  background: #FAFAFA;
  border-bottom: 1px solid var(--du-border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.meta-field-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.meta-field-label {
  min-width: 50px;
  color: var(--du-slate);
  font-weight: 700;
  font-size: 0.78rem;
}
.meta-sender-val {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--du-navy);
}
.meta-sender-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.chip-verified {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid rgba(16,185,129,0.25);
}
.chip-demo {
  background: #F1F5F9;
  color: var(--du-slate);
  border: 1px solid var(--du-border);
}
.meta-subject-val {
  font-weight: 800;
  color: var(--du-navy);
  line-height: 1.45;
}
.meta-preheader-val {
  color: var(--du-slate);
  font-size: 0.8rem;
}

.mockup-envelope-body {
  padding: 1.75rem 1.5rem;
}
.envelope-brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px dashed var(--du-border);
}
.brand-strip-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--du-navy);
  font-size: 0.85rem;
}
.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--du-orange);
}
.brand-strip-date {
  font-size: 0.75rem;
  color: var(--du-slate);
}

.envelope-headline {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--du-navy);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}
.envelope-body-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

/* Distinct Demo CTA Control */
.envelope-demo-cta-box {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--du-radius-md);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.75rem;
}
.demo-cta-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--du-navy);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--du-transition);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.demo-cta-control:hover {
  background: var(--du-navy-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15,23,42,0.2);
}
.demo-cta-tag {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(241,90,36,0.25);
  color: #FF8A50;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.demo-cta-helper {
  display: block;
  font-size: 0.75rem;
  color: var(--du-slate);
  margin-top: 0.5rem;
  font-weight: 600;
}

.envelope-footer-compliance {
  padding-top: 1.25rem;
  border-top: 1px solid var(--du-border);
  text-align: center;
  font-size: 0.72rem;
  color: #94A3B8;
  line-height: 1.6;
}
.footer-links-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  color: var(--du-slate);
}

/* Gallery Intel Sidebar */
.gallery-intel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.intel-card {
  background: #0F172A;
  color: #fff;
  border-radius: var(--du-radius-lg);
  padding: 1.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--du-shadow-md);
  position: relative;
  overflow: hidden;
}
.intel-card::before {
  content: "";
  position: absolute;
  top: -60px;
  inset-inline-end: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(241,90,36,0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.intel-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.intel-card-title svg {
  color: var(--du-orange);
}

.intel-param-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.intel-param-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.param-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.param-val {
  font-size: 0.86rem;
  font-weight: 700;
  color: #E2E8F0;
  line-height: 1.45;
}
.param-val.text-orange {
  color: #FB923C;
}
.param-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16,185,129,0.15);
  color: #34D399;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  align-self: flex-start;
}

/* Mini Analytics Rail */
.intel-analytics-rail {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--du-radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.analytics-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.rail-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #CBD5E1;
}
.rail-sub {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 600;
}
.analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.stat-cell {
  background: rgba(0,0,0,0.25);
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-cell small {
  font-size: 0.68rem;
  color: #94A3B8;
  font-weight: 700;
}
.stat-cell strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.mini-bar-track {
  background: rgba(255,255,255,0.1);
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.2rem;
}
.mini-bar-fill {
  background: #10B981;
  height: 100%;
  border-radius: 999px;
}
.mini-bar-fill.fill-blue   { background: #38BDF8; }
.mini-bar-fill.fill-orange { background: #FB923C; }

/* Real Live Conversion CTAs */
.intel-live-action {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.gallery-live-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--du-orange);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--du-radius-md);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: var(--du-transition);
  box-shadow: 0 4px 16px rgba(241,90,36,0.35);
}
.gallery-live-btn:hover {
  background: #D94B18;
  transform: translateY(-2px);
  color: #fff;
}
.gallery-live-btn svg {
  width: 16px;
  height: 16px;
}
.gallery-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #34D399;
  padding: 0.65rem 1rem;
  border-radius: var(--du-radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--du-transition);
}
.gallery-whatsapp-link:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.gallery-whatsapp-link svg {
  width: 16px;
  height: 16px;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
  .email-gallery-workspace {
    grid-template-columns: 1fr;
  }
  .gallery-nav-rail {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.75rem;
  }
  .gallery-nav-list {
    flex-direction: row;
  }
  .gallery-nav-btn {
    min-width: 200px;
  }
  .gallery-stage-split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .email-gallery-workspace {
    padding: 1rem;
  }
  .gallery-nav-btn {
    min-width: 170px;
    padding: 0.65rem 0.85rem;
  }
  .mockup-envelope-body {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   20. SMART DASHBOARD & CAMPAIGN STATUS BOARD
   ========================================================================== */
.smart-board-section {
  padding: 5.5rem 0;
  background: #0B132B;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.smart-board-section::before {
  content: "";
  position: absolute;
  top: -120px;
  inset-inline-start: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(241,90,36,0.18) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
.smart-board-section::after {
  content: "";
  position: absolute;
  bottom: -150px;
  inset-inline-end: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.smart-board-wrapper {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.smart-board-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}
.smart-board-header h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  margin: 0.5rem 0 0.85rem;
  line-height: 1.35;
}
.smart-board-header p {
  color: #94A3B8;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Scenario Selector Tabs */
.smart-scenario-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.smart-scenario-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #E2E8F0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--du-transition);
}
.smart-scenario-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(241,90,36,0.3);
  transform: translateY(-2px);
}
.smart-scenario-btn.is-active {
  background: var(--du-orange);
  color: #fff;
  border-color: var(--du-orange);
  box-shadow: 0 4px 18px rgba(241,90,36,0.4);
}
.smart-scenario-btn svg {
  width: 17px;
  height: 17px;
}

/* Smart Console Card */
.smart-console-card {
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--du-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--du-shadow-lg);
  display: none;
}
.smart-console-card.is-active {
  display: block;
}

/* Top Overview Strip */
.console-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  padding-bottom: 2rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.console-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.meta-cell-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.meta-cell-val {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
}
.meta-cell-val.is-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16,185,129,0.2);
  color: #34D399;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  align-self: flex-start;
}

/* Campaign Progress Line (Draft -> Scheduled -> Sent -> Delivered -> Interaction -> Action) */
.smart-progress-track-wrapper {
  margin-bottom: 2.5rem;
}
.progress-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.progress-track-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #E2E8F0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.progress-track-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #34D399;
}

.smart-progress-line-container {
  position: relative;
  padding: 0 1rem;
}
.smart-progress-rail-bg {
  position: absolute;
  top: 20px;
  inset-inline-start: 40px;
  inset-inline-end: 40px;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  z-index: 1;
}
.smart-progress-rail-fill {
  position: absolute;
  top: 20px;
  inset-inline-start: 40px;
  height: 4px;
  background: linear-gradient(90deg, #10B981, #F15A24);
  border-radius: 999px;
  z-index: 2;
  transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}
[dir="rtl"] .smart-progress-rail-fill {
  background: linear-gradient(-90deg, #10B981, #F15A24);
}

.smart-steps-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  z-index: 3;
}
.smart-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.step-node-bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1E293B;
  border: 2px solid rgba(255,255,255,0.15);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--du-transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.step-node-bubble svg {
  width: 18px;
  height: 18px;
}
.smart-step-node.is-completed .step-node-bubble {
  background: #10B981;
  border-color: #10B981;
  color: #fff;
}
.smart-step-node.is-current .step-node-bubble {
  background: var(--du-orange);
  border-color: var(--du-orange);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(241,90,36,0.3);
}
.step-node-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94A3B8;
}
.smart-step-node.is-completed .step-node-label {
  color: #34D399;
}
.smart-step-node.is-current .step-node-label {
  color: #FB923C;
  font-weight: 800;
}
.step-node-time {
  font-size: 0.7rem;
  color: #64748B;
}

/* Analytics KPIs Strip */
.console-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.console-kpi-tile {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--du-radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.kpi-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kpi-tile-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94A3B8;
}
.kpi-tile-trend {
  font-size: 0.72rem;
  font-weight: 800;
  color: #34D399;
}
.kpi-tile-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.kpi-tile-bar {
  background: rgba(255,255,255,0.1);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.35rem;
}
.kpi-tile-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #10B981;
}
.kpi-tile-bar-fill.fill-orange { background: #F15A24; }
.kpi-tile-bar-fill.fill-blue   { background: #0EA5E9; }
.kpi-tile-bar-fill.fill-teal   { background: #14B8A6; }

/* Responsive Smart Board */
@media (max-width: 1024px) {
  .console-overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .console-kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .smart-console-card {
    padding: 1.5rem 1.25rem;
  }
  .console-overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .smart-progress-rail-bg,
  .smart-progress-rail-fill {
    display: none;
  }
  .smart-steps-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .smart-step-node {
    flex-direction: row;
    text-align: start;
    gap: 1rem;
  }
  .console-kpis-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   21. CONNECTED 8-STEP PROCESS INFOGRAPHIC ("من أين نبدأ؟")
   ========================================================================== */
.connected-process-section {
  padding: 5.5rem 0;
  background: #F8FAFC;
  position: relative;
  overflow: hidden;
}
.connected-process-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.connected-process-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}
.connected-process-header h2 {
  color: var(--du-navy);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin: 0.5rem 0 0.75rem;
}
.connected-process-header p {
  color: var(--du-slate);
  font-size: 1.05rem;
  line-height: 1.7;
}

.connected-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.connected-step-card {
  background: #fff;
  border: 1px solid var(--du-border);
  border-radius: var(--du-radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--du-shadow-sm);
  transition: var(--du-transition);
}
.connected-step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(241,90,36,0.3);
  box-shadow: var(--du-shadow-md);
}
.connected-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.step-sequence-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--du-orange);
  opacity: 0.9;
  line-height: 1;
}
.step-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(241,90,36,0.1);
  color: var(--du-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card-icon svg {
  width: 24px;
  height: 24px;
}
.connected-step-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--du-navy);
  margin-bottom: 0.5rem;
}
.connected-step-card p {
  font-size: 0.85rem;
  color: var(--du-slate);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .connected-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .connected-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   22. SECTOR MESSAGE CAROUSEL CONTROLS
   ========================================================================== */
.sector-slider-wrapper {
  margin-top: 2rem;
}
.sector-slider-header-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.sector-slider-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--du-slate);
}
.sector-slider-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.slider-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--du-border);
  color: var(--du-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--du-transition);
}
.slider-nav-btn:hover {
  background: var(--du-orange);
  border-color: var(--du-orange);
  color: #fff;
  transform: scale(1.05);
}
.slider-nav-btn svg {
  width: 20px;
  height: 20px;
}
.sector-slider-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.5rem;
  scrollbar-width: thin;
}
.sector-slider-track::-webkit-scrollbar {
  height: 6px;
}
.sector-slider-track::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}
.sector-msg-card.slider-slide {
  flex: 0 0 calc(33.333% - 0.85rem);
  scroll-snap-align: start;
  min-width: 280px;
}
.sector-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.sector-slider-dots .slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  border: none;
  cursor: pointer;
  transition: var(--du-transition);
}
.sector-slider-dots .slider-dot.is-active {
  background: var(--du-orange);
  width: 28px;
  border-radius: 999px;
}
@media (max-width: 900px) {
  .sector-msg-card.slider-slide {
    flex: 0 0 calc(50% - 0.65rem);
  }
}
@media (max-width: 600px) {
  .sector-msg-card.slider-slide {
    flex: 0 0 100%;
  }
}

/* ==========================================================================
   23. EXECUTIVE DARK HERO SYSTEM ("وجهة سمرة مع انجذاب وهوك متناسقة مع الهوية")
   Applies high-prestige executive dark theme across DashSMS
   ========================================================================== */
.email-hero {
  padding: 4.5rem 0 4rem !important;
  background: linear-gradient(145deg, #090E1A 0%, #0F172A 55%, #172554 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
}

.email-hero::before {
  content: "" !important;
  position: absolute !important;
  top: -120px !important;
  inset-inline-end: -100px !important;
  width: 550px !important;
  height: 550px !important;
  background: radial-gradient(circle, rgba(241, 90, 36, 0.18) 0%, transparent 70%) !important;
  filter: blur(80px) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.email-hero::after {
  content: "" !important;
  position: absolute !important;
  bottom: -120px !important;
  inset-inline-start: -100px !important;
  width: 500px !important;
  height: 500px !important;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, transparent 70%) !important;
  filter: blur(80px) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.email-hero-grid {
  position: relative !important;
  z-index: 2 !important;
}

.email-hero-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6) !important;
  font-weight: 800 !important;
}

.email-hero-lead {
  color: #CBD5E1 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.email-hero-badge {
  background: rgba(14, 165, 233, 0.18) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  backdrop-filter: blur(8px) !important;
}

.email-hero-trust-points {
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.email-trust-item {
  color: #E2E8F0 !important;
  font-weight: 600 !important;
}

.email-trust-item svg {
  color: #34D399 !important;
}

/* Enhanced Hero Console Mockup */
.email-dashboard-mockup {
  background: #090E1A !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.metric-pill {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.metric-pill .metric-label {
  color: #94A3B8 !important;
  font-weight: 700 !important;
}

.metric-pill .metric-val.is-delivered,
.metric-pill .metric-val.text-emerald-400 {
  color: #34D399 !important;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

.metric-pill .metric-val.is-tracking,
.metric-pill .metric-val.text-sky-400 {
  color: #38BDF8 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.metric-pill .metric-val.is-security,
.metric-pill .metric-val.text-indigo-300 {
  color: #A5B4FC !important;
  text-shadow: 0 0 12px rgba(165, 180, 252, 0.3);
}

/* ==========================================================================
   24. UNIVERSAL HIGH-CONTRAST & ANTI-CLASH GUARANTEE (WCAG AAA)
   Fixes any font matching or blending with card/section background across all pages
   ========================================================================== */

/* Dark Containers Universal Contrast */
.hero-slide,
.hero-slider,
.smart-board-section,
.smart-console-card,
.tracking-flow-card,
.du-pipeline-section,
.du-card-spotlight,
.du-action-card,
.sector-solution-wrapper,
.sector-cta-card,
.email-cta-card,
.email-hero,
.email-seo-wrapper,
.scenario-result-banner,
.bg-slate-900,
.bg-slate-950,
.bg-gray-900,
[class*="bg-slate-900"],
[class*="bg-slate-950"],
.du-card-dark {
  color: #E2E8F0;
}

/* Headings in Dark Containers: Pure White + Drop Shadow */
.hero-slide h1, .hero-slide h2, .hero-slide h3,
.smart-board-section h1, .smart-board-section h2, .smart-board-section h3, .smart-board-section h4,
.smart-console-card h1, .smart-console-card h2, .smart-console-card h3, .smart-console-card h4,
.tracking-flow-card h1, .tracking-flow-card h2, .tracking-flow-card h3, .tracking-flow-card h4,
.du-pipeline-section h1, .du-pipeline-section h2, .du-pipeline-section h3, .du-pipeline-section h4,
.du-card-spotlight h1, .du-card-spotlight h2, .du-card-spotlight h3,
.du-action-card h1, .du-action-card h2, .du-action-card h3,
.sector-solution-wrapper h1, .sector-solution-wrapper h2, .sector-solution-wrapper h3,
.sector-cta-card h1, .sector-cta-card h2, .sector-cta-card h3,
.email-cta-card h1, .email-cta-card h2, .email-cta-card h3,
.email-hero h1, .email-hero h2, .email-hero h3,
.email-seo-wrapper h1, .email-seo-wrapper h2, .email-seo-wrapper h3,
.scenario-result-banner h1, .scenario-result-banner h2, .scenario-result-banner h3, .scenario-result-banner h4,
.email-pillar-card:nth-child(1) h3,
.email-why-card:nth-child(1) h3 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5) !important;
}

/* Specific Fix for Tracking Title & Subtitle */
.tracking-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6) !important;
  font-weight: 800 !important;
}

.tracking-subtitle {
  color: #CBD5E1 !important;
  font-weight: 500 !important;
}

.tracking-stage-item h4 {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  margin: 0.5rem 0 0.35rem !important;
}

.tracking-stage-item p {
  color: #CBD5E1 !important;
  font-size: 0.85rem !important;
  line-height: 1.55 !important;
}

.tracking-stage-icon {
  background: rgba(241, 90, 36, 0.16) !important;
  color: #F15A24 !important;
  border: 1px solid rgba(241, 90, 36, 0.3) !important;
}

/* Body and Paragraphs in Dark Containers: Crisp Platinum Silver */
.hero-slide p,
.smart-board-section p,
.smart-console-card p,
.tracking-flow-card p,
.du-pipeline-section p,
.du-card-spotlight p,
.du-action-card p,
.sector-solution-wrapper p,
.sector-cta-card p,
.email-cta-card p,
.email-hero p,
.email-seo-wrapper p,
.scenario-result-banner p,
.email-pillar-card:nth-child(1) p,
.email-why-card:nth-child(1) p {
  color: #CBD5E1 !important;
}

/* Light Card Contrast Protection (No faint or washed-out text) */
.email-pillar-card:not(:nth-child(1)) h3,
.email-why-card:not(:nth-child(1)) h3,
.email-who-card h3,
.email-who-card h4,
.sector-card h3,
.sector-card h4,
.sector-msg-card h4 {
  color: #0F172A !important;
  font-weight: 700 !important;
}

.email-pillar-card:not(:nth-child(1)) p,
.email-why-card:not(:nth-child(1)) p,
.email-who-card p,
.sector-card p,
.sector-msg-card p {
  color: #334155 !important;
  line-height: 1.6 !important;
}

/* Sector Tracking & Blueprint in sector.php */
.sector-tracking-section {
  padding: 4.5rem 0 !important;
  background: #090E1A !important;
}

.sector-tracking-section .tracking-title,
.sector-process-section .tracking-title {
  color: #FFFFFF !important;
}

/* Slider Overlays Protection */
.hero-slide .text-slate-200 {
  color: #E2E8F0 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   25. POSTAL ENVELOPE FLIGHT SIMULATOR & MOTION INFOGRAPHIC (أظرف بريدية متحركة)
   Interactive live dispatch-to-inbox journey with motion and smart dashboard
   ========================================================================== */

.email-flight-simulator-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #090E1A 0%, #0F172A 50%, #090E1A 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.email-flight-simulator-section::before {
  content: "";
  position: absolute;
  top: -150px;
  inset-inline-start: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(241, 90, 36, 0.16) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.email-flight-simulator-section::after {
  content: "";
  position: absolute;
  bottom: -150px;
  inset-inline-end: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.flight-sim-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
  position: relative;
  z-index: 2;
}

.flight-sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(241, 90, 36, 0.18);
  border: 1px solid rgba(241, 90, 36, 0.35);
  color: #F15A24;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.flight-sim-header h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0 0 1rem;
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.flight-sim-header p {
  font-size: 1.05rem;
  color: #CBD5E1 !important;
  line-height: 1.7;
}

/* Flight Simulator Canvas */
.flight-sim-canvas {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 2;
  margin-bottom: 2.5rem;
}

/* 4-Node Flight Journey Track */
.flight-track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1.5rem;
  position: relative;
  align-items: center;
}

/* Connecting Laser Circuit */
.flight-circuit-line {
  position: absolute;
  top: 60px;
  inset-inline-start: 12%;
  inset-inline-end: 12%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
}

.flight-circuit-beam {
  position: absolute;
  top: 0;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, transparent, #F15A24, #10B981, transparent);
  border-radius: 999px;
  animation: laserSweep 3s infinite linear;
}

[dir="rtl"] .flight-circuit-beam {
  animation: laserSweepRtl 3s infinite linear;
}

@keyframes laserSweep {
  0% { left: -30%; }
  100% { left: 100%; }
}

@keyframes laserSweepRtl {
  0% { right: -30%; }
  100% { right: 100%; }
}

/* Node Cards */
.flight-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.flight-node:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(241, 90, 36, 0.4);
  transform: translateY(-4px);
}

.flight-node-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(241, 90, 36, 0.15);
  border: 1px solid rgba(241, 90, 36, 0.3);
  color: #F15A24;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 20px rgba(241, 90, 36, 0.2);
  transition: all 0.35s ease;
}

.flight-node-icon svg {
  width: 28px;
  height: 28px;
}

.flight-node.is-destination .flight-node-icon {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34D399;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.flight-node-stage-num {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.flight-node h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0 0 0.4rem;
}

.flight-node p {
  font-size: 0.82rem;
  color: #CBD5E1 !important;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.flight-node-metric-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.flight-node.is-destination .flight-node-metric-tag {
  color: #34D399;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(52, 211, 153, 0.3);
}

/* Flying Envelope Active Stage Animation */
.flying-envelope-corridor {
  position: relative;
  height: 64px;
  margin: 2rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 1.5rem;
}

.corridor-track-bg {
  position: absolute;
  inset-inline: 1.5rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

/* The Animated Flying Envelopes */
.flying-envelope {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #F15A24, #EA580C);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(241, 90, 36, 0.45);
  font-size: 0.78rem;
  font-weight: 800;
  z-index: 5;
  animation: glideEnvelope 6s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.flying-envelope svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.flying-envelope-trail {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(241, 90, 36, 0), #F15A24);
  border-radius: 2px;
}

@keyframes glideEnvelope {
  0% {
    inset-inline-start: 2%;
    transform: translateY(0) scale(0.95);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }
  48% {
    transform: translateY(3px) scale(1.05);
  }
  90% {
    opacity: 1;
    transform: translateY(-1px) scale(1);
  }
  100% {
    inset-inline-start: calc(100% - 150px);
    transform: translateY(0) scale(0.95);
    opacity: 0;
  }
}

/* Flight Controls Strip */
.flight-sim-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-trigger-dispatch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #F15A24 0%, #D94814 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(241, 90, 36, 0.35);
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-trigger-dispatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(241, 90, 36, 0.5);
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
}

.btn-trigger-dispatch:active {
  transform: translateY(0);
}

.btn-trigger-dispatch svg {
  width: 18px;
  height: 18px;
}

.flight-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dispatch Simulation Toast */
.dispatch-sim-toast {
  position: fixed;
  bottom: 2rem;
  inset-inline-end: 2rem;
  z-index: 9999;
  background: #090E1A;
  border: 1px solid #10B981;
  color: #ffffff;
  padding: 1rem 1.4rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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

.dispatch-sim-toast svg {
  width: 22px;
  height: 22px;
  color: #34D399;
  flex-shrink: 0;
}

/* Live KPI Metric Cards Strip */
.flight-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.flight-kpi-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.flight-kpi-card:hover {
  border-color: rgba(241, 90, 36, 0.3);
  transform: translateY(-3px);
}

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

.flight-kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
}

.flight-kpi-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF !important;
  line-height: 1.2;
}

.flight-kpi-val.text-mint { color: #34D399 !important; }
.flight-kpi-val.text-orange { color: #F15A24 !important; }
.flight-kpi-val.text-sky { color: #38BDF8 !important; }

.flight-kpi-sub {
  font-size: 0.72rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   26. ELEVATED MULTI-CHANNEL JOURNEY INFOGRAPHIC (تنوع بصري وهندسي حقيقي)
   ========================================================================== */

.email-journey-section {
  padding: 5rem 0;
  background: #F8FAFC;
  position: relative;
}

.email-journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
}

.email-journey-step {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.email-journey-step::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, #F15A24, #EA580C);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.email-journey-step:hover {
  transform: translateY(-6px);
  border-color: rgba(241, 90, 36, 0.3);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.email-journey-step:hover::before {
  opacity: 1;
}

/* Differentiated Featured 5th Stage (Conversion Goal) */
.email-journey-step:nth-child(5) {
  background: linear-gradient(145deg, #090E1A 0%, #0F172A 100%);
  border-color: rgba(241, 90, 36, 0.4);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18);
  color: #ffffff;
}

.email-journey-step:nth-child(5)::before {
  opacity: 1;
  background: linear-gradient(90deg, #F15A24, #10B981);
}

.email-journey-step:nth-child(5) h3 {
  color: #FFFFFF !important;
}

.email-journey-step:nth-child(5) p {
  color: #CBD5E1 !important;
}

.email-journey-step:nth-child(5) .journey-icon-box {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.journey-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.journey-step-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: #F15A24;
  background: rgba(241, 90, 36, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
}

.email-journey-step:nth-child(5) .journey-step-num {
  color: #34D399;
  background: rgba(16, 185, 129, 0.18);
}

.journey-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(241, 90, 36, 0.1);
  color: #F15A24;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.journey-icon-box svg {
  width: 22px;
  height: 22px;
}

.journey-step-preview-chip {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: #F1F5F9;
  color: #475569;
}

.email-journey-step:nth-child(5) .journey-step-preview-chip {
  background: rgba(241, 90, 36, 0.18);
  color: #FB923C;
}

.journey-arrow-indicator {
  position: absolute;
  top: 50%;
  inset-inline-end: -16px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #F15A24;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.journey-arrow-indicator svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   27. SMART INDUSTRY TARGETING MATRIX (تنويع معماري وإحصائيات تسويقية)
   ========================================================================== */

.email-benefits-who-section {
  padding: 5.5rem 0;
  background: #FFFFFF;
}

.email-who-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
}

.who-card-spotlight {
  grid-row: span 2;
  background: linear-gradient(145deg, #090E1A 0%, #0F172A 100%);
  border-radius: 26px;
  padding: 2.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(241, 90, 36, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.who-card-spotlight::before {
  content: "";
  position: absolute;
  top: -80px;
  inset-inline-end: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(241, 90, 36, 0.25) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.who-card-spotlight h3 {
  color: #FFFFFF !important;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.75rem 0 0.85rem;
}

.who-card-spotlight p {
  color: #CBD5E1 !important;
  font-size: 0.95rem;
  line-height: 1.7;
}

.spotlight-stat-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spotlight-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #34D399;
}

.spotlight-stat-lbl {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 600;
}

/* Standard Differentiated Cards */
.email-who-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-who-card:hover {
  background: #FFFFFF;
  border-color: rgba(241, 90, 36, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.who-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(241, 90, 36, 0.1);
  color: #F15A24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.who-card-icon svg {
  width: 24px;
  height: 24px;
}

.who-target-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0369A1;
  background: #E0F2FE;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.email-who-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A !important;
  margin: 0.5rem 0 0.35rem;
}

.email-who-card p {
  font-size: 0.875rem;
  color: #475569 !important;
  line-height: 1.6;
  margin: 0;
}

.who-card-kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  align-self: flex-start;
}

/* ==========================================================================
   RESPONSIVE FLIGHT SIMULATOR & JOURNEY ADAPTATIONS
   ========================================================================== */

@media (max-width: 1100px) {
  .flight-track-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .flight-circuit-line {
    display: none;
  }
  .email-journey-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .journey-arrow-indicator {
    display: none;
  }
  .email-who-grid {
    grid-template-columns: 1fr 1fr;
  }
  .who-card-spotlight {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .email-flight-simulator-section {
    padding: 3.5rem 0;
  }
  .flight-sim-canvas {
    padding: 1.5rem 1rem;
  }
  .flight-track-grid {
    grid-template-columns: 1fr;
  }
  .flight-kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .email-journey-grid {
    grid-template-columns: 1fr;
  }
  .email-who-grid {
    grid-template-columns: 1fr;
  }
  .who-card-spotlight {
    grid-column: auto;
  }
  .flight-sim-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-trigger-dispatch {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .flight-kpis-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   28. SMART DELIVERY BOARD & FLYING SMS SIMULATOR (سمارت بود تسليم الرسائل مع فلاي)
   Transforms generic Why Choose DashSMS into a high-attraction smart board
   ========================================================================== */

html body.qdash-saas #features,
html body #features,
#features.smart-delivery-board-section,
.smart-delivery-board-section {
  padding: 6rem 0 5.5rem !important;
  background: linear-gradient(180deg, #090E1A 0%, #0B132B 50%, #090E1A 100%) !important;
  position: relative !important;
  overflow: hidden !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.smart-delivery-board-section::before {
  content: "";
  position: absolute;
  top: -120px;
  inset-inline-start: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(241, 90, 36, 0.16) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.smart-delivery-board-section::after {
  content: "";
  position: absolute;
  bottom: -120px;
  inset-inline-end: 15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.delivery-board-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
  position: relative;
  z-index: 2;
}

.delivery-board-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: rgba(241, 90, 36, 0.18);
  border: 1px solid rgba(241, 90, 36, 0.35);
  color: #F15A24;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.1rem;
}

.delivery-board-header h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0 0 1rem;
  line-height: 1.3;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.delivery-board-header p {
  font-size: 1.1rem;
  color: #CBD5E1 !important;
  line-height: 1.7;
}

/* Smart Board Flight Simulator Canvas */
.sms-flight-simulator-canvas {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  margin-bottom: 3.5rem;
}

/* Split: Left Controls & Stages / Right Smartphone Delivery Mockup */
.sms-flight-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

/* Stages Rail */
.sms-stages-rail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sms-stage-node {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  transition: all 0.3s ease;
  position: relative;
}

.sms-stage-node:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(241, 90, 36, 0.35);
  transform: translateX(-4px);
}

[dir="ltr"] .sms-stage-node:hover {
  transform: translateX(4px);
}

.sms-stage-node.is-active {
  border-color: #F15A24;
  background: rgba(241, 90, 36, 0.08);
  box-shadow: 0 8px 24px rgba(241, 90, 36, 0.15);
}

.sms-stage-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(241, 90, 36, 0.15);
  color: #F15A24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sms-stage-icon-box svg {
  width: 22px;
  height: 22px;
}

.sms-stage-node h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0 0 0.25rem;
}

.sms-stage-node p {
  font-size: 0.85rem;
  color: #CBD5E1 !important;
  margin: 0;
  line-height: 1.5;
}

/* Flying SMS Corridor */
.sms-flight-corridor {
  position: relative;
  height: 60px;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 1.5rem;
}

.flying-sms-packet {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #F15A24, #EA580C);
  color: #ffffff;
  padding: 0.45rem 0.95rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(241, 90, 36, 0.45);
  font-size: 0.78rem;
  font-weight: 800;
  z-index: 5;
  animation: flySmsLoop 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.flying-sms-packet svg {
  width: 16px;
  height: 16px;
}

@keyframes flySmsLoop {
  0% {
    inset-inline-start: 2%;
    opacity: 0;
    transform: translateY(0) scale(0.9);
  }
  12% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }
  50% {
    transform: translateY(2px) scale(1.05);
  }
  88% {
    opacity: 1;
    transform: translateY(-1px) scale(1);
  }
  100% {
    inset-inline-start: calc(100% - 140px);
    opacity: 0;
    transform: translateY(0) scale(0.9);
  }
}

/* Interactive Fly Trigger Button */
.btn-fly-sms-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #F15A24 0%, #D94814 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(241, 90, 36, 0.35);
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-fly-sms-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(241, 90, 36, 0.5);
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
}

.btn-fly-sms-trigger:active {
  transform: translateY(0);
}

.btn-fly-sms-trigger svg {
  width: 18px;
  height: 18px;
}

/* Right Smartphone Mockup (هاتف العميل الذكي المتفاعل) */
.sms-phone-mockup {
  background: #090E1A;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  padding: 1rem;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}

.sms-phone-notch {
  width: 90px;
  height: 18px;
  background: #000000;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 1rem;
}

.sms-phone-screen {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border-radius: 26px;
  padding: 1.25rem 1rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sms-phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* Real-time SMS Notification Banner */
.sms-push-banner {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #0F172A;
  animation: bannerSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

@keyframes bannerSlideDown {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.sms-push-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.sms-sender-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #F15A24;
}

.sms-push-time {
  font-size: 0.7rem;
  color: #64748B;
  font-weight: 600;
}

.sms-push-body {
  font-size: 0.84rem;
  color: #1E293B;
  line-height: 1.5;
  margin: 0 0 0.65rem;
}

.sms-push-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #E2E8F0;
  padding-top: 0.5rem;
  font-size: 0.72rem;
  color: #10B981;
  font-weight: 700;
}

/* Interactive Phone Vibration Animation */
.sms-phone-mockup.is-buzzing {
  animation: phoneBuzz 0.5s ease-in-out;
}

@keyframes phoneBuzz {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-3px, 2px) rotate(-1deg); }
  40% { transform: translate(3px, -2px) rotate(1deg); }
  60% { transform: translate(-2px, 1px) rotate(0deg); }
  80% { transform: translate(2px, -1px) rotate(0deg); }
}

/* 6 Elevated Feature Smart Cards */
.smart-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.smart-feature-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.smart-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, #F15A24, #EA580C);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.smart-feature-card:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(241, 90, 36, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.smart-feature-card:hover::before {
  opacity: 1;
}

.smart-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.smart-card-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(241, 90, 36, 0.14);
  border: 1px solid rgba(241, 90, 36, 0.28);
  color: #F15A24;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.smart-card-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.smart-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #F15A24;
  background: rgba(241, 90, 36, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(241, 90, 36, 0.25);
}

.smart-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0 0 0.6rem;
}

.smart-feature-card p {
  font-size: 0.92rem;
  color: #CBD5E1 !important;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.smart-card-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  align-self: flex-start;
}

/* Responsive Smart Delivery Board */
@media (max-width: 1024px) {
  .sms-flight-grid {
    grid-template-columns: 1fr;
  }
  .smart-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .smart-features-grid {
    grid-template-columns: 1fr;
  }
  .sms-flight-simulator-canvas {
    padding: 1.5rem 1rem;
  }
}




