:root {
    /* Palette inspired by the visual character of HRSD identity; this portal is not an official ministry product. */
    --green-950: #073e32;
    --green-900: #0a5744;
    --green-800: #0d6c50;
    --green-700: #0f7b5b;
    --green-600: #178d68;
    --green-500: #28a47a;
    --green-200: #bfe5d5;
    --green-100: #e8f5ef;
    --green-50: #f3faf7;
    --gold: #c7a45b;
    --gold-soft: #f4ecd9;
    --brown: #725a33;
    --ink: #18312b;
    --text: #334b45;
    --muted: #6d7f7a;
    --line: #dce7e2;
    --surface: #ffffff;
    --bg: #f6f9f7;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --success: #087a52;
    --success-bg: #ecfdf3;
    --warning: #9a6700;
    --warning-bg: #fff8e1;
    --shadow-sm: 0 5px 20px rgba(8, 67, 52, .06);
    --shadow-md: 0 18px 50px rgba(8, 67, 52, .10);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--green-800); text-decoration: none; }
a:hover { color: var(--green-600); }
img { max-width: 100%; }
[hidden] { display: none !important; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.container.narrow { width: min(calc(100% - 40px), 760px); }
.section { padding: 76px 0; }
.section-soft { background: var(--green-50); border-block: 1px solid var(--green-100); }
.center-text { text-align: center; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(220, 231, 226, .85);
    backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.brand strong { font-size: 16px; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px 13px 18px 13px;
    background: linear-gradient(145deg, var(--green-700), var(--green-950));
    transform: rotate(-7deg);
    box-shadow: 0 8px 22px rgba(13,108,80,.2);
}
.brand-mark::before, .brand-mark::after, .brand-mark span {
    content: "";
    position: absolute;
    background: var(--gold);
    border-radius: 9px;
}
.brand-mark::before { width: 10px; height: 24px; right: 9px; top: 9px; }
.brand-mark::after { width: 9px; height: 18px; right: 21px; top: 15px; opacity: .85; }
.brand-mark span { width: 7px; height: 12px; right: 31px; top: 21px; opacity: .65; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a:not(.btn) { color: var(--text); font-weight: 600; font-size: 14px; }
.main-nav > a:not(.btn):hover { color: var(--green-700); }
.nav-toggle, .admin-menu-toggle {
    display: none;
    border: 0;
    background: var(--green-50);
    color: var(--green-900);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 21px;
}

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 12px;
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary {
    color: #fff;
    background: var(--green-800);
    border-color: var(--green-800);
    box-shadow: 0 7px 18px rgba(13, 108, 80, .16);
}
.btn-primary:hover { color: #fff; background: var(--green-900); border-color: var(--green-900); }
.btn-outline { color: var(--green-800); border-color: #b8d6ca; background: #fff; }
.btn-outline:hover { background: var(--green-50); border-color: var(--green-600); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { color: var(--green-900); background: var(--green-50); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 13px 23px; font-size: 15px; }
.btn-block { width: 100%; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 86px;
    background:
        radial-gradient(circle at 12% 17%, rgba(199,164,91,.16), transparent 25%),
        radial-gradient(circle at 84% 76%, rgba(40,164,122,.13), transparent 28%),
        linear-gradient(135deg, #fff 0%, #f3faf7 100%);
    border-bottom: 1px solid var(--green-100);
}
.hero::after {
    content: "";
    position: absolute;
    width: 370px;
    height: 370px;
    left: -180px;
    bottom: -220px;
    border: 54px solid rgba(15, 123, 91, .055);
    border-radius: 50%;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.eyebrow {
    display: inline-block;
    color: var(--green-700);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1px;
    margin-bottom: 12px;
}
.eyebrow-light { color: #d8efe6; }
.hero h1, .page-hero h1 {
    color: var(--ink);
    line-height: 1.3;
    margin: 0 0 20px;
    font-size: clamp(38px, 5vw, 64px);
    letter-spacing: -.8px;
}
.hero h1 span { color: var(--green-700); position: relative; }
.hero-copy > p { max-width: 690px; font-size: 18px; color: #526862; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions.center { justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.hero-trust span::first-letter { color: var(--green-600); }

.hero-panel {
    background: rgba(255,255,255,.93);
    border: 1px solid var(--green-100);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    position: relative;
}
.hero-panel::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 32px;
    width: 86px;
    height: 4px;
    background: var(--gold);
    border-radius: 0 0 4px 4px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-head span { color: var(--muted); font-size: 13px; }
.panel-head strong { color: var(--ink); }
.process-list { list-style: none; padding: 6px 0 0; margin: 0; }
.process-list li { position: relative; display: flex; gap: 14px; padding: 17px 0; }
.process-list li:not(:last-child)::after { content: ""; position: absolute; right: 18px; top: 53px; bottom: -5px; width: 1px; background: var(--green-200); }
.process-list li > span {
    position: relative; z-index: 1; width: 37px; height: 37px; flex: 0 0 37px;
    display: grid; place-items: center; border-radius: 50%; background: var(--green-100);
    color: var(--green-800); font-size: 11px; font-weight: 800;
}
.process-list div { display: flex; flex-direction: column; }
.process-list strong { color: var(--ink); font-size: 15px; }
.process-list small { color: var(--muted); margin-top: 2px; }

.section-heading { max-width: 680px; margin-bottom: 36px; }
.section-heading h2, .split-feature h2, .cta-card h2 {
    margin: 0 0 12px; color: var(--ink); line-height: 1.45; font-size: clamp(28px, 3vw, 38px);
}
.section-heading p, .split-feature p { color: var(--muted); margin: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 25px; box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--green-200); box-shadow: var(--shadow-md); }
.service-icon { width: 45px; height: 45px; border-radius: 13px; background: var(--green-50); display: grid; place-items: center; font-size: 20px; margin-bottom: 20px; }
.service-card h3 { margin: 0 0 7px; color: var(--ink); font-size: 18px; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; }

.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.feature-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-checks div {
    padding: 15px 16px 15px 42px; background: #fff; border: 1px solid var(--green-100);
    border-radius: 13px; position: relative; font-weight: 700; color: var(--ink);
}
.feature-checks div::before {
    content: "✓"; position: absolute; left: 14px; top: 15px; color: var(--green-700);
    width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--green-100); font-size: 11px;
}
.cta-section { padding-top: 28px; }
.cta-card {
    background: linear-gradient(120deg, var(--green-950), var(--green-700));
    border-radius: 26px; color: #fff; padding: 38px 42px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
    box-shadow: var(--shadow-md);
}
.cta-card h2 { color: #fff; margin-bottom: 5px; }
.cta-card p { margin: 0; color: #d8efe6; }

.site-footer { background: #062e26; color: #cfdfda; padding: 52px 0 24px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; }
.footer-inner strong { color: #fff; }
.footer-inner p { color: #9fb8b0; margin: 6px 0 0; }
.footer-links { display: flex; align-items: flex-start; gap: 24px; }
.footer-links a { color: #cfdfda; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.09); padding-top: 20px; margin-top: 30px; color: #8fa9a1; font-size: 12px; }

.page-hero {
    background: linear-gradient(135deg, #fff, var(--green-50));
    border-bottom: 1px solid var(--green-100);
    padding: 68px 0;
}
.page-hero.compact { padding: 54px 0; }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 8px; }
.page-hero p { color: var(--muted); margin: 0; max-width: 720px; }

.flash-wrap { padding-top: 20px; }
.alert { border-radius: 13px; padding: 13px 16px; border: 1px solid; margin-bottom: 18px; font-size: 14px; }
.alert-success { color: #06603f; border-color: #b7e4cb; background: var(--success-bg); }
.alert-danger { color: #8a1c13; border-color: #f3c3bd; background: var(--danger-bg); }
.alert ul { margin: 7px 0 0; padding-right: 20px; }

.form-section { padding-top: 42px; }
.wizard { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; }
.wizard-sidebar {
    position: sticky; top: 104px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 18px; box-shadow: var(--shadow-sm);
}
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.progress-meta strong { color: var(--green-800); }
.progress-track { height: 7px; background: var(--green-100); border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; width: 11.111%; height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green-800)); border-radius: inherit; transition: width .25s ease; }
.progress-track span.progress-1 { width: 11.111%; }
.progress-track span.progress-2 { width: 22.222%; }
.progress-track span.progress-3 { width: 33.333%; }
.progress-track span.progress-4 { width: 44.444%; }
.progress-track span.progress-5 { width: 55.556%; }
.progress-track span.progress-6 { width: 66.667%; }
.progress-track span.progress-7 { width: 77.778%; }
.progress-track span.progress-8 { width: 88.889%; }
.progress-track span.progress-9 { width: 100.000%; }
.wizard-nav { list-style: none; margin: 24px 0 0; padding: 0; }
.wizard-nav li + li { margin-top: 4px; }
.wizard-nav button {
    width: 100%; border: 0; background: transparent; text-align: right; color: var(--muted); cursor: pointer;
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; font-weight: 600; font-size: 13px;
}
.wizard-nav button span {
    width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 11px;
}
.wizard-nav li.active button { color: var(--green-900); background: var(--green-50); }
.wizard-nav li.active button span { color: #fff; background: var(--green-700); border-color: var(--green-700); }
.wizard-nav li.done button span { color: var(--green-800); background: var(--green-100); border-color: var(--green-200); }

.wizard-content, .form-card, .success-card, .tracking-result {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.wizard-content { padding: 32px; min-height: 670px; }
.wizard-step { min-height: 515px; }
.step-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.step-head > span { color: var(--green-700); font-weight: 800; font-size: 12px; }
.step-head h2 { margin: 4px 0 5px; color: var(--ink); font-size: 26px; }
.step-head p { margin: 0; color: var(--muted); font-size: 14px; }

.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.two.nested { gap: 18px; }
.field.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { color: var(--ink); font-weight: 700; font-size: 13px; }
.field > span b { color: var(--danger); }
.field > span small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
    width: 100%; border: 1px solid #cedbd6; background: #fff; color: var(--ink);
    border-radius: 11px; padding: 11px 13px; outline: 0; transition: border-color .16s ease, box-shadow .16s ease;
}
.field input { min-height: 47px; }
.field textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
.field select { min-height: 47px; cursor: pointer; }
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(23, 141, 104, .11);
}
.field input:invalid:not(:placeholder-shown) { border-color: #d9a19a; }
.field-error { color: var(--danger); font-size: 11px; }
.block-error { display: block; margin-top: 7px; }
.hint { color: var(--muted); font-size: 11px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.choice-card {
    position: relative; cursor: pointer; border: 1px solid var(--line); border-radius: 14px; padding: 17px;
    min-height: 105px; background: #fff; transition: border .15s ease, background .15s ease, box-shadow .15s ease;
}
.choice-card:hover { border-color: var(--green-200); background: var(--green-50); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card strong { display: block; color: var(--ink); margin-bottom: 3px; padding-left: 28px; }
.choice-card small { color: var(--muted); }
.choice-check {
    position: absolute; left: 15px; top: 15px; width: 23px; height: 23px; display: grid; place-items: center;
    border-radius: 50%; color: transparent; border: 1px solid var(--line); background: #fff; font-size: 11px;
}
.choice-card:has(input:checked) { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 2px rgba(23,141,104,.08); }
.choice-card:has(input:checked) .choice-check { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.conditional-box {
    margin-top: 20px; padding: 17px; border-radius: 14px; background: #f9fbfa; border: 1px solid var(--line);
    display: grid; gap: 16px;
}
.switch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.switch-row {
    cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 15px;
    border-radius: 12px; border: 1px solid var(--line); background: #fff;
}
.switch-row input, .consent-row input { width: 18px; height: 18px; accent-color: var(--green-700); flex: 0 0 auto; }
.switch-row > span { display: flex; flex-direction: column; }
.switch-row strong { color: var(--ink); font-size: 13px; }
.switch-row small { color: var(--muted); font-size: 11px; }

.field-group { border: 0; margin: 0 0 25px; padding: 0; }
.field-group legend { color: var(--ink); font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.compact-checks { grid-template-columns: repeat(3, minmax(0,1fr)); }
.check-card {
    display: flex; gap: 9px; align-items: center; padding: 11px 12px; border: 1px solid var(--line);
    border-radius: 10px; cursor: pointer; background: #fff; font-size: 12px; min-height: 46px;
}
.check-card:hover { background: var(--green-50); border-color: var(--green-200); }
.check-card input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--green-700); }
.check-card:has(input:checked) { background: var(--green-50); border-color: var(--green-500); color: var(--green-900); }

.upload-box {
    margin-top: 20px; padding: 22px; border: 1px dashed #a9cbbd; border-radius: 15px; background: var(--green-50);
}
.upload-box > label { color: var(--ink); }
.upload-box p { margin: 3px 0 12px; color: var(--muted); font-size: 13px; }
.upload-box input { width: 100%; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.upload-box > small { display: block; margin-top: 8px; color: var(--muted); }
.file-list { display: grid; gap: 6px; margin-top: 12px; }
.file-list span { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 11px; color: var(--muted); }

.review-card { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.review-row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 13px 16px; }
.review-row + .review-row { border-top: 1px solid var(--line); }
.review-row span { color: var(--muted); font-size: 13px; }
.review-row strong { color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.privacy-note {
    margin-top: 20px; padding: 14px 16px; background: var(--gold-soft); border: 1px solid #e7d6af;
    border-radius: 12px; color: #5b4a2c;
}
.privacy-note strong { color: var(--brown); font-size: 13px; }
.privacy-note p { margin: 4px 0 0; font-size: 12px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: var(--ink); font-size: 13px; cursor: pointer; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.wizard-actions .btn { min-width: 110px; }
.btn-submit { margin-right: auto; }

.form-card { padding: 25px; }
.track-form { margin-bottom: 22px; }
.tracking-result { padding: 28px; }
.result-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.result-head h2 { color: var(--ink); margin: 0 0 3px; }
.result-head p { margin: 0; color: var(--muted); }
.status {
    display: inline-flex; align-items: center; justify-content: center; border-radius: 99px;
    padding: 5px 10px; white-space: nowrap; font-size: 11px; font-weight: 800;
    color: #485a55; background: #edf2f0;
}
.status-new { color: #0c6550; background: #e5f5ef; }
.status-contacted { color: #1d5d82; background: #e9f4fb; }
.status-studying { color: #72560a; background: #fff6d8; }
.status-awaiting_client { color: #7a4c13; background: #fff0db; }
.status-agreed { color: #3f5d19; background: #edf7df; }
.status-in_progress { color: #3157a1; background: #eaf0ff; }
.status-testing { color: #6546a5; background: #f0ebff; }
.status-completed { color: #087447; background: #e6f7ee; }
.status-cancelled { color: #8d2920; background: #fceae8; }

.tracking-timeline { margin-top: 25px; }
.timeline-item { position: relative; display: flex; gap: 13px; padding-bottom: 21px; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; right: 8px; top: 19px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item > span { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: #dce7e2; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line); flex: 0 0 17px; }
.timeline-item.done > span, .timeline-item.current > span { background: var(--green-600); box-shadow: 0 0 0 1px var(--green-500); }
.timeline-item div { display: flex; flex-direction: column; }
.timeline-item strong { color: var(--ink); font-size: 13px; }
.timeline-item small { color: var(--muted); font-size: 11px; }
.success-page { min-height: 67vh; display: flex; align-items: center; }
.success-card { padding: 42px; text-align: center; }
.success-icon {
    width: 70px; height: 70px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%;
    background: var(--green-100); color: var(--green-800); font-size: 31px; font-weight: 800;
}
.success-card h1 { color: var(--ink); margin: 0 0 8px; }
.success-card > p { color: var(--muted); margin: 0 auto 24px; max-width: 520px; }
.tracking-code { background: var(--green-50); border: 1px solid var(--green-100); border-radius: 15px; padding: 20px; margin: 22px 0; }
.tracking-code > span { display: block; color: var(--muted); font-size: 11px; }
.tracking-code > strong { display: block; color: var(--green-900); font-size: 24px; direction: ltr; letter-spacing: 1px; margin: 5px 0 12px; }
.success-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.success-summary > div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.success-summary span, .success-summary strong { display: block; }
.success-summary span { color: var(--muted); font-size: 11px; }
.success-summary strong { color: var(--ink); font-size: 13px; margin-top: 3px; }

/* Admin */
.admin-body { background: #f4f7f5; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0,1fr); }
.admin-sidebar {
    position: fixed; right: 0; top: 0; bottom: 0; width: 252px; z-index: 60;
    background: var(--green-950); color: #fff; padding: 22px 17px; display: flex; flex-direction: column;
    box-shadow: -8px 0 28px rgba(7,62,50,.08);
}
.admin-brand { color: #fff; padding: 0 5px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand:hover { color: #fff; }
.admin-brand small { color: #a9c8be; }
.admin-brand .brand-mark { width: 38px; height: 38px; flex-basis: 38px; box-shadow: none; background: var(--green-700); }
.admin-nav { display: grid; gap: 5px; margin-top: 22px; }
.admin-nav a {
    display: flex; align-items: center; gap: 11px; color: #c9ddd7; padding: 10px 12px; border-radius: 11px; font-weight: 600; font-size: 13px;
}
.admin-nav a span { width: 22px; text-align: center; opacity: .8; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(255,255,255,.09); }
.admin-nav a.active { box-shadow: inset -3px 0 0 var(--gold); }
.sidebar-user { margin-top: auto; padding: 16px 5px 10px; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 10px; align-items: center; min-width: 0; }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 800; }
.sidebar-user > div:last-child { min-width: 0; display: flex; flex-direction: column; }
.sidebar-user strong { font-size: 12px; }
.sidebar-user small { color: #92b2a8; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-sidebar { width: 100%; margin-top: 5px; background: rgba(255,255,255,.07); color: #d8e6e2; border-color: rgba(255,255,255,.1); min-height: 38px; font-size: 11px; }
.btn-sidebar:hover { background: rgba(255,255,255,.12); color: #fff; }

.admin-main { grid-column: 2; min-width: 0; }
.admin-topbar {
    min-height: 72px; position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); padding: 0 28px; display: flex; align-items: center; gap: 15px;
}
.admin-topbar > div { display: flex; flex-direction: column; margin-left: auto; }
.admin-topbar strong { color: var(--ink); font-size: 14px; }
.admin-topbar small { color: var(--muted); font-size: 10px; }
.admin-content { padding: 28px; width: min(100%, 1500px); margin-inline: auto; }
.dashboard-welcome, .page-actions-head, .project-detail-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px;
}
.dashboard-welcome h1, .page-actions-head h1, .project-detail-head h1 { color: var(--ink); margin: 0 0 5px; line-height: 1.4; font-size: 28px; }
.dashboard-welcome p, .page-actions-head p { margin: 0; color: var(--muted); font-size: 13px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card {
    background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 18px; display: flex; gap: 13px; align-items: center; box-shadow: var(--shadow-sm);
}
.stat-card > div { display: flex; flex-direction: column; }
.stat-card small { color: var(--muted); font-size: 11px; }
.stat-card strong { color: var(--ink); font-size: 26px; line-height: 1.4; }
.stat-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 11px; background: #eef3f1; color: #536a63; font-weight: 800; }
.stat-icon.accent { color: var(--green-700); background: var(--green-100); }
.stat-icon.gold { color: #8a671f; background: var(--gold-soft); }
.stat-icon.success { color: #087447; background: #e6f7ee; }

.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card-head h2 { margin: 0; color: var(--ink); font-size: 16px; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.card-head > a { font-size: 11px; font-weight: 700; }
.status-list { display: grid; gap: 5px; }
.status-list a { display: flex; align-items: center; justify-content: space-between; color: var(--text); padding: 7px 4px; font-size: 12px; }
.status-list a:hover { color: var(--green-700); }
.status-list a > span { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #c9d5d1; }
.status-bg-new { background: #2b9b75; }
.status-bg-contacted { background: #5399bf; }
.status-bg-studying { background: #d1a72d; }
.status-bg-awaiting_client { background: #d98b2b; }
.status-bg-agreed { background: #74a63b; }
.status-bg-in_progress { background: #5579c7; }
.status-bg-testing { background: #8065bd; }
.status-bg-completed { background: #26925f; }
.status-bg-cancelled { background: #c35e55; }

.table-wrap { overflow-x: auto; margin-inline: -6px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { padding: 12px 10px; text-align: right; border-bottom: 1px solid #edf1ef; vertical-align: middle; font-size: 12px; }
.data-table th { color: var(--muted); font-size: 10px; font-weight: 800; background: #fbfcfb; }
.data-table tbody tr:hover { background: #fbfdfc; }
.data-table td > small, .data-table td > strong { display: block; }
.data-table td > small { color: var(--muted); font-size: 9px; margin-top: 1px; }
.table-primary { color: var(--ink); font-weight: 800; display: block; }
.table-primary:hover { color: var(--green-700); }
.icon-action { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--green-50); color: var(--green-800); font-weight: 800; }
.empty-state { min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.table-meta { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.table-meta strong { color: var(--ink); }
.priority { padding: 4px 8px; border-radius: 99px; background: #f0f3f2; color: #50625d; font-size: 10px; font-weight: 800; }
.priority-high { background: #fff0db; color: #8c5817; }
.priority-urgent { background: #fceae8; color: #992f25; }
.priority-low { background: #eef5f2; color: #567269; }

.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.filters .field input, .filters .field select { min-height: 42px; padding-block: 8px; font-size: 12px; }
.filter-actions { display: flex; gap: 7px; padding-bottom: 1px; }
.customer-filters { grid-template-columns: minmax(260px, 600px) auto; }
.table-card { margin-top: 14px; }
.pagination-wrap { display: flex; justify-content: center; padding-top: 18px; }
.pagination { list-style: none; padding: 0; margin: 0; display: flex; gap: 5px; }
.page-link {
    min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line);
    border-radius: 8px; color: var(--text); background: #fff; padding: 0 9px; font-size: 11px;
}
.page-item.active .page-link { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.page-item.disabled .page-link { opacity: .45; pointer-events: none; }

.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 11px; }
.detail-actions { display: flex; gap: 8px; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.project-main { display: grid; gap: 14px; min-width: 0; }
.detail-section { padding: 21px; }
.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.details-grid > div { padding: 12px 14px; min-width: 0; }
.details-grid > div:nth-child(odd) { border-left: 1px solid var(--line); }
.details-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.details-grid dt { color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.details-grid dd { color: var(--ink); font-size: 12px; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.long-details { display: grid; gap: 16px; }
.long-details + .long-details { margin-top: 16px; }
.long-details h3, .subheading { color: var(--ink); font-size: 12px; margin: 0 0 4px; }
.long-details p { color: var(--text); font-size: 12px; margin: 0; white-space: normal; overflow-wrap: anywhere; }
.subheading { margin-top: 20px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { padding: 5px 9px; border-radius: 8px; background: var(--green-50); color: var(--green-900); border: 1px solid var(--green-100); font-size: 10px; }
.tag-list .muted-tag { background: #f7f8f8; color: var(--muted); border-color: var(--line); }
.detail-note { margin-top: 12px; padding: 12px; background: #fafcfb; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }
.detail-note p { margin: 3px 0 0; }
.attachment-list { display: grid; gap: 7px; }
.attachment-list a { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.attachment-list a:hover { background: var(--green-50); border-color: var(--green-200); }
.file-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; background: var(--green-100); color: var(--green-800); }
.attachment-list a div { display: flex; flex-direction: column; min-width: 0; }
.attachment-list strong { color: var(--ink); font-size: 11px; overflow-wrap: anywhere; }
.attachment-list small { color: var(--muted); font-size: 9px; }
.sticky-card { position: sticky; top: 93px; }
.sticky-card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.audit-timeline { display: grid; }
.audit-item { position: relative; display: flex; gap: 11px; padding-bottom: 17px; }
.audit-item:not(:last-child)::after { content: ""; position: absolute; right: 6px; top: 15px; bottom: 0; width: 1px; background: var(--line); }
.audit-dot { width: 13px; height: 13px; flex: 0 0 13px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--green-300, #93cbb5); background: var(--green-600); border-radius: 50%; z-index: 1; }
.audit-item strong { color: var(--ink); font-size: 11px; }
.audit-item p { margin: 1px 0; color: var(--text); font-size: 10px; }
.audit-item small { color: var(--muted); font-size: 9px; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 760px) 1fr; gap: 18px; }
.form-divider { display: flex; align-items: center; gap: 10px; margin: 7px 0; color: var(--muted); font-size: 11px; }
.form-divider::before, .form-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.security-note { align-self: start; }
.security-note h2 { color: var(--ink); font-size: 16px; margin: 12px 0 5px; }
.security-note p { color: var(--muted); font-size: 12px; margin: 0; }

/* Login */
.login-page { background: #f4f8f6; min-height: 100vh; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: .95fr 1.05fr; }
.login-brand {
    background:
      radial-gradient(circle at 18% 20%, rgba(199,164,91,.18), transparent 27%),
      linear-gradient(145deg, var(--green-950), var(--green-700));
    padding: 52px; color: #fff; display: flex; flex-direction: column;
}
.login-brand .brand { color: #fff; }
.login-brand .brand small { color: #b8d3ca; }
.login-message { margin: auto 0; max-width: 520px; }
.login-message h1 { margin: 0 0 15px; color: #fff; font-size: clamp(34px, 4vw, 54px); line-height: 1.35; }
.login-message p { color: #c3d9d2; font-size: 16px; }
.login-form-wrap { display: grid; place-items: center; padding: 40px; }
.login-form { width: min(100%, 440px); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-md); }
.login-form h2 { color: var(--ink); margin: 0 0 3px; font-size: 28px; }
.login-form > p { color: var(--muted); margin: 0 0 23px; font-size: 13px; }
.login-form .field + .field { margin-top: 14px; }
.login-remember { margin-block: 16px; }
.back-link { display: block; margin-top: 14px; text-align: center; color: var(--muted); font-size: 11px; }

.login-options { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-block: 16px; }
.login-options .login-remember { margin: 0; }
.login-options-single { justify-content: flex-end; }
.login-help-link { color: var(--green-700); font-size: 12px; font-weight: 700; text-decoration: none; }
.login-help-link:hover { text-decoration: underline; }
.login-alert { border-radius: 11px; padding: 11px 13px; margin: 0 0 17px; font-size: 12px; line-height: 1.8; }
.login-alert-success { background: #eef8f3; border: 1px solid #cfe8dc; color: #176443; }
.login-alert-error { background: #fff1f1; border: 1px solid #f1caca; color: #a93434; }
.otp-input { text-align: center; font-size: 28px !important; font-weight: 800; letter-spacing: 10px; direction: ltr; }
.auth-secondary-form { margin-top: 13px; text-align: center; }
.auth-link-button { appearance: none; border: 0; background: transparent; padding: 4px; color: var(--green-700); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.auth-link-button:hover { text-decoration: underline; }
.password-requirements { margin: 12px 0 16px; padding: 10px 12px; border-radius: 10px; background: #f6f8f7; color: var(--muted); font-size: 11px; line-height: 1.8; }

/* Error */
.error-page { min-height: 64vh; display: flex; align-items: center; }
.error-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 44px; text-align: center; box-shadow: var(--shadow-sm); }
.error-code { display: block; color: var(--green-700); font-size: 48px; line-height: 1; margin-bottom: 15px; }
.error-card h1 { color: var(--ink); margin: 0 0 5px; }
.error-card p { color: var(--muted); margin: 0 0 22px; }

/* Print */
.print-page { background: #e9eeeb; padding: 24px; }
.print-toolbar { width: min(100%, 900px); margin: 0 auto 12px; display: flex; justify-content: flex-end; gap: 8px; }
.print-document { width: min(100%, 900px); margin: 0 auto; background: #fff; padding: 42px; box-shadow: var(--shadow-md); }
.print-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 2px solid var(--green-800); }
.print-header > div:last-child { text-align: left; display: flex; flex-direction: column; }
.print-header > div:last-child small { color: var(--muted); }
.print-title { padding: 25px 0 18px; }
.print-title h1 { color: var(--ink); margin: 8px 0 1px; font-size: 28px; }
.print-title p { color: var(--muted); margin: 0; }
.print-section { padding: 18px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.print-section h2 { color: var(--green-900); font-size: 16px; margin: 0 0 13px; }
.plain-list { margin: 0; padding-right: 18px; font-size: 12px; }
.internal-print { background: #faf9f5; padding: 18px; border: 1px solid #e8dfcb; border-radius: 10px; margin-top: 12px; }
.print-footer { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }

@media (max-width: 1100px) {
    .hero-grid { gap: 38px; }
    .wizard { grid-template-columns: 230px minmax(0,1fr); }
    .check-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .project-layout { grid-template-columns: minmax(0, 1fr); }
    .sticky-card { position: static; }
    .project-side { order: -1; }
}

@media (max-width: 860px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .section { padding: 56px 0; }
    .nav-toggle { display: grid; place-items: center; margin-right: auto; }
    .main-nav {
        display: none; position: absolute; top: 78px; right: 14px; left: 14px; background: #fff;
        border: 1px solid var(--line); box-shadow: var(--shadow-md); border-radius: 14px; padding: 14px; flex-direction: column; align-items: stretch; gap: 5px;
    }
    .main-nav.open { display: flex; }
    .main-nav > a { padding: 8px 10px; }
    .hero { padding: 64px 0; }
    .hero-grid, .split-feature { grid-template-columns: 1fr; }
    .hero-panel { max-width: 620px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .wizard { grid-template-columns: 1fr; }
    .wizard-sidebar { position: static; padding: 15px; }
    .wizard-nav { display: none; }
    .wizard-content { min-height: 0; padding: 23px; }
    .wizard-step { min-height: 0; }
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .admin-shell { display: block; }
    .admin-main { margin-right: 0; }
    .admin-sidebar { transform: translateX(110%); transition: transform .22s ease; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-menu-toggle { display: grid; place-items: center; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .header-inner { min-height: 70px; }
    .main-nav { top: 70px; }
    .brand strong { font-size: 14px; }
    .brand small { display: none; }
    .brand-mark { width: 37px; height: 37px; flex-basis: 37px; }
    .hero h1 { font-size: 37px; }
    .hero-copy > p { font-size: 15px; }
    .hero-actions .btn { width: 100%; }
    .hero-trust { display: grid; gap: 7px; }
    .service-grid, .feature-checks, .form-grid.two, .switch-grid, .choice-grid, .check-grid, .success-summary { grid-template-columns: 1fr; }
    .cta-card, .footer-inner, .result-head, .dashboard-welcome, .page-actions-head, .project-detail-head { flex-direction: column; align-items: stretch; }
    .footer-links { flex-direction: column; gap: 8px; }
    .wizard-content { padding: 18px; border-radius: 14px; }
    .step-head h2 { font-size: 22px; }
    .review-row { grid-template-columns: 1fr; gap: 2px; }
    .wizard-actions { position: sticky; bottom: 0; background: #fff; padding-bottom: 3px; z-index: 5; }
    .success-card, .tracking-result { padding: 23px; }
    .tracking-code > strong { font-size: 18px; }
    .admin-content { padding: 18px 13px; }
    .admin-topbar { padding-inline: 13px; }
    .admin-topbar .btn { display: none; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .stat-card { padding: 13px; }
    .stat-card strong { font-size: 21px; }
    .filters, .customer-filters { grid-template-columns: 1fr; }
    .filter-actions .btn { flex: 1; }
    .detail-actions { flex-direction: column; }
    .details-grid { grid-template-columns: 1fr; }
    .details-grid > div:nth-child(odd) { border-left: 0; }
    .details-grid > div + div { border-top: 1px solid var(--line); }
    .login-form-wrap { padding: 18px; }
    .login-form { padding: 24px 19px; }
    .print-page { padding: 0; background: #fff; }
    .print-document { padding: 24px 18px; box-shadow: none; }
}

@media print {
    @page { size: A4; margin: 12mm; }
    body.print-page { background: #fff; padding: 0; font-size: 10pt; }
    .no-print { display: none !important; }
    .print-document { width: 100%; max-width: none; padding: 0; box-shadow: none; }
    .print-header .brand-mark { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .status, .tag-list span { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Team, notifications and quotation workflow */
.topbar-actions{display:flex;align-items:center;gap:10px}.notification-bell{position:relative;width:42px;height:42px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;font-size:18px}.notification-bell span,.nav-badge{min-width:19px;height:19px;padding:0 5px;display:inline-grid;place-items:center;border-radius:999px;background:var(--danger);color:#fff;font-size:10px;font-weight:800}.notification-bell span{position:absolute;top:-6px;left:-6px}.nav-badge{margin-right:auto}.admin-nav a{position:relative}.form-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.inline-edit-form{display:grid;grid-template-columns:1fr 1.3fr 1fr .8fr 1.3fr auto;gap:8px;padding:12px 0}.inline-edit-form input,.inline-edit-form select{min-width:0}.notification-list{display:grid;gap:9px}.notification-item{border:1px solid var(--line);border-radius:13px;overflow:hidden}.notification-item.unread{border-color:var(--green-200);background:var(--green-50)}.notification-item button{width:100%;border:0;background:transparent;text-align:right;padding:15px;display:grid;gap:3px;cursor:pointer;color:var(--text)}.notification-item strong{color:var(--ink)}.notification-item small{color:var(--muted)}.assignment-chips{display:flex;flex-wrap:wrap;gap:10px}.assignment-chip{display:flex;align-items:center;gap:10px;border:1px solid var(--green-200);background:var(--green-50);padding:9px 12px;border-radius:12px}.assignment-chip>div{display:grid}.assignment-chip small{color:var(--muted)}.chip-remove{border:0;background:transparent;color:var(--danger);font-size:22px;cursor:pointer}.quote-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.quote-summary>div{background:var(--green-50);border:1px solid var(--green-100);padding:14px;border-radius:12px;display:grid;gap:3px}.quote-summary small{color:var(--muted)}.quote-summary strong{color:var(--ink)}.client-message-list{display:grid;gap:12px}.client-message{border:1px solid var(--line);padding:14px;border-radius:12px;background:#fff}.client-message>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.client-message small{color:var(--muted)}.client-message p{margin:8px 0 0}.quote-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px}.quote-side{display:grid;gap:18px;align-content:start}.quote-total{color:var(--green-800);font-size:18px}.top-gap{margin-top:12px}.btn-danger{background:var(--danger-bg);color:var(--danger);border-color:#f6c7c2}.action-row{display:flex;gap:8px;flex-wrap:wrap}.assignee-mini{display:block;background:var(--green-50);border-radius:8px;padding:3px 7px;margin:2px 0;width:max-content}.public-quote{margin-top:22px;border-top:1px solid var(--line);padding-top:22px}.public-quote-total{font-size:22px;color:var(--green-800)}.public-table{font-size:13px}.quote-validity{color:var(--muted);font-size:13px}.client-message-form{margin-top:22px}.client-message-form h3{margin:0 0 4px;color:var(--ink)}.client-message-form>p{margin:0 0 14px;color:var(--muted)}
@media(max-width:1100px){.quote-grid{grid-template-columns:1fr}.quote-side{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.inline-edit-form{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.quote-side,.form-grid-4,.quote-summary{grid-template-columns:1fr}.inline-edit-form{grid-template-columns:1fr}.notification-bell{display:grid}.public-table{min-width:620px}}

/* Mailbox */
.mailbox-message{padding:18px 0;border-bottom:1px solid var(--line,#e5e7eb)}
.mailbox-message:last-child{border-bottom:0}
.mailbox-message-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;color:#52606d}
.mailbox-message-head>div{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mailbox-message h3{margin:10px 0 6px}
.mailbox-project{margin:0 0 10px;color:#52606d}
.mailbox-body{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7faf8;border:1px solid #e3ece7;border-radius:12px;padding:14px;font-family:inherit;line-height:1.8;max-height:340px;overflow:auto}
.warning-text{color:#9a6700}

/* V4 - Client quote approval / rejection */
.quote-client-decision{margin-top:22px;padding:20px;border:1px solid var(--green-200,#b9ddcf);border-radius:15px;background:linear-gradient(180deg,#fbfefc,#f4faf7)}
.decision-head h3{margin:4px 0;color:var(--ink);font-size:18px}.decision-head p{margin:0 0 16px;color:var(--muted);font-size:13px}.quote-decision-form{display:grid;gap:14px}.decision-actions{display:flex;gap:10px;flex-wrap:wrap}.decision-actions .btn{min-width:170px}.quote-decision-result{margin-top:20px;padding:16px;border-radius:12px;border:1px solid var(--line);display:grid;gap:5px}.quote-decision-result.accepted{background:#eaf8f0;border-color:#b9e5cb;color:#12613d}.quote-decision-result.rejected{background:#fff1ef;border-color:#f1c8c3;color:#8e332b}.quote-decision-result small{opacity:.8}.quote-decision-result p{margin:4px 0 0}.quote-response-history{display:grid;gap:10px}.quote-response-row{padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafcfb}.quote-response-row>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.quote-response-row small{color:var(--muted)}.quote-response-row p{margin:8px 0 0;padding-top:8px;border-top:1px solid var(--line);font-size:12px}.quote-admin-status p{margin:0 0 8px}
@media(max-width:620px){.decision-actions{display:grid}.decision-actions .btn{width:100%}}


/* Brand logo supplied by the site owner */
.brand-logo{width:46px;height:46px;flex:0 0 46px;display:block;object-fit:contain;border-radius:12px;background:#fff;border:1px solid rgba(15,107,79,.12);box-shadow:0 5px 14px rgba(23,56,46,.08)}
.admin-brand .brand-logo{width:42px;height:42px;flex-basis:42px;border-color:rgba(255,255,255,.14);box-shadow:none}
.login-brand .brand-logo{width:52px;height:52px;flex-basis:52px;border-color:rgba(255,255,255,.18);box-shadow:none}
.print-header .brand-logo{width:56px;height:56px;flex-basis:56px;border:0;box-shadow:none}
@media(max-width:640px){.brand-logo{width:38px;height:38px;flex-basis:38px;border-radius:10px}}
@media print{.print-header .brand-logo{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* V5 - contracts, staged payments and invoices */
.two-col-form{grid-template-columns:repeat(2,minmax(0,1fr))}.span-2{grid-column:1/-1}.check-field{display:flex;align-items:center;gap:10px}.check-field input{width:auto}.contract-status-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.contract-status-bar>div,.invoice-meta-grid>div{border:1px solid var(--green-100);background:var(--green-50);border-radius:12px;padding:13px;display:grid;gap:3px}.contract-status-bar small,.invoice-meta-grid small{color:var(--muted)}.contract-status-bar strong{color:var(--ink)}.price-summary{display:grid;gap:8px}.price-summary>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:9px 0}.price-summary>div.grand{border:1px solid var(--green-200);background:var(--green-50);padding:13px;border-radius:10px;color:var(--green-800);font-size:16px}.inline-stage-form{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.contract-public-page{padding-top:26px;padding-bottom:40px}.public-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin:16px 0;box-shadow:var(--shadow-sm)}.public-card h2{margin-top:0;color:var(--ink)}.two-party-grid,.invoice-parties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.two-party-grid>div,.invoice-parties>div{border:1px solid var(--line);border-radius:12px;padding:15px;background:#fafcfb}.contract-clauses{display:grid;gap:14px}.contract-clauses article{border-bottom:1px solid var(--line);padding-bottom:11px}.contract-clauses article:last-child{border-bottom:0}.contract-clauses h3{margin:0 0 5px;color:var(--green-800);font-size:15px}.contract-clauses p{margin:0;color:var(--text);line-height:1.9}.signature-card{border-color:var(--green-200);background:linear-gradient(180deg,#fff,#f7fcf9)}.signature-form{grid-template-columns:1fr 1fr;margin-top:16px}.invoice-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.invoice-card{border:1px solid var(--line);border-radius:12px;padding:13px;display:grid;gap:3px;background:#fff}.invoice-card:hover{border-color:var(--green-300);background:var(--green-50)}.invoice-card span,.invoice-card small{color:var(--muted)}.invoice-card strong{font-size:18px;color:var(--green-800)}.contract-track-card{border-color:var(--green-200)}.invoice-document{display:grid;gap:18px}.invoice-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media(max-width:900px){.two-col-form,.two-party-grid,.invoice-parties,.signature-form{grid-template-columns:1fr}.inline-stage-form{grid-template-columns:repeat(2,minmax(0,1fr))}.contract-status-bar,.invoice-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.contract-status-bar,.invoice-meta-grid,.invoice-cards,.inline-stage-form{grid-template-columns:1fr}.span-2{grid-column:auto}.public-card{padding:15px}}

/* Inline editing for quote items and payment stages */
.inline-editor-row[hidden]{display:none}
.inline-editor-row td{background:#f8fbf9;padding:16px!important;border-top:1px dashed var(--green-200)}
.inline-editor-form{display:grid;grid-template-columns:1.2fr 1.6fr 1fr auto;gap:12px;align-items:end}
.inline-editor-form.payment-stage-editor{grid-template-columns:1.2fr 1fr 1.2fr 1fr}
.inline-editor-form .field{margin:0}
.inline-editor-form .editor-actions{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.inline-editor-form .span-2{grid-column:span 2}
@media(max-width:900px){.inline-editor-form,.inline-editor-form.payment-stage-editor{grid-template-columns:repeat(2,minmax(0,1fr))}.inline-editor-form .editor-actions{grid-column:1/-1}}
@media(max-width:620px){.inline-editor-form,.inline-editor-form.payment-stage-editor{grid-template-columns:1fr}.inline-editor-form .span-2,.inline-editor-form .editor-actions{grid-column:auto}}


/* Payment planner: percentage-first instalment entry */
.payment-progress-summary{display:flex;flex-direction:column;align-items:flex-end;gap:.2rem;white-space:nowrap}.payment-progress-summary strong{color:var(--primary,#16784c);font-size:1rem}.payment-progress-summary small{color:var(--text-muted,#64748b)}.payment-base-note{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;padding:.85rem 1rem;margin:0 0 1rem;border:1px solid rgba(22,120,76,.16);background:rgba(22,120,76,.05);border-radius:14px}.payment-base-note strong{font-size:1.05rem}.payment-base-note small{margin-inline-start:auto;color:var(--text-muted,#64748b)}.payment-auto-amount{display:flex;flex-direction:column;justify-content:center;gap:.25rem;padding:.65rem .8rem;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;min-height:64px}.payment-auto-amount span{font-size:.78rem;color:#64748b}.payment-auto-amount strong{font-size:1rem;color:#0f5132}.payment-form-balance{display:flex;gap:1rem;flex-wrap:wrap;padding:.55rem .75rem;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa;font-size:.88rem}.payment-form-balance strong{color:#9a3412}@media(max-width:700px){.payment-progress-summary{align-items:flex-start}.payment-base-note small{margin-inline-start:0;width:100%}}

/* V7 — official dynamic footer + contact */
.official-footer {
    margin-top: 56px;
    padding: 58px 0 0;
    background: linear-gradient(135deg, #064735 0%, #073f32 55%, #052f27 100%);
    color: #d9ebe5;
    border-top: 4px solid var(--green-600);
}
.official-footer-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1.35fr) repeat(auto-fit, minmax(170px, 1fr));
    gap: 42px 34px;
    align-items: start;
}
.footer-brand-block { min-width: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 13px; color: #fff; }
.footer-brand:hover { color: #fff; }
.footer-brand img { width: 50px; height: 50px; object-fit: contain; background: #fff; border-radius: 14px; padding: 6px; }
.footer-brand span { display: grid; gap: 2px; }
.footer-brand strong { color: #fff; font-size: 15px; }
.footer-brand small { color: #acd0c3; font-size: 10px; }
.footer-brand-block > p { color: #b5d1c8; max-width: 330px; margin: 18px 0 20px; font-size: 12px; line-height: 1.9; }
.footer-primary-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-primary-links a { color: #e8f4f0; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: 2px; }
.footer-primary-links a:hover { color: #fff; border-color: #fff; }
.footer-column h2 { margin: 0 0 15px; color: #fff; font-size: 14px; font-weight: 800; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-column ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-column li { min-width: 0; }
.footer-column a { color: #d4e8e1; font-size: 12px; overflow-wrap: anywhere; }
.footer-column a:hover { color: #fff; }
.footer-column a span { font-size: 10px; opacity: .72; margin-right: 3px; }
.footer-contact-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; color: #fff !important; font-weight: 700; }
.freelance-footer-block { min-width: 180px; }
.freelance-number-label { display: block; color: #9fc6b8; font-size: 10px; }
.freelance-number { display: block; color: #fff; font-size: 13px; margin: 3px 0 12px; letter-spacing: .3px; }
.freelance-qr-wrap { width: 116px; height: 116px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.freelance-qr-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-legal-row { margin-top: 46px; min-height: 64px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #9dbeb3; font-size: 10px; }

.compact-page-hero { padding: 54px 0; }
.contact-section { padding-top: 42px; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; max-width: 980px; margin-inline: auto; }
.contact-card { position: relative; background: #fff; border: 1px solid #d9e3df; border-radius: 18px; padding: 28px; min-height: 330px; display: flex; flex-direction: column; box-shadow: 0 7px 28px rgba(8,67,52,.045); }
.contact-card-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-800); font-size: 22px; margin-bottom: 22px; }
.contact-card-kicker { color: var(--green-700); font-weight: 800; font-size: 11px; }
.contact-card h2 { color: var(--ink); margin: 5px 0 7px; font-size: 22px; }
.contact-card p { color: var(--muted); margin: 0 0 18px; font-size: 13px; }
.contact-value { color: var(--green-800); font-weight: 800; font-size: 15px; overflow-wrap: anywhere; margin-bottom: 24px; }
.contact-action { margin-top: auto; width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--ink); font-weight: 800; }
.contact-action b { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; background: var(--green-50); color: var(--green-900); font-size: 18px; }
.contact-empty { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px; text-align: center; color: var(--muted); }

/* Admin footer manager */
.settings-section-title { margin: 0; color: var(--ink); font-size: 18px; }
.settings-help { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.document-preview-row { display: flex; align-items: center; gap: 16px; border: 1px solid var(--green-100); background: var(--green-50); border-radius: 14px; padding: 14px; }
.document-preview { width: 90px; height: 90px; flex: 0 0 90px; background: #fff; border-radius: 10px; padding: 7px; border: 1px solid var(--line); }
.document-preview img { width: 100%; height: 100%; object-fit: contain; }
.document-preview-row p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.form-actions-inline { display: flex; gap: 10px; }
.danger-inline-form { margin: -6px 0 18px; display: flex; justify-content: flex-end; }
.footer-manager-card { margin-top: 18px; }
.section-row-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 16px; }
.section-row-head h2 { margin: 0; color: var(--ink); font-size: 19px; }
.section-row-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.footer-create-grid { display: grid; grid-template-columns: minmax(230px,2fr) 110px 110px auto; gap: 10px; align-items: end; padding: 15px; background: #fafcfb; border: 1px solid var(--line); border-radius: 13px; }
.compact-check { min-height: 44px; align-self: end; }
.footer-sections-admin { display: grid; gap: 16px; margin-top: 18px; }
.footer-section-admin { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.footer-section-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; background: var(--green-50); border-bottom: 1px solid var(--green-100); }
.footer-section-edit-grid { flex: 1; display: grid; grid-template-columns: minmax(180px,1fr) 90px 90px auto; gap: 8px; align-items: center; }
.footer-section-edit-grid input, .footer-link-edit-grid input, .footer-link-create-grid input { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: #fff; color: var(--text); }
.mini-check { display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-size: 10px; white-space: nowrap; }
.mini-check input { min-height: auto !important; width: auto; }
.footer-links-admin { padding: 10px 12px 0; display: grid; gap: 7px; }
.footer-link-edit-grid { display: grid; grid-template-columns: 1fr 2fr 80px 85px auto; gap: 7px; align-items: center; }
.link-delete-form { display: flex; justify-content: flex-end; margin-top: -3px; padding-bottom: 5px; }
.footer-link-create-grid { margin: 10px 12px 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: 1fr 2fr 80px 85px auto; gap: 7px; align-items: center; }
.empty-inline { color: var(--muted); font-size: 11px; padding: 8px 2px; }
.btn-danger-soft { background: var(--danger-bg); color: var(--danger); border-color: #f4cbc7; }
.btn-danger-soft:hover { color: var(--danger); background: #fde7e5; }

@media (max-width: 900px) {
    .official-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .contact-cards { grid-template-columns: 1fr; }
    .footer-create-grid { grid-template-columns: 1fr 100px; }
    .footer-section-admin-head { align-items: stretch; flex-direction: column; }
    .footer-section-edit-grid { grid-template-columns: 1fr 90px; }
    .footer-link-edit-grid, .footer-link-create-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .official-footer { padding-top: 42px; }
    .official-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-legal-row { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 16px; }
    .contact-card { min-height: 290px; padding: 22px; }
    .footer-create-grid, .footer-section-edit-grid, .footer-link-edit-grid, .footer-link-create-grid { grid-template-columns: 1fr; }
    .document-preview-row { align-items: flex-start; }
}

/* V8 — homepage live metrics, clients and success partners */
.home-stats-section {
    position: relative;
    z-index: 3;
    margin-top: -34px;
    padding-bottom: 12px;
}
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.home-stat-card {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 20px 24px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--green-100);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}
.home-stat-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 15px;
    background: var(--green-50);
    color: var(--green-800);
    font-size: 22px;
}
.home-stat-card > div { display: grid; line-height: 1.2; }
.home-stat-card strong { color: var(--green-950); font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; }
.home-stat-card small { color: var(--muted); font-size: 12px; margin-top: 6px; }
.showcase-section .section-heading { max-width: 720px; margin-inline: auto; }
.brand-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 30px;
}
.brand-showcase-card {
    min-height: 170px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.brand-showcase-card:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--green-200); box-shadow: var(--shadow-md); }
.brand-showcase-card img { width: 92px; height: 72px; object-fit: contain; display: block; }
.brand-showcase-card strong { font-size: 13px; line-height: 1.5; }

/* Admin homepage showcase manager */
.homepage-admin-stats { margin-bottom: 18px; }
.homepage-manager-card { margin-top: 18px; }
.homepage-create-form {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 90px 90px auto;
    gap: 10px;
    align-items: end;
    padding: 15px;
    background: #fafcfb;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.homepage-create-form .field { margin: 0; }
.compact-field input { text-align: center; }
.showcase-admin-list { display: grid; gap: 10px; margin-top: 16px; }
.showcase-admin-item {
    display: grid;
    grid-template-columns: 82px minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.showcase-admin-preview {
    width: 82px;
    height: 68px;
    display: grid;
    place-items: center;
    padding: 7px;
    border: 1px solid var(--green-100);
    border-radius: 12px;
    background: var(--green-50);
}
.showcase-admin-preview img { width: 100%; height: 100%; object-fit: contain; }
.showcase-edit-form {
    display: grid;
    grid-template-columns: minmax(140px,1fr) minmax(180px,1.3fr) minmax(150px,1fr) 78px 72px auto;
    gap: 8px;
    align-items: center;
}
.showcase-edit-form input {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 7px 9px;
    background: #fff;
    color: var(--text);
    min-width: 0;
}
.showcase-edit-form input[type="file"] { padding: 5px; font-size: 10px; }
.showcase-edit-form input[type="checkbox"] { min-height: auto; width: auto; }
.showcase-admin-actions { display: flex; flex-direction: column; gap: 6px; min-width: 90px; }
.showcase-admin-actions form { margin: 0; }

@media (max-width: 1000px) {
    .homepage-create-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .homepage-create-form .btn { grid-column: 1/-1; }
    .showcase-admin-item { grid-template-columns: 70px 1fr; align-items: start; }
    .showcase-admin-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
    .showcase-edit-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .home-stats-section { margin-top: 0; padding: 18px 0 4px; background: #fff; }
    .home-stats-grid { grid-template-columns: 1fr; }
    .home-stat-card { min-height: 92px; justify-content: flex-start; }
    .brand-showcase-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .homepage-create-form, .showcase-edit-form { grid-template-columns: 1fr; }
    .showcase-admin-item { grid-template-columns: 1fr; }
    .showcase-admin-preview { width: 100%; height: 100px; }
    .showcase-admin-actions { grid-column: auto; }
}


/* ===== Privacy policy modal & footer location ===== */

.footer-legal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-legal-link,
.footer-legal-button {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.footer-legal-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color .2s ease;
}

.footer-legal-link:hover {
    color: #fff;
}

.footer-legal-button {
    appearance: none;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.32);
    padding: 2px 0;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}

.footer-legal-button:hover {
    color: #fff;
    border-color: #fff;
}

.footer-location-text {
    color: inherit;
}

body.privacy-modal-open {
    overflow: hidden;
}

.privacy-modal[hidden] {
    display: none !important;
}

.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.privacy-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 20, 17, .72);
    backdrop-filter: blur(4px);
}

.privacy-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: min(82vh, 850px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    color: #18332c;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    outline: none;
}

.privacy-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #e3ebe8;
}

.privacy-modal-header h2 {
    margin: 4px 0 0;
    font-size: clamp(22px, 3vw, 30px);
    color: #062e26;
}

.privacy-modal-eyebrow {
    display: block;
    color: #618078;
    font-size: 12px;
    font-weight: 700;
}

.privacy-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid #d9e5e1;
    border-radius: 50%;
    background: #f7faf9;
    color: #173b32;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.privacy-modal-close:hover {
    background: #eef5f2;
}

.privacy-modal-body {
    overflow-y: auto;
    padding: 26px 30px;
    font-size: 15px;
    line-height: 2;
    color: #334b45;
    white-space: normal;
    overflow-wrap: anywhere;
}

.privacy-modal-footer {
    display: flex;
    justify-content: flex-start;
    padding: 16px 28px 20px;
    border-top: 1px solid #e3ebe8;
    background: #fbfcfc;
}

.privacy-modal-done {
    min-width: 110px;
    border: 0;
    border-radius: 10px;
    padding: 11px 22px;
    background: #0f6b4f;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.privacy-modal-done:hover {
    background: #0b5942;
}

@media (max-width: 640px) {
    .footer-legal-actions {
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .privacy-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .privacy-modal-dialog {
        width: 100%;
        max-height: 88vh;
        border-radius: 18px 18px 12px 12px;
    }

    .privacy-modal-header {
        padding: 20px 18px 16px;
    }

    .privacy-modal-body {
        padding: 20px 18px;
        font-size: 14px;
        line-height: 1.9;
    }

    .privacy-modal-footer {
        padding: 14px 18px 18px;
    }

    .privacy-modal-done {
        width: 100%;
    }
}

/* ===== Footer legal centered layout ===== */

.footer-legal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.footer-copyright {
    justify-self: start;
    text-align: right;
}

.footer-privacy-slot {
    justify-self: center;
    text-align: center;
}

.footer-location-slot {
    justify-self: end;
    text-align: left;
}

.footer-legal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 7px 16px;
    background: rgba(255,255,255,.06);
    color: #d8e7e2;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.footer-legal-button:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.35);
    color: #fff;
    transform: translateY(-1px);
}

.footer-legal-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.footer-legal-link {
    color: #9dbeb3;
    text-decoration: none;
}

.footer-legal-link:hover {
    color: #fff;
}

@media (max-width: 700px) {
    .footer-legal-row {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        text-align: center;
    }

    .footer-copyright,
    .footer-privacy-slot,
    .footer-location-slot {
        justify-self: center;
        text-align: center;
    }

    .footer-privacy-slot {
        order: 2;
    }

    .footer-location-slot {
        order: 3;
    }
}

/* ===== Privacy Modal guaranteed target version ===== */

.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.privacy-modal:target {
    display: flex !important;
}

.privacy-modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: rgba(2, 24, 20, .82);
    backdrop-filter: blur(5px);
}

.privacy-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(900px, 96vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    color: #263f38;
    border-radius: 22px;
    box-shadow: 0 30px 100px rgba(0,0,0,.35);
}

.privacy-modal-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: #fff;
    border-bottom: 1px solid #e4ece9;
}

.privacy-modal-header h2 {
    margin: 4px 0 0;
    color: #063d31;
    font-size: 26px;
    font-weight: 800;
}

.privacy-modal-eyebrow {
    display: block;
    color: #718d85;
    font-size: 11px;
    font-weight: 700;
}

.privacy-modal-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e5e1;
    border-radius: 50%;
    background: #f6faf8;
    color: #124d3d;
    text-decoration: none;
    font-size: 29px;
    line-height: 1;
}

.privacy-modal-close:hover {
    background: #0f6b4f;
    color: #fff;
}

.privacy-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 28px 32px;
    color: #334c45;
    font-size: 14px;
    line-height: 2.15;
    text-align: right;
    overflow-wrap: anywhere;
}

.privacy-modal-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    padding: 16px 26px;
    background: #f8fbfa;
    border-top: 1px solid #e4ece9;
}

.privacy-modal-done {
    min-width: 125px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 10px;
    background: #0f6b4f;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.privacy-modal-done:hover {
    background: #0a5941;
}

.footer-privacy-slot {
    justify-self: center !important;
    text-align: center;
}

.footer-legal-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 7px 18px !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.06) !important;
    color: #d6e6e1 !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.footer-legal-button:hover {
    background: rgba(255,255,255,.13) !important;
    color: #fff !important;
}

@media (max-width: 700px) {
    .privacy-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .privacy-modal-dialog {
        width: 100%;
        max-height: 91vh;
        border-radius: 20px 20px 12px 12px;
    }

    .privacy-modal-header {
        padding: 18px;
    }

    .privacy-modal-header h2 {
        font-size: 21px;
    }

    .privacy-modal-body {
        padding: 20px 18px;
        font-size: 13px;
        line-height: 2;
    }

    .privacy-modal-footer {
        padding: 14px 18px 18px;
    }

    .privacy-modal-done {
        width: 100%;
    }
}

/* ===== Privacy policy bold headings ===== */

.privacy-modal-body strong {
    display: inline;
    color: #063d31;
    font-weight: 800;
    font-size: 1.04em;
}

/* ===== Privacy Markdown headings ===== */

.privacy-modal-body .privacy-md-heading {
    color: #063d31;
    font-weight: 800;
    line-height: 1.55;
}

.privacy-modal-body .privacy-md-heading-1 {
    margin: 28px 0 14px;
    font-size: 22px;
}

.privacy-modal-body .privacy-md-heading-2 {
    margin: 24px 0 12px;
    font-size: 19px;
}

.privacy-modal-body .privacy-md-heading-3 {
    margin: 20px 0 10px;
    font-size: 16px;
}

.privacy-modal-body .privacy-md-heading:first-child {
    margin-top: 0;
}

.privacy-modal-body .privacy-md-paragraph {
    margin: 0 0 14px;
}

.privacy-modal-body strong {
    color: #063d31;
    font-weight: 800;
}

.privacy-modal-body .privacy-md-list {
    margin: 5px 0 18px;
    padding-right: 25px;
    padding-left: 0;
}

.privacy-modal-body .privacy-md-list li {
    margin: 6px 0;
}

@media (max-width: 700px) {
    .privacy-modal-body .privacy-md-heading-1 {
        font-size: 20px;
    }

    .privacy-modal-body .privacy-md-heading-2 {
        font-size: 17px;
    }

    .privacy-modal-body .privacy-md-heading-3 {
        font-size: 15px;
    }
}

/* ===== Footer policy links layout ===== */

.footer-privacy-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 700px) {
    .footer-privacy-slot {
        width: 100%;
        justify-content: center;
        gap: 7px;
    }
}
/* CLIENT_PAYMENT_STATUS_START */

.payment-status-card{
    position:relative;
    overflow:hidden;
    margin-top:20px;
    border:2px solid transparent;
}

.payment-status-card.is-waiting{
    border-color:#ef4444;
    background:#fff7f7;
}

.payment-status-card.is-paid{
    border-color:#16a34a;
    background:#f4fbf6;
}

.payment-status-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin-bottom:18px;
}

.payment-status-head h2{
    margin:10px 0 4px;
}

.payment-status-head p{
    margin:0;
}

.payment-state-badge{
    display:inline-flex;
    align-items:center;
    min-height:32px;
    padding:5px 12px;
    border-radius:999px;
    font-weight:800;
    font-size:.9rem;
}

.payment-state-badge.waiting{
    color:#991b1b;
    background:#fee2e2;
    border:1px solid #fecaca;
}

.payment-state-badge.paid{
    color:#166534;
    background:#dcfce7;
    border:1px solid #bbf7d0;
}

.payment-big-amount{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:145px;
    text-align:left;
    font-size:1.35rem;
}

.payment-big-amount small{
    color:#6b7280;
    font-size:.76rem;
    font-weight:500;
}

.payment-summary-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin:18px 0;
}

.payment-summary-grid > div{
    padding:14px;
    border:1px solid #e5e7eb;
    border-radius:14px;
    background:#fff;
}

.payment-summary-grid small{
    display:block;
    margin-bottom:5px;
    color:#6b7280;
}

.payment-summary-grid strong{
    display:block;
}

.current-payment-box{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    padding:16px;
    margin:16px 0;
    border:1px solid #fecaca;
    border-radius:14px;
    background:#fff;
}

.current-payment-box small{
    display:block;
    margin-bottom:5px;
    color:#6b7280;
}

.current-payment-box strong{
    display:block;
}

.payment-due-amount{
    color:#b91c1c;
    font-size:1.15rem;
}

.payment-note-box{
    padding:14px 16px;
    margin:14px 0;
    border-radius:14px;
    background:#fff;
    border:1px solid #fed7aa;
}

.payment-note-box p{
    margin:5px 0 0;
}

.bank-payment-box{
    margin-top:18px;
    padding:18px;
    border-radius:16px;
    border:1px solid #d1d5db;
    background:#fff;
}

.bank-payment-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:16px;
}

.bank-payment-title > span{
    font-size:1.45rem;
}

.bank-payment-title strong,
.bank-payment-title small{
    display:block;
}

.bank-payment-title small{
    margin-top:2px;
    color:#6b7280;
}

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

.bank-details-grid > div{
    padding:12px;
    border-radius:12px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
}

.bank-details-grid dt{
    margin-bottom:4px;
    color:#6b7280;
    font-size:.78rem;
}

.bank-details-grid dd{
    margin:0;
    font-weight:800;
}

.bank-iban-row dd{
    direction:ltr;
    text-align:left;
    word-break:break-all;
    letter-spacing:.04em;
}

.payment-confirmation-note{
    margin-top:16px;
    padding:14px 16px;
    border-radius:14px;
    background:#fff;
    border-right:4px solid #ef4444;
}

.payment-confirmation-note p{
    margin:4px 0 0;
}

.payment-bank-warning{
    margin-top:16px;
    padding:14px 16px;
    border-radius:14px;
    color:#92400e;
    background:#fffbeb;
    border:1px solid #fde68a;
    font-weight:700;
}

@media (max-width:700px){

    .payment-status-head{
        flex-direction:column;
        gap:14px;
    }

    .payment-big-amount{
        text-align:right;
    }

    .payment-summary-grid,
    .current-payment-box,
    .bank-details-grid{
        grid-template-columns:1fr;
    }

}

/* CLIENT_PAYMENT_STATUS_END */

/* MOYASAR_SANDBOX_START */

.online-payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    margin: 0 0 18px;
    border: 1px solid rgba(76, 175, 80, .24);
    border-radius: 18px;
    background: rgba(76, 175, 80, .055);
}

.online-payment-option > div {
    display: grid;
    gap: 5px;
}

.online-payment-option small {
    color: var(--muted, #64748b);
}

.payment-state-badge.online {
    width: max-content;
    background: rgba(76, 175, 80, .12);
    color: #237a33;
}

.mysr-form {
    direction: ltr;
    margin: 24px auto;
    max-width: 600px;
}

.mysr-form input {
    direction: ltr;
}

@media (max-width: 700px) {
    .online-payment-option {
        align-items: stretch;
        flex-direction: column;
    }

    .online-payment-option .btn {
        width: 100%;
    }
}

/* MOYASAR_SANDBOX_END */

/* MOYASAR_SECURE_SETTINGS_CSS */
.moyasar-settings-page{
    display:grid;
    gap:20px;
}
.moyasar-main-status{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}
.moyasar-main-status>div{
    display:flex;
    flex-direction:column;
    gap:5px;
}
.moyasar-main-status small,
.moyasar-key-status span,
.moyasar-test-state span,
.moyasar-test-state small{
    color:#6b7280;
}
.moyasar-status-on{
    color:#15803d;
}
.moyasar-status-off{
    color:#b91c1c;
}
.moyasar-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}
.moyasar-env-card{
    display:grid;
    gap:18px;
}
.moyasar-env-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}
.moyasar-env-head h2,
.moyasar-env-head p{
    margin:0;
}
.moyasar-env-head p{
    margin-top:4px;
    color:#6b7280;
}
.moyasar-secure-badge,
.moyasar-missing-badge{
    display:inline-flex;
    align-items:center;
    padding:6px 10px;
    border-radius:999px;
    font-size:.82rem;
    font-weight:700;
}
.moyasar-secure-badge{
    background:#ecfdf3;
    border:1px solid #bbf7d0;
}
.moyasar-missing-badge{
    background:#fff7ed;
    border:1px solid #fed7aa;
}
.moyasar-key-status{
    display:grid;
    gap:9px;
}
.moyasar-key-status>div{
    display:flex;
    justify-content:space-between;
    gap:14px;
    padding-bottom:9px;
    border-bottom:1px solid #e5e7eb;
}
.moyasar-test-state{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    padding:11px 13px;
    border:1px solid #e5e7eb;
    border-radius:12px;
}
.moyasar-secret-form,
.moyasar-control-form{
    display:grid;
    gap:14px;
}
.moyasar-security-note,
.moyasar-security-footer{
    padding:12px 14px;
    border:1px solid #dbeafe;
    border-radius:12px;
    background:#f8fafc;
    line-height:1.8;
}
.moyasar-test-form{
    margin-top:-4px;
}
.moyasar-control-card{
    display:grid;
    gap:14px;
}
.moyasar-control-card h2,
.moyasar-control-card p{
    margin:0;
}
@media(max-width:850px){
    .moyasar-grid,
    .moyasar-main-status{
        grid-template-columns:1fr;
    }
    .moyasar-env-head,
    .moyasar-key-status>div{
        align-items:flex-start;
        flex-direction:column;
    }
}

/* SYSTEM_SWEETALERT2_STYLE */
.swal2-container{
    direction:rtl;
    font-family:inherit;
}
.swal2-popup{
    font-family:inherit;
}
.swal2-popup.swal2-toast{
    direction:rtl;
    text-align:right;
}
.swal2-popup.swal2-toast .swal2-title,
.swal2-popup.swal2-toast .swal2-html-container{
    text-align:right;
}
.swal2-popup.swal2-toast .swal2-close{
    margin-right:auto;
    margin-left:0;
}

/* CLIENT_PORTAL_CSS */
.client-portal-section{
    padding-top:28px;
}
.client-portal-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}
.client-portal-grid{
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(280px,.8fr);
    gap:24px;
    align-items:start;
}
.client-section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:18px;
}
.client-section-head h2{
    margin:4px 0 0;
}
.client-project-list{
    display:grid;
    gap:16px;
}
.client-project-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:20px;
}
.client-project-card-head,
.client-term-head,
.admin-client-term-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
}
.client-project-card-head h3{
    margin:5px 0;
}
.client-project-card-head p{
    margin:0;
    color:#6b7280;
}
.client-project-facts{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin-top:18px;
}
.client-project-facts>div{
    padding:12px;
    border-radius:12px;
    background:#f8fafc;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.client-project-facts small{
    color:#6b7280;
}
.client-project-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}
.client-project-actions form{
    margin:0;
}
.client-project-main-actions{
    margin:22px 0;
}
.client-project-overview{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}
.client-project-overview .public-card{
    display:flex;
    flex-direction:column;
    gap:5px;
}
.client-project-overview small{
    color:#6b7280;
}
.client-terms-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:22px;
    margin-top:24px;
    align-items:start;
}
.client-term-list,
.admin-client-term-list{
    display:grid;
    gap:14px;
    margin-top:16px;
}
.client-term-card,
.admin-client-term{
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:16px;
    background:#fff;
}
.client-term-card p,
.admin-client-term p{
    line-height:1.8;
}
.client-term-status{
    padding:5px 9px;
    border-radius:999px;
    font-size:.8rem;
    font-weight:700;
    background:#f3f4f6;
}
.client-term-price{
    margin:10px 0;
}
.client-term-review-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.client-portal-cta{
    margin-top:12px;
    text-align:center;
    font-size:.92rem;
    color:#6b7280;
}
.client-portal-cta a{
    font-weight:700;
    margin-right:5px;
}
.client-login-card{
    margin-bottom:18px;
}
.client-otp-input{
    font-size:1.6rem;
    letter-spacing:.35rem;
    text-align:center;
}
.client-back-link{
    display:inline-block;
    margin-top:14px;
}
@media(max-width:900px){
    .client-portal-grid,
    .client-terms-layout{
        grid-template-columns:1fr;
    }
    .client-project-facts,
    .client-project-overview{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media(max-width:560px){
    .client-portal-head,
    .client-section-head,
    .client-project-card-head,
    .client-term-head,
    .admin-client-term-head{
        align-items:stretch;
        flex-direction:column;
    }
    .client-project-facts,
    .client-project-overview{
        grid-template-columns:1fr;
    }
}

/* CLIENT_PROJECT_DASHBOARD_GRID_V2 */

.client-project-dashboard > .container{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:20px;
    align-items:start;
}

.client-project-dashboard .client-account-summary{
    grid-column:1 / -1;
    margin:0;
}

.client-project-dashboard .client-account-section{
    margin:0;
    height:100%;
}

.client-project-dashboard .client-terms-layout{
    grid-column:1 / -1;
    margin-top:0;
}

.client-project-dashboard .client-section-head{
    align-items:flex-start;
}

.client-project-dashboard .public-card,
.client-project-dashboard .form-card{
    border-radius:18px;
}

.client-project-dashboard .client-payment-stages{
    margin-top:18px;
}

.client-project-dashboard .invoice-cards{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:12px;
}

.client-project-dashboard .invoice-card{
    height:100%;
}

.client-project-dashboard .client-financial-summary{
    grid-template-columns:
        repeat(3,minmax(0,1fr));
}


/*
 * التابلت والجوال
 */
@media(max-width:900px){

    .client-project-dashboard > .container{
        grid-template-columns:1fr;
    }

    .client-project-dashboard .client-account-summary,
    .client-project-dashboard .client-terms-layout{
        grid-column:1;
    }

    .client-project-dashboard .client-financial-summary{
        grid-template-columns:1fr;
    }
}

@media(max-width:600px){

    .client-project-dashboard .invoice-cards{
        grid-template-columns:1fr;
    }
}

/* CLIENT_PROJECT_QUICK_NAV_CSS */
.client-project-quick-nav{
    grid-column:1 / -1;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding:14px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
}

.client-project-quick-nav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:8px 16px;
    border-radius:10px;
    border:1px solid #dbe4e1;
    text-decoration:none;
    font-weight:700;
}

.client-project-quick-nav a:hover{
    transform:translateY(-1px);
}

#client-quote,
#client-contract,
#client-invoices{
    scroll-margin-top:110px;
}

@media(max-width:600px){
    .client-project-quick-nav{
        display:grid;
        grid-template-columns:1fr;
    }
}

/* CLIENT_REAL_DOCUMENTS_V3 */

.client-project-center>.container{
    display:grid;
    gap:20px;
}

.client-readonly-notice{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    border:1px solid #bbf7d0;
    border-radius:18px;
    background:#f0fdf4;
    padding:18px 20px;
}

.client-readonly-notice strong{
    font-size:1.05rem;
}

.client-readonly-notice p{
    margin:4px 0 0;
    color:#475569;
}

.client-readonly-notice>span{
    background:#fff;
    border:1px solid #bbf7d0;
    border-radius:999px;
    padding:7px 13px;
    white-space:nowrap;
    font-weight:700;
}

.client-main-cards{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}

.client-info-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:17px;
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:5px;
}

.client-info-card small{
    color:#64748b;
}

.client-section-box{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:19px;
    padding:22px;
}

.client-section-title{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}

.client-section-title h2{
    margin:4px 0 0;
}

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

.client-big-doc-card{
    min-height:130px;
    display:grid;
    grid-template-columns:auto 1fr;
    gap:14px;
    align-items:center;
    border:1px solid #dfe7e4;
    border-radius:16px;
    padding:18px;
    text-decoration:none;
    color:inherit;
}

.client-big-doc-card>strong{
    grid-column:2;
}

.client-big-doc-card.disabled{
    background:#f8fafc;
    opacity:.7;
}

.client-big-doc-icon{
    width:50px;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#f1f5f9;
    font-size:1.5rem;
}

.client-big-doc-card h3,
.client-big-doc-card p{
    margin:3px 0;
}

.client-big-doc-card small,
.client-big-doc-card p{
    color:#64748b;
}

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

.client-payment-card{
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:15px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.client-payment-card>div{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.client-payment-card small{
    color:#64748b;
}

.client-paid,
.client-unpaid{
    border-radius:999px;
    padding:6px 10px;
    font-size:.84rem;
    font-weight:700;
}

.client-paid{
    background:#ecfdf5;
    color:#047857;
}

.client-unpaid{
    background:#fff7ed;
    color:#c2410c;
}

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

@media(max-width:900px){

    .client-main-cards{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .client-doc-grid,
    .client-payment-grid,
    .client-action-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:560px){

    .client-main-cards{
        grid-template-columns:1fr;
    }

    .client-readonly-notice,
    .client-section-title,
    .client-payment-card{
        align-items:stretch;
        flex-direction:column;
    }
}

/* CLIENT_INVOICE_REDESIGN_V4 */

.client-invoice-page{
    padding-top:34px;
    padding-bottom:52px;
}

.client-invoice-container{
    max-width:1100px;
    display:grid;
    gap:18px;
}

.client-invoice-hero,
.client-invoice-financial,
.client-invoice-stages,
.client-invoice-note{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:20px;
}

.client-invoice-hero{
    overflow:hidden;
}

.client-invoice-hero-main{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    padding:28px 30px;
}

.client-invoice-title h1{
    margin:7px 0 8px;
    font-size:clamp(1.35rem,3vw,2rem);
    line-height:1.35;
}

.client-invoice-reference{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    color:#64748b;
}

.client-invoice-reference strong{
    color:#475569;
}

.client-invoice-amount{
    min-width:230px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
}

.client-invoice-payment-state{
    display:inline-flex;
    align-items:center;
    padding:7px 11px;
    border-radius:999px;
    font-size:.84rem;
    font-weight:800;
    margin-bottom:8px;
}

.client-invoice-payment-state.is-paid{
    color:#047857;
    background:#ecfdf5;
    border:1px solid #bbf7d0;
}

.client-invoice-payment-state.is-unpaid{
    color:#b45309;
    background:#fffbeb;
    border:1px solid #fde68a;
}

.client-invoice-amount small{
    color:#64748b;
}

.client-invoice-amount>strong{
    color:#08785e;
    font-size:1.8rem;
    line-height:1.2;
}

.client-invoice-amount>strong span{
    font-size:.9rem;
}


.client-invoice-meta{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.client-invoice-meta-card{
    min-width:0;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:17px;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.client-invoice-meta-card>span,
.client-invoice-meta-card>small{
    color:#64748b;
    font-size:.84rem;
}

.client-invoice-meta-card strong{
    overflow-wrap:anywhere;
    font-size:.98rem;
}


.client-invoice-financial,
.client-invoice-stages{
    padding:24px;
}

.client-invoice-section-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:18px;
}

.client-invoice-section-head h2{
    margin:4px 0 0;
    font-size:1.25rem;
}

.client-invoice-money-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.client-invoice-money-grid>div{
    padding:17px;
    background:#f8fafc;
    border-radius:14px;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.client-invoice-money-grid span{
    color:#64748b;
    font-size:.85rem;
}

.client-invoice-money-grid strong{
    font-size:1.1rem;
}


.client-stage-count{
    padding:6px 10px;
    border-radius:999px;
    background:#f1f5f9;
    color:#475569;
    font-size:.82rem;
    font-weight:700;
}

.client-stage-list{
    display:grid;
    gap:10px;
}

.client-stage-row{
    display:grid;
    grid-template-columns:
        42px
        minmax(180px,1fr)
        minmax(90px,.35fr)
        minmax(130px,.5fr)
        minmax(110px,.4fr);
    align-items:center;
    gap:14px;
    padding:14px 16px;
    border:1px solid #e5e7eb;
    border-radius:14px;
}

.client-stage-order{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#f1f5f9;
    font-weight:800;
}

.client-stage-info,
.client-stage-percent,
.client-stage-value,
.client-stage-status{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;
}

.client-stage-info small,
.client-stage-percent span,
.client-stage-value span,
.client-stage-status small{
    color:#64748b;
    font-size:.8rem;
}

.client-stage-status .is-paid{
    color:#047857;
    font-weight:800;
}

.client-stage-status .is-unpaid{
    color:#b45309;
    font-weight:800;
}


.client-invoice-note{
    padding:20px 24px;
    display:grid;
    gap:8px;
}

.client-invoice-note p{
    margin:0;
    color:#475569;
    line-height:1.8;
}


.client-invoice-actions{
    display:flex;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:10px;
    padding-top:2px;
}


@media(max-width:900px){

    .client-invoice-meta{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .client-stage-row{
        grid-template-columns:
            42px
            1fr
            1fr;
    }

    .client-stage-info{
        grid-column:2 / -1;
    }
}


@media(max-width:650px){

    .client-invoice-page{
        padding-top:18px;
    }

    .client-invoice-hero-main{
        align-items:stretch;
        flex-direction:column;
        padding:22px;
    }

    .client-invoice-amount{
        min-width:0;
    }

    .client-invoice-meta,
    .client-invoice-money-grid{
        grid-template-columns:1fr;
    }

    .client-invoice-financial,
    .client-invoice-stages{
        padding:18px;
    }

    .client-stage-row{
        grid-template-columns:38px 1fr;
        gap:10px;
    }

    .client-stage-info{
        grid-column:2;
    }

    .client-stage-percent,
    .client-stage-value,
    .client-stage-status{
        grid-column:2;
    }

    .client-stage-percent,
    .client-stage-value{
        padding-top:7px;
        border-top:1px dashed #e2e8f0;
    }

    .client-invoice-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .client-invoice-actions .btn{
        width:100%;
    }
}

/* INVOICE_TOP_ACTIONS_CSS */

.client-invoice-top-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:2px;
}

.client-invoice-top-actions .btn{
    min-height:46px;
}

.client-invoice-back-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.client-invoice-back-btn span{
    font-size:1.15rem;
    line-height:1;
}

@media(max-width:560px){

    .client-invoice-top-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .client-invoice-top-actions .btn{
        width:100%;
        justify-content:center;
    }
}

/* CLIENT_HEADER_ACCOUNT_V2 */

/*
 * العناصر العادية تبقى order:0.
 * بوابة العميل ثم طلب مشروع جديد يصبحان
 * آخر عنصرين وبالتالي جنب بعض.
 */
.client-portal-nav-link{
    order:90;
}

.header-new-project-link{
    order:100;
}


/*
 * بعد تسجيل الدخول يتحول الرابط إلى
 * بطاقة حساب صغيرة بجوار زر المشروع.
 */
.client-portal-nav-link.is-authenticated{
    max-width:190px;
    padding:10px 14px;
    border:1px solid #cbded7;
    border-radius:12px;
    background:#fff;
    color:#0f6b4f;
    font-weight:800;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}


/*
 * نخليه قريب من زر طلب مشروع جديد.
 */
.client-portal-nav-link.is-authenticated
+ .header-new-project-link{
    margin-inline-start:2px;
}


@media(max-width:900px){

    .client-portal-nav-link{
        order:90;
    }

    .header-new-project-link{
        order:100;
    }

    .client-portal-nav-link.is-authenticated{
        max-width:none;
    }
}

/* CLIENT_PAYMENTS_COMPACT_V2 */

.client-payments-compact {
    padding: 24px !important;
}

.client-payment-compact-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.client-payment-compact-title h2 {
    margin: 3px 0 0;
}

.client-payment-remaining {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.client-payment-remaining small {
    color: #6b7280;
    font-size: .75rem;
}

.client-payment-remaining strong {
    font-size: 1rem;
}


.client-payment-current {
    border: 1px solid #dfe4e8;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    margin-bottom: 14px;
}

.client-payment-current-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.client-payment-current-summary > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.client-payment-current-summary small {
    color: #6b7280;
    font-size: .74rem;
}

.client-payment-current-summary strong {
    font-size: .95rem;
}

.client-payment-current-summary > span {
    white-space: nowrap;
    font-weight: 800;
    font-size: 1rem;
}


.client-payment-methods-compact {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr);
    gap: 10px;
}


.client-bank-mini,
.client-online-mini {
    min-height: 76px;
    border: 1px solid #edf0f2;
    border-radius: 11px;
    background: #fafbfb;
    padding: 11px 13px;
}

.client-bank-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.client-bank-mini-name {
    min-width: 120px;
}

.client-bank-mini-name,
.client-bank-mini-info > div,
.client-online-mini > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.client-bank-mini small,
.client-online-mini small {
    font-size: .7rem;
    color: #7a828a;
}

.client-bank-mini strong,
.client-online-mini strong {
    font-size: .84rem;
    color: #1f2933;
}

.client-bank-mini-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.client-bank-mini-iban {
    min-width: 230px;
}

.client-bank-mini-iban strong {
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}


.client-online-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.client-online-mini .btn {
    min-height: 38px;
    padding: 8px 15px;
    white-space: nowrap;
    font-size: .8rem;
}


.client-payment-transfer-help {
    margin: 9px 2px 0;
    font-size: .73rem;
    color: #77808a;
    line-height: 1.7;
}


.client-payment-list-compact {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.client-payment-row-compact {
    min-height: 58px;
    padding: 9px 13px;
    border: 1px solid #edf0f2;
    border-radius: 11px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.client-payment-row-compact.is-current {
    background: #fcfcfb;
    border-color: #dcdfe2;
}

.client-payment-row-name {
    display: flex;
    align-items: center;
    gap: 14px;
}

.client-payment-row-name strong {
    font-size: .88rem;
}

.client-payment-row-name small {
    color: #6b7280;
    font-size: .76rem;
}


.client-payment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.client-payment-status.paid {
    background: #eef8f0;
    color: #26713b;
}

.client-payment-status.current {
    background: #fff4e7;
    color: #b45309;
}

.client-payment-status.waiting {
    background: #f2f4f5;
    color: #687078;
}


@media (max-width: 850px) {

    .client-payment-methods-compact {
        grid-template-columns: 1fr;
    }

    .client-bank-mini {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-bank-mini-info {
        width: 100%;
        align-items: flex-start;
        justify-content: space-between;
    }

}


@media (max-width: 600px) {

    .client-payments-compact {
        padding: 17px !important;
    }

    .client-payment-compact-title {
        align-items: flex-start;
    }

    .client-bank-mini-info {
        flex-direction: column;
        gap: 10px;
    }

    .client-bank-mini-iban {
        min-width: 0;
        width: 100%;
    }

    .client-bank-mini-iban strong {
        white-space: normal;
        word-break: break-all;
    }

    .client-online-mini {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-online-mini .btn {
        width: 100%;
    }

    .client-payment-row-name {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

}

/* /CLIENT_PAYMENTS_COMPACT_V2 */


/* CANCELLED_CLOSED_GRAY_V1
   المشاريع الملغية = مغلقة + رصاصية
-------------------------------------------------- */

.status-cancelled{
    color:#4b5563 !important;
    background:#e5e7eb !important;
    border:1px solid #d1d5db !important;
}

.status-bg-cancelled{
    background:#9ca3af !important;
}

tr.project-is-cancelled > td{
    background:#f3f4f6 !important;
    color:#6b7280 !important;
    border-bottom-color:#d1d5db !important;
}

tr.project-is-cancelled:hover > td{
    background:#e5e7eb !important;
}

tr.project-is-cancelled .table-primary,
tr.project-is-cancelled strong,
tr.project-is-cancelled small{
    color:#6b7280 !important;
}

tr.project-is-cancelled .icon-action{
    background:#e5e7eb !important;
    color:#6b7280 !important;
}

.client-project-card.project-is-cancelled{
    background:#f3f4f6 !important;
    border-color:#d1d5db !important;
    box-shadow:none !important;
}

.client-project-card.project-is-cancelled h3,
.client-project-card.project-is-cancelled strong,
.client-project-card.project-is-cancelled p,
.client-project-card.project-is-cancelled small{
    color:#6b7280 !important;
}

.client-project-card.project-is-cancelled .btn{
    border-color:#cbd5e1 !important;
    background:#e5e7eb !important;
    color:#4b5563 !important;
}

.client-readonly-notice.cancelled{
    border-color:#d1d5db !important;
    background:#f3f4f6 !important;
    color:#4b5563 !important;
}

.client-readonly-notice.cancelled > span{
    border-color:#d1d5db !important;
    background:#e5e7eb !important;
    color:#4b5563 !important;
}

.project-layout.project-is-cancelled .admin-card{
    background:#f8fafc !important;
    border-color:#d1d5db !important;
}

.cancelled-project-banner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin:0 0 18px;
    padding:16px 18px;
    border:1px solid #d1d5db;
    border-radius:16px;
    background:#f3f4f6;
    color:#4b5563;
}

.cancelled-project-banner > div{
    display:grid;
    gap:3px;
}

.cancelled-project-banner strong{
    color:#374151;
    font-size:1rem;
}

.cancelled-project-banner > span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 12px;
    border-radius:999px;
    background:#e5e7eb;
    color:#4b5563;
    font-weight:800;
}

@media (max-width:620px){
    .cancelled-project-banner{
        align-items:flex-start;
    }
}


/* THULTHIN_CLIENT_DASH_V1
-------------------------------------------------- */

:root{
    --thd-purple:#5b3f99;
    --thd-purple-dark:#432d77;
    --thd-green:#4db748;
    --thd-green-soft:#eaf7ea;
    --thd-cyan:#12b7d6;
    --thd-bg:#f5f7fb;
    --thd-card:#ffffff;
    --thd-border:#e7e9f0;
    --thd-text:#24324a;
    --thd-muted:#7d8798;
    --thd-shadow:0 16px 40px rgba(67, 45, 119, .08);
}

.thulthin-client-dashboard{
    direction:rtl;
    color:var(--thd-text);
    background:linear-gradient(180deg,#f7f8fc 0%,#f2f5fb 100%);
    margin:-24px;
    padding:0 0 32px;
}

.thd-hero{
    position:relative;
    overflow:hidden;
    padding:34px 24px 110px;
    background:
        radial-gradient(circle at 10% 20%, rgba(77,183,72,.20), transparent 26%),
        radial-gradient(circle at 90% 15%, rgba(18,183,214,.18), transparent 22%),
        linear-gradient(135deg,var(--thd-purple-dark) 0%, var(--thd-purple) 58%, #0d84b7 100%);
}

.thd-hero::before,
.thd-hero::after{
    content:"";
    position:absolute;
    inset:auto;
    pointer-events:none;
    opacity:.18;
    border-radius:999px;
}

.thd-hero::before{
    width:520px;
    height:520px;
    top:-260px;
    left:-90px;
    border:1px solid rgba(255,255,255,.35);
    box-shadow:0 0 0 26px rgba(255,255,255,.05), 0 0 0 58px rgba(255,255,255,.04);
}

.thd-hero::after{
    width:420px;
    height:420px;
    bottom:-210px;
    right:-90px;
    border:1px solid rgba(255,255,255,.28);
    box-shadow:0 0 0 18px rgba(255,255,255,.05), 0 0 0 42px rgba(255,255,255,.04);
}

.thd-hero__content{
    position:relative;
    z-index:2;
    max-width:1320px;
    margin:0 auto;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    color:#fff;
}

.thd-hero__user h1{
    margin:0;
    font-size:2.1rem;
    font-weight:900;
}

.thd-hero__crumbs{
    margin:10px 0 0;
    display:flex;
    gap:10px;
    align-items:center;
    color:rgba(255,255,255,.82);
    font-size:.98rem;
}

.thd-hero__crumbs strong{
    color:#c9f1ff;
    font-weight:800;
}

.thd-hero__identity{
    text-align:left;
    display:grid;
    gap:8px;
    font-size:1.05rem;
}

.thd-hero__identity strong{
    font-size:1.55rem;
    line-height:1.2;
}

.thd-hero__identity span{
    color:#c8fbff;
    font-weight:800;
    font-size:1.3rem;
}

.thd-shell{
    max-width:1320px;
    margin:-68px auto 0;
    padding:0 24px;
    position:relative;
    z-index:4;
}

.thd-nav{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:0;
    background:rgba(255,255,255,.98);
    border:1px solid rgba(255,255,255,.8);
    border-radius:28px;
    box-shadow:var(--thd-shadow);
    overflow:hidden;
}

.thd-nav__item{
    position:relative;
    min-height:118px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    text-decoration:none;
    color:var(--thd-text);
    transition:.25s ease;
    padding:18px 12px;
}

.thd-nav__item:not(:last-child){
    border-left:1px solid var(--thd-border);
}

.thd-nav__item:hover{
    background:#fbfcff;
    color:var(--thd-purple);
}

.thd-nav__item.is-active{
    color:var(--thd-cyan);
    background:linear-gradient(180deg, rgba(18,183,214,.06), rgba(18,183,214,0));
}

.thd-nav__item.is-active::after{
    content:"";
    position:absolute;
    right:16px;
    left:16px;
    bottom:0;
    height:4px;
    border-radius:999px 999px 0 0;
    background:linear-gradient(90deg,var(--thd-green),var(--thd-cyan));
}

.thd-nav__icon{
    width:34px;
    height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:inherit;
}

.thd-nav__icon svg{
    width:100%;
    height:100%;
}

.thd-nav__label{
    font-size:1.2rem;
    font-weight:800;
}

.thd-board{
    margin-top:28px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(255,255,255,.8);
    backdrop-filter:blur(10px);
    border-radius:32px;
    box-shadow:var(--thd-shadow);
    padding:28px;
}

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

.thd-stat{
    background:linear-gradient(180deg,#f6fdfc 0%,#f2f8ff 100%);
    border:1px solid #e7f2f2;
    border-radius:24px;
    padding:22px 20px;
    display:flex;
    align-items:center;
    gap:18px;
    min-height:150px;
}

.thd-stat__icon{
    flex:0 0 68px;
    width:68px;
    height:68px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    color:var(--thd-cyan);
    box-shadow:0 10px 22px rgba(18,183,214,.12);
}

.thd-stat__icon svg{
    width:34px;
    height:34px;
}

.thd-stat__body{
    display:grid;
    gap:8px;
}

.thd-stat__body h3{
    margin:0;
    font-size:1.05rem;
    font-weight:800;
    color:#41627f;
}

.thd-stat__body strong{
    font-size:2.5rem;
    line-height:1;
    color:var(--thd-purple-dark);
}

.thd-stat__body p{
    margin:0;
    color:var(--thd-cyan);
    font-weight:700;
}

.thd-panels{
    margin-top:24px;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.thd-panel{
    background:var(--thd-card);
    border:1px solid var(--thd-border);
    border-radius:24px;
    padding:22px;
    min-height:420px;
    display:flex;
    flex-direction:column;
    box-shadow:0 8px 24px rgba(36,50,74,.04);
}

.thd-panel__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

.thd-panel__head h3{
    margin:0;
    font-size:1.45rem;
    font-weight:900;
    color:var(--thd-purple-dark);
}

.thd-panel__mini{
    width:42px;
    height:42px;
    border-radius:14px;
    background:#f0fbfd;
    color:var(--thd-cyan);
    display:flex;
    align-items:center;
    justify-content:center;
}

.thd-panel__mini svg{
    width:22px;
    height:22px;
}

.thd-list{
    display:grid;
    gap:12px;
    flex:1;
}

.thd-list__row{
    border:1px solid var(--thd-border);
    border-radius:18px;
    padding:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    text-decoration:none;
    color:inherit;
    transition:.2s ease;
    background:#fff;
}

.thd-list__row:hover{
    border-color:#d5dbeb;
    transform:translateY(-1px);
    box-shadow:0 10px 24px rgba(67,45,119,.05);
}

.thd-list__row em{
    font-style:normal;
    width:42px;
    height:42px;
    border-radius:50%;
    background:#effbfd;
    color:var(--thd-cyan);
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 42px;
}

.thd-list__row em svg{
    width:22px;
    height:22px;
}

.thd-list__row strong{
    display:block;
    font-size:1.1rem;
    font-weight:800;
    color:var(--thd-text);
}

.thd-list__row span,
.thd-list__row small,
.thd-list__end{
    color:var(--thd-muted);
    font-size:.94rem;
}

.thd-list__row.is-complex{
    align-items:flex-start;
}

.thd-list__stack{
    display:grid;
    gap:8px;
    min-width:108px;
}

.thd-list__stack.is-left{
    justify-items:start;
    text-align:left;
}

.thd-list__content{
    display:grid;
    gap:6px;
    flex:1;
}

.thd-list__end{
    font-weight:800;
    color:#607087;
    white-space:nowrap;
}

.thd-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:6px 12px;
    border-radius:999px;
    font-size:.88rem;
    font-weight:800;
    border:1px solid transparent;
    white-space:nowrap;
}

.thd-badge.is-success{
    color:#2f7a2b;
    background:#ebf8ea;
    border-color:#d6efd4;
}

.thd-badge.is-warning{
    color:#9a6b00;
    background:#fff5d9;
    border-color:#f4e5ac;
}

.thd-badge.is-muted{
    color:#5f6673;
    background:#eef1f5;
    border-color:#dde3ea;
}

.thd-badge.is-info{
    color:#0d84b7;
    background:#e8f7fc;
    border-color:#d4eef8;
}

.thd-empty{
    min-height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    border:1px dashed #d6dce6;
    border-radius:20px;
    color:var(--thd-muted);
    background:#fafbfd;
    padding:18px;
}

.thd-panel__action{
    margin-top:16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 18px;
    border-radius:999px;
    border:1px solid rgba(18,183,214,.25);
    color:var(--thd-cyan);
    font-weight:900;
    text-decoration:none;
    transition:.2s ease;
}

.thd-panel__action:hover{
    background:linear-gradient(90deg,var(--thd-purple),var(--thd-green));
    border-color:transparent;
    color:#fff;
}

.thd-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:24px 8px 0;
    color:#66758a;
}

.thd-footer p{
    margin:0;
}

.thd-footer__brand{
    display:flex;
    align-items:center;
    gap:14px;
}

.thd-footer__logo{
    width:58px;
    height:58px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,var(--thd-purple),var(--thd-green));
    color:#fff;
    font-weight:900;
    font-size:1rem;
    box-shadow:0 12px 24px rgba(77,183,72,.18);
}

.thd-footer__brand strong{
    display:block;
    color:var(--thd-purple-dark);
    margin-bottom:3px;
}

.thd-footer__brand span{
    color:#738198;
    font-size:.92rem;
}

@media (max-width: 1199px){
    .thd-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .thd-panels{
        grid-template-columns:1fr;
    }
}

@media (max-width: 860px){
    .thulthin-client-dashboard{
        margin:-16px;
    }

    .thd-hero{
        padding:28px 16px 118px;
    }

    .thd-hero__content{
        flex-direction:column;
        align-items:flex-start;
    }

    .thd-hero__identity{
        text-align:right;
    }

    .thd-shell{
        margin-top:-82px;
        padding:0 16px;
    }

    .thd-nav{
        grid-template-columns:repeat(3,minmax(0,1fr));
        border-radius:24px;
    }

    .thd-nav__item{
        min-height:98px;
        padding:14px 10px;
    }

    .thd-nav__label{
        font-size:1rem;
    }

    .thd-board{
        padding:18px;
        border-radius:24px;
    }

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

    .thd-stat{
        min-height:130px;
    }

    .thd-footer{
        flex-direction:column-reverse;
        align-items:flex-start;
        padding:22px 4px 0;
    }
}

@media (max-width: 520px){
    .thd-nav{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .thd-panel{
        padding:18px;
        min-height:auto;
    }

    .thd-panel__head h3{
        font-size:1.18rem;
    }

    .thd-list__row{
        padding:14px;
    }

    .thd-list__row.is-complex{
        flex-direction:column;
        align-items:stretch;
    }

    .thd-list__stack,
    .thd-list__stack.is-left{
        justify-items:start;
        text-align:right;
        min-width:auto;
    }

    .thd-list__end{
        text-align:left;
    }
}


/* THULTHIN_NAV_COMING_SOON_V1
-------------------------------------------------- */

.thd-nav__item.is-coming-soon{
    position:relative;
    cursor:not-allowed;
    user-select:none;
    color:#8c94a3;
    background:
        linear-gradient(
            180deg,
            rgba(247,248,252,.95),
            rgba(255,255,255,.98)
        );
}

.thd-nav__item.is-coming-soon:hover{
    color:#8c94a3;
    background:
        linear-gradient(
            180deg,
            rgba(247,248,252,.95),
            rgba(255,255,255,.98)
        );
}

.thd-nav__item.is-coming-soon .thd-nav__icon{
    opacity:.58;
}

.thd-nav__item.is-coming-soon .thd-nav__label{
    opacity:.78;
}

.thd-nav__soon-badge{
    position:absolute;
    top:9px;
    left:50%;
    transform:translateX(-50%);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:22px;
    padding:3px 10px;
    border-radius:999px;
    background:
        linear-gradient(
            135deg,
            rgba(91,63,153,.10),
            rgba(77,183,72,.12)
        );
    border:1px solid rgba(91,63,153,.15);
    color:#5b3f99;
    font-size:.68rem;
    line-height:1;
    font-weight:900;
    white-space:nowrap;
}

@media (max-width:860px){
    .thd-nav__soon-badge{
        top:6px;
        padding:3px 8px;
        font-size:.62rem;
    }
}


/* THULTHIN_CLIENT_HUB_UNIFIED_V3
   Unified client portal — Thulthin green identity
-------------------------------------------------- */
.client-hub-hero{
    position:relative;
    overflow:hidden;
    padding:38px 0 92px;
    background:
        radial-gradient(circle at 12% 20%,rgba(40,164,122,.24),transparent 28%),
        radial-gradient(circle at 88% 12%,rgba(255,255,255,.08),transparent 25%),
        linear-gradient(135deg,var(--green-950),var(--green-800));
    color:#fff;
}
.client-hub-hero::after{
    content:"";
    position:absolute;
    width:560px;height:560px;
    left:-180px;top:-330px;
    border:1px solid rgba(255,255,255,.11);
    border-radius:50%;
    box-shadow:0 0 0 42px rgba(255,255,255,.025),0 0 0 90px rgba(255,255,255,.018);
}
.client-hub-hero__inner{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:28px}
.client-hub-hero__eyebrow{display:block;color:#bfe5d5;font-size:13px;font-weight:800;margin-bottom:4px}
.client-hub-hero h1{margin:0;font-size:34px;line-height:1.25;color:#fff}
.client-hub-hero p{margin:8px 0 0;color:rgba(255,255,255,.78)}
.client-hub-account{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:10px 12px}
.client-hub-account__avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#fff;color:var(--green-900);font-weight:900;font-size:18px}
.client-hub-account>div:nth-child(2){display:grid;gap:2px;min-width:120px}
.client-hub-account strong{color:#fff;font-size:14px}
.client-hub-account span{color:#d8eee6;font-size:12px}
.client-hub-logout{border:1px solid rgba(255,255,255,.25);background:transparent;color:#fff;border-radius:10px;padding:7px 10px;cursor:pointer}
.client-hub-logout:hover{background:#fff;color:var(--green-900)}

.client-hub-nav-wrap{position:relative;z-index:4;margin-top:-54px}
.client-hub-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-md);overflow:hidden}
.client-hub-nav__item{position:relative;min-height:108px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:14px 8px;color:#49605a;font-weight:800;border-left:1px solid #edf2ef;transition:.2s ease}
.client-hub-nav__item:last-child{border-left:0}
.client-hub-nav__item:hover{color:var(--green-800);background:var(--green-50)}
.client-hub-nav__item.is-active{color:var(--green-800);background:linear-gradient(180deg,#fff,var(--green-50))}
.client-hub-nav__item.is-active::after{content:"";position:absolute;right:14px;left:14px;bottom:0;height:4px;border-radius:4px 4px 0 0;background:var(--green-600)}
.client-hub-nav__icon{width:29px;height:29px;display:grid;place-items:center}
.client-hub-nav__icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.client-hub-section{padding:34px 0 76px}
.client-hub-card,.client-hub-panel{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-sm)}
.client-hub-card{padding:28px}
.client-hub-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:24px}
.client-hub-page-head>div:first-child{display:grid;gap:4px}
.client-hub-page-head span{color:var(--green-700);font-size:13px;font-weight:800}
.client-hub-page-head h2{margin:0;color:var(--green-950);font-size:27px}
.client-hub-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.client-hub-primary,.client-hub-filter-btn,.client-hub-detail{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--green-700);background:var(--green-700);color:#fff;border-radius:12px;font-weight:800;min-height:43px;padding:9px 17px;cursor:pointer;text-decoration:none}
.client-hub-primary:hover,.client-hub-filter-btn:hover,.client-hub-detail:hover{background:var(--green-900);border-color:var(--green-900);color:#fff}
.client-hub-detail{min-height:34px;padding:5px 13px;background:#fff;color:var(--green-800);border-color:var(--green-200);font-size:13px}
.client-hub-detail:hover{background:var(--green-50);color:var(--green-900);border-color:var(--green-600)}
.client-hub-coming{display:inline-flex!important;align-items:center;min-height:34px;padding:5px 11px;border-radius:999px;background:var(--green-50);border:1px solid var(--green-100);color:var(--green-800)!important;font-size:12px!important}

.client-hub-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:22px;padding:16px;background:#fbfdfc;border:1px solid #edf3ef;border-radius:18px}
.client-hub-filters label{display:grid;gap:6px;min-width:180px}
.client-hub-filters label>span{color:#536a64;font-size:12px;font-weight:800}
.client-hub-search{flex:1 1 320px}
.client-hub-filters input,.client-hub-filters select,.client-ticket-form input,.client-ticket-form select,.client-ticket-form textarea{width:100%;border:1px solid #d9e4df;background:#fff;color:var(--text);border-radius:12px;min-height:44px;padding:9px 12px;outline:none}
.client-hub-filters input:focus,.client-hub-filters select:focus,.client-ticket-form input:focus,.client-ticket-form select:focus,.client-ticket-form textarea:focus{border-color:var(--green-600);box-shadow:0 0 0 3px rgba(23,141,104,.10)}
.client-hub-clear{display:inline-flex;align-items:center;min-height:43px;padding:8px 12px;font-weight:800;color:var(--muted)}

.client-hub-table-wrap{overflow-x:auto;border:1px solid #edf2ef;border-radius:18px}
.client-hub-table{width:100%;border-collapse:separate;border-spacing:0;min-width:760px}
.client-hub-table th{padding:15px 14px;background:var(--green-50);color:var(--green-800);font-size:13px;text-align:right;border-bottom:1px solid var(--green-100);white-space:nowrap}
.client-hub-table td{padding:15px 14px;border-bottom:1px solid #eef3f0;color:#40564f;vertical-align:middle}
.client-hub-table tbody tr:last-child td{border-bottom:0}
.client-hub-table tbody tr:hover td{background:#fcfefd}
.client-hub-table tr.is-cancelled td{background:#f3f4f6!important;color:#737b86!important}
.client-hub-table-empty{text-align:center!important;padding:42px 18px!important;color:var(--muted)!important;background:#fbfcfb!important;font-weight:700}
.client-hub-pagination{margin-top:20px}

.client-status{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap;background:var(--green-50);color:var(--green-800);border:1px solid var(--green-100)}
.client-status--new,.client-status--contacted,.client-status--studying,.client-status--awaiting_client,.client-status--warning,.client-status--open,.client-status--unpaid{background:var(--warning-bg);border-color:#f2deb0;color:var(--warning)}
.client-status--agreed,.client-status--in_progress,.client-status--testing,.client-status--active,.client-status--paid{background:var(--success-bg);border-color:#bce8d5;color:var(--success)}
.client-status--completed{background:var(--green-100);border-color:var(--green-200);color:var(--green-900)}
.client-status--cancelled,.client-status--closed,.client-status--expired{background:#eef0f2;border-color:#dfe3e7;color:#68707a}
.client-status--pending,.client-status--awaiting_client{background:var(--warning-bg);border-color:#f2deb0;color:var(--warning)}

.client-hub-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.client-hub-stat{display:grid;gap:7px;min-height:148px;padding:22px;border:1px solid var(--green-100);border-radius:22px;background:linear-gradient(145deg,#fff,var(--green-50));box-shadow:var(--shadow-sm);color:var(--text);transition:.2s ease}
.client-hub-stat:hover{transform:translateY(-2px);border-color:var(--green-200);color:var(--text)}
.client-hub-stat__label{color:var(--green-800);font-size:14px;font-weight:900}
.client-hub-stat strong{font-size:38px;line-height:1;color:var(--green-950)}
.client-hub-stat small{color:var(--muted);font-weight:700}
.client-hub-dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}
.client-hub-panel{padding:22px;min-height:330px}
.client-hub-panel__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.client-hub-panel__head h2{margin:0;color:var(--green-950);font-size:18px}
.client-hub-panel__head a{font-size:13px;font-weight:800}
.client-hub-mini-list{display:grid;gap:10px}
.client-hub-mini-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px;border:1px solid #edf2ef;border-radius:15px;color:var(--text);background:#fff}
.client-hub-mini-row:hover{color:var(--text);border-color:var(--green-200);background:var(--green-50)}
.client-hub-mini-row>div{display:grid;gap:3px;min-width:0}
.client-hub-mini-row strong{color:var(--ink);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.client-hub-mini-row span:not(.client-status){font-size:12px;color:var(--muted)}
.client-hub-empty{min-height:190px;display:grid;place-items:center;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:16px;background:#fbfdfc;padding:18px;font-weight:700}

.client-ticket-new{position:relative}
.client-ticket-new>summary{list-style:none}
.client-ticket-new>summary::-webkit-details-marker{display:none}
.client-ticket-form-wrap{position:absolute;z-index:20;left:0;top:52px;width:min(520px,calc(100vw - 48px));padding:18px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-md)}
.client-ticket-form{display:grid;gap:14px}
.client-ticket-form label{display:grid;gap:6px}
.client-ticket-form label>span{color:#536a64!important;font-size:12px!important}
.client-ticket-form__grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.client-ticket-form textarea{resize:vertical;min-height:120px}

@media (max-width:1000px){
    .client-hub-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
    .client-hub-dashboard-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
    .client-hub-hero{padding:26px 0 78px}
    .client-hub-hero__inner{align-items:flex-start;flex-direction:column}
    .client-hub-hero h1{font-size:28px}
    .client-hub-account{width:100%;justify-content:flex-start}
    .client-hub-account form{margin-right:auto}
    .client-hub-nav-wrap{margin-top:-44px;padding-inline:0}
    .client-hub-nav{display:flex;overflow-x:auto;scroll-snap-type:x proximity;border-radius:20px;overscroll-behavior-inline:contain}
    .client-hub-nav__item{flex:0 0 118px;min-height:88px;scroll-snap-align:start;border-left:1px solid #edf2ef;font-size:13px}
    .client-hub-nav__icon{width:24px;height:24px}
    .client-hub-section{padding-top:24px}
    .client-hub-card{padding:16px;border-radius:20px}
    .client-hub-page-head{align-items:flex-start;flex-direction:column}
    .client-hub-actions{width:100%}
    .client-hub-filters{align-items:stretch;flex-direction:column;padding:13px}
    .client-hub-filters label,.client-hub-search{min-width:0;width:100%;flex:auto}
    .client-hub-filter-btn,.client-hub-clear{width:100%}
    .client-hub-table-wrap{overflow:visible;border:0}
    .client-hub-table{min-width:0;border-collapse:separate;border-spacing:0 10px}
    .client-hub-table thead{display:none}
    .client-hub-table,.client-hub-table tbody,.client-hub-table tr,.client-hub-table td{display:block;width:100%}
    .client-hub-table tr{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(8,67,52,.04)}
    .client-hub-table td{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border-bottom:1px solid #edf2ef;text-align:left}
    .client-hub-table td::before{content:attr(data-label);font-size:12px;font-weight:900;color:var(--green-800);text-align:right}
    .client-hub-table td:last-child{border-bottom:0}
    .client-hub-table-empty{display:block!important;text-align:center!important;padding:30px 14px!important}
    .client-hub-table-empty::before{display:none}
    .client-hub-stats{grid-template-columns:1fr 1fr;gap:10px}
    .client-hub-stat{min-height:126px;padding:17px}
    .client-hub-stat strong{font-size:31px}
    .client-ticket-new{width:100%}
    .client-ticket-new>summary{width:100%}
    .client-ticket-form-wrap{position:static;width:100%;margin-top:10px;box-shadow:none}
}
@media (max-width:440px){
    .client-hub-stats{grid-template-columns:1fr}
    .client-ticket-form__grid{grid-template-columns:1fr}
}

/* THULTHIN_SUPPORT_TICKETS_V4
   Unified client/admin support-ticket experience — Thulthin green identity
---------------------------------------------------------------------------- */
.support-v4-page{background:#f6faf8}
.support-v4-card{overflow:hidden}
.support-v4-head{align-items:center}
.support-v4-head p,.support-v4-create-head p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.8}
.support-v4-new-btn{white-space:nowrap}
.support-v4-alert{margin:0 0 18px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);font-weight:700;line-height:1.8}
.support-v4-alert.is-success{background:var(--green-50);border-color:var(--green-200);color:var(--green-900)}
.support-v4-alert.is-error{background:var(--danger-bg);border-color:#f2c6c2;color:var(--danger)}
.support-v4-alert ul{margin:6px 0 0;padding-right:20px}
.support-v4-filters{display:grid;grid-template-columns:minmax(260px,1fr) 190px 190px auto auto;align-items:end}
.support-v4-table td small{display:block;margin-top:4px;color:var(--muted)}
.support-v4-project-line{display:block;color:var(--ink);font-weight:800}

.support-priority{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:4px 11px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap;border:1px solid var(--green-100);background:var(--green-50);color:var(--green-900)}
.support-priority--normal{background:var(--green-50);border-color:var(--green-100);color:var(--green-800)}
.support-priority--medium{background:#fff7df;border-color:#f3dfaa;color:#8a6400}
.support-priority--urgent{background:#fff0ef;border-color:#f4c7c2;color:#aa332c}

.support-v4-narrow{max-width:940px}
.support-v4-create-card{padding:0;overflow:hidden}
.support-v4-create-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:26px 28px;border-bottom:1px solid var(--line);background:linear-gradient(145deg,#fff,var(--green-50))}
.support-v4-create-head h2{margin:2px 0 0;color:var(--green-950);font-size:27px}
.support-v4-kicker{color:var(--green-700);font-size:12px;font-weight:900}
.support-v4-form{display:grid;gap:0}
.support-v4-form-section{padding:26px 28px;border-bottom:1px solid #edf2ef}
.support-v4-step{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.support-v4-step>span{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:var(--green-700);color:#fff;font-weight:900;box-shadow:0 7px 18px rgba(23,141,104,.16)}
.support-v4-step>div{display:grid;gap:2px}
.support-v4-step strong{color:var(--green-950);font-size:16px}
.support-v4-step small{color:var(--muted)}
.support-v4-field{display:grid;gap:7px}
.support-v4-field>span{font-size:13px;font-weight:900;color:#40564f}
.support-v4-field>small{color:var(--muted);font-size:11px}
.support-v4-field input,.support-v4-field select,.support-v4-field textarea,.support-ticket-reply-form textarea{width:100%;border:1px solid #d9e4df;background:#fff;color:var(--text);border-radius:13px;min-height:46px;padding:10px 13px;outline:none;font:inherit}
.support-v4-field textarea,.support-ticket-reply-form textarea{resize:vertical;line-height:1.9}
.support-v4-field input:focus,.support-v4-field select:focus,.support-v4-field textarea:focus,.support-ticket-reply-form textarea:focus{border-color:var(--green-600);box-shadow:0 0 0 3px rgba(23,141,104,.10)}

.support-priority-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.support-priority-choice{position:relative;display:flex;align-items:flex-start;gap:11px;padding:16px;border:1px solid #dfe9e4;border-radius:16px;background:#fff;cursor:pointer;transition:.18s ease}
.support-priority-choice:hover{border-color:var(--green-200);background:var(--green-50)}
.support-priority-choice input{position:absolute;opacity:0;pointer-events:none}
.support-priority-choice__dot{width:20px;height:20px;flex:0 0 20px;border:2px solid #aebdb7;border-radius:50%;margin-top:2px;position:relative}
.support-priority-choice__dot::after{content:"";position:absolute;inset:4px;border-radius:50%;background:transparent}
.support-priority-choice>div{display:grid;gap:4px}
.support-priority-choice strong{color:var(--ink)}
.support-priority-choice small{color:var(--muted);line-height:1.7}
.support-priority-choice:has(input:checked){border-color:var(--green-600);background:var(--green-50);box-shadow:0 0 0 2px rgba(23,141,104,.06)}
.support-priority-choice:has(input:checked) .support-priority-choice__dot{border-color:var(--green-700)}
.support-priority-choice:has(input:checked) .support-priority-choice__dot::after{background:var(--green-700)}
.support-priority-choice.is-medium:has(input:checked){border-color:#d9bd63;background:#fffaf0}
.support-priority-choice.is-medium:has(input:checked) .support-priority-choice__dot{border-color:#b78713}
.support-priority-choice.is-medium:has(input:checked) .support-priority-choice__dot::after{background:#b78713}
.support-priority-choice.is-urgent:has(input:checked){border-color:#de8e86;background:#fff5f4}
.support-priority-choice.is-urgent:has(input:checked) .support-priority-choice__dot{border-color:#b83d35}
.support-priority-choice.is-urgent:has(input:checked) .support-priority-choice__dot::after{background:#b83d35}

.support-v4-upload{display:flex;align-items:center;gap:15px;padding:19px;border:1px dashed #9dcaba;border-radius:16px;background:var(--green-50);cursor:pointer;transition:.18s ease}
.support-v4-upload:hover{border-color:var(--green-600);background:#edf8f3}
.support-v4-upload input{position:absolute;opacity:0;width:1px;height:1px}
.support-v4-upload__icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#fff;color:var(--green-800);font-size:23px;font-weight:900;box-shadow:var(--shadow-sm)}
.support-v4-upload>div{display:grid;gap:4px}
.support-v4-upload strong{color:var(--green-950)}
.support-v4-upload small{color:var(--muted);line-height:1.7}
.support-v4-security-note{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:12px 14px;border-radius:13px;background:#fbfdfc;border:1px solid #e7efeb;font-size:12px;line-height:1.8;color:#5e716b}
.support-v4-security-note strong{color:var(--green-800);white-space:nowrap}
.support-v4-submit-row{display:flex;align-items:center;gap:12px;padding:22px 28px;background:#fbfdfc}
.support-v4-submit{min-width:180px}
.support-v4-full-btn{width:100%;margin-top:16px}

.support-ticket-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.support-ticket-conversation-card{padding:0;overflow:hidden}
.support-ticket-titlebar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 26px;border-bottom:1px solid var(--line);background:linear-gradient(145deg,#fff,var(--green-50))}
.support-ticket-titlebar h2{margin:5px 0 0;color:var(--green-950);font-size:23px}
.support-ticket-number{font-size:12px;font-weight:900;color:var(--green-700)}
.support-ticket-titlebar__badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.support-ticket-thread{display:grid;gap:14px;padding:24px;background:#f8fbf9}
.support-message{max-width:82%;padding:15px 17px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(20,68,52,.04)}
.support-message.is-client{justify-self:start;border-top-right-radius:6px}
.support-message.is-admin{justify-self:end;border-color:var(--green-200);background:var(--green-50);border-top-left-radius:6px}
.support-message__meta{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:8px}
.support-message__meta strong{color:var(--green-900);font-size:13px}
.support-message__meta span{color:var(--muted);font-size:11px;direction:ltr}
.support-message p{margin:0;color:#334b44;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}
.support-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.support-attachments a{display:flex;align-items:center;gap:8px;max-width:100%;padding:8px 10px;border:1px solid #dfeae5;border-radius:11px;background:#fff;color:var(--text)}
.support-attachments a:hover{border-color:var(--green-300,#9bcdb9);background:var(--green-50)}
.support-attachments a>div{display:grid;gap:2px;min-width:0}
.support-attachments strong{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.support-attachments small{color:var(--muted);font-size:10px}
.support-ticket-reply-form{display:grid;gap:12px;padding:22px 24px;border-top:1px solid var(--line);background:#fff}
.support-v4-reply-head>div{display:grid;gap:3px}
.support-v4-reply-head strong{color:var(--green-950);font-size:16px}
.support-v4-reply-head small{color:var(--muted)}
.support-ticket-reply-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.support-v4-mini-upload{position:relative;display:inline-flex;align-items:center;cursor:pointer}
.support-v4-mini-upload input{position:absolute;opacity:0;width:1px;height:1px}
.support-v4-mini-upload span{display:inline-flex;align-items:center;min-height:42px;padding:8px 13px;border:1px solid var(--green-200);border-radius:11px;background:var(--green-50);color:var(--green-800);font-weight:800;font-size:12px}
.support-v4-file-hint{color:var(--muted);font-size:11px}
.support-ticket-side-card{padding:20px;position:sticky;top:18px}
.support-ticket-side-card h3{margin:0 0 14px;color:var(--green-950)}
.support-ticket-meta-list{display:grid;gap:0;margin:0}
.support-ticket-meta-list>div{display:grid;gap:4px;padding:12px 0;border-bottom:1px solid #edf2ef}
.support-ticket-meta-list>div:last-child{border-bottom:0}
.support-ticket-meta-list dt{color:var(--muted);font-size:11px;font-weight:800}
.support-ticket-meta-list dd{margin:0;color:var(--ink);font-weight:800;overflow-wrap:anywhere}
.support-ticket-meta-list dd small{display:block;margin-top:3px;color:var(--muted);font-size:10px}

/* Admin support tickets */
.support-admin-head{align-items:center}
.support-admin-count{min-width:132px;display:grid;gap:2px;padding:12px 16px;border:1px solid var(--green-100);border-radius:15px;background:var(--green-50);text-align:center}
.support-admin-count strong{font-size:26px;color:var(--green-900)}
.support-admin-count span{font-size:11px;color:var(--muted);font-weight:800}
.support-admin-card{padding:20px}
.support-admin-filters{display:grid;grid-template-columns:minmax(280px,1fr) 190px 190px auto auto;gap:10px;align-items:end;margin-bottom:18px}
.support-admin-table td small{display:block;margin-top:3px;color:var(--muted)}
.support-admin-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}
.support-admin-thread-card{padding:20px}
.support-admin-thread-card .support-ticket-thread{padding:0;background:transparent;margin:14px 0 20px}
.support-admin-side{display:grid;gap:18px;position:sticky;top:18px}
.support-admin-side .admin-card{padding:18px}
.support-admin-reply-form{display:grid;gap:13px;padding-top:18px;border-top:1px solid var(--line)}
.support-admin-reply-form textarea{width:100%;min-height:130px;border:1px solid var(--line);border-radius:12px;padding:11px 12px;font:inherit;resize:vertical;outline:none}
.support-admin-reply-form textarea:focus{border-color:var(--green-600);box-shadow:0 0 0 3px rgba(23,141,104,.10)}
.support-admin-reply-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.admin-meta-list a{font-weight:900;color:var(--green-800)}

@media (max-width:1100px){
    .support-v4-filters,.support-admin-filters{grid-template-columns:1fr 1fr}
    .support-ticket-detail-grid,.support-admin-detail-grid{grid-template-columns:1fr}
    .support-ticket-side-card,.support-admin-side{position:static}
}
@media (max-width:760px){
    .support-v4-head,.support-v4-create-head{align-items:stretch;flex-direction:column}
    .support-v4-new-btn{width:100%}
    .support-v4-create-head,.support-v4-form-section,.support-v4-submit-row{padding:18px}
    .support-priority-grid{grid-template-columns:1fr}
    .support-ticket-titlebar{flex-direction:column;padding:18px}
    .support-ticket-thread{padding:15px}
    .support-message{max-width:94%}
    .support-ticket-reply-form{padding:18px}
    .support-ticket-reply-actions{align-items:stretch;flex-direction:column}
    .support-v4-mini-upload,.support-v4-mini-upload span,.support-ticket-reply-actions .client-hub-primary{width:100%;justify-content:center}
    .support-admin-filters,.support-admin-reply-grid{grid-template-columns:1fr}
}

.support-ticket-nav-badge{margin-right:auto;min-width:22px;height:22px;padding:0 7px;display:inline-grid;place-items:center;border-radius:999px;background:var(--green-700);color:#fff;font-size:10px;font-weight:900}
.support-admin-dashboard-link{display:flex;align-items:center;gap:13px;margin:0 0 18px;padding:15px 18px;border:1px solid var(--green-100);border-radius:15px;background:linear-gradient(145deg,#fff,var(--green-50));color:var(--text);box-shadow:var(--shadow-sm)}
.support-admin-dashboard-link:hover{color:var(--text);border-color:var(--green-200);transform:translateY(-1px)}
.support-admin-dashboard-link>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--green-700);color:#fff;font-size:20px}
.support-admin-dashboard-link>div{display:grid;gap:2px}
.support-admin-dashboard-link strong{color:var(--green-950)}
.support-admin-dashboard-link small{color:var(--muted)}
.support-admin-dashboard-link>b{margin-right:auto;color:var(--green-900);font-size:24px}




/* THULTHIN_SUPPORT_TICKETS_V5
-------------------------------------------------- */

.client-status--closed{
    background:#fff7e6!important;
    color:#8a5a00!important;
    border-color:#f3d79a!important;
}

.client-status--resolved{
    background:var(--green-100)!important;
    color:var(--green-900)!important;
    border-color:var(--green-200)!important;
}

.support-closure-card,
.support-resolved-card,
.support-admin-closure-notice,
.support-admin-rating-summary{
    margin:0 0 18px;
    border-radius:20px;
    border:1px solid var(--green-200);
    background:linear-gradient(145deg,#fff,var(--green-50));
    box-shadow:var(--shadow-sm);
}

.support-closure-card{
    display:grid;
    grid-template-columns:64px minmax(0,1fr);
    gap:18px;
    padding:22px;
}

.support-closure-card__icon,
.support-resolved-card__icon{
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:var(--green-800);
    color:#fff;
    font-size:26px;
    font-weight:900;
}

.support-closure-card__eyebrow{
    display:inline-block;
    margin-bottom:4px;
    color:var(--green-700);
    font-size:12px;
    font-weight:900;
}

.support-closure-card h2,
.support-resolved-card h2{
    margin:0;
    color:var(--green-950);
}

.support-closure-card p{
    margin:8px 0 18px;
    color:var(--text);
    line-height:1.9;
}

.support-rating-form{
    display:grid;
    gap:16px;
}

.support-rating-fieldset{
    margin:0;
    padding:0;
    border:0;
    min-width:0;
}

.support-rating-fieldset legend{
    margin:0 0 10px;
    font-weight:900;
    color:var(--ink);
}

.support-rating-fieldset legend strong{
    margin-right:6px;
    color:#b42318;
    font-size:11px;
}

.support-rating-options{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:8px;
}

.support-rating-option{
    position:relative;
    display:grid;
    place-items:center;
    gap:5px;
    min-height:74px;
    padding:10px 8px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    cursor:pointer;
    transition:.2s ease;
}

.support-rating-option:hover{
    border-color:var(--green-300,#93cbb5);
    background:var(--green-50);
}

.support-rating-option input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.support-rating-option:has(input:checked){
    border-color:var(--green-700);
    background:var(--green-50);
    box-shadow:0 0 0 3px rgba(15,123,91,.10);
}

.support-rating-option__stars{
    direction:ltr;
    color:#c2aa76;
    letter-spacing:1px;
    font-size:17px;
    white-space:nowrap;
}

.support-rating-option:has(input:checked) .support-rating-option__stars{
    color:#b88716;
}

.support-rating-option small{
    color:var(--muted);
    font-weight:700;
}

.support-rating-comment{
    display:grid;
    gap:7px;
}

.support-rating-comment>span{
    font-weight:800;
    color:var(--ink);
}

.support-rating-comment>span small{
    color:var(--muted);
    font-weight:500;
}

.support-rating-comment textarea{
    width:100%;
    resize:vertical;
    min-height:90px;
    padding:12px 14px;
    border:1px solid var(--line);
    border-radius:13px;
    font:inherit;
    color:var(--text);
    background:#fff;
}

.support-rating-comment textarea:focus{
    outline:0;
    border-color:var(--green-600);
    box-shadow:0 0 0 3px rgba(23,141,104,.10);
}

.support-confirm-close-btn{
    width:max-content;
    min-width:230px;
    justify-content:center;
}

.support-resolved-card{
    display:flex;
    align-items:flex-start;
    gap:16px;
    padding:20px 22px;
}

.support-resolved-card>div:last-child{
    display:grid;
    gap:6px;
}

.support-resolved-card>div:last-child>span{
    color:var(--green-800);
    font-weight:900;
}

.support-resolved-card h2{
    direction:ltr;
    text-align:right;
    color:#b88716;
    font-size:25px;
}

.support-resolved-card h2 b{
    color:var(--green-950);
    font-size:15px;
}

.support-resolved-card p,
.support-resolved-card small{
    margin:0;
    color:var(--muted);
}

.support-final-note,
.support-admin-final-state{
    margin-top:18px;
    padding:18px;
    border:1px solid var(--green-200);
    border-radius:15px;
    background:var(--green-50);
    display:grid;
    gap:7px;
}

.support-final-note strong,
.support-admin-final-state strong{
    color:var(--green-950);
}

.support-final-note span,
.support-admin-final-state span{
    color:var(--muted);
}

.support-final-note .client-hub-detail{
    width:max-content;
    margin-top:5px;
}

.support-meta-rating{
    direction:ltr;
    text-align:right;
    color:#b88716!important;
    font-size:18px;
    font-weight:900;
}

.support-meta-rating small{
    color:var(--green-900)!important;
    font-size:11px!important;
}

.support-admin-closure-notice{
    padding:15px 18px;
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.support-admin-closure-notice strong{
    color:#8a5a00;
}

.support-admin-closure-notice span{
    color:var(--muted);
}

.support-admin-rating-summary{
    padding:18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.support-admin-rating-summary>div{
    display:grid;
    gap:5px;
}

.support-admin-rating-summary__label{
    color:var(--green-700);
    font-weight:900;
    font-size:12px;
}

.support-admin-rating-summary strong{
    direction:ltr;
    text-align:right;
    color:#b88716;
    font-size:24px;
}

.support-admin-rating-summary strong b{
    color:var(--green-950);
    font-size:14px;
}

.support-admin-rating-summary p,
.support-admin-rating-summary small{
    margin:0;
    color:var(--muted);
}

.support-rating-stats{
    display:grid;
    grid-template-columns:1.1fr .9fr 1.3fr;
    gap:14px;
    margin-bottom:18px;
}

.support-rating-stat-card{
    min-height:140px;
    padding:18px;
    border:1px solid var(--green-100);
    border-radius:18px;
    background:#fff;
    box-shadow:var(--shadow-sm);
    display:grid;
    align-content:center;
    gap:7px;
}

.support-rating-stat-card.is-primary{
    background:linear-gradient(145deg,var(--green-950),var(--green-700));
    color:#fff;
}

.support-rating-stat-card>span{
    color:var(--muted);
    font-weight:800;
}

.support-rating-stat-card.is-primary>span{
    color:rgba(255,255,255,.78);
}

.support-rating-stat-card>strong{
    color:var(--green-950);
    font-size:34px;
}

.support-rating-stat-card.is-primary>strong{
    color:#fff;
}

.support-rating-stat-card>small{
    color:var(--muted);
}

.support-rating-stars-display{
    direction:ltr;
    display:flex;
    gap:2px;
    font-size:18px;
}

.support-rating-stars-display b{
    color:rgba(255,255,255,.28);
}

.support-rating-stars-display b.is-on{
    color:#f0cb5b;
}

.support-rating-distribution{
    display:grid;
    gap:5px;
}

.support-rating-distribution>div{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-bottom:4px;
    border-bottom:1px solid var(--green-50);
}

.support-rating-distribution span{
    color:#9c7a20;
    font-weight:800;
}

.support-rating-distribution strong{
    color:var(--green-950);
}

.support-table-rating{
    direction:ltr;
    display:grid;
    gap:2px;
    text-align:right;
}

.support-table-rating span{
    color:#b88716;
    letter-spacing:1px;
}

.support-table-rating strong{
    color:var(--green-900);
    font-size:11px;
}

.support-rating-comment-cell{
    max-width:340px;
    white-space:normal!important;
    line-height:1.7;
}

.support-rating-dashboard{
    margin:0 0 18px;
    display:grid;
    grid-template-columns:260px minmax(0,1fr);
    gap:14px;
}

.support-rating-dashboard__summary,
.support-rating-dashboard__latest{
    border:1px solid var(--green-100);
    background:#fff;
    border-radius:17px;
    box-shadow:var(--shadow-sm);
}

.support-rating-dashboard__summary{
    padding:17px;
    display:grid;
    gap:6px;
    align-content:center;
    text-decoration:none;
}

.support-rating-dashboard__summary:hover{
    color:inherit;
    border-color:var(--green-300,#93cbb5);
}

.support-rating-dashboard__summary span{
    color:var(--green-700);
    font-weight:900;
}

.support-rating-dashboard__summary strong{
    color:var(--green-950);
    font-size:30px;
}

.support-rating-dashboard__summary small{
    color:var(--muted);
}

.support-rating-dashboard__stars{
    direction:ltr;
    color:#b88716!important;
    letter-spacing:1px;
}

.support-rating-dashboard__latest{
    padding:14px 16px;
}

.support-rating-dashboard__latest-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
}

.support-rating-dashboard__latest-head strong{
    color:var(--green-950);
}

.support-rating-dashboard__latest-head a{
    font-size:12px;
    font-weight:800;
}

.support-rating-dashboard__rows{
    display:grid;
    gap:7px;
}

.support-rating-dashboard__row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:10px;
    align-items:center;
    padding:8px 0;
    border-top:1px solid var(--green-50);
}

.support-rating-dashboard__row:first-child{
    border-top:0;
}

.support-rating-dashboard__row>div{
    display:grid;
}

.support-rating-dashboard__row strong{
    color:var(--ink);
}

.support-rating-dashboard__row small{
    color:var(--muted);
}

.support-rating-dashboard__row>span{
    direction:ltr;
    color:#b88716;
    white-space:nowrap;
}

.support-rating-dashboard__row>a{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:9px;
    background:var(--green-50);
    color:var(--green-800);
}

.support-rating-empty{
    color:var(--muted);
    padding:12px 0;
}

@media(max-width:900px){
    .support-rating-options{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .support-rating-stats{
        grid-template-columns:1fr;
    }

    .support-rating-dashboard{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    .support-closure-card{
        grid-template-columns:1fr;
        padding:18px;
    }

    .support-rating-options{
        grid-template-columns:1fr;
    }

    .support-confirm-close-btn{
        width:100%;
        min-width:0;
    }

    .support-admin-rating-summary,
    .support-admin-closure-notice{
        align-items:flex-start;
        flex-direction:column;
    }

    .support-rating-dashboard__row{
        grid-template-columns:1fr auto;
    }

    .support-rating-dashboard__row>a{
        display:none;
    }
}



/* THULTHIN_REQUEST_PROJECT_SPLIT_V1
-------------------------------------------------- */

.client-hub-flow-note{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin:0 0 20px;
    padding:15px 17px;
    border:1px solid var(--green-100);
    border-radius:16px;
    background:linear-gradient(135deg,var(--green-50),#fff);
    color:#456158;
}

.client-hub-flow-note strong{
    flex:0 0 auto;
    color:var(--green-900);
    font-weight:900;
}

.client-hub-flow-note span{
    line-height:1.8;
}

.client-hub-flow-note b{
    color:var(--green-800);
}

.client-hub-flow-note.is-project{
    border-color:#cfe8d7;
    background:linear-gradient(135deg,#f1faf4,#fff);
}

.client-hub-cell-sub{
    display:block;
    margin-top:5px;
    color:var(--muted);
    font-size:12px;
    font-weight:600;
}

.client-request-quote{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:4px 10px;
    border-radius:999px;
    border:1px solid #e0e6e2;
    background:#f6f8f7;
    color:#6b756f;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}

.client-request-quote.is-sent{
    border-color:#f0ddb0;
    background:#fff7df;
    color:#956800;
}

.client-request-quote.is-accepted{
    border-color:#bce8d5;
    background:#ebf8f0;
    color:#18764e;
}

.client-request-quote.is-rejected{
    border-color:#efcccc;
    background:#fff0f0;
    color:#a33c3c;
}

.client-project-progress{
    min-width:170px;
}

.client-project-progress__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:7px;
    font-size:12px;
    color:#557068;
}

.client-project-progress__top strong{
    color:var(--green-800);
    font-size:12px;
}

.client-project-progress__track{
    height:8px;
    overflow:hidden;
    border-radius:999px;
    background:#e8f0eb;
}

.client-project-progress__track > span{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(
        90deg,
        var(--green-700),
        var(--green-500)
    );
}

.client-project-progress__cancelled{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:4px 10px;
    border-radius:999px;
    background:#eef0f2;
    border:1px solid #dfe3e7;
    color:#68707a;
    font-size:12px;
    font-weight:900;
}

@media (max-width:760px){
    .client-hub-flow-note{
        display:grid;
        gap:5px;
    }

    .client-project-progress{
        width:min(220px,55vw);
        min-width:0;
    }
}
