/*
  Smart ITC — site, account and admin styles.
  The look is carried over from the old site (old/Smartitc.ir/css/style.css): light grey page, teal #079992 and
  navy #0c2461, 42px "glass" cards with a white border and soft shadow, the line.png heading underline, blurred
  blue blobs, and the portfolio cards with the curved white label. Animations are added on top; all of them
  switch off for prefers-reduced-motion.
*/

:root {
    --si-bg: #f5f5f5;
    --si-surface: #ffffff;
    --si-teal: #079992;
    --si-teal-2: #01d3b8;
    --si-navy: #0c2461;
    --si-blue: #166cf4;
    --si-ink: #202020;
    --si-ink-2: #4a4a4a;
    --si-muted: #848484;
    --si-line: #e8e8e8;
    --si-radius: 42px;
    --si-radius-sm: 22px;
    --si-shadow: 0 40px 50px rgba(109, 109, 109, .1);
    --si-shadow-hover: 0 40px 60px rgba(7, 153, 146, .18);
    --si-grad: linear-gradient(120deg, #079992 0%, #01d3b8 45%, #166cf4 100%);
    --si-ease: cubic-bezier(.22, 1, .36, 1);
    --bs-primary: #079992;
    --bs-primary-rgb: 7, 153, 146;
    --bs-link-color: #079992;
    --bs-link-hover-color: #0c2461;
    --bs-link-color-rgb: 7, 153, 146;
    --bs-body-font-family: var(--font-body);
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { background: var(--si-bg); color: var(--si-ink); font-family: var(--font-body); line-height: 1.9; }
h1, h2, h3, .si-h1, .si-h2 { font-family: var(--font-head); color: var(--si-ink); }
a { color: var(--si-teal); }
a:hover { color: var(--si-navy); }
img { max-width: 100%; }
.ltr { direction: ltr; text-align: left; }
::selection { background: rgba(7, 153, 146, .25); }

.btn-primary { --bs-btn-bg: var(--si-teal); --bs-btn-border-color: var(--si-teal); --bs-btn-hover-bg: #068580; --bs-btn-hover-border-color: #068580;
    --bs-btn-active-bg: #057772; --bs-btn-active-border-color: #057772; --bs-btn-disabled-bg: var(--si-teal); --bs-btn-disabled-border-color: var(--si-teal); }
.btn-outline-primary { --bs-btn-color: var(--si-teal); --bs-btn-border-color: var(--si-teal); --bs-btn-hover-bg: var(--si-teal); --bs-btn-hover-border-color: var(--si-teal);
    --bs-btn-active-bg: var(--si-teal); --bs-btn-active-border-color: var(--si-teal); }
.form-control, .form-select { border-radius: 14px; border-color: #e3e3e3; background-color: #fafafa; min-height: 46px; }
.form-control:focus, .form-select:focus { border-color: var(--si-teal-2); box-shadow: 0 0 0 .2rem rgba(1, 211, 184, .18); background-color: #fff; }
.form-check-input:checked { background-color: var(--si-teal); border-color: var(--si-teal); }
.validation-message { color: #b3261e; font-size: 13px; }

/* ---------- layout ---------- */
.si-container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.si-section { padding-block: clamp(48px, 8vw, 110px); position: relative; }
.si-site { position: relative; min-height: 100vh; display: flex; flex-direction: column; isolation: isolate; }
.si-site > main { flex: 1; }

/* Blurred colour blobs of the old design, now drifting slowly. */
.si-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; animation: blob-drift 18s ease-in-out infinite alternate; }
.si-blob.blue { background: rgba(22, 108, 244, .35); }
.si-blob.teal { background: rgba(1, 211, 184, .35); }
.si-blob.navy { background: rgba(12, 36, 97, .22); }
@keyframes blob-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.1); } 100% { transform: translate(-30px, 20px) scale(.95); } }

/* Section heading with the old line.png underline (animates in with the section). */
.si-title { font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 3.2vw, 36px); position: relative; display: inline-block; margin-bottom: 18px; color: var(--si-ink); }
.si-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -10px; height: 14px; width: 100px; background: url(../img/site/pattern/line.png) no-repeat; background-size: contain; transform-origin: right; transition: transform 1s var(--si-ease) .2s; }
.text-center .si-title::after, .si-title.center::after { inset-inline-start: calc(50% - 50px); }
.reveal:not(.in) .si-title::after { transform: scaleX(0); }
.si-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--si-teal); font-weight: 700; font-size: 14px; letter-spacing: .02em; margin-bottom: 6px; }
.si-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--si-grad); }
.si-lead { color: var(--si-muted); font-size: clamp(15px, 1.6vw, 17px); line-height: 2.1; text-align: justify; }
.si-h2 { font-weight: 900; font-size: clamp(22px, 3vw, 32px); }
.si-muted { color: var(--si-muted); }

/* ---------- buttons ---------- */
.si-btn { --c: var(--si-teal); position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px;
    padding: 12px 26px; font-weight: 700; font-size: 14px; color: #fff; background: var(--c); text-decoration: none; cursor: pointer; white-space: nowrap;
    filter: drop-shadow(0 15px 15px rgba(22, 108, 244, .22)); transition: transform .35s var(--si-ease), filter .35s, background .3s; }
.si-btn:hover { color: #fff; transform: translateY(-3px); filter: drop-shadow(0 20px 18px rgba(7, 153, 146, .32)); }
.si-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .45) 45%, transparent 70%); transform: translateX(120%); transition: transform .9s var(--si-ease); }
.si-btn:hover::after { transform: translateX(-120%); }
.si-btn.navy { --c: var(--si-navy); filter: drop-shadow(0 15px 15px rgba(1, 211, 184, .22)); }
.si-btn.light { --c: rgba(7, 153, 146, .14); color: var(--si-teal); filter: none; }
.si-btn.light:hover { --c: var(--si-teal); color: #fff; }
.si-btn.ghost { --c: transparent; color: var(--si-ink); box-shadow: inset 0 0 0 2px rgba(32, 32, 32, .12); filter: none; }
.si-btn.ghost:hover { color: var(--si-teal); box-shadow: inset 0 0 0 2px var(--si-teal); }
.si-btn.sm { padding: 8px 16px; font-size: 13px; border-radius: 12px; }
.si-btn.lg { padding: 15px 34px; font-size: 15px; }
.si-btn:disabled { opacity: .6; transform: none; cursor: not-allowed; }

/* ---------- glass cards (old "article" / comment cards) ---------- */
.si-glass, .si-card { background: rgba(255, 255, 255, .55); border: 2px solid #fff; border-radius: var(--si-radius); box-shadow: var(--si-shadow);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.si-card { padding: clamp(18px, 3vw, 32px); border-radius: 28px; background: rgba(255, 255, 255, .8); }
.si-hover { transition: transform .5s var(--si-ease), box-shadow .5s var(--si-ease); }
.si-hover:hover { transform: translateY(-8px); box-shadow: var(--si-shadow-hover); }

/* ---------- header ---------- */
.si-header { position: sticky; top: 0; z-index: 1030; transition: background .35s, box-shadow .35s, border-radius .35s, padding .35s; }
.si-header .si-container { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 14px; transition: padding .35s; }
.si-header.scrolled { background: rgba(255, 255, 255, .72); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: 0 4px 30px rgba(0, 0, 0, .08);
    border-radius: 0 0 22px 22px; }
.si-header.scrolled .si-container { padding-block: 8px; }
.si-brand img { height: 46px; width: auto; display: block; transition: height .35s; }
.si-header.scrolled .si-brand img { height: 38px; }
.si-nav { display: flex; align-items: center; gap: 4px; }
.si-nav a, .si-nav .si-nav-btn { position: relative; color: var(--si-ink-2); text-decoration: none; font-size: 14.5px; padding: 8px 12px; border-radius: 12px; background: none; border: 0; transition: color .25s; }
.si-nav a::after { content: ""; position: absolute; bottom: 2px; inset-inline-start: 50%; width: 18px; height: 3px; border-radius: 3px; background: var(--si-teal); transform: translateX(50%) scaleX(0); transition: transform .35s var(--si-ease); }
.si-nav a:hover { color: var(--si-teal-2); }
.si-nav a:hover::after { transform: translateX(50%) scaleX(1); background: var(--si-navy); }
.si-nav a.active { color: var(--si-teal); font-weight: 700; }
.si-nav a.active::after { transform: translateX(50%) scaleX(1); }
.si-actions { display: flex; align-items: center; gap: 8px; }
.si-menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--si-shadow); font-size: 22px; color: var(--si-ink); }
.si-user-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--si-ink-2); text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 12px; }
.si-user-btn:hover { background: rgba(7, 153, 146, .08); color: var(--si-teal); }

/* Mobile drawer (slides in from the right, like the old offcanvas). */
.si-drawer-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(12, 36, 97, .25); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.si-drawer { position: fixed; inset-block: 0; right: 0; z-index: 1050; width: min(320px, 86vw); background: #fff; padding: 20px; box-shadow: -20px 0 60px rgba(0, 0, 0, .12);
    transform: translateX(105%); transition: transform .45s var(--si-ease); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.si-drawer.open { transform: none; }
.si-drawer.open + .si-drawer-backdrop, .si-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.si-drawer a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; color: var(--si-ink); text-decoration: none; font-weight: 500; }
.si-drawer a i { color: var(--si-teal); font-size: 18px; }
.si-drawer a.active, .si-drawer a:hover { background: rgba(7, 153, 146, .1); color: var(--si-teal); }
.si-drawer .si-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.si-drawer .si-drawer-head img { height: 40px; }
.si-drawer .si-drawer-close { border: 0; background: var(--si-bg); width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
.si-drawer .si-drawer-cta { margin-top: auto; display: grid; gap: 8px; padding-top: 16px; }

@media (max-width: 1100px) {
    .si-nav { display: none; }
    .si-menu-btn { display: inline-grid; place-items: center; }
    .si-actions .si-hide-sm { display: none; }
}
@media (max-width: 480px) {
    .si-brand img { height: 36px; }
    .si-actions .si-btn { padding: 9px 12px; font-size: 12px; }
}

/* ---------- hero (old banner, animated) ---------- */
.si-hero { position: relative; padding-block: clamp(24px, 5vw, 64px) clamp(40px, 6vw, 90px); }
.si-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.si-hero h1 { font-weight: 900; font-size: clamp(34px, 5.6vw, 76px); line-height: 1.25; margin: 0 0 14px; }
.si-hero h1 .brand { display: block; font-size: .55em; letter-spacing: .04em; color: var(--si-navy); font-family: "IRANSansX", sans-serif; direction: ltr; text-align: right; }
.si-grad-text { background: var(--si-grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: grad-move 6s linear infinite; }
@keyframes grad-move { to { background-position: 200% center; } }
.si-rotator { display: inline-grid; vertical-align: bottom; }
.si-rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%); transition: opacity .6s, transform .6s var(--si-ease); }
.si-rotator > span.on { opacity: 1; transform: none; }
.si-hero p.si-lead { max-width: 560px; }
.si-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.si-hero-art { position: relative; }
.si-hero-art .frame { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px rgba(12, 36, 97, .25); transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
    transition: transform .8s var(--si-ease); border: 6px solid #fff; animation: float-y 7s ease-in-out infinite; }
.si-hero-art:hover .frame { transform: perspective(1200px) rotateY(0) rotateX(0); }
.si-hero-art .frame img { display: block; width: 100%; }
.si-hero-art::before { content: ""; position: absolute; inset: 14% -6% -8% 18%; border-radius: 34px; background: linear-gradient(135deg, var(--si-teal), var(--si-teal-2)); opacity: .9; z-index: -1; animation: float-y 7s ease-in-out infinite reverse; }
.si-hero-art::after { content: ""; position: absolute; top: -26px; right: -26px; width: 110px; height: 110px; background: radial-gradient(circle, #c8c8c8 2px, transparent 2.5px) 0 0 / 16px 16px; opacity: .8; z-index: -1; }
.si-chip-float { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: var(--si-shadow); font-size: 13px; font-weight: 700; animation: float-y 5s ease-in-out infinite; white-space: nowrap; }
.si-chip-float i { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--si-teal); font-size: 17px; }
.si-chip-float.c1 { bottom: -18px; right: -10px; animation-delay: -1s; }
.si-chip-float.c2 { top: 12%; left: -24px; animation-delay: -2.5s; }
.si-chip-float.c2 i { background: var(--si-navy); }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.si-hero-art .frame { animation-name: float-frame; }
@keyframes float-frame { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.si-stats { display: flex; flex-wrap: wrap; gap: clamp(16px, 4vw, 44px); margin-top: 34px; }
.si-stats div strong { display: block; font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); color: var(--si-navy); font-weight: 900; }
.si-stats div span { color: var(--si-muted); font-size: 13px; }
@media (max-width: 900px) {
    .si-hero-grid { grid-template-columns: 1fr; }
    .si-hero-art { max-width: 460px; margin-inline: auto; width: 100%; margin-top: 18px; }
    .si-hero-art .frame { transform: none; }
    .si-chip-float.c2 { left: -6px; }
    .si-hero { text-align: center; }
    .si-hero p.si-lead { margin-inline: auto; text-align: center; }
    .si-hero-ctas, .si-stats { justify-content: center; }
    .si-hero h1 .brand { text-align: center; }
}

/* Logo marquee of products */
.si-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding-block: 10px; }
.si-marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.si-marquee:hover .si-marquee-track { animation-play-state: paused; }
.si-marquee a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 2px solid #fff; box-shadow: 0 10px 30px rgba(109, 109, 109, .08);
    color: var(--si-ink-2); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; transition: color .25s, transform .3s; }
.si-marquee a i { color: var(--c, var(--si-teal)); font-size: 18px; }
.si-marquee a:hover { color: var(--si-teal); transform: translateY(-3px); }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- services ---------- */
.si-services { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.si-service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.si-service { position: relative; text-align: center; padding: 30px 22px; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.si-service img { width: 96px; height: 96px; object-fit: contain; transition: transform .6s var(--si-ease); }
.si-service:hover img { transform: scale(1.1) rotate(-4deg); }
.si-service h3 { font-family: "IRANSansX", sans-serif; font-size: 16px; font-weight: 700; margin: 0; }
.si-service p { color: var(--si-muted); font-size: 13.5px; text-align: center; margin: 0; flex: 1; }
@media (max-width: 991px) { .si-services { grid-template-columns: 1fr; text-align: center; } .si-services .si-lead { text-align: center; } }
@media (max-width: 680px) { .si-service-cards { grid-template-columns: 1fr; } }

/* ---------- products ---------- */
.si-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--si-shadow); position: relative; }
.si-tabs button { border: 0; background: none; border-radius: 999px; padding: 8px 20px; color: var(--si-muted); font-size: 14px; font-weight: 500; transition: color .25s, background .35s var(--si-ease); }
.si-tabs button:hover { color: var(--si-teal); }
.si-tabs button.active { background: var(--si-teal); color: #fff; filter: drop-shadow(0 12px 12px rgba(22, 108, 244, .25)); }
.si-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.si-product { --c: var(--si-teal); position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 30px; overflow: hidden; background: #fff; border: 2px solid #fff;
    box-shadow: var(--si-shadow); text-decoration: none; color: var(--si-ink); transition: transform .5s var(--si-ease), box-shadow .5s var(--si-ease); }
.si-product:hover { transform: translateY(-8px); box-shadow: 0 40px 60px color-mix(in srgb, var(--c) 22%, transparent); color: var(--si-ink); }
.si-product-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--c) 12%, #fff); }
.si-product-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--si-ease); }
.si-product:hover .si-product-media img { transform: scale(1.08); }
.si-product-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .25)); }
.si-product-kind { position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 2px 12px; font-size: 12px; font-weight: 700; color: var(--c); }
.si-product-icon { position: absolute; z-index: 1; bottom: -22px; inset-inline-end: 18px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 24px;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--c) 40%, transparent); transition: transform .5s var(--si-ease); }
.si-product:hover .si-product-icon { transform: rotate(-10deg) scale(1.08); }
.si-product-body { padding: 26px 22px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.si-product-body h3 { font-size: 19px; font-weight: 900; margin: 0; }
.si-product-body .tag { color: var(--c); font-size: 13px; font-weight: 700; }
.si-product-body p { color: var(--si-muted); font-size: 13.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-align: justify; }
.si-product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--c); }
.si-product-foot i { transition: transform .35s var(--si-ease); }
.si-product:hover .si-product-foot i.bi-arrow-left { transform: translateX(-6px); }

/* ---------- portfolio (old samples cards) ---------- */
.si-samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .si-samples { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .si-samples { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .si-samples { grid-template-columns: 1fr; } }
.si-sample { position: relative; display: block; overflow: hidden; border-radius: 30px; aspect-ratio: 3 / 2; background: #ddd; text-decoration: none; isolation: isolate; box-shadow: var(--si-shadow); }
.si-sample > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: brightness(70%); transition: transform 1.4s var(--si-ease), filter .6s; z-index: -1; }
.si-sample:hover > img { transform: scale(1.18) translateY(-4%); filter: brightness(95%); }
.si-sample .ic { position: absolute; top: 14px; inset-inline-start: 14px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c, var(--si-teal));
    font-size: 19px; transform: translateY(-8px); opacity: 0; transition: all .45s var(--si-ease); }
.si-sample:hover .ic { transform: none; opacity: 1; }
.si-sample p { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); margin: 0; min-width: 52%; max-width: 76%; background: var(--si-bg); color: var(--si-ink); text-align: center;
    padding: 12px 14px 6px; font-size: 13px; font-weight: 700; border-radius: 16px 16px 0 0; white-space: nowrap; overflow: visible; text-overflow: ellipsis; transition: color .3s; direction: ltr; }
.si-sample p::before, .si-sample p::after { content: ""; position: absolute; bottom: 0; width: 22px; height: 22px; background-size: 100% 100%; }
.si-sample p::before { left: -22px; background-image: url(../img/site/pattern/revert-rounded-l.png); }
.si-sample p::after { right: -22px; background-image: url(../img/site/pattern/revert-rounded-r.png); }
.si-sample:hover p { color: var(--si-teal); }

/* ---------- about ---------- */
.si-about { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.si-about-art { position: relative; }
.si-about-art img { border-radius: 30px; width: 100%; }
.si-about-art .badge-ic { position: absolute; width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--si-teal); box-shadow: 0 18px 30px rgba(7, 153, 146, .35); animation: float-y 6s ease-in-out infinite; }
.si-about-art .badge-ic.b1 { top: -18px; inset-inline-start: -18px; }
.si-about-art .badge-ic.b2 { bottom: -18px; inset-inline-end: -18px; background: var(--si-navy); animation-delay: -3s; }
.si-ring { position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 18px solid var(--si-teal-2); opacity: .9; animation: spin 14s linear infinite; }
.si-ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.si-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.si-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--si-ink-2); }
.si-checks li::before { content: "\F26B"; font-family: "bootstrap-icons"; color: var(--si-teal); font-size: 18px; line-height: 1.6; }
@media (max-width: 900px) { .si-about { grid-template-columns: 1fr; } .si-about-art { max-width: 460px; margin-inline: auto; } }

/* ---------- testimonials ---------- */
.si-quote { position: relative; padding: clamp(28px, 4vw, 52px); }
.si-quote::before { content: ""; position: absolute; top: -14px; inset-inline-end: 52px; width: 35px; height: 27px; background: url(../img/site/pattern/quote.png) no-repeat; }
.si-quote p { font-size: 15px; line-height: 2.2; color: var(--si-ink-2); text-align: justify; }
.si-quote .who { display: flex; align-items: center; gap: 12px; }
.si-quote .who img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.si-quote .stars { color: #f5b301; }
.si-slider-nav button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--si-teal); color: #fff; transition: transform .3s; }
.si-slider-nav button:hover { transform: scale(1.1); }
.si-fade-swap { animation: swap-in .6s var(--si-ease); }
@keyframes swap-in { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.si-faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.si-faq details { background: #fff; border-radius: 20px; border: 2px solid #fff; box-shadow: 0 10px 30px rgba(109, 109, 109, .06); overflow: hidden; transition: box-shadow .3s; }
.si-faq details[open] { box-shadow: var(--si-shadow); }
.si-faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.si-faq summary::-webkit-details-marker { display: none; }
.si-faq summary::after { content: "\F282"; font-family: "bootstrap-icons"; transition: transform .35s var(--si-ease); color: var(--si-muted); }
.si-faq details[open] summary { color: var(--si-teal); }
.si-faq details[open] summary::after { transform: rotate(180deg); color: var(--si-teal); }
.si-faq details p { padding: 0 24px 20px; margin: 0; color: var(--si-muted); text-align: justify; animation: swap-in .5s var(--si-ease); }

/* ---------- CTA band ---------- */
.si-cta { position: relative; overflow: hidden; border-radius: var(--si-radius); padding: clamp(28px, 5vw, 60px); color: #fff; background: linear-gradient(120deg, var(--si-navy), #123a8a 45%, var(--si-teal)); }
.si-cta h2 { color: #fff; font-weight: 900; }
.si-cta p { color: rgba(255, 255, 255, .85); }
.si-cta::before, .si-cta::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); }
.si-cta::before { width: 340px; height: 340px; top: -160px; left: -80px; animation: spin 30s linear infinite; }
.si-cta::after { width: 220px; height: 220px; bottom: -110px; left: 30%; }
.si-cta .si-btn { --c: #fff; color: var(--si-navy); }
.si-cta .si-btn.ghost { --c: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }

/* ---------- footer (old design) ---------- */
.si-footer { margin-top: clamp(40px, 6vw, 80px); padding-bottom: 24px; }
.si-footer-box { position: relative; background: #fff; border-radius: 34px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--si-shadow); }
.si-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.si-footer h4 { font-family: "IRANSansX", sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--si-ink); }
.si-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.si-footer ul a { color: var(--si-muted); text-decoration: none; font-size: 14px; transition: color .25s, padding .25s; }
.si-footer ul a:hover { color: var(--si-teal); padding-inline-start: 6px; }
.si-footer .contact li { display: flex; gap: 10px; color: var(--si-muted); font-size: 14px; }
.si-footer .contact i { color: var(--si-teal); }
.si-social { display: flex; gap: 10px; margin-top: 14px; }
.si-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--si-bg); transition: transform .3s, background .3s; }
.si-social a img { width: 20px; height: 20px; }
.si-social a:hover { transform: translateY(-4px); background: rgba(7, 153, 146, .14); }
.si-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--si-line); color: var(--si-muted); font-size: 13px; }
.si-up { position: absolute; bottom: -24px; left: calc(50% - 24px); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--si-teal); color: #fff; font-size: 20px;
    box-shadow: 0 12px 24px rgba(7, 153, 146, .35); transition: transform .3s; }
.si-up:hover { transform: translateY(-4px); }
@media (max-width: 991px) { .si-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .si-footer-grid { grid-template-columns: 1fr; } }

/* ---------- page header ---------- */
.si-page-head { position: relative; padding-block: clamp(26px, 5vw, 60px) clamp(16px, 3vw, 30px); }
.si-page-head h1 { font-weight: 900; font-size: clamp(28px, 4.4vw, 48px); margin-bottom: 10px; }
.si-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--si-muted); margin-bottom: 12px; }
.si-crumbs a { color: var(--si-muted); text-decoration: none; }
.si-crumbs a:hover { color: var(--si-teal); }
.si-crumbs span + span::before, .si-crumbs a + span::before, .si-crumbs a + a::before { content: "/"; margin-inline-end: 6px; color: #c4c4c4; }

/* ---------- product page ---------- */
.si-pd-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.si-pd-hero .si-pd-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--c); box-shadow: 0 16px 30px color-mix(in srgb, var(--c) 40%, transparent); margin-bottom: 16px; }
.si-pd-shot { position: relative; border-radius: 26px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 40px 70px rgba(12, 36, 97, .2); background: #fff; }
.si-pd-shot .bar { height: 30px; display: flex; align-items: center; gap: 6px; padding-inline: 14px; background: #f1f1f1; }
.si-pd-shot .bar span { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.si-pd-shot .bar span:nth-child(1) { background: #ff6058; } .si-pd-shot .bar span:nth-child(2) { background: #ffbd2e; } .si-pd-shot .bar span:nth-child(3) { background: #28ca42; }
.si-pd-shot img { display: block; width: 100%; max-height: 560px; object-fit: cover; object-position: top; }
.si-pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.si-pd-side { position: sticky; top: 96px; }
.si-pd-desc p { color: var(--si-ink-2); line-height: 2.2; text-align: justify; font-size: 15.5px; }
.si-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; }
.si-feature-list li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 12px 14px; font-size: 14px; box-shadow: 0 8px 24px rgba(109, 109, 109, .06);
    transition: transform .35s var(--si-ease); }
.si-feature-list li:hover { transform: translateY(-3px); }
.si-feature-list li i { color: var(--c); font-size: 18px; }
.si-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.si-gallery button { padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--si-shadow); aspect-ratio: 3 / 4; }
.si-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--si-ease); }
.si-gallery button:hover img { transform: scale(1.06); }
.si-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 20, 40, .85); display: grid; place-items: center; padding: 20px; animation: swap-in .3s; }
.si-lightbox img { max-height: 92vh; max-width: 100%; border-radius: 14px; }
.si-lightbox button { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 20px; }
@media (max-width: 991px) { .si-pd-hero, .si-pd-grid { grid-template-columns: 1fr; } .si-pd-side { position: static; } }
@media (max-width: 560px) { .si-feature-list { grid-template-columns: 1fr; } }

/* ---------- forms (old order form) ---------- */
.si-form .form-control, .si-form .form-select { background: var(--si-bg); border-color: transparent; }
.si-form .form-control:focus { background: #fff; }
.si-form label { font-size: 13.5px; font-weight: 500; color: var(--si-ink-2); margin-bottom: 4px; }
.si-form .req::after { content: " *"; color: #e5484d; }
.si-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.si-success { text-align: center; padding: 20px 6px; animation: swap-in .6s var(--si-ease); }
.si-success .ok { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; color: #fff; background: #159b83;
    box-shadow: 0 0 0 10px rgba(21, 155, 131, .15); animation: pop .6s var(--si-ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* contact cards */
.si-contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.si-contact-cards .si-card { display: flex; gap: 14px; align-items: center; }
.si-contact-cards i { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--si-teal); }
@media (max-width: 800px) { .si-contact-cards { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transition: opacity .9s var(--si-ease), transform .9s var(--si-ease), filter .9s var(--si-ease); transition-delay: var(--reveal-delay, 0s); filter: blur(4px); }
.reveal[data-reveal="up"] { transform: translateY(40px); }
.reveal[data-reveal="down"] { transform: translateY(-40px); }
.reveal[data-reveal="left"] { transform: translateX(-50px); }
.reveal[data-reveal="right"] { transform: translateX(50px); }
.reveal[data-reveal="zoom"] { transform: scale(.9); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- boot screen ---------- */
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--si-muted); }
.boot-logo { width: min(260px, 60vw); animation: boot-pulse 1.6s ease-in-out infinite alternate; }
.boot-bar { width: 160px; height: 4px; border-radius: 4px; background: #e6e6e6; overflow: hidden; position: relative; }
.boot-bar::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 4px; background: var(--si-grad); animation: boot-load 1.2s ease-in-out infinite; }
.boot-ring { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #e6e6e6; border-top-color: var(--si-teal); animation: spin 1s linear infinite; }
@keyframes boot-pulse { from { opacity: .55; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes boot-load { 0% { transform: translateX(260%); } 100% { transform: translateX(-160%); } }

/* ---------- auth ---------- */
.si-auth-card { position: relative; max-width: 460px; margin: clamp(20px, 5vw, 60px) auto; padding: clamp(22px, 4vw, 40px); background: rgba(255, 255, 255, .85); border: 2px solid #fff; border-radius: 32px; box-shadow: var(--si-shadow); }

/* ---------- account area ---------- */
.account-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-block: 28px 64px; align-items: start; }
.account-menu { position: sticky; top: 96px; background: #fff; border-radius: 26px; padding: 16px; box-shadow: var(--si-shadow); border: 2px solid #fff; }
.account-user { align-items: center; gap: 12px; padding: 6px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--si-line); }
.account-user small { color: var(--si-muted); }
.account-avatar { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: #fff; background: var(--si-grad); }
.account-nav { display: grid; gap: 4px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; color: var(--si-ink-2); text-decoration: none; font-size: 14.5px; white-space: nowrap; transition: background .2s, color .2s; }
.account-nav a i { font-size: 18px; color: var(--si-teal); }
.account-nav a:hover { background: var(--si-bg); color: var(--si-ink); }
.account-nav a.active { background: rgba(7, 153, 146, .12); color: var(--si-teal); font-weight: 700; }
.account-nav a.account-cta { background: var(--si-teal); color: #fff; font-weight: 700; margin-bottom: 6px; }
.account-nav a.account-cta i { color: #fff; }
.account-nav-sep { font-size: 12px; color: var(--si-muted); padding: 12px 12px 2px; }
.account-content { min-width: 0; }
.account-page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
@media (max-width: 991px) {
    .account-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 14px; }
    .account-menu { position: sticky; top: 70px; z-index: 10; padding: 8px; border-radius: 18px; }
    .account-user { display: none !important; }
    .account-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav a { padding: 8px 12px; font-size: 13.5px; flex: none; }
    .account-nav a.account-cta { margin-bottom: 0; }
    .account-nav-sep { display: none; }
}

/* list rows used in account pages */
.si-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; background: #fff; border-radius: 20px; box-shadow: 0 8px 24px rgba(109, 109, 109, .06); }
.si-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.si-chip { border: 0; border-radius: 999px; padding: 6px 14px; background: #fff; color: var(--si-ink-2); font-size: 13px; box-shadow: 0 6px 16px rgba(109, 109, 109, .08); }
.si-chip.active { background: var(--si-teal); color: #fff; }

/* comments */
.comment { display: flex; gap: 10px; }
.comment-avatar { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(7, 153, 146, .12); color: var(--si-teal); font-weight: 700; }

/* blog */
.post-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--si-ink); border: 2px solid #fff;
    box-shadow: var(--si-shadow); transition: transform .5s var(--si-ease), box-shadow .5s; }
.post-card:hover { transform: translateY(-6px); color: var(--si-ink); box-shadow: var(--si-shadow-hover); }
.post-card-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(140deg, rgba(7, 153, 146, .15), rgba(22, 108, 244, .15)); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--si-ease); }
.post-card:hover .post-card-media img { transform: scale(1.06); }
.post-card-media .post-kind { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 2px 12px; font-size: 12px; }
.post-card-media .post-card-mark { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; color: rgba(7, 153, 146, .4); }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-body h3 { font-family: "IRANSansX", sans-serif; font-size: 17px; font-weight: 700; line-height: 1.6; margin: 0; }
.post-card-body p { color: var(--si-muted); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: 12.5px; color: var(--si-muted); margin-top: auto; }
.post-article { max-width: 780px; margin-inline: auto; }
.post-article .post-body p { font-size: 16.5px; line-height: 2.2; color: var(--si-ink-2); margin-bottom: 1.1em; text-align: justify; }
.post-hero { border-radius: 26px; overflow: hidden; margin-bottom: 28px; background: #eaf6f5; }
.post-hero img, .post-hero video { display: block; width: 100%; max-height: 520px; object-fit: cover; }

/* ---------- admin (Bootstrap) ---------- */
.admin-shell { display: flex; min-height: 100vh; background: #f4f7f8; }
.admin-sidebar { width: 260px; flex: none; background: var(--si-navy); color: #fff; }
.admin-sidebar .nav-link { color: rgba(255, 255, 255, .78); border-radius: 12px; padding: .55rem .9rem; display: flex; gap: .6rem; align-items: center; font-size: 14px; }
.admin-sidebar .nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-sidebar .nav-link.active { background: var(--si-teal); color: #fff; }
.admin-sidebar .admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.admin-sidebar .admin-brand img { height: 34px; background: #fff; border-radius: 10px; padding: 4px 8px; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { background: #fff; border-bottom: 1px solid #e6eef0; position: sticky; top: 0; z-index: 20; }
.admin-main .card { border: 0; border-radius: 18px; box-shadow: 0 10px 30px rgba(12, 36, 97, .06); }
.admin-main .table { font-size: 14px; }
.admin-stat { border-radius: 18px; padding: 18px; background: #fff; box-shadow: 0 10px 30px rgba(12, 36, 97, .06); display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; transition: transform .3s; }
.admin-stat:hover { transform: translateY(-3px); color: inherit; }
.admin-stat i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--si-teal); }
.admin-stat.alert-on i { background: #e5484d; }
@media (max-width: 991px) {
    .admin-sidebar { position: fixed; inset-block: 0; right: 0; z-index: 1040; transform: translateX(100%); transition: transform .3s; overflow-y: auto; }
    .admin-sidebar.open { transform: none; }
    .admin-backdrop { position: fixed; inset: 0; z-index: 1030; background: rgba(12, 36, 97, .35); }
}

#blazor-error-ui { background: #fff4d6; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 3000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; left: .75rem; top: .5rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; filter: none; }
}

/* captcha */
.si-captcha-img { display: inline-grid; place-items: center; min-width: 168px; height: 48px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px #e3e3e3; }
.si-captcha-img img { display: block; width: 168px; height: 48px; }
