/*
 * stylino.css — custom overrides for Spirit theme
 * Location: /themes/spirit/views
 * Loaded after Bootstrap and theme custom.css.
 * Scope: Only home page styles via .bb2022-home wrapper.
 */

/* Arabic display font (Tajawal) */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* Global font override: apply Tajawal site‑wide */
/* html,
body {
    font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
} */
html,
body {
    font-family: 'Tajawal' !important;
}

/* العناوين */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
button,
input,
textarea {
    font-family: 'Tajawal' !important;
}

/* Bootstrap 5 theme variables */
:root {
    --bs-primary: #1c3faa;
    --bs-primary-rgb: 28, 63, 170;
    --bb-primary: #1c3faa;
    --bb-secondary: #1ca9e6;
    --bb-hero-gradient: linear-gradient(
        135deg,
        var(--bb-primary),
        var(--bb-secondary)
    );
    --bb-accent: #38bdf8;
}

/* Global max content width: cap containers at 1400px on very wide screens */
@media (min-width: 1400px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1400px;
    }
}

/* Home wrapper */
.bb2022-home {
    /* prevent global bleed */
}

/* Main navbar (Bootstrap 5) */
.main-navbar {
    background: var(--bb-hero-gradient);
}
.main-navbar .navbar-brand img {
    max-height: 44px;
}
.main-navbar .nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #fff;
}
.main-navbar .dropdown-menu {
    text-align: start;
}
.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
}
.main-navbar .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0.35rem 0.6rem;
    border-radius: 0.375rem;
    background: transparent;
}
.main-navbar .navbar-collapse {
    justify-content: space-between;
}
/* RTL: brand right, toggler left */
html[dir='RTL'] .main-navbar > .container {
    flex-direction: row-reverse;
}

/* Improve collapsed menu look on mobile */
@media (max-width: 991.98px) {
    .main-navbar .navbar-collapse.collapse.show {
        background: var(--bb-hero-gradient);
        border-radius: 0.5rem;
        padding: 0.5rem 1rem;
        margin-top: 0.5rem;
    }
    .main-navbar .nav-link {
        padding: 0.5rem 0;
    }
    .main-navbar .btn {
        margin-top: 0.25rem;
    }
}

/* subtle visual when page scrolled */
.main-navbar.scrolled {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: saturate(140%) blur(6px);
}

/* Topbar strip */
.header-topbar {
    background: linear-gradient(
        90deg,
        rgba(12, 60, 170, 0.95),
        rgba(28, 169, 230, 0.95)
    );
}
.header-topbar a {
    color: #fff;
    opacity: 0.95;
}
.header-topbar a:hover {
    opacity: 1;
}
.header-topbar .top-stats span {
    opacity: 0.95;
}
.header-topbar .top-stats i {
    opacity: 0.9;
}

/* FAQ page */
.page-faq .faq-hero {
    background: linear-gradient(
        135deg,
        rgba(28, 63, 170, 0.06),
        rgba(28, 169, 230, 0.06)
    );
    border: 1px solid rgba(28, 111, 226, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
}
.page-faq h1 {
    font-weight: 800;
}
.page-faq .accordion-item {
    border-color: rgba(0, 0, 0, 0.08) !important;
}
.page-faq .accordion-button {
    font-weight: 700;
}
.page-faq .accordion-button:focus {
    box-shadow: none;
}
.page-faq .accordion-button:not(.collapsed) {
    background: rgba(28, 111, 226, 0.08);
}

/* Upgrade page */
.page-upgrade.upgrade-hero {
    background: var(--bb-hero-gradient);
}
.page-upgrade .pricing-card .card-header.bg-gradient {
    background: linear-gradient(
        135deg,
        rgba(28, 63, 170, 0.06),
        rgba(28, 169, 230, 0.06)
    );
}
.page-upgrade .pricing-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.page-upgrade .pricing-card:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.page-upgrade .pricing-card {
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.page-upgrade .gateway-box-wrapper {
    text-align: center;
}

/* Search page */
.page-search .search-tabs .nav-link {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.06);
}
.page-search .search-tabs .nav-link.active {
    color: #fff;
    background: #0d6efd;
}
.page-search .search-tabs .badge {
    font-weight: 700;
}

/* DataTables pagination (Arabic friendly) */
.dataTables_paginate.paging_full_numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
}
.dataTables_paginate .paginate_button,
.dataTables_paginate .first,
.dataTables_paginate .previous,
.dataTables_paginate .next,
.dataTables_paginate .last {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem; /* Bootstrap btn default */
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    background: #fff;
    color: #0d6efd;
    white-space: nowrap; /* لا تقطع الكلمات العربية */
    min-width: 2.5rem; /* يسمح للأرقام أن تبدو متساوية، والكلمات تتوسع ذاتياً */
    line-height: 1.25;
}
.dataTables_paginate .paginate_button:hover,
.dataTables_paginate .first:hover,
.dataTables_paginate .previous:hover,
.dataTables_paginate .next:hover,
.dataTables_paginate .last:hover {
    background: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.3);
    color: #0a58ca;
}
.dataTables_paginate .paginate_active,
.dataTables_paginate .paginate_button.current {
    /* بعض الإضافات تستخدم current */
    background: #0d6efd !important;
    color: #fff !important;
    border-color: #0d6efd !important;
}
.dataTables_paginate .paginate_button_disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* RTL tweaks: تأكد أن الحواف والمسافات منطقية */
html[dir='RTL'] .dataTables_paginate.paging_full_numbers {
    direction: rtl;
}

/* ==============================
   Account Edit (modern look)
============================== */
.account-edit .tile-stats {
    position: relative;
    border-radius: 14px;
    padding: 16px 16px 12px 16px;
    color: #fff;
    min-height: 110px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.account-edit .tile-red {
    background: linear-gradient(135deg, #ef4444, #f97316);
}
.account-edit .tile-green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}
.account-edit .tile-aqua {
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
}
.account-edit .tile-blue {
    background: linear-gradient(135deg, #1c3faa, #1ca9e6);
}
.account-edit .tile-stats .icon {
    position: absolute;
    inset-inline-start: 12px;
    inset-block-start: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.account-edit .tile-stats .num {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: end;
}
.account-edit .tile-stats h3 {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
    text-align: end;
}
.account-edit .responsive-column {
    display: flex;
}
.account-edit .responsive-column > .tile-stats {
    width: 100%;
}

/* Tabs modern */
.account-edit .nav-tabs .nav-link {
    font-weight: 600;
}
.account-edit .nav-tabs .nav-link.active {
    color: #0d6efd;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Panels mapped to cards already; ensure spacing */
.account-edit .panel .form-group {
    margin-bottom: 1rem;
}
.account-edit .settings-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

/* Contact page */
.page-contact .icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.page-contact .icon-circle.sm {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}
.nav-container.clear-adblock {
    background: linear-gradient(135deg, #2563eb, #355db4);
}

/* Hero */

/* Footer tweaks (non-invasive) */
footer .list-inline a {
    color: rgba(0, 0, 0, 0.7);
}
footer .list-inline a:hover {
    color: rgba(0, 0, 0, 0.95);
}

/* dmca.html css */
.dmca-section {
    background-color: #f9fafe;
}
.section-title {
    color: #1c3faa;
    font-size: 2rem;
}
.dmca-box {
    background-color: #ffffff;
    border: 1px solid #e1e1e1;
}
.dmca-list li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* adv.html css (kept here for convenience if used later) */
.adv-section {
    background-color: #f4f7fb;
}
.adv-title {
    color: #1c3faa;
    font-size: 2rem;
}
.adv-info {
    border: 1px solid #e1e1e1;
}
.adv-features li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.animate-fade-up {
    animation: fadeUp 1.2s ease-in-out;
}
@keyframes fadeUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Extras for a more polished look */
.adv-section {
    background-image: radial-gradient(
        40rem 18rem at 110% -10%,
        rgba(37, 99, 235, 0.08),
        transparent 70%
    );
}
.adv-title {
    background: linear-gradient(90deg, var(--bb-primary), var(--bb-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.adv-info {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.adv-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}
.adv-features li i {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08));
}
.adv-section .btn.btn-primary {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

/* about.html css */
.about-section {
    background: #f9fbff;
}
.about-section .section-title {
    font-weight: 800;
    font-size: 2.2rem;
    background: linear-gradient(90deg, var(--bb-primary), var(--bb-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.about-card {
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.about-card ul li {
    padding: 6px 0;
    font-weight: 500;
    color: #333;
}
.about-section .link-primary {
    text-decoration: none;
}
.about-section .link-primary:hover {
    text-decoration: underline;
}
/* bb2022-style hero section for home only */
.bb2022-home .hero-section {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    color: #fff;
    background: var(--bb-hero-gradient);
    background-image:
        radial-gradient(
            60rem 20rem at -10% 0%,
            rgba(255, 255, 255, 0.12),
            transparent 70%
        ),
        radial-gradient(
            40rem 16rem at 110% 10%,
            rgba(255, 255, 255, 0.1),
            transparent 70%
        ),
        var(--bb-hero-gradient);
}

/* ===== Guide page styles ===== */
.guide-hero {
    position: relative;
    background: var(--bb-hero-gradient);
}
.guide-hero .shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    height: 20px;
    color: #fff;
    opacity: 0.15;
}
.guide-section .custom-list {
    list-style: none;
    padding: 0;
}
.guide-section .custom-list li {
    position: relative;
    padding-inline-start: 1.25rem;
    margin-bottom: 0.35rem;
}
.guide-section .custom-list li:before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset-inline-start: 0;
    color: var(--bb-primary);
}
.bb2022-home .hero-section .hero-title {
    font-family:
        'Tajawal',
        system-ui,
        -apple-system,
        'Segoe UI',
        Roboto,
        'Helvetica Neue',
        Arial,
        'Noto Sans',
        'Liberation Sans',
        sans-serif;
    font-weight: 800;
    letter-spacing: 0.2px;
}
.bb2022-home .hero-section .lead {
    color: rgba(7, 182, 51, 0.92);
}
.bb2022-home .hero-section .btn-light.text-primary {
    --bs-btn-bg: #fff;
    --bs-btn-hover-bg: #f8f9fa;
}

/* Float animation for hero image */
.bb2022-home .hero-section .hero-image {
    max-width: 100%;
    height: auto;
    max-height: 360px;
    animation: floatUpDown 3s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .bb2022-home .hero-section .hero-title {
        font-size: 1.8rem;
    }
    .bb2022-home .hero-section .lead {
        font-size: 1rem;
    }
    .bb2022-home .hero-section .btn-primary,
    .bb2022-home .hero-section .btn-light {
        padding: 10px 20px;
    }
}
.bb2022-home .hero-section .btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.15);
    --bs-btn-hover-border-color: #fff;
}

/* ========== Sections under hero (bb2022-inspired) ========== */
.bb2022-home .section-title {
    font-weight: 800;
}
.bb2022-home .section-subtitle {
    max-width: 720px;
    margin-inline: auto;
}

/* Why Us */
.bb2022-home .why-us-section {
    color: #fff;
    background: var(--bb-hero-gradient);
}
.bb2022-home .why-us-section .section-title {
    color: #fff;
}
.bb2022-home .why-us-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}
.bb2022-home .why-us-section .why-us-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    height: 100%;
}
.bb2022-home .why-us-section .why-us-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.bb2022-home .why-us-section .why-us-box img {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}
.bb2022-home .why-us-section .why-us-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
/* (icon-wrap rules removed — not used in new markup) */

/* Advantages */
.bb2022-home .our-advantages-section .adv-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.bb2022-home .our-advantages-section .adv-icon {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* FAQ */
.bb2022-home .faq-section .accordion-item {
    border: 0;
}
.bb2022-home .faq-section .accordion-button {
    font-weight: 600;
}
.bb2022-home .faq-section .accordion-button:focus {
    box-shadow: none;
}
.bb2022-home .faq-section .accordion-button:not(.collapsed) {
    background: rgba(28, 111, 226, 0.08);
}

/* Contact */
.bb2022-home .contact-section .contact-box {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Testimonials */
.bb2022-home .testimonials-section .testimonial-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
}
.bb2022-home .testimonials-section .testimonial-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== Footer (bb2022 style) ===== */
.footer-modern {
    background: var(--bb-hero-gradient);
    color: #fff;
}
.footer-modern h6 {
    color: white;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.footer-modern .footer-links li {
    margin-bottom: 0.35rem;
}
.footer-modern .footer-links a,
.footer-modern .footer-links a:visited {
    color: #fff;
    text-decoration: none;
}
.footer-modern .footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.footer-modern .icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bb-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.footer-modern .footer-links a:hover .icon-circle {
    background: #2563eb;
    transform: scale(1.08);
}
.footer-modern .footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-modern .footer-links a i {
    color: inherit;
}
footer a {
    color: white !important;
}
.back-to-top {
    position: fixed;
    inset-inline-end: 20px;
    inset-block-end: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--bb-primary);
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    z-index: 1030;
}
.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

/* Ensure brand icons inherit white color */
.footer-modern a.text-white i {
    color: #fff;
}
/* تقوية قابلية القراءة للنصوص داخل الفوتر فوق الخلفية الزرقاء */
.footer-modern p,
.footer-modern .small,
.footer-modern .text-white-50 {
    color: var(--bb-muted-on-gradient) !important;
}

/* Social icons brand colors */
.footer-modern .social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s ease;
}
.footer-modern .social-icons a:hover {
    transform: scale(1.1) rotate(5deg);
}
.footer-modern .social-icons a.facebook {
    background: #1877f2;
}
.footer-modern .social-icons a.x-twitter {
    background: #1da1f2;
}
.footer-modern .social-icons a.instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}
.footer-modern .social-icons a.youtube {
    background: #ff0000;
}
.footer-modern .social-icons a.telegram {
    background: #229ed9;
}
.footer-modern .social-icons a.email {
    background: #0d6efd;
}

/* ==============================
   ✅ قسم لماذا نحن
============================== */
.why-us-section {
    background: linear-gradient(135deg, #1c3faa, #1ca9e6);
    color: #fff;
}
.why-us-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    height: 100%;
}
.why-us-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}
.why-us-box img {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}
.why-us-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

/* ==============================
   ✅ قسم التطبيقات
============================== */
.download-app-section {
    background: linear-gradient(135deg, #f0faff, #ffffff);
    border-top: 1px solid #e0eff7;
    border-bottom: 1px solid #e0eff7;
}
.download-app-section img {
    max-width: 180px;
    transition: transform 0.3s ease;
}
.download-app-section img:hover {
    transform: scale(1.05);
}
.floating-img {
    animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ==============================
   ✅ قسم برنامج سطح المكتب
============================== */
.program-windows-section {
    background: linear-gradient(135deg, #3f51b5, #5a91d6);
    border-radius: 12px;
    padding: 60px 20px;
    color: white;
}
.program-windows-section .btn-light {
    background: #fff;
    color: #1c3faa;
    font-weight: bold;
    border-radius: 6px;
}
.program-windows-section .btn-light:hover {
    background: #f1f1f1;
}

/* ==============================
   ✅ قسم المميزات
============================== */
.our-advantages-section {
    background: linear-gradient(to bottom, #f0f8ff, #ffffff);
    border-top: 1px solid #e2e8f0;
}
.advantages-list .icon {
    width: 60px;
    height: 60px;
    background-color: #e9f3fc;
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.advantages-list .icon img {
    width: 30px;
    height: 30px;
}
.advantages-list h6 {
    font-weight: bold;
    margin-bottom: 5px;
}

/* ==============================
   ✅ قسم آراء العملاء
============================== */
.testimonials-section {
    background: linear-gradient(135deg, #1c3faa, #1ca9e6);
    color: #fff;
}
.testimonial-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
}
.client-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.testimonial-text {
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==============================
   ✅ قسم FAQ
============================== */
.faq-section .accordion-button {
    background-color: #ffffff;
    color: #1c3faa;
    font-weight: bold;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}
.faq-section .accordion-button:not(.collapsed) {
    background-color: #e9f3ff;
    color: #0d47a1;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}
.faq-section .accordion-button::after {
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
}
.faq-section .accordion-button:not(.collapsed)::after {
    transform: rotate(0deg);
}
.faq-section .accordion-body {
    background: #fff;
    border-top: 1px solid #eaeaea;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 1rem 1.25rem;
}
/* Privacy page */
.privacy-section {
    background-color: #f9fbff;
}
.privacy-section .section-title {
    font-weight: 800;
    font-size: 2.3rem;
    color: #1c3faa;
}
.privacy-content h4 {
    color: #1c3faa;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.privacy-content p {
    color: #333;
    line-height: 1.8;
}
.privacy-content .custom-list {
    padding-inline-start: 1.2rem;
    margin-top: 0.5rem;
}
.privacy-content .custom-list li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-inline-start: 1.5rem;
    list-style: none;
}
\.privacy-content \.custom-list li::before {
    content: '??';
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    color: #1c3faa;
}
@media (max-width: 768px) {
    .privacy-section .section-title {
        font-size: 1.7rem;
    }
}

/* Terms page (reuse privacy palette) */
.terms-hero {
    /* background: var(--bb-hero-gradient); */
}
.terms-section {
    background-color: #f9fbff;
}
.terms-toc .nav-link {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.06);
    border-radius: 0.5rem;
}
.terms-toc .nav-link:hover,
.terms-toc .nav-link.active {
    background: #0d6efd;
    color: #fff;
}

/* Report page */
.report-hero {
    background: var(--bb-hero-gradient);
}
.report-section {
    background-color: #f9fbff;
}
.report-tips .icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Link checker */
.link-hero {
    background: var(--bb-hero-gradient);
}
.link-section {
    background-color: #f9fbff;
}
.link-results .text-truncate {
    direction: ltr;
}

/* API page */
.api-hero {
    background: var(--bb-hero-gradient);
}
.api-section {
    background-color: #f9fbff;
}
.api-section .icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.api-section .icon-circle.sm {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
}
/* ===== Spirit theme – navbar polish and desktop-only toggler ===== */
:root {
    --brand-gradient-start: #0ea5e9; /* sky-500 */
    --brand-gradient-mid: #2563eb; /* indigo-600 */
    --brand-gradient-end: #1d4ed8; /* indigo-700 */
    --brand-primary: #1d4ed8;
}

/* Main navbar: modern gradient and subtle effects */
.main-navbar {
    background: linear-gradient(
        90deg,
        var(--brand-gradient-start) 0%,
        var(--brand-gradient-mid) 50%,
        var(--brand-gradient-end) 100%
    );
}
.main-navbar.scrolled {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.navbar-brand img {
    height: 44px !important;
}

/* Links */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

/* Toggler: show on mobile only (extra safety in case markup changes) */
@media (min-width: 992px) {
    .navbar .navbar-toggler {
        display: none !important;
    }
}
.main-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}
.main-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* CTAs (login/register) */
.btn.btn-outline-light.btn-sm {
    border-color: #e6f0ff;
    color: #e6f0ff;
}
.btn.btn-outline-light.btn-sm:hover {
    background: #e6f0ff;
    color: var(--brand-primary);
}
.btn.btn-light.text-primary.btn-sm {
    background: #fff;
    border-color: #fff;
    color: var(--brand-primary) !important;
}

/* Topbar */
.header-topbar {
    background: rgba(15, 23, 42, 0.9);
}
.header-topbar a {
    color: #e6f0ff;
}
.top-stats i {
    opacity: 0.9;
}

/* Footer quick polish */
.footer-modern {
    background: linear-gradient(135deg, #1c3faa, #1ca9e6);
}
.footer-modern a {
    color: #cbd5e1;
}
.footer-modern a:hover {
    color: #fff;
}

/* Search icon sizing */
.navbar .fa-magnifying-glass {
    font-size: 1rem;
}

/*faq.html css*/
.faq-section {
    background-color: #f8faff;
}

.section-title {
    font-size: 2.2rem;
    color: #1c3faa;
}

.accordion-button {
    font-weight: 700;
    font-size: 1.05rem;
    background-color: #fff;
    color: #1c3faa;
    transition: all 0.2s ease-in-out;
}

.accordion-button:not(.collapsed) {
    background-color: #e9f3ff;
    box-shadow: none;
}

.accordion-button i {
    min-width: 20px;
}

.accordion-body {
    background-color: #fdfdfd;
    color: #444;
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    line-height: 1.8;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.faq-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.7rem;
    }
}
/* =========================================================
   STAGE PRO — Inline uploader premium redesign
   ضع هذا في آخر stylino.css
========================================================= */

.hero-uploader-integrated {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at top center,
            rgba(255, 255, 255, 0.1),
            transparent 34%
        ),
        linear-gradient(135deg, #1f4fc9 0%, #1ca9e6 100%) !important;
    padding-top: 56px !important;
    padding-bottom: 88px !important;
}

.hero-uploader-integrated::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at left top,
            rgba(255, 255, 255, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at right bottom,
            rgba(255, 255, 255, 0.08),
            transparent 24%
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-title {
    margin: 0 0 14px;
    color: #fff !important;
    font-size: clamp(2.4rem, 4vw, 4.1rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    max-width: 760px;
    margin: 0 auto 18px;
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-feature-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    min-height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* card shell */
.hero-uploader-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow:
        0 30px 70px rgba(10, 24, 58, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(6px);
}

.hero-uploader-topline {
    display: none !important;
}

/* root */
.home-uploader-inline {
    min-height: 280px !important;
    direction: rtl !important;
}

.hero-uploader-loading,
.hero-uploader-error {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    color: #64748b;
    text-align: center;
    font-size: 15px;
}

.home-uploader-inline > div > .close {
    display: none !important;
}

/* top tabs */
.home-uploader-inline .nav-tabs.bordered {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin: 0 auto 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    width: auto !important;
    float: none !important;
}

.home-uploader-inline .nav-tabs.bordered > li {
    float: none !important;
    margin: 0 !important;
}

.home-uploader-inline .nav-tabs.bordered > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 165px !important;
    padding: 14px 18px !important;
    border-radius: 16px 16px 0 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.22s ease !important;
}

.home-uploader-inline .nav-tabs.bordered > li > a:hover,
.home-uploader-inline .nav-tabs.bordered > li > a:focus {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}

.home-uploader-inline .nav-tabs.bordered > li.active > a,
.home-uploader-inline .nav-tabs.bordered > li.active > a:hover,
.home-uploader-inline .nav-tabs.bordered > li.active > a:focus {
    background: #ffffff !important;
    color: #1f4fc9 !important;
    border-color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(18, 56, 122, 0.12) !important;
}

/* white panel */
.home-uploader-inline .tab-content {
    background: #ffffff !important;
    border-radius: 22px !important;
    padding: 0 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08) !important;
}

.home-uploader-inline #fileUpload .fileUploadMain,
.home-uploader-inline #urlUpload .urlUploadMain,
.home-uploader-inline .tab-pane {
    background: #ffffff !important;
    border-radius: 22px !important;
    padding: 26px !important;
    border: 1px solid rgba(28, 63, 170, 0.06) !important;
    box-shadow: none !important;
}

.home-uploader-inline #fileUpload #uploaderContainer,
.home-uploader-inline #fileUpload #uploader {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* hide noisy controls initially */
.home-uploader-inline .fileupload-buttonbar .cancel {
    display: none !important;
}

.home-uploader-inline #additionalOptionsWrapper {
    display: none !important;
}

/* keep add files row clean when no files */
.home-uploader-inline #addFileRow {
    margin-top: 12px;
}

/* buttons bar */
.home-uploader-inline .fileupload-buttonbar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.home-uploader-inline .fileupload-buttonbar.hiddenAlt {
    display: flex !important;
}

.home-uploader-inline .fileupload-buttonbar .fileinput-button,
.home-uploader-inline .fileupload-buttonbar .start,
.home-uploader-inline .btn,
.home-uploader-inline button {
    border-radius: 14px !important;
    padding: 14px 24px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease !important;
}

.home-uploader-inline .fileupload-buttonbar .fileinput-button {
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 14px 28px rgba(91, 92, 233, 0.24) !important;
}

.home-uploader-inline .fileupload-buttonbar .start,
.home-uploader-inline .btn.btn-green,
.home-uploader-inline .btn.btn-info,
.home-uploader-inline .btn.btn-primary {
    background: linear-gradient(135deg, #1f4fc9 0%, #1ca9e6 100%) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 14px 28px rgba(31, 79, 201, 0.18) !important;
}

.home-uploader-inline .btn.btn-default,
.home-uploader-inline .btn.btn-secondary {
    background: #eef5ff !important;
    color: #1e3a5f !important;
    border: 1px solid #d6e5ff !important;
}

.home-uploader-inline .fileupload-buttonbar .fileinput-button:hover,
.home-uploader-inline .fileupload-buttonbar .start:hover,
.home-uploader-inline .btn:hover,
.home-uploader-inline button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

/* dropzone */
.home-uploader-inline #fileUpload #initialUploadSectionLabel {
    display: block !important;
    margin: 0 !important;
}

.home-uploader-inline #fileUpload #initialUploadSection {
    position: relative !important;
    min-height: 360px !important;
    padding: 42px 28px !important;
    border: 2px dashed #a9b8ff !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, #f7f9ff 0%, #eff3ff 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease !important;
    overflow: hidden !important;
}

.home-uploader-inline #fileUpload #initialUploadSection::before {
    content: '' !important;
    position: absolute !important;
    inset: 14px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.24) !important;
    pointer-events: none !important;
}

.home-uploader-inline #fileUpload #initialUploadSection:hover {
    background: linear-gradient(180deg, #f3f7ff 0%, #e8efff 100%) !important;
    border-color: #7f9bff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 40px rgba(91, 92, 233, 0.1) !important;
}

.home-uploader-inline #fileUpload .initialUploadText {
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
}

.home-uploader-inline #fileUpload .uploadElement {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.home-uploader-inline #fileUpload .uploadElement .internal {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.home-uploader-inline #fileUpload .uploadElement .clear {
    display: none !important;
}

.home-uploader-inline #fileUpload .upload-icon-image {
    width: 88px !important;
    height: 88px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 18px !important;
    padding: 20px !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%) !important;
    box-shadow: 0 18px 38px rgba(91, 92, 233, 0.26) !important;
}

.home-uploader-inline #fileUpload .uploadElement .internal::before {
    content: 'اسحب ملفاتك هنا أو اخترها من جهازك' !important;
    display: block !important;
    margin-bottom: 10px !important;
    color: #111827 !important;
    font-size: 2.25rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
}

.home-uploader-inline #fileUpload .uploadElement .internal::after {
    content: 'رفع سريع وآمن مع روابط مشاركة مباشرة بعد اكتمال الرفع' !important;
    display: block !important;
    max-width: 520px !important;
    color: #64748b !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    font-weight: 500 !important;
}

/* file chooser area inside top bar becomes less intrusive */
.home-uploader-inline
    .fileupload-buttonbar
    .fileinput-button
    input[type='file'] {
    cursor: pointer !important;
}

/* footer text */
.home-uploader-inline #fileUpload .uploadFooter {
    margin-top: 18px !important;
    position: relative !important;
    z-index: 2 !important;
}

.home-uploader-inline #fileUpload .baseText {
    text-align: center !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
}

.home-uploader-inline #fileUpload .baseText a {
    color: #0f766e !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* queue / progress */
.home-uploader-inline #fileListingWrapper,
.home-uploader-inline #completedSection,
.home-uploader-inline #processingQueueSection,
.home-uploader-inline #processQueueSection,
.home-uploader-inline .fileSectionFooterText {
    margin-top: 20px !important;
}

.home-uploader-inline .upload-button {
    text-align: center !important;
}

.home-uploader-inline .progress {
    height: 12px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    background: #e7efff !important;
    box-shadow: none !important;
}

.home-uploader-inline .progress .progress-bar,
.home-uploader-inline .progress-bar-info {
    background: linear-gradient(90deg, #1f4fc9 0%, #18b0f0 100%) !important;
    box-shadow: none !important;
}

/* uploaded thumbs */
.home-uploader-inline #files {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
}

.home-uploader-inline .template-upload,
.home-uploader-inline .template-upload-img {
    border-radius: 16px !important;
    background: #f8fbff !important;
    border: 1px solid #e2ecff !important;
    box-shadow: none !important;
}

/* url tab */
.home-uploader-inline #urlUpload .initialUploadText > div:first-child {
    text-align: center !important;
    color: #475569 !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    margin-bottom: 16px !important;
}

.home-uploader-inline #urlUpload textarea.urlList {
    min-height: 180px !important;
    resize: vertical !important;
    border: 1px solid #dbe7ff !important;
    border-radius: 18px !important;
    background: #f8fbff !important;
    box-shadow: none !important;
    padding: 16px !important;
}

/* inputs */
.home-uploader-inline input[type='text'],
.home-uploader-inline input[type='url'],
.home-uploader-inline input[type='email'],
.home-uploader-inline input[type='password'],
.home-uploader-inline textarea,
.home-uploader-inline select {
    border: 1px solid #dbe5f1 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 12px 14px !important;
}

.home-uploader-inline input:focus,
.home-uploader-inline textarea:focus,
.home-uploader-inline select:focus {
    border-color: #8fb4ee !important;
    box-shadow: 0 0 0 4px rgba(31, 79, 201, 0.08) !important;
    outline: none !important;
}

/* mobile */
@media (max-width: 767.98px) {
    .hero-uploader-integrated {
        padding-top: 42px !important;
        padding-bottom: 58px !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-uploader-shell {
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .home-uploader-inline .nav-tabs.bordered {
        justify-content: center !important;
        gap: 8px !important;
    }

    .home-uploader-inline .nav-tabs.bordered > li > a {
        min-width: auto !important;
        padding: 12px 14px !important;
        font-size: 13px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .home-uploader-inline #fileUpload .fileUploadMain,
    .home-uploader-inline #urlUpload .urlUploadMain,
    .home-uploader-inline .tab-pane {
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .home-uploader-inline #fileUpload #initialUploadSection {
        min-height: 240px !important;
        padding: 24px 16px !important;
        border-radius: 18px !important;
    }

    .home-uploader-inline #fileUpload .upload-icon-image {
        width: 74px !important;
        height: 74px !important;
        padding: 16px !important;
        border-radius: 20px !important;
    }

    .home-uploader-inline #fileUpload .uploadElement .internal::before {
        font-size: 1.45rem !important;
    }

    .home-uploader-inline #fileUpload .uploadElement .internal::after {
        font-size: 14px !important;
    }

    .home-uploader-inline .fileupload-buttonbar .fileinput-button,
    .home-uploader-inline .fileupload-buttonbar .start,
    .home-uploader-inline .btn,
    .home-uploader-inline button {
        width: 100% !important;
    }
}
/* =========================================================
   STAGE PRO v2
   button inside dropzone feel
========================================================= */

/* أخفِ الأزرار الثانوية في البداية */
.home-uploader-inline .fileupload-buttonbar .start,
.home-uploader-inline .fileupload-buttonbar .cancel {
    display: none !important;
}

/* نخلي شريط الأزرار يبدو جزءًا من الـ dropzone */
.home-uploader-inline .fileupload-buttonbar {
    position: absolute !important;
    left: 50% !important;
    bottom: 54px !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 5 !important;
    width: auto !important;
    pointer-events: none !important;
}

/* فقط زر اختيار الملفات يبقى قابلًا للنقر */
.home-uploader-inline .fileupload-buttonbar .fileinput-button {
    pointer-events: auto !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 190px !important;
    padding: 15px 28px !important;
    border-radius: 14px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: 0 16px 34px rgba(91, 92, 233, 0.28) !important;
}

/* نخفي النص الأصلي داخل الزر ونستبدله */
.home-uploader-inline .fileupload-buttonbar .fileinput-button > span {
    font-size: 0 !important;
    line-height: 0 !important;
}

.home-uploader-inline .fileupload-buttonbar .fileinput-button > span::before {
    content: 'اختر الملفات';
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
}

/* منطقة الرفع تصبح أكبر وأوضح */
.home-uploader-inline #fileUpload #initialUploadSection {
    min-height: 370px !important;
    padding: 42px 28px 110px !important;
    border: 2px dashed #9db2ff !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%) !important;
    position: relative !important;
}

/* تحسين النص الرئيسي */
.home-uploader-inline #fileUpload .uploadElement .internal::before {
    content: 'اسحب ملفاتك هنا أو اخترها من جهازك' !important;
    display: block !important;
    margin-bottom: 10px !important;
    color: #111827 !important;
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
}

/* تحسين النص الثانوي */
.home-uploader-inline #fileUpload .uploadElement .internal::after {
    content: 'رفع سريع وآمن مع روابط مشاركة مباشرة بعد اكتمال الرفع' !important;
    display: block !important;
    max-width: 520px !important;
    color: #64748b !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    font-weight: 500 !important;
}

/* الأيقونة أعلى */
.home-uploader-inline #fileUpload .upload-icon-image {
    width: 86px !important;
    height: 86px !important;
    padding: 18px !important;
    margin: 0 auto 18px !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%) !important;
    box-shadow: 0 18px 38px rgba(91, 92, 233, 0.26) !important;
}

/* نقل footer الصغير لليسار/الأسفل بشكل خفيف */
.home-uploader-inline #fileUpload .uploadFooter {
    position: absolute !important;
    left: 22px !important;
    bottom: 20px !important;
    margin: 0 !important;
    z-index: 4 !important;
    text-align: left !important;
}

.home-uploader-inline #fileUpload .baseText {
    text-align: left !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

/* نخفي input file الخام بصريًا ونبقيه وظيفيًا */
.home-uploader-inline
    .fileupload-buttonbar
    .fileinput-button
    input[type='file'] {
    position: absolute !important;
    inset: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

/* على الموبايل */
@media (max-width: 767.98px) {
    .home-uploader-inline #fileUpload #initialUploadSection {
        min-height: 270px !important;
        padding: 24px 16px 88px !important;
    }

    .home-uploader-inline .fileupload-buttonbar {
        bottom: 30px !important;
        width: calc(100% - 32px) !important;
    }

    .home-uploader-inline .fileupload-buttonbar .fileinput-button {
        width: 100% !important;
        min-width: auto !important;
    }

    .home-uploader-inline #fileUpload .uploadElement .internal::before {
        font-size: 1.45rem !important;
    }

    .home-uploader-inline #fileUpload .uploadElement .internal::after {
        font-size: 14px !important;
    }

    .home-uploader-inline #fileUpload .uploadFooter {
        left: 16px !important;
        right: 16px !important;
        bottom: 10px !important;
    }

    .home-uploader-inline #fileUpload .baseText {
        text-align: center !important;
    }
}
/* =========================================================
   Upload rows redesign
========================================================= */

.home-uploader-inline #fileListingWrapper {
    margin-top: 24px !important;
}

.home-uploader-inline #files {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
}

.home-uploader-inline .template-upload-row {
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.home-uploader-inline .upload-row-card,
.home-uploader-inline .upload-row-error {
    border: 1px solid #dbe7ff;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    box-shadow: 0 8px 24px rgba(31, 79, 201, 0.06);
    overflow: hidden;
}

.home-uploader-inline .upload-row-main {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    position: relative;
}

.home-uploader-inline .upload-row-thumb {
    width: 64px;
    min-width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #eef4ff;
    border: 1px solid #dbe7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-uploader-inline .upload-row-thumb-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
    font-size: 22px;
    font-weight: 900;
}

.home-uploader-inline .upload-row-thumb .preview {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-uploader-inline .upload-row-thumb .preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.home-uploader-inline .upload-row-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.home-uploader-inline .upload-row-name {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-uploader-inline .upload-row-size,
.home-uploader-inline .upload-row-status {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 4px;
}

.home-uploader-inline .upload-row-remove {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe7ff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.home-uploader-inline .upload-row-remove a {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.home-uploader-inline .upload-row-remove img {
    width: 10px;
    height: 10px;
    opacity: 0.75;
}

.home-uploader-inline .template-upload-row .fade,
.home-uploader-inline .template-upload-row .filename,
.home-uploader-inline .template-upload-row .previewOverlay:not(.hidden) {
    display: none !important;
}

/* add more tile */
.home-uploader-inline #addFileRow {
    display: flex !important;
    justify-content: center !important;
    margin-top: 8px !important;
}

.home-uploader-inline #addFileRow .template-upload,
.home-uploader-inline #addFileRow .template-upload-img {
    width: 60px !important;
    min-width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #eef4ff 0%, #f7faff 100%) !important;
    border: 1px dashed #b7c9ff !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.home-uploader-inline #addFileRow i.glyphicon.glyphicon-plus {
    color: #0f766e !important;
    font-size: 18px !important;
}

/* actions under files */
.home-uploader-inline .upload-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.home-uploader-inline .upload-actions-left,
.home-uploader-inline .upload-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-uploader-inline .upload-options-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 13px 18px;
    border-radius: 14px;
    background: #eef5ff;
    border: 1px solid #d8e6ff;
    color: #1e3a5f !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}

.home-uploader-inline .upload-main-btn {
    min-width: 190px !important;
    padding: 14px 24px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(91, 92, 233, 0.24) !important;
    border: 0 !important;
}

.home-uploader-inline .upload-actions-note {
    margin-top: 12px !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    text-align: right !important;
}

.home-uploader-inline #processQueueSection,
.home-uploader-inline #processingQueueSection,
.home-uploader-inline #completedSection {
    margin-top: 24px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e8eef9 !important;
}

/* progress during upload */
.home-uploader-inline .globalProgressWrapper {
    margin-bottom: 18px !important;
}

.home-uploader-inline .progress {
    height: 12px !important;
    border-radius: 999px !important;
    background: #e8efff !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

.home-uploader-inline .progress .progress-bar,
.home-uploader-inline .progress-bar-info {
    background: linear-gradient(90deg, #1f4fc9 0%, #1ca9e6 100%) !important;
}

/* mobile */
@media (max-width: 767.98px) {
    .home-uploader-inline .upload-row-main {
        align-items: flex-start;
        padding: 12px;
    }

    .home-uploader-inline .upload-row-thumb {
        width: 56px;
        min-width: 56px;
        height: 56px;
    }

    .home-uploader-inline .upload-row-name {
        font-size: 14px;
    }

    .home-uploader-inline .upload-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .home-uploader-inline .upload-actions-left,
    .home-uploader-inline .upload-actions-right {
        width: 100%;
    }

    .home-uploader-inline .upload-options-btn,
    .home-uploader-inline .upload-main-btn {
        width: 100%;
        justify-content: center;
    }

    .home-uploader-inline .upload-actions-note {
        text-align: center !important;
    }
}

/* =========================================================
   Safe homepage uploader refinements
   Visual-only overrides; keep existing uploader markup and logic intact.
========================================================= */

.home-uploader-inline #additionalOptionsWrapper.uploader-options-open {
    display: block !important;
    margin-top: 18px !important;
    padding: 18px !important;
    border: 1px solid #dbe7ff !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
}

.home-uploader-inline #additionalOptionsWrapper.uploader-options-open .row {
    margin-left: -8px !important;
    margin-right: -8px !important;
}

.home-uploader-inline
    #additionalOptionsWrapper.uploader-options-open
    [class*='col-'] {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.home-uploader-inline #additionalOptionsWrapper .panel.minimal {
    height: 100% !important;
    margin-bottom: 16px !important;
    border: 1px solid #e5edf9 !important;
    border-radius: 14px !important;
    background: #f8fbff !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.home-uploader-inline #additionalOptionsWrapper .panel-heading {
    padding: 12px 14px !important;
    border-bottom: 1px solid #e5edf9 !important;
    background: #ffffff !important;
}

.home-uploader-inline #additionalOptionsWrapper .panel-title {
    color: #1f4fc9 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
}

.home-uploader-inline #additionalOptionsWrapper .panel-body {
    padding: 14px !important;
}

.home-uploader-inline #additionalOptionsWrapper p {
    margin-bottom: 12px !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

.home-uploader-inline #additionalOptionsWrapper .footer-buttons {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    padding-top: 4px !important;
}

.home-uploader-inline.has-upload-list #initialUploadSectionLabel,
.home-uploader-inline.has-upload-list #initialUploadSection {
    display: none !important;
}

.home-uploader-inline.has-upload-list .fileupload-content {
    padding-top: 0 !important;
}

.home-uploader-inline.has-upload-list #fileListingWrapper {
    margin-top: 0 !important;
}

.home-uploader-inline:not(.has-upload-list) #processQueueSection {
    display: none !important;
}

.home-uploader-inline.has-upload-list #processQueueSection:not(.hidden) {
    display: block !important;
}

.home-uploader-inline #files {
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.home-uploader-inline .upload-row-card,
.home-uploader-inline .upload-row-error {
    border-color: #d9e6fb !important;
    border-radius: 14px !important;
    background: #fbfdff !important;
    box-shadow: 0 8px 22px rgba(31, 79, 201, 0.05) !important;
}

.home-uploader-inline .upload-row-main {
    grid-template-columns: 34px minmax(0, 1fr) 52px !important;
    min-height: 68px !important;
    padding: 10px 12px !important;
    column-gap: 12px !important;
}

.home-uploader-inline .upload-row-thumb {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
}

.home-uploader-inline .upload-row-meta {
    text-align: start !important;
}

.home-uploader-inline .upload-row-name {
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.home-uploader-inline .upload-row-size,
.home-uploader-inline .upload-row-status {
    margin-top: 2px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.home-uploader-inline .upload-row-remove {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    border-color: #e5edf9 !important;
    box-shadow: none !important;
}

.home-uploader-inline .upload-row-remove a::before {
    font-size: 13px !important;
}

.home-uploader-inline #addFileRow {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

.home-uploader-inline #addFileRow .template-upload,
.home-uploader-inline #addFileRow .template-upload-img {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    border-radius: 14px !important;
}

.home-uploader-inline .upload-actions-bar {
    align-items: center !important;
    gap: 10px !important;
}

.home-uploader-inline .upload-add-more-btn,
.home-uploader-inline .upload-options-btn,
.home-uploader-inline .upload-main-btn {
    min-height: 42px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.home-uploader-inline .upload-add-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 11px 16px !important;
    border: 1px solid #d8e6ff !important;
    background: #ffffff !important;
    color: #1f4fc9 !important;
    text-decoration: none !important;
}

.home-uploader-inline .upload-options-btn:hover,
.home-uploader-inline .upload-add-more-btn:hover {
    border-color: #b7c9ff !important;
    background: #f6f9ff !important;
}

.home-uploader-inline .upload-main-btn {
    min-width: 170px !important;
    box-shadow: 0 10px 24px rgba(91, 92, 233, 0.2) !important;
}

.home-uploader-inline #processQueueSection,
.home-uploader-inline #processingQueueSection,
.home-uploader-inline #completedSection {
    margin-top: 16px !important;
    padding-top: 14px !important;
}

.home-uploader-inline #fileUpload #initialUploadSection {
    min-height: 320px !important;
    padding: 36px 24px 100px !important;
}

@media (max-width: 767.98px) {
    .home-uploader-inline .upload-row-main {
        grid-template-columns: 32px minmax(0, 1fr) 48px !important;
        min-height: 64px !important;
        padding: 10px !important;
        column-gap: 10px !important;
    }

    .home-uploader-inline .upload-row-thumb {
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
    }

    .home-uploader-inline #fileUpload #initialUploadSection {
        min-height: 250px !important;
        padding: 24px 16px 88px !important;
    }

    .home-uploader-inline #additionalOptionsWrapper.uploader-options-open {
        padding: 14px !important;
    }

    .home-uploader-inline #additionalOptionsWrapper .footer-buttons {
        justify-content: stretch !important;
    }

    .home-uploader-inline #additionalOptionsWrapper .footer-buttons .btn {
        width: 100% !important;
    }
}
/* =========================================================
   FINAL PATCH
   fix empty white area + better remove button + cleaner rows
========================================================= */

/* 1) عند ظهور الملفات، أخفِ dropzone العلوية بالكامل */
.home-uploader-inline
    .fileupload-content:has(#fileListingWrapper:not(.hidden))
    #initialUploadSectionLabel {
    display: none !important;
}

/* 2) أزل أي فراغ زائد في الأعلى عند ظهور الملفات */
.home-uploader-inline
    .fileupload-content:has(#fileListingWrapper:not(.hidden)) {
    padding-top: 0 !important;
}

.home-uploader-inline
    .fileupload-content:has(#fileListingWrapper:not(.hidden))
    #fileListingWrapper {
    margin-top: 0 !important;
}

/* 3) اجعل قائمة الملفات تبدأ مباشرة */
.home-uploader-inline .fileSection {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 4) تحسين البطاقات */
.home-uploader-inline .upload-row-card,
.home-uploader-inline .upload-row-error {
    border: 1px solid #dbe7ff !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%) !important;
    box-shadow: 0 8px 24px rgba(31, 79, 201, 0.06) !important;
    overflow: hidden !important;
}

/* 5) محاذاة أفضل للسطر */
.home-uploader-inline .upload-row-main {
    display: grid !important;
    grid-template-columns: 44px 1fr 64px !important;
    align-items: center !important;
    column-gap: 14px !important;
    padding: 14px 16px !important;
    min-height: 88px !important;
}

/* 6) thumbnail على اليمين بشكل أنظف */
.home-uploader-inline .upload-row-thumb {
    width: 64px !important;
    min-width: 64px !important;
    height: 64px !important;
    border-radius: 16px !important;
    background: #eef4ff !important;
    border: 1px solid #dbe7ff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    grid-column: 3 !important;
}

.home-uploader-inline .upload-row-thumb .preview {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.home-uploader-inline .upload-row-thumb .preview img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
}

/* 7) النص في الوسط */
.home-uploader-inline .upload-row-meta {
    grid-column: 2 !important;
    min-width: 0 !important;
    text-align: center !important;
}

.home-uploader-inline .upload-row-name {
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.home-uploader-inline .upload-row-size,
.home-uploader-inline .upload-row-status {
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    margin-top: 4px !important;
}

/* 8) زر الحذف على اليسار بشكل احترافي */
.home-uploader-inline .upload-row-remove {
    grid-column: 1 !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid #dbe7ff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08) !important;
    position: static !important;
}

/* 9) أخفِ صورة الحذف القديمة */
.home-uploader-inline .upload-row-remove img {
    display: none !important;
}

/* 10) ارسم أيقونة حذف حديثة بدل الصورة */
.home-uploader-inline .upload-row-remove a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    position: relative !important;
}

.home-uploader-inline .upload-row-remove a::before {
    content: '✕';
    color: #ef4444;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

/* 11) hover لزر الحذف */
.home-uploader-inline .upload-row-remove:hover {
    background: #fff5f5 !important;
    border-color: #fecaca !important;
    transform: translateY(-1px);
}

/* 12) أخفِ العناصر القديمة التي تسبب فوضى */
.home-uploader-inline .template-upload-row .filename,
.home-uploader-inline .template-upload-row .fade,
.home-uploader-inline .template-upload-row .previewOverlay:not(.hidden) {
    display: none !important;
}

/* 13) تحسين زر إضافة المزيد */
.home-uploader-inline #addFileRow {
    display: flex !important;
    justify-content: center !important;
    margin-top: 12px !important;
    margin-bottom: 6px !important;
}

.home-uploader-inline #addFileRow .template-upload,
.home-uploader-inline #addFileRow .template-upload-img {
    width: 64px !important;
    min-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #eef4ff 0%, #f7faff 100%) !important;
    border: 1px dashed #b7c9ff !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.home-uploader-inline #addFileRow i.glyphicon.glyphicon-plus {
    color: #0f766e !important;
    font-size: 18px !important;
}

/* 14) تحسين صف الأزرار السفلي */
.home-uploader-inline .upload-actions-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.home-uploader-inline .upload-options-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 120px !important;
    padding: 13px 18px !important;
    border-radius: 14px !important;
    background: #eef5ff !important;
    border: 1px solid #d8e6ff !important;
    color: #1e3a5f !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.home-uploader-inline .upload-main-btn {
    min-width: 190px !important;
    padding: 14px 24px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(91, 92, 233, 0.24) !important;
    border: 0 !important;
}

.home-uploader-inline .upload-actions-note {
    margin-top: 12px !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    text-align: right !important;
}

/* 15) موبايل */
@media (max-width: 767.98px) {
    .home-uploader-inline .upload-row-main {
        grid-template-columns: 38px 1fr 54px !important;
        column-gap: 10px !important;
        padding: 12px !important;
        min-height: 74px !important;
    }

    .home-uploader-inline .upload-row-thumb {
        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;
    }

    .home-uploader-inline .upload-row-name {
        font-size: 14px !important;
    }

    .home-uploader-inline .upload-row-remove {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
    }

    .home-uploader-inline .upload-actions-bar {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .home-uploader-inline .upload-options-btn,
    .home-uploader-inline .upload-main-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .home-uploader-inline .upload-actions-note {
        text-align: center !important;
    }
}

/* Final safe guard: keep these last so older uploader blocks cannot override them. */
.home-uploader-inline #additionalOptionsWrapper.uploader-options-open {
    display: block !important;
}

.home-uploader-inline.has-upload-list #initialUploadSectionLabel,
.home-uploader-inline.has-upload-list #initialUploadSection {
    display: none !important;
}

.home-uploader-inline:not(.has-upload-list) #processQueueSection {
    display: none !important;
}

.home-uploader-inline.has-upload-list #processQueueSection:not(.hidden) {
    display: block !important;
}

.home-uploader-inline .upload-row-main {
    grid-template-columns: 34px minmax(0, 1fr) 52px !important;
    min-height: 68px !important;
    padding: 10px 12px !important;
    column-gap: 12px !important;
}

.home-uploader-inline .upload-row-thumb {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
}

.home-uploader-inline .upload-row-meta {
    text-align: start !important;
}

.home-uploader-inline .upload-row-remove {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
}

@media (max-width: 767.98px) {
    .home-uploader-inline .upload-row-main {
        grid-template-columns: 32px minmax(0, 1fr) 48px !important;
        min-height: 64px !important;
        padding: 10px !important;
    }

    .home-uploader-inline .upload-row-thumb {
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
    }
}

/* Inline upload results: additive, keeps the old modal/buttons as fallback. */
.home-uploader-inline .fileupload-buttonbar,
.home-uploader-inline .fileupload-buttonbar.hiddenAlt {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: -9999px !important;
    display: block !important;
    width: 1px !important;
    min-width: 0 !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    transform: none !important;
    z-index: -1 !important;
}

.home-uploader-inline .fileupload-buttonbar .fileinput-button,
.home-uploader-inline .fileupload-buttonbar .start,
.home-uploader-inline .fileupload-buttonbar .cancel {
    position: static !important;
    display: block !important;
    width: 1px !important;
    min-width: 0 !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.home-uploader-inline.has-upload-list #addFileRow {
    display: none !important;
}

.home-uploader-inline #processQueueSection {
    margin-top: 14px !important;
    padding: 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #f8fbff !important;
}

.home-uploader-inline.is-uploading #processingQueueSection {
    margin-top: 14px !important;
    padding: 18px !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 16px !important;
    background: #f8fbff !important;
}

.home-uploader-inline.is-uploading #processingQueueSection .upload-button {
    margin-top: 14px !important;
}

.home-uploader-inline #completedSection.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.home-uploader-inline #completedSection > .col-md-12 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.home-uploader-inline #completedSection .baseText {
    margin-bottom: 12px !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
}

.home-uploader-inline .inline-upload-results.hidden {
    display: none !important;
}

.home-uploader-inline .inline-upload-results {
    display: block !important;
    margin: 14px 0 0 !important;
    padding: 18px !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
}

.home-uploader-inline .inline-upload-result-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
    text-align: start !important;
}

.home-uploader-inline .inline-upload-result-icon {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #0f766e, #22c55e) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.22) !important;
}

.home-uploader-inline .inline-upload-result-copy h4 {
    margin: 0 0 4px !important;
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
}

.home-uploader-inline .inline-upload-result-copy p {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
}

.home-uploader-inline .inline-link-tabs {
    display: flex !important;
    gap: 8px !important;
    padding: 6px !important;
    margin-bottom: 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #eef5ff !important;
    overflow-x: auto !important;
}

.home-uploader-inline .inline-link-tab {
    flex: 1 1 0 !important;
    min-width: 120px !important;
    min-height: 40px !important;
    padding: 9px 14px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.home-uploader-inline .inline-link-tab.active {
    background: #fff !important;
    color: #0f766e !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}

.home-uploader-inline .inline-link-panels {
    border: 1px solid #dbe7f3 !important;
    border-radius: 14px !important;
    background: #0f172a !important;
    overflow: hidden !important;
}

.home-uploader-inline .inline-link-section {
    display: none !important;
    min-height: 126px !important;
    max-height: 260px !important;
    padding: 14px 16px !important;
    color: #e2e8f0 !important;
    font-family: Consolas, Monaco, 'Courier New', monospace !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    direction: ltr !important;
    text-align: left !important;
    overflow: auto !important;
    white-space: normal !important;
    word-break: break-all !important;
    cursor: text !important;
}

.home-uploader-inline .inline-link-section.active {
    display: block !important;
}

.home-uploader-inline .inline-link-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 14px !important;
}

.home-uploader-inline .inline-copy-btn {
    min-height: 42px !important;
    padding: 10px 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #0f766e, #22c55e) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.2) !important;
}

.home-uploader-inline .inline-modal-fallback-btn {
    min-height: 42px !important;
    padding: 10px 16px !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.home-uploader-inline.has-inline-results
    #completedSection
    .upload-complete-btns {
    display: none !important;
}

.home-uploader-inline.has-inline-results
    #completedSection
    > .col-md-12:first-child {
    display: none !important;
}

.home-uploader-inline.has-inline-results #fileListingWrapper > .fileSection {
    display: none !important;
}

.home-uploader-inline .files {
    width: 100% !important;
    gap: 10px !important;
}

.home-uploader-inline .upload-row-card {
    margin-bottom: 0 !important;
}

.home-uploader-inline .upload-row-name,
.home-uploader-inline .upload-row-size {
    text-align: start !important;
}

@media (max-width: 767.98px) {
    .home-uploader-inline .inline-upload-results {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .home-uploader-inline .inline-upload-result-header {
        align-items: flex-start !important;
    }

    .home-uploader-inline .inline-link-tabs {
        flex-wrap: wrap !important;
    }

    .home-uploader-inline .inline-link-tab {
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }

    .home-uploader-inline .inline-link-actions,
    .home-uploader-inline .inline-copy-btn,
    .home-uploader-inline .inline-modal-fallback-btn {
        width: 100% !important;
    }
}
/* =========================================
   FIX GUEST HERO UPLOADER
   Add this at the very end of stylino.css
========================================= */

.home-uploader-inline-guest .fileUploadMain {
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.home-uploader-inline-guest .guest-dropzone-wrapper {
    width: 100% !important;
}

.home-uploader-inline-guest .guest-dropzone-link {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
}

.home-uploader-inline-guest .tab-content {
    background: #ffffff !important;
    border-radius: 22px !important;
    padding: 20px !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08) !important;
}

.home-uploader-inline-guest .tab-pane {
    background: #ffffff !important;
    border-radius: 22px !important;
    padding: 0 !important;
    border: 1px solid rgba(28, 63, 170, 0.06) !important;
    box-shadow: none !important;
}

.home-uploader-inline-guest .guest-dropzone {
    position: relative !important;
    min-height: 360px !important;
    padding: 42px 28px !important;
    border: 2px dashed #9db2ff !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease !important;
    overflow: hidden !important;
}

.home-uploader-inline-guest .guest-dropzone::before {
    content: '' !important;
    position: absolute !important;
    inset: 14px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.24) !important;
    pointer-events: none !important;
}

.home-uploader-inline-guest .guest-dropzone:hover {
    background: linear-gradient(180deg, #f3f7ff 0%, #e8efff 100%) !important;
    border-color: #7f9bff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 40px rgba(91, 92, 233, 0.1) !important;
}

.home-uploader-inline-guest .guest-dropzone-icon-wrap {
    position: relative !important;
    z-index: 2 !important;
    margin-bottom: 18px !important;
}

.home-uploader-inline-guest .guest-dropzone-icon {
    width: 86px !important;
    height: 86px !important;
    object-fit: contain !important;
    display: block !important;
    padding: 18px !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%) !important;
    box-shadow: 0 18px 38px rgba(91, 92, 233, 0.26) !important;
}

.home-uploader-inline-guest .guest-dropzone-title {
    position: relative !important;
    z-index: 2 !important;
    margin: 0 0 10px !important;
    color: #111827 !important;
    font-size: 2rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
}

.home-uploader-inline-guest .guest-dropzone-text {
    position: relative !important;
    z-index: 2 !important;
    max-width: 520px !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    font-weight: 500 !important;
}

.home-uploader-inline-guest .guest-dropzone-button {
    position: relative !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 190px !important;
    padding: 15px 28px !important;
    margin-top: 22px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: 0 16px 34px rgba(91, 92, 233, 0.28) !important;
    transition:
        transform 0.22s ease,
        filter 0.22s ease !important;
}

.home-uploader-inline-guest .guest-dropzone-button:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.05) !important;
}

.home-uploader-inline-guest .guest-dropzone-meta {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 18px !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
}

.home-uploader-inline-guest .guest-dropzone-sep {
    margin: 0 6px !important;
}

.home-uploader-inline-guest .nav-tabs.bordered {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin: 0 auto 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    width: auto !important;
    float: none !important;
}

.home-uploader-inline-guest .nav-tabs.bordered > div {
    margin: 0 !important;
}

.home-uploader-inline-guest .nav-tabs.bordered > div > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 165px !important;
    padding: 14px 18px !important;
    border-radius: 16px 16px 0 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.22s ease !important;
}

.home-uploader-inline-guest .nav-tabs.bordered > div > a:hover,
.home-uploader-inline-guest .nav-tabs.bordered > div > a:focus {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}

.home-uploader-inline-guest .nav-tabs.bordered > div.active > a {
    background: #ffffff !important;
    color: #1f4fc9 !important;
    border-color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(18, 56, 122, 0.12) !important;
}

@media (max-width: 767.98px) {
    .home-uploader-inline-guest .tab-content {
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .home-uploader-inline-guest .tab-pane {
        border-radius: 18px !important;
    }

    .home-uploader-inline-guest .guest-dropzone {
        min-height: 240px !important;
        padding: 24px 16px !important;
        border-radius: 18px !important;
    }

    .home-uploader-inline-guest .guest-dropzone-icon {
        width: 74px !important;
        height: 74px !important;
        padding: 16px !important;
        border-radius: 20px !important;
    }

    .home-uploader-inline-guest .guest-dropzone-title {
        font-size: 1.45rem !important;
    }

    .home-uploader-inline-guest .guest-dropzone-text {
        font-size: 14px !important;
    }

    .home-uploader-inline-guest .guest-dropzone-button {
        width: 100% !important;
        min-width: auto !important;
    }

    .home-uploader-inline-guest .nav-tabs.bordered {
        gap: 8px !important;
    }

    .home-uploader-inline-guest .nav-tabs.bordered > div > a {
        min-width: auto !important;
        padding: 12px 14px !important;
        font-size: 13px !important;
        border-radius: 12px 12px 0 0 !important;
    }
}

/* Modern uploader modal and icon-only queue */
.file-upload-wrapper .modal-dialog {
    width: calc(100% - 32px) !important;
    max-width: 980px !important;
    margin: 34px auto !important;
}

.file-upload-wrapper .modal-content {
    border: 0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.24) !important;
    overflow: hidden !important;
}

.file-upload-wrapper .modal-content > div:not(.preLoadImages) {
    position: relative !important;
    background: #ffffff !important;
}

.file-upload-wrapper .close {
    position: absolute !important;
    top: 16px !important;
    right: 18px !important;
    z-index: 5 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
    font-size: 26px !important;
    line-height: 30px !important;
}

.file-upload-wrapper .nav-tabs.bordered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 22px 72px 0 24px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%) !important;
}

.file-upload-wrapper .nav-tabs.bordered > li {
    margin: 0 !important;
}

.file-upload-wrapper .nav-tabs.bordered > li > a {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    padding: 12px 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
}

.file-upload-wrapper .nav-tabs.bordered > li.active > a,
.file-upload-wrapper .nav-tabs.bordered > li.active > a:hover,
.file-upload-wrapper .nav-tabs.bordered > li.active > a:focus {
    background: #ffffff !important;
    color: #0f766e !important;
    border-color: #ffffff !important;
}

.file-upload-wrapper .tab-content {
    padding: 24px !important;
    background: #ffffff !important;
}

.file-upload-wrapper .tab-pane,
.file-upload-wrapper .fileUploadMain,
.file-upload-wrapper .urlUploadMain,
.home-uploader-inline .tab-pane,
.home-uploader-inline .fileUploadMain,
.home-uploader-inline .urlUploadMain {
    background: #ffffff !important;
    border-radius: 8px !important;
}

.file-upload-wrapper #initialUploadSectionLabel,
.home-uploader-inline #initialUploadSectionLabel {
    display: block !important;
    margin: 0 !important;
}

.file-upload-wrapper #fileUpload #initialUploadSection,
.home-uploader-inline #fileUpload #initialUploadSection {
    min-height: 315px !important;
    padding: 34px 24px !important;
    border: 2px dashed #6bbfb2 !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.07) 0%, rgba(37, 99, 235, 0.05) 100%),
        #fbfdff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease !important;
}

.file-upload-wrapper #fileUpload #initialUploadSection:hover,
.home-uploader-inline #fileUpload #initialUploadSection:hover {
    border-color: #2563eb !important;
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.1) 0%, rgba(37, 99, 235, 0.07) 100%),
        #ffffff !important;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08) !important;
    transform: translateY(-1px) !important;
}

.file-upload-wrapper #fileUpload .uploadElement .internal,
.home-uploader-inline #fileUpload .uploadElement .internal {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    color: #111827 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
    text-align: center !important;
}

.file-upload-wrapper #fileUpload .upload-icon-image,
.home-uploader-inline #fileUpload .upload-icon-image {
    width: 84px !important;
    height: 84px !important;
    padding: 14px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid #dbe7ff !important;
    object-fit: contain !important;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1) !important;
}

.file-upload-wrapper #fileUpload .uploadFooter,
.home-uploader-inline #fileUpload .uploadFooter {
    margin-top: 22px !important;
    color: #4b5563 !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    text-align: center !important;
}

.file-upload-wrapper #fileUpload .uploadFooter a,
.home-uploader-inline #fileUpload .uploadFooter a,
.file-upload-wrapper .showAdditionalOptionsLink,
.home-uploader-inline .showAdditionalOptionsLink {
    color: #0f766e !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.file-upload-wrapper #fileListingWrapper,
.home-uploader-inline #fileListingWrapper {
    margin-top: 18px !important;
}

.file-upload-wrapper #files,
.home-uploader-inline #files {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
}

.file-upload-wrapper .template-upload-row,
.home-uploader-inline .template-upload-row {
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.file-upload-wrapper .upload-row-card,
.file-upload-wrapper .upload-row-error,
.home-uploader-inline .upload-row-card,
.home-uploader-inline .upload-row-error {
    border: 1px solid #dbe7ff !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06) !important;
    overflow: hidden !important;
}

.file-upload-wrapper .upload-row-main,
.home-uploader-inline .upload-row-main {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 78px !important;
    padding: 12px 14px !important;
}

.file-upload-wrapper .upload-row-thumb,
.home-uploader-inline .upload-row-thumb {
    flex: 0 0 58px !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
    border-radius: 8px !important;
    border: 1px solid #cfe4f1 !important;
    background: linear-gradient(180deg, #f8fafc 0%, #eef7f4 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: auto !important;
    overflow: hidden !important;
}

.file-upload-wrapper .upload-row-icon-preview,
.home-uploader-inline .upload-row-icon-preview,
.file-upload-wrapper .thumbIcon,
.home-uploader-inline .thumbIcon,
.file-upload-wrapper .thumbIcon a,
.home-uploader-inline .thumbIcon a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.file-upload-wrapper .upload-row-thumb canvas,
.home-uploader-inline .upload-row-thumb canvas,
.file-upload-wrapper .upload-row-icon-preview .fade,
.home-uploader-inline .upload-row-icon-preview .fade {
    display: none !important;
    visibility: hidden !important;
}

.file-upload-wrapper .upload-row-icon-img,
.home-uploader-inline .upload-row-icon-img,
.file-upload-wrapper .upload-row-thumb .preview img.upload-row-icon-img,
.home-uploader-inline .upload-row-thumb .preview img.upload-row-icon-img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    object-fit: contain !important;
}

.file-upload-wrapper .upload-row-thumb-error,
.home-uploader-inline .upload-row-thumb-error {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

.file-upload-wrapper .upload-row-meta,
.home-uploader-inline .upload-row-meta {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: start !important;
}

.file-upload-wrapper .upload-row-name,
.home-uploader-inline .upload-row-name {
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.file-upload-wrapper .upload-row-size,
.home-uploader-inline .upload-row-size {
    margin-top: 4px !important;
    color: #6b7280 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.file-upload-wrapper .upload-row-remove,
.home-uploader-inline .upload-row-remove {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: auto !important;
}

.file-upload-wrapper .upload-row-remove a,
.home-uploader-inline .upload-row-remove a {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    border: 1px solid #fee2e2 !important;
    background: #fff7f7 !important;
    color: #dc2626 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.file-upload-wrapper .upload-row-remove a::before,
.home-uploader-inline .upload-row-remove a::before {
    content: 'x' !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.file-upload-wrapper .template-upload-row .fade,
.home-uploader-inline .template-upload-row .fade,
.file-upload-wrapper .template-upload-row .filename,
.home-uploader-inline .template-upload-row .filename {
    display: none !important;
}

.file-upload-wrapper .previewOverlay:not(.hidden),
.home-uploader-inline .previewOverlay:not(.hidden) {
    display: block !important;
    padding: 0 14px 12px !important;
}

.file-upload-wrapper #addFileRow,
.home-uploader-inline #addFileRow {
    margin-top: 10px !important;
}

.file-upload-wrapper #addFileRow .template-upload-img,
.home-uploader-inline #addFileRow .template-upload-img {
    width: 100% !important;
    min-height: 54px !important;
    border: 1px dashed #6bbfb2 !important;
    border-radius: 8px !important;
    background: #f7fbfb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.file-upload-wrapper #addFileRow a,
.home-uploader-inline #addFileRow a {
    width: 100% !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0f766e !important;
    text-decoration: none !important;
}

.file-upload-wrapper .fileSectionFooterText,
.home-uploader-inline .fileSectionFooterText {
    margin-top: 16px !important;
    padding: 0 !important;
}

.file-upload-wrapper .upload-actions-bar,
.home-uploader-inline .upload-actions-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
}

.file-upload-wrapper .upload-actions-left,
.file-upload-wrapper .upload-actions-center,
.file-upload-wrapper .upload-actions-right,
.home-uploader-inline .upload-actions-left,
.home-uploader-inline .upload-actions-center,
.home-uploader-inline .upload-actions-right {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.file-upload-wrapper .btn,
.file-upload-wrapper button,
.file-upload-wrapper .upload-add-more-btn,
.file-upload-wrapper .upload-options-btn,
.home-uploader-inline .upload-add-more-btn,
.home-uploader-inline .upload-options-btn,
.home-uploader-inline .upload-main-btn {
    border-radius: 8px !important;
    letter-spacing: 0 !important;
}

.file-upload-wrapper .upload-main-btn,
.home-uploader-inline .upload-main-btn,
.file-upload-wrapper .btn.btn-green,
.home-uploader-inline .btn.btn-green {
    border: 0 !important;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.22) !important;
}

.file-upload-wrapper .upload-add-more-btn,
.home-uploader-inline .upload-add-more-btn,
.file-upload-wrapper .upload-options-btn,
.home-uploader-inline .upload-options-btn {
    min-height: 42px !important;
    padding: 10px 16px !important;
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
    color: #111827 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.file-upload-wrapper .upload-actions-note,
.home-uploader-inline .upload-actions-note {
    margin-top: 10px !important;
    color: #6b7280 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    text-align: center !important;
}

.file-upload-wrapper .globalProgressWrapper,
.home-uploader-inline .globalProgressWrapper {
    padding: 16px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
}

.file-upload-wrapper .progress,
.home-uploader-inline .progress {
    height: 10px !important;
    border-radius: 8px !important;
    background: #e5e7eb !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.file-upload-wrapper .progress .progress-bar,
.file-upload-wrapper .progress-bar-info,
.home-uploader-inline .progress .progress-bar,
.home-uploader-inline .progress-bar-info {
    background: linear-gradient(90deg, #0f766e 0%, #2563eb 100%) !important;
}

.file-upload-wrapper #urlUpload .initialUploadText,
.home-uploader-inline #urlUpload .initialUploadText {
    padding: 22px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
    color: #374151 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}

.file-upload-wrapper textarea.urlList,
.home-uploader-inline textarea.urlList {
    min-height: 170px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
    resize: vertical !important;
}

.file-upload-wrapper textarea.urlList:focus,
.home-uploader-inline textarea.urlList:focus,
.file-upload-wrapper input:focus,
.home-uploader-inline input:focus,
.file-upload-wrapper select:focus,
.home-uploader-inline select:focus {
    border-color: #0f766e !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12) !important;
    outline: 0 !important;
}

.file-upload-wrapper .urlUploadFooter,
.home-uploader-inline .urlUploadFooter {
    margin-top: 14px !important;
    padding: 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #ffffff !important;
}

.file-upload-wrapper #additionalOptionsWrapper,
.home-uploader-inline #additionalOptionsWrapper.uploader-options-open {
    margin: 0 24px 24px !important;
    padding: 20px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08) !important;
}

.file-upload-wrapper #additionalOptionsWrapper .panel.minimal,
.home-uploader-inline #additionalOptionsWrapper .panel.minimal {
    height: 100% !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #f9fafb !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.file-upload-wrapper #additionalOptionsWrapper .panel-heading,
.home-uploader-inline #additionalOptionsWrapper .panel-heading {
    padding: 14px 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #ffffff !important;
}

.file-upload-wrapper #additionalOptionsWrapper .panel-title,
.home-uploader-inline #additionalOptionsWrapper .panel-title {
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

.file-upload-wrapper #additionalOptionsWrapper .panel-body,
.home-uploader-inline #additionalOptionsWrapper .panel-body {
    padding: 16px !important;
    color: #4b5563 !important;
}

.file-upload-wrapper #additionalOptionsWrapper .form-control,
.home-uploader-inline #additionalOptionsWrapper .form-control {
    min-height: 42px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.file-upload-wrapper #additionalOptionsWrapper .footer-buttons,
.home-uploader-inline #additionalOptionsWrapper .footer-buttons,
.file-upload-wrapper .upload-complete-btns,
.home-uploader-inline .upload-complete-btns,
.file-upload-wrapper .inline-link-actions,
.home-uploader-inline .inline-link-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.file-upload-wrapper .inline-upload-results,
.home-uploader-inline .inline-upload-results {
    margin-top: 16px !important;
    padding: 18px !important;
    border: 1px solid #c7eadf !important;
    border-radius: 8px !important;
    background: #f5fffb !important;
}

.file-upload-wrapper .inline-link-tab,
.home-uploader-inline .inline-link-tab {
    border-radius: 8px !important;
    letter-spacing: 0 !important;
}

@media (max-width: 767.98px) {
    .file-upload-wrapper .modal-dialog {
        width: calc(100% - 18px) !important;
        margin: 9px auto !important;
    }

    .file-upload-wrapper .nav-tabs.bordered {
        padding: 58px 14px 0 !important;
    }

    .file-upload-wrapper .nav-tabs.bordered > li,
    .file-upload-wrapper .nav-tabs.bordered > li > a {
        width: 100% !important;
    }

    .file-upload-wrapper .tab-content {
        padding: 14px !important;
    }

    .file-upload-wrapper #fileUpload #initialUploadSection,
    .home-uploader-inline #fileUpload #initialUploadSection {
        min-height: 240px !important;
        padding: 24px 14px !important;
    }

    .file-upload-wrapper #fileUpload .uploadElement .internal,
    .home-uploader-inline #fileUpload .uploadElement .internal {
        font-size: 15px !important;
    }

    .file-upload-wrapper .upload-row-main,
    .home-uploader-inline .upload-row-main {
        gap: 10px !important;
        min-height: 70px !important;
        padding: 10px !important;
    }

    .file-upload-wrapper .upload-row-thumb,
    .home-uploader-inline .upload-row-thumb {
        flex-basis: 50px !important;
        width: 50px !important;
        min-width: 50px !important;
        height: 50px !important;
    }

    .file-upload-wrapper .upload-row-icon-img,
    .home-uploader-inline .upload-row-icon-img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    .file-upload-wrapper .upload-actions-bar,
    .home-uploader-inline .upload-actions-bar,
    .file-upload-wrapper .urlUploadFooter,
    .home-uploader-inline .urlUploadFooter {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .file-upload-wrapper .upload-add-more-btn,
    .file-upload-wrapper .upload-options-btn,
    .file-upload-wrapper .upload-main-btn,
    .home-uploader-inline .upload-add-more-btn,
    .home-uploader-inline .upload-options-btn,
    .home-uploader-inline .upload-main-btn {
        width: 100% !important;
    }

    .file-upload-wrapper #additionalOptionsWrapper,
    .home-uploader-inline #additionalOptionsWrapper.uploader-options-open {
        margin: 0 14px 14px !important;
        padding: 14px !important;
    }

    .file-upload-wrapper #additionalOptionsWrapper .footer-buttons,
    .home-uploader-inline #additionalOptionsWrapper .footer-buttons,
    .file-upload-wrapper .upload-complete-btns,
    .home-uploader-inline .upload-complete-btns,
    .file-upload-wrapper .inline-link-actions,
    .home-uploader-inline .inline-link-actions {
        flex-direction: column !important;
    }
}
