/* ==========================================================================
   MrZand — «مستر زند» | قدم‌های هوشمند تو
   Modern corporate design system (RTL / Persian)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Brand colors */
  --midnight: #071431;
  --deep-blue: #0B2350;
  --royal: #123a7a;
  --blue: #2f6bff;
  --sky: #38bdf8;
  --sky-soft: #e6f4ff;
  --white: #ffffff;
  --ink: #0d1a2f;
  --slate: #1e293b;
  --gray: #64748b;
  --line: #e7ecf3;
  --surface: #f6f9fd;
  --gold: #f5b942;
  --gold-deep: #e39a1f;
  --orange: #ff8a3d;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #123a7a 0%, #2f6bff 55%, #38bdf8 100%);
  --grad-gold: linear-gradient(135deg, #f5b942 0%, #ff8a3d 100%);
  --grad-dark: linear-gradient(160deg, #071431 0%, #0B2350 60%, #123a7a 100%);

  /* Effects */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(7,20,49,.06), 0 6px 18px rgba(7,20,49,.06);
  --shadow-md: 0 10px 30px rgba(7,20,49,.10);
  --shadow-lg: 0 24px 60px rgba(7,20,49,.16);
  --shadow-blue: 0 18px 40px rgba(47,107,255,.28);
  --shadow-gold: 0 16px 34px rgba(245,185,66,.30);

  --container: 1180px;
  --header-h: 78px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Vazirmatn', 'Noto Sans Arabic', Tahoma, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid rgba(47,107,255,.5); outline-offset: 3px; border-radius: 6px; }

/* Layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.bg-soft { background: var(--surface); }
.bg-dark { background: var(--grad-dark); color: #fff; }

/* Typography -------------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.display { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; line-height: 1.12; }
.h-section { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--gray); line-height: 1.9; }
.bg-dark .lead { color: rgba(255,255,255,.75); }
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--gray); }

/* Section heading block */
.sec-head { max-width: 720px; margin: 0 auto clamp(40px,5vw,64px); text-align: center; }
.sec-head.start { margin-inline: 0; text-align: right; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--blue); background: var(--sky-soft);
  padding: 7px 16px; border-radius: 100px; margin-bottom: 18px;
}
.bg-dark .eyebrow { color: var(--sky); background: rgba(56,189,248,.12); }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px; font-weight: 700; font-size: 1rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  white-space: nowrap; min-height: 52px;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(47,107,255,.4); }
.btn-gold { background: var(--grad-gold); color: #3a2500; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 22px 46px rgba(245,185,66,.45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--blue); background: var(--sky-soft); transform: translateY(-3px); }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; min-height: 58px; }

/* Header ------------------------------------------------------------------ */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s, height .4s;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.header.scrolled {
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(7,20,49,.06), 0 10px 30px rgba(7,20,49,.06);
  height: 66px;
}
/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; }
.logo__mark {
  width: 44px; height: 44px; border-radius: 13px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-blue);
  position: relative; overflow: hidden; flex: none;
}
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-size: 1.22rem; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.logo__tag { font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.7); letter-spacing: .02em; }
.header.scrolled .logo__name { color: var(--ink); }
.header.scrolled .logo__tag { color: var(--gray); }
/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 9px 16px; border-radius: 100px; font-weight: 600; font-size: .98rem;
  color: rgba(255,255,255,.9); transition: color .25s, background .25s;
}
.nav a::after {
  content: ''; position: absolute; inset-inline: 16px; inset-block-end: 4px; height: 2px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: #fff; }
.header.scrolled .nav a { color: var(--slate); }
.header.scrolled .nav a:hover, .header.scrolled .nav a.active { color: var(--blue); }
.header__cta { display: flex; align-items: center; gap: 12px; }
/* Burger */
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: .3s; }
.burger span::before, .burger span::after { content: ''; position: absolute; inset-inline: 0; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.header.scrolled .burger { background: var(--surface); border-color: var(--line); }
.header.scrolled .burger span, .header.scrolled .burger span::before, .header.scrolled .burger span::after { background: var(--ink); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--grad-dark);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 90px 32px 40px; transform: translateX(110%); transition: transform .45s var(--ease); visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu a { color: #fff; font-size: 1.5rem; font-weight: 700; padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a span { color: var(--gold); font-size: 1rem; }
.mobile-menu .btn { margin-top: 26px; }
.menu-close { position: absolute; inset-block-start: 26px; inset-inline-start: 28px; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 1.6rem; display: grid; place-items: center; }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--grad-dark); padding-top: var(--header-h); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob.b1 { width: 520px; height: 520px; background: #2f6bff; top: -120px; inset-inline-start: -80px; }
.blob.b2 { width: 440px; height: 440px; background: #38bdf8; bottom: -140px; inset-inline-end: -60px; opacity: .4; }
.blob.b3 { width: 300px; height: 300px; background: var(--gold); top: 40%; inset-inline-end: 22%; opacity: .22; }
.hero__grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 72%); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; width: 100%; padding-block: 60px; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); color: #fff; padding: 9px 18px; border-radius: 100px; font-size: .88rem; font-weight: 600; margin-bottom: 26px; }
.hero__badge b { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 900; line-height: 1.08; margin-bottom: 10px; }
.hero__slogan { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 22px; }
.hero p.lead { color: rgba(255,255,255,.8); max-width: 520px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__trust { margin-top: 38px; display: flex; align-items: center; gap: 18px; color: rgba(255,255,255,.65); font-size: .9rem; }
.hero__trust .stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.hero__avatars { display: flex; }
.hero__avatars span { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--deep-blue); margin-inline-start: -12px; background: var(--grad-brand); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; }
.hero__avatars span:first-child { margin-inline-start: 0; }
.hero__avatars span.gold { background: var(--grad-gold); color: #3a2500; }

/* Hero visual card */
.hero__visual { position: relative; }
.glass-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(16px); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.hero__panel { display: grid; gap: 16px; }
.hero__panel-top { display: flex; align-items: center; justify-content: space-between; }
.hero__panel-top .dots span { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-inline-start: 6px; background: rgba(255,255,255,.3); }
.hero__panel-top .dots span:nth-child(1){ background:#ff8a3d;} .hero__panel-top .dots span:nth-child(2){ background:var(--gold);} .hero__panel-top .dots span:nth-child(3){ background:#38bdf8;}
.hero__bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.hero__bars i { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(to top, rgba(56,189,248,.35), rgba(47,107,255,.9)); animation: growbar 1.4s var(--ease) both; }
.hero__bars i:nth-child(4){ background: var(--grad-gold); }
@keyframes growbar { from { height: 0; opacity: 0; } }
.mini-stat { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px 16px; }
.mini-stat .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--grad-brand); display: grid; place-items: center; flex: none; }
.mini-stat .ic svg { width: 20px; height: 20px; color: #fff; }
.mini-stat b { display: block; font-size: 1.25rem; color: #fff; } .mini-stat small { color: rgba(255,255,255,.6); }
.float-badge { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; }
.float-badge .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color:#fff; flex:none; }
.float-badge.fb1 { inset-block-start: -22px; inset-inline-start: -22px; animation: floaty 5s ease-in-out infinite; }
.float-badge.fb2 { inset-block-end: -20px; inset-inline-end: -18px; animation: floaty 6s ease-in-out infinite .6s; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }

/* Wave divider */
.wave { position: absolute; inset-inline: 0; inset-block-end: -1px; z-index: 2; line-height: 0; }
.wave svg { width: 100%; height: 90px; display: block; }

/* Stats ------------------------------------------------------------------- */
.stats { position: relative; z-index: 3; margin-top: -50px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-card .num { font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 900; line-height: 1; }
.stat-card .num small { font-size: 1.4rem; }
.stat-card .label { color: var(--gray); font-weight: 600; margin-top: 8px; }
.stat-card .ic { width: 52px; height: 52px; border-radius: 15px; background: var(--sky-soft); display: grid; place-items: center; margin: 0 auto 16px; }
.stat-card .ic svg { width: 26px; height: 26px; color: var(--blue); }

/* Cards / Services -------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; position: relative; overflow: hidden;
}
.card::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: var(--grad-brand); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__ic { width: 62px; height: 62px; border-radius: 17px; background: var(--grad-brand); display: grid; place-items: center; margin-bottom: 22px; box-shadow: var(--shadow-blue); transition: transform .4s var(--ease); }
.card:hover .card__ic { transform: rotate(-6deg) scale(1.06); }
.card__ic.gold { background: var(--grad-gold); box-shadow: var(--shadow-gold); }
.card__ic svg { width: 30px; height: 30px; color: #fff; }
.card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.card p { color: var(--gray); line-height: 1.85; }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--blue); font-weight: 700; font-size: .95rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .3s; }
.card:hover .card__link svg { transform: translateX(-5px); }
.card ul.ticks { margin-top: 16px; display: grid; gap: 9px; }
.card ul.ticks li { display: flex; gap: 10px; color: var(--slate); font-size: .96rem; }
.card ul.ticks li svg { width: 19px; height: 19px; color: var(--blue); flex: none; margin-top: 4px; }

/* About ------------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
.about__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; background: var(--grad-dark); position: relative; }
.about__img .art { position: absolute; inset: 0; }
.about__float { position: absolute; inset-block-end: -26px; inset-inline-start: -26px; background: #fff; border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 16px; }
.about__float .big { font-size: 2.2rem; font-weight: 900; }
.feature-row { display: flex; gap: 16px; margin-top: 22px; }
.feature-row .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--sky-soft); display: grid; place-items: center; flex: none; }
.feature-row .ic svg { width: 24px; height: 24px; color: var(--blue); }
.feature-row h4 { font-size: 1.1rem; margin-bottom: 4px; }
.feature-row p { color: var(--gray); font-size: .96rem; }

/* Clients ----------------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(50%); } }
.client-logo { display: flex; align-items: center; gap: 12px; color: var(--gray); font-weight: 800; font-size: 1.35rem; opacity: .7; transition: opacity .3s, color .3s; white-space: nowrap; }
.client-logo:hover { opacity: 1; color: var(--blue); }
.client-logo svg { width: 30px; height: 30px; }

/* Testimonials ------------------------------------------------------------ */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); position: relative; height: 100%; transition: transform .35s var(--ease), box-shadow .35s; }
.quote-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.quote-card .mark { font-size: 4rem; line-height: .6; color: var(--sky); font-family: Georgia, serif; height: 30px; }
.quote-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.quote-card p { color: var(--slate); line-height: 1.9; }
.quote-card .who { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.quote-card .who .av { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.quote-card .who b { display: block; } .quote-card .who small { color: var(--gray); }

/* CTA band ---------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--grad-brand); border-radius: var(--radius-lg); padding: clamp(44px,6vw,72px); text-align: center; color: #fff; box-shadow: var(--shadow-blue); }
.cta-band::before { content: ''; position: absolute; width: 400px; height: 400px; background: rgba(255,255,255,.12); border-radius: 50%; top: -180px; inset-inline-start: -80px; }
.cta-band::after { content: ''; position: absolute; width: 320px; height: 320px; background: rgba(245,185,66,.22); border-radius: 50%; bottom: -160px; inset-inline-end: -60px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 30px; }
.cta-band .btn-gold { color:#3a2500; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Page hero (inner) ------------------------------------------------------- */
.page-hero { position: relative; background: var(--grad-dark); color: #fff; padding: calc(var(--header-h) + 70px) 0 90px; overflow: hidden; text-align: center; }
.page-hero .blob { opacity: .4; }
.page-hero__inner { position: relative; z-index: 2; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; color: rgba(255,255,255,.6); font-size: .9rem; margin-top: 16px; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { color: rgba(255,255,255,.78); max-width: 620px; margin: 16px auto 0; }

/* Team -------------------------------------------------------------------- */
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; text-align: center; }
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-card__photo { height: 220px; position: relative; overflow: hidden; display: grid; place-items: center; }
.team-card__photo .avatar { width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.15); border: 3px solid rgba(255,255,255,.4); display: grid; place-items: center; font-size: 2.4rem; font-weight: 900; color: #fff; }
.team-card__body { padding: 22px; }
.team-card h4 { font-size: 1.15rem; }
.team-card .role { color: var(--blue); font-weight: 600; font-size: .92rem; margin-top: 3px; }
.team-card .socials { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.team-card .socials a { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; color: var(--gray); transition: .25s; }
.team-card .socials a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.team-card .socials svg { width: 18px; height: 18px; }

/* Portfolio --------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-bar button { padding: 10px 22px; border-radius: 100px; font-weight: 600; color: var(--slate); background: var(--surface); border: 1px solid var(--line); transition: .25s; }
.filter-bar button.active, .filter-bar button:hover { background: var(--grad-brand); color: #fff; border-color: transparent; }
.portfolio-card { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; background:#fff; }
.portfolio-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.portfolio-card__img { height: 210px; position: relative; overflow: hidden; display:grid; place-items:center; }
.portfolio-card__img .label { position: relative; z-index:1; font-weight: 900; font-size: 1.6rem; color:#fff; letter-spacing:.04em; }
.portfolio-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,20,49,.85), rgba(7,20,49,0)); opacity: 0; display: flex; align-items: flex-end; padding: 20px; transition: opacity .4s; }
.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }
.portfolio-card__overlay .view { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue); }
.portfolio-card__body { padding: 20px 22px; }
.portfolio-card .cat { color: var(--blue); font-weight: 700; font-size: .82rem; }
.portfolio-card h4 { margin-top: 4px; font-size: 1.15rem; }

/* Products / pricing ------------------------------------------------------ */
.price-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-sm); position: relative; transition: transform .4s var(--ease), box-shadow .4s; display:flex; flex-direction:column; }
.price-card.featured { background: var(--grad-dark); color:#fff; box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card.featured:hover { transform: scale(1.03) translateY(-8px); }
.price-card .tier { font-weight: 700; color: var(--blue); }
.price-card.featured .tier { color: var(--sky); }
.price-card .price { font-size: 2.4rem; font-weight: 900; margin: 12px 0 2px; }
.price-card .price small { font-size: 1rem; color: var(--gray); font-weight: 600; }
.price-card.featured .price small { color: rgba(255,255,255,.6); }
.price-card ul { display: grid; gap: 12px; margin: 24px 0 28px; }
.price-card ul li { display: flex; gap: 10px; color: var(--slate); }
.price-card.featured ul li { color: rgba(255,255,255,.85); }
.price-card ul li svg { width: 20px; height: 20px; color: var(--blue); flex:none; }
.price-card.featured ul li svg { color: var(--sky); }
.badge-pop { position: absolute; inset-block-start: 22px; inset-inline-start: 28px; background: var(--grad-gold); color:#3a2500; font-weight: 800; font-size: .78rem; padding: 6px 14px; border-radius: 100px; }

/* Contact ----------------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: stretch; }
.contact__info { display: grid; gap: 18px; align-content: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-item .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-brand); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-blue); }
.contact-item .ic svg { width: 24px; height: 24px; color:#fff; }
.contact-item h4 { font-size: 1.05rem; margin-bottom: 3px; }
.contact-item p, .contact-item a { color: var(--gray); }
.contact-item a:hover { color: var(--blue); }
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.field label .req { color: var(--orange); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); background:#fff; box-shadow: 0 0 0 4px rgba(47,107,255,.12); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { text-align:center; color: var(--gray); font-size: .88rem; margin-top: 14px; }
.form-success { display:none; background: #e8f6ee; border:1px solid #bfe6cf; color:#1c6b41; padding:14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight:600; }
.form-success.show { display:block; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border:1px solid var(--line); position: relative; min-height: 340px; background: var(--surface); }
.map-wrap iframe { width:100%; height:100%; min-height:340px; border:0; display:block; filter: grayscale(.1); }
.map-fallback { position:absolute; inset:0; display:grid; place-items:center; text-align:center; padding:24px; background:var(--grad-dark); color:#fff; }

/* FAQ --------------------------------------------------------------------- */
.faq-item { background:#fff; border:1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; transition: box-shadow .3s; }
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary { cursor: pointer; padding: 20px 24px; font-weight: 700; display:flex; justify-content: space-between; align-items:center; gap:16px; list-style:none; font-size:1.05rem; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary .pm { width: 30px; height: 30px; border-radius: 50%; background: var(--sky-soft); color: var(--blue); display:grid; place-items:center; font-size:1.3rem; flex:none; transition: .3s; }
.faq-item[open] summary .pm { transform: rotate(45deg); background: var(--blue); color:#fff; }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--gray); line-height: 1.9; }

/* Footer ------------------------------------------------------------------ */
.footer { background: var(--midnight); color: rgba(255,255,255,.72); padding: 72px 0 0; position: relative; overflow: hidden; }
.footer::before { content:''; position:absolute; width:500px; height:500px; background: radial-gradient(circle, rgba(47,107,255,.18), transparent 70%); top:-200px; inset-inline-start:-100px; }
.footer__inner { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 54px; }
.footer h4 { color:#fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer .logo__name, .footer .logo__tag { color:#fff; }
.footer p { line-height: 1.9; margin: 18px 0; max-width: 320px; }
.footer a { color: rgba(255,255,255,.72); transition: color .25s; }
.footer ul li { margin-bottom: 12px; }
.footer ul a:hover { color: var(--gold); padding-inline-start: 6px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color:#fff; transition: .25s; }
.footer__social a:hover { background: var(--grad-brand); transform: translateY(-4px); }
.footer__social svg { width: 20px; height: 20px; }
.footer__news { display:flex; gap:8px; margin-top:16px; }
.footer__news input { flex:1; padding: 12px 14px; border-radius: 12px; border:1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color:#fff; }
.footer__news input::placeholder { color: rgba(255,255,255,.5); }
.footer__news button { width:48px; border-radius:12px; background: var(--grad-gold); color:#3a2500; display:grid; place-items:center; flex:none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display:flex; justify-content: space-between; align-items:center; gap:16px; flex-wrap: wrap; font-size:.9rem; }
.footer__bottom a:hover { color: var(--gold); }

/* Scroll reveal ----------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }

/* Back to top ------------------------------------------------------------- */
.to-top { position: fixed; inset-block-end: 26px; inset-inline-start: 26px; width: 50px; height: 50px; border-radius: 50%; background: var(--grad-brand); color:#fff; display:grid; place-items:center; box-shadow: var(--shadow-blue); opacity: 0; visibility: hidden; transform: translateY(20px); transition: .35s var(--ease); z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* Utilities --------------------------------------------------------------- */
.center { text-align: center; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 30px; } .mt-l { margin-top: 48px; }
.stack-actions { display:flex; gap:14px; flex-wrap:wrap; }
.divider-soft { height:1px; background: var(--line); border:0; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { max-width: 460px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 34px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-8px); }
}
@media (max-width: 768px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: grid; }
  .header__cta { gap: 0; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn, .cta-actions .btn { width: 100%; }
  .footer__bottom { justify-content: center; text-align:center; }
  .about__float { inset-inline-start: 50%; transform: translateX(50%); inset-block-end: -30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* Generated image integration */
.hero__photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.5;z-index:0;}
.hero::after{content:'';position:absolute;inset:0;background:linear-gradient(120deg,rgba(7,20,49,.85),rgba(7,20,49,.5) 55%,rgba(11,35,80,.35));z-index:1;pointer-events:none;}
.about__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.portfolio-card__img img.thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;transition:transform .5s var(--ease);}
.portfolio-card:hover .portfolio-card__img img.thumb{transform:scale(1.06);}
.portfolio-card__img::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(7,20,49,.80),rgba(7,20,49,.12));z-index:0;}
.portfolio-card__img .label{z-index:2;}
.portfolio-card__overlay{z-index:3;}
.team-card__photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}


/* ==========================================================================
   THEME TOGGLES, DARK MODE, LANGUAGE, BLOG & ADMIN
   ========================================================================== */

/* Header tool buttons (theme + language) --------------------------------- */
.header__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  font-weight: 800; font-size: .82rem; letter-spacing: .02em;
}
.icon-btn:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }
.header.scrolled .icon-btn { background: var(--surface); border-color: var(--line); color: var(--ink); }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.lang-toggle { min-width: 46px; }
.mobile-tools { display: flex; gap: 12px; margin-top: 26px; }
.mobile-tools .icon-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; flex: 1; height: 50px; border-radius: 14px; }

/* LTR (English) tweaks ---------------------------------------------------- */
[dir="ltr"] .sec-head.start { text-align: left; }
[dir="ltr"] .hero p.lead { margin-inline: 0; }
[dir="ltr"] body { line-height: 1.7; }

/* Wave divider fill follows theme --------------------------------------- */
.wave svg path { fill: var(--white); }
[data-theme="dark"] .wave svg path { fill: #0a1220; }

/* ------------------------------- DARK THEME ----------------------------- */
[data-theme="dark"] {
  --ink: #e8eef8;
  --slate: #c7d3e2;
  --gray: #92a1b6;
  --line: #243449;
  --surface: #0d1a2e;
  --sky-soft: #152a44;
  --white: #0f1d33;
}
[data-theme="dark"] body { background: #0a1220; }
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .portfolio-card,
[data-theme="dark"] .quote-card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .form-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .about__float,
[data-theme="dark"] .post-card,
[data-theme="dark"] .sidebar-card,
[data-theme="dark"] .float-badge { background: #111f36; border-color: #243449; color: var(--ink); }
[data-theme="dark"] .price-card.featured { background: var(--grad-dark); }
[data-theme="dark"] .bg-soft { background: #0c1728; }
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select { background: #0c1728; border-color: #243449; color: var(--ink); }
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field textarea:focus,
[data-theme="dark"] .field select:focus { background: #0c1728; }
[data-theme="dark"] .filter-bar button { background: #111f36; border-color: #243449; color: var(--slate); }
[data-theme="dark"] .portfolio-card__overlay .view { background: #111f36; color: var(--sky); }
[data-theme="dark"] .stat-card .ic { background: #152a44; }
[data-theme="dark"] .feature-row .ic { background: #152a44; }
[data-theme="dark"] .header.scrolled { background: rgba(10,18,32,.86); box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 10px 30px rgba(0,0,0,.45); }
[data-theme="dark"] .header.scrolled .logo__name { color: var(--ink); }
[data-theme="dark"] .header.scrolled .logo__tag { color: var(--gray); }
[data-theme="dark"] .header.scrolled .nav a { color: var(--slate); }
[data-theme="dark"] .header.scrolled .nav a:hover,
[data-theme="dark"] .header.scrolled .nav a.active { color: var(--sky); }
[data-theme="dark"] .header.scrolled .icon-btn { background: #111f36; border-color: #243449; color: var(--ink); }
[data-theme="dark"] .header.scrolled .burger { background: #111f36; border-color: #243449; }
[data-theme="dark"] .header.scrolled .burger span,
[data-theme="dark"] .header.scrolled .burger span::before,
[data-theme="dark"] .header.scrolled .burger span::after { background: var(--ink); }
[data-theme="dark"] .stats { }

/* ------------------------------- BLOG ----------------------------------- */
.blog-layout { display: grid; grid-template-columns: 1fr 330px; gap: 44px; align-items: start; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post-card__img { height: 200px; overflow: hidden; position: relative; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.07); }
.post-card__cat { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; z-index: 2; background: var(--grad-brand); color: #fff; font-size: .74rem; font-weight: 700; padding: 6px 14px; border-radius: 100px; box-shadow: var(--shadow-blue); }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--gray); font-size: .84rem; margin-bottom: 12px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 15px; height: 15px; }
.post-card h3 { font-size: 1.2rem; line-height: 1.5; margin-bottom: 10px; }
.post-card p { color: var(--gray); font-size: .96rem; flex: 1; }
.post-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--blue); font-weight: 700; font-size: .95rem; }
.post-card__link svg { width: 16px; height: 16px; transition: transform .3s; }
.post-card:hover .post-card__link svg { transform: translateX(-5px); }
[dir="ltr"] .post-card:hover .post-card__link svg { transform: translateX(5px) scaleX(-1); }

.featured-post { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 44px; }
[data-theme="dark"] .featured-post { background: #111f36; border-color: #243449; }
.featured-post__img { position: relative; min-height: 320px; }
.featured-post__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-post__body { padding: clamp(26px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; }
.featured-post__body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; margin: 14px 0 14px; }
.featured-post__body p { color: var(--gray); margin-bottom: 24px; }

.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.sidebar-card h4 { font-size: 1.1rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.sidebar-card h4::before { content: ''; width: 5px; height: 20px; border-radius: 3px; background: var(--grad-brand); }
.cat-list li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); color: var(--slate); font-weight: 600; cursor: pointer; transition: .2s; }
.cat-list li:last-child { border-bottom: none; }
.cat-list li:hover { color: var(--blue); padding-inline-start: 6px; }
.cat-list li span { background: var(--sky-soft); color: var(--blue); border-radius: 100px; padding: 1px 11px; font-size: .8rem; }
.mini-post { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.mini-post:last-child { border-bottom: none; }
.mini-post img { width: 68px; height: 60px; border-radius: 12px; object-fit: cover; flex: none; }
.mini-post h5 { font-size: .95rem; line-height: 1.5; }
.mini-post small { color: var(--gray); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-cloud a { background: var(--surface); border: 1px solid var(--line); color: var(--slate); font-size: .84rem; font-weight: 600; padding: 7px 14px; border-radius: 100px; transition: .2s; }
.tag-cloud a:hover { background: var(--grad-brand); color: #fff; border-color: transparent; }
[data-theme="dark"] .tag-cloud a { background: #0c1728; }
.sidebar-cta { background: var(--grad-dark); color: #fff; border-radius: var(--radius); padding: 30px 26px; text-align: center; }
.sidebar-cta h4 { color: #fff; justify-content: center; }
.sidebar-cta h4::before { display: none; }
.sidebar-cta p { color: rgba(255,255,255,.8); font-size: .92rem; margin: 10px 0 20px; }

/* ------------------------------- ADMIN ---------------------------------- */
.admin-body { background: var(--surface); }
.admin { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.admin-side { background: var(--grad-dark); color: #fff; padding: 26px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-side .logo__name, .admin-side .logo__tag { color: #fff; }
.admin-badge { margin: 22px 0 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.admin-badge .av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-gold); color: #3a2500; display: grid; place-items: center; font-weight: 800; flex: none; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.admin-nav button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: rgba(255,255,255,.82); font-weight: 600; font-size: .96rem; text-align: start; transition: .2s; width: 100%; }
.admin-nav button svg { width: 19px; height: 19px; flex: none; }
.admin-nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav button.active { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-blue); }
.admin-side__foot { margin-top: auto; padding-top: 18px; display: flex; gap: 8px; }
.admin-main { padding: 26px clamp(20px, 3vw, 40px) 60px; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.55rem; }
.admin-top .muted { font-size: .92rem; }
.admin-actions { display: flex; align-items: center; gap: 10px; }
.admin-panel { display: none; animation: fadeUp .4s var(--ease); }
.admin-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
[data-theme="dark"] .tile, [data-theme="dark"] .admin-card { background: #111f36; border-color: #243449; }
.tile .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-brand); display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.tile .ic svg { width: 22px; height: 22px; }
.tile .big { font-size: 1.9rem; font-weight: 900; line-height: 1; }
.tile .lbl { color: var(--gray); font-weight: 600; margin-top: 4px; font-size: .92rem; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.admin-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.admin-card > .muted { margin-bottom: 20px; font-size: .92rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: start; padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.admin-table th { color: var(--gray); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-table tr:last-child td { border-bottom: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: .8rem; font-weight: 700; }
.badge.on { background: #e6f9ef; color: #12854a; } .badge.off { background: #fdeaea; color: #c0392b; }
.badge.draft { background: #fff4e0; color: #9a6a00; }
[data-theme="dark"] .badge.on { background: rgba(18,133,74,.18); } [data-theme="dark"] .badge.off { background: rgba(192,57,43,.18); } [data-theme="dark"] .badge.draft { background: rgba(154,106,0,.2); color: #f5b942; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--line); border-radius: 100px; transition: .3s; }
.switch .track::before { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; inset-inline-start: 3px; transition: .3s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track::before { transform: translateX(20px); }
[dir="ltr"] .switch input:checked + .track::before { transform: translateX(20px); }
.admin-field { margin-bottom: 18px; }
.admin-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.admin-field input, .admin-field textarea, .admin-field select {
  width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); transition: .2s;
}
[data-theme="dark"] .admin-field input, [data-theme="dark"] .admin-field textarea, [data-theme="dark"] .admin-field select { background: #0c1728; border-color: #243449; }
.admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.admin-field textarea { resize: vertical; min-height: 90px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.btn-sm { padding: 9px 18px; min-height: 42px; font-size: .9rem; }
.icon-act { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--slate); transition: .2s; }
[data-theme="dark"] .icon-act { background: #0c1728; border-color: #243449; }
.icon-act:hover { background: var(--blue); color: #fff; border-color: transparent; }
.icon-act.danger:hover { background: #e74c3c; }
.icon-act svg { width: 16px; height: 16px; }
.toast { position: fixed; inset-block-end: 26px; inset-inline-end: 26px; background: #12854a; color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 700; transform: translateY(120%); transition: transform .4s var(--ease); z-index: 200; }
.toast.show { transform: translateY(0); }
.color-dots { display: flex; gap: 10px; }
.color-dots label { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: .2s; }
.color-dots input { display: none; }
.color-dots input:checked + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.color-dots span { display: block; width: 100%; height: 100%; border-radius: 50%; }

/* Responsive additions --------------------------------------------------- */
@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post__img { min-height: 240px; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: relative; height: auto; flex-direction: column; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav button { width: auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
/* appended by content-editor rebuild */
.content-toolbar{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end;margin-bottom:8px}
.content-toolbar .btn{white-space:nowrap}
.content-count{margin:6px 0 14px;font-size:.85rem}
.content-row{padding:14px 0;border-bottom:1px solid var(--line)}
.content-row:last-child{border-bottom:0}
.content-row__grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.content-row textarea{min-height:46px;resize:vertical;line-height:1.7}
@media(max-width:720px){.content-row__grid{grid-template-columns:1fr}}
