/* THE DESIGN — page styles. Palette: #03195b #0b2cb1 #1951fc #3781fc #cbe9fd */

.dz-root {
    position: relative;
    padding: 24px;
    background: #ffffff;
    transition: background 0.3s ease;
}

.dz-bg {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    background-size: 380px auto;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.dz-root > *:not(.dz-bg) {
    position: relative;
    z-index: 1;
}

.dz-root[data-theme='dark'] {
    background: #0a1330;
}

.dz-root[data-theme='dark'] .dz-bg {
    opacity: 0.2;
}

@font-face {
    font-family: 'Cairo';
    src: url('./fonts/cairo-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
    font-family: 'Cairo';
    src: url('./fonts/cairo-latin-900.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
    font-family: 'Cairo';
    src: url('./fonts/cairo-arabic-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: 'Cairo';
    src: url('./fonts/cairo-arabic-900.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC;
}

.dz-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e6eefc;
}

.dz-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.dz-logo-img {
    width: 110px;
    height: auto;
    object-fit: contain;
}

.dz-logo {
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.12em;
    background: linear-gradient(120deg, #03195b, #0b2cb1 45%, #1951fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dz-tagline {
    font-size: 13px;
    color: #0b2cb1;
}

.dz-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.dz-navlink {
    appearance: none;
    border: 1.5px solid #cbe9fd;
    background: #f4faff;
    color: #03195b;
    font-family: 'Cairo', sans-serif;
    font-size: 13.5px;
    font-weight: 900;
    padding: 9px 15px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
}

.dz-navlink:active {
    background: #cbe9fd;
}

.dz-cartbtn {
    background: #03195b;
    border-color: #03195b;
    color: #ffffff;
}

.dz-badge {
    background: #3781fc;
    color: #ffffff;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0 6px;
}

.dz-hero {
    margin: 16px -12px 0;
    border-radius: 24px;
    padding: 34px 22px 16px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: background 0.6s ease;
    box-shadow: 0 14px 34px rgba(3, 25, 91, 0.28);
}

.dz-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 168px;
}

.dz-hero-kicker {
    font-size: 12px;
    color: #cbe9fd;
    font-weight: 600;
}

.dz-hero-title {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    font-size: 27px;
    line-height: 1.4;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.dz-hero-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.9;
    color: #eaf4ff;
    max-width: 520px;
}

.dz-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.dz-cta {
    appearance: none;
    border: none;
    background: #ffffff;
    color: #03195b;
    font-family: 'Cairo', sans-serif;
    font-size: 14.5px;
    font-weight: 900;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 46px;
}

.dz-cta-ghost {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

.dz-hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dz-arrow {
    appearance: none;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.dz-dots {
    display: flex;
    gap: 8px;
}

.dz-dot {
    appearance: none;
    border: none;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
}

.dz-dot-on {
    background: #ffffff;
    width: 22px;
}

.dz-section {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-margin-top: 12px;
}

.dz-section-title {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    font-size: 23px;
    font-weight: 900;
    color: #03195b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dz-section-title::before {
    content: '';
    width: 6px;
    height: 24px;
    border-radius: 3px;
    background: linear-gradient(180deg, #1951fc, #3781fc);
}

.dz-section-sub {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #44578a;
}

.dz-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dz-service {
    border: 1px solid #dceafd;
    background: #f7fbff;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dz-service-name {
    font-family: 'Cairo', sans-serif;
    font-size: 14.5px;
    font-weight: 900;
    color: #03195b;
}

.dz-service-detail {
    font-size: 12px;
    line-height: 1.7;
    color: #44578a;
}

.dz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dz-card {
    border: 1px solid #dceafd;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
}

.dz-card-img {
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(140deg, #0b2cb1, #1951fc 60%, #3781fc);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dz-card-img span {
    font-size: 30px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
}

.dz-card:nth-child(even) .dz-card-img {
    background: linear-gradient(140deg, #1951fc, #3781fc 65%, #cbe9fd);
}

.dz-card-name {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #03195b;
}

.dz-card-detail {
    font-size: 12px;
    color: #44578a;
    line-height: 1.6;
}

.dz-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #1951fc;
    margin-top: auto;
}

.dz-design {
    background: linear-gradient(150deg, #f4faff, #e3f0ff);
    border: 1px solid #dceafd;
    border-radius: 18px;
    padding: 18px 16px;
    align-items: flex-start;
}

.dz-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dz-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #dceafd;
    border-radius: 14px;
    padding: 12px 14px;
    text-decoration: none;
    background: #f7fbff;
}

.dz-contact-label {
    font-family: 'Cairo', sans-serif;
    font-size: 14.5px;
    font-weight: 900;
    color: #03195b;
}

.dz-contact-value {
    font-size: 14px;
    font-weight: 600;
    color: #03195b;
    direction: ltr;
}

.dz-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dz-social {
    border: 1.5px solid #cbe9fd;
    border-radius: 999px;
    padding: 9px 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 13.5px;
    font-weight: 900;
    color: #0b2cb1;
    text-decoration: none;
    background: #ffffff;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
}

.dz-footer {
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid #e6eefc;
    font-size: 12px;
    color: #44578a;
    line-height: 1.8;
    text-align: center;
}

.dz-dialog {
    border: none;
    border-radius: 20px;
    padding: 18px;
    width: min(420px, 92vw);
    direction: rtl;
}

.dz-dialog::backdrop {
    background: rgba(3, 25, 91, 0.45);
}

.dz-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dz-dialog-title {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    font-size: 19px;
    font-weight: 900;
    color: #03195b;
}

.dz-empty {
    font-size: 14px;
    color: #44578a;
    line-height: 1.8;
}

.dz-cartlist {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dz-cartrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e6eefc;
    border-radius: 12px;
    padding: 8px 12px;
}

.dz-cartname {
    font-size: 14px;
    font-weight: 700;
    color: #03195b;
}

.dz-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dz-qty button {
    appearance: none;
    border: 1px solid #cbe9fd;
    background: #f4faff;
    color: #0b2cb1;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.dz-checkout {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dz-hint {
    margin: 0;
    font-size: 12px;
    color: #44578a;
}

@media (min-width: 768px) {
    .dz-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .dz-brand {
        align-items: flex-start;
        text-align: start;
    }

    .dz-hero {
        margin: 20px 0 0;
        padding: 44px 36px 20px;
    }

    .dz-hero-title {
        font-size: 40px;
    }

    .dz-hero-text {
        font-size: 17px;
    }

    .dz-services {
        grid-template-columns: repeat(3, 1fr);
    }

    .dz-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .dz-section-title {
        font-size: 27px;
    }
}

/* Theme toggle + footer */
.dz-themebtn {
    min-width: 44px;
    justify-content: center;
    font-size: 16px;
}

.dz-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dz-footer-line {
    display: block;
}

/* Dark mode */
.dz-root[data-theme='dark'] .dz-header {
    border-color: #20357a;
}

.dz-root[data-theme='dark'] .dz-tagline {
    color: #9fb6e8;
}

.dz-root[data-theme='dark'] .dz-navlink {
    background: #101d44;
    border-color: #20357a;
    color: #dbe9ff;
}

.dz-root[data-theme='dark'] .dz-navlink:active {
    background: #20357a;
}

.dz-root[data-theme='dark'] .dz-cartbtn {
    background: #1951fc;
    border-color: #1951fc;
    color: #ffffff;
}

.dz-root[data-theme='dark'] .dz-section-title {
    color: #f0f6ff;
}

.dz-root[data-theme='dark'] .dz-section-sub {
    color: #9fb6e8;
}

.dz-root[data-theme='dark'] .dz-service {
    background: #101d44;
    border-color: #20357a;
}

.dz-root[data-theme='dark'] .dz-service-name {
    color: #dbe9ff;
}

.dz-root[data-theme='dark'] .dz-service-detail {
    color: #9fb6e8;
}

.dz-root[data-theme='dark'] .dz-card {
    background: #101d44;
    border-color: #20357a;
}

.dz-root[data-theme='dark'] .dz-card-name {
    color: #f0f6ff;
}

.dz-root[data-theme='dark'] .dz-card-detail {
    color: #9fb6e8;
}

.dz-root[data-theme='dark'] .dz-card-price {
    color: #6fa3ff;
}

.dz-root[data-theme='dark'] .dz-design {
    background: #101d44;
    border-color: #20357a;
}

.dz-root[data-theme='dark'] .dz-contact-row {
    background: #101d44;
    border-color: #20357a;
}

.dz-root[data-theme='dark'] .dz-contact-label {
    color: #dbe9ff;
}

.dz-root[data-theme='dark'] .dz-contact-value {
    color: #f0f6ff;
}

.dz-root[data-theme='dark'] .dz-social {
    background: #101d44;
    border-color: #20357a;
    color: #6fa3ff;
}

.dz-root[data-theme='dark'] .dz-footer {
    border-color: #20357a;
    color: #9fb6e8;
}

.dz-dialog-dark {
    background: #101d44;
    color: #f0f6ff;
}

.dz-dialog-dark .dz-dialog-title,
.dz-dialog-dark .dz-cartname {
    color: #f0f6ff;
}

.dz-dialog-dark .dz-empty,
.dz-dialog-dark .dz-hint {
    color: #9fb6e8;
}

.dz-dialog-dark .dz-cartrow {
    border-color: #20357a;
}

.dz-dialog-dark .dz-qty button {
    background: #0a1330;
    border: 1px solid #20357a;
    color: #dbe9ff;
}

@media (min-width: 768px) {
    .dz-root {
        margin: -36px;
        padding: 36px;
    }
}

/* Admin panel */
.dz-admin {
    border: 1.5px dashed #3781fc;
    border-radius: 18px;
    padding: 16px;
    background: rgba(203, 233, 253, 0.25);
}

.dz-admin-label {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #03195b;
    margin-top: 6px;
}

.dz-admin-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #dceafd;
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
    align-items: flex-start;
}

.dz-root[data-theme='dark'] .dz-admin {
    border-color: #3781fc;
    background: rgba(16, 29, 68, 0.6);
}

.dz-root[data-theme='dark'] .dz-admin-label {
    color: #dbe9ff;
}

.dz-root[data-theme='dark'] .dz-admin-card {
    background: #0a1330;
    border-color: #20357a;
}

/* Stronger concept */
.dz-hero {
    position: relative;
    overflow: hidden;
}

.dz-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 85% 8%, rgba(203, 233, 253, 0.35), transparent 55%);
    pointer-events: none;
}

.dz-hero > * {
    position: relative;
    z-index: 1;
}

.dz-hero-title {
    text-shadow: 0 2px 18px rgba(3, 25, 91, 0.35);
}

.dz-cta {
    box-shadow: 0 8px 20px rgba(3, 25, 91, 0.35);
}

.dz-cartbtn {
    background: linear-gradient(120deg, #03195b, #1951fc);
    border-color: transparent;
    color: #ffffff;
}

.dz-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(3, 25, 91, 0.12);
}

.dz-card-img span {
    font-family: 'Cairo', sans-serif;
    font-size: 40px;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(3, 25, 91, 0.4);
}

.dz-service {
    position: relative;
    padding-inline-start: 20px;
}

.dz-service::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #1951fc, #3781fc);
}

@media (min-width: 768px) {
    .dz-hero-title {
        font-size: 46px;
        line-height: 1.35;
    }
}

.dz-card-photo { object-fit: cover; padding: 0; }
.dz-admin-photo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dz-admin-photo-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid #cbe9fd; }
.dz-admin-photo-pick { cursor: pointer; position: relative; overflow: hidden; display: inline-flex; }
.dz-admin-photo-publish { display: flex; flex-direction: column; gap: 4px; }
.dz-textbtn { background: none; border: none; color: #1951fc; font: inherit; cursor: pointer; padding: 4px 0; text-decoration: underline; }

/* standalone base */
html, body { margin: 0; padding: 0; }
body { font-family: 'Cairo', system-ui, sans-serif; background: #eef4fd; }
.dz-root { max-width: 760px; margin: 0 auto; padding: 20px 16px 32px; min-height: 100vh; box-sizing: border-box; }
.dz-btn { appearance: none; border: none; cursor: pointer; font-family: 'Cairo', sans-serif; font-weight: 900; border-radius: 999px; min-height: 42px; padding: 10px 18px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.dz-btn-primary { background: #03195b; color: #fff; }
.dz-btn-secondary { background: #f4faff; color: #03195b; border: 1.5px solid #cbe9fd; }
.dz-btn:disabled { opacity: 0.55; cursor: default; }
.dz-input { width: 100%; box-sizing: border-box; font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 700; color: #03195b; background: #fff; border: 1.5px solid #cbe9fd; border-radius: 12px; padding: 10px 12px; }
.dz-field { display: flex; flex-direction: column; gap: 4px; }
.dz-field label { font-size: 12px; color: #44578a; font-weight: 700; }
.dz-admin-card { background: #fff; border: 1px solid #dceafd; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dz-admin-label { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 15px; color: #03195b; margin-top: 8px; }
.dz-hint { font-size: 12px; color: #44578a; margin: 0; }
