@import './styles/base.css';
@import './styles/theme-brand.css';
@import './styles/public-refinements.css';
@import './styles/product-detail.css';
@import './styles/theme-toggle.css';
@import './styles/dashboard-refinements.css';
@import './styles/site-polish.css';
@import './styles/marquee-process-fixes.css';
@import './styles/workflow-line-fix.css';

@import './styles/admin-features.css';

@import './styles/finance-dashboard.css';

@import './styles/project-task-workspace.css';

:root {
    --native-bg: #0d0e11;
    --native-panel: #15171c;
    --native-line: rgba(255, 255, 255, .1);
    --native-text: #f4f1e9;
    --native-muted: #a5a6ad;
    --native-gold: var(--brand-primary, #b28b3d)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--native-bg);
    color: var(--native-text);
    font-family: 'DM Sans', 'IBM Plex Sans Arabic', sans-serif;
    line-height: 1.7
}

.rtl {
    font-family: 'IBM Plex Sans Arabic', 'DM Sans', sans-serif
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(13, 14, 17, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--native-line)
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand,
.footer-brand {
    font-size: 25px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px
}

.brand span,
.footer-brand span {
    color: var(--native-gold)
}

.main-nav {
    display: flex;
    gap: 28px;
    align-items: center
}

.main-nav a,
.language-link {
    color: #ddd;
    text-decoration: none;
    font-size: 14px
}

.main-nav a:hover,
.language-link:hover {
    color: var(--native-gold)
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at 80% 40%, rgba(178, 139, 61, .16), transparent 45%), linear-gradient(135deg, #111319, #0d0e11)
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-block: 110px;
    max-width: 1160px
}

.eyebrow {
    color: var(--native-gold);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase
}

.hero-content h1,
.page-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.15;
    max-width: 820px;
    margin: 18px 0
}

.hero-content p,
.page-hero p {
    max-width: 650px;
    color: #b9bac0;
    font-size: 18px;
    margin-bottom: 32px
}

.hero-orbit {
    position: absolute;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(178, 139, 61, .2);
    border-radius: 50%;
    inset-inline-end: 8%;
    top: 16%;
    box-shadow: 0 0 0 55px rgba(178, 139, 61, .025), 0 0 0 110px rgba(178, 139, 61, .02)
}

.hero-orbit span {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--native-gold);
    border-radius: 50%;
    top: 18%;
    left: 24%;
    box-shadow: 0 0 35px var(--native-gold)
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 13px 24px;
    background: var(--native-gold);
    color: #111;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer
}

.btn-secondary {
    background: #292b31;
    color: #eee
}

.section {
    padding: 88px 0
}

.section-muted {
    background: #111319
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 42px
}

.section-heading h2,
.cta-section h2 {
    font-size: clamp(30px, 4vw, 41px);
    margin: 10px 0
}

.section-heading p,
.feature-card p,
.steps-grid p {
    color: var(--native-muted)
}

.feature-grid,
.cards-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.feature-card,
.work-card,
.steps-grid article,
.contact-aside,
.contact-form,
.login-card,
.admin-panel,
.stat-card {
    background: var(--native-panel);
    border: 1px solid var(--native-line);
    border-radius: 14px;
    padding: 26px
}

.feature-card>span,
.steps-grid b {
    color: var(--native-gold);
    font-size: 13px
}

.feature-card h3,
.work-card h3 {
    font-size: 21px
}

.page-hero {
    padding: 100px 0 65px;
    background: radial-gradient(ellipse at 80% 0, rgba(178, 139, 61, .14), transparent 50%), #111319
}

.work-card {
    padding: 0;
    overflow: hidden
}

.work-card img {
    width: 100%;
    height: 210px;
    object-fit: cover
}

.work-placeholder {
    height: 210px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #24262d, #111319);
    color: var(--native-gold);
    font-size: 25px;
    font-weight: 800
}

.card-body {
    padding: 22px
}

.card-body p {
    color: var(--native-muted)
}

.cta-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(120deg, #201b12, #15171c)
}

.site-footer {
    padding: 38px 0;
    border-top: 1px solid var(--native-line);
    color: var(--native-muted)
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px
}

.contact-form label,
.login-card label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #ddd;
    margin-bottom: 16px
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px
}

.contact-form input,
.contact-form textarea,
.login-card input,
.record-dialog input,
.record-dialog textarea,
.record-dialog select {
    width: 100%;
    background: #0d0f13;
    border: 1px solid #34363d;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font: inherit
}

.login-section {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 70px 20px
}

.login-card {
    width: min(460px, 100%);
    display: flex;
    flex-direction: column;
    gap: 12px
}

.login-card h1 {
    margin: 0 0 12px
}

.center {
    text-align: center
}

.text-link {
    color: var(--native-gold)
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: #101116
}

.admin-sidebar {
    background: #15171d;
    border-inline-end: 1px solid var(--native-line);
    padding: 25px 18px
}

.admin-user {
    padding: 22px 8px;
    color: #fff;
    border-bottom: 1px solid var(--native-line);
    margin-bottom: 15px
}

.admin-user small {
    display: block;
    color: var(--native-muted)
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.admin-sidebar nav a,
.nav-logout {
    display: block;
    text-decoration: none;
    color: #c8c8ce;
    padding: 11px 12px;
    border-radius: 8px;
    background: transparent;
    border: 0;
    text-align: start;
    font: inherit;
    cursor: pointer
}

.admin-sidebar nav a:hover,
.nav-logout:hover {
    background: #252730;
    color: #fff
}

.admin-main {
    padding: 32px;
    min-width: 0
}

.admin-top,
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px
}

.admin-top h1 {
    margin: 5px 0;
    font-size: 30px
}

.admin-top small,
.admin-top span {
    color: var(--native-muted)
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.stat-card small {
    color: var(--native-muted)
}

.stat-card strong {
    font-size: 32px;
    color: var(--native-gold)
}

.admin-panel {
    padding: 25px;
    min-width: 0
}

.admin-panel h2 {
    margin: 0
}

.admin-panel p {
    color: var(--native-muted)
}

.table-wrap {
    overflow: auto
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px
}

.data-table th,
.data-table td {
    text-align: start;
    padding: 13px 12px;
    border-bottom: 1px solid var(--native-line);
    font-size: 14px
}

.data-table th {
    color: var(--native-gold);
    font-weight: 700
}

.table-action {
    background: #282a31;
    border: 0;
    color: #eee;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer
}

.table-action.danger {
    color: #ff9a9a
}

.record-dialog {
    width: min(720px, calc(100% - 30px));
    max-height: 85vh;
    overflow: auto;
    background: #171920;
    color: #fff;
    border: 1px solid #454750;
    border-radius: 14px;
    padding: 25px
}

.record-dialog::backdrop {
    background: rgba(0, 0, 0, .7)
}

.record-dialog form {
    display: block
}

.record-dialog .form-grid {
    margin: 20px 0
}

.record-dialog label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #ddd
}

.form-actions {
    display: flex;
    gap: 10px
}

.close-dialog {
    background: none;
    border: 0;
    color: #fff;
    font-size: 26px;
    cursor: pointer
}

@media(max-width:850px) {
    .main-nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0
    }

    .feature-grid,
    .cards-grid,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .admin-shell {
        grid-template-columns: 1fr
    }

    .admin-sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .admin-main {
        padding: 20px
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .hero-orbit {
        opacity: .35;
        inset-inline-end: -180px
    }
}

@media(max-width:560px) {
    .main-nav {
        order: 3;
        width: 100%;
        font-size: 12px
    }

    .main-nav a {
        font-size: 12px
    }

    .hero-content {
        padding-block: 80px
    }

    .feature-grid,
    .cards-grid,
    .steps-grid,
    .contact-layout,
    .form-grid {
        grid-template-columns: 1fr
    }

    .site-footer .container {
        display: block
    }

    .admin-top {
        align-items: flex-start;
        flex-direction: column
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr
    }

    .admin-sidebar nav {
        grid-template-columns: 1fr 1fr
    }

    .admin-main {
        padding: 14px
    }

    .admin-panel {
        padding: 16px
    }
}

/* Administration workspaces */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start
}

.kanban-column {
    background: #111319;
    border: 1px solid var(--native-line);
    border-radius: 12px;
    padding: 14px;
    min-height: 280px
}

.kanban-column h3 {
    font-size: 15px;
    margin: 0 0 14px;
    display: flex;
    justify-content: space-between
}

.kanban-column h3 span {
    background: #292b31;
    padding: 1px 9px;
    border-radius: 20px;
    color: var(--native-gold)
}

.kanban-list {
    display: grid;
    gap: 10px;
    min-height: 210px;
    border-radius: 8px
}

.kanban-list.drop-active {
    background: rgba(178, 139, 61, .08);
    outline: 1px dashed var(--native-gold)
}

.kanban-card {
    background: #202229;
    border: 1px solid #363943;
    border-radius: 10px;
    padding: 13px;
    cursor: grab
}

.kanban-card.dragging {
    opacity: .45
}

.kanban-card-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start
}

.kanban-card strong {
    font-size: 14px
}

.kanban-card p,
.kanban-card small {
    font-size: 12px;
    color: var(--native-muted)
}

.kanban-card-actions button {
    background: transparent;
    color: var(--native-gold);
    border: 0;
    cursor: pointer
}

.priority {
    font-size: 10px;
    border-radius: 20px;
    padding: 2px 7px;
    background: #30333b
}

.priority-high,
.priority-urgent {
    color: #ffaaaa
}

.priority-low {
    color: #a9d9b5
}

.kanban-empty {
    color: var(--native-muted);
    text-align: center;
    padding: 35px 5px;
    font-size: 13px
}

.report-filters,
.permission-toolbar {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
    margin: 20px 0
}

.report-filters label,
.permission-toolbar label {
    display: grid;
    gap: 6px;
    color: #ddd
}

.report-filters input,
.permission-toolbar select {
    background: #0d0f13;
    color: #fff;
    border: 1px solid #34363d;
    border-radius: 8px;
    padding: 11px;
    min-width: 180px;
    font: inherit
}

.report-stats {
    margin-top: 20px
}

.report-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px
}

.report-card {
    background: #111319;
    border: 1px solid var(--native-line);
    border-radius: 12px;
    padding: 20px;
    min-width: 0
}

.report-card h3 {
    margin: 0 0 16px
}

.monthly-bars {
    display: grid;
    gap: 12px
}

.month-row {
    display: grid;
    grid-template-columns: 70px minmax(50px, 1fr) 100px;
    gap: 8px;
    align-items: center;
    font-size: 12px
}

.month-row>span {
    color: var(--native-muted);
    text-align: end
}

.month-track {
    height: 7px;
    background: #292b31;
    border-radius: 10px;
    overflow: hidden
}

.month-track i {
    display: block;
    height: 100%;
    border-radius: 10px
}

.income-bar {
    background: #70b98a
}

.expense-bar {
    background: #d58b70
}

.category-report {
    display: grid;
    gap: 10px
}

.category-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--native-line)
}

.category-row small {
    color: var(--native-muted)
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px
}

.permission-resource {
    background: #111319;
    border: 1px solid var(--native-line);
    border-radius: 10px;
    padding: 15px
}

.permission-resource h3 {
    margin: 0 0 12px;
    font-size: 15px
}

.permission-resource>div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.permission-check {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ddd;
    font-size: 13px
}

.permission-check input {
    accent-color: var(--native-gold)
}

@media(max-width:850px) {
    .kanban-board {
        grid-template-columns: 1fr
    }

    .report-grid {
        grid-template-columns: 1fr
    }

    .permission-grid {
        grid-template-columns: 1fr
    }

    .month-row {
        grid-template-columns: 58px minmax(35px, 1fr) 78px
    }
}

.content-editor {
    display: grid;
    gap: 20px
}

.content-editor fieldset {
    border: 1px solid var(--native-line);
    border-radius: 12px;
    padding: 18px
}

.content-editor legend {
    color: var(--native-gold);
    padding: 0 8px;
    font-weight: 700
}

.content-editor label {
    display: grid;
    gap: 7px;
    color: #ddd
}

.content-editor input,
.content-editor textarea {
    background: #0d0f13;
    border: 1px solid #34363d;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font: inherit;
    width: 100%
}

/* CodeLine parity pass: editable brand, original binary hero atmosphere, responsive footer */
:root {
    --cl-gold: var(--brand-primary, #b28b3d);
    --cl-ink: #0d111b;
    --cl-panel: #151c29;
    --cl-muted: #9aa7b8
}

html[data-theme="light"] {
    --cl-ink: #f5f7fb;
    --cl-panel: #fff;
    --cl-muted: #536174;
    color-scheme: light
}

html[data-theme="dark"] {
    color-scheme: dark
}

.brand-image {
    display: block;
    max-width: 190px;
    max-height: 52px;
    object-fit: contain
}

.brand-word {
    font-weight: 800;
    letter-spacing: -.04em;
    color: inherit
}

.brand-word i,
.footer-brand span {
    color: var(--cl-gold);
    font-style: normal
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 18px;
    cursor: pointer
}

html[data-theme="light"] body {
    background: #f7f8fb;
    color: #172033
}

html[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, .9);
    border-color: #e4e8ef
}

html[data-theme="light"] .site-footer {
    background: var(--brand-secondary, #101827);
    color: #eaf0f8
}

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 650px
}

.hero-section>.container,
.hero-section>.hero-content {
    position: relative;
    z-index: 2
}

.binary-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: .32;
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent)
}

.binary-rain>span {
    position: absolute;
    top: -150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--brand-primary, #b28b3d);
    font: 600 13px/1.1 ui-monospace, monospace;
    text-shadow: 0 0 12px rgba(178, 139, 61, .35);
    animation: cl-binary-fall 18s linear infinite
}

.binary-rain i {
    font-style: normal;
    opacity: .8
}

.binary-rain i:nth-child(even) {
    opacity: .25
}

@keyframes cl-binary-fall {
    to {
        transform: translateY(950px)
    }
}

.hero-orbit {
    position: absolute;
    inset: 8% 2% 4% auto;
    width: min(46vw, 560px);
    height: min(46vw, 560px);
    border: 1px solid rgba(178, 139, 61, .12);
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 1;
    pointer-events: none
}

.hero-orbit:before,
.hero-orbit:after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(178, 139, 61, .2);
    border-radius: 50%;
    animation: cl-orbit 28s linear infinite
}

.hero-orbit:after {
    inset: 25%;
    border-style: dashed;
    animation-direction: reverse;
    animation-duration: 22s
}

.hero-orbit>span {
    position: absolute;
    width: 0px;
    height: 0px;
    border-radius: 50%;
    background: #d5ae59;
    box-shadow: 0 0 18px var(--brand-primary, #b28b3d)
}

.hero-orbit>span:nth-child(1) {
    top: 10%;
    left: 48%
}

.hero-orbit>span:nth-child(2) {
    right: 8%;
    bottom: 32%
}

.hero-orbit>span:nth-child(3) {
    left: 15%;
    bottom: 18%
}

@keyframes cl-orbit {
    to {
        transform: rotate(360deg)
    }
}

.hero-code-core {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(210, 174, 98, .5);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(178, 139, 61, .22), rgba(17, 25, 39, .92));
    color: #e8c77f;
    font: 800 32px ui-monospace, monospace;
    box-shadow: 0 0 65px rgba(178, 139, 61, .22), inset 0 0 25px rgba(178, 139, 61, .12)
}

.hero-float-card {
    position: absolute;
    min-width: 205px;
    padding: 16px 18px;
    border: 1px solid rgba(205, 174, 111, .25);
    border-radius: 16px;
    background: rgba(13, 20, 32, .9);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
    color: #eef2f8;
    backdrop-filter: blur(12px);
    animation: cl-float 6s ease-in-out infinite
}

.hero-float-card small,
.hero-float-card span {
    display: block;
    color: #9ba9bb;
    font-size: 10px;
    letter-spacing: .12em
}

.hero-float-card b {
    display: block;
    margin: 8px 0;
    font-size: 14px
}

.hero-float-card em {
    color: #8bd5a7;
    font-style: normal
}

.hero-float-card>i {
    display: block;
    height: 4px;
    border-radius: 5px;
    background: linear-gradient(90deg, #79c99b 92%, #26384a 92%);
    margin: 12px 0
}

.hero-float-card span {
    letter-spacing: 0;
    font-size: 10px
}

.hero-status {
    top: 14%;
    left: -4%;
    animation-delay: -1s
}

.hero-metric {
    right: -2%;
    bottom: 12%;
    min-width: 155px;
    animation-delay: -3s
}

.hero-metric strong {
    display: block;
    font-size: 34px;
    color: #e9c77c;
    margin: 5px 0
}

.hero-metric strong small {
    display: inline;
    color: #9ba9bb;
    font-size: 12px
}

.metric-bars {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 22px
}

.metric-bars i {
    display: block;
    flex: 1;
    height: var(--h, 80%);
    background: var(--brand-primary, #b28b3d);
    border-radius: 3px
}

.metric-bars i:nth-child(3n) {
    height: 55%
}

.metric-bars i:nth-child(2n) {
    height: 92%
}

.hero-binary-badge {
    position: absolute;
    top: 4%;
    right: 20%;
    font: 700 12px ui-monospace;
    color: #d9bb7d;
    letter-spacing: .25em;
    animation: cl-float 5s ease-in-out infinite
}

@keyframes cl-float {
    50% {
        transform: translateY(-12px)
    }
}

.site-footer {
    padding: 60px 0 22px;
    background: #0b111c;
    color: #eaf0f8
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px
}

.footer-grid>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px
}

.footer-brand {
    font-size: 25px;
    font-weight: 800
}

.footer-grid p {
    max-width: 360px;
    color: #aab5c4;
    line-height: 1.9
}

.footer-grid h3 {
    font-size: 15px;
    margin: 4px 0 8px
}

.footer-grid a,
.footer-grid span {
    color: #aab5c4;
    text-decoration: none;
    font-size: 14px
}

.footer-grid a:hover {
    color: #e2bd70
}

.footer-social {
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 42px;
    padding-top: 20px;
    color: #8794a6;
    font-size: 12px
}

.footer-bottom a {
    color: #c6a45e;
    text-decoration: none
}

.website-settings-panel fieldset {
    border: 1px solid rgba(145, 160, 180, .22);
    border-radius: 16px;
    padding: 22px;
    margin: 22px 0
}

.website-settings-panel legend {
    padding: 0 10px;
    font-weight: 800;
    color: var(--cl-gold)
}

.logo-editor {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: center
}

.logo-preview {
    height: 130px;
    border: 1px dashed rgba(178, 139, 61, .55);
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 25px
}

.logo-preview span {
    color: var(--cl-gold)
}

.logo-preview img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain
}

.logo-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.logo-fields small {
    grid-column: 1/-1;
    color: var(--cl-muted)
}

.check-setting {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 14px 0
}

.check-setting input {
    width: 18px;
    height: 18px
}

.website-settings-panel fieldset .form-grid {
    margin-top: 18px
}

@media(max-width:850px) {
    .hero-orbit {
        opacity: .32;
        width: 72vw;
        height: 72vw;
        right: -15%;
        top: 20%
    }

    .hero-status {
        left: -5%
    }

    .hero-metric {
        right: -8%
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .logo-editor {
        grid-template-columns: 1fr
    }

    .logo-preview {
        max-width: 220px
    }
}

@media(max-width:560px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .footer-bottom {
        flex-direction: column
    }

    .hero-section {
        min-height: 620px
    }

    .hero-orbit {
        width: 90vw;
        height: 90vw;
        right: -35%;
        top: 30%;
        opacity: .22
    }

    .logo-fields {
        grid-template-columns: 1fr
    }

    .header-tools {
        gap: 6px
    }
}

/* CodeLine Arabic/LTR parity and restored original workflow section */
.hero-content {
    width: min(100%, 1160px);
    text-align: start;
    direction: inherit
}

.hero-content h1 {
    white-space: pre-line;
    max-width: 720px;
    line-height: 1.3;
    text-wrap: balance
}

.hero-content p {
    line-height: 2;
    max-width: 620px
}

[dir="rtl"] .hero-orbit {
    inset-inline-start: 2%;
    inset-inline-end: auto
}

[dir="rtl"] .hero-binary-badge {
    right: auto;
    left: 20%;
    direction: ltr
}

[dir="rtl"] .hero-float-card {
    direction: ltr;
    text-align: left
}

[dir="rtl"] .hero-content .eyebrow {
    letter-spacing: 0
}

[dir="rtl"] .hero-content .btn-primary {
    direction: rtl
}

.process-section {
    position: relative;
    overflow: hidden;
    background: var(--native-bg)
}

.process-section .center-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 42px
}

.process-section .center-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin: 12px 0;
    color: var(--native-text)
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    position: relative
}

.process-item {
    position: relative;
    text-align: center;
    min-width: 0;
    padding: 22px 18px 26px;
    border: 1px solid var(--native-line);
    border-radius: 18px;
    background: var(--native-panel);
    transition: transform .22s, border-color .22s, box-shadow .22s
}

.process-item:hover {
    transform: translateY(-5px);
    border-color: var(--brand-primary, #b28b3d);
    box-shadow: 0 18px 45px #0003
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 32px;
    border-radius: 9px;
    background: var(--brand-primary, #b28b3d)18;
    color: #d9b66f;
    font: 700 13px/1 'DM Sans', sans-serif;
    letter-spacing: 1px
}

.process-icon {
    width: 58px;
    height: 58px;
    margin: 18px auto 17px;
    display: grid;
    place-items: center;
    border: 1px solid var(--brand-primary, #b28b3d)44;
    border-radius: 17px;
    background: linear-gradient(145deg, var(--brand-primary, #b28b3d)24, var(--brand-primary, #b28b3d)08);
    color: #d9b66f;
    font-size: 27px
}

.process-item h3 {
    font-size: 18px;
    margin: 0 0 9px;
    color: var(--native-text)
}

.process-item p {
    font-size: 13px;
    line-height: 1.95;
    color: var(--native-muted);
    margin: 0
}

.systems-catalogue-section {
    padding-top: 65px
}

.systems-catalogue-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
    padding: 26px 30px;
    border: 1px solid var(--native-line);
    border-radius: 20px;
    background: linear-gradient(120deg, var(--brand-primary, #b28b3d)12, transparent 75%)
}

.systems-catalogue-heading>div {
    max-width: 650px
}

.systems-catalogue-heading h2 {
    font-size: clamp(25px, 3.4vw, 36px);
    margin: 8px 0;
    color: var(--native-text)
}

.systems-catalogue-heading p {
    margin: 0;
    color: var(--native-muted);
    line-height: 1.9
}

.systems-catalogue-heading .btn-primary {
    white-space: nowrap
}

.system-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.system-product-visual {
    flex: 0 0 260px
}

.system-product-info {
    display: flex;
    flex-direction: column;
    flex: 1
}

.system-product-info>p {
    flex: 1
}

.system-product-footer a {
    display: inline-flex;
    align-items: center;
    gap: 5px
}

[dir="rtl"] .systems-page-hero {
    text-align: right
}

[dir="rtl"] .systems-page-hero .eyebrow {
    letter-spacing: 0
}

[dir="rtl"] .systems-page-hero p {
    margin-inline-start: 0;
    margin-inline-end: 0
}

[dir="rtl"] .systems-catalogue-heading {
    text-align: right
}

[dir="rtl"] .system-product-info {
    text-align: right
}

[dir="rtl"] .system-product-mock {
    transform: perspective(800px) rotateY(4deg)
}

html[data-theme="light"] .process-section {
    background: #f7f8fb
}

html[data-theme="light"] .process-item {
    background: #fff;
    border-color: #e4e8ef
}

html[data-theme="light"] .process-section .center-heading h2,
html[data-theme="light"] .process-item h3,
html[data-theme="light"] .systems-catalogue-heading h2 {
    color: #172033
}

html[data-theme="light"] .process-item p,
html[data-theme="light"] .systems-catalogue-heading p {
    color: #657187
}

html[data-theme="light"] .systems-catalogue-heading {
    border-color: #e4e8ef;
    background: linear-gradient(120deg, var(--brand-primary, #b28b3d)12, #fff 75%)
}

@media(max-width:850px) {
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .systems-catalogue-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .hero-orbit {
        opacity: .25
    }
}

@media(max-width:560px) {
    .process-grid {
        gap: 12px
    }

    .process-item {
        padding: 17px 12px
    }

    .process-item h3 {
        font-size: 15px
    }

    .process-item p {
        font-size: 12px
    }

    .systems-catalogue-heading {
        padding: 21px
    }

    .systems-catalogue-heading .btn-primary {
        width: 100%
    }

    [dir="rtl"] .hero-orbit {
        left: -35%;
        right: auto
    }

    .hero-content {
        padding-block: 76px
    }

    .hero-content h1 {
        font-size: clamp(34px, 10vw, 48px)
    }
}

.hero-image-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 10px
}

.hero-image-card {
    display: grid;
    gap: 9px;
    padding: 16px;
    border: 1px solid rgba(145, 160, 180, .22);
    border-radius: 14px;
    background: rgba(145, 160, 180, .045)
}

.hero-image-card strong {
    font-size: 13px
}

.hero-image-card small {
    color: var(--cl-muted);
    line-height: 1.7
}

.hero-image-card input[type="file"],
.hero-image-card input[type="text"] {
    width: 100%
}

.hero-image-preview {
    min-height: 120px;
    border: 1px dashed rgba(178, 139, 61, .45);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--cl-muted);
    overflow: hidden;
    background: rgba(0, 0, 0, .03);
    font-size: 11px
}

.hero-image-preview img {
    width: 100%;
    height: 120px;
    object-fit: contain
}

.hero-image-card input:not([type="file"]) {
    width: 100%;
    border: 1px solid #dfe4ee;
    border-radius: 10px;
    background: #fff;
    color: #252b39;
    padding: 10px 11px;
    font: inherit;
    font-size: 12px
}

.hero-image-card input:not([type="file"]):focus {
    border-color: var(--site-primary, #b28b3d);
    box-shadow: 0 0 0 3px #b28b3d17;
    outline: none
}

@media(max-width:760px) {
    .hero-image-settings {
        grid-template-columns: 1fr
    }
}