:root {
    --tf-bg: #f4f7fb;
    --tf-surface: #ffffff;
    --tf-surface-soft: #eef3f8;
    --tf-ink: #111b2e;
    --tf-muted: #66758b;
    --tf-line: #dfe6ee;
    --tf-blue: #175cd3;
    --tf-blue-dark: #0d3f91;
    --tf-navy: #101d35;
    --tf-green: #16815f;
    --tf-danger: #d94b5f;
    --tf-radius-sm: 12px;
    --tf-radius-md: 18px;
    --tf-radius-lg: 26px;
    --tf-shadow: 0 22px 60px rgba(32, 51, 79, .11);
    --tf-shadow-soft: 0 12px 32px rgba(32, 51, 79, .08);
    --tf-transition: 220ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--tf-ink);
    background: var(--tf-bg);
    font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button, input, textarea {
    font: inherit;
}

button {
    border: 0;
}

.tf-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

/* Header */
.tf-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(17, 27, 46, .08);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
}

.tf-navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.tf-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.tf-brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 13px;
    font-size: 19px;
    background: linear-gradient(145deg, var(--tf-blue), #54a3ff);
    box-shadow: 0 9px 22px rgba(23,92,211,.22);
}

.tf-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

    .tf-brand-copy strong {
        font-size: 14px;
        font-weight: 950;
    }

    .tf-brand-copy small {
        margin-top: 4px;
        direction: ltr;
        color: #7c899c;
        font-size: 9px;
        letter-spacing: .12em;
    }

.tf-nav-links {
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 2px;
}

    .tf-nav-links a {
        padding: 10px 11px;
        border-radius: 10px;
        color: #49576c;
        font-size: 12px;
        font-weight: 800;
        transition: var(--tf-transition);
    }

        .tf-nav-links a:hover {
            color: var(--tf-blue);
            background: #eef5ff;
        }

.tf-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tf-admin-link, .tf-header-cta {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 900;
    transition: var(--tf-transition);
}

.tf-admin-link {
    color: #37465b;
    border: 1px solid var(--tf-line);
    background: #fff;
}

.tf-header-cta {
    color: #fff;
    background: var(--tf-navy);
}

    .tf-admin-link:hover, .tf-header-cta:hover {
        transform: translateY(-2px);
        box-shadow: var(--tf-shadow-soft);
    }

.tf-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-inline-start: auto;
    border-radius: 11px;
    color: var(--tf-ink);
    background: var(--tf-surface-soft);
    font-size: 21px;
}

/* Hero */
.tf-hero {
    padding: 34px 0 24px;
}

.tf-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    padding: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
    align-items: center;
    gap: 48px;
    border-radius: 30px;
    color: #fff;
    background: radial-gradient(circle at 84% 8%, rgba(73,161,255,.34), transparent 30%), linear-gradient(128deg, #0e1a2e 0%, #142b50 58%, #174c7a 100%);
    box-shadow: var(--tf-shadow);
}

    .tf-hero-card::after {
        content: "";
        position: absolute;
        inset: auto -120px -180px auto;
        width: 420px;
        height: 420px;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 50%;
    }

.tf-hero-content {
    position: relative;
    z-index: 2;
}

.tf-eyebrow, .tf-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5f83b9;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
}

.tf-eyebrow {
    color: #c7e0ff;
}

.tf-hero h1 {
    max-width: 650px;
    margin: 15px 0 15px;
    font-size: clamp(2.35rem, 4.6vw, 4.55rem);
    line-height: 1.12;
    letter-spacing: -.045em;
    font-weight: 950;
}

    .tf-hero h1 span {
        display: block;
        color: #6db5ff;
    }

.tf-hero-content > p {
    max-width: 620px;
    margin: 0;
    color: #c2ccda;
    font-size: 15px;
    line-height: 2;
}

.tf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.tf-btn {
    min-height: 48px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: var(--tf-transition);
}

    .tf-btn:hover {
        transform: translateY(-2px);
    }

.tf-btn-primary {
    color: #fff;
    background: var(--tf-blue);
    box-shadow: 0 15px 30px rgba(23,92,211,.28);
}

.tf-btn-light {
    color: var(--tf-ink);
    background: #fff;
}

.tf-btn-dark {
    color: #fff;
    background: var(--tf-navy);
}

.tf-btn-whatsapp {
    color: #fff;
    background: #159c5e;
}

.tf-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 34px;
}

    .tf-hero-metrics div {
        min-width: 100px;
        display: flex;
        flex-direction: column;
        border-right: 1px solid rgba(255,255,255,.14);
        padding-right: 18px;
    }

    .tf-hero-metrics strong {
        font-size: 21px;
        font-weight: 950;
        line-height: 1.2;
    }

        .tf-hero-metrics strong small {
            font-size: 10px;
            font-weight: 700;
            opacity: .65;
        }

    .tf-hero-metrics span {
        margin-top: 5px;
        color: #9fb0c7;
        font-size: 10px;
    }

.tf-hero-showcase {
    position: relative;
    min-height: 410px;
    display: grid;
    place-items: center;
    z-index: 1;
}

.tf-showcase-window {
    width: min(100%, 500px);
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.16);
    background: #f8fbff;
    box-shadow: 0 35px 70px rgba(0,0,0,.28);
    transform: rotate(-1.8deg);
}

.tf-showcase-topbar {
    height: 48px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #66758b;
    border-bottom: 1px solid #e6ebf2;
    font-size: 9px;
    letter-spacing: .08em;
}

.tf-window-dots {
    display: flex;
    gap: 5px;
}

    .tf-window-dots i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #b7c2d1;
    }

        .tf-window-dots i:first-child {
            background: #ff7582;
        }

        .tf-window-dots i:nth-child(2) {
            background: #ffc557;
        }

        .tf-window-dots i:last-child {
            background: #51c99a;
        }

.tf-showcase-body {
    height: 320px;
    display: flex;
}

.tf-showcase-sidebar {
    width: 56px;
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #11213a;
}

    .tf-showcase-sidebar span {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        color: #7e91ad;
        border-radius: 8px;
    }

    .tf-showcase-sidebar .active {
        color: #fff;
        background: var(--tf-blue);
    }

.tf-showcase-main {
    flex: 1;
    padding: 22px;
}

.tf-showcase-head {
    display: flex;
    justify-content: space-between;
}

    .tf-showcase-head span:first-child {
        width: 110px;
        height: 12px;
        border-radius: 6px;
        background: #17243a;
    }

    .tf-showcase-head span:last-child {
        width: 60px;
        height: 25px;
        border-radius: 8px;
        background: #e7eef7;
    }

.tf-showcase-kpis {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-top: 18px;
}

    .tf-showcase-kpis i {
        height: 58px;
        border-radius: 10px;
        background: linear-gradient(135deg,#e9f2ff,#f6f9fd);
        border: 1px solid #e2e9f2;
    }

.tf-showcase-chart {
    height: 120px;
    margin-top: 16px;
    padding: 18px 16px 0;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5ebf2;
}

    .tf-showcase-chart span {
        flex: 1;
        border-radius: 5px 5px 0 0;
        background: linear-gradient(180deg,#55a5ff,#1d66cf);
    }

.tf-showcase-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr .7fr;
    gap: 10px;
    margin-top: 15px;
}

    .tf-showcase-row i {
        height: 38px;
        border-radius: 9px;
        background: #eef3f8;
    }

.tf-showcase-badge {
    position: absolute;
    z-index: 2;
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    color: #18314f;
    background: #fff;
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
    font-size: 10px;
    font-weight: 900;
}

    .tf-showcase-badge i {
        color: #19a875;
        font-size: 15px;
    }

.tf-showcase-badge-a {
    right: -10px;
    top: 42px;
}

.tf-showcase-badge-b {
    left: -10px;
    bottom: 42px;
}

    .tf-showcase-badge-b i {
        color: #f0a22e;
    }

.tf-trust-strip {
    margin-top: 14px;
    min-height: 72px;
    padding: 14px 22px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    border-radius: 18px;
    border: 1px solid var(--tf-line);
    background: #fff;
}

    .tf-trust-strip div {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        color: #536176;
        font-size: 11px;
        font-weight: 800;
    }

    .tf-trust-strip i {
        color: var(--tf-blue);
        font-size: 16px;
    }

/* Sections */
.tf-section {
    padding: 66px 0;
}

.tf-section-muted {
    background: #ebf0f6;
    border-block: 1px solid #dfe6ee;
}

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

    .tf-section-heading h2, .tf-contact-panel h2, .tf-rating-panel h2, .tf-value-visual h2 {
        margin: 6px 0 7px;
        font-size: clamp(1.8rem,3.2vw,2.75rem);
        line-height: 1.24;
        letter-spacing: -.035em;
        font-weight: 950;
    }

    .tf-section-heading p, .tf-contact-panel p, .tf-rating-panel p, .tf-value-visual > p {
        max-width: 690px;
        margin: 0;
        color: var(--tf-muted);
        font-size: 13px;
    }

.tf-section-action {
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    border-radius: 11px;
    color: var(--tf-blue);
    border: 1px solid #cbdaf0;
    background: #fff;
    font-size: 11px;
    font-weight: 900;
    transition: var(--tf-transition);
}

    .tf-section-action:hover {
        transform: translateY(-2px);
        box-shadow: var(--tf-shadow-soft);
    }

/* Product Cards */
.tf-products-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
}

.tf-product-card {
    --accent: #175cd3;
    --accent2: #63a8ff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    border-radius: 22px;
    border: 1px solid var(--tf-line);
    background: #fff;
    box-shadow: 0 4px 0 rgba(17,27,46,.02);
    transition: transform var(--tf-transition),box-shadow var(--tf-transition),border-color var(--tf-transition);
}

    .tf-product-card:hover {
        transform: translateY(-7px);
        border-color: color-mix(in srgb,var(--accent) 28%,#dfe6ee);
        box-shadow: var(--tf-shadow);
    }

.tf-theme-hotel {
    --accent: #c58a24;
    --accent2: #f3c66d;
}

.tf-theme-mekano {
    --accent: #7357cc;
    --accent2: #aa8cff;
}

.tf-theme-restaurant {
    --accent: #d85b35;
    --accent2: #ff9b58;
}

.tf-theme-clinic {
    --accent: #1684b8;
    --accent2: #64cbea;
}

.tf-theme-menu {
    --accent: #32865d;
    --accent2: #83c96f;
}

.tf-theme-sales {
    --accent: #0c8c92;
    --accent2: #55c9c6;
}

.tf-product-visual {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: linear-gradient(135deg,color-mix(in srgb,var(--accent) 18%,#f8fafc),color-mix(in srgb,var(--accent2) 24%,#fff));
}

    .tf-product-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top,rgba(16,29,53,.08),transparent 55%);
    }

.tf-product-code {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 15px;
    color: color-mix(in srgb,var(--accent) 70%,#182033);
    font-size: 11px;
    font-weight: 950;
    direction: ltr;
}

.tf-product-status {
    position: absolute;
    z-index: 3;
    right: 14px;
    bottom: 13px;
    min-height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    color: #223047;
    background: rgba(255,255,255,.88);
    box-shadow: 0 8px 20px rgba(27,45,75,.11);
    font-size: 9px;
    font-weight: 900;
}

    .tf-product-status i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #24a875;
    }

.tf-product-content {
    flex: 1;
    padding: 20px 21px 21px;
    display: flex;
    flex-direction: column;
}

.tf-product-label {
    color: var(--accent);
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .1em;
    direction: ltr;
    text-align: right;
}

.tf-product-content h3 {
    margin: 6px 0 7px;
    font-size: 18px;
    font-weight: 950;
}

.tf-product-content p {
    margin: 0;
    color: var(--tf-muted);
    font-size: 11.5px;
    line-height: 1.9;
}

.tf-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

    .tf-feature-pills span {
        padding: 5px 8px;
        border-radius: 7px;
        color: #5b687b;
        background: #f1f4f8;
        font-size: 8.5px;
        font-weight: 800;
    }

.tf-card-link {
    margin-top: auto;
    padding-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
}

    .tf-card-link i {
        transition: transform var(--tf-transition);
    }

.tf-product-card:hover .tf-card-link i, .tf-news-card:hover .tf-card-link i {
    transform: translate(-3px,-3px);
}

/* CSS Scenes */
.tf-scene {
    position: absolute;
    inset: 0;
}

.tf-scene-hotel .sun {
    position: absolute;
    width: 75px;
    height: 75px;
    top: 34px;
    right: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,.62);
}

.tf-scene-hotel .tower {
    position: absolute;
    bottom: 35px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg,var(--accent),color-mix(in srgb,var(--accent) 72%,#49300b));
    box-shadow: 0 18px 30px rgba(76,51,12,.18);
}

    .tf-scene-hotel .tower::before {
        content: "";
        position: absolute;
        inset: 18px 10px;
        background: repeating-linear-gradient(90deg,rgba(255,255,255,.7) 0 8px,transparent 8px 17px),repeating-linear-gradient(0deg,rgba(255,255,255,.7) 0 7px,transparent 7px 20px);
        opacity: .7;
    }

.tf-scene-hotel .tower-a {
    width: 92px;
    height: 126px;
    left: 88px;
}

.tf-scene-hotel .tower-b {
    width: 74px;
    height: 92px;
    left: 170px;
}

.tf-scene-hotel .door {
    position: absolute;
    z-index: 2;
    bottom: 35px;
    left: 121px;
    width: 24px;
    height: 36px;
    border-radius: 4px 4px 0 0;
    background: #f6d89c;
}

.tf-scene-hotel .ground {
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 34px;
    height: 3px;
    border-radius: 2px;
    background: rgba(74,51,15,.27);
}

.tf-scene-mekano .panel {
    position: absolute;
    width: 116px;
    height: 75px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.62);
    background: rgba(255,255,255,.48);
    box-shadow: 0 18px 30px rgba(70,45,126,.16);
}

    .tf-scene-mekano .panel::before {
        content: "";
        position: absolute;
        left: 15px;
        right: 15px;
        top: 15px;
        height: 7px;
        border-radius: 5px;
        background: var(--accent);
        opacity: .55;
        box-shadow: 0 18px 0 rgba(115,87,204,.18),0 36px 0 rgba(115,87,204,.12);
    }

.tf-scene-mekano .panel-a {
    top: 46px;
    right: 44px;
    transform: rotate(4deg);
}

.tf-scene-mekano .panel-b {
    top: 82px;
    left: 62px;
    transform: rotate(-5deg);
}

.tf-scene-mekano .panel-c {
    bottom: 28px;
    right: 112px;
    transform: scale(.82);
}

.tf-scene-mekano .gear {
    position: absolute;
    z-index: 2;
    width: 62px;
    height: 62px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 15px 28px rgba(70,45,126,.27);
    font-size: 26px;
}

.tf-scene-restaurant .plate {
    position: absolute;
    width: 125px;
    height: 125px;
    left: 50%;
    top: 52%;
    transform: translate(-50%,-50%);
    border: 14px solid rgba(255,255,255,.76);
    border-radius: 50%;
    box-shadow: 0 16px 32px rgba(111,43,23,.16);
}

    .tf-scene-restaurant .plate::after {
        content: "";
        position: absolute;
        inset: 16px;
        border-radius: 50%;
        background: var(--accent);
        opacity: .18;
    }

.tf-scene-restaurant .fork, .tf-scene-restaurant .knife {
    position: absolute;
    top: 53px;
    width: 8px;
    height: 105px;
    border-radius: 5px;
    background: rgba(91,38,23,.55);
}

.tf-scene-restaurant .fork {
    left: 55px;
}

.tf-scene-restaurant .knife {
    right: 55px;
}

.tf-scene-restaurant .steam {
    position: absolute;
    width: 28px;
    height: 50px;
    top: 30px;
    border-left: 4px solid rgba(255,255,255,.68);
    border-radius: 50%;
}

.tf-scene-restaurant .s1 {
    left: 46%;
    transform: rotate(10deg);
}

.tf-scene-restaurant .s2 {
    left: 54%;
    transform: rotate(-8deg);
}

.tf-scene-clinic .clinic-card {
    position: absolute;
    width: 190px;
    height: 112px;
    left: 50%;
    top: 52%;
    transform: translate(-50%,-50%) rotate(-3deg);
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 18px 34px rgba(14,83,118,.18);
}

.tf-scene-clinic .pulse {
    position: absolute;
    z-index: 2;
    left: 88px;
    right: 88px;
    top: 103px;
    height: 3px;
    background: var(--accent);
    transform: skewY(-22deg);
    box-shadow: 22px -16px 0 -1px var(--accent),44px 8px 0 -1px var(--accent);
}

.tf-scene-clinic .cross {
    position: absolute;
    z-index: 3;
    width: 54px;
    height: 54px;
    left: 50%;
    top: 48%;
    transform: translate(-50%,-50%);
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: var(--accent);
    font-size: 34px;
    font-weight: 300;
    box-shadow: 0 14px 26px rgba(14,83,118,.25);
}

.tf-scene-menu .phone {
    position: absolute;
    width: 92px;
    height: 158px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%) rotate(-4deg);
    border: 7px solid #244233;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 20px 34px rgba(31,78,51,.2);
}

    .tf-scene-menu .phone::before {
        content: "";
        position: absolute;
        width: 28px;
        height: 4px;
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 3px;
        background: #244233;
    }

    .tf-scene-menu .phone i, .tf-scene-menu .phone b, .tf-scene-menu .phone em {
        position: absolute;
        left: 11px;
        right: 11px;
        border-radius: 7px;
    }

    .tf-scene-menu .phone i {
        top: 22px;
        height: 48px;
        background: linear-gradient(135deg,var(--accent2),var(--accent));
    }

    .tf-scene-menu .phone b {
        top: 78px;
        height: 9px;
        background: #dfeae3;
        box-shadow: 0 16px 0 #dfeae3,0 32px 0 #dfeae3;
    }

    .tf-scene-menu .phone em {
        bottom: 10px;
        height: 17px;
        background: var(--accent);
    }

.tf-scene-menu .leaf {
    position: absolute;
    width: 42px;
    height: 21px;
    border-radius: 100% 0 100% 0;
    background: var(--accent2);
    opacity: .75;
}

.tf-scene-menu .leaf-a {
    right: 52px;
    top: 52px;
    transform: rotate(24deg);
}

.tf-scene-menu .leaf-b {
    left: 52px;
    bottom: 48px;
    transform: rotate(-40deg);
}

.tf-scene-sales .basket {
    position: absolute;
    width: 88px;
    height: 88px;
    left: 70px;
    top: 65px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 18px 34px rgba(9,103,108,.22);
    font-size: 40px;
}

.tf-scene-sales .bar {
    position: absolute;
    bottom: 48px;
    width: 26px;
    border-radius: 7px 7px 0 0;
    background: rgba(255,255,255,.78);
    box-shadow: 0 12px 20px rgba(10,88,94,.1);
}

.tf-scene-sales .b1 {
    height: 46px;
    right: 115px;
}

.tf-scene-sales .b2 {
    height: 76px;
    right: 78px;
}

.tf-scene-sales .b3 {
    height: 108px;
    right: 41px;
    background: var(--accent2);
}

/* Platforms */
.tf-platform-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 13px;
}

.tf-platform-card {
    position: relative;
    min-height: 150px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-radius: 17px;
    border: 1px solid #d9e1ea;
    background: #fff;
    transition: var(--tf-transition);
}

    .tf-platform-card:hover {
        transform: translateY(-4px);
        border-color: #b8cce8;
        box-shadow: var(--tf-shadow-soft);
    }

.tf-platform-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--tf-blue);
    background: #edf4ff;
    font-size: 18px;
}

.tf-platform-card small {
    color: #8491a3;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
}

.tf-platform-card h3 {
    margin: 2px 0 5px;
    font-size: 14px;
    font-weight: 950;
}

.tf-platform-card p {
    margin: 0;
    color: var(--tf-muted);
    font-size: 10.5px;
    line-height: 1.75;
}

.tf-platform-arrow {
    position: absolute;
    left: 16px;
    bottom: 15px;
    color: #9aa6b6;
}

/* News */
.tf-news-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
}

.tf-news-card {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--tf-line);
    background: #fff;
    cursor: pointer;
    outline: 0;
    transition: var(--tf-transition);
}

    .tf-news-card:hover, .tf-news-card:focus-visible {
        transform: translateY(-5px);
        border-color: #b9cbe1;
        box-shadow: var(--tf-shadow-soft);
    }

.tf-news-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #e8edf3;
}

    .tf-news-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 500ms ease;
    }

.tf-news-card:hover img {
    transform: scale(1.045);
}

.tf-news-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #9eacbd;
    font-size: 38px;
    background: linear-gradient(135deg,#eaf1fa,#f7f9fc);
}

.tf-news-date {
    position: absolute;
    right: 10px;
    bottom: 10px;
    min-height: 25px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    color: #fff;
    background: rgba(17,29,50,.78);
    font-size: 8px;
    direction: ltr;
}

.tf-news-body {
    min-height: 205px;
    padding: 17px;
    display: flex;
    flex-direction: column;
}

.tf-news-category {
    color: var(--tf-blue);
    font-size: 8px;
    font-weight: 900;
}

.tf-news-body h3 {
    margin: 5px 0 7px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 950;
}

.tf-news-body p {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--tf-muted);
    font-size: 10.5px;
    line-height: 1.85;
}

/* Value */
.tf-value-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 18px;
}

.tf-value-visual {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    padding: 38px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(140deg,#10213b,#174c7e);
}

    .tf-value-visual .tf-section-kicker {
        color: #a7d1ff;
    }

    .tf-value-visual > p {
        max-width: 510px;
        color: #bdcadb;
    }

    .tf-value-visual .tf-btn {
        margin-top: 22px;
        background: #fff;
        color: var(--tf-ink);
    }

.tf-value-art {
    position: absolute;
    left: 40px;
    bottom: 34px;
    width: 210px;
    height: 170px;
}

    .tf-value-art::before, .tf-value-art::after {
        content: "";
        position: absolute;
        inset: 25px;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 50%;
    }

    .tf-value-art::after {
        inset: 0;
    }

    .tf-value-art span {
        position: absolute;
        display: grid;
        place-items: center;
        border-radius: 50%;
    }

    .tf-value-art .core {
        width: 74px;
        height: 74px;
        left: 68px;
        top: 48px;
        color: #fff;
        background: var(--tf-blue);
        font-size: 28px;
        box-shadow: 0 16px 34px rgba(0,0,0,.2);
    }

    .tf-value-art .orbit {
        width: 38px;
        height: 38px;
        color: #16304f;
        background: #fff;
    }

    .tf-value-art .o1 {
        top: 0;
        left: 86px;
    }

    .tf-value-art .o2 {
        left: 0;
        bottom: 20px;
    }

    .tf-value-art .o3 {
        right: 0;
        bottom: 20px;
    }

.tf-value-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
}

    .tf-value-list article {
        min-height: 205px;
        padding: 22px;
        display: flex;
        flex-direction: column;
        border-radius: 20px;
        border: 1px solid #d9e1ea;
        background: #fff;
    }

        .tf-value-list article > span {
            color: #a3afbf;
            font-size: 10px;
            font-weight: 950;
            direction: ltr;
        }

        .tf-value-list article div {
            margin-top: auto;
        }

    .tf-value-list h3 {
        margin: 0 0 7px;
        font-size: 15px;
        font-weight: 950;
    }

    .tf-value-list p {
        margin: 0;
        color: var(--tf-muted);
        font-size: 10.5px;
    }

/* Resources */
.tf-resource-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px;
}

.tf-resource-panel {
    min-height: 380px;
    padding: 22px;
    border-radius: 21px;
    border: 1px solid var(--tf-line);
    background: #fff;
}

.tf-resource-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tf-line);
}

    .tf-resource-head > span {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        border-radius: 13px;
        font-size: 19px;
    }

.tf-resource-video .tf-resource-head > span {
    color: #e54555;
    background: #fff0f2;
}

.tf-resource-docs .tf-resource-head > span {
    color: var(--tf-blue);
    background: #edf4ff;
}

.tf-resource-head small {
    color: #8c99aa;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
}

.tf-resource-head h3 {
    margin: 1px 0 0;
    font-size: 15px;
    font-weight: 950;
}

.tf-resource-list {
    margin-top: 13px;
    display: grid;
    gap: 8px;
}

    .tf-resource-list a {
        min-height: 49px;
        padding: 9px 11px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border-radius: 11px;
        color: #415067;
        border: 1px solid #e4e9ef;
        background: #f8fafc;
        font-size: 10.5px;
        transition: var(--tf-transition);
    }

        .tf-resource-list a:hover {
            transform: translateX(-3px);
            border-color: #c5d5e8;
            background: #f1f6fc;
        }

        .tf-resource-list a > span {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .tf-resource-list a em {
            min-width: 42px;
            padding: 3px 6px;
            border-radius: 6px;
            color: var(--tf-blue);
            background: #e8f1ff;
            font-size: 8px;
            font-style: normal;
            font-weight: 900;
            text-align: center;
            direction: ltr;
        }

.tf-empty-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #8b98a9;
    font-size: 10px;
}

    .tf-empty-state i {
        font-size: 27px;
        opacity: .5;
    }

/* Contact and rating */
.tf-contact-section {
    padding-top: 42px;
    padding-bottom: 28px;
}

.tf-contact-panel {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 36px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 28px;
    border-radius: 25px;
    color: #fff;
    background: linear-gradient(125deg,#155cb1,#173c70 58%,#10223f);
    box-shadow: var(--tf-shadow);
}

    .tf-contact-panel::after {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        left: -90px;
        bottom: -130px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.15);
    }

    .tf-contact-panel .tf-section-kicker {
        color: #b9ddff;
    }

    .tf-contact-panel p {
        color: #c7d3e2;
    }

.tf-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    position: relative;
    z-index: 2;
}

.tf-contact-links {
    grid-column: 1/-1;
    display: flex;
    gap: 8px;
}

    .tf-contact-links a {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        color: #fff;
        border: 1px solid rgba(255,255,255,.16);
        background: rgba(255,255,255,.08);
    }

.tf-rating-section {
    padding-top: 24px;
}

.tf-rating-panel {
    padding: 30px 34px;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(340px,.75fr);
    align-items: center;
    gap: 30px;
    border-radius: 21px;
    border: 1px solid var(--tf-line);
    background: #fff;
}

.tf-rating-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.tf-stars {
    display: flex;
    gap: 7px;
    direction: ltr;
}

    .tf-stars button {
        width: 41px;
        height: 41px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        color: #c7ced8;
        background: #f0f3f7;
        cursor: pointer;
        transition: var(--tf-transition);
    }

        .tf-stars button:hover, .tf-stars button.is-active {
            color: #f1b72c;
            background: #fff7de;
            transform: translateY(-2px);
        }

.tf-rating-reason {
    display: none;
    width: 100%;
    resize: vertical;
    padding: 12px;
    border-radius: 11px;
    color: var(--tf-ink);
    background: #f8fafc;
    border: 1px solid var(--tf-line);
    outline: 0;
    font-size: 11px;
}

    .tf-rating-reason.is-visible {
        display: block;
    }

    .tf-rating-reason:focus {
        border-color: #8eb3e5;
        box-shadow: 0 0 0 4px #eaf2fd;
    }

/* Footer, modal, toast */
.tf-footer {
    padding: 28px 0 20px;
    border-top: 1px solid var(--tf-line);
    background: #fff;
}

.tf-footer-main {
    display: flex;
    align-items: center;
    gap: 22px;
}

    .tf-footer-main p {
        margin: 0 auto 0 0;
        color: var(--tf-muted);
        font-size: 10.5px;
    }

.tf-back-top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #536176;
    font-size: 10px;
    font-weight: 900;
}

.tf-footer-bottom {
    margin-top: 18px;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #8a97a8;
    border-top: 1px solid #e9edf2;
    font-size: 9px;
}

.tf-news-modal {
    overflow: hidden;
    color: var(--tf-ink);
    border-radius: 21px;
    border: 1px solid var(--tf-line);
    background: #fff;
    box-shadow: var(--tf-shadow);
}

    .tf-news-modal .modal-header {
        padding: 18px 20px;
        border-bottom: 1px solid var(--tf-line);
    }

        .tf-news-modal .modal-header small {
            color: var(--tf-blue);
            font-size: 9px;
            font-weight: 900;
        }

    .tf-news-modal .modal-title {
        margin-top: 3px;
        font-size: 17px;
        font-weight: 950;
    }

    .tf-news-modal .modal-body {
        padding: 20px;
    }

.tf-modal-photo {
    width: 100%;
    max-height: 410px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 16px;
}

.tf-modal-description {
    margin: 0;
    color: #536176;
    font-size: 12px;
    line-height: 2;
    white-space: pre-line;
}

.tf-modal-date {
    margin-top: 15px;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: #8491a3;
    border-top: 1px solid var(--tf-line);
    font-size: 10px;
    direction: ltr;
}

.tf-toast {
    position: fixed;
    z-index: 3000;
    right: 22px;
    bottom: 22px;
    max-width: min(380px,calc(100% - 44px));
    min-height: 50px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 12px;
    color: #e8fff5;
    background: #14664e;
    box-shadow: var(--tf-shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 200ms ease;
    font-size: 10.5px;
}

    .tf-toast.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .tf-toast.is-error {
        color: #fff;
        background: #a93446;
    }

.tf-btn.is-loading i {
    animation: tf-spin 900ms linear infinite;
}

@keyframes tf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .tf-nav-links {
        display: none;
        position: absolute;
        top: 68px;
        right: 16px;
        left: 16px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        border: 1px solid var(--tf-line);
        border-radius: 15px;
        background: #fff;
        box-shadow: var(--tf-shadow);
    }

        .tf-nav-links.is-open {
            display: flex;
        }

        .tf-nav-links a {
            padding: 11px 13px;
        }

    .tf-menu-toggle {
        display: grid;
        place-items: center;
    }

    .tf-header-actions {
        margin-inline-start: 0;
    }

    .tf-hero-card {
        grid-template-columns: 1fr 390px;
        padding: 42px;
        gap: 30px;
    }

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

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

@media (max-width: 820px) {
    .tf-header {
        position: relative;
    }

    .tf-navbar {
        min-height: 68px;
    }

    .tf-admin-link span {
        display: none;
    }

    .tf-admin-link {
        width: 42px;
        padding: 0;
    }

    .tf-header-cta {
        display: none;
    }

    .tf-hero {
        padding-top: 18px;
    }

    .tf-hero-card {
        min-height: 0;
        padding: 32px 25px;
        grid-template-columns: 1fr;
        border-radius: 23px;
    }

    .tf-hero-showcase {
        min-height: 330px;
    }

    .tf-showcase-window {
        width: min(100%,460px);
    }

    .tf-trust-strip {
        grid-template-columns: repeat(2,1fr);
    }

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

    .tf-value-layout, .tf-resource-grid, .tf-rating-panel {
        grid-template-columns: 1fr;
    }

    .tf-value-visual {
        min-height: 390px;
    }

    .tf-contact-panel {
        grid-template-columns: 1fr;
    }

    .tf-contact-links {
        grid-column: auto;
    }
}

@media (max-width: 580px) {
    .tf-container {
        width: min(100% - 22px,1180px);
    }

    .tf-brand-copy small {
        display: none;
    }

    .tf-section {
        padding: 48px 0;
    }

    .tf-hero-card {
        padding: 27px 19px;
    }

    .tf-hero h1 {
        font-size: 2.15rem;
    }

    .tf-hero-content > p {
        font-size: 12.5px;
    }

    .tf-hero-actions .tf-btn {
        flex: 1 1 100%;
    }

    .tf-hero-metrics {
        gap: 13px;
    }

        .tf-hero-metrics div {
            min-width: calc(50% - 8px);
        }

    .tf-hero-showcase {
        min-height: 260px;
    }

    .tf-showcase-body {
        height: 230px;
    }

    .tf-showcase-main {
        padding: 14px;
    }

    .tf-showcase-chart {
        height: 80px;
        gap: 7px;
    }

    .tf-showcase-badge {
        display: none;
    }

    .tf-trust-strip {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
    }

        .tf-trust-strip div {
            justify-content: flex-start;
        }

    .tf-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

        .tf-section-heading h2, .tf-contact-panel h2, .tf-rating-panel h2, .tf-value-visual h2 {
            font-size: 1.8rem;
        }

    .tf-products-grid, .tf-platform-grid, .tf-news-grid, .tf-value-list {
        grid-template-columns: 1fr;
    }

    .tf-product-card {
        min-height: 430px;
    }

    .tf-product-visual {
        height: 195px;
    }

    .tf-news-media {
        height: 210px;
    }

    .tf-value-visual {
        padding: 27px 22px;
        min-height: 420px;
    }

    .tf-value-art {
        left: 16px;
    }

    .tf-resource-panel, .tf-rating-panel, .tf-contact-panel {
        padding: 22px 18px;
    }

    .tf-stars {
        width: 100%;
        justify-content: space-between;
    }

        .tf-stars button {
            width: 38px;
            height: 38px;
        }

    .tf-footer-main {
        flex-wrap: wrap;
    }

        .tf-footer-main p {
            width: 100%;
            margin: 0;
        }

    .tf-footer-bottom {
        flex-direction: column;
        gap: 5px;
    }
}


/* =========================================================
   Dynamic AppProduct cards
   ========================================================= */
.tf-product-image-visual {
    background: color-mix(in srgb,var(--accent) 11%,#f8fafc)
}

.tf-product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease
}

.tf-product-image-visual::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(to top,rgba(12,24,44,.45),transparent 62%)
}

.tf-product-card:hover .tf-product-image {
    transform: scale(1.045)
}

.tf-product-icon-scene {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 70px;
    background: radial-gradient(circle at 24% 26%,color-mix(in srgb,var(--accent) 18%,transparent),transparent 32%), linear-gradient(145deg,color-mix(in srgb,var(--accent) 10%,#fff),#f8fafc)
}

    .tf-product-icon-scene::after {
        content: "";
        position: absolute;
        width: 140px;
        height: 140px;
        border: 1px solid color-mix(in srgb,var(--accent) 18%,transparent);
        border-radius: 32px;
        transform: rotate(12deg)
    }

    .tf-product-icon-scene i {
        position: relative;
        z-index: 2
    }

.tf-product-featured {
    grid-column: span 2
}

.tf-products-empty {
    grid-column: 1/-1;
    min-height: 230px;
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px dashed #ccd6e2;
    border-radius: 22px;
    background: #fff;
    text-align: center
}

    .tf-products-empty > i {
        font-size: 46px;
        color: #9cadc0
    }

    .tf-products-empty h3 {
        margin: 0 0 5px
    }

    .tf-products-empty p {
        margin: 0;
        color: var(--tf-muted);
        font-size: 12px
    }

@media(max-width:820px) {
    .tf-product-featured {
        grid-column: auto
    }

    .tf-products-empty {
        flex-direction: column
    }
}


/* News admin actions moved from Index.cshtml */

/* =========================================================
   News management buttons
   ========================================================= */

.tf-news-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 11px;
}

.tf-news-admin-actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 9px;
}

.tf-news-admin-btn {
    position: relative;
    min-height: 54px;
    min-width: 166px;
    padding: 7px 13px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 15px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

    .tf-news-admin-btn::before {
        content: "";
        position: absolute;
        width: 70px;
        height: 70px;
        top: -38px;
        left: -30px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .2);
        pointer-events: none;
    }

    .tf-news-admin-btn:hover {
        transform: translateY(-3px);
    }

.tf-news-admin-icon {
    position: relative;
    z-index: 2;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 17px;
}

.tf-news-admin-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

    .tf-news-admin-copy small {
        margin-bottom: 3px;
        font-size: 9px;
        font-weight: 700;
        opacity: .72;
    }

    .tf-news-admin-copy strong {
        font-size: 12px;
        font-weight: 900;
    }

/* زر إضافة خبر */
.tf-news-add-btn {
    color: #ffffff;
    border-color: rgba(22, 163, 107, .22);
    background: linear-gradient(135deg, #118756, #19ad70);
    box-shadow: 0 11px 24px rgba(17, 135, 86, .18);
}

    .tf-news-add-btn:hover {
        color: #ffffff;
        box-shadow: 0 15px 30px rgba(17, 135, 86, .25);
    }

    .tf-news-add-btn .tf-news-admin-icon {
        color: #0c784b;
        background: #ffffff;
        box-shadow: 0 6px 15px rgba(0, 0, 0, .12);
    }

/* زر إدارة الأخبار */
.tf-news-manage-btn {
    color: #16365f;
    border-color: #cdddf1;
    background: linear-gradient(135deg, #eef5ff, #ffffff);
    box-shadow: 0 11px 24px rgba(33, 76, 133, .09);
}

    .tf-news-manage-btn:hover {
        color: #0c4f9d;
        border-color: #9fc3ed;
        box-shadow: 0 15px 30px rgba(33, 76, 133, .14);
    }

    .tf-news-manage-btn .tf-news-admin-icon {
        color: #ffffff;
        background: linear-gradient(135deg, #1769e0, #388cf1);
        box-shadow: 0 7px 16px rgba(23, 105, 224, .22);
    }

@media (max-width: 900px) {
    .tf-news-heading-actions {
        width: 100%;
        align-items: stretch;
        justify-content: flex-start;
    }

    .tf-news-admin-actions {
        width: 100%;
    }

    .tf-news-admin-btn {
        flex: 1 1 180px;
    }
}

@media (max-width: 520px) {
    .tf-news-heading-actions,
    .tf-news-admin-actions {
        flex-direction: column;
    }

        .tf-news-heading-actions > a,
        .tf-news-admin-btn {
            width: 100%;
        }
}


/* =========================================================
   FINAL RESPONSIVE GRID SYSTEM
   Products + Platforms
   Desktop: 3 | 4K/8K: 5 | Tablet: 2 | Mobile: 1
   ========================================================= */

.tf-products-grid,
.tf-platform-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 16px;
}

.tf-product-featured {
    grid-column: auto !important;
}

.tf-product-card,
.tf-platform-card {
    width: 100%;
    min-width: 0;
}

.tf-product-card {
    min-height: 440px;
}

.tf-product-visual {
    height: 205px;
}

.tf-product-content {
    min-width: 0;
}

@media (min-width: 1800px) {
    .tf-container {
        width: min(1680px, calc(100% - 80px));
    }

    .tf-products-grid,
    .tf-platform-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 18px;
    }
}

@media (min-width: 2400px) {
    .tf-container {
        width: min(2220px, calc(100% - 120px));
    }

    .tf-products-grid,
    .tf-platform-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 20px;
    }

    .tf-product-card {
        min-height: 430px;
    }

    .tf-product-visual {
        height: 190px;
    }

    .tf-product-content {
        padding: 18px;
    }

        .tf-product-content h3 {
            font-size: 17px;
        }

    .tf-platform-card {
        min-height: 155px;
    }
}

@media (min-width: 5000px) {
    .tf-container {
        width: min(4200px, calc(100% - 220px));
    }

    .tf-products-grid,
    .tf-platform-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 28px;
    }

    .tf-product-card {
        min-height: 520px;
    }

    .tf-product-visual {
        height: 255px;
    }

    .tf-product-content {
        padding: 25px;
    }

        .tf-product-content h3 {
            font-size: 22px;
        }

        .tf-product-content p {
            font-size: 14px;
        }

    .tf-platform-card {
        min-height: 190px;
        padding: 25px;
    }

        .tf-platform-card h3 {
            font-size: 18px;
        }

        .tf-platform-card p {
            font-size: 13px;
        }
}

@media (min-width: 581px) and (max-width: 1024px) {
    .tf-products-grid,
    .tf-platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px;
    }

    .tf-product-card {
        min-height: 420px;
    }

    .tf-product-visual {
        height: 190px;
    }
}

@media (max-width: 580px) {
    .tf-products-grid,
    .tf-platform-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 13px;
    }

    .tf-product-card {
        min-height: 420px;
    }

    .tf-product-visual {
        height: 195px;
    }

    .tf-platform-card {
        min-height: 135px;
    }
}
