@import url('https://fonts.googleapis.com/css2?family=Changa:wght@400;500;700;800&family=Tajawal:wght@400;500;600;700;800&display=swap');

:root {
    --brand-violet: #6a1bce;
    --brand-blue: #1e88e5;
    --brand-indigo: #4a3bd1;
    --text-soft: #9aa4d6;
    --text-primary: #f5f7ff;
    --text-paragraph: #c9d2ff;
    --surface: rgba(13, 13, 38, 0.74);
    --surface-strong: rgba(10, 10, 26, 0.92);
    --border-soft: rgba(255, 255, 255, 0.12);
    --shadow-soft: 0 22px 55px rgba(3, 7, 24, 0.26);
    --shadow-deep: 0 30px 80px rgba(2, 6, 22, 0.38);
    --page-background:
        radial-gradient(circle at top left, rgba(106, 27, 206, 0.22), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(30, 136, 229, 0.18), transparent 22%),
        radial-gradient(circle at 50% 80%, rgba(74, 59, 209, 0.18), transparent 28%),
        linear-gradient(180deg, #050816 0%, #090e1d 100%);
    --brand-gradient: linear-gradient(90deg, #6a1bce 0%, #4a3bd1 50%, #1e88e5 100%);
    --brand-gradient-glow: linear-gradient(135deg, rgba(106, 27, 206, 0.95), rgba(74, 59, 209, 0.9), rgba(30, 136, 229, 0.88));
}

html[data-theme='light'] {
    --text-soft: #64748b;
    --text-primary: #7450e2fc;
    --text-paragraph: #465672;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --border-soft: rgba(18, 34, 67, 0.12);
    --shadow-soft: 0 20px 48px rgba(40, 68, 122, 0.14);
    --shadow-deep: 0 32px 84px rgba(40, 68, 122, 0.2);
    --page-background:
        radial-gradient(circle at top left, rgba(106, 27, 206, 0.14), transparent 34%),
        radial-gradient(circle at 85% 8%, rgba(30, 136, 229, 0.12), transparent 28%),
        radial-gradient(circle at 50% 90%, rgba(74, 59, 209, 0.1), transparent 30%),
        linear-gradient(180deg, #f6f9ff 0%, #edf2ff 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--page-background);
    color: var(--text-primary);
    font-family: 'Tajawal', 'Changa', ui-sans-serif, system-ui, sans-serif;
    min-height: 100vh;
}

body[dir='rtl'] { font-family: 'Changa', 'Manrope', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-shell { position: relative; overflow-x: clip; }

.site-shapes {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.34;
    filter: drop-shadow(0 18px 40px rgba(10, 16, 36, 0.18));
    animation-duration: 15s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.shape-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(125, 174, 255, 0.26);
    box-shadow: inset 0 0 0 18px rgba(106, 27, 206, 0.06);
    animation-name: floatDrift;
}

.shape-cube {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(106, 27, 206, 0.22), rgba(30, 136, 229, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(22deg);
    animation-name: shapeSpin;
}

.shape-dots {
    width: 180px;
    height: 140px;
    background-image:
        radial-gradient(circle, rgba(30, 136, 229, 0.48) 2px, transparent 2px),
        radial-gradient(circle, rgba(106, 27, 206, 0.28) 2px, transparent 2px);
    background-position: 0 0, 18px 18px;
    background-size: 36px 36px;
    animation-name: pulseFloat;
}

.shape-hex {
    width: 120px;
    height: 132px;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: linear-gradient(180deg, rgba(106, 27, 206, 0.2), rgba(30, 136, 229, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation-name: floatDrift;
}

.shape-wave {
    width: 200px;
    height: 82px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 15% 50%, rgba(30, 136, 229, 0.18), transparent 36%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 14px, transparent 14px 28px);
    animation-name: waveSway;
}

.shape-pill {
    width: 160px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(106, 27, 206, 0.18), rgba(30, 136, 229, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation-name: floatDrift;
}

.shape-orbit {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px dashed rgba(147, 196, 255, 0.18);
    animation-name: shapeSpin;
}

.shape-orbit::before,
.shape-orbit::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(106, 27, 206, 0.65), rgba(30, 136, 229, 0.7));
}

.shape-orbit::before {
    width: 18px;
    height: 18px;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.shape-orbit::after {
    width: 12px;
    height: 12px;
    bottom: 30px;
    right: 24px;
}

.shape-top-left {
    top: 10%;
    left: 4%;
}

.shape-top-right {
    top: 18%;
    right: 8%;
}

.shape-mid-right {
    top: 44%;
    right: 2%;
}

.shape-mid-left {
    top: 56%;
    left: 6%;
}

.shape-bottom-left {
    bottom: 16%;
    left: 10%;
}

.shape-bottom-right {
    bottom: 12%;
    right: 8%;
}

.shape-center {
    top: 34%;
    left: 48%;
}

.page-orb,
.page-grid {
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.page-orb {
    width: 32rem;
    height: 32rem;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.32;
    animation: floatOrb 16s ease-in-out infinite;
}

.orb-one { top: -8rem; inset-inline-start: -10rem; background: rgba(106, 27, 206, 0.6); }
.orb-two { bottom: 8rem; inset-inline-end: -12rem; background: rgba(30, 136, 229, 0.42); animation-delay: -6s; }

.page-grid {
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 88%);
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(18, 34, 67, 0.08);
    box-shadow: 0 14px 38px rgba(53, 84, 138, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand-mark img {
width: 150px;
    height: 62px;
    object-fit: contain;
    background: linear-gradient(180deg, rgb(255 255 255 / 10%), rgb(239 242 255 / 6%));
    border-radius: 18px;
    padding: 0.85rem;
    box-shadow: 0 18px 40px rgba(8, 12, 28, 0.24);
}

.brand-mark span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-mark strong { font-size: 0.98rem; }
.brand-mark small { color: var(--text-soft); }

.main-nav,
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.main-nav a,
.locale-switch {
    padding: 0.62rem 0.92rem;
    border-radius: 999px;
    color: #27406d;
    transition: 220ms ease;
}

.main-nav a:hover,
.main-nav a.active,
.locale-switch:hover,
.locale-switch.is-active {
    background: rgba(30, 136, 229, 0.12);
    color: #0f172a;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.88rem 1.3rem;
    font-weight: 700;
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.button:hover { transform: translateY(-3px); filter: saturate(1.08); }
.button-primary { background: var(--brand-gradient-glow); color: white; box-shadow: 0 16px 42px rgba(80, 61, 212, 0.3); }
.button-secondary { background: rgba(30, 136, 229, 0.12); color: white; border: 1px solid rgba(30, 136, 229, 0.22); }

.menu-toggle { display: none; background: transparent; border: 0; padding: 0.4rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #17335f; margin: 5px 0; }

.theme-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(30, 136, 229, 0.24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(233, 241, 255, 0.98));
    color: #1e3a68;
    box-shadow: 0 10px 24px rgba(40, 68, 122, 0.16);
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(40, 68, 122, 0.2);
}

.theme-toggle span {
    font-size: 1.1rem;
    line-height: 1;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 20, 0.58);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
    z-index: 70;
}

.mobile-menu-panel {
    position: fixed;
    top: 0.75rem;
    bottom: 0.75rem;
    inset-inline: 0.75rem;
    z-index: 80;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(106, 27, 206, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(14, 18, 42, 0.98), rgba(8, 11, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(2, 7, 20, 0.42);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: opacity 260ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 260ms ease;
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.mobile-menu-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 242, 255, 0.8));
    border-radius: 16px;
    padding: 0.75rem;
}

.mobile-menu-brand div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mobile-menu-brand strong {
    font-size: 1rem;
}

.mobile-menu-brand small {
    color: #b7c2ef;
    font-size: 0.82rem;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    position: relative;
    cursor: pointer;
}

.mobile-menu-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #fff;
}

.mobile-menu-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-nav {
    display: grid;
    gap: 0.75rem;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #eef2ff;
}

.mobile-menu-nav a.active {
    background: linear-gradient(135deg, rgba(106, 27, 206, 0.22), rgba(30, 136, 229, 0.18));
    border-color: rgba(145, 190, 255, 0.26);
}

.mobile-menu-locales {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.mobile-menu-locales .locale-switch {
    text-align: center;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-theme-toggle {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    grid-column: 1 / -1;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 0.5rem;
}

.mobile-menu-footer .button {
    width: 100%;
}

body.is-mobile-menu-open {
    overflow: hidden;
}

body.is-mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.is-mobile-menu-open .mobile-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.hero-section,
.page-hero { padding: 5rem 0 2rem; }

html[data-theme='light'] .page-grid {
    background-image: linear-gradient(rgba(23, 58, 106, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 58, 106, 0.06) 1px, transparent 1px);
}

html[data-theme='light'] .shape {
    opacity: 0.24;
}

html[data-theme='light'] .mobile-menu-overlay {
    background: rgba(39, 67, 115, 0.24);
}

html[data-theme='light'] .mobile-menu-panel {
    background:
        radial-gradient(circle at top right, rgba(106, 27, 206, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(240, 246, 255, 0.97));
    border: 1px solid rgba(18, 34, 67, 0.12);
    box-shadow: 0 24px 64px rgba(40, 68, 122, 0.24);
}

html[data-theme='light'] .mobile-menu-brand small {
    color: #6b7fa5;
}

html[data-theme='light'] .mobile-menu-close {
    border-color: rgba(30, 136, 229, 0.22);
    background: rgba(30, 136, 229, 0.08);
}

html[data-theme='light'] .mobile-menu-close span {
    background: #1a3763;
}

html[data-theme='light'] .mobile-menu-nav a {
    border-color: rgba(18, 34, 67, 0.12);
    background: rgba(255, 255, 255, 0.85);
    color: #1d3258;
}

html[data-theme='light'] .mobile-menu-nav a.active {
    background: linear-gradient(135deg, rgba(106, 27, 206, 0.16), rgba(30, 136, 229, 0.14));
    border-color: rgba(30, 136, 229, 0.24);
}

html[data-theme='light'] .mobile-menu-locales .locale-switch {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(18, 34, 67, 0.12);
}

.hero-slider {
    display: grid;
    gap: 1rem;
}

.hero-slider-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-tab {
    padding: 0.78rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #e8edff;
    cursor: pointer;
    transition: 220ms ease;
}

.hero-tab:hover,
.hero-tab.is-active {
    background: linear-gradient(135deg, rgba(106, 27, 206, 0.25), rgba(30, 136, 229, 0.16));
    border-color: rgba(145, 190, 255, 0.26);
    box-shadow: 0 18px 40px rgba(9, 17, 39, 0.28);
}

.hero-slider-controls {
    display: flex;
    gap: 0.75rem;
}

.hero-slider-stage {
    position: relative;
    min-height: 550px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    border-radius: 32px;
    /*
    background:
        radial-gradient(circle at top left, rgba(106, 27, 206, 0.2), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(30, 136, 229, 0.15), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(9, 14, 33, 0.92);
        */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-deep);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.985);
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1), visibility 420ms ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/*
.hero-accent-violet {
    background:
        radial-gradient(circle at top left, rgba(106, 27, 206, 0.26), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(74, 59, 209, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(10, 13, 32, 0.92);
}
*/

/*
.hero-accent-blue {
    background:
        radial-gradient(circle at top left, rgba(30, 136, 229, 0.22), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(106, 27, 206, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(9, 16, 36, 0.92);
}
*/

.hero-grid,
.page-hero-grid,
.intro-grid,
.split-band,
.quote-grid,
.contact-grid,
.dual-panel { display: grid; gap: 1.5rem; }

.hero-grid,
.page-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
}

.eyebrow,
.section-kicker,
.footer-kicker,
.footer-label,
.service-tag {
    color: #a9b7ff;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

body[dir='rtl'] .eyebrow,
body[dir='rtl'] .section-kicker,
body[dir='rtl'] .footer-kicker,
body[dir='rtl'] .footer-label,
body[dir='rtl'] .service-tag {
    letter-spacing: 0.04em;
}

h1, h2, h3, strong { line-height: 1.05; }
h1 { margin: 0.45rem 0 1rem;  }
h2 { margin: 0.25rem 0 0.9rem; font-size: clamp(1.7rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.08rem, 2vw, 1.24rem); margin: 0 0 0.7rem; }
h4 { font-size: 1rem; margin: 0}

p { color: #d6dcff; line-height: 1.85; }
.hero-description { max-width: 56ch; font-size: 1rem; }

html[data-theme='light'] p { color: var(--text-paragraph); }
html[data-theme='dark'] p { color: #d6dcff; }

.hero-actions,
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.7rem;
}


.glass-card,
.story-card,
.service-card,
.quote-card,
.cta-panel,
.mini-card,
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}

.hero-panel { padding: 1.2rem; display: grid; gap: 1rem; max-height: 480px; }
.hero-panel.compact { align-content: start; }

.glass-card:hover,
.story-card:hover,
.service-card:hover,
.quote-card:hover,
.pricing-card:hover,
.contact-form:hover,
.hero-panel:hover,
.mini-card:hover,
.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-deep);
    border-color: rgba(151, 192, 255, 0.22);
}

.signal-card {
    border-radius: 24px;
    padding: 0.70rem;
    background: var(--brand-gradient);
    color: white;
    box-shadow: 0 18px 44px rgba(58, 70, 198, 0.28);
}

.signal-card p,
.signal-card strong { color: white; }

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.80rem;
}

.metric-card,
.mini-card {
    padding: 0.80rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gradient-text {
    background: linear-gradient(220deg, #6A1BCE, #4A3BD1, #1E88E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-card strong { display: block; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.65rem;}
.metric-card span,
.mini-card p,
.mini-card strong { color: #eef1ff; }

html[data-theme='light'] .metric-card span,
html[data-theme='light'] .mini-card p,
html[data-theme='light'] .mini-card strong {
    color: #1c2f52;
}

.section-block { padding: 2rem 0; }

.intro-grid,
.split-band,
.contact-grid,
.dual-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.feature-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.services-showcase {
    padding: 1.4rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(30, 136, 229, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
        rgba(7, 13, 31, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-deep);
}

.services-showcase-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.services-showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-tab {
    padding: 0.78rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: 220ms ease;
}

.service-tab:hover,
.service-tab.is-active {
    background: linear-gradient(135deg, rgba(106, 27, 206, 0.25), rgba(30, 136, 229, 0.16));
    border-color: rgba(145, 190, 255, 0.26);
    box-shadow: 0 18px 40px rgba(9, 17, 39, 0.28);
}

.services-showcase-controls {
    display: flex;
    gap: 0.75rem;
}

.services-stage {
    overflow: hidden;
    border-radius: 26px;
    position: relative;
    min-height: 420px;
}

.services-track {
    position: relative;
    min-height: inherit;
}

.service-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(106, 27, 206, 0.18), transparent 32%),
        radial-gradient(circle at 90% 80%, rgba(30, 136, 229, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.985);
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1), visibility 420ms ease;
    pointer-events: none;
}

.service-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    position: relative;
}

.service-slide-copy,
.service-slide-panel {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.35rem;
}

.service-slide-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.service-slide-copy h3 {
    font-size: clamp(1.45rem, 2.7vw, 2.2rem);
}

.service-slide-actions {
    margin-top: auto;
}

.service-slide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.service-slide-list li {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.glass-card,
.service-card,
.story-card,
.quote-card,
.pricing-card { padding: 1.5rem; }

.glass-card,
.service-card,
.story-card,
.quote-card,
.pricing-card,
.hero-panel,
.contact-form {
    position: relative;
    overflow: hidden;
}

.glass-card::after,
.service-card::after,
.story-card::after,
.quote-card::after,
.pricing-card::after,
.hero-panel::after,
.contact-form::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%, transparent 70%, rgba(255, 255, 255, 0.03));
    opacity: 0.45;
    pointer-events: none;
}

.timeline-list,
.stack-list { display: grid; gap: 1rem; }

.process-slider {
    padding: 1.4rem;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        rgba(8, 14, 33, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-deep);
    overflow: hidden;
}

.process-slider-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.process-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.process-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #e8edff;
    cursor: pointer;
    transition: 220ms ease;
}

.process-dot span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.process-dot strong {
    font-size: 0.92rem;
}

.process-dot:hover,
.process-dot.is-active {
    background: linear-gradient(135deg, rgba(106, 27, 206, 0.24), rgba(30, 136, 229, 0.16));
    border-color: rgba(145, 190, 255, 0.26);
    box-shadow: 0 18px 40px rgba(9, 17, 39, 0.28);
}

.process-controls {
    display: flex;
    gap: 0.75rem;
}

.process-arrow {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: 220ms ease;
}

.process-arrow:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 16px 34px rgba(8, 15, 36, 0.22);
}

.process-stage {
    overflow: hidden;
    border-radius: 26px;
    position: relative;
}

.process-track {
    display: flex;
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.process-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 1.55rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(106, 27, 206, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 26px;
    background: var(--brand-gradient-glow);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: 0 20px 44px rgba(60, 76, 214, 0.28);
}

.process-slide-copy h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    margin-bottom: 0.8rem;
}

.process-slide-copy p:last-child {
    max-width: 46ch;
}

.timeline-item,
.stack-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(2, 7, 22, 0.18);
}

.timeline-item span:first-child,
.stack-item strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 18px;
    background: rgba(106, 27, 206, 0.18);
    color: white;
    font-size: 1.15rem;
}

.section-heading { margin-bottom: 1.5rem; }
.service-card { display: flex; flex-direction: column; gap: 1rem; }
.service-card.large h2 { font-size: 1.85rem; }

.service-card ul,
.footer-list,
.contact-list { list-style: none; padding: 0; margin: 0; }

.service-card ul { display: grid; gap: 0.65rem; }

.service-card ul li,
.pill-row span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.7rem 0.95rem;
}

.service-card a { margin-top: auto; color: #93c4ff; font-weight: 700; }

.pricing-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(5, 11, 27, 0.92);
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(106, 27, 206, 0.18), transparent 45%);
    opacity: 0.85;
    pointer-events: none;
}

.pricing-card.is-featured {
    border-color: rgba(125, 175, 255, 0.45);
    transform: translateY(-8px);
    box-shadow: 0 34px 90px rgba(41, 72, 198, 0.28);
}

.pricing-card.is-featured::before {
    background:
        radial-gradient(circle at top, rgba(30, 136, 229, 0.24), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(106, 27, 206, 0.2), transparent 38%);
}

.pricing-badge {
    align-self: start;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(30, 136, 229, 0.15);
    border: 1px solid rgba(147, 196, 255, 0.3);
    color: #d7e8ff;
    font-size: 0.82rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.pricing-price,
.pricing-card h3,
.pricing-feature-list,
.pricing-actions {
    position: relative;
    z-index: 1;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-price strong {
    font-size: clamp(2rem, 4vw, 3rem);
}

.pricing-price span {
    color: #d6dcff;
}

.pricing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.pricing-feature-list li {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pricing-feature-list li span {
    color: #aeb9ea;
}

.pricing-feature-list li strong {
    font-size: 0.98rem;
    text-align: end;
}

body[dir='rtl'] .pricing-feature-list li strong {
    text-align: start;
}

.pricing-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-link {
    color: #98c6ff;
    font-weight: 700;
}

.pricing-grid.detailed .pricing-card {
    min-height: 100%;
}

.pricing-feature-list.full {
    gap: 0.55rem;
}

.quote-grid { grid-template-columns: 1fr 1fr 1fr; }

.quote-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.quote-card footer {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1rem;
    color: #b9c3ff;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.6rem;
}

.story-card.accent { background: linear-gradient(180deg, rgba(106, 27, 206, 0.28), rgba(30, 136, 229, 0.16)); }

.contact-form {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.contact-form label { display: grid; gap: 0.55rem; }
.contact-form span { color: #eef1ff; font-weight: 700; }

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font: inherit;
}

.contact-form select {
    appearance: none;
    padding-inline-end: 2.65rem;
    background-image:
        linear-gradient(45deg, transparent 50%, #a6b8ff 50%),
        linear-gradient(135deg, #a6b8ff 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 4px),
        calc(100% - 14px) calc(50% - 4px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

html[dir="rtl"] .contact-form select {
    background-position:
        18px calc(50% - 4px),
        24px calc(50% - 4px);
    padding-inline-end: 1rem;
    padding-inline-start: 2.65rem;
}

.contact-form select option {
    color: #eef3ff;
    background: #101938;
}

.contact-form .button[disabled] {
    opacity: 0.78;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.contact-form small { color: #f9a8d4; }

html[data-theme='light'] .site-header {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(18, 34, 67, 0.08);
    box-shadow: 0 14px 38px rgba(53, 84, 138, 0.12);
}

html[data-theme='light'] .brand-mark img {
    background: linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(239 242 255 / 86%));
    box-shadow: 0 14px 30px rgba(57, 89, 145, 0.18);
}

html[data-theme='light'] .main-nav a,
html[data-theme='light'] .locale-switch {
    color: #27406d;
}

html[data-theme='light'] .main-nav a:hover,
html[data-theme='light'] .main-nav a.active,
html[data-theme='light'] .locale-switch:hover,
html[data-theme='light'] .locale-switch.is-active {
    background: rgba(30, 136, 229, 0.12);
    color: #0f172a;
}

html[data-theme='light'] .button-secondary {
    background: rgba(30, 136, 229, 0.12);
    color: white;
    border-color: rgba(30, 136, 229, 0.22);
}

html[data-theme='light'] .contact-form span {
    color: #203a65;
}

html[data-theme='light'] .contact-form input,
html[data-theme='light'] .contact-form select,
html[data-theme='light'] .contact-form textarea {
    border-color: rgba(24, 50, 92, 0.14);
    background: rgba(255, 255, 255, 0.88);
    color: #102342;
}

html[data-theme='light'] .hero-tab,
html[data-theme='light'] .process-dot,
html[data-theme='light'] .service-slide-list li,
html[data-theme='light'] .timeline-item,
html[data-theme='light'] .stack-item {
    border-color: rgba(24, 50, 92, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: #1a2f55;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme='light'] .services-showcase,
html[data-theme='light'] .process-slider {
    background:
        radial-gradient(circle at top right, rgba(30, 136, 229, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 249, 255, 0.82));
    border-color: rgba(24, 50, 92, 0.14);
}

html[data-theme='light'] .service-card a,
html[data-theme='light'] .pricing-link {
    color: #2356a2;
}

html[data-theme='dark'] .site-header {
    background: rgba(7, 10, 24, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 16px 36px rgba(5, 10, 28, 0.18);
}

html[data-theme='dark'] .main-nav a,
html[data-theme='dark'] .locale-switch {
    color: #d6ddff;
}

html[data-theme='dark'] .main-nav a:hover,
html[data-theme='dark'] .main-nav a.active,
html[data-theme='dark'] .locale-switch:hover,
html[data-theme='dark'] .locale-switch.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

html[data-theme='dark'] .button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid var(--border-soft);
}

html[data-theme='dark'] .menu-toggle span {
    background: #fff;
}

html[data-theme='dark'] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(239, 242, 255, 0.06));
    color: #f8fbff;
    box-shadow: 0 10px 24px rgba(8, 14, 34, 0.35);
}

.flash-success {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(74, 222, 128, 0.15);
    color: #dcfce7;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.contact-list { display: grid; gap: 1rem; margin-top: 1.5rem; }

.contact-list li {
    display: grid;
    gap: 0.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer { padding: 4rem 0 2rem; }
.footer-grid,
.footer-bottom { display: grid; gap: 1.5rem; }

.footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    padding: 2rem;
    border-radius: 30px;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(2, 7, 20, 0.28);
}

.footer-list { display: grid; gap: 0.75rem; }
.footer-bottom { padding: 1.3rem 0 0; }

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 700ms ease;
    filter: blur(8px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.hero-slide .hero-copy,
.hero-slide .hero-panel {
    animation: heroLift 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide .hero-panel {
    animation-delay: 120ms;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 18px, 0) scale(1.04);
    }
}

@keyframes floatDrift {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -16px, 0);
    }
}

@keyframes shapeSpin {
    0% {
        transform: rotate(0deg) translate3d(0, 0, 0);
    }
    50% {
        transform: rotate(12deg) translate3d(8px, -10px, 0);
    }
    100% {
        transform: rotate(0deg) translate3d(0, 0, 0);
    }
}

@keyframes pulseFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.22;
    }
    50% {
        transform: translate3d(-6px, -14px, 0) scale(1.04);
        opacity: 0.38;
    }
}

@keyframes waveSway {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(12px, -10px, 0) rotate(4deg);
    }
}

@keyframes heroLift {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .hero-grid,
    .page-hero-grid,
    .intro-grid,
    .split-band,
    .quote-grid,
    .contact-grid,
    .dual-panel,
    .feature-grid,
    .service-grid,
    .pricing-grid,
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .menu-toggle { display: inline-block; }
    .main-nav,
    .header-actions { display: none; }

    .header-inner { position: relative; flex-wrap: wrap; }
    .cta-panel { flex-direction: column; align-items: start; }
    .process-slider-head { flex-direction: column; }
    .services-showcase-top { flex-direction: column; }
    .hero-slider-tabs { flex-direction: column; align-items: stretch; }
}

@media (max-width: 640px) {
    .hero-section,
    .hero-section, .page-hero {padding: 0}
    .container { width: min(100% - 1.25rem, 100%); }
    .hero-stat-grid { grid-template-columns: 1fr; }
    .timeline-item,
    .stack-item { grid-template-columns: 1fr; }
    .process-slide { grid-template-columns: 1fr; }
    .service-slide { grid-template-columns: 1fr; }
    .services-stage { min-height: 560px; }
    .hero-slider-stage { min-height: 760px; }
    .process-number { width: 72px; height: 72px; border-radius: 22px; font-size: 1.45rem; }
    .brand-mark small { display: none; }
    h1 { font-size: clamp(1.95rem, 10vw, 3rem); }
    h2 { font-size: clamp(1.45rem, 7vw, 2.2rem); }
    .button {font-size: 14px;}
    .signal-card strong {font-size: 14px;}
    .metric-card, .mini-card {
        display: flex;
    justify-content: space-evenly;
    }
    .shape {
        opacity: 0.18;
        transform: scale(0.72);
    }
    .shape-mid-right,
    .shape-bottom-left {
        display: none;
    }
    .services-showcase-tabs {gap: 0.1rem}
     .services-showcase-controls {display: none}
    .service-slide {padding: 0}
        .services-showcase {padding: 1.4rem 0}

}

@media (max-width: 480px) {
    .hero-section,
    .hero-section, .page-hero {padding: 0}

    .container { width: min(100% - 1.25rem, 100%); }
    .hero-stat-grid { grid-template-columns: 1fr; }
    .timeline-item,
    .stack-item { grid-template-columns: 1fr; }
    .process-slide { grid-template-columns: 1fr; }
    .service-slide { grid-template-columns: 1fr; }
    .services-stage { min-height: 560px; }
    .hero-slider-stage { min-height: 760px; }
    .process-number { width: 72px; height: 72px; border-radius: 22px; font-size: 1.45rem; }
    .brand-mark small { display: none; }
    h1 { font-size: clamp(1.95rem, 10vw, 3rem); }
    h2 { font-size: clamp(1.45rem, 7vw, 2.2rem); }
    .button {font-size: 14px;}
    .signal-card strong {font-size: 14px;}
    .metric-card, .mini-card {
        display: flex;
    justify-content: space-evenly;
    }
    .shape {
        opacity: 0.18;
        transform: scale(0.72);
    }
    .shape-mid-right,
    .shape-bottom-left {
        display: none;
    }
        .services-showcase-tabs {gap: 0.1rem}
    .services-showcase-controls {display: none}
        .service-slide {padding: 0}
    .services-showcase {padding: 1.4rem 0}
}

@media (max-width: 375px) {
    .hero-section,
    .hero-section, .page-hero {padding: 0}
    .hero-actions, .pill-row {gap: 0.1rem}
    .container { width: min(100% - 1.25rem, 100%); }
    .hero-stat-grid { grid-template-columns: 1fr; }
    .timeline-item,
    .stack-item { grid-template-columns: 1fr; }
    .process-slide { grid-template-columns: 1fr; }
    .service-slide { grid-template-columns: 1fr; }
    .services-stage { min-height: 560px; }
    .hero-slider-stage { min-height: 760px; }
    .process-number { width: 72px; height: 72px; border-radius: 22px; font-size: 1.45rem; }
    .brand-mark small { display: none; }
    h1 { font-size: clamp(1.95rem, 10vw, 3rem); }
    h2 { font-size: clamp(1.45rem, 7vw, 2.2rem); }
    .button {font-size: 12px;}
    .signal-card strong {font-size: 14px;}
    .metric-card, .mini-card {
        display: flex;
    justify-content: space-evenly;
    }
    .shape {
        opacity: 0.18;
        transform: scale(0.72);
    }
    .shape-mid-right,
    .shape-bottom-left {
        display: none;
    }
        .services-showcase-tabs {gap: 0.1rem}
     .services-showcase-controls {display: none}
    .service-slide {padding: 0}
        .services-showcase {padding: 1.4rem 0}
}
.admin-body {
    min-height: 100vh;
}

.admin-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1.5rem;
    min-height: 100vh;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.admin-sidebar,
.admin-panel,
.admin-form-card,
.admin-stat-card,
.admin-topbar {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(18, 22, 44, 0.96), rgba(11, 16, 34, 0.9)),
        radial-gradient(circle at top, rgba(106, 27, 206, 0.2), transparent 48%);
    box-shadow: 0 20px 60px rgba(4, 8, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-sidebar {
    border-radius: 30px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 1.5rem;
    height: calc(100vh - 3rem);
}

.admin-sidebar-brand h1 {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    margin: 0.3rem 0 0.65rem;
}

.admin-sidebar-brand p,
.admin-page-intro p,
.admin-panel-head p {
    margin: 0;
}

.admin-sidebar-brand span {
    color: rgba(237, 240, 255, 0.72);
    line-height: 1.7;
    font-size: 0.95rem;
}

.admin-nav {
    display: grid;
    gap: 0.7rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    color: rgba(236, 240, 255, 0.82);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.admin-nav-link:hover,
.admin-nav-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(106, 27, 206, 0.36), rgba(30, 136, 229, 0.22));
    border-color: rgba(110, 142, 255, 0.45);
    transform: translateX(-3px);
}

[dir="ltr"] .admin-nav-link:hover,
[dir="ltr"] .admin-nav-link.is-active {
    transform: translateX(3px);
}

.admin-sidebar-foot {
    margin-top: auto;
    display: grid;
    gap: 0.8rem;
}

.admin-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-topbar {
    border-radius: 28px;
    padding: 1.5rem 1.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.admin-topbar h2,
.admin-page-intro h3,
.admin-panel-head h3 {
    margin: 0.4rem 0 0;
    font-size: clamp(1.25rem, 2vw, 1.9rem);
}

.admin-topbar-meta {
    display: grid;
    gap: 0.2rem;
    justify-items: end;
    color: rgba(237, 240, 255, 0.72);
    font-size: 0.95rem;
}

[dir="ltr"] .admin-topbar-meta {
    justify-items: start;
}

.admin-flash,
.admin-errors {
    border-radius: 20px;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(115, 255, 195, 0.22);
    background: rgba(26, 65, 54, 0.35);
    color: #d9fff0;
}

.admin-errors {
    border-color: rgba(255, 121, 121, 0.22);
    background: rgba(78, 28, 38, 0.35);
    color: #ffd7df;
}

.admin-errors p {
    margin: 0;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.admin-stat-card {
    border-radius: 24px;
    padding: 1.2rem;
    display: grid;
    gap: 0.8rem;
}

.admin-stat-card span {
    color: rgba(237, 240, 255, 0.72);
    font-size: 0.92rem;
}

.admin-stat-card strong {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1;
}

.admin-panel-grid,
.admin-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: 1.25rem;
}

.admin-panel,
.admin-form-card {
    border-radius: 28px;
    padding: 1.35rem;
}

.admin-form-card-wide {
    max-width: 980px;
}

.admin-panel-accent {
    background:
        radial-gradient(circle at top right, rgba(30, 136, 229, 0.22), transparent 40%),
        linear-gradient(180deg, rgba(18, 22, 44, 0.96), rgba(11, 16, 34, 0.9));
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-quick-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.admin-page-intro {
    display: grid;
    gap: 0.35rem;
    max-width: 760px;
}

.admin-page-intro p:last-child {
    color: rgba(237, 240, 255, 0.72);
    line-height: 1.8;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-form-grid.compact {
    margin-top: 1rem;
}

.admin-form-grid label,
.admin-checkbox-grid label {
    display: grid;
    gap: 0.45rem;
}

.admin-form-grid span,
.admin-checkbox-grid {
    color: rgba(237, 240, 255, 0.76);
    font-size: 0.92rem;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
    width: 100%;
    border-radius: 16px;
    min-height: 50px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #f6f8ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-form-grid textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-span-2 {
    grid-column: span 2;
}

.admin-checkbox-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.25rem;
}

.admin-checkbox-grid input {
    accent-color: #4a3bd1;
}

.admin-card-list {
    display: grid;
    gap: 1rem;
}

.admin-list-card {
    padding: 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 14px 30px rgba(4, 8, 24, 0.2);
}

.admin-list-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.admin-list-card h4 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
}

.admin-list-card p {
    margin: 0;
    color: rgba(237, 240, 255, 0.68);
}

.admin-product-thumb {
    margin: 1rem 0 0;
    width: 100%;
    max-width: 220px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.admin-product-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #eef2ff;
    font-size: 0.82rem;
}

.admin-badge.is-live {
    background: rgba(24, 114, 93, 0.34);
    border-color: rgba(115, 255, 195, 0.22);
}

.admin-table-wrap {
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.admin-table th,
.admin-table td {
    text-align: start;
    padding: 1rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.admin-table th {
    color: rgba(237, 240, 255, 0.64);
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-customer-summary td {
    white-space: nowrap;
}

.admin-customer-summary td:nth-child(2),
.admin-customer-summary td:nth-child(3),
.admin-customer-summary td:nth-child(5) {
    white-space: normal;
}

.admin-action-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(106, 27, 206, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #edf0ff;
    font: inherit;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.admin-action-toggle:hover,
.admin-action-toggle[aria-expanded="true"] {
    transform: translateY(-1px);
    border-color: rgba(30, 136, 229, 0.38);
    background: linear-gradient(135deg, rgba(106, 27, 206, 0.18), rgba(30, 136, 229, 0.16));
    box-shadow: 0 14px 30px rgba(4, 8, 24, 0.18);
}

.admin-action-toggle-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(237, 240, 255, 0.78);
    font-size: 0.78rem;
    letter-spacing: -0.08em;
}

.admin-customer-detail-row td {
    padding: 0;
    border-bottom: 0;
}

.admin-customer-detail-card {
    margin: 0.9rem 0 1.35rem;
    padding: 1.35rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(18, 22, 44, 0.82), rgba(11, 16, 34, 0.86)),
        radial-gradient(circle at top right, rgba(106, 27, 206, 0.16), transparent 40%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(4, 8, 24, 0.18);
}

.admin-customer-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-customer-detail-head h4 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.admin-customer-detail-head p {
    margin: 0;
    color: rgba(237, 240, 255, 0.68);
}

.admin-ticket-stats-grid {
    margin-bottom: 1.25rem;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.admin-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-filter-group label {
    display: grid;
    gap: 0.45rem;
    min-width: 220px;
}

.admin-filter-group span {
    color: rgba(237, 240, 255, 0.74);
    font-size: 0.9rem;
}

.admin-ticket-detail-row td {
    padding: 0;
    border-bottom: 0;
}

.admin-ticket-detail-card {
    margin-top: 0.75rem;
}

.admin-ticket-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.admin-ticket-meta-card {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 0.45rem;
}

.admin-ticket-meta-card span {
    color: rgba(237, 240, 255, 0.7);
    font-size: 0.88rem;
}

.admin-ticket-meta-card strong {
    font-size: 0.98rem;
}

.admin-ticket-thread {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.admin-ticket-message {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 12px 30px rgba(4, 8, 24, 0.12);
}

.admin-ticket-message.is-primary {
    background: linear-gradient(135deg, rgba(106, 27, 206, 0.14), rgba(30, 136, 229, 0.12));
}

.admin-ticket-message header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: rgba(237, 240, 255, 0.74);
}

.admin-ticket-message header strong {
    color: #eef2ff;
}

.admin-ticket-reply-form {
    display: grid;
    gap: 1rem;
}

.admin-ticket-reply-form label {
    display: grid;
    gap: 0.45rem;
}

.admin-ticket-reply-form span {
    color: rgba(237, 240, 255, 0.76);
}

.admin-ticket-reply-form textarea {
    width: 100%;
    min-height: 160px;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #eef2ff;
    font: inherit;
    resize: vertical;
}

.admin-empty {
    color: rgba(237, 240, 255, 0.68);
    margin: 0;
}

@media (max-width: 1280px) {
    .admin-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-panel-grid,
    .admin-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-topbar-meta,
    [dir="ltr"] .admin-topbar-meta {
        justify-items: start;
    }

    .admin-customer-summary td {
        white-space: normal;
    }

    .admin-customer-detail-head {
        flex-direction: column;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-filter-group {
        flex-direction: column;
    }

    .admin-filter-group label {
        min-width: 0;
    }

    .admin-ticket-meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-ticket-message header {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .admin-shell {
        padding: 1rem;
    }

    .admin-overview-grid,
    .admin-nav,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-span-2 {
        grid-column: auto;
    }

    .admin-checkbox-grid,
    .admin-quick-links {
        flex-direction: column;
    }
}
