:root {
    color-scheme: dark;
    --background: #07111f;
    --background-soft: #0b1729;
    --surface: rgba(17, 34, 56, 0.78);
    --surface-strong: #142844;
    --border: rgba(171, 197, 224, 0.15);
    --text: #f7f9fd;
    --muted: #a9bbd0;
    --brand: #5ce1c5;
    --brand-strong: #31c9ad;
    --violet: #9a8cff;
    --orange: #ffba6b;
    --pink: #ff86b3;
    --success: #76e6a7;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    font-family: Inter, "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 8%, rgba(92, 225, 197, 0.12), transparent 30rem),
        radial-gradient(circle at 92% 18%, rgba(154, 140, 255, 0.12), transparent 30rem),
        var(--background);
}

a {
    color: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

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

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 17, 31, 0.8);
    backdrop-filter: blur(20px);
}

.navigation {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
    color: #04231e;
    background: linear-gradient(145deg, #8ff4df, var(--brand));
    box-shadow: 0 10px 32px rgba(92, 225, 197, 0.22);
    font-size: 1.08rem;
    font-weight: 950;
}

.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy strong {
    font-size: 1.08rem;
}

.brand-copy span {
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.7rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #c7d3e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 160ms ease, background 160ms ease;
}

.primary-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    border-color: rgba(92, 225, 197, 0.5);
}

.button-quiet {
    background: transparent;
}

.button-primary {
    border-color: transparent;
    color: #04231e;
    background: linear-gradient(135deg, #8ef1dd, var(--brand));
}

.hero {
    display: grid;
    min-height: 650px;
    align-items: center;
    gap: clamp(46px, 7vw, 90px);
    padding-block: 82px 68px;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
}

.eyebrow,
.section-kicker {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 21px;
    padding: 8px 12px;
    border: 1px solid rgba(92, 225, 197, 0.27);
    border-radius: 999px;
    background: rgba(92, 225, 197, 0.07);
}

.eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 14px currentColor;
    content: "";
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(3rem, 6.8vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

h1 em {
    color: var(--brand);
    font-style: normal;
}

.hero-copy {
    max-width: 680px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.85;
}

.home-search {
    display: flex;
    width: min(100%, 690px);
    min-height: 66px;
    align-items: center;
    gap: 10px;
    padding: 7px 7px 7px 17px;
    border: 1px solid rgba(171, 197, 224, 0.24);
    border-radius: 18px;
    background: rgba(13, 28, 47, 0.88);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .home-search {
    padding: 7px 17px 7px 7px;
}

.search-icon {
    color: var(--brand);
    font-size: 1.8rem;
    line-height: 1;
}

.home-search input {
    min-width: 0;
    height: 50px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    flex: 1;
    font: inherit;
    font-size: 1rem;
}

.home-search input::placeholder {
    color: #7f94ab;
}

.home-search button {
    height: 50px;
    padding-inline: 24px;
    border: 0;
    border-radius: 12px;
    color: #04231e;
    background: var(--brand);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.quick-searches {
    display: flex;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 8px 13px;
    color: #7f94ab;
    font-size: 0.8rem;
}

.quick-searches a {
    color: #bfcedd;
    text-underline-offset: 3px;
}

.hero-workspace {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(171, 197, 224, 0.2);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(22, 43, 70, 0.97), rgba(9, 24, 42, 0.96));
    box-shadow: var(--shadow);
}

.hero-workspace::after {
    position: absolute;
    width: 220px;
    height: 220px;
    inset: -110px -90px auto auto;
    border-radius: 50%;
    background: rgba(154, 140, 255, 0.16);
    content: "";
    filter: blur(10px);
}

.workspace-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.75rem;
}

.workspace-top strong {
    margin-inline-start: auto;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--success);
    background: rgba(118, 230, 167, 0.1);
    font-size: 0.65rem;
}

.workspace-dots {
    display: flex;
    gap: 4px;
}

.workspace-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #60768d;
}

.workspace-dots i:first-child {
    background: var(--pink);
}

.workspace-drop {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 190px;
    margin-top: 16px;
    place-items: center;
    align-content: center;
    padding: 24px;
    border: 1px dashed rgba(92, 225, 197, 0.3);
    border-radius: 21px;
    background: rgba(5, 17, 31, 0.45);
    text-align: center;
}

.drop-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 13px;
    place-items: center;
    border-radius: 17px;
    color: #06241f;
    background: linear-gradient(145deg, #8df0dd, var(--brand));
    font-size: 1.7rem;
    font-weight: 900;
}

.workspace-drop p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.workspace-actions {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.workspace-actions a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.workspace-actions a:hover {
    transform: translateX(-3px);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.065);
}

[dir="ltr"] .workspace-actions a:hover {
    transform: translateX(3px);
}

.workspace-actions strong,
.workspace-actions small {
    display: block;
}

.workspace-actions strong {
    margin-bottom: 3px;
    font-size: 0.82rem;
}

.workspace-actions small {
    color: var(--muted);
    font-size: 0.7rem;
}

.action-icon,
.category-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    font-weight: 900;
}

.action-icon {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    font-size: 0.72rem;
}

.action-image { color: var(--brand); background: rgba(92, 225, 197, 0.1); }
.action-pdf { color: var(--pink); background: rgba(255, 134, 179, 0.1); }
.action-video { color: var(--violet); background: rgba(154, 140, 255, 0.1); }

.trust-strip {
    border-block: 1px solid var(--border);
    background: rgba(10, 23, 40, 0.58);
}

.trust-grid {
    display: grid;
    min-height: 104px;
    align-items: center;
    grid-template-columns: repeat(4, 1fr);
}

.trust-grid > div {
    display: grid;
    padding-inline: 25px;
    border-inline-start: 1px solid var(--border);
    gap: 3px;
}

.trust-grid > div:first-child {
    border-inline-start: 0;
}

.trust-grid strong {
    color: var(--text);
    font-size: 1.35rem;
}

.trust-grid span {
    color: var(--muted);
    font-size: 0.75rem;
}

.home-section {
    padding-block: 90px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.section-heading h2,
.privacy-panel h2,
.final-cta h2 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.section-heading p,
.privacy-panel p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    flex: 0 0 auto;
    text-decoration: none;
    font-weight: 900;
}

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

.category-card {
    display: grid;
    min-height: 126px;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(17, 34, 56, 0.65);
    grid-template-columns: auto 1fr auto;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(92, 225, 197, 0.42);
    background: var(--surface-strong);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.category-card strong,
.category-card small {
    display: block;
}

.category-card strong {
    margin-bottom: 5px;
}

.category-card small {
    color: var(--muted);
    line-height: 1.5;
}

.category-card b {
    color: #6f8499;
    font-size: 1.2rem;
}

[dir="rtl"] .category-card b {
    transform: rotate(180deg);
}

.category-image .category-icon { color: var(--brand); background: rgba(92, 225, 197, 0.11); }
.category-pdf .category-icon { color: var(--pink); background: rgba(255, 134, 179, 0.11); }
.category-video .category-icon { color: var(--violet); background: rgba(154, 140, 255, 0.11); }
.category-audio .category-icon { color: var(--orange); background: rgba(255, 186, 107, 0.11); }
.category-text .category-icon { color: #6fcaff; background: rgba(111, 202, 255, 0.11); }
.category-data .category-icon { color: #a7e572; background: rgba(167, 229, 114, 0.11); font-size: 0.68rem; }

.popular-section {
    background:
        linear-gradient(rgba(11, 23, 41, 0.92), rgba(11, 23, 41, 0.92)),
        radial-gradient(circle at 50% 0%, rgba(154, 140, 255, 0.16), transparent 35rem);
}

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

.featured-tools > a {
    display: flex;
    min-height: 280px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 23px;
    background: rgba(18, 37, 61, 0.72);
    flex-direction: column;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.featured-tools > a:hover {
    transform: translateY(-5px);
    border-color: rgba(92, 225, 197, 0.42);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
}

.featured-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 14px;
    color: var(--brand);
    background: rgba(92, 225, 197, 0.1);
    font-size: 0.8rem;
    font-weight: 950;
}

.featured-tag {
    color: var(--violet);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.featured-tools h3 {
    margin: 7px 0 9px;
    font-size: 1.18rem;
}

.featured-tools p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.65;
}

.featured-tools strong {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--brand);
    font-size: 0.82rem;
}

.featured-tools i {
    font-style: normal;
}

.privacy-panel {
    display: grid;
    align-items: center;
    gap: clamp(36px, 7vw, 90px);
    padding: clamp(28px, 6vw, 68px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: linear-gradient(140deg, rgba(21, 44, 71, 0.9), rgba(11, 27, 47, 0.9));
    grid-template-columns: 0.72fr 1.28fr;
}

.privacy-visual {
    position: relative;
    display: grid;
    width: min(100%, 290px);
    aspect-ratio: 1;
    margin-inline: auto;
    place-items: center;
    border: 1px solid rgba(92, 225, 197, 0.25);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 225, 197, 0.14), rgba(92, 225, 197, 0.02) 60%, transparent 61%);
}

.privacy-visual span {
    display: grid;
    width: 95px;
    height: 112px;
    place-items: center;
    border-radius: 45px 45px 28px 28px;
    color: #06241f;
    background: linear-gradient(145deg, #91f1de, var(--brand));
    font-size: 2.2rem;
    font-weight: 900;
    clip-path: polygon(12% 24%, 50% 0, 88% 24%, 88% 69%, 50% 100%, 12% 69%);
}

.privacy-visual i {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 16px currentColor;
}

.privacy-visual i:nth-child(2) { inset: 24% auto auto 8%; color: var(--brand); background: currentColor; }
.privacy-visual i:nth-child(3) { inset: auto 8% 26% auto; color: var(--pink); background: currentColor; }
.privacy-visual i:nth-child(4) { inset: 8% 28% auto auto; color: var(--orange); background: currentColor; }

.privacy-points {
    display: flex;
    margin-top: 22px;
    flex-wrap: wrap;
    gap: 10px;
}

.privacy-points > span {
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #cfdae6;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.75rem;
    font-weight: 800;
}

.privacy-points > span::first-letter {
    color: var(--brand);
}

.final-cta {
    position: relative;
    overflow: hidden;
    padding-block: 88px;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(92, 225, 197, 0.16), transparent 24rem),
        radial-gradient(circle at 88% 70%, rgba(154, 140, 255, 0.14), transparent 26rem),
        linear-gradient(135deg, #0b1b2d, #10233a 54%, #151f39);
    text-align: center;
}

.final-cta .shell {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    max-width: 780px;
    margin-inline: auto;
}

.final-cta p {
    max-width: 620px;
    margin: 0 auto 25px;
    color: var(--muted);
    line-height: 1.7;
}

.button-light {
    border: 0;
    color: #06221d;
    background: var(--brand);
}

.cta-orb {
    position: absolute;
    width: 260px;
    height: 260px;
    inset: -130px auto auto 8%;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
}

.site-footer {
    background: #050d18;
}

.footer-main {
    display: grid;
    gap: 60px;
    padding-block: 58px;
    grid-template-columns: 1fr 1fr;
}

.footer-brand p {
    max-width: 390px;
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(2, 1fr);
}

.footer-links div {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links strong {
    margin-bottom: 6px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.86rem;
}

.footer-links a:hover {
    color: var(--brand);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 22px;
    border-top: 1px solid var(--border);
    color: #73869a;
    font-size: 0.78rem;
}

.footer-bottom p {
    margin: 0;
}

[data-language="en"] [data-copy="ar"],
[data-language="ar"] [data-copy="en"] {
    display: none;
}

@media (max-width: 980px) {
    .primary-nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-block: 64px 54px;
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-copy,
    .home-search {
        margin-inline: auto;
    }

    .quick-searches {
        justify-content: center;
    }

    .hero-workspace {
        width: min(100%, 600px);
        margin-inline: auto;
    }

    .category-grid,
    .featured-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .shell {
        width: min(100% - 24px, 1200px);
    }

    .navigation {
        min-height: 68px;
        gap: 12px;
    }

    .brand-copy span,
    .nav-all-tools {
        display: none;
    }

    .button {
        min-height: 42px;
        padding-inline: 13px;
    }

    .hero {
        padding-block: 46px 38px;
    }

    h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .home-search {
        min-height: 60px;
        padding: 6px;
    }

    [dir="rtl"] .home-search {
        padding: 6px;
    }

    .search-icon {
        display: none;
    }

    .home-search input {
        padding-inline: 10px;
    }

    .home-search button {
        padding-inline: 17px;
    }

    .hero-workspace {
        padding: 13px;
        border-radius: 23px;
    }

    .workspace-drop {
        min-height: 158px;
    }

    .trust-grid {
        padding-block: 18px;
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid > div {
        min-height: 66px;
        padding: 12px;
        border: 0;
    }

    .home-section {
        padding-block: 64px;
    }

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

    .category-grid,
    .featured-tools,
    .privacy-panel,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 112px;
    }

    .featured-tools > a {
        min-height: 250px;
    }

    .privacy-panel {
        padding: 30px 22px;
        border-radius: 24px;
        text-align: center;
    }

    .privacy-visual {
        width: 190px;
    }

    .privacy-points {
        justify-content: center;
    }

    .final-cta {
        padding-block: 68px;
    }

    .footer-main {
        gap: 40px;
    }

    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* END OF FILE */

/* Persistent navigation for catalogue and tool pages. */
.navigation.has-site-nav .site-nav-links {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
}

@media (max-width: 980px) {
    .navigation.has-site-nav {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding-block: 9px;
    }

    .navigation.has-site-nav .site-nav-links {
        display: flex;
        order: 3;
        flex: 1 0 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 2px 0 3px;
        scrollbar-width: none;
    }

    .navigation.has-site-nav .site-nav-links::-webkit-scrollbar {
        display: none;
    }

    .navigation.has-site-nav .site-nav-links a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 700px) {
    .navigation.has-site-nav .brand-copy strong {
        font-size: 0.96rem;
    }

    .navigation.has-site-nav .button {
        min-height: 38px;
        padding-inline: 10px;
        font-size: 0.82rem;
    }
}

.product-page {
    min-height: calc(100vh - 140px);
    padding-block: 58px 80px;
}

.product-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.product-back:hover {
    color: var(--brand);
}

.product-grid {
    display: grid;
    align-items: start;
    gap: 28px;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
}

.product-related {
    margin-top: 40px;
}

.product-related h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.product-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.product-related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.product-faq {
    margin-top: 40px;
}

.product-faq h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.product-faq .faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.product-faq .faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.product-faq .faq-item summary::-webkit-details-marker {
    display: none;
}

.product-faq .faq-item summary::before {
    content: '+';
    display: inline-block;
    width: 1.1em;
    color: var(--brand);
    font-weight: 800;
}

.product-faq .faq-item[open] summary::before {
    content: '\2212';
}

.product-faq .faq-item p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.product-related-card:hover {
    border-color: var(--brand, #55d8c1);
    background: rgba(85, 216, 193, 0.06);
}

.product-related-icon {
    font-size: 1.1rem;
    opacity: 0.85;
    flex-shrink: 0;
}

.product-related-title {
    font-size: 0.92rem;
    line-height: 1.4;
}

.product-intro {
    padding: 10px 10px 10px 0;
}

[dir="rtl"] .product-intro {
    padding-right: 0;
    padding-left: 10px;
}

.product-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 26px;
    place-items: center;
    border: 1px solid rgba(85, 216, 193, 0.32);
    border-radius: 22px;
    color: var(--brand);
    background: rgba(85, 216, 193, 0.09);
    font-size: 1.7rem;
    font-weight: 900;
}

.product-intro h1 {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    line-height: 1.08;
}

.product-description {
    max-width: 600px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.85;
}

.product-note {
    max-width: 600px;
    margin-top: 28px;
    padding: 16px 18px;
    border-inline-start: 3px solid var(--accent);
    color: #d8e3f0;
    background: rgba(244, 189, 96, 0.07);
    line-height: 1.7;
}

.product-calculator {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(20, 42, 66, 0.96), rgba(10, 25, 42, 0.94));
    box-shadow: var(--shadow);
}

.product-form {
    display: grid;
    gap: 20px;
}

.product-field {
    display: grid;
    gap: 9px;
}

.product-field-label {
    color: #dce7f4;
    font-size: 0.9rem;
    font-weight: 800;
}

.product-control {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(4, 14, 26, 0.55);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.product-control:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(85, 216, 193, 0.1);
}

.product-control input,
.product-control select,
.product-control textarea {
    width: 100%;
    min-height: 58px;
    padding: 0 17px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
}

.product-control input[type="file"] {
    min-height: auto;
    padding-block: 15px;
    cursor: pointer;
}

.product-control input[type="file"]::file-selector-button {
    margin-inline-end: 12px;
    padding: 9px 13px;
    border: 0;
    border-radius: 10px;
    background: rgba(85, 216, 193, 0.14);
    color: var(--brand);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.product-control select {
    appearance: none;
    cursor: pointer;
}

.product-file-chips {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-file-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(4, 14, 26, 0.4);
    color: var(--text);
    font-size: 0.9rem;
}

.product-file-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.product-file-chip-remove:hover {
    background: rgba(255, 99, 99, 0.2);
    color: #ff6363;
}

.product-control select option {
    color: var(--text);
    background: var(--background);
}

.product-control input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.product-unit {
    padding-inline: 16px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.product-submit {
    min-height: 56px;
    margin-top: 4px;
    border: 0;
}

.product-result {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid rgba(85, 216, 193, 0.3);
    border-radius: 20px;
    outline: none;
    background: rgba(85, 216, 193, 0.08);
}

.product-progress {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(4, 14, 26, 0.4);
    overflow: hidden;
}

.product-progress[hidden] {
    display: none;
}

.product-progress-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
}

.product-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 40%;
    border-radius: 999px;
    background: var(--brand, #55d8c1);
    animation: product-progress-slide 1.2s ease-in-out infinite;
}

.product-progress-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

@keyframes product-progress-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

.product-result[hidden] {
    display: none;
}

.product-result.is-error {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
}

.product-result.is-error .product-result-value {
    color: #f87171;
}

.product-result-details {
    opacity: 0.75;
    font-size: 0.9em;
}

.product-result-value,
.product-result-label,
.product-result-details {
    display: block;
}

.product-result-preview {
    display: block;
    width: 100%;
    max-height: 420px;
    margin-top: 20px;
    border-radius: 16px;
    object-fit: contain;
    background: rgba(4, 14, 26, 0.45);
}

.product-result-preview[hidden],
.product-download[hidden] {
    display: none;
}

.product-download {
    display: inline-flex;
    margin-top: 18px;
    text-decoration: none;
}

.product-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.product-result-value {
    color: var(--brand);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.product-result-label {
    margin-top: 12px;
    font-size: 1.08rem;
    font-weight: 800;
}

.product-result-details {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.65;
}

.tools-showcase {
    padding-block: 76px;
}

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

.tool-link {
    display: flex;
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    flex-direction: column;
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.tool-link:hover {
    transform: translateY(-5px);
    border-color: rgba(85, 216, 193, 0.5);
    background: var(--surface-strong);
}

.tool-link-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 32px;
    place-items: center;
    border-radius: 14px;
    color: var(--brand);
    background: rgba(85, 216, 193, 0.09);
    font-weight: 900;
}

.tool-link h3 {
    margin: 0 0 10px;
}

.tool-link p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.tools-showcase .tool-link:nth-child(n + 13) {
    display: none;
}

.catalogue-cta {
    display: flex;
    margin-top: 1.5rem;
    justify-content: center;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 600px) {
    .product-page {
        padding-block: 38px 56px;
    }

    .product-calculator {
        padding: 20px;
        border-radius: 22px;
    }

    .product-control input,
    .product-control select,
    .product-control textarea {
        font-size: 1rem;
    }

    .product-download {
        width: 100%;
        justify-content: center;
    }
}

.catalogue-page {
    min-height: 75vh;
    padding-block: clamp(3rem, 7vw, 6rem);
}

.catalogue-header {
    max-width: 780px;
}

.catalogue-header h1 {
    margin: 1rem 0;
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 1;
}

.catalogue-header > p:last-child,
.catalogue-card p,
.catalogue-empty {
    color: var(--muted);
}

.catalogue-roundup-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.catalogue-roundup-links a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.catalogue-roundup-links a:hover {
    border-color: var(--brand, #55d8c1);
    background: rgba(85, 216, 193, 0.06);
}

.roundup-page {
    max-width: 780px;
    margin: 20px auto 0;
}

.roundup-page h1 {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    margin-bottom: 20px;
}

.roundup-intro {
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.roundup-page .product-related {
    margin-top: 32px;
}

.catalogue-controls {
    margin-block: 2.5rem 2rem;
}

.catalogue-controls input {
    width: min(100%, 720px);
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.product-control textarea {
    min-height: 180px;
    padding-block: 16px;
    resize: vertical;
}

.catalogue-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-block: 1rem;
}

.catalogue-filter {
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
}

.catalogue-filter:hover,
.catalogue-filter.is-active {
    border-color: var(--brand);
    background: rgba(85, 216, 193, 0.12);
    color: var(--brand);
}

.catalogue-subfilters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block: -0.4rem 1rem;
}

.catalogue-subfilter {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
}

.catalogue-subfilter:hover,
.catalogue-subfilter.is-active {
    border-color: var(--brand);
    background: rgba(85, 216, 193, 0.1);
    color: var(--brand);
}

.catalogue-load-more {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.75rem 2rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.catalogue-load-more:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.catalogue-static-links {
    margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border);
}
.catalogue-static-links h2 { font-size: 1.1rem; margin-bottom: 14px; color: var(--muted); }
.catalogue-static-links ul {
    list-style: none; margin: 0; padding: 0; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 18px;
}
.catalogue-static-links a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.catalogue-static-links a:hover { color: var(--brand); text-decoration: underline; }

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
}

.catalogue-card {
    display: flex;
    min-height: 260px;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    color: var(--text);
    flex-direction: column;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease;
}

.catalogue-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
}

.catalogue-card-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 14px;
    background: rgba(85, 216, 193, 0.12);
    color: var(--brand);
    font-weight: 800;
}

.catalogue-card-category {
    margin-top: 1rem;
    color: var(--brand);
    font-size: 0.8rem;
}

.catalogue-card h2 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

.catalogue-card p {
    margin: 0 0 1.25rem;
}

.catalogue-card strong {
    margin-top: auto;
}

.catalogue-empty {
    padding: 2rem;
    text-align: center;
}

