/* =========================================================
   BIG smart — Shared Stylesheet
   Theme: iOS / Liquid Glass — Apple system font — Orange palette
   ========================================================= */

:root{
  /* Orange brand palette (iOS-style) */
  --primary:#1c1c1e;
  --primary-light:#3a3a3c;
  --primary-lighter:#48484a;
  --accent:#ff6a00;          /* brand orange */
  --accent-dark:#e35a00;
  --accent2:#ff9f0a;         /* secondary amber-orange */
  --ios-indigo:#ff3b30;      /* gradient partner (red-orange) */
  --ios-teal:#ffcc66;        /* warm gold highlight on dark bg */
  --ios-purple:#c2410c;      /* deep burnt-orange gradient stop */
  --ios-green:#30d158;
  --ios-red:#ff453a;

  --bg:#f2f2f7;              /* iOS systemGray6 */
  --white:#ffffff;
  --text:#1c1c1e;            /* iOS label */
  --muted:#6e6e73;           /* iOS secondaryLabel */
  --border:rgba(60,60,67,.16);

  /* Liquid Glass tokens */
  --glass-bg:rgba(255,255,255,.55);
  --glass-bg-strong:rgba(255,255,255,.72);
  --glass-bg-soft:rgba(255,255,255,.38);
  --glass-border:rgba(255,255,255,.45);
  --glass-blur:blur(24px) saturate(180%);
  --glass-blur-sm:blur(14px) saturate(160%);
  --glass-highlight:inset 0 1px 0 rgba(255,255,255,.65);
  --glass-shadow:0 8px 32px rgba(31,38,68,.12);
  --glass-shadow-lg:0 20px 60px rgba(31,38,68,.18);

  --glass-dark-bg:rgba(28,28,30,.55);
  --glass-dark-bg-strong:rgba(28,28,30,.78);
  --glass-dark-border:rgba(255,255,255,.14);

  --radius:22px;
  --radius-sm:14px;
  --shadow:0 10px 30px rgba(11,37,69,.08);
  --shadow-lg:var(--glass-shadow-lg);
  --transition:.3s cubic-bezier(.4,0,.2,1);
  --container:1200px;

  --font-apple:'SF Pro Display','Inter',-apple-system,BlinkMacSystemFont,'SF Pro Text','SF Arabic','IBM Plex Sans Arabic','Segoe UI',sans-serif;
}

/* ---------- Apple SF Pro Display (local font files) ---------- */
@font-face{
  font-family:'SF Pro Display';
  src:url('fonts/SFProDisplay-Regular.otf') format('opentype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'SF Pro Display';
  src:url('fonts/SFProDisplay-Medium.otf') format('opentype');
  font-weight:500;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'SF Pro Display';
  src:url('fonts/SFProDisplay-Bold.otf') format('opentype');
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-apple);
  background:var(--bg);
  background-image:radial-gradient(circle at 15% 0%,rgba(255,106,0,.05),transparent 40%),
                    radial-gradient(circle at 85% 15%,rgba(255,159,10,.05),transparent 40%);
  background-attachment:fixed;
  color:var(--text);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.section{ padding:90px 0; }
.section-sm{ padding:60px 0; }
.section-head{
  text-align:center;
  max-width:640px;
  margin:0 auto 56px;
}
.eyebrow{
  display:inline-block;
  color:var(--accent);
  font-weight:700;
  font-size:14px;
  letter-spacing:.5px;
  background:rgba(255,106,0,.1);
  backdrop-filter:var(--glass-blur-sm);
  padding:6px 16px;
  border-radius:999px;
  margin-bottom:16px;
  border:1px solid rgba(255,106,0,.15);
}
.section-head h2{
  font-size:36px;
  margin:0 0 14px;
  color:var(--primary);
  font-weight:800;
  letter-spacing:-.02em;
}
.section-head p{ color:var(--muted); font-size:16px; margin:0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 30px;
  border-radius:999px;
  font-weight:600;
  font-size:15px;
  border:2px solid transparent;
  transition:all var(--transition);
  white-space:nowrap;
}
.btn-primary{
  background:var(--accent-dark);
  color:#fff;
  box-shadow:none;
}
.btn-primary:hover{ background:var(--accent); transform:translateY(-2px); box-shadow:0 6px 16px rgba(255,106,0,.28); }
.btn-outline{
  border-color:var(--glass-border);
  background:rgba(255,255,255,.14);
  backdrop-filter:var(--glass-blur-sm);
  color:#fff;
}
.btn-outline:hover{ background:rgba(255,255,255,.24); border-color:rgba(255,255,255,.6); }
.btn-dark{ background:rgba(28,28,30,.85); backdrop-filter:var(--glass-blur-sm); color:#fff; border-color:var(--glass-dark-border); }
.btn-dark:hover{ background:rgba(28,28,30,.95); transform:translateY(-2px); }
.btn-block{ width:100%; justify-content:center; }
.btn-sm{ padding:10px 20px; font-size:13px; }
.btn-add i{ font-size:15px; }

/* ---------- Header (Liquid Glass) ---------- */
.site-header{
  position:sticky; top:0; z-index:1000;
  background:var(--glass-bg);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border-bottom:1px solid var(--border);
  box-shadow:0 1px 0 rgba(255,255,255,.5) inset, 0 8px 24px rgba(31,38,68,.06);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:22px;
  color:var(--primary);
  letter-spacing:-.02em;
}
.brand .logo-mark{
  width:40px;height:40px;border-radius:12px;
  background:linear-gradient(135deg,var(--accent),var(--ios-indigo));
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:18px;font-weight:800;
  box-shadow:0 4px 14px rgba(255,106,0,.35), var(--glass-highlight);
}
.brand-logo{ height:46px; width:auto; display:block; }
.brand-logo-chip{
  background:#fff;
  padding:8px 16px;
  border-radius:14px;
  box-shadow:var(--glass-shadow);
}
.nav-links{ display:flex; align-items:center; gap:4px; }
.nav-links a{
  padding:10px 16px;
  border-radius:999px;
  font-weight:600;
  font-size:15px;
  color:var(--text);
  transition:all var(--transition);
}
.nav-links a:hover,.nav-links a.active{
  background:var(--glass-bg-strong);
  backdrop-filter:var(--glass-blur-sm);
  color:var(--accent);
  box-shadow:var(--glass-highlight);
}
.nav-actions{ display:flex; align-items:center; gap:10px; }
.lang-toggle{
  display:flex; align-items:center; gap:6px;
  border:1px solid var(--border);
  background:var(--white);
  padding:8px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  color:var(--primary);
  transition:all var(--transition);
}
.lang-toggle:hover{ color:var(--accent); border-color:var(--accent); transform:translateY(-2px); }
.nav-toggle{
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:42px; height:42px;
  border-radius:50%;
  background:var(--white);
  border:1px solid var(--border);
  padding:8px;
  transition:all var(--transition);
}
.nav-toggle:hover{ border-color:var(--accent); transform:translateY(-2px); }
.nav-toggle span{ width:24px; height:2.5px; background:var(--primary); border-radius:2px; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background-color:#1c1c1e;
  color:#fff;
  overflow:hidden;
  padding:130px 0 150px;
}
/* Slideshow layer: each slide crossfades in/out, image + focal point mirror with dir */
.hero-slides{ position:absolute; inset:0; z-index:0; }
.hero-slide{
  position:absolute; inset:0;
  background-image:var(--slide-img);
  background-size:cover;
  background-position:right center;
  opacity:0;
  transition:opacity 1.1s ease, background-position .6s ease;
}
.hero-slide.active{ opacity:1; }
html[dir="ltr"] .hero-slide{ background-position:left center; }
/* Two overlay layers crossfade smoothly so the darkened side follows the text */
.hero::before{
  content:"";
  position:absolute; inset:0; z-index:1;
  background:radial-gradient(circle at 80% 20%,rgba(255,214,140,.3),transparent 45%),
             radial-gradient(circle at 10% 90%,rgba(255,159,10,.15),transparent 40%),
             linear-gradient(to left, rgba(20,10,4,.88) 0%, rgba(255,90,0,.55) 45%, rgba(255,106,0,0) 75%);
  opacity:1;
  transition:opacity .6s ease;
}
.hero::after{
  content:"";
  position:absolute; inset:0; z-index:1;
  background:radial-gradient(circle at 80% 20%,rgba(255,214,140,.3),transparent 45%),
             radial-gradient(circle at 10% 90%,rgba(255,159,10,.15),transparent 40%),
             linear-gradient(to right, rgba(20,10,4,.88) 0%, rgba(255,90,0,.55) 45%, rgba(255,106,0,0) 75%);
  opacity:0;
  transition:opacity .6s ease;
  pointer-events:none;
}
html[dir="ltr"] .hero::before{ opacity:0; }
html[dir="ltr"] .hero::after{ opacity:1; }
.hero-grid{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:1fr;
}
.hero-grid > div{ max-width:600px; }
.hero-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:3;
  width:48px; height:48px; border-radius:50%;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.3);
  color:#fff; font-size:22px;
  display:flex; align-items:center; justify-content:center;
  transition:all var(--transition);
  cursor:pointer;
}
.hero-arrow:hover{ transform:translateY(-50%) scale(1.06); background:var(--accent); border-color:var(--accent); }
.hero-arrow-prev{ inset-inline-start:24px; }
.hero-arrow-next{ inset-inline-end:24px; }
.hero-dots{
  position:absolute; bottom:22px; inset-inline:0;
  z-index:3;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.hero-dots button{
  width:8px; height:8px; border-radius:50%;
  background:rgba(255,255,255,.4);
  border:1px solid rgba(255,255,255,.5);
  padding:0; cursor:pointer;
  transition:all var(--transition);
}
.hero-dots button.active{ width:22px; border-radius:999px; background:#fff; }
.hero h1{
  font-size:48px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:-.02em;
  margin:0 0 20px;
}
.hero p{
  font-size:18px;
  color:rgba(255,255,255,.85);
  margin:0 0 34px;
  max-width:520px;
}
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-stats{
  display:flex; gap:36px; margin-top:48px; flex-wrap:wrap;
}
.hero-stats div strong{ display:block; font-size:28px; font-weight:800; }
.hero-stats div span{ font-size:13px; color:rgba(255,255,255,.7); }
.hero-visual{
  position:relative;
  background:var(--glass-bg-soft);
  border:1px solid var(--glass-border);
  border-radius:var(--radius);
  padding:16px;
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  box-shadow:var(--glass-shadow-lg), var(--glass-highlight);
}
.hero-visual img{ border-radius:14px; width:100%; }

/* ---------- Breadcrumb / Page hero ---------- */
.page-hero{
  background:linear-gradient(135deg,#ff9500,#ff3b30);
  color:#fff;
  padding:70px 0 56px;
  text-align:center;
}
.page-hero h1{ font-size:38px; font-weight:800; letter-spacing:-.02em; margin:0 0 12px; }
.page-hero .crumbs{ color:rgba(255,255,255,.75); font-size:14px; }
.page-hero .crumbs a{ color:#fff; font-weight:700; }

/* ---------- Cards / Grids ---------- */
.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

.card{
  background:var(--glass-bg-strong);
  backdrop-filter:var(--glass-blur-sm);
  -webkit-backdrop-filter:var(--glass-blur-sm);
  border-radius:var(--radius);
  border:1px solid var(--glass-border);
  box-shadow:var(--glass-shadow), var(--glass-highlight);
  overflow:hidden;
  transition:all var(--transition);
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--glass-shadow-lg), var(--glass-highlight); }

.feature-card{
  background:var(--glass-bg-strong);
  backdrop-filter:var(--glass-blur-sm);
  -webkit-backdrop-filter:var(--glass-blur-sm);
  border-radius:var(--radius);
  padding:32px 26px;
  border:1px solid var(--glass-border);
  box-shadow:var(--glass-shadow), var(--glass-highlight);
  transition:all var(--transition);
}
.feature-card:hover{ box-shadow:var(--glass-shadow-lg), var(--glass-highlight); transform:translateY(-6px); }

/* ---------- أيقونات مسطّحة موحّدة (بدون تأثير Liquid Glass) ---------- */
.feature-icon,
.contact-info-card .icon,
.dash-card .top .ic,
.social-row a{
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  transition:all var(--transition);
}
.feature-icon i,
.contact-info-card .icon i,
.dash-card .top .ic i,
.social-row a i,
.hero-arrow i{
  line-height:1;
}
.feature-icon{
  width:56px;height:56px;
  background:rgba(255,106,0,.1);
  color:var(--accent); font-size:24px; margin-bottom:18px;
}
.feature-icon:hover{ transform:translateY(-3px); background:rgba(255,106,0,.16); }
.blog-meta-icon{
  color:var(--accent);
  font-size:13px;
  margin-inline-end:5px;
  vertical-align:-1.5px;
  line-height:1;
}
.feature-card h3{ margin:0 0 10px; font-size:19px; color:var(--primary); font-weight:700; }
.feature-card p{ margin:0; color:var(--muted); font-size:14.5px; }

/* ---------- Product cards ---------- */
.product-card{
  background:var(--glass-bg-strong);
  backdrop-filter:var(--glass-blur-sm);
  border:1px solid var(--glass-border);
  box-shadow:var(--glass-shadow), var(--glass-highlight);
}
.product-card .thumb{ position:relative; aspect-ratio:4/3; overflow:hidden; background:#eef2f7; }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.product-card:hover .thumb img{ transform:scale(1.08); }
.badge{
  position:absolute; top:14px; inset-inline-start:14px;
  background:rgba(255,159,10,.9);
  backdrop-filter:var(--glass-blur-sm);
  color:#fff;
  font-size:12px; font-weight:700;
  padding:5px 12px; border-radius:999px;
  border:1px solid rgba(255,255,255,.4);
}
.product-body{ padding:20px; }
.product-cat{ font-size:12.5px; color:var(--accent); font-weight:700; margin-bottom:6px; }
.product-body h3{ margin:0 0 8px; font-size:17px; color:var(--primary); font-weight:700; }
.product-price{ display:flex; align-items:center; justify-content:space-between; margin-top:14px; }
.price{ font-size:20px; font-weight:800; color:var(--primary); }
.price span{ font-size:13px; color:var(--muted); font-weight:400; }

/* ---------- Filters ---------- */
.filters{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:44px; }
.filter-btn{
  padding:10px 22px;
  border-radius:999px;
  border:1px solid var(--glass-border);
  background:var(--glass-bg-strong);
  backdrop-filter:var(--glass-blur-sm);
  font-weight:700;
  font-size:14px;
  color:var(--text);
  box-shadow:var(--glass-highlight);
  transition:all var(--transition);
}
.filter-btn:hover{ border-color:var(--accent); }
.filter-btn.active{
  background:linear-gradient(180deg,var(--accent),var(--accent-dark));
  border-color:transparent; color:#fff;
  backdrop-filter:none; -webkit-backdrop-filter:none;
  box-shadow:0 6px 16px rgba(255,106,0,.35);
}

/* ---------- About / split sections ---------- */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.split img{ border-radius:var(--radius); box-shadow:var(--glass-shadow-lg); }
.checklist li{
  display:flex; align-items:flex-start; gap:12px;
  margin-bottom:14px; color:var(--text); font-size:15px;
}
.checklist li .tick{
  flex-shrink:0; width:24px;height:24px;border-radius:50%;
  background:rgba(255,106,0,.15); color:var(--accent);
  display:flex;align-items:center;justify-content:center; font-size:13px; font-weight:800;
}

/* ---------- Stats band ---------- */
.stats-band{
  background:linear-gradient(135deg,#1c1c1e,#3a3a3c);
  color:#fff;
  padding:56px 0;
}
.stats-band .grid-4{ text-align:center; }
.stats-band strong{ display:block; font-size:36px; font-weight:800; color:var(--ios-teal); }
.stats-band span{ font-size:14px; color:rgba(255,255,255,.75); }

/* ---------- Team ---------- */
.team-card{ text-align:center; padding:28px 20px; }
.team-card img{ width:110px; height:110px; border-radius:50%; margin:0 auto 16px; object-fit:cover; border:4px solid rgba(255,255,255,.7); box-shadow:var(--glass-shadow); }
.team-card h3{ margin:0 0 4px; color:var(--primary); font-size:17px; font-weight:700; }
.team-card span{ color:var(--accent); font-size:13.5px; font-weight:700; }

/* ---------- Testimonials ---------- */
.testimonial-card{
  padding:30px;
  background:var(--glass-bg-strong);
  backdrop-filter:var(--glass-blur-sm);
  border:1px solid var(--glass-border);
  box-shadow:var(--glass-shadow), var(--glass-highlight);
}
.testimonial-card .stars{ color:var(--accent2); margin-bottom:14px; letter-spacing:2px; }
.testimonial-card p{ color:var(--text); font-size:15px; margin:0 0 20px; }
.testi-author{ display:flex; align-items:center; gap:12px; }
.testi-author img{ width:44px;height:44px;border-radius:50%; object-fit:cover; }
.testi-author strong{ display:block; font-size:14px; color:var(--primary); }
.testi-author span{ font-size:12.5px; color:var(--muted); }

/* ---------- Blog ---------- */
.blog-card{
  background:var(--glass-bg-strong);
  backdrop-filter:var(--glass-blur-sm);
  border:1px solid var(--glass-border);
  box-shadow:var(--glass-shadow), var(--glass-highlight);
}
.blog-card .thumb{ aspect-ratio:16/10; overflow:hidden; background:#eef2f7; }
.blog-card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.blog-card:hover .thumb img{ transform:scale(1.08); }
.blog-body{ padding:22px; }
.blog-meta{ display:flex; gap:14px; font-size:12.5px; color:var(--muted); margin-bottom:10px; }
.blog-meta span{ display:flex; align-items:center; gap:5px; }
.blog-body h3{ margin:0 0 10px; font-size:18px; color:var(--primary); font-weight:700; }
.blog-body p{ margin:0 0 16px; color:var(--muted); font-size:14px; }
.read-more{ color:var(--accent); font-weight:700; font-size:14px; }
.read-more:hover{ text-decoration:underline; }

/* ---------- CTA band ---------- */
.cta-band{
  position:relative;
  background:linear-gradient(135deg,#ff9500,#ff6a00 60%,#ff3b30);
  border-radius:var(--radius);
  padding:56px;
  text-align:center;
  color:#fff;
  margin:0 24px;
  overflow:hidden;
  box-shadow:var(--glass-shadow-lg);
}
.cta-band::after{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(circle at 85% 15%,rgba(255,255,255,.25),transparent 45%);
  pointer-events:none;
}
.cta-band h2{ font-size:30px; margin:0 0 12px; font-weight:800; letter-spacing:-.02em; }
.cta-band p{ margin:0 0 28px; color:rgba(255,255,255,.9); }

/* ---------- Forms ---------- */
.form-group{ margin-bottom:20px; }
.form-group label{ display:block; font-weight:700; font-size:14px; margin-bottom:8px; color:var(--primary); }
.form-group input,.form-group textarea,.form-group select{
  width:100%;
  padding:14px 16px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
  background:rgba(255,255,255,.7);
  backdrop-filter:var(--glass-blur-sm);
  font-size:14.5px;
  transition:border var(--transition), box-shadow var(--transition);
}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(255,106,0,.15);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-note{ font-size:13px; color:var(--muted); margin-top:10px; }
.form-success{
  display:none;
  background:rgba(48,209,88,.12);
  color:#1f8a3d;
  padding:14px 18px;
  border-radius:var(--radius-sm);
  font-weight:700;
  font-size:14px;
  margin-bottom:18px;
}

/* ---------- رفع صور المنتج ومعاينتها ---------- */
.img-upload-zone{
  display:flex; align-items:center; gap:10px;
  border:1.5px dashed var(--border);
  border-radius:var(--radius-sm);
  padding:14px 16px;
  cursor:pointer;
  color:var(--muted);
  font-size:13.5px;
  font-weight:600;
  transition:all var(--transition);
}
.img-upload-zone:hover{ border-color:var(--accent); color:var(--accent); background:rgba(255,106,0,.04); }
.img-upload-zone i{ font-size:20px; color:var(--accent); }
.img-preview-grid{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:12px;
}
.img-preview-item{
  position:relative;
  width:76px; height:76px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--bg);
}
.img-preview-item img{ width:100%; height:100%; object-fit:cover; }
.img-preview-item .main-badge{
  position:absolute; bottom:0; inset-inline:0;
  background:rgba(255,106,0,.9);
  color:#fff; font-size:9.5px; font-weight:700;
  text-align:center; padding:2px 0;
}
.img-preview-item button{
  position:absolute; top:2px; inset-inline-end:2px;
  width:18px; height:18px; border-radius:50%;
  background:rgba(0,0,0,.55); color:#fff;
  border:none; font-size:12px; line-height:1;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.img-preview-item.uploading{ opacity:.55; }

/* ---------- Contact info cards ---------- */
.contact-info-card{
  display:flex; gap:16px; align-items:flex-start;
  padding:22px;
  background:var(--glass-bg-strong);
  backdrop-filter:var(--glass-blur-sm);
  border-radius:var(--radius);
  border:1px solid var(--glass-border);
  box-shadow:var(--glass-shadow), var(--glass-highlight);
}
.contact-info-card .icon{
  width:48px;height:48px; flex-shrink:0;
  background:rgba(255,106,0,.1);
  color:var(--accent);
  font-size:20px;
}
.contact-info-card:hover .icon{ transform:translateY(-2px); background:rgba(255,106,0,.16); }
.contact-info-card h4{ margin:0 0 6px; color:var(--primary); font-size:15.5px; font-weight:700; }
.contact-info-card p{ margin:0; color:var(--muted); font-size:14px; }

.map-embed{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); height:340px; box-shadow:var(--glass-shadow); }
.map-embed iframe{ width:100%; height:100%; border:0; }

/* ---------- Footer ---------- */
.site-footer{
  background:linear-gradient(180deg,#1c1c1e,#0e0e10);
  color:rgba(255,255,255,.8);
  padding:70px 0 0;
}
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:50px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-brand .brand{ color:#fff; margin-bottom:14px; }
.footer-brand .brand-logo-chip{ background:transparent; padding:0; box-shadow:none; }
.footer-brand .brand-logo{ height:64px; filter:brightness(0) invert(1); }
.footer-grid p{ font-size:14px; line-height:1.8; color:rgba(255,255,255,.6); }
.footer-col h4{ color:#fff; font-size:16px; margin:0 0 20px; font-weight:700; }
.footer-col ul li{ margin-bottom:12px; }
.footer-col ul li a{ font-size:14px; color:rgba(255,255,255,.65); transition:color var(--transition); }
.footer-col ul li a:hover{ color:var(--ios-teal); }
.social-row{ display:flex; gap:10px; margin-top:18px; }
.social-row a{
  width:38px;height:38px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  color:#fff;
}
.social-row a:hover{ transform:translateY(-3px); background:var(--accent); border-color:var(--accent); }
.footer-bottom{ display:flex; justify-content:space-between; padding:24px 0; font-size:13px; color:rgba(255,255,255,.5); flex-wrap:wrap; gap:10px; }

/* ---------- Login page ---------- */
.auth-wrap{
  min-height:calc(100vh - 0px);
  display:grid;
  grid-template-columns:1fr 1fr;
}
.auth-visual{
  background-color:#1c1c1e;
  background-image:var(--auth-visual-img);
  background-size:cover;
  background-position:center;
  color:#fff;
  display:flex; flex-direction:column; justify-content:flex-start;
  padding:60px;
  position:relative; overflow:hidden;
}
.auth-visual::before{
  content:""; position:absolute; inset:0; z-index:0;
  background:
    linear-gradient(to bottom, rgba(20,10,4,.94) 0%, rgba(255,90,0,.55) 40%, rgba(255,106,0,0) 78%),
    radial-gradient(circle at 80% 5%, rgba(255,214,140,.28), transparent 45%);
}
.auth-visual > *{ position:relative; z-index:1; }
.auth-form-side{ display:flex; align-items:center; justify-content:center; padding:40px; }
.auth-box{
  width:100%; max-width:400px;
  background:var(--glass-bg-strong);
  backdrop-filter:var(--glass-blur-sm);
  border:1px solid var(--glass-border);
  border-radius:var(--radius);
  padding:36px;
  box-shadow:var(--glass-shadow), var(--glass-highlight);
}
.auth-box h1{ font-size:28px; color:var(--primary); margin:0 0 8px; font-weight:800; letter-spacing:-.02em; }
.auth-box > p{ color:var(--muted); margin:0 0 30px; font-size:14.5px; }
.auth-divider{ display:flex; align-items:center; gap:14px; margin:26px 0; color:var(--muted); font-size:13px; }
.auth-divider::before,.auth-divider::after{ content:""; flex:1; height:1px; background:var(--border); }
.remember-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; font-size:13.5px; }
.remember-row label{ display:flex; align-items:center; gap:8px; color:var(--muted); }

/* ---------- Google sign-in button ---------- */
.btn-google{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%;
  padding:13px 20px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  color:#3c4043;
  font-weight:600;
  font-size:14.5px;
  box-shadow:var(--glass-shadow);
  transition:all var(--transition);
}
.btn-google:hover{ box-shadow:var(--glass-shadow-lg); transform:translateY(-2px); }
.btn-google svg{ width:19px; height:19px; flex-shrink:0; }
.user-chip{ display:flex; align-items:center; gap:10px; padding:10px 8px; margin-bottom:10px; }
.user-chip img{ width:36px; height:36px; border-radius:50%; object-fit:cover; box-shadow:var(--glass-highlight); }
.user-chip span{ font-weight:700; font-size:14px; color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---------- Dashboard ---------- */
.dash-layout{ display:grid; grid-template-columns:260px 1fr; height:100vh; overflow:hidden; }
.dash-sidebar{
  background:linear-gradient(180deg,var(--accent2),var(--accent-dark));
  color:rgba(255,255,255,.92);
  padding:24px 18px; display:flex; flex-direction:column;
  border-inline-end:1px solid rgba(0,0,0,.12);
  height:100vh; overflow-y:auto;
}
.dash-sidebar .brand{ color:#fff; margin-bottom:36px; padding:0 8px; }
.dash-sidebar .brand-logo-chip{ background:none; box-shadow:none; padding:0; border-radius:0; }
.dash-sidebar .brand-logo{ height:46px; }
.dash-nav a{
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; border-radius:12px; font-weight:600; font-size:14.5px;
  margin-bottom:6px; border:1.5px solid transparent;
  transition:all var(--transition);
}
.dash-nav a:hover,.dash-nav a.active{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.7); color:#fff; }
.dash-nav .ic{ width:20px; text-align:center; color:#fff; font-size:17px; line-height:1; display:inline-flex; align-items:center; justify-content:center; }
.dash-main{ padding:28px 34px; height:100vh; overflow-y:auto; }
.dash-topbar{ display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; flex-wrap:wrap; gap:16px; }
.dash-topbar h1{ font-size:24px; color:var(--primary); margin:0; font-weight:800; letter-spacing:-.02em; }
.dash-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-bottom:32px; }
.dash-card{
  background:var(--white);
  border-radius:var(--radius);
  padding:22px;
  border:1px solid var(--border);
  box-shadow:0 2px 10px rgba(31,38,68,.06);
  transition:transform var(--transition), box-shadow var(--transition);
}
.dash-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(31,38,68,.12);
}
.dash-card .top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.dash-card .top .ic{
  width:42px;height:42px;
  background:rgba(255,106,0,.1);
  font-size:18px; color:var(--accent);
}
.dash-card strong{ display:block; font-size:26px; color:var(--primary); font-weight:800; }
.dash-card span{ font-size:13px; color:var(--muted); }
.dash-panel{
  background:var(--white);
  border-radius:var(--radius);
  border:1px solid var(--border);
  padding:24px;
  box-shadow:0 2px 10px rgba(31,38,68,.06);
}
.dash-panel h3{ margin:0 0 18px; color:var(--primary); font-size:17px; font-weight:700; }
table{ width:100%; border-collapse:collapse; }
table th,table td{ padding:14px 12px; text-align:start; font-size:14px; border-bottom:1px solid var(--border); }
table th{ color:var(--muted); font-weight:700; font-size:12.5px; text-transform:uppercase; letter-spacing:.4px; }
.status-pill{ padding:5px 14px; border-radius:999px; font-size:12px; font-weight:700; }
.status-pill.done{ background:rgba(48,209,88,.14); color:#1f8a3d; }
.status-pill.pending{ background:rgba(255,159,10,.16); color:#b5670a; }
.status-pill.cancel{ background:rgba(255,69,58,.14); color:#d7261a; }

/* ---------- Unified emoji rendering (Twemoji) ---------- */
img.emoji{
  height:1em; width:1em;
  display:inline-block;
  vertical-align:-0.14em;
  margin:0 .04em;
}

/* ---------- Utilities ---------- */
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.text-center{ text-align:center; }
.bg-white{ background:#fff; }
.glass{
  background:var(--glass-bg-strong);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-border);
  box-shadow:var(--glass-shadow), var(--glass-highlight);
}
.glass-dark{
  background:var(--glass-dark-bg-strong);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-dark-border);
  color:#fff;
}

/* ---------- Responsive ---------- */
@media (max-width:1080px){
  .dash-cards{ grid-template-columns:repeat(2,1fr); }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:900px){
  .hero-grid,.split{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .auth-wrap{ grid-template-columns:1fr; }
  .auth-visual{ display:none; }
  .dash-layout{ grid-template-columns:1fr; }
  .dash-sidebar{ display:none; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .split{ gap:32px; }
  .split img{ max-height:340px; width:100%; object-fit:cover; }
}
@media (max-width:720px){
  .nav-links{
    position:absolute; top:100%; inset-inline:0;
    background:var(--glass-bg-strong);
    backdrop-filter:var(--glass-blur);
    flex-direction:column; align-items:stretch;
    padding:14px; border-bottom:1px solid var(--border);
    display:none; gap:4px;
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{ display:flex; }

  /* ---- Hero: keep the photo fully visible on phones, text pinned low over a bottom scrim ---- */
  .hero{
    min-height:560px;
    padding:96px 0 74px;
    display:flex;
    align-items:flex-end;
  }
  .hero-slide,
  html[dir="ltr"] .hero-slide{ background-position:center 32%; }
  .hero::before,
  .hero::after{
    background:
      linear-gradient(to top, rgba(10,6,3,.95) 0%, rgba(10,6,3,.62) 30%, rgba(10,6,3,.08) 62%, rgba(10,6,3,0) 100%),
      radial-gradient(circle at 80% 10%, rgba(255,214,140,.28), transparent 45%);
    opacity:1;
  }
  .hero-grid{ width:100%; }
  .hero-grid > div{ max-width:none; }
  .hero h1{ font-size:28px; }
  .hero p{ font-size:15px; max-width:none; }
  .hero-cta{ gap:10px; }
  .hero-cta .btn{ flex:1 1 auto; justify-content:center; }
  .hero-stats{ gap:20px; margin-top:28px; }
  .hero-stats div strong{ font-size:21px; }
  .hero-arrow{ width:38px; height:38px; font-size:17px; }
  .hero-arrow-prev{ inset-inline-start:12px; }
  .hero-arrow-next{ inset-inline-end:12px; }
  .hero-dots{ bottom:16px; }

  .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; text-align:center; }
  .footer-brand{ display:flex; flex-direction:column; align-items:center; }
  .social-row{ justify-content:center; }
  .checklist li{ text-align:start; }
  .footer-bottom{ justify-content:center; text-align:center; }
  .dash-cards{ grid-template-columns:1fr; }
  .dash-topbar{ flex-direction:column; align-items:flex-start; }
  .dash-panel{ overflow-x:auto; }
  .dash-panel table{ min-width:540px; }
  .section{ padding:50px 0; }
  .section-head{ margin-bottom:36px; }
  .section-head h2{ font-size:27px; }
  .cta-band{ padding:36px 24px; }
  .split{ grid-template-columns:1fr; }
  .split img{ max-height:260px; }
  .auth-box{ padding:26px; }
  .page-hero{ padding:56px 0 42px; }
  .page-hero h1{ font-size:30px; }
}
@media (max-width:480px){
  .hero{ min-height:500px; padding:88px 0 64px; }
  .hero h1{ font-size:24px; }
  .hero-stats{ gap:14px; }
  .hero-stats div strong{ font-size:18px; }
  .btn{ padding:12px 22px; font-size:14px; }
  .section-head h2{ font-size:23px; }
  .page-hero h1{ font-size:26px; }
  .container{ padding:0 18px; }
  .nav{ padding:20px 18px; }
}

/* ---------- تكبير صورة المنتج عند مرور الماوس (Zoom Lens) ---------- */
.zoom-frame{
  position:relative;
  overflow:hidden;
  border-radius:14px;
  cursor:zoom-in;
}
.zoom-frame img{
  transition:transform .12s ease-out;
  transform-origin:center center;
  will-change:transform;
}
.zoom-frame .zoom-hint{
  position:absolute;
  inset-inline-start:12px;
  bottom:12px;
  background:rgba(28,28,30,.72);
  color:#fff;
  font-size:12px;
  padding:6px 12px;
  border-radius:999px;
  pointer-events:none;
  opacity:0;
  transition:opacity .18s ease;
}
.zoom-frame:hover .zoom-hint{ opacity:1; }
.zoom-frame.zooming .zoom-hint{ opacity:0; }

/* ---------- بطاقة الطلب السريع (صفحة المنتج) ---------- */
.quick-order-card{
  margin-top:44px;
  padding:34px;
  border-radius:var(--radius);
}
.qo-title{
  margin:0 0 6px;
  color:var(--primary);
  font-size:22px;
  font-weight:800;
}
.qo-subtitle{
  color:var(--muted);
  margin:0 0 26px;
  font-size:14px;
}
.qo-product-info{
  display:flex;
  align-items:center;
  gap:16px;
  background:rgba(255,106,0,.05);
  border:1px solid rgba(255,106,0,.15);
  border-radius:var(--radius-sm);
  padding:14px 16px;
  margin-bottom:26px;
}
.qo-product-info img{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:10px;
  flex-shrink:0;
  background:#f2f2f4;
}
.qo-product-meta{ min-width:0; flex:1; }
.qo-product-name{
  font-weight:800;
  color:var(--primary);
  font-size:15.5px;
  margin-bottom:3px;
}
.qo-product-desc{
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  margin-bottom:8px;
}
.qo-pdf-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  font-weight:700;
  color:var(--accent);
}
.qo-pdf-link i{ font-size:15px; }
.qo-pdf-link.qo-pdf-disabled{
  color:var(--muted);
  opacity:.65;
  pointer-events:none;
  cursor:default;
}

/* ---------- تبويبات لوحة التحكم (Dash Tabs) ---------- */
.dash-tabs{
  display:flex;
  gap:8px;
  margin-bottom:20px;
  border-bottom:1px solid var(--border);
}
.dash-tab-btn{
  background:transparent;
  border:none;
  padding:12px 18px;
  font-weight:700;
  font-size:14px;
  color:var(--muted);
  cursor:pointer;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
}
.dash-tab-btn.active{
  color:var(--primary);
  border-bottom-color:var(--primary);
}
.dash-tab-btn:hover{ color:var(--primary); }

/* ---------- أزرار أيقونة (تعديل / حذف) ---------- */
.icon-btn{
  width:34px;
  height:34px;
  border-radius:9px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--primary);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:15px;
}
.icon-btn:hover{ background:var(--bg); }
.icon-btn-danger{
  color:#d7261a;
  border-color:rgba(255,69,58,.3);
  background:rgba(255,69,58,.06);
}
.icon-btn-danger:hover{ background:rgba(255,69,58,.14); }

/* ---------- نوافذ منبثقة (Modal) ---------- */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.modal-box{
  background:#fff;
  border-radius:16px;
  padding:24px;
  width:100%;
  max-width:520px;
  max-height:85vh;
  overflow-y:auto;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}
.modal-head h3{ margin:0; }
.modal-close{
  background:transparent;
  border:none;
  font-size:24px;
  line-height:1;
  color:var(--muted);
  cursor:pointer;
  padding:4px 8px;
}
.modal-close:hover{ color:var(--primary); }

/* ---------- تفاصيل الطلب الموسّعة ---------- */
.order-detail-row td{ padding:0 !important; border:none !important; }
.order-detail-box{
  background:var(--bg);
  border-radius:12px;
  padding:18px 20px;
  margin:6px 0 14px;
}
.order-detail-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.order-detail-grid label{
  display:block;
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  margin-bottom:6px;
}
.order-detail-grid > div > div{ font-size:14px; }
.order-message-box{
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px 14px;
  font-size:13.5px;
  line-height:1.8;
  color:var(--primary);
}
@media (max-width:760px){
  .order-detail-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:480px){
  .order-detail-grid{ grid-template-columns:1fr; }
}

/* ---------- عداد الكمية ---------- */
.qty-stepper{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  overflow:hidden;
  width:fit-content;
}
.qty-stepper .qty-btn{
  width:42px;
  height:44px;
  border:none;
  background:#f5f5f7;
  color:var(--primary);
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  transition:background .15s ease,color .15s ease;
}
.qty-stepper .qty-btn:hover{ background:var(--accent); color:#fff; }
.qty-stepper input{
  width:56px;
  height:44px;
  border:none;
  border-inline-start:1px solid var(--border);
  border-inline-end:1px solid var(--border);
  text-align:center;
  font-size:15px;
  font-weight:700;
  color:var(--primary);
  -moz-appearance:textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

@media (max-width:600px){
  .quick-order-card{ padding:24px; }
  .qo-product-info{ flex-direction:column; align-items:flex-start; }
}


/* ---------- السعر / الخصم / المجموع / Upselling (لوحة الطلبات) ---------- */
.od-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 7px 10px;
  font-size: 13.5px;
  font-family: inherit;
}
.order-price-box {
  background: rgba(0,0,0,.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.order-price-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .order-price-row { grid-template-columns: 1fr; }
}
.order-price-row label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.order-total-value {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}


/* ---------- بطاقات إحصائية دائرية (Gauge) في نظرة عامة ---------- */
.dash-card-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dash-card-gauge .gauge-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 10px;
}
.dash-card-gauge .gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.dash-card-gauge .gauge-track {
  fill: none;
  stroke: #ececec;
  stroke-width: 10;
}
.dash-card-gauge .gauge-arc {
  fill: none;
  stroke: var(--accent-dark, #ff6a00);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}
.dash-card-gauge .gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #1c1c1e;
}
.dash-card-gauge > span {
  color: var(--muted);
  font-size: 13.5px;
}

.dash-gauges-right {
  grid-column: 3 / span 2;
  display: flex;
  gap: 22px;
}
.dash-gauges-right .dash-card { flex: 1; }
.dash-card-gauge-lg .gauge-wrap {
  width: 140px;
  height: 140px;
}
.dash-card-gauge-lg .gauge-center strong {
  font-size: 32px;
}
.dash-card-gauge-lg > span {
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 900px) {
  .dash-gauges-right { grid-column: 1 / -1; }
}

/* ---------- صف علوي: بطاقتان فارغتان + عدادان مرصوفان عموديا على اليمين ---------- */
.dash-top-row {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
  align-items: stretch;
}
.dash-top-row .dash-card-empty {
  flex: 1;
  min-height: 120px;
}
.dash-gauges-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.dash-gauges-stack .dash-card { flex: 1; padding: 14px; }
.dash-card-gauge-sm .gauge-wrap { width: 76px; height: 76px; margin-bottom: 6px; }
.dash-card-gauge-sm .gauge-center strong { font-size: 18px; }
.dash-card-gauge-sm > span { font-size: 12.5px; }

/* بطاقات الإحصائيات الأربع بعد تصغيرها (تظهر الآن فوق أحدث الطلبات) */
.dash-cards-sm { margin-bottom: 22px; }
.dash-cards-sm .dash-card { padding: 14px; }
.dash-cards-sm .dash-card .top { margin-bottom: 8px; }
.dash-cards-sm .dash-card .top .ic { width: 32px; height: 32px; font-size: 14px; }
.dash-cards-sm .dash-card strong { font-size: 19px; }
.dash-cards-sm .dash-card span { font-size: 12px; }

/* تقليص ارتفاع نافذة أحدث الطلبات مع سكرول داخلي */
.dash-panel-scroll .table-scroll { max-height: 260px; overflow-y: auto; }
.dash-panel-scroll .table-scroll thead th { position: sticky; top: 0; background: var(--white); z-index: 1; }

@media (max-width: 900px) {
  .dash-top-row { flex-wrap: wrap; }
  .dash-top-row .dash-card-empty, .dash-top-row .dash-gauges-stack { flex: 1 1 100%; }
}

/* ---------- العدادان معًا داخل المربع الكبير ---------- */
.dash-card-gauges-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex: 1;
  flex-wrap: wrap;
}
.dash-card-gauge-inline .gauge-wrap { width: 200px; height: 200px; }
.dash-card-gauge-inline .gauge-center strong { font-size: 38px; }
.dash-card-gauge-inline > span { font-size: 15px; margin-top: 4px; display: block; }
@media (max-width: 500px) {
  .dash-card-gauges-box { flex-wrap: wrap; gap: 24px; }
}

/* ---------- بطاقة منحنى المبيعات (المستطيل الفارغ سابقًا) ---------- */
.dash-chart-card {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dash-chart-card .chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}
.dash-chart-card .chart-head h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.dash-chart-card .chart-tabs {
  display: flex;
  gap: 6px;
}
.dash-chart-card .chart-tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.dash-chart-card .chart-tab.active,
.dash-chart-card .chart-tab:hover {
  background: var(--accent-dark, #ff6a00);
  color: #fff;
  border-color: var(--accent-dark, #ff6a00);
}
.dash-chart-card .chart-body {
  flex: 1;
  min-height: 0;
}
.dash-chart-card .chart-body svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* ===== Print Modal (blurred overlay preview) ===== */
.print-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(20,20,25,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: printModalFadeIn .15s ease;
}
@keyframes printModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.print-modal-box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.print-modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #111;
}
.print-modal-close:hover { background: rgba(0,0,0,0.12); }
.print-modal-frame {
  flex: 1;
  width: 100%;
  border: none;
  min-height: 60vh;
  background: #eef0f3;
}
.print-modal-actions {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  background: #fff;
}
.print-modal-actions .btn {
  padding: 12px 40px;
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .print-modal-box { max-height: 96vh; }
  .print-modal-frame { min-height: 50vh; }
}
