:root {
    --blue: #002A86;
    --blue-2: #0644ba;
    --green: #00A651;
    --green-2: #18c977;
    --charcoal: #1F2937;
    --ink: #101827;
    --muted: #657286;
    --line: #dbe5f0;
    --soft: #f3f7fb;
    --surface: #ffffff;
    --cyan: #0aa6c8;
    --shadow: 0 18px 42px rgba(15, 28, 50, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "IBM Plex Sans Arabic", "Manrope", Tahoma, sans-serif;
    line-height: 1.8;
}
.site-body {
    font-family: "IBM Plex Sans Arabic", "Cairo", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}
.site-body h1,
.site-body h2,
.site-body h3,
.site-body .nav-links,
.site-body .btn,
.site-body .read-link {
    font-family: "IBM Plex Sans Arabic", "Cairo", Tahoma, Arial, sans-serif;
}
.site-body h1,
.site-body h2,
.site-body h3 { font-weight: 800; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: 48px; line-height: 1.2; letter-spacing: 0; }
h2 { margin-bottom: 12px; font-size: 34px; line-height: 1.3; letter-spacing: 0; }
h3 { margin-bottom: 9px; font-size: 20px; line-height: 1.4; letter-spacing: 0; }
p { color: var(--muted); }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.lead { max-width: 760px; color: var(--muted); font-size: 17px; }
.eyebrow, .kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 14px;
    padding: 4px 11px;
    border: 1px solid rgba(0, 166, 81, .22);
    border-radius: 999px;
    background: rgba(0, 166, 81, .08);
    color: #057845;
    font-size: 13px;
    font-weight: 800;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(219, 229, 240, .9);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
}
.topline {
    background: var(--topbar-bg, var(--charcoal));
    color: var(--topbar-text, rgba(255, 255, 255, .88));
    font-size: 13px;
}
.topline-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.topline-links, .topline-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.topline a:hover { color: var(--green-2); }
.nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.site-header { background: color-mix(in srgb, var(--header-bg, #fff) 94%, transparent); color: var(--header-text, var(--charcoal)); }
.brand img { display: block; width: 178px; max-height: 58px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 18px; color: #24324a; font-weight: 800; font-size: 15px; }
.nav-links a { padding-block: 6px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); border-color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--blue);
    font-family: "Manrope", sans-serif;
    font-weight: 800;
}
.mobile-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--charcoal);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}
.btn.primary {
    background: var(--button-bg, var(--green));
    color: var(--button-text, #fff);
    box-shadow: 0 12px 24px rgba(0, 166, 81, .22);
}
.btn.ghost {
    background: #fff;
    color: var(--blue);
    border-color: #9fb2d4;
}
.btn.ghost.light {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .36);
}
.btn.small { min-height: 40px; padding-inline: 14px; font-size: 14px; }

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 166, 81, .1) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0, 166, 81, .08) 1px, transparent 1px),
        linear-gradient(135deg, #061831 0%, #001c58 56%, #061831 100%);
    background-size: 78px 78px, 78px 78px, auto;
    color: #fff;
}
.hero-grid {
    min-height: 640px;
    padding-block: 76px;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 48px;
    align-items: center;
}
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { color: rgba(255, 255, 255, .84); }
.hero .eyebrow { color: #bcf6d8; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}
.hero-proof span {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255,255,255,.86);
    font-size: 14px;
}
.hero-visual {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
}
.orbit {
    position: absolute;
    border: 1px solid rgba(0, 166, 81, .32);
    border-radius: 50%;
    transform: rotate(-18deg);
}
.orbit-one { width: 360px; height: 170px; }
.orbit-two { width: 520px; height: 260px; border-color: rgba(10,166,200,.24); }
.dashboard-preview, .lab-console {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(7, 24, 58, .84);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
    overflow: hidden;
}
.preview-top, .console-top {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.preview-top span, .console-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
}
.preview-top span:nth-child(2), .console-top span:nth-child(2) { background: var(--cyan); }
.preview-top span:nth-child(3), .console-top span:nth-child(3) { background: #ffffff; opacity: .75; }
.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 18px;
}
.preview-card {
    min-height: 118px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}
.preview-card.wide { grid-column: span 2; }
.progress-row {
    height: 8px;
    margin-top: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    overflow: hidden;
}
.progress-row i { display: block; height: 100%; background: var(--green); }
.progress-row.muted i { background: var(--cyan); }
.metric-card b { display: block; font-size: 34px; color: var(--green-2); }
.metric-card small { color: rgba(255,255,255,.72); }
.chart-card { display: flex; align-items: end; gap: 10px; }
.chart-card span {
    flex: 1;
    min-height: 20px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--green), var(--cyan));
}

.section { padding-block: 78px; }
.section.soft { background: var(--soft); }
.intro-band { border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 42px; }
.section-head p { max-width: 720px; margin-inline: auto; }
.section-action { display: flex; justify-content: center; margin-top: 28px; }
.split {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 42px;
    align-items: center;
}
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.two .span-two { grid-column: 1 / -1; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card, .panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 28, 50, .05);
}
.card {
    position: relative;
    min-height: 230px;
    padding: 28px;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); transition: .2s ease; }
.panel { padding: 34px; }
.panel.compact { padding: 28px; }
.card-number {
    display: inline-flex;
    margin-bottom: 14px;
    color: #9aacbf;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
}
.icon-box {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), #001845);
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 900;
}
.content-card h3 { color: var(--charcoal); }
.card p { margin-bottom: 0; }
.card-more {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: #536074;
    font-size: 14px;
}

.page-hero {
    padding-block: 92px;
    background:
        linear-gradient(90deg, rgba(0, 166, 81, .09) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(135deg, #061831, #002A86 58%, #0b1729);
    background-size: 82px 82px, 82px 82px, auto;
    color: #fff;
}
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero .lead { color: rgba(255,255,255,.82); }
.page-hero .eyebrow { color: #bcf6d8; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.brand-panel {
    min-height: 320px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(0, 42, 134, .06), rgba(0, 166, 81, .08));
}
.brand-panel img { width: min(86%, 480px); }

.dark-section {
    background: linear-gradient(135deg, #0b1729, #001f63);
    color: #fff;
}
.dark-section p, .dark-section .lead { color: rgba(255,255,255,.76); }
.dark-section h2, .dark-section h3 { color: #fff; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.stat {
    padding: 28px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
}
.stat strong {
    display: block;
    margin-bottom: 8px;
    color: var(--green-2);
    font-family: "Manrope", sans-serif;
    font-size: 38px;
}
.stat span { color: rgba(255,255,255,.82); font-weight: 800; }
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.process article {
    padding: 26px;
    border: 1px solid rgba(0,42,134,.12);
    border-radius: 8px;
    background: #fff;
}
.dark-section .process article {
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
}
.process span {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--green);
    font-family: "Manrope", sans-serif;
    font-weight: 900;
}

.lab-teaser {
    background:
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(135deg, #09172b, #00245f);
    background-size: 74px 74px, auto;
    color: #fff;
}
.lab-teaser h2 { color: #fff; }
.lab-teaser .lead { color: rgba(255,255,255,.78); }
.lab-teaser .eyebrow { color: #bcf6d8; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.mini-lab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.mini-lab-grid article {
    min-height: 150px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
}
.mini-lab-grid span { color: var(--green-2); font-family: "Manrope", sans-serif; font-weight: 900; }
.mini-lab-grid strong { display: block; margin-block: 8px; }
.mini-lab-grid p { color: rgba(255,255,255,.72); margin-bottom: 0; font-size: 14px; }

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}
.filter-tabs button {
    min-height: 42px;
    padding-inline: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 900;
}
.filter-tabs button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.project-preview {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 76px;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    background: #f0f5fb;
}
.project-preview span {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: var(--green);
}
.project-preview span:nth-child(1) { height: 42%; }
.project-preview span:nth-child(2) { height: 82%; background: var(--blue); }
.project-preview span:nth-child(3) { height: 62%; background: var(--cyan); }
.project-body {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: #536074;
    font-size: 14px;
}

.lab-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 28px;
    align-items: start;
}
.lab-list { display: grid; gap: 12px; }
.lab-item {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: right;
}
.lab-item.active, .lab-item:hover { border-color: rgba(0,166,81,.42); box-shadow: var(--shadow); }
.lab-item span { color: var(--green); font-family: "Manrope", sans-serif; font-weight: 900; }
.lab-item small { color: var(--muted); }
.lab-console { width: 100%; background: #061831; color: #fff; }
.console-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.console-head h2 { color: #fff; font-size: 32px; }
.console-head p { color: rgba(255,255,255,.72); margin-bottom: 0; }
.console-head strong { color: var(--green-2); font-family: "Manrope", sans-serif; }
.console-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
}
.console-grid article {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
}
.console-grid span { display: block; color: rgba(255,255,255,.68); font-size: 13px; }
.console-grid strong { display: block; color: #fff; font-family: "Manrope", sans-serif; font-size: 28px; }
.console-chart {
    height: 210px;
    display: flex;
    align-items: end;
    gap: 14px;
    padding: 22px;
}
.console-chart span {
    flex: 1;
    min-height: 28px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--green), var(--cyan));
}

.cta-band {
    padding-block: 70px;
    border-top: 1px solid var(--line);
    background: linear-gradient(135deg, #f7fbff, #eef8f2);
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cta-inner h2 { margin-bottom: 8px; }
.cta-inner p { margin-bottom: 0; }
.footer {
    padding: 58px 0 26px;
    background: var(--footer-bg, var(--charcoal));
    color: var(--footer-text, #fff);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr .9fr 1fr;
    gap: 36px;
}
.footer img { width: 210px; max-width: 100%; }
.footer h3 { color: #fff; }
.footer p, .footer a { color: rgba(255,255,255,.74); }
.footer-links, .footer-social { display: grid; gap: 9px; }
.footer-social { display: flex; flex-wrap: wrap; }
.footer a:hover { color: #fff; }
.copyright {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.62);
}
.back-to-top {
    position: fixed;
    inset-inline-end: 18px;
    inset-block-end: 18px;
    z-index: 25;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 30px;
    align-items: start;
}
.contact-side { display: grid; gap: 16px; }
.form-card label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 900;
}
.form-card input, .form-card textarea, .form-card select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 15px;
    background: #fff;
    color: var(--ink);
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
    outline: 3px solid rgba(0, 166, 81, .18);
    border-color: var(--green);
}
.alert { padding: 12px 16px; border-radius: 8px; background: rgba(0,166,81,.12); color: #087b61; font-weight: 900; margin-bottom: 18px; }
.errors { padding: 12px 16px; border-radius: 8px; background: #fff1f1; color: #a12f2f; margin-bottom: 18px; }

.auth-shell {
    min-height: 72vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background: linear-gradient(135deg, #f3f8fb, #fff);
}
.auth-card { width: min(470px, 100%); }
.admin-body { background: #f4f7fb; }
.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 286px 1fr;
}
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(180deg, #061831, #101827);
    color: #fff;
}
.sidebar img {
    width: 184px;
    max-width: 100%;
    margin-bottom: 10px;
}
.side-nav {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}
.side-nav a, .side-nav button {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 12px 14px;
    background: transparent;
    color: rgba(255,255,255,.74);
    text-align: right;
    font-weight: 800;
}
.side-nav a.active, .side-nav a:hover, .side-nav button:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { min-width: 0; padding: 32px; background: linear-gradient(145deg, #f8fbff 0%, #eef4fb 100%); }
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}
.admin-header h1 { margin-bottom: 0; font-size: 32px; }
.admin-header h2 { margin-bottom: 0; font-size: 25px; }
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.metric {
    min-height: 132px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 28, 50, .05);
}
.metric span { color: var(--muted); font-weight: 900; }
.metric strong {
    display: block;
    margin-block: 8px;
    color: var(--blue);
    font-family: "Manrope", sans-serif;
    font-size: 34px;
}
.metric small { color: var(--muted); }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.quick-grid a {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.quick-grid strong { display: block; color: var(--charcoal); }
.quick-grid span { color: var(--muted); font-size: 13px; }
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.admin-tabs a {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 900;
}
.admin-tabs a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 28, 50, .05);
}
.admin-table th, .admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    vertical-align: top;
}
.admin-table thead { background: linear-gradient(135deg, var(--blue), #124aa5); }
.admin-table th { color: #fff; font-size: 13px; border-bottom-color: rgba(255,255,255,.16); }
.admin-table.striped-brand tbody tr:nth-child(odd) { background: #fff; }
.admin-table.striped-brand tbody tr:nth-child(even) { background: color-mix(in srgb, var(--blue) 7%, #fff); }
.admin-table.striped-brand tbody tr { transition: background-color .2s ease, transform .2s ease; }
.admin-table.striped-brand tbody tr:hover { background: color-mix(in srgb, var(--green) 10%, #fff); }
.admin-table select { min-width: 145px; padding: 8px 10px; border: 1px solid #b8c8dc; border-radius: 6px; background: #fff; }
.mail-ok, .mail-error { display: block; margin-top: 7px; font-weight: 700; }
.mail-ok { color: #087c43; }
.mail-error { max-width: 260px; color: #b42318; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,166,81,.1);
    color: #087b61;
    font-size: 12px;
    font-weight: 900;
}
.danger { color: #b42318; background: #fff; border: 1px solid #ffd1ce; }
.pagination { margin-top: 18px; }
.message-card {
    margin-bottom: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 1120px) {
    .nav { flex-wrap: wrap; }
    .nav-links { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 19px; }
    .lead { font-size: 16px; }
    .topline-inner { align-items: flex-start; flex-direction: column; padding-block: 8px; }
    .nav { min-height: 70px; }
    .brand img { width: 150px; }
    .mobile-nav-toggle { display: block; }
    .nav-links, .nav-actions {
        display: none;
        width: 100%;
        align-items: stretch;
    }
    .site-header.mobile-open .nav-links,
    .site-header.mobile-open .nav-actions {
        display: grid;
    }
    .nav-links { gap: 8px; }
    .nav-actions { grid-template-columns: 1fr; }
    .hero-grid, .split, .contact-grid, .lab-layout, .cta-inner, .footer-grid, .admin-shell { grid-template-columns: 1fr; }
    .hero-grid { min-height: auto; padding-block: 54px; }
    .hero-visual { min-height: 340px; }
    .grid.two, .grid.three, .grid.four, .stats-grid, .process, .mini-lab-grid, .console-grid, .quick-grid { grid-template-columns: 1fr; }
    .section { padding-block: 56px; }
    .page-hero { padding-block: 66px; }
    .sidebar { position: relative; height: auto; }
    .admin-main { padding: 20px; }
    .admin-header { align-items: flex-start; flex-direction: column; }
    .admin-header h1 { font-size: 28px; }
}

@media (max-width: 560px) {
    h1 { font-size: 30px; }
    h2 { font-size: 24px; }
    .container { width: min(100% - 24px, 1180px); }
    .preview-grid { grid-template-columns: 1fr; }
    .preview-card.wide { grid-column: span 1; }
    .dashboard-preview, .lab-console { width: 100%; }
    .panel, .card { padding: 22px; }
    .metric-grid { grid-template-columns: 1fr; }
    .admin-table { display: block; overflow-x: auto; }
}

/* Rich dimensional cards */
.hero-slider { position: relative; min-height: 600px; overflow: hidden; background: #061831; color: #fff; }
.itech-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .7s ease, visibility .7s ease; }
.itech-slide.is-active { visibility: visible; opacity: 1; }
.itech-slide > img, .itech-slide > video { width: 100%; height: 100%; object-fit: cover; }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(3,17,39,.94) 0%,rgba(0,42,134,.76) 48%,rgba(3,17,39,.24) 100%); }
.slide-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 1180px; color: #fff; }
.slide-content h1 { max-width: 760px; color: #fff; }
.slide-content p { max-width: 690px; color: rgba(255,255,255,.84); font-size: 18px; }
.slider-arrow { position: absolute; z-index: 4; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; color: #fff; background: rgba(0,0,0,.2); font-size: 30px; transform: translateY(-50%); }
.slider-arrow.prev { inset-inline-start: 24px; }.slider-arrow.next { inset-inline-end: 24px; }
.slider-dots { position: absolute; z-index: 4; inset-inline: 0; bottom: 24px; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 28px; height: 5px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.45); }
.slider-dots button.is-active { background: var(--green); }
.page-image-banner { min-height: 360px; display: flex; align-items: center; background-position: center; background-size: cover; }
.page-image-banner h1 { max-width: 880px; color: inherit; }.page-image-banner .lead { color: color-mix(in srgb,currentColor 82%,transparent); }
.media-preview { margin: 18px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.media-preview img, .media-preview video { display: block; width: min(100%,680px); max-height: 320px; margin: auto; object-fit: contain; }
.admin-thumb { width: 88px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--soft); }
.banner-admin-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.banner-admin-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(0,42,134,.07); }
.banner-admin-preview { min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background-position: center; background-size: cover; }
.banner-admin-preview strong { font-size: 21px; }.banner-admin-preview small { opacity: .75; }
.banner-admin-card > div:last-child { display: flex; align-items: center; justify-content: space-between; padding: 14px; }
.field-note { color: var(--muted); font-size: 12px; font-weight: 400; }
.training-card .btn { margin-top: 18px; }.training-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }.training-meta strong,.training-price { color: var(--blue); font-size: 21px; }.training-meta span { color: #087b61; font-size: 13px; font-weight: 700; }.registration-closed { display: block; margin-top: 18px; padding: 10px; border-radius: 6px; color: #7a5a00; background: #fff7d6; text-align: center; font-weight: 700; }.training-summary { position: sticky; top: 140px; }.training-admin-fields { margin: 20px 0; padding: 20px; border: 1px solid color-mix(in srgb,var(--green) 30%,var(--line)); border-radius: 8px; background: color-mix(in srgb,var(--green) 5%,#fff); }
.nav-editor-row { display: grid; grid-template-columns: 34px 1fr 1fr auto auto; gap: 10px; align-items: center; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.drag-handle { color: var(--muted); text-align: center; }.permission-panel { margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }.permission-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.permission-grid label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }.permission-grid input { width: auto; }.admin-role-chip { display: inline-flex; margin-top: 8px; padding: 3px 9px; border-radius: 999px; color: var(--blue); background: #eaf1ff; font-size: 11px; font-weight: 700; }

.content-card {
    isolation: isolate;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--blue) 14%, #dbe5f0);
    background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--soft) 82%, #fff) 100%);
    box-shadow: 0 18px 38px rgba(0, 42, 134, .10), 0 3px 0 rgba(0, 166, 81, .16);
    transform: perspective(900px) translateZ(0);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.content-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--green), var(--cyan), var(--blue));
}
.content-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 130px;
    height: 130px;
    inset: auto -48px -55px auto;
    border-radius: 50%;
    background: color-mix(in srgb, var(--green) 10%, transparent);
}
.content-card:nth-child(3n+2) { box-shadow: 0 18px 38px rgba(0, 166, 81, .10), 0 3px 0 rgba(10, 166, 200, .18); }
.content-card:nth-child(3n+3) { box-shadow: 0 18px 38px rgba(10, 166, 200, .11), 0 3px 0 rgba(0, 42, 134, .16); }
.content-card:hover { transform: perspective(900px) translateY(-8px) rotateX(1.5deg); border-color: color-mix(in srgb, var(--green) 40%, #dbe5f0); box-shadow: 0 28px 54px rgba(0, 42, 134, .16), 0 6px 0 rgba(0, 166, 81, .2); }
.content-card .card-number { position: absolute; inset: 18px auto auto 20px; opacity: .65; }
.content-card .icon-box { box-shadow: 0 10px 22px rgba(0,42,134,.25), inset 0 1px 0 rgba(255,255,255,.3); }
.card-media { position: relative; height: 170px; margin: -28px -28px 22px; overflow: hidden; background: #dce7f3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card-media span { position: absolute; inset: auto 0 0; height: 52%; background: linear-gradient(transparent,rgba(4,21,48,.48)); }
.content-card:hover .card-media img, .project-card:hover .card-media img { transform: scale(1.055); }
.content-card:has(.card-media) .card-number, .project-card:has(.card-media) .card-number { z-index: 2; color: #fff; opacity: 1; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.project-media { height: 210px; }
.lab-item:has(img) { grid-template-columns:52px 40px 1fr; }.lab-item img { grid-row:1/3; width:52px; height:52px; object-fit:cover; border-radius:6px; }.lab-console-image { display:none; height:190px; margin:-22px -22px 20px; background-position:center; background-size:cover; }.lab-console-image[style],.lab-console-image.is-visible { display:block; }
.card-image-upload { align-self: start; }
.image-upload-preview { display: grid; min-height: 180px; place-content: center; gap: 5px; padding: 18px; border: 1px dashed #8fa9c6; border-radius: 8px; background-color: #f3f7fb; background-position: center; background-size: cover; text-align: center; overflow: hidden; }
.image-upload-preview b, .image-upload-preview small { padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,.88); }
.card-image-upload input[type=file] { margin-top: 8px; }
.admin-item-title { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.admin-item-title img { width: 54px; height: 44px; object-fit: cover; border-radius: 6px; box-shadow: 0 5px 12px rgba(0,42,134,.14); }

/* Dashboard */
.dashboard-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.dashboard-stat { position: relative; min-height: 150px; padding: 20px; overflow: hidden; border-radius: 8px; color: #fff; box-shadow: 0 16px 34px rgba(0,42,134,.14); }
.dashboard-stat::after { content:""; position:absolute; width:150px; height:150px; inset:-54px auto auto -42px; border:28px solid rgba(255,255,255,.1); border-radius:50%; }
.dashboard-stat.blue { background: linear-gradient(135deg,#002a86,#285ac3); }.dashboard-stat.green { background: linear-gradient(135deg,#008b47,#18bd70); }.dashboard-stat.cyan { background: linear-gradient(135deg,#087eae,#16b5cf); }.dashboard-stat.ink { background: linear-gradient(135deg,#14233a,#344a67); }
.dashboard-stat .stat-icon { position:absolute; inset:18px auto auto 18px; padding:6px 8px; border-radius:6px; background:rgba(255,255,255,.16); font:700 11px Manrope,sans-serif; }
.dashboard-stat small,.dashboard-stat i { display:block; color:rgba(255,255,255,.76); font-style:normal; }.dashboard-stat strong { display:block; margin:12px 0 8px; color:#fff; font:800 34px Manrope,sans-serif; }
.dashboard-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr); gap:16px; margin-top:18px; }
.dashboard-panel { padding:22px; border:1px solid #dbe7f3; border-radius:8px; background:#fff; box-shadow:0 12px 30px rgba(15,45,85,.06); }
.dashboard-panel-head { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:18px; }.dashboard-panel-head h2 { margin:4px 0 0; font-size:19px; }.dashboard-panel-head>a { color:var(--blue); font-size:12px; font-weight:800; }
.content-bars { display:grid; gap:13px; }.content-bars a>div { display:flex; justify-content:space-between; margin-bottom:6px; font-size:12px; }.content-bars i { display:block; height:8px; border-radius:5px; background:#edf2f8; overflow:hidden; }.content-bars b { display:block; height:100%; border-radius:5px; background:linear-gradient(90deg,var(--blue),var(--cyan),var(--green)); }
.dashboard-actions { display:grid; gap:9px; }.dashboard-actions a { display:flex; align-items:center; gap:11px; padding:11px; border:1px solid var(--line); border-radius:7px; background:#fbfdff; }.dashboard-actions a>b { display:grid; flex:0 0 36px; height:36px; place-items:center; border-radius:6px; color:#fff; background:var(--blue); font:700 10px Manrope,sans-serif; }.dashboard-actions span { display:grid; }.dashboard-actions small { color:var(--muted); }
.dashboard-list { display:grid; }.dashboard-list>a { display:grid; grid-template-columns:40px 1fr auto; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid var(--line); }.dashboard-list>a:last-child { border-bottom:0; }.avatar { display:grid; width:38px; height:38px; place-items:center; border-radius:50%; color:#fff; background:linear-gradient(135deg,var(--green),var(--cyan)); font-weight:800; }.avatar.message { background:linear-gradient(135deg,var(--blue),var(--cyan)); }.dashboard-list div { display:grid; }.dashboard-list small,.dashboard-list i { color:var(--muted); font-size:11px; font-style:normal; }
@media (max-width:1100px){.dashboard-cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){.dashboard-layout{grid-template-columns:1fr}.dashboard-cards{grid-template-columns:1fr}.card-media{height:155px}}

/* Standalone authentication */
.auth-page { min-height: 100vh; background: #edf3f8; }
.auth-standalone { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr); }
.auth-brand-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 52px; color: #fff; background: linear-gradient(145deg, #061831, var(--blue)); }
.auth-brand-panel > a img { width: 220px; }
.auth-brand-panel div { max-width: 560px; padding-bottom: 8vh; }
.auth-brand-panel h1 { max-width: 540px; color: #fff; font-size: 48px; }
.auth-brand-panel p { color: rgba(255,255,255,.76); font-size: 18px; }
.auth-form-panel { display: grid; place-items: center; padding: 40px; background: #fff; }
.auth-form-panel .auth-card { width: min(460px, 100%); }
.auth-form-panel .auth-card > img { width: 190px; margin-bottom: 34px; }
.auth-form-panel .auth-card h2 { margin-bottom: 8px; font-size: 36px; }
.auth-form-panel label { display: grid; gap: 8px; margin-top: 18px; font-weight: 700; }
.auth-form-panel input:not([type=checkbox]) { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; }
.auth-form-panel .btn { width: 100%; margin-top: 22px; }
.auth-back { display: block; margin-top: 18px; color: var(--blue); text-align: center; font-weight: 700; }
.check-control { display: flex !important; align-items: center; gap: 8px; }
.check-control input { width: auto !important; }

/* Settings and page builder */
.side-nav-divider { margin: 18px 12px 4px; color: rgba(255,255,255,.38); font-size: 12px; font-weight: 800; }
.settings-section-head, .admin-toolbar, .builder-toolbar, .builder-actions, .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.settings-section-head { margin: 8px 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.settings-section-head h2 { margin: 0; font-size: 26px; }
.settings-section-head p { max-width: 520px; margin: 0; }
.brand-upload-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 16px; margin: 24px 0 42px; }
.logo-upload, .logo-preview { min-height: 170px; padding: 22px; border: 1px dashed #aac0d8; border-radius: 8px; background: #f8fbfd; }
.logo-upload { display: flex; flex-direction: column; justify-content: center; gap: 10px; font-weight: 700; }
.logo-upload span { color: var(--muted); font-size: 13px; }
.logo-preview { display: grid; place-items: center; gap: 14px; }
.logo-preview img { width: min(220px, 100%); max-height: 74px; object-fit: contain; }
.color-settings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.color-control { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.color-control > span { display: block; margin-bottom: 10px; font-weight: 700; }
.color-control div { display: flex; align-items: center; gap: 10px; }
.color-control input { width: 48px !important; height: 38px; padding: 2px !important; }
.color-control code { direction: ltr; color: var(--muted); }
.theme-preview { overflow: hidden; margin: 26px 0; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.preview-topbar, .preview-footer { padding: 10px 18px; }
.preview-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; }
.preview-header img { width: 150px; }
.preview-header button { padding: 10px 16px; border: 0; border-radius: 8px; }
.builder-toolbar { margin: 22px 0 10px; }
.builder-toolbar small { display: block; color: var(--muted); }
.builder-toolbar select { max-width: 280px; }
.builder-toolbar-controls { display: flex; align-items: center; gap: 10px; }
.code-size { min-width: 76px; padding: 6px 9px; border-radius: 6px; color: var(--blue); background: #eaf1ff; direction: ltr; text-align: center; font: 700 12px "Manrope",sans-serif; }
.code-size.is-large { color: #9f1c13; background: #fff0ef; }
.code-input { min-height: 520px; font: 14px/1.7 Consolas, monospace !important; color: #d9e7ff !important; background: #07162c !important; direction: ltr; }
.builder-actions { margin-top: 18px; justify-content: flex-end; }
.html-preview-dialog { width: min(1200px, 94vw); height: 88vh; padding: 0; border: 0; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.html-preview-dialog::backdrop { background: rgba(4,16,35,.74); }
.dialog-head { height: 58px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.dialog-head button { border: 0; background: transparent; color: var(--blue); font-weight: 800; }
.html-preview-dialog iframe { width: 100%; height: calc(100% - 58px); border: 0; }
.admin-panel { margin-top: 24px; }
.admin-table-wrap { overflow-x: auto; margin-top: 18px; border-radius: 8px; box-shadow: 0 16px 36px rgba(15, 45, 85, .08); }
.admin-toolbar { padding: 16px 18px; border: 1px solid #dbe7f3; border-inline-start: 4px solid var(--green); border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15, 45, 85, .06); }
.admin-toolbar p { margin: 4px 0 0; }
.client-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.client-form-fields { display: grid; gap: 16px; }
.form-section { padding: 24px; border: 1px solid #dbe7f3; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15,45,85,.05); }
.form-section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.form-section-head > span { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 6px; color: #fff; background: var(--blue); font: 700 12px "Manrope",sans-serif; }
.form-section-head h2 { margin: 0 0 3px; font-size: 18px; }
.form-section-head p { margin: 0; color: var(--muted); font-size: 12px; }
.client-form label { display: grid; gap: 7px; margin-top: 15px; color: var(--charcoal); font-size: 13px; font-weight: 700; }
.client-form label > span b { color: #b42318; }
.client-form input, .client-form textarea, .client-form select { width: 100%; padding: 11px 13px; border: 1px solid #cbd9e8; border-radius: 7px; color: var(--charcoal); background: #fbfdff; outline: none; }
.client-form input:focus, .client-form textarea:focus, .client-form select:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb,var(--green) 16%,transparent); background: #fff; }
.client-form textarea { resize: vertical; }
.client-form-summary { position: sticky; top: 24px; padding: 24px; border-radius: 8px; color: #fff; background: linear-gradient(155deg, #071a36, var(--blue)); box-shadow: 0 18px 40px rgba(0,42,134,.18); }
.client-form-summary h3 { margin: 12px 0 8px; color: #fff; font-size: 21px; }
.client-form-summary p, .client-form-summary li { color: rgba(255,255,255,.75); font-size: 13px; }
.client-form-summary ul { margin: 18px 0; padding-right: 20px; }
.client-form-actions { display: grid; gap: 9px; margin-top: 22px; }
.client-form-actions .btn { width: 100%; }
.client-form-summary .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.error-alert { color: #9f1c13; background: #fff0ef; }
.switch-control { display: flex; align-items: center; gap: 8px; font-weight: 700; }

/* Smart assistant */
.chatbot { position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 1200; }
.chatbot-launcher { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 8px 16px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); box-shadow: 0 16px 36px rgba(0,42,134,.26); font-weight: 700; }
.chatbot-spark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--green); }
.chatbot-window { position: absolute; inset-inline-start: 0; bottom: 62px; display: none; width: min(390px, calc(100vw - 28px)); height: min(610px, calc(100vh - 120px)); grid-template-rows: auto 1fr auto auto auto; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 28px 74px rgba(0,42,134,.22); }
.chatbot.is-open .chatbot-window { display: grid; }
.chatbot-window > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: #fff; background: linear-gradient(135deg,var(--blue),#061831); }
.chatbot-window header div { display: grid; }
.chatbot-window header small { color: rgba(255,255,255,.7); }
.chatbot-close { border: 0; color: #fff; background: transparent; font-size: 26px; }
.chatbot-messages { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 16px; background: var(--soft); }
.chatbot-message { max-width: 88%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; background: #fff; }
.chatbot-message.user { align-self: flex-end; border-color: var(--blue); color: #fff; background: var(--blue); }
.chatbot-suggestions { display: flex; gap: 6px; overflow-x: auto; padding: 9px 12px; }
.chatbot-suggestions button { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--blue); background: #fff; }
.chatbot-form { display: grid; grid-template-columns: 1fr 42px; gap: 8px; padding: 10px 12px; }
.chatbot-form textarea { resize: none; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; }
.chatbot-form button { border: 0; border-radius: 6px; color: #fff; background: var(--green); }
.chatbot-note { margin: 0; padding: 0 12px 10px; font-size: 11px; text-align: center; }
.chatbot-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chatbot-sources a { padding: 4px 7px; border-radius: 5px; color: var(--blue); background: #edf3fb; font-size: 12px; font-weight: 700; }
.chatbot-admin-thread { display: flex; flex-direction: column; gap: 12px; }
.chatbot-admin-message { width: min(760px,92%); padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.chatbot-admin-message.assistant { align-self: flex-end; background: #f0f7ff; border-inline-start: 4px solid var(--blue); }
.chatbot-admin-message.user { align-self: flex-start; background: #f1fbf6; border-inline-start: 4px solid var(--green); }

@media (max-width: 900px) {
    .auth-standalone { grid-template-columns: 1fr; }
    .auth-brand-panel { display: none; }
    .auth-form-panel { min-height: 100vh; padding: 24px; }
    .brand-upload-grid, .color-settings-grid { grid-template-columns: repeat(2,1fr); }
    .hero-slider { min-height: 520px; }.banner-admin-grid { grid-template-columns: 1fr; }
    .nav-editor-row { grid-template-columns: 28px 1fr; }.nav-editor-row input:nth-of-type(2),.nav-editor-row .check-control,.nav-editor-row .btn { grid-column: 2; }.permission-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .brand-upload-grid, .color-settings-grid { grid-template-columns: 1fr; }
    .settings-section-head, .builder-toolbar, .builder-actions, .admin-toolbar { align-items: stretch; flex-direction: column; }
    .preview-header span { display: none; }
    .chatbot { inset-inline-start: 12px; bottom: 12px; }
    .chatbot-window { position: fixed; inset: 10px; width: auto; height: auto; }
    .hero-slider { min-height: 460px; }.slider-arrow { display: none; }.slide-content p { font-size: 15px; }.page-image-banner { min-height: 300px; }
    .permission-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .client-form-layout { grid-template-columns: 1fr; }.client-form-summary { position: static; }.form-grid.two { grid-template-columns: 1fr; } }

/* Icon and live demo presentation */
.icon-box svg { width:23px; height:23px; stroke-width:1.8; }.stat-icon svg,.dashboard-actions b svg { width:18px; height:18px; }
.demo-live-field { margin:20px 0; padding:18px; border:1px solid color-mix(in srgb,var(--cyan) 35%,var(--line)); border-radius:8px; background:color-mix(in srgb,var(--cyan) 5%,#fff); }.demo-live-field small { display:block; margin-top:6px; color:var(--muted); }
.live-demo-section { background:#f4f8fc; }.live-demo-head { display:flex; justify-content:space-between; align-items:end; gap:20px; }.live-status { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; color:#067a43; background:#e6f8ef; font-size:12px; font-weight:800; }.live-status i { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 5px rgba(0,166,81,.12); }
.live-demo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }.live-demo-card { overflow:hidden; border:1px solid #d7e3ef; border-radius:8px; background:#fff; box-shadow:0 18px 45px rgba(11,37,72,.09); transition:transform .25s ease,box-shadow .25s ease; }.live-demo-card:hover { transform:translateY(-5px); box-shadow:0 26px 58px rgba(0,42,134,.14); }
.browser-frame { padding:10px 10px 0; background:#e9f0f7; }.browser-bar { display:grid; grid-template-columns:62px 1fr 20px; align-items:center; gap:8px; height:34px; padding:0 9px; border-radius:7px 7px 0 0; color:#718096; background:#fff; font-size:11px; direction:ltr; }.browser-bar>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; }.browser-bar>svg { width:13px; }.browser-dots { display:flex; gap:5px; }.browser-dots i { width:7px; height:7px; border-radius:50%; background:#ff6b67; }.browser-dots i:nth-child(2){background:#ffc65a}.browser-dots i:nth-child(3){background:#3ac77d}
.browser-viewport { position:relative; height:310px; overflow:hidden; background:#dfe8f2; }.browser-viewport iframe { width:1440px; height:900px; border:0; transform:scale(.435); transform-origin:top left; pointer-events:none; }.browser-viewport>img { width:100%; height:100%; object-fit:cover; }.preview-click-target { position:absolute; inset:0; z-index:2; }.demo-placeholder { height:100%; display:grid; place-content:center; justify-items:center; gap:12px; color:#718096; }.demo-placeholder svg { width:42px; height:42px; color:var(--blue); }
.live-demo-info { padding:20px; }.live-demo-title { display:flex; align-items:center; gap:11px; }.live-demo-title h3 { margin:0; font-size:19px; }.live-demo-title a { color:var(--cyan); direction:ltr; font-size:11px; }.demo-icon { display:grid; flex:0 0 42px; height:42px; place-items:center; border-radius:7px; color:#fff; background:linear-gradient(135deg,var(--blue),var(--cyan)); }.demo-icon svg { width:21px; }.live-demo-info>p { min-height:48px; margin:14px 0; font-size:13px; }.visit-demo { display:flex; justify-content:space-between; align-items:center; padding-top:13px; border-top:1px solid var(--line); color:var(--blue); font-weight:800; }.visit-demo svg { width:18px; }
@media (max-width:900px){.live-demo-grid{grid-template-columns:1fr}.browser-viewport{height:300px}}
@media (max-width:760px){.live-demo-head{align-items:flex-start;flex-direction:column}.browser-viewport{height:230px}.browser-viewport iframe{transform:scale(.32)}}

/* Site settings, security and direct contact */
.side-nav .logout-form button{margin-top:8px;color:#fff;background:#b42318}.side-nav .logout-form button:hover{background:#d92d20}.footer-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.footer-branches{display:grid;gap:10px;margin:16px 0}.footer-branches article{display:grid;gap:3px;padding-bottom:9px;border-bottom:1px solid rgba(255,255,255,.1)}.footer-branches a{font-size:12px}.repeater-block{margin:0 0 24px;padding:18px;border:1px solid var(--line);border-radius:8px;background:#f8fbfd}.repeater-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.repeater-title h3{margin:0}.setting-row{display:grid;grid-template-columns:1fr 1.4fr auto;gap:9px;margin-top:9px;align-items:center}.setting-row.three-fields{grid-template-columns:1fr 1fr 1.4fr auto}.setting-row input{margin:0}.message-security{display:flex;flex-wrap:wrap;gap:8px 16px;padding:12px;border-radius:7px;background:#f3f7fb;font-size:12px}.risk-badge{display:inline-flex;padding:3px 8px;border-radius:999px}.risk-badge.low{color:#067647;background:#ecfdf3}.risk-badge.medium{color:#b54708;background:#fffaeb}.risk-badge.high{color:#b42318;background:#fef3f2}.risk-reasons{color:#b42318}.form-trap{position:absolute!important;inset-inline-start:-10000px!important;width:1px!important;height:1px!important;opacity:0!important}.whatsapp-float{position:fixed;z-index:80;inset-inline-start:22px;bottom:22px;display:grid;width:54px;height:54px;place-items:center;border-radius:50%;color:#fff;background:#16a34a;box-shadow:0 12px 28px rgba(22,163,74,.3);animation:whatsappPulse 2.4s ease-in-out infinite}.whatsapp-float svg{width:27px;height:27px}@keyframes whatsappPulse{0%,100%{transform:translateY(0);box-shadow:0 12px 28px rgba(22,163,74,.3)}50%{transform:translateY(-5px);box-shadow:0 18px 34px rgba(22,163,74,.42)}}
@media(max-width:900px){.setting-row,.setting-row.three-fields{grid-template-columns:1fr}.setting-row .btn{width:100%}.whatsapp-float{width:48px;height:48px;inset-inline-start:14px;bottom:14px}}
.whatsapp-float{left:22px;right:auto;inset-inline-start:auto}
@media(max-width:900px){.whatsapp-float{left:14px;right:auto;inset-inline-start:auto}}

/* Footer contact and branded social controls */
.footer-primary-contact{display:grid;gap:8px;margin:14px 0}.footer-primary-contact a,.footer-branches a{display:inline-flex;align-items:center;gap:7px;color:var(--footer-text);text-decoration:none;transition:color .2s ease,transform .2s ease}.footer-primary-contact a:hover,.footer-branches a:hover{color:var(--green);transform:translateX(-3px)}.footer-primary-contact svg,.footer-branches svg{width:16px;height:16px;flex:none}.footer-branches article{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(135px,1fr) minmax(150px,1.15fr);align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.13)}.footer-social{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.footer-social .social-link{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:6px;background:rgba(255,255,255,.08);color:#fff;text-decoration:none;transition:transform .2s ease,background .2s ease}.footer-social .social-link:hover{transform:translateY(-2px);background:var(--social-color)}.social-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:5px;background:var(--social-color,#617084);color:var(--social-ink,#fff);font:800 13px/1 Arial}.social-facebook{--social-color:#1877f2}.social-x{--social-color:#000}.social-instagram{--social-color:#e4405f}.social-linkedin{--social-color:#0a66c2}.social-snapchat{--social-color:#fffc00;--social-ink:#111}.social-youtube{--social-color:#ff0000}.social-tiktok{--social-color:#000}.social-whatsapp{--social-color:#25d366}.social-telegram{--social-color:#229ed9}.social-setting-row{grid-template-columns:minmax(130px,.7fr) minmax(150px,1fr) minmax(220px,1.4fr) auto auto}.social-setting-row select{min-height:44px;border:1px solid #d7e1ec;border-radius:6px;background:#fff;padding:0 10px;font:inherit}.visibility-toggle{display:flex!important;align-items:center;gap:7px;white-space:nowrap}.visibility-toggle input[type=checkbox]{width:18px;height:18px}.visibility-toggle input[type=hidden]{display:none}@media(max-width:900px){.footer-branches article{grid-template-columns:1fr}.social-setting-row{grid-template-columns:1fr}.footer-social .social-label{display:none}.footer-social .social-link{padding:7px}}
.footer-visibility-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 22px}.footer-visibility-controls .visibility-toggle{align-items:flex-start;padding:14px;border:1px solid #d7e1ec;border-radius:6px;background:#f8fbfe;white-space:normal}.footer-visibility-controls span{display:grid;gap:3px}.footer-visibility-controls small{color:#64748b;font-weight:400}@media(max-width:700px){.footer-visibility-controls{grid-template-columns:1fr}}
.form-trap{position:absolute!important;inline-size:1px!important;block-size:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}.turnstile-wrap{margin:18px 0 12px;min-height:70px}.form-security-note,.form-submit-status{font-size:.9rem;color:#516176;margin:8px 0}.field-error{color:#b42318;font-size:.9rem;margin:8px 0}.protected-contact-form button[disabled]{opacity:.7;cursor:wait}

/* ITECH admin application shell */
.admin-body {
    --admin-sidebar: 280px;
    --admin-sidebar-compact: 82px;
    height: 100vh;
    overflow: hidden;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    background: #edf3f9;
}
.admin-body *, .admin-body *::before, .admin-body *::after { box-sizing: border-box; }
.admin-shell {
    height: 100vh;
    min-height: 0;
    display: grid;
    grid-template-columns: var(--admin-sidebar) minmax(0, 1fr);
    direction: rtl;
    overflow: hidden;
    transition: grid-template-columns .25s ease;
}
.admin-sidebar-collapsed .admin-shell { grid-template-columns: var(--admin-sidebar-compact) minmax(0, 1fr); }
.admin-mobile-bar, .admin-sidebar-backdrop { display: none; }
.admin-body .sidebar {
    position: relative;
    top: auto;
    z-index: 60;
    width: auto;
    height: 100vh;
    min-height: 0;
    padding: 18px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
    background: #071a34;
    border-inline-start: 1px solid rgba(255,255,255,.06);
    box-shadow: -10px 0 30px rgba(0,24,65,.08);
}
.sidebar-brand {
    position: sticky;
    top: -18px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 72px;
    margin: -18px -14px 8px;
    padding: 16px 14px 12px;
    background: #071a34;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand > a { min-width: 0; }
.admin-body .sidebar img { display: block; width: 158px; max-height: 48px; margin: 0; object-fit: contain; object-position: right center; }
.sidebar-collapse, .admin-icon-button {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 7px;
    color: #fff;
    background: rgba(255,255,255,.07);
}
.sidebar-collapse:hover { background: rgba(0,166,81,.22); border-color: rgba(0,166,81,.5); }
.sidebar-collapse svg, .admin-icon-button svg { width: 19px; height: 19px; }
.admin-body .side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.admin-body .side-nav a, .admin-body .side-nav button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #b9c7d8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.admin-body .side-nav a svg, .admin-body .side-nav button svg { flex: 0 0 19px; width: 19px; height: 19px; stroke-width: 1.8; }
.admin-body .side-nav a::before {
    content: "";
    position: absolute;
    inset-block: 9px;
    inset-inline-start: -14px;
    width: 3px;
    border-radius: 3px;
    background: transparent;
}
.admin-body .side-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.admin-body .side-nav a.active {
    color: #fff;
    border-color: rgba(23,200,111,.24);
    background: linear-gradient(100deg, rgba(0,166,81,.22), rgba(0,42,134,.28));
}
.admin-body .side-nav a.active::before { background: #19c875; }
.side-nav-divider {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin: 9px 4px 3px;
    color: #6f829b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
}
.side-nav-divider::after { content: ""; flex: 1; height: 1px; margin-inline-start: 10px; background: rgba(255,255,255,.09); }
.admin-body .logout-form { margin-top: 4px; }
.admin-body .side-nav .logout-form button { color: #fff; background: #b42318; }
.admin-body .side-nav .logout-form button:hover { background: #d92d20; }
.admin-sidebar-collapsed .sidebar { padding-inline: 12px; }
.admin-sidebar-collapsed .sidebar-brand { justify-content: center; margin-inline: -12px; padding-inline: 12px; }
.admin-sidebar-collapsed .sidebar-brand > a { display: none; }
.admin-sidebar-collapsed .sidebar-collapse svg { transform: rotate(180deg); }
.admin-sidebar-collapsed .side-nav a, .admin-sidebar-collapsed .side-nav button { justify-content: center; padding-inline: 10px; }
.admin-sidebar-collapsed .side-nav a span, .admin-sidebar-collapsed .side-nav button span, .admin-sidebar-collapsed .side-nav-divider span { display: none; }
.admin-sidebar-collapsed .side-nav-divider { min-height: 14px; margin: 7px 0; }
.admin-sidebar-collapsed .side-nav-divider::after { margin: 0; }
.admin-sidebar-collapsed .side-nav a:hover::after, .admin-sidebar-collapsed .side-nav button:hover::after {
    content: attr(title);
    position: fixed;
    z-index: 100;
    right: 76px;
    max-width: 220px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #fff;
    background: #071a34;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    font: 600 12px/1.5 "Cairo", sans-serif;
    pointer-events: none;
}
.admin-body .admin-main {
    min-width: 0;
    height: 100vh;
    padding: 24px 28px 38px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    background: #f2f6fb;
}
.admin-body .admin-header {
    position: sticky;
    top: -24px;
    z-index: 20;
    min-height: 88px;
    margin: -24px -28px 24px;
    padding: 20px 28px 15px;
    background: rgba(242,246,251,.95);
    border-bottom: 1px solid #dce6f0;
    backdrop-filter: blur(12px);
}
.admin-body .admin-header h1 { margin: 3px 0 0; color: #10233d; font-size: 25px; font-weight: 800; letter-spacing: 0; }
.admin-body .admin-header .kicker { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 0; }
.admin-role-chip { display: inline-flex; margin-top: 5px; padding: 3px 8px; border: 1px solid #bee8d2; border-radius: 999px; color: #087b4c; background: #ebfaf2; font-size: 10px; font-weight: 700; }
.admin-header-actions { display: flex; align-items: center; gap: 10px; }
.admin-user { display: inline-flex; align-items: center; gap: 7px; color: #52647a; font-size: 12px; }
.admin-user svg { width: 20px; height: 20px; color: var(--blue); }
.admin-body .admin-header-actions .btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 11px; }
.admin-body .admin-header-actions .btn svg { width: 16px; }
.admin-body .dashboard-cards { gap: 14px; }
.admin-body .dashboard-stat, .admin-body .metric {
    min-height: 126px;
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(15,42,77,.07);
}
.admin-body .dashboard-panel, .admin-body .panel, .admin-body .message-card, .admin-body .banner-admin-card {
    border-color: #dbe5ef;
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(15,42,77,.055);
}
.admin-body .dashboard-panel { padding: 22px; }
.admin-body .dashboard-panel h2 { font-size: 18px; }
.admin-body .admin-toolbar {
    margin-bottom: 14px;
    padding: 15px 17px;
    border: 1px solid #dbe5ef;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15,42,77,.045);
}
.admin-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid #d8e3ee;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,42,77,.055);
}
.admin-body .admin-table {
    min-width: 760px;
    border-radius: 0;
    box-shadow: none;
    font-size: 12px;
}
.admin-body .admin-table thead { background: #082d70; }
.admin-body .admin-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 11px 13px;
    background: #082d70;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.admin-body .admin-table td { padding: 10px 13px; line-height: 1.65; }
.admin-body .admin-table tbody tr:nth-child(even) { background: #f7faff; }
.admin-body .admin-table tbody tr:hover { background: #eef8f3; }
.admin-body .admin-table .btn { min-height: 32px; padding: 5px 9px; font-size: 11px; }
.admin-body .admin-table select { min-height: 34px; padding-block: 5px; font-family: "Cairo", sans-serif; font-size: 11px; }
.admin-body .admin-item-title { min-width: 180px; }
.admin-body input, .admin-body select, .admin-body textarea, .admin-body button { font-family: "Cairo", sans-serif; }
.admin-body input, .admin-body select, .admin-body textarea { font-size: 13px; }
.admin-body .btn { border-radius: 6px; font-size: 12px; }
.admin-body .pill { border-radius: 999px; font-size: 10px; }

@media (max-width: 900px) {
    .admin-body { height: 100dvh; overflow: hidden; }
    .admin-shell { display: block; height: 100dvh; padding-top: 62px; }
    .admin-mobile-bar {
        position: fixed;
        inset: 0 0 auto;
        z-index: 80;
        display: grid;
        grid-template-columns: 95px minmax(0,1fr) 40px;
        align-items: center;
        gap: 10px;
        height: 62px;
        padding: 9px 14px;
        color: #fff;
        background: #071a34;
        box-shadow: 0 8px 24px rgba(0,24,65,.16);
    }
    .admin-mobile-bar img { display: block; width: 92px; max-height: 38px; object-fit: contain; }
    .admin-mobile-bar span { overflow: hidden; font-size: 13px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
    .admin-sidebar-backdrop { position: fixed; inset: 62px 0 0; z-index: 50; width: 100%; border: 0; background: rgba(5,18,36,.55); backdrop-filter: blur(2px); }
    .admin-body .sidebar {
        position: fixed;
        inset: 62px 0 0 auto;
        z-index: 70;
        width: min(310px, 86vw);
        height: calc(100dvh - 62px);
        padding: 14px;
        transform: translateX(105%);
        transition: transform .25s ease;
    }
    .admin-sidebar-open .sidebar { transform: translateX(0); }
    .admin-sidebar-open .admin-sidebar-backdrop { display: block; }
    .admin-body .sidebar-brand { display: none; }
    .admin-sidebar-collapsed .side-nav a, .admin-sidebar-collapsed .side-nav button { justify-content: flex-start; }
    .admin-sidebar-collapsed .side-nav a span, .admin-sidebar-collapsed .side-nav button span, .admin-sidebar-collapsed .side-nav-divider span { display: inline; }
    .admin-sidebar-collapsed .side-nav-divider { min-height: 34px; margin: 9px 4px 3px; }
    .admin-sidebar-collapsed .side-nav-divider::after { margin-inline-start: 10px; }
    .admin-body .admin-main { width: 100%; height: calc(100dvh - 62px); padding: 16px 14px 30px; }
    .admin-body .admin-header { position: static; min-height: 0; margin: 0 0 16px; padding: 0 0 14px; background: transparent; backdrop-filter: none; }
    .admin-body .admin-header > div:first-child { min-width: 0; }
    .admin-body .admin-header h1 { font-size: 21px; }
    .admin-user { display: none; }
    .admin-body .admin-header-actions .btn span { display: none; }
    .admin-body .admin-header-actions .btn { width: 38px; padding: 0; justify-content: center; }
    .admin-body .dashboard-panel { padding: 17px; }
    .admin-body .dashboard-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .admin-body .admin-toolbar { align-items: stretch; gap: 12px; }
    .admin-body .admin-toolbar .row-actions { width: 100%; }
}
@media (max-width: 560px) {
    .admin-mobile-bar { grid-template-columns: 82px minmax(0,1fr) 38px; }
    .admin-mobile-bar img { width: 80px; }
    .admin-body .dashboard-cards, .admin-body .metric-grid { grid-template-columns: 1fr; }
    .admin-body .admin-table { display: table; }
    .admin-body .admin-header { flex-direction: row; align-items: center; }
    .admin-body .admin-header h1 { font-size: 19px; }
}
