/* =====================================================
   TRAINCU — Modern B2B Marketplace Homepage
   Brand: Navy #0B1D3A  |  Orange #F57C00
   ===================================================== */

/* overflow-x: hidden was on both html AND body. That makes body a second,
   nested scroll container instead of just letting html own the viewport
   scroll, and .tn-navbar's `position: sticky` (style.css) then sticks to
   that inner body box instead of the real viewport -- so the header just
   scrolls out of view instead of staying fixed. Keeping the guard on html
   alone still stops the page-wide horizontal scrollbar without breaking
   sticky descendants. */
html {
    overflow-x: hidden !important;
}

body {
    max-width: 100% !important;
    width: 100% !important;
}

/* ── Shared tokens (extend root) ── */
/* Aliases only. Canonical values live in 00-tokens.css. */
:root {
    --tn-white:     var(--t-bg);
    --tn-off:       var(--t-brand-wash);
    --tn-gray-100:  var(--t-brand-wash);
    --tn-gray-200:  var(--t-brand-tint);
    --tn-gray-400:  var(--t-brand-soft);
    --tn-gray-600:  var(--t-brand);
    --tn-gray-800:  var(--t-ink-deep);   /* a text colour, not a brand fill */
    --tn-green:     var(--t-success);
    --tn-r:         var(--t-r);
    --tn-r-sm:      var(--t-r-sm);
    --tn-r-lg:      var(--t-r-lg);
    --tn-shadow:    var(--t-sh-1);
    --tn-shadow-md: var(--t-sh-2);
    --tn-shadow-lg: var(--t-sh-3);
    --tn-t:         var(--t-t);
}

/* ── Utility buttons ── */
.tn-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--tn-r-sm);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--tn-t);
    text-decoration: none;
    line-height: 1;
    font-family: var(--tn-font);
}
.tn-btn-primary { background: var(--tn-orange); color: #fff; border-color: var(--tn-orange); }
.tn-btn-primary:hover {
    background: var(--tn-orange-dk); border-color: var(--tn-orange-dk); color: #fff;
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,124,0,.35);
}
.tn-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.tn-btn-outline:hover {
    background: rgba(255,255,255,.1); border-color: #fff; color: #fff;
}
.tn-btn-navy { background: var(--tn-navy); color: #fff; border-color: var(--tn-navy); }
.tn-btn-navy:hover { background: var(--tn-navy-2); color: #fff; }
.tn-btn-lg { padding: 15px 32px; font-size: 16px; }
.tn-btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── Section label / title ── */
.tn-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--tn-orange);
    margin-bottom: 12px;
}
.tn-label::before {
    content: '';
    display: block;
    width: 22px;
    height: 3px;
    background: var(--tn-orange);
    border-radius: 2px;
}
.tn-title {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 800;
    color: var(--tn-navy);
    line-height: 1.12;
    margin-bottom: 14px;
    letter-spacing: -.5px;
}
.tn-title-white { color: #fff; }
.tn-sub {
    font-size: 16px;
    color: var(--tn-gray-600);
    line-height: 1.7;
    max-width: 560px;
}
.tn-sub-white { color: rgba(255,255,255,.65); }

/* =====================================================
   HERO
   ===================================================== */
.tn-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(26,10,46,.96) 0%, rgba(117,65,143,.82) 55%, rgba(106,40,166,.92) 100%),
        var(--t-ink-deep);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.tn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 65% 55% at 75% 50%, rgba(195,155,211,.1) 0%, transparent 70%);
    pointer-events: none;
}

/* subtle grid texture */
.tn-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.tn-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 60px;
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
}

.tn-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(195,155,211,.14);
    border: 1px solid rgba(195,155,211,.3);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tn-orange-lt);
    margin-bottom: 24px;
    animation: tn-fadeup .6s ease both;
}

.tn-hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    line-height: 1.28;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    animation: tn-fadeup .7s .1s ease both;
}
.tn-hero-title .hl { color: var(--tn-orange); }

.tn-hero-sub {
    font-size: clamp(15px, 1.6vw, 17px);
    color: rgba(255,255,255,.8);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: tn-fadeup .7s .2s ease both;
}

/* Search box */
.tn-search-box {
    background: #fff;
    border-radius: var(--tn-r-lg);
    padding: 10px 10px 10px 12px;
    box-shadow: var(--tn-shadow-lg);
    max-width: 720px;
    margin: 0 auto;
    animation: tn-fadeup .7s .3s ease both;
}

.tn-search-tabs {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0 0 10px;
    margin: 0 0 10px;
    border-bottom: 1px solid var(--tn-gray-200);
}

.tn-stab {
    padding: 6px 15px;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--tn-gray-600);
    cursor: pointer;
    transition: all var(--tn-t);
    font-family: var(--tn-font);
    display: flex;
    align-items: center;
    gap: 6px;
}
.tn-stab.active { background: var(--tn-navy); color: #fff; }
.tn-stab:hover:not(.active) { background: var(--tn-gray-100); color: var(--tn-navy); }

.tn-search-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tn-sf {
    flex: 1;
    min-width: 0;
}
.tn-sf label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--tn-gray-400);
    padding: 0 10px;
    margin-bottom: 2px;
}
.tn-sf select,
.tn-sf input {
    width: 100%;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--tn-gray-800);
    padding: 4px 10px 8px;
    outline: none;
    font-family: var(--tn-font);
}
.tn-sf select option { color: var(--tn-gray-800); }
.tn-sdiv { width: 1px; height: 38px; background: var(--tn-gray-200); flex-shrink: 0; }

.tn-search-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--tn-orange);
    color: #fff;
    border: none;
    border-radius: var(--tn-r-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--tn-t);
    font-family: var(--tn-font);
    white-space: nowrap;
    flex-shrink: 0;
}
.tn-search-submit:hover {
    background: var(--tn-orange-dk);
    box-shadow: 0 4px 16px rgba(245,124,0,.4);
}

/* ══════════════════════════════════════════════════════
   COMPREHENSIVE SEARCH SECTION V2 (ماذا تبحث عنه؟)
   ══════════════════════════════════════════════════════ */
.tn-search-box-v2 {
    max-width: 1000px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    text-align: right;
}

[dir="ltr"] .tn-search-box-v2 {
    text-align: left;
}

/* Header */
.tn-sb-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}
.tn-sb-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--tn-navy, #1e1b4b);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.tn-sb-desc {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin: 4px 0 0;
}

/* Section Hints */
.tn-section-hint {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 1. Intent Tabs ("أريد") */
.tn-intent-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px;
    border-radius: 12px;
}
.tn-intent-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}
.tn-intent-btn i {
    font-size: 16px;
    color: #64748b;
    transition: color 0.2s ease;
}
.tn-intent-btn:hover:not(.active) {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}
.tn-intent-btn.active {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #ffffff;
    border-color: #1e1b4b;
    box-shadow: 0 4px 14px rgba(30, 27, 75, 0.28);
}
.tn-intent-btn.active i {
    color: var(--t-brand-tint);
}

/* 2. Category Chips ("ماذا تحتاج؟") */
.tn-need-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}
.tn-need-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.tn-need-chip i {
    font-size: 14px;
    color: var(--t-brand);
    transition: color 0.2s ease;
}
.tn-need-chip:hover {
    border-color: var(--t-brand-tint);
    background: var(--t-brand-wash);
    color: var(--t-brand);
    transform: translateY(-1px);
}
.tn-need-chip.active {
    background: linear-gradient(135deg, var(--t-brand) 0%, #9C27B0 100%);
    color: #ffffff;
    border-color: var(--t-brand);
    box-shadow: 0 4px 14px rgba(117, 65, 143, 0.35);
    font-weight: 700;
}
.tn-need-chip.active i {
    color: #ffffff;
}

/* 3. Main Search Bar */
.tn-main-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 6px 8px;
    margin-top: 14px;
    transition: all 0.2s ease;
}
.tn-main-search-bar:focus-within {
    background: #ffffff;
    border-color: var(--t-brand);
    box-shadow: 0 0 0 4px rgba(117, 65, 143, 0.15);
}
.tn-msb-col {
    display: flex;
    flex-direction: column;
    padding: 4px 12px;
}
.tn-msb-keyword {
    flex: 1.6;
    min-width: 0;
}
.tn-msb-location {
    flex: 1.2;
    min-width: 0;
}
.tn-msb-col label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
    letter-spacing: 0.03em;
}
.tn-msb-col label i {
    color: var(--t-brand);
}
.tn-msb-col input,
.tn-msb-col select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    padding: 3px 0;
    font-family: inherit;
}
.tn-msb-col input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 13.5px;
}
.tn-msb-col select option {
    color: #0f172a;
    background: #ffffff;
}
.tn-msb-divider {
    width: 1px;
    height: 38px;
    background: #cbd5e1;
    flex-shrink: 0;
    margin: 0 4px;
}
.tn-msb-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.tn-search-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    background: linear-gradient(135deg, var(--t-brand) 0%, #5B1E94 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(117, 65, 143, 0.35);
    font-family: inherit;
    white-space: nowrap;
}
.tn-search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(117, 65, 143, 0.45);
    background: linear-gradient(135deg, #8E38D8 0%, var(--t-brand) 100%);
}
.tn-adv-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}
.tn-adv-toggle-btn:hover,
.tn-adv-toggle-btn.open {
    background: var(--t-brand);
    border-color: var(--t-brand);
    color: #ffffff;
}
.tn-adv-arrow {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 11px;
}
.tn-adv-toggle-btn.open .tn-adv-arrow {
    transform: rotate(180deg);
}

/* 4. Advanced Search Panel */
.tn-adv-panel {
    margin-top: 14px;
    animation: tn-fadeup 0.25s ease both;
}
.tn-adv-panel-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    text-align: right;
}
[dir="ltr"] .tn-adv-panel-card {
    text-align: left;
}
.tn-adv-lbl {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}
.tn-adv-sublbl {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}
.tn-condition-pills {
    display: flex;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 3px;
}
.tn-cond-pill {
    flex: 1;
    text-align: center;
    margin: 0;
    cursor: pointer;
    position: relative;
}
.tn-cond-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tn-cond-pill span {
    display: block;
    padding: 5px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.tn-cond-pill input:checked + span {
    background: var(--t-brand);
    color: #ffffff;
}

.tn-adv-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--t-brand) 0%, #5B1E94 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(117, 65, 143, 0.3);
    text-decoration: none;
}
.tn-adv-apply-btn:hover {
    background: linear-gradient(135deg, #8E38D8 0%, var(--t-brand) 100%);
    box-shadow: 0 5px 15px rgba(117, 65, 143, 0.45);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .tn-search-box-v2 {
        padding: 18px 16px;
    }
    .tn-intent-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    .tn-main-search-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    .tn-msb-divider {
        display: none;
    }
    .tn-msb-col {
        border-bottom: 1px solid #e2e8f0;
        padding: 8px 4px;
    }
    .tn-msb-col:last-child {
        border-bottom: none;
    }
    .tn-msb-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 8px;
    }
}

@media (max-width: 575px) {
    .tn-need-chips {
        gap: 5px;
    }
    .tn-need-chip {
        padding: 5px 11px;
        font-size: 12px;
    }
    .tn-msb-actions {
        grid-template-columns: 1fr;
    }
    .tn-adv-panel-card {
        padding: 14px 12px;
    }
}

/* trust strip */
.tn-hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 28px;
    animation: tn-fadeup .7s .45s ease both;
}
.tn-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
}
.tn-trust-item i { color: var(--tn-green); font-size: 14px; }

/* =====================================================
   STATS BAR
   ===================================================== */
.tn-stats {
    background: var(--t-ink-deep);
    padding: 44px 0;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.tn-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.tn-stat {
    text-align: center;
    padding: 16px 24px;
    position: relative;
}
.tn-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 20%; height: 60%; width: 1px;
    background: rgba(255,255,255,.12);
}
.tn-stat-num {
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 800;
    color: var(--tn-orange);
    line-height: 1;
    margin-bottom: 6px;
    font-family: var(--tn-font);
}
.tn-stat-lbl {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    font-weight: 500;
}

/* =====================================================
   BROWSE CATEGORIES
   ===================================================== */
.tn-categories {
    padding: 80px 0 64px;
    background: #fff;
}
.tn-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 48px;
}
.tn-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 26px 12px 20px;
    border: 1.5px solid var(--tn-gray-200);
    border-radius: var(--tn-r);
    text-decoration: none;
    background: #fff;
    text-align: center;
    transition: all var(--tn-t);
    cursor: pointer;
}
.tn-cat-card:hover {
    border-color: var(--tn-orange);
    box-shadow: 0 8px 28px rgba(245,124,0,.12);
    transform: translateY(-4px);
    text-decoration: none;
}
.tn-cat-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: var(--tn-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: background var(--tn-t);
}
.tn-cat-card:hover .tn-cat-icon { background: rgba(245,124,0,.1); }
.tn-cat-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--tn-navy);
    line-height: 1.3;
}
.tn-cat-count {
    font-size: 11px;
    color: var(--tn-gray-400);
}

/* =====================================================
   FEATURED LISTINGS
   ===================================================== */
.tn-listings {
    padding: 80px 0;
    background: var(--tn-off);
}
.tn-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}
.tn-ltabs {
    display: flex;
    gap: 6px;
    background: var(--tn-gray-100);
    border-radius: 10px;
    padding: 4px;
    margin: 24px 0 32px;
    flex-wrap: wrap;
}
.tn-ltab {
    padding: 8px 22px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tn-gray-600);
    cursor: pointer;
    transition: all var(--tn-t);
    font-family: var(--tn-font);
}
.tn-ltab.active {
    background: #fff;
    color: var(--tn-navy);
    box-shadow: 0 2px 8px rgba(11,29,58,.10);
}
.tn-ltab:hover:not(.active) { color: var(--tn-navy); }

/* Vehicle card */
.tn-card {
    background: #fff;
    border-radius: var(--tn-r);
    overflow: hidden;
    box-shadow: var(--tn-shadow);
    transition: all var(--tn-t);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1.5px solid transparent;
}
.tn-card:hover {
    box-shadow: var(--tn-shadow-lg);
    transform: translateY(-5px);
    border-color: var(--tn-orange);
}
.tn-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--tn-gray-100);
}
.tn-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.tn-card:hover .tn-card-img img { transform: scale(1.04); }

.tn-badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.tn-badge-buy  { background: var(--tn-green); color: #fff; }
.tn-badge-rent { background: var(--tn-navy);  color: #fff; }

.tn-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tn-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--tn-navy);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tn-card-model {
    font-size: 13px;
    color: var(--tn-gray-400);
    margin-bottom: 12px;
}
.tn-card-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--tn-orange);
    margin-bottom: 2px;
    line-height: 1;
}
.tn-card-price-lbl {
    font-size: 11px;
    color: var(--tn-gray-400);
    margin-bottom: 14px;
}
.tn-card-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: auto;
}
.tn-card-seller-logo {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--tn-gray-100);
    flex-shrink: 0;
}
.tn-card-seller-name {
    font-size: 12px;
    color: var(--tn-gray-600);
    font-weight: 500;
}
.tn-card-foot {
    display: flex;
    gap: 8px;
}
.tn-card-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border-radius: var(--tn-r-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--tn-t);
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: var(--tn-font);
    gap: 5px;
}
.tn-card-btn-primary {
    background: var(--tn-navy);
    color: #fff;
    border-color: var(--tn-navy);
}
.tn-card-btn-primary:hover { background: var(--tn-orange); border-color: var(--tn-orange); color: #fff; }
.tn-card-btn-outline {
    background: transparent;
    color: var(--tn-navy);
    border-color: var(--tn-gray-200);
}
.tn-card-btn-outline:hover { border-color: var(--tn-navy); }

/* tab panel */
.tn-tab-panel { display: none; }
.tn-tab-panel.active { display: block; }

/* =====================================================
   SERVICES
   ===================================================== */
.tn-services {
    padding: 88px 0;
    background: var(--tn-navy);
}
.tn-svc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 56px;
}
.tn-svc-card {
    padding: 32px 18px;
    border: 1.5px solid rgba(255,255,255,.08);
    border-radius: var(--tn-r);
    text-align: center;
    transition: all var(--tn-t);
    text-decoration: none;
    display: block;
}
.tn-svc-card:hover {
    background: rgba(255,255,255,.05);
    border-color: var(--tn-orange);
    transform: translateY(-4px);
    text-decoration: none;
}
.tn-svc-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(245,124,0,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    transition: background var(--tn-t);
}
.tn-svc-card:hover .tn-svc-icon { background: var(--tn-orange); }
.tn-svc-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.tn-svc-desc {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.tn-hiw {
    padding: 88px 0;
    background: #fff;
}
.tn-hiw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 64px;
    position: relative;
}
.tn-hiw-grid::before {
    content: '';
    position: absolute;
    top: 36px; left: 12.5%; right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--t-brand-mid), var(--t-ink-deep));
    z-index: 0;
}
.tn-hiw-step { text-align: center; position: relative; z-index: 1; }
.tn-hiw-num {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--tn-navy);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--tn-navy);
    font-family: var(--tn-font);
}
.tn-hiw-step:nth-child(-n+2) .tn-hiw-num {
    background: var(--tn-orange);
    box-shadow: 0 0 0 2px var(--tn-orange);
}
.tn-hiw-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--tn-navy);
    margin-bottom: 10px;
}
.tn-hiw-desc {
    font-size: 14px;
    color: var(--tn-gray-600);
    line-height: 1.65;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.tn-testimonials {
    padding: 88px 0;
    background: var(--tn-gray-100);
}
.tn-tgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}
.tn-tcard {
    background: #fff;
    border-radius: var(--tn-r);
    padding: 32px;
    box-shadow: var(--tn-shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: all var(--tn-t);
    border: 1.5px solid transparent;
}
.tn-tcard:hover {
    box-shadow: var(--tn-shadow-md);
    border-color: var(--tn-orange);
    transform: translateY(-3px);
}
.tn-stars { display: flex; gap: 3px; color: #FBBF24; font-size: 16px; }
.tn-review {
    font-size: 15px;
    color: var(--tn-gray-600);
    line-height: 1.72;
    font-style: italic;
    flex: 1;
}
.tn-review::before { content: '\201C'; }
.tn-review::after  { content: '\201D'; }
.tn-reviewer { display: flex; align-items: center; gap: 14px; }
.tn-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--tn-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.tn-reviewer-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--tn-navy);
    margin-bottom: 2px;
}
.tn-reviewer-co { font-size: 12px; color: var(--tn-gray-400); }

/* =====================================================
   APP DOWNLOAD (override downloadapp.blade.php)
   ===================================================== */
.download-section {
    background: linear-gradient(135deg, var(--t-brand) 50%, var(--t-brand-tint) 50%) !important;
    padding: 80px 0 !important;
    font-family: var(--tn-font) !important;
}
.download-section .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
}
.download-section .left h1 {
    font-size: 44px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: 8px !important;
    letter-spacing: -1px;
}
.download-section .left h2 {
    font-size: 26px !important;
    color: var(--t-brand-tint) !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
}
.download-section .left p { color: rgba(255,255,255,.72) !important; }
.download-section .buttons img { width: 140px !important; border-radius: 8px; }
.download-section .right img { width: 280px !important; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes tn-fadeup {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1199px) {
    .tn-cat-grid  { grid-template-columns: repeat(3, 1fr); }
    .tn-svc-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .tn-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .tn-hiw-grid   { grid-template-columns: repeat(2, 1fr); }
    .tn-hiw-grid::before { display: none; }
    .tn-tgrid      { grid-template-columns: repeat(2, 1fr); }
    .tn-svc-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .tn-hero        { min-height: 100svh; }
    .tn-hero-content{ padding: 52px 0 40px; }
    .tn-search-box  { padding: 12px; border-radius: var(--tn-r); }
    .tn-search-row  { flex-direction: column; gap: 10px; }
    .tn-sdiv        { display: none; }
    .tn-search-submit{ width: 100%; justify-content: center; }
    .tn-search-tabs { flex-wrap: wrap; }
    .tn-hero-trust  { flex-wrap: wrap; gap: 12px; }
    .tn-cat-grid    { grid-template-columns: repeat(2, 1fr); }
    .tn-listings-header { flex-direction: column; align-items: flex-start; }
    .tn-svc-grid    { grid-template-columns: 1fr; }
    .tn-hiw-grid    { grid-template-columns: 1fr; gap: 28px; }
    .tn-tgrid       { grid-template-columns: 1fr; }
    .tn-stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .tn-stat:not(:last-child)::after { display: none; }
    .download-section .wrapper { flex-direction: column; text-align: center; }
    .download-section .left,
    .download-section .right  { width: 100%; }
}

@media (max-width: 576px) {
    .tn-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .tn-stab     { padding: 5px 10px; font-size: 12px; }
    .tn-ltab     { padding: 7px 14px; font-size: 13px; }
    .tn-svc-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   RTL
   ===================================================== */
[dir="rtl"] .tn-label::before { order: 2; }
[dir="rtl"] .tn-badge  { left: auto; right: 10px; }
[dir="rtl"] .tn-hiw-grid::before {
    background: linear-gradient(270deg, var(--t-brand-mid), var(--t-ink-deep));
}
[dir="rtl"] .tn-svc-grid,
[dir="rtl"] .tn-hiw-grid,
[dir="rtl"] .tn-tgrid,
[dir="rtl"] .tn-cat-grid { direction: rtl; }

.tn-demanded {
    padding: 80px 0;
    background: var(--tn-off);
}

.tn-demanded-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.tn-demanded-card {
    position: relative;
    background: var(--tn-white);
    border-radius: var(--tn-r-lg);
    padding: 32px 28px 24px;
    box-shadow: var(--tn-shadow);
    border: 1px solid var(--tn-gray-200);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform var(--tn-t), box-shadow var(--tn-t);
    overflow: hidden;
}

.tn-demanded-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--t-brand), var(--t-brand-tint));
    border-radius: var(--tn-r-lg) var(--tn-r-lg) 0 0;
}

.tn-demanded-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tn-shadow-lg);
}

/* Rank badge */
.tn-demanded-rank {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--tn-navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

[dir="rtl"] .tn-demanded-rank {
    right: auto;
    left: 20px;
}

/* Icon */
.tn-demanded-icon {
    font-size: 48px;
    line-height: 1;
}

/* Body */
.tn-demanded-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tn-demanded-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--tn-navy);
    margin: 0;
    line-height: 1.2;
}

.tn-demanded-desc {
    font-size: 14px;
    color: var(--tn-gray-600);
    line-height: 1.7;
    margin: 0;
}

/* Tags */
.tn-demanded-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tn-dtag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245,124,0,.1);
    color: var(--tn-orange);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* CTA link */
.tn-demanded-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tn-navy);
    text-decoration: none;
    border-top: 1px solid var(--tn-gray-200);
    padding-top: 16px;
    margin-top: 4px;
    transition: color var(--tn-t), gap var(--tn-t);
}

.tn-demanded-link:hover {
    color: var(--tn-orange);
    gap: 10px;
}

/* Responsive */
@media (max-width: 991px) {
    .tn-demanded-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .tn-demanded-grid {
        grid-template-columns: 1fr;
    }

    .tn-demanded {
        padding: 56px 0;
    }
}

/* =====================================================
   WHAT DO YOU NEED TODAY? (PATHWAYS 4-CARDS)
   ===================================================== */
.tn-pathways-section {
    background: linear-gradient(180deg, #FBF8FD 0%, #FFFFFF 100%);
    padding: 72px 0 68px;
    position: relative;
    border-bottom: 1px solid #f0e8f7;
}

.tn-pathways-header {
    margin-bottom: 46px;
}

.tn-pathways-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(117, 65, 143, 0.08);
    border: 1px solid rgba(117, 65, 143, 0.2);
    color: var(--t-brand);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.tn-pathways-title {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    color: var(--t-ink-deep);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.tn-pathways-subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}

.tn-pathways-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tn-pathway-card {
    background: #ffffff;
    border: 1px solid #ede8f5;
    border-radius: 20px;
    padding: 32px 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(117, 65, 143, 0.04);
}

.tn-pathway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--t-brand), #a855f7);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tn-pathway-card:hover {
    transform: translateY(-8px);
    border-color: rgba(117, 65, 143, 0.28);
    box-shadow: 0 16px 36px -8px rgba(117, 65, 143, 0.16);
}

.tn-pathway-card:hover::before {
    opacity: 1;
}

.tn-pathway-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.tn-pathway-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(117, 65, 143, 0.08) 0%, rgba(117, 65, 143, 0.16) 100%);
    border: 1px solid rgba(117, 65, 143, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t-brand);
    font-size: 26px;
    transition: all 0.35s ease;
}

.tn-pathway-card:hover .tn-pathway-icon-wrapper {
    background: linear-gradient(135deg, var(--t-brand) 0%, #63219e 100%);
    color: #ffffff;
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 8px 18px rgba(117, 65, 143, 0.3);
}

.tn-pathway-step {
    font-size: 22px;
    font-weight: 800;
    color: #e2d9f3;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.tn-pathway-card:hover .tn-pathway-step {
    color: #a855f7;
}

.tn-pathway-card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--t-ink-deep);
    margin-bottom: 10px;
    line-height: 1.35;
}

.tn-pathway-card-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
    margin-bottom: 24px;
    min-height: 68px;
}

.tn-pathway-card-footer {
    margin-top: auto;
}

.tn-pathway-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(117, 65, 143, 0.06);
    color: var(--t-brand);
    border: 1px solid rgba(117, 65, 143, 0.18);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tn-pathway-btn i {
    transition: transform 0.3s ease;
}

.tn-pathway-card:hover .tn-pathway-btn,
.tn-pathway-btn:hover {
    background: linear-gradient(135deg, var(--t-brand) 0%, #5B1B94 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 8px 20px -4px rgba(117, 65, 143, 0.35);
}

[dir="rtl"] .tn-pathway-card:hover .tn-pathway-btn i,
[dir="rtl"] .tn-pathway-btn:hover i {
    transform: translateX(-4px);
}

[dir="ltr"] .tn-pathway-card:hover .tn-pathway-btn i,
[dir="ltr"] .tn-pathway-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .tn-pathways-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .tn-pathway-card {
        padding: 22px 18px 20px;
        border-radius: 18px;
    }
    .tn-pathway-card-top {
        margin-bottom: 16px;
    }
    .tn-pathway-icon-wrapper {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 22px;
    }
    .tn-pathway-step {
        font-size: 18px;
    }
    .tn-pathway-card-title {
        font-size: 16.5px;
        margin-bottom: 8px;
    }
    .tn-pathway-card-desc {
        font-size: 13px;
        line-height: 1.55;
        min-height: auto;
        margin-bottom: 18px;
    }
    .tn-pathway-btn {
        padding: 10px 14px;
        font-size: 13.5px;
        border-radius: 10px;
    }
    .tn-pathway-card:nth-child(3):last-child {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .tn-pathways-section {
        padding: 38px 0 32px;
    }
    .tn-pathways-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .tn-pathway-card {
        padding: 16px 12px 14px;
        border-radius: 14px;
    }
    .tn-pathway-card-top {
        margin-bottom: 10px;
    }
    .tn-pathway-icon-wrapper {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 17px;
    }
    .tn-pathway-step {
        font-size: 14px;
    }
    .tn-pathway-card-title {
        font-size: 14px;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    .tn-pathway-card-desc {
        font-size: 12px;
        line-height: 1.55;
        margin-bottom: 14px;
        min-height: auto;
        display: block;
        overflow: visible;
    }
    .tn-pathway-btn {
        padding: 9px 10px;
        font-size: 12.5px;
        gap: 5px;
        border-radius: 8px;
    }
    .tn-pathways-title {
        font-size: 21px;
    }
    .tn-pathways-subtitle {
        font-size: 12.5px;
        line-height: 1.5;
    }
    .tn-pathway-card:nth-child(3):last-child {
        grid-column: span 2;
    }
}

/* =====================================================
   TRAINCU MARKETPLACE SECTION (سوق ترانكو)
   ===================================================== */
.tn-marketplace-section {
    background: #fdfcff;
    padding: 76px 0 72px;
    position: relative;
    border-bottom: 1px solid #f0e8f7;
}

/* Header */
.tn-marketplace-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.tn-marketplace-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(117, 65, 143, 0.08);
    border: 1px solid rgba(117, 65, 143, 0.2);
    color: var(--t-brand);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.tn-marketplace-title {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    color: var(--t-ink-deep);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.tn-marketplace-subtitle {
    font-size: 15.5px;
    color: #64748b;
    margin-bottom: 0;
    max-width: 680px;
    line-height: 1.65;
}

.tn-marketplace-viewall-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--t-ink-deep);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(26, 10, 46, 0.15);
}

.tn-marketplace-viewall-btn:hover {
    background: var(--t-brand);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(117, 65, 143, 0.35);
}

[dir="rtl"] .tn-marketplace-viewall-btn:hover i {
    transform: translateX(-4px);
}

[dir="ltr"] .tn-marketplace-viewall-btn:hover i {
    transform: translateX(4px);
}

/* Unified Marketplace Filter Toolbar */
.tn-mp-filter-toolbar {
    background: #ffffff;
    border: 1.5px solid #ede8f5;
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 34px;
    box-shadow: 0 4px 20px rgba(117, 65, 143, 0.05);
}

/* Unified Single-Row Filter Toolbar Cells */
.tn-unified-filter-cell {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px 14px 6px;
    height: 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.22s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    width: 100%;
}

.tn-unified-filter-cell:hover,
.tn-unified-filter-cell:focus-within {
    border-color: var(--t-brand, #75418f);
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(117, 65, 143, 0.12);
}

.tn-unified-cell-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    white-space: nowrap;
    user-select: none;
}

.tn-unified-cell-select {
    border: none !important;
    background-color: transparent !important;
    padding: 0 22px 0 0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--t-ink-deep, #1a0a2e) !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    width: 100%;
    line-height: 1.4 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2375418f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-size: 12px 10px !important;
}

[dir="rtl"] .tn-unified-cell-select {
    background-position: left 0 center !important;
    padding: 0 0 0 20px !important;
}

[dir="ltr"] .tn-unified-cell-select {
    background-position: right 0 center !important;
    padding: 0 20px 0 0 !important;
}

.tn-filter-field-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.tn-filter-field-box .tn-dropdown-label {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--t-ink-deep);
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tn-filter-field-box .tn-dropdown-select-wrap {
    flex: 1;
}

.tn-mp-count-badge-panel {
    display: inline-block;
}

.tn-mp-subcats-panel {
    display: none;
    width: 100%;
}

.tn-mp-subcats-panel.active {
    display: block;
    animation: tn-fadeup 0.3s ease both;
}

.tn-mp-brands-panel {
    display: none;
    width: 100%;
}

.tn-mp-brands-panel.active {
    display: block;
    animation: tn-fadeup 0.3s ease both;
}

.tn-mp-subcats-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--t-brand);
    white-space: nowrap;
}

.tn-mp-subcats-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-grow: 1;
}

.tn-mp-subchip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tn-mp-subchip:hover {
    background: #f3eafc;
    border-color: var(--t-brand);
    color: var(--t-brand);
    transform: translateY(-1px);
}

.tn-mp-subchip.active {
    background: var(--t-brand);
    border-color: var(--t-brand);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(117, 65, 143, 0.25);
}

/* Custom Dropdown Styling for Marketplace & Latest Listings */
.tn-custom-dropdown {
    min-width: 250px;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 10px 20px;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237b2fbe' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 14px 12px;
}

[dir="rtl"] .tn-custom-dropdown {
    background-position: left 1rem center;
    padding-left: 2.5rem;
    padding-right: 1.25rem;
}

[dir="ltr"] .tn-custom-dropdown {
    background-position: right 1rem center;
    padding-right: 2.5rem;
    padding-left: 1.25rem;
}

.tn-custom-dropdown:hover {
    border-color: var(--t-brand);
}

.tn-custom-dropdown:focus {
    border-color: var(--t-brand);
    box-shadow: 0 0 0 4px rgba(117, 65, 143, 0.12);
    outline: none;
}

.tn-dropdown-label {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.tn-dropdown-select-wrap {
    position: relative;
    display: inline-block;
}

.tn-latest-filter-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

.tn-mp-subcat-dropdown-row {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Products Panels */
.tn-mp-type-panel {
    display: none;
}

.tn-mp-type-panel.active {
    display: block;
    animation: tn-fadeup 0.4s ease both;
}

/* Marketplace Product Card */
.tn-mp-card {
    background: #ffffff;
    border: 1px solid #ede8f5;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 3px 14px rgba(117, 65, 143, 0.04);
}

.tn-mp-card:hover {
    transform: translateY(-6px);
    border-color: rgba(117, 65, 143, 0.3);
    box-shadow: 0 16px 36px -8px rgba(117, 65, 143, 0.16);
}

.tn-mp-card-media {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.tn-mp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.tn-mp-card:hover .tn-mp-card-media img {
    transform: scale(1.06);
}

.tn-mp-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.tn-mp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.tn-mp-badge-buy {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.tn-mp-badge-rent {
    background: linear-gradient(135deg, var(--t-brand) 0%, #5B1B94 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(117, 65, 143, 0.35);
}

.tn-mp-badge-cond {
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
}

.tn-mp-card-category-tag {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    color: var(--t-ink-deep);
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(117, 65, 143, 0.15);
    z-index: 2;
}

[dir="ltr"] .tn-mp-card-category-tag {
    right: auto;
    left: 12px;
}

/* Card Body */
.tn-mp-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tn-mp-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.tn-mp-card-title a {
    color: var(--t-ink-deep);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tn-mp-card-title a:hover {
    color: var(--t-brand);
}

.tn-mp-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tn-mp-card-meta span {
    display: inline-flex;
    align-items: center;
}

.tn-mp-card-meta span i {
    color: var(--t-brand);
}

.tn-mp-card-price-row {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.tn-mp-card-price-lbl {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 2px;
}

.tn-mp-card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--t-brand);
    line-height: 1.1;
}

.tn-mp-card-price .currency {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-right: 2px;
}

[dir="ltr"] .tn-mp-card-price .currency {
    margin-right: 0;
    margin-left: 2px;
}

/* Card Actions */
.tn-mp-card-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.tn-mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    line-height: 1.2;
    box-sizing: border-box;
}

.tn-mp-btn-primary {
    flex: 1;
    min-width: 0;
    background: rgba(117, 65, 143, 0.08);
    color: var(--t-brand);
    border: 1px solid rgba(117, 65, 143, 0.2);
    white-space: nowrap;
}

.tn-mp-btn-primary span {
    white-space: nowrap;
}

.tn-mp-btn-primary:hover {
    background: linear-gradient(135deg, var(--t-brand) 0%, #5B1B94 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(117, 65, 143, 0.3);
    transform: translateY(-1px);
}

.tn-mp-btn-icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    background: #25D366;
    color: #ffffff !important;
    border: 1px solid #20ba5a;
    font-size: 19px;
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.tn-mp-btn-icon:hover {
    background: #1eb956;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* Bottom CTA */
.tn-mp-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #ede8f5;
    padding: 12px 28px;
    border-radius: 50px;
    color: var(--t-ink-deep);
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(117, 65, 143, 0.04);
}

.tn-mp-more-link:hover {
    border-color: var(--t-brand);
    color: var(--t-brand);
    background: #fdf8ff;
    box-shadow: 0 6px 20px rgba(117, 65, 143, 0.12);
    transform: translateY(-2px);
}

[dir="rtl"] .tn-mp-more-link:hover i {
    transform: translateX(-4px);
}

[dir="ltr"] .tn-mp-more-link:hover i {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .tn-marketplace-section {
        padding: 56px 0 52px;
    }
    .tn-marketplace-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .tn-mp-subcats-wrapper {
        padding: 14px 16px;
    }
}

/* =====================================================
   1. LATEST LISTINGS SECTION (أحدث المعروض)
   ===================================================== */
.tn-latest-section {
    background: #ffffff;
    padding: 76px 0 72px;
    position: relative;
    border-bottom: 1px solid #f0e8f7;
}

.tn-latest-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tn-latest-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(117, 65, 143, 0.08);
    border: 1px solid rgba(117, 65, 143, 0.2);
    color: var(--t-brand);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.tn-latest-title {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    color: var(--t-ink-deep);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.tn-latest-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: var(--t-brand);
    margin-bottom: 8px;
}

.tn-latest-desc {
    font-size: 15px;
    color: #64748b;
    max-width: 720px;
    margin-bottom: 0;
    line-height: 1.65;
}

.tn-latest-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tn-btn-outline-purple {
    background: rgba(117, 65, 143, 0.06);
    color: var(--t-brand);
    border: 1.5px solid rgba(117, 65, 143, 0.25);
}

.tn-btn-outline-purple:hover {
    background: var(--t-brand);
    color: #ffffff;
    border-color: var(--t-brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(117, 65, 143, 0.25);
}

.tn-btn-outline-dark {
    background: transparent;
    color: var(--t-ink-deep);
    border: 1.5px solid #cbd5e1;
}

.tn-btn-outline-dark:hover {
    background: var(--t-ink-deep);
    color: #ffffff;
    border-color: var(--t-ink-deep);
    transform: translateY(-2px);
}

/* Latest filter pills bar */
.tn-latest-tabs-wrapper {
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 6px;
}

.tn-latest-tabs {
    display: flex;
    gap: 8px;
    min-width: max-content;
}

.tn-latest-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.tn-latest-tab:hover {
    background: #f3eafc;
    border-color: var(--t-brand);
    color: var(--t-brand);
}

.tn-latest-tab.active {
    background: var(--t-brand);
    border-color: var(--t-brand);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(117, 65, 143, 0.28);
}

/* =====================================================
   2. RENTAL ASSETS SECTION (الأصول المتاحة للتأجير)
   ===================================================== */
.tn-rental-section {
    background: linear-gradient(180deg, #FBF8FD 0%, #FFFFFF 100%);
    padding: 76px 0 72px;
    position: relative;
    border-bottom: 1px solid #f0e8f7;
}

.tn-rental-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 46px;
}

.tn-rental-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(117, 65, 143, 0.08);
    border: 1px solid rgba(117, 65, 143, 0.2);
    color: var(--t-brand);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.tn-rental-title {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    color: var(--t-ink-deep);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.tn-rental-subtitle {
    font-size: 17px;
    font-weight: 700;
    color: var(--t-brand);
    margin-bottom: 12px;
}

.tn-rental-desc {
    font-size: 15.5px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0;
}

/* 3 Rental Feature Cards */
.tn-rental-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.tn-rental-feature-card {
    background: #ffffff;
    border: 1.5px solid #ede8f5;
    border-radius: 20px;
    padding: 32px 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(117, 65, 143, 0.04);
    position: relative;
    overflow: hidden;
}

.tn-rental-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--t-brand), #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tn-rental-feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(117, 65, 143, 0.3);
    box-shadow: 0 16px 36px -8px rgba(117, 65, 143, 0.16);
}

.tn-rental-feature-card:hover::before {
    opacity: 1;
}

.tn-rental-feature-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(117, 65, 143, 0.08) 0%, rgba(117, 65, 143, 0.16) 100%);
    border: 1px solid rgba(117, 65, 143, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t-brand);
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.35s ease;
}

.tn-rental-feature-card:hover .tn-rental-feature-icon {
    background: linear-gradient(135deg, var(--t-brand) 0%, #5B1B94 100%);
    color: #ffffff;
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 8px 20px rgba(117, 65, 143, 0.3);
}

.tn-rental-feature-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--t-ink-deep);
    margin-bottom: 10px;
}

.tn-rental-feature-desc {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tn-rental-feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(117, 65, 143, 0.06);
    color: var(--t-brand);
    border: 1px solid rgba(117, 65, 143, 0.18);
    transition: all 0.25s ease;
}

.tn-rental-feature-btn:hover {
    background: var(--t-brand);
    color: #ffffff !important;
    border-color: var(--t-brand);
    box-shadow: 0 6px 18px rgba(117, 65, 143, 0.3);
}

/* Rental Options Banner */
.tn-rental-options-banner {
    background: #ffffff;
    border: 1.5px solid #ede8f5;
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(117, 65, 143, 0.04);
}

.tn-rental-opt-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--t-ink-deep);
    margin-bottom: 16px;
}

.tn-rental-opt-header i {
    color: var(--t-brand);
    font-size: 18px;
}

.tn-rental-opt-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tn-rental-opt-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    transition: all 0.25s ease;
}

.tn-rental-opt-chip i {
    color: #10B981;
    font-size: 14px;
}

.tn-rental-opt-chip:hover {
    background: #f3eafc;
    border-color: var(--t-brand);
    color: var(--t-brand);
    transform: translateY(-2px);
}

/* Pricing Note Box */
.tn-rental-pricing-note {
    background: rgba(117, 65, 143, 0.05);
    border: 1px dashed rgba(117, 65, 143, 0.25);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #581c87;
    margin-bottom: 36px;
}

.tn-rental-pricing-note i {
    font-size: 20px;
    color: var(--t-brand);
    flex-shrink: 0;
}

/* Rental Actions Bar */
.tn-rental-actions-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =====================================================
   3. OPERATIONAL SERVICES SECTION (الخدمات التشغيلية)
   ===================================================== */
.tn-ops-section {
    background: #f8fafc;
    padding: 78px 0 74px;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.tn-ops-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 48px;
}

.tn-ops-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(117, 65, 143, 0.08);
    border: 1px solid rgba(117, 65, 143, 0.2);
    color: var(--t-brand);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.tn-ops-title {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    color: var(--t-ink-deep);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

/* All nine .tn-ops-subtitle elements in home.blade.php overrode this rule
   with the same inline style="font-size:14.5px; ... margin-bottom:8px".
   Folding the override into the rule is a no-op for every current use and
   removes nine inline declarations. 14.5px snapped to --t-fs-sm (14px). */
.tn-ops-subtitle {
    font-size: var(--t-fs-sm);
    font-weight: var(--t-fw-bold);
    color: var(--t-brand);
    margin-bottom: var(--t-2);
}

.tn-ops-desc {
    font-size: 15.5px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0;
}

/* 6 Operational Services Grid */
.tn-ops-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 46px;
}

.tn-ops-card {
    background: #ffffff;
    border: 1.5px solid #ede8f5;
    border-radius: 20px;
    padding: 30px 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(117, 65, 143, 0.03);
    position: relative;
    overflow: hidden;
}

.tn-ops-card:hover {
    transform: translateY(-8px);
    border-color: rgba(117, 65, 143, 0.32);
    box-shadow: 0 16px 36px -8px rgba(117, 65, 143, 0.16);
}

.tn-ops-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tn-ops-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(117, 65, 143, 0.08) 0%, rgba(117, 65, 143, 0.16) 100%);
    border: 1px solid rgba(117, 65, 143, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t-brand);
    font-size: 26px;
    transition: all 0.35s ease;
}

.tn-ops-card:hover .tn-ops-icon-wrap {
    background: linear-gradient(135deg, var(--t-brand) 0%, #5B1B94 100%);
    color: #ffffff;
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 8px 20px rgba(117, 65, 143, 0.3);
}

.tn-ops-num {
    font-size: 24px;
    font-weight: 800;
    color: #e2d9f3;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.tn-ops-card:hover .tn-ops-num {
    color: #a855f7;
}

.tn-ops-card-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--t-ink-deep);
    margin-bottom: 10px;
    line-height: 1.35;
}

.tn-ops-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 16px;
    flex-grow: 1;
}

.tn-ops-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tn-ops-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}

.tn-ops-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(117, 65, 143, 0.08);
    color: var(--t-brand);
    border: 1px solid rgba(117, 65, 143, 0.2);
    transition: all 0.25s ease;
}

.tn-ops-btn:hover {
    background: linear-gradient(135deg, var(--t-brand) 0%, #5B1B94 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(117, 65, 143, 0.35);
    transform: translateY(-1px);
}

/* Callout Box (دعوة لاتخاذ الإجراء) */
.tn-ops-callout {
    background: linear-gradient(135deg, var(--t-ink-deep) 0%, #2e1053 100%);
    border: 1px solid rgba(117, 65, 143, 0.4);
    border-radius: 22px;
    padding: 36px 32px;
    color: #ffffff;
    box-shadow: 0 16px 40px -8px rgba(26, 10, 46, 0.35);
}

.tn-ops-callout-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 22px;
}

.tn-ops-callout-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 1199px) {
    .tn-rental-features-grid,
    .tn-ops-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .tn-rental-feature-card:nth-child(3):last-child,
    .tn-ops-card:nth-child(9):last-child,
    .tn-ops-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .tn-rental-features-grid,
    .tn-ops-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .tn-rental-feature-card:nth-child(3):last-child,
    .tn-ops-card:nth-child(9):last-child,
    .tn-ops-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }
    .tn-latest-section,
    .tn-rental-section,
    .tn-ops-section {
        padding: 40px 0 35px;
    }
    
    /* Rental Cards Mobile 2-Col */
    .tn-rental-feature-card {
        padding: 16px 12px 14px;
        border-radius: 14px;
    }
    .tn-rental-feature-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    .tn-rental-feature-title {
        font-size: 14.5px;
        font-weight: 800;
        margin-bottom: 5px;
        line-height: 1.3;
    }
    .tn-rental-feature-desc {
        font-size: 11.5px;
        line-height: 1.55;
        margin-bottom: 12px;
        min-height: auto;
        display: block;
        overflow: visible;
    }
    .tn-rental-feature-btn {
        padding: 8px 10px;
        font-size: 12px;
        gap: 4px;
        border-radius: 8px;
    }

    /* Ops / Services Cards Mobile 2-Col */
    .tn-ops-card {
        padding: 16px 12px 14px;
        border-radius: 14px;
    }
    .tn-ops-card-top {
        margin-bottom: 10px;
    }
    .tn-ops-icon-wrap {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 18px;
    }
    .tn-ops-num {
        font-size: 15px;
        font-weight: 800;
    }
    .tn-ops-card-title {
        font-size: 14.5px;
        font-weight: 800;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    .tn-ops-subtitle {
        font-size: 11px;
        margin-bottom: 5px;
        line-height: 1.35;
    }
    .tn-ops-desc {
        font-size: 11.5px;
        line-height: 1.55;
        margin-bottom: 10px;
        min-height: auto;
        display: block;
        overflow: visible;
    }
    .tn-ops-tags {
        gap: 4px;
        margin-bottom: 10px;
    }
    .tn-ops-tag {
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 4px;
    }
    .tn-ops-btn {
        padding: 8px 8px;
        font-size: 11.5px;
        gap: 4px;
        border-radius: 8px;
    }

    .tn-ops-callout {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .tn-ops-callout-text {
        font-size: 15px;
        margin-bottom: 16px;
    }
}

/* ==========================================================================
   1. MARKET REQUESTS SECTION (طلبات السوق)
   ========================================================================== */
.tn-market-requests-section {
    padding: 70px 0 50px;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
}

.tn-mr-intro-header {
    margin-bottom: 30px;
    text-align: right;
}

[dir="ltr"] .tn-mr-intro-header {
    text-align: left;
}

.tn-mr-subhead-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.tn-mr-subhead-desc {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 0;
}

/* Cards Stack */
.tn-mr-cards-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 960px;
    margin: 0 auto;
}

.tn-mr-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 30px;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.tn-mr-card:hover {
    border-color: rgba(117, 65, 143, 0.35);
    box-shadow: 0 10px 28px -4px rgba(117, 65, 143, 0.12);
    transform: translateY(-2px);
}

.tn-mr-card-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.tn-mr-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.tn-mr-type-badge.badge-rent {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.tn-mr-type-badge.badge-buy-rent {
    background: var(--t-brand-wash);
    color: var(--t-brand);
    border: 1px solid #e9d5ff;
}

.tn-mr-type-badge.badge-service {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.tn-mr-card-label {
    font-size: 13.5px;
    color: #94a3b8;
    font-weight: 500;
}

.tn-mr-card-title {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: right;
}

[dir="ltr"] .tn-mr-card-title {
    text-align: left;
}

.tn-mr-card-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 18px;
    text-align: right;
}

[dir="ltr"] .tn-mr-card-desc {
    text-align: left;
}

.tn-mr-card-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tn-mr-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tn-mr-card-btn {
    display: block;
    width: 100%;
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #cbd5e1;
    border-radius: 26px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.tn-mr-card-btn:hover {
    border-color: var(--t-brand);
    color: var(--t-brand);
    background: rgba(117, 65, 143, 0.04);
}

/* ==========================================================================
   2. HOW MARKET REQUESTS WORK SECTION (كيف تعمل طلبات السوق؟)
   ========================================================================== */
.tn-how-requests-section {
    padding: 60px 0 55px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.tn-how-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 38px 42px;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04);
    max-width: 960px;
    margin: 0 auto;
    text-align: right;
}

[dir="ltr"] .tn-how-card {
    text-align: left;
}

.tn-how-title {
    font-size: 25px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 28px;
}

/* Timeline Vertical */
.tn-how-timeline {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.tn-how-timeline-step {
    display: flex;
    gap: 16px;
    position: relative;
}

.tn-how-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 34px;
    flex-shrink: 0;
}

.tn-how-step-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f8fafc;
    color: #0f172a;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    z-index: 2;
    transition: all 0.2s ease;
}

.tn-how-timeline-step:hover .tn-how-step-badge {
    background: var(--t-brand);
    color: #ffffff;
    border-color: var(--t-brand);
}

.tn-how-step-line {
    width: 2px;
    background: #e2e8f0;
    flex-grow: 1;
    min-height: 42px;
    margin: 4px 0;
}

.tn-how-step-content {
    padding-bottom: 24px;
    flex-grow: 1;
}

.tn-how-step-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.tn-how-step-text {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Action Buttons Block */
.tn-how-buttons-block {
    border-top: 1px solid #f1f5f9;
    padding-top: 26px;
}

.tn-how-buttons-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.tn-how-v-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.tn-how-v-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tn-how-v-btn-primary {
    background: #1e1b4b;
    color: #ffffff !important;
    border: 1.5px solid #1e1b4b;
}

.tn-how-v-btn-primary:hover {
    background: var(--t-brand);
    border-color: var(--t-brand);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(117, 65, 143, 0.25);
}

.tn-how-v-btn-outline {
    background: #ffffff;
    color: #1e293b !important;
    border: 1.5px solid #cbd5e1;
}

.tn-how-v-btn-outline:hover {
    border-color: var(--t-brand);
    color: var(--t-brand) !important;
    background: rgba(117, 65, 143, 0.04);
    transform: translateY(-2px);
}

.tn-how-v-btn-outline.highlight {
    border-color: rgba(117, 65, 143, 0.4);
    color: var(--t-brand) !important;
    background: rgba(117, 65, 143, 0.03);
}

.tn-how-v-btn-outline.highlight:hover {
    background: var(--t-brand);
    color: #ffffff !important;
    border-color: var(--t-brand);
    transform: translateY(-2px);
}

/* ==========================================================================
   3. JOIN / SUPPLY CTA SECTION (حوّل احتياجك إلى فرصة، واعرض أصولك أمام السوق)
   ========================================================================== */
.tn-join-cta-section {
    padding: 60px 0 70px;
    background: #ffffff;
}

.tn-join-cta-box {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 48px 36px;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0 6px 22px -3px rgba(15, 23, 42, 0.04);
}

.tn-join-cta-title {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.35;
}

.tn-join-cta-desc {
    font-size: 16.5px;
    color: #475569;
    line-height: 1.75;
    max-width: 780px;
    margin: 0 auto 30px;
}

.tn-join-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tn-join-btn-dark {
    background: #0f172a;
    color: #ffffff !important;
    border: 1.5px solid #0f172a;
    padding: 13px 30px;
    border-radius: 30px;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.tn-join-btn-dark:hover {
    background: var(--t-brand);
    border-color: var(--t-brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(117, 65, 143, 0.32);
}

.tn-join-btn-outline {
    background: #ffffff;
    color: #1e293b !important;
    border: 1.5px solid #cbd5e1;
    padding: 13px 30px;
    border-radius: 30px;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.tn-join-btn-outline:hover {
    border-color: var(--t-brand);
    color: var(--t-brand) !important;
    background: rgba(117, 65, 143, 0.05);
    transform: translateY(-2px);
}

/* Sample Request Modal Styling */
.tn-modal-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14.5px;
}

.tn-modal-info-label {
    color: #64748b;
    font-weight: 600;
}

.tn-modal-info-val {
    color: #0f172a;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .tn-how-steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tn-join-cta-box {
        padding: 34px 22px;
    }
    .tn-join-cta-title {
        font-size: 23px;
    }
}

@media (max-width: 640px) {
    .tn-market-requests-section,
    .tn-how-requests-section,
    .tn-join-cta-section {
        padding: 45px 0;
    }
    .tn-mr-card {
        padding: 20px 18px;
    }
    .tn-mr-card-title {
        font-size: 18px;
    }
    .tn-how-title {
        font-size: 22px;
    }
    .tn-how-buttons-row,
    .tn-join-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .tn-how-btn-primary,
    .tn-how-btn-outline,
    .tn-join-btn-dark,
    .tn-join-btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════
   HERO BANNER FOR SERVICE & FORM PAGES
══════════════════════════════════════════════ */
.tn-service-hero {
    background: linear-gradient(135deg, #0B1D3A 0%, #152A47 50%, #1C3557 100%);
    padding: 68px 0 56px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tn-service-hero::after {
    content: '';
    position: absolute;
    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: 44px 44px;
    pointer-events: none;
}

.tn-service-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 16px;
}

.tn-service-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(117, 65, 143, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 50px;
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #E9D5FF;
    margin-bottom: 18px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 12px rgba(117, 65, 143, 0.15);
}

.tn-service-hero-badge i {
    color: #C084FC;
}

.tn-service-hero-title {
    font-size: clamp(28px, 4.2vw, 46px);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.tn-service-hero-sub {
    font-size: clamp(17px, 2.2vw, 22px);
    font-weight: 800;
    color: #38BDF8;
    margin-bottom: 14px;
    line-height: 1.4;
}

.tn-service-hero-desc {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    margin-bottom: 26px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.tn-service-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.tn-service-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.tn-service-hero-btn-primary {
    background: linear-gradient(135deg, var(--t-brand) 0%, #9D4EDD 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 20px rgba(117, 65, 143, 0.4);
}

.tn-service-hero-btn-primary:hover {
    background: linear-gradient(135deg, #6B21A8 0%, #8B3DD0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(117, 65, 143, 0.55);
}

.tn-service-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.tn-service-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.tn-form-card.form-focus-pulse {
    animation: tnFormPulse 1.2s ease;
}

@keyframes tnFormPulse {
    0% { transform: scale(1); box-shadow: 0 4px 28px rgba(15, 23, 42, 0.04); }
    50% { transform: scale(1.015); box-shadow: 0 0 0 6px rgba(117, 65, 143, 0.25), 0 12px 35px rgba(117, 65, 143, 0.15); }
    100% { transform: scale(1); box-shadow: 0 4px 28px rgba(15, 23, 42, 0.04); }
}

/* ==========================================================================
   MARKETPLACE DEDICATED FORMS STYLING (النماذج الخمسة)
   ========================================================================== */
.tn-form-page-section {
    padding: 50px 0 80px;
    background: #f8fafc;
    min-height: 80vh;
}

.tn-form-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 24px;
    padding: 48px 52px;
    max-width: 840px;
    margin: 0 auto;
    box-shadow: 0 4px 28px rgba(15, 23, 42, 0.04);
    text-align: right;
}

[dir="ltr"] .tn-form-card {
    text-align: left;
}

.tn-form-title {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.35;
}

.tn-form-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.65;
}

.tn-form-group {
    margin-bottom: 22px;
}

.tn-form-label {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.tn-form-label .required {
    color: #ef4444;
    margin-right: 4px;
}

.tn-form-input,
.tn-form-select {
    width: 100%;
    border-radius: 30px;
    border: 1.5px solid #e2e8f0;
    background-color: #fafafa;
    padding: 12px 24px;
    font-size: 14.5px;
    color: #0f172a;
    transition: all 0.2s ease;
}

.tn-form-input:focus,
.tn-form-select:focus {
    background-color: #ffffff;
    border-color: var(--t-brand);
    box-shadow: 0 0 0 4px rgba(117, 65, 143, 0.1);
    outline: none;
}

.tn-form-input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.tn-form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237b2fbe' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 14px 12px;
}

[dir="rtl"] .tn-form-select {
    background-position: left 1.25rem center;
    padding-left: 2.75rem;
}

[dir="ltr"] .tn-form-select {
    background-position: right 1.25rem center;
    padding-right: 2.75rem;
}

.tn-form-textarea {
    width: 100%;
    border-radius: 18px;
    border: 1.5px solid #e2e8f0;
    background-color: #fafafa;
    padding: 14px 22px;
    font-size: 14.5px;
    color: #0f172a;
    min-height: 110px;
    transition: all 0.2s ease;
    resize: vertical;
}

.tn-form-textarea:focus {
    background-color: #ffffff;
    border-color: var(--t-brand);
    box-shadow: 0 0 0 4px rgba(117, 65, 143, 0.1);
    outline: none;
}

.tn-form-textarea::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.tn-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.tn-password-wrap .tn-form-input {
    padding-left: 48px;
    padding-right: 24px;
}

[dir="ltr"] .tn-password-wrap .tn-form-input {
    padding-left: 24px;
    padding-right: 48px;
}

.tn-password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 3;
    left: 14px;
    right: auto;
}

[dir="ltr"] .tn-password-toggle {
    right: 14px;
    left: auto;
}

.tn-password-toggle:hover {
    color: var(--t-brand, #75418f);
    transform: translateY(-50%) scale(1.1);
}

.tn-logged-in-alert {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 16px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* Radio List Styling (مثل مدة التأجير المتاحة) */
.tn-radio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.tn-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
}

.tn-radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--t-brand);
    cursor: pointer;
}

.tn-radio-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.tn-radio-pill-item {
    cursor: pointer;
    margin-bottom: 0;
}

.tn-radio-pill-item input[type="radio"] {
    display: none;
}

.tn-radio-pill-item span {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 25px;
    border: 1.5px solid #e2e8f0;
    background: #fafafa;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    transition: all 0.2s ease;
}

.tn-radio-pill-item input[type="radio"]:checked + span {
    background: var(--t-brand);
    border-color: var(--t-brand);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(117, 65, 143, 0.25);
}

/* File Upload Component */
.tn-upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tn-upload-dropzone:hover {
    border-color: var(--t-brand);
    background: #fdfaff;
}

.tn-upload-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tn-upload-icon {
    font-size: 38px;
    color: var(--t-brand);
    margin-bottom: 8px;
}

.tn-upload-text {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.tn-upload-hint {
    font-size: 12.5px;
    color: #94a3b8;
}

/* Advanced Search Box */
.tn-adv-search-box {
    border-top: 1px solid #edf2f7;
    padding-top: 22px;
    margin-top: 24px;
}

.tn-adv-toggle-btn {
    background: none;
    border: none;
    color: var(--t-brand);
    font-size: 14.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 18px;
}

.tn-adv-toggle-btn:hover {
    text-decoration: underline;
}

/* Form Submit Button */
.tn-form-submit-btn {
    display: block;
    width: 100%;
    border-radius: 30px;
    padding: 14px 36px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800;
    border: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 28px;
    text-decoration: none;
}

.tn-form-submit-btn:hover {
    background: var(--t-brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(117, 65, 143, 0.32);
}

.tn-form-notice {
    font-size: 13.5px;
    color: #64748b;
    margin-top: 18px;
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .tn-form-card {
        padding: 32px 20px;
        border-radius: 20px;
    }
    .tn-form-title {
        font-size: 22px;
    }
}

/* ==========================================================================
   FORM ERROR VALIDATION & CHIC SUCCESS CARD (التحقق وكارد النجاح الشيك)
   ========================================================================== */
.tn-form-input.is-invalid,
.tn-form-select.is-invalid,
.tn-form-textarea.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fffafb !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

.tn-error-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    margin-top: 6px;
    animation: tn-error-shake 0.3s ease-in-out;
}

@keyframes tn-error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Chic Success Card (كارد نجاح شيك) */
.tn-success-card {
    background: #ffffff;
    border: 1px solid #e0f2fe;
    border-radius: 24px;
    padding: 52px 36px;
    text-align: center;
    box-shadow: 0 20px 45px -10px rgba(16, 185, 129, 0.14), 0 4px 18px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: tn-card-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tn-success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #10b981, #059669, var(--t-brand));
}

@keyframes tn-card-pop {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.tn-success-icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 3px solid #a7f3d0;
    color: #10b981;
    font-size: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.22);
    animation: tn-pulse-success 2.2s infinite;
}

@keyframes tn-pulse-success {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 24px rgba(16, 185, 129, 0.22); }
    50% { transform: scale(1.06); box-shadow: 0 14px 30px rgba(16, 185, 129, 0.32); }
}

.tn-success-title {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.35;
}

.tn-success-desc {
    font-size: 15.5px;
    color: #475569;
    max-width: 580px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.tn-success-badge-id {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 30px;
}

.tn-success-badge-id strong {
    color: var(--t-brand);
}

.tn-success-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tn-success-btn-main {
    padding: 13px 30px;
    border-radius: 30px;
    background: #0f172a;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tn-success-btn-main:hover {
    background: var(--t-brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(117, 65, 143, 0.25);
}

.tn-success-btn-sub {
    padding: 13px 30px;
    border-radius: 30px;
    background: #ffffff;
    color: #475569 !important;
    border: 1.5px solid #cbd5e1;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tn-success-btn-sub:hover {
    border-color: var(--t-brand);
    color: var(--t-brand) !important;
    background: #fdfaff;
}

.tn-success-close-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    z-index: 10;
}

.tn-success-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.08);
}

/* =========================================================
   Responsive 2-Column Grid on Mobile for Marketplace & Latest
   ========================================================= */
@media (max-width: 575.98px) {
    .tn-mp-card {
        border-radius: 12px;
    }
    
    .tn-mp-card-media {
        height: 125px;
    }
    
    .tn-mp-card-badges {
        top: 6px;
        left: 6px;
        right: 6px;
    }
    
    .tn-mp-badge {
        font-size: 9.5px;
        padding: 3px 6px;
        border-radius: 4px;
        gap: 2px;
    }
    
    .tn-mp-card-category-tag {
        bottom: 5px;
        right: 6px;
        font-size: 9px;
        padding: 2px 5px;
        border-radius: 4px;
        max-width: 88%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    [dir="ltr"] .tn-mp-card-category-tag {
        right: auto;
        left: 6px;
    }
    
    .tn-mp-card-body {
        padding: 10px 8px 12px;
    }
    
    .tn-mp-card-title {
        font-size: 12.5px;
        line-height: 1.35;
        height: 34px;
        margin-bottom: 4px;
    }
    
    .tn-mp-card-meta {
        font-size: 10px;
        gap: 5px;
        margin-bottom: 6px;
    }
    
    .tn-mp-card-meta span {
        white-space: nowrap;
    }
    
    .tn-mp-card-price-row {
        padding-top: 4px;
        margin-top: auto;
        margin-bottom: 6px;
    }
    
    .tn-mp-card-price-lbl {
        font-size: 9px;
        margin-bottom: 2px;
        color: #8e8ea0;
    }
    
    .tn-mp-card-price {
        font-size: 13px;
        line-height: 1.15;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .tn-mp-card-price .currency {
        font-size: 9.5px;
    }

    .tn-mp-card-price .text-primary {
        font-size: 11.5px !important;
        white-space: nowrap;
    }
    
    .tn-mp-card-actions {
        display: flex;
        gap: 4px;
        align-items: stretch;
        width: 100%;
    }
    
    .tn-mp-btn {
        height: 34px;
        min-height: 34px;
        padding: 0 4px;
        font-size: 11px;
        border-radius: 7px;
        gap: 2px;
        box-sizing: border-box;
    }

    .tn-mp-btn-primary {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        padding: 0 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .tn-mp-btn-primary span {
        white-space: nowrap;
        font-size: 11px;
        font-weight: 700;
        overflow: visible;
        text-overflow: clip;
        letter-spacing: -0.2px;
    }

    .tn-mp-btn-primary i {
        display: none;
    }
    
    .tn-mp-btn-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        font-size: 16px;
        padding: 0;
        border-radius: 7px;
        flex-shrink: 0;
        background: #25D366;
        color: #ffffff !important;
        border: none;
        box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

