/* UI Enhancements v1 — subtle polish without layout changes */

:root {
    --raya-blue: #189AD8;
    --raya-blue-light: #38C5FA;
    --raya-blue-soft: #DBFCFF;
    --raya-orange: #D87C05;
    --raya-orange-soft: #fff8ee;
    --raya-text: #334155;
    --raya-text-muted: #64748b;
    --raya-heading: #1e3a5f;
    --raya-shadow: 0 4px 20px rgba(24, 154, 216, 0.12);
    --raya-shadow-hover: 0 8px 28px rgba(24, 154, 216, 0.22);
    --raya-radius: 20px;
    --raya-line-height: 1.75;
    --raya-line-height-tight: 1.45;
}

/* ── Global typography ── */
body {
    font-size: 0.9375rem;
    line-height: var(--raya-line-height);
    color: var(--raya-text);
    -webkit-font-smoothing: antialiased;
}

body p,
body li,
body td,
body .form-control,
body .form-select {
    line-height: var(--raya-line-height);
    color: var(--raya-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: IRANSansWeb_Bold, iransans, sans-serif !important;
    color: var(--raya-heading);
    line-height: var(--raya-line-height-tight);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
h2 { font-size: clamp(1.375rem, 3.2vw, 1.75rem); }
h3 { font-size: clamp(1.25rem, 2.8vw, 1.5rem); }
h4 { font-size: clamp(1.125rem, 2.4vw, 1.3125rem); }
h5 { font-size: clamp(1.0625rem, 2.2vw, 1.1875rem); }
h6 { font-size: clamp(1rem, 2vw, 1.0625rem); }

.blue {
    color: var(--raya-blue) !important;
}

.orange {
    color: var(--raya-orange) !important;
}

.b-border {
    font-family: IRANSansWeb_Bold, iransans, sans-serif !important;
    font-size: clamp(1rem, 2.5vw, 1.125rem) !important;
    font-weight: 700 !important;
    color: var(--raya-heading) !important;
    line-height: var(--raya-line-height-tight) !important;
    border-bottom: 2px solid var(--raya-orange) !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    max-width: none !important;
}

.form-lable,
.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--raya-text-muted);
    margin-bottom: 0.35rem;
}

small,
.text-muted,
.price-discount {
    color: var(--raya-text-muted) !important;
}

a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: var(--raya-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #1380b8;
}

.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.alert {
    font-size: 0.875rem;
    line-height: 1.65;
    border-radius: 12px;
}

/* ── Navbar ── */
.topbar.bg-blue {
    background: linear-gradient(90deg, #1380b8 0%, var(--raya-blue) 45%, var(--raya-blue-light) 100%) !important;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.topbar ul li {
    margin-left: 0 !important;
}

.topbar ul li a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.topbar ul li a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.topbar ul li a.btn-outline-warning {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 200, 100, 0.85) !important;
    color: #fff !important;
    font-weight: 600;
}

.topbar ul li a.btn-outline-warning:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffd080 !important;
}

.top-menu {
    box-shadow: 0 4px 20px rgba(24, 154, 216, 0.1);
    border-bottom: 1px solid rgba(24, 154, 216, 0.08);
    padding: 0.35rem 0;
    background: #fff !important;
}

.top-menu > .container {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.top-menu .navbar-brand img {
    max-height: 64px;
    width: auto;
    padding: 0.25rem !important;
    transition: opacity 0.2s ease;
}

.top-menu .navbar-brand:hover img {
    opacity: 0.9;
}

.top-menu .nav-item {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.top-menu .nav-link {
    color: #475569 !important;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.top-menu .nav-link:hover,
.top-menu .nav-link:focus {
    color: var(--raya-blue) !important;
    background: rgba(24, 154, 216, 0.06);
}

.top-menu .nav-link.dropdown-toggle::after {
    margin-right: 0.35rem;
    vertical-align: 0.2em;
    transition: transform 0.2s ease;
}

.top-menu .nav-item.dropdown.show .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}

.top-menu .dropdown-menu {
    border: 1px solid rgba(24, 154, 216, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(24, 154, 216, 0.15);
    padding: 0.5rem;
    margin-top: 0.35rem;
}

.top-menu .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    transition: background 0.2s ease, color 0.2s ease;
}

.top-menu .dropdown-item:hover {
    background: var(--raya-blue-soft);
    color: var(--raya-blue);
}

.top-menu .btn-outline-warning {
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--raya-orange) !important;
    color: var(--raya-orange) !important;
    background: #fff;
    transition: all 0.25s ease;
}

.top-menu .btn-outline-warning:hover {
    background: var(--raya-orange);
    color: #fff !important;
    border-color: var(--raya-orange) !important;
    box-shadow: 0 4px 14px rgba(216, 124, 5, 0.35);
    transform: translateY(-1px);
}

.top-menu .btn-group .btn-outline-warning {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar {
    font-size: 0.9rem;
}

.topbar ul li a {
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.topbar ul li a:hover {
    opacity: 1;
}

/* ── Home insurance cards ── */
.choose_bime {
    border-radius: var(--raya-radius);
    box-shadow: var(--raya-shadow);
    border: 1px solid rgba(24, 154, 216, 0.1);
    background: #fff;
}

.choose_bime:hover {
    box-shadow: var(--raya-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(24, 154, 216, 0.25);
}

/* Icon frame — clean like azki / bimeh.com */
.choose_bime .logo__container {
    background: #fff;
    border: 1.5px solid rgba(24, 154, 216, 0.14);
    box-shadow: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.choose_bime:hover .logo__container {
    background: #fafdff;
    border-color: rgba(24, 154, 216, 0.35);
    transform: none;
}

.choose_bime .logo__container img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: none;
}

.choose_bime:hover .logo__container img {
    width: 62px;
    height: 62px;
    transform: none;
}

/* ── Home hero tagline ── */
.home-hero-tagline {
    margin-bottom: 1.5rem;
    padding-inline-end: 1rem;
    border-inline-end: 3px solid var(--raya-blue-light);
}

.home-hero-tagline__eyebrow {
    font-family: IRANSansWeb_Bold, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--raya-blue);
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
    opacity: 0.9;
}

.home-bime-section .home-hero-tagline__title {
    font-family: IRANSansWeb_Bold, sans-serif !important;
    font-size: clamp(1.375rem, 2.2vw, 1.875rem) !important;
    line-height: 1.5;
    font-weight: 700;
    margin: 0 0 0.625rem !important;
    color: var(--raya-blue);
    letter-spacing: -0.02em;
}

.home-hero-tagline__subtitle {
    font-family: IRANSansWeb, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    color: var(--raya-orange);
    margin: 0;
    max-width: 22rem;
    opacity: 0.95;
}

@media (min-width: 768px) {
    .home-hero-tagline__subtitle {
        font-size: 1.0625rem;
    }
}

@media (max-width: 767px) {
    .home-hero-tagline {
        border-inline-end: none;
        padding-inline-end: 0;
        text-align: center;
    }

    .home-hero-tagline__subtitle {
        max-width: none;
        margin-inline: auto;
    }
}

/* ── Intro boxes ── */
.bime_box {
    border-radius: var(--raya-radius);
    box-shadow: var(--raya-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.bime_box:hover {
    box-shadow: var(--raya-shadow-hover);
}

.bime_box__logo--container {
    background: #fff;
    border: 1.5px solid rgba(24, 154, 216, 0.12);
    border-radius: 16px;
    height: auto;
    min-height: 100px;
    width: 100px;
    padding: 14px;
}

.bime_box__logo--container img {
    width: 56px !important;
    height: 56px !important;
    object-fit: contain;
}

/* ── Footer ── */
.site-footer {
    margin-top: 3rem;
    background: linear-gradient(180deg, #f8fcff 0%, #eef7fb 45%, #e8f4fa 100%);
    border-top: 1px solid rgba(24, 154, 216, 0.12);
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--raya-orange) 0%, var(--raya-blue-light) 50%, var(--raya-blue) 100%);
}

.site-footer .footer {
    background: transparent !important;
    padding: 2.5rem 1rem 0;
    text-align: start;
}

.footer-main {
    padding-bottom: 1.5rem;
}

.footer-brand__logo img {
    max-width: 170px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(24, 154, 216, 0.08));
    transition: opacity 0.25s ease;
}

.footer-brand__logo:hover img {
    opacity: 0.88;
}

.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #4a5568;
}

.footer-contact__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(24, 154, 216, 0.1);
}

.footer-contact__icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.9;
}

.footer-contact__item a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact__item a:hover {
    color: var(--raya-blue);
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(24, 154, 216, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    box-shadow: var(--raya-shadow-hover);
}

.footer-socials a img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-heading {
    font-family: IRANSansWeb_Bold, sans-serif;
    font-size: 1rem;
    color: var(--raya-blue) !important;
    margin-bottom: 1.25rem !important;
    text-align: start !important;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--raya-blue-light), transparent);
    border-radius: 2px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

.footer-nav a {
    display: inline-block;
    font-size: 0.875rem;
    color: #5c5c5c !important;
    text-decoration: none;
    padding: 0.15rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover {
    color: var(--raya-blue) !important;
    transform: translateX(-3px);
}

.footer-licenses__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.footer-license-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid rgba(24, 154, 216, 0.1);
    border-radius: var(--raya-radius);
    box-shadow: var(--raya-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.footer-license-card--btn {
    border: none;
    font: inherit;
}

.footer-license-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--raya-shadow-hover);
}

.footer-license-card img {
    width: 100%;
    max-width: 88px;
    height: auto;
    object-fit: contain;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(24, 154, 216, 0.1);
    text-align: center;
}

.footer-bottom__credit {
    margin: 0;
    font-size: 0.8125rem;
    color: #8896a6;
}

.footer-bottom__credit a {
    color: #8896a6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom__credit a:hover {
    color: var(--raya-blue);
}

@media (max-width: 767px) {
    .site-footer .footer {
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact__item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-licenses__grid {
        justify-content: center;
    }
}

/* ── Floated sidebar ── */
.floated_bar {
    border: 1px solid rgba(24, 154, 216, 0.12);
    box-shadow: var(--raya-shadow);
}

.floated_bar a.item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.floated_bar a.item:hover img {
    transform: scale(1.08);
}

.floated_bar a.item:hover {
    color: var(--raya-blue);
}

/* ── Buttons ── */
.btn-outline-warning {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-outline-warning:hover {
    box-shadow: 0 4px 14px rgba(216, 124, 5, 0.3);
    transform: translateY(-1px);
}

/* ── Company logos carousel (home) ── */
.pre_footer {
    padding: 2rem 0 2.5rem;
    background: linear-gradient(180deg, #f8fcff 0%, #ffffff 45%, #f0f9ff 100%);
}

.companies_logo .company_logo {
    width: 118px !important;
    height: 76px !important;
    margin: 0 auto;
    padding: 0.65rem 0.85rem !important;
    background: #fff !important;
    border: 1px solid rgba(24, 154, 216, 0.12) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(24, 154, 216, 0.08) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.companies_logo .company_logo:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 22px rgba(24, 154, 216, 0.14) !important;
    border-color: rgba(24, 154, 216, 0.28) !important;
    background: #fff !important;
}

.companies_logo .company_logo img {
    width: auto !important;
    max-width: 92px;
    max-height: 52px;
    height: auto !important;
    object-fit: contain;
    filter: grayscale(15%);
    opacity: 0.92;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.companies_logo .company_logo:hover img {
    width: auto !important;
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}

.companies_logo .company_logo p {
    display: none !important;
}

/* ── Slider ── */
.slider {
    box-shadow: var(--raya-shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Generic icon polish in steps/results ── */
.logo__container img,
.bime_box__logo--container img,
.icon__container img {
    filter: none;
}

.result img[src*="/assets/img/icons/"] {
    object-fit: contain;
}

/* ── Thirdparty results page ── */
#raya .bime-summary {
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(24, 154, 216, 0.1);
    border: 1px solid rgba(24, 154, 216, 0.1);
    padding: 0.875rem 1.25rem;
    align-items: center;
    gap: 0.75rem;
}

#raya .bime-summary > p {
    margin: 0;
    font-weight: 700;
    color: var(--raya-blue);
    white-space: nowrap;
}

#raya .bime-summary .bime__case {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

#raya .bime-summary .bime__case .btn-blue {
    border-radius: 20px;
    font-size: 0.8125rem;
    padding: 0.35rem 0.9rem;
    background: #e8f6fc;
    color: var(--raya-blue);
    border: 1px solid rgba(24, 154, 216, 0.2);
}

#raya .bime-summary > .btn-orange,
#raya .bime-summary > .btn-blue:last-child {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    white-space: nowrap;
}

#raya .top-filters {
    border-radius: 16px;
    border: 1px solid rgba(24, 154, 216, 0.12);
    box-shadow: 0 4px 20px rgba(24, 154, 216, 0.08);
    padding: 1.25rem 1.5rem 1.5rem !important;
    background: #fff;
}

#raya .top-filters form.row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    margin-bottom: 0 !important;
}

#raya .top-filters .form-lable,
#raya .top-filters .form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
}

#raya .top-filters .form-select,
#raya .top-filters .form-control {
    border-radius: 10px;
    border: 1px solid rgba(24, 154, 216, 0.22);
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    background-color: #fafcff;
    min-height: 42px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#raya .top-filters .form-select:focus,
#raya .top-filters .form-control:focus {
    border-color: var(--raya-blue);
    box-shadow: 0 0 0 3px rgba(24, 154, 216, 0.12);
    background-color: #fff;
}

#raya .top-filters .form-select:disabled,
#raya .top-filters .form-control:disabled {
    background-color: #f1f5f9;
    opacity: 0.75;
}

#raya .top-filters__submit,
#raya .top-filters .col-md-2.mt-1.mx-auto {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 0.75rem !important;
    text-align: center;
}

#raya .top-filters__submit .btn-primary,
#raya .top-filters .col-md-2.mt-1.mx-auto .btn-primary {
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.65rem 2.5rem;
    min-width: 220px;
    background: linear-gradient(135deg, #189AD8 0%, #1380b8 100%);
    box-shadow: 0 4px 16px rgba(24, 154, 216, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#raya .top-filters__submit .btn-primary:hover,
#raya .top-filters .col-md-2.mt-1.mx-auto .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(24, 154, 216, 0.4);
    background: linear-gradient(135deg, #1380b8 0%, #106fa3 100%);
}

#raya .bime-summary > .btn-blue:last-child {
    background: #fff;
    color: var(--raya-blue);
    border: 1px solid rgba(24, 154, 216, 0.35);
}

#raya .bime-summary > .btn-blue:last-child:hover {
    background: #f0f9ff;
}

#raya .results > .row {
    align-items: flex-start;
}

#raya .filters-right .covers {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--raya-shadow);
    border: 1px solid rgba(24, 154, 216, 0.1);
    padding: 1.25rem 1rem 1.5rem;
    margin-top: 0;
}

#raya .filters-right .covers .img-container {
    top: 0;
    width: 110px;
    height: 110px;
    border-radius: 14px;
    margin-bottom: 0.75rem !important;
}

#raya .covers__number label.btn-outline-primary {
    border: 1px solid rgba(24, 154, 216, 0.2);
    border-top: 1px solid rgba(24, 154, 216, 0.2) !important;
    border-radius: 10px;
    margin-bottom: 0.35rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

#raya .covers__number .btn-check:checked + label.btn-outline-primary {
    box-shadow: 0 2px 10px rgba(24, 154, 216, 0.25);
}

#raya .result {
    border: 1px solid rgba(24, 154, 216, 0.12);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    margin: 0 0 0.75rem;
    min-height: 110px;
    border-bottom: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#raya .result:hover {
    box-shadow: 0 6px 22px rgba(24, 154, 216, 0.14);
    transform: translateY(-2px);
}

#raya .result .company-logo img {
    border-radius: 8px;
    max-height: 56px;
    object-fit: contain;
}

#raya .result .discount {
    border-radius: 0 0 0 10px;
    font-size: 0.75rem;
}

#raya .result .branch-count {
    color: #64748b;
    font-size: 0.875rem;
}

#raya .result .price-section .price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--raya-blue);
}

#raya .result .order-btn .btn {
    border-radius: 10px;
    font-weight: 600;
    min-width: 96px;
}

#raya .result .order-btn .btn-blue {
    box-shadow: 0 2px 8px rgba(24, 154, 216, 0.25);
}

#raya .result__detail {
    border-color: rgba(24, 154, 216, 0.25);
    background: #f8fcff;
    margin-top: -0.5rem;
    margin-bottom: 0.75rem;
    border-radius: 0 0 14px 14px;
}

@media (min-width: 768px) {
    #raya .filters-right {
        position: sticky;
        top: 1rem;
    }
}

/* ── Checkout steps (breadcrumbs) ── */
.checkout-steps {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem 1rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(24, 154, 216, 0.1);
    box-shadow: 0 2px 14px rgba(24, 154, 216, 0.08);
}

.checkout-steps__list {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 1rem;
    position: relative;
}

.checkout-steps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    text-align: center;
    z-index: 1;
}

.checkout-steps__connector {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin-top: 1.125rem;
    min-width: 0.5rem;
    max-width: 3rem;
    border-radius: 2px;
}

.checkout-steps__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
    transition: all 0.25s ease;
}

.checkout-steps__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.checkout-steps__item--active .checkout-steps__circle {
    background: linear-gradient(135deg, var(--raya-blue-light) 0%, var(--raya-blue) 100%);
    color: #fff;
    border-color: var(--raya-blue);
    box-shadow: 0 4px 12px rgba(24, 154, 216, 0.35);
}

.checkout-steps__item--active .checkout-steps__label {
    color: var(--raya-blue);
}

.checkout-steps__item--done .checkout-steps__circle {
    background: var(--raya-blue);
    color: #fff;
    border-color: var(--raya-blue);
}

.checkout-steps__item--done .checkout-steps__label {
    color: #64748b;
}

.checkout-steps__item--done + .checkout-steps__connector {
    background: var(--raya-blue-light);
}

.checkout-steps__bar {
    height: 6px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.checkout-steps__bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--raya-blue) 0%, var(--raya-blue-light) 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Legacy breadcrumbs fallback */
.breadcrumbs .number {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    margin-left: 0.5rem;
}

/* ── Mobile header support icon ── */
.mobile__header a img[src*="call-support"] {
    width: 32px;
    height: 32px;
    object-fit: contain;
    padding: 4px;
    background: var(--raya-blue-soft);
    border-radius: 50%;
}

@media (max-width: 600px) {
    .choose_bime {
        height: 160px;
        width: 100%;
        max-width: 180px;
        margin-left: auto;
        margin-right: auto;
    }

    .choose_bime .logo__container {
        width: 76px;
        height: 76px;
    }

    .choose_bime .logo__container img {
        width: 44px;
        height: 44px;
    }
}

/* ── Marketer dashboard (modern UI) ── */
.content-i .raya-dashboard__header {
    margin: 0.25rem 0 1.25rem;
}

.content-i .raya-dashboard__header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.content-i .raya-dashboard__kicker {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--raya-blue);
    background: var(--raya-blue-soft);
    border: 1px solid #bae6fd;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.content-i .raya-dashboard__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--raya-heading);
}

.content-i .raya-dashboard__subtitle {
    margin-top: 0.35rem;
    color: var(--raya-text-muted);
    font-size: 0.875rem;
}

.content-i .raya-dashboard__meta {
    gap: 0.75rem;
}

.content-i .raya-dashboard__meta-item {
    text-align: left;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.content-i .raya-dashboard__meta-label {
    font-size: 0.75rem;
    color: var(--raya-text-muted);
    font-weight: 700;
}

.content-i .raya-dashboard__meta-value {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 800;
}

/* Override legacy tablos (inline CSS) */
.content-i {
    background: #f8fafc !important;
    padding-top: 0.75rem;
}

.content-i .element-header {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--raya-heading) !important;
    margin: 0.25rem 0 1rem !important;
}

.content-i .element-content .row {
    row-gap: 1rem;
}

.content-i .element-box {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    background: #fff !important;
    padding: 1.25rem !important;
    margin-bottom: 0.25rem !important;
}

.content-i .element-box::after {
    display: none !important;
}

.content-i a.el-tablo {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.content-i a.el-tablo:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

.content-i .el-tablo .label {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 0.5rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.content-i .el-tablo .trending {
    padding: 0 !important;
    display: block !important;
    font-size: 0.875rem !important;
    margin-left: 0 !important;
    line-height: 1.9 !important;
    color: #475569 !important;
}

.content-i .el-tablo .trending span {
    font-weight: 800 !important;
    color: var(--raya-heading) !important;
}

.content-i .el-tablo .trending .os-icon {
    display: none !important;
}

.content-i .el-tablo p {
    margin: 0.35rem 0 0 !important;
    color: #475569 !important;
    font-weight: 700 !important;
}

@media (max-width: 767px) {
    .content-i .raya-dashboard__header-inner {
        padding: 1rem;
    }
}

/* ── Profile pages (ipass/profile/ibimeh/tamdid/aghsat/my-wallet/withdraw/...) ── */
.profile .col-md-10.bg-white {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.profile .col-md-10.bg-white .card,
.profile .col-md-10.bg-white .element-box,
.profile .col-md-10.bg-white .table,
.profile .col-md-10.bg-white .alert {
    border-radius: 12px;
}

.profile .col-md-10.bg-white .form-control,
.profile .col-md-10.bg-white .form-select {
    border-radius: 10px;
    border-color: #e2e8f0;
}

.profile .col-md-10.bg-white .form-control:focus,
.profile .col-md-10.bg-white .form-select:focus {
    border-color: var(--raya-blue);
    box-shadow: 0 0 0 3px rgba(24, 154, 216, 0.12);
}

.profile .col-md-10.bg-white .btn-primary {
    background: var(--raya-blue);
    border-color: var(--raya-blue);
}

/* ── Sidebar submenu clarity ── */
.raya-sidebar__link[data-bs-toggle=\"collapse\"] {
    position: relative;
    padding-left: 2rem !important;
    background: #f8fafc !important;
    border: 1px solid #dbe4ee !important;
}

.raya-sidebar__link[data-bs-toggle=\"collapse\"] .raya-sidebar__caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.raya-sidebar__link[data-bs-toggle=\"collapse\"]::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    margin-left: 0.25rem;
    flex-shrink: 0;
}

.raya-sidebar__link:not([data-bs-toggle=\"collapse\"]) .raya-sidebar__caret {
    display: none;
}

.raya-sidebar__link:not(.collapsed)[data-bs-toggle=\"collapse\"] .raya-sidebar__caret {
    transform: rotate(-90deg);
    background: #e0f2fe;
    color: #0369a1;
}

.raya-sidebar__link:not(.collapsed)[data-bs-toggle=\"collapse\"] {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}

.raya-sidebar__sub {
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    padding-right: 0.5rem;
    border-right: 2px solid #dbeafe;
    background: #f8fafc;
    border-radius: 8px;
}

/* Third-party / wizard: car model search */
#raya .choose_steps .raya-model-search-row {
    gap: 0.75rem;
    align-items: stretch;
}

#raya .choose_steps input#search.form-control,
#raya .choose_steps .raya-model-search {
    max-width: 460px;
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1.5px solid #dbe4ee;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    padding: 0.55rem 0.9rem;
    font-size: 0.92rem;
    color: #334155;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#raya .choose_steps input#search.form-control::placeholder,
#raya .choose_steps .raya-model-search::placeholder {
    color: #94a3b8;
    font-size: 0.88rem;
}

#raya .choose_steps input#search.form-control:focus,
#raya .choose_steps .raya-model-search:focus {
    border-color: #189ad8;
    box-shadow: 0 0 0 3px rgba(24, 154, 216, 0.12);
    outline: none;
}

@media (max-width: 576px) {
    #raya .choose_steps input#search.form-control,
    #raya .choose_steps .raya-model-search {
        max-width: 100%;
    }
}

/* Steps wizard: issuance notice spacing */
#raya .raya-sodur-alert {
    clear: both;
    position: relative;
    z-index: 1;
}

/* Steps wizard: column heights */
@media (min-width: 768px) {
    #raya .choose_steps,
    #raya .choosed_info {
        margin-top: 40px;
        min-height: 560px;
        height: auto;
    }

    #raya .choose_steps .boxes {
        height: 350px;
        min-height: 350px;
        overflow-y: auto;
    }

    #raya .choosed_info .boxes {
        height: 255px;
        min-height: 255px;
        overflow-y: auto;
    }
}

/* Steps wizard: selected info sidebar */
#raya .choosed_info > .covers,
#raya .choosed_info .raya-selected-panel {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(24, 154, 216, 0.14);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
    padding: 1rem 0.9rem 1.15rem;
    margin-top: 20px;
    align-items: stretch;
    width: 100%;
}

#raya .choosed_info > .covers .img-container,
#raya .choosed_info .raya-selected-panel__icon {
    top: 0;
    width: 88px;
    height: 88px;
    border-radius: 14px;
    background: linear-gradient(145deg, #e8f9fe 0%, #bae6fd 100%);
    border: 1px solid rgba(24, 154, 216, 0.18);
    margin: 0 auto 0.65rem;
}

#raya .choosed_info > .covers .img-container img,
#raya .choosed_info .raya-selected-panel__icon img {
    width: 52px;
    height: auto;
    margin: 0 !important;
}

#raya .choosed_info .raya-selected-info__title,
#raya .choosed_info > .covers > h5.blue {
    font-size: 1rem;
    font-weight: 700;
    color: #0369a1;
    margin: 0 0 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e0f2fe;
    width: 100%;
}

#raya .choosed_info .raya-selected-panel__list,
#raya .choosed_info > .covers > .boxes {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
}

#raya .choosed_info ul.tow-col-flex,
#raya .choosed_info .raya-selected-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
    column-gap: 0.5rem;
    row-gap: 0;
    padding: 0.5rem 0.7rem;
    margin: 0;
    list-style: none;
    width: 100%;
}

#raya .choosed_info ul.tow-col-flex > li,
#raya .choosed_info .raya-selected-info > li {
    width: auto;
    margin: 0;
    padding: 0.45rem 0;
    line-height: 1.4;
}

#raya .choosed_info ul.tow-col-flex > li:nth-child(odd),
#raya .choosed_info .raya-selected-info > li:nth-child(odd) {
    grid-column: 1;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
    text-align: right;
}

#raya .choosed_info ul.tow-col-flex > li:nth-child(even),
#raya .choosed_info .raya-selected-info > li:nth-child(even) {
    grid-column: 2;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: left;
    word-break: break-word;
}

#raya .choosed_info ul.tow-col-flex > li:nth-child(even):not(:last-child),
#raya .choosed_info .raya-selected-info > li:nth-child(even):not(:last-child) {
    border-bottom: 1px solid #e8edf3;
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

#raya .choosed_info ul.tow-col-flex > li:nth-child(even):empty::before,
#raya .choosed_info .raya-selected-info > li:nth-child(even):empty::before {
    content: '—';
    color: #cbd5e1;
    font-weight: 400;
}

#raya .choosed_info .raya-selected-panel__actions,
#raya .choosed_info > .covers > .buttons {
    width: 100%;
    margin-top: 0.65rem;
}

#raya .choosed_info .raya-selected-info__back,
#raya .choosed_info > .covers .btn-transparent {
    width: 100%;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

#raya .choosed_info .raya-selected-info__back:hover,
#raya .choosed_info > .covers .btn-transparent:hover {
    border-color: #189ad8;
    color: #0369a1;
    background: #f0f9ff;
}

/* Results: order confirm modal (buy button) */
.raya-order-confirm-modal .modal-dialog {
    max-width: 520px;
}

.raya-order-confirm-modal__content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.raya-order-confirm-modal__header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.15rem;
}

.raya-order-confirm-modal__header .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0369a1;
}

.raya-order-confirm-modal__body {
    padding: 1rem 1.15rem 0.5rem;
    background: #fff;
}

.raya-order-confirm-section + .raya-order-confirm-section {
    margin-top: 1rem;
}

.raya-order-confirm-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.65rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 10px;
}

.raya-order-confirm-section__icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #189ad8;
    flex-shrink: 0;
}

.raya-order-confirm-section__icon--car {
    border-radius: 3px;
    width: 10px;
    height: 10px;
}

.raya-order-confirm-list {
    margin: 0;
    padding: 0;
}

.raya-order-confirm-list__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 48%);
    gap: 0.5rem 0.75rem;
    align-items: start;
    padding: 0.55rem 0;
    border-bottom: 1px solid #eef2f7;
}

.raya-order-confirm-list__row:last-child {
    border-bottom: none;
}

.raya-order-confirm-list__row dt {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    text-align: right;
}

.raya-order-confirm-list__row dd {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    word-break: break-word;
}

.raya-order-confirm-modal__footer {
    border-top: 1px solid #e2e8f0;
    padding: 0.85rem 1.15rem 1rem;
    gap: 0.5rem;
    justify-content: flex-end;
    background: #f8fafc;
}

.raya-order-confirm-modal__btn-cancel {
    border-radius: 10px;
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
}

.raya-order-confirm-modal__btn-cancel:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
}

.raya-order-confirm-modal__btn-submit {
    border-radius: 10px;
    padding: 0.5rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    background: #189ad8;
    color: #fff;
    box-shadow: 0 2px 8px rgba(24, 154, 216, 0.35);
}

.raya-order-confirm-modal__btn-submit:hover {
    background: #0284c7;
    color: #fff;
}

@media (max-width: 576px) {
    .raya-order-confirm-list__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .raya-order-confirm-list__row dd {
        text-align: right;
    }

    .raya-order-confirm-modal__footer {
        flex-direction: column-reverse;
    }

    .raya-order-confirm-modal__footer .btn {
        width: 100%;
    }
}

/* Global modal polish (site-wide popups) */
.modal-backdrop.show {
    opacity: 1 !important;
    background: rgba(15, 23, 42, 0.52) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal.fade .modal-dialog {
    transition: transform 0.28s cubic-bezier(0.34, 1.15, 0.64, 1), opacity 0.22s ease !important;
    transform: scale(0.96) translateY(-10px) !important;
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0) !important;
    opacity: 1;
}

.modal-dialog:not(.modal-xl):not(.modal-lg) {
    max-width: 520px;
}

.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden;
}

.modal-header {
    position: relative;
    border-bottom: 1px solid #e2e8f0 !important;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
    padding: 1.15rem 1.35rem !important;
    align-items: center !important;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--raya-blue), var(--raya-blue-light));
}

.modal-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--raya-heading) !important;
}

.modal-header .btn-close {
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: 0 !important;
    border-radius: 8px;
    background-color: #f1f5f9;
    opacity: 0.85;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
    background-color: #e2e8f0;
}

.modal-body {
    padding: 1.35rem !important;
}

.modal-body label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--raya-text-muted);
    margin-bottom: 0.4rem;
}

.modal-body .form-control,
.modal-body .form-select,
.modal-body textarea {
    border-radius: 10px !important;
    border-color: #e2e8f0 !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus,
.modal-body textarea:focus {
    border-color: var(--raya-blue) !important;
    box-shadow: 0 0 0 3px rgba(24, 154, 216, 0.15) !important;
}

.modal-footer {
    border-top: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    padding: 1rem 1.35rem !important;
    gap: 0.6rem;
}

.modal-footer .btn {
    border-radius: 10px !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 5rem;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.modal-footer .btn-primary {
    box-shadow: 0 2px 8px rgba(24, 154, 216, 0.28);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 154, 216, 0.36);
}

.modal-footer .btn-secondary {
    background: #fff !important;
    border-color: #cbd5e1 !important;
    color: var(--raya-text) !important;
}

.modal-footer .btn-secondary:hover {
    background: #f1f5f9 !important;
    color: var(--raya-heading) !important;
}

/* Badane results: base coverages sidebar */
.filters-right h5.coverage-title {
    margin: 0 0 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0f2fe;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0369a1;
}

.filters-right .raya-badane-covers-guide-btn {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: #fffbeb;
    color: #b45309;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.filters-right .raya-badane-covers-guide-btn:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.filters-right .raya-badane-covers-guide-btn i {
    margin-left: 0.35rem;
}

.raya-badane-base-covers {
    margin-top: 0.75rem;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid rgba(24, 154, 216, 0.12);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.raya-badane-base-covers__heading {
    margin: 0 0 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid #e0f2fe;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0369a1;
}

.raya-badane-base-covers__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.raya-coverage-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.raya-coverage-card:hover {
    background: #fff;
    border-color: #bae6fd;
    box-shadow: 0 3px 10px rgba(24, 154, 216, 0.1);
}

.raya-coverage-card__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.95rem;
}

.raya-coverage-card__icon--fire {
    background: #ffedd5;
    color: #ea580c;
}

.raya-coverage-card__icon--accident {
    background: #ede9fe;
    color: #7c3aed;
}

.raya-coverage-card__body {
    min-width: 0;
    flex: 1;
}

.raya-coverage-card__title {
    margin: 0 0 0.3rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.raya-coverage-card__text {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.65;
    text-align: right;
}

.raya-badane-base-covers__note {
    margin: 0.75rem 0 0;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    background: #f0f9ff;
    border: 1px solid #dbeafe;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #0369a1;
    text-align: center;
}

.raya-badane-base-covers__note i {
    margin-left: 0.3rem;
    opacity: 0.85;
}

/* Modal optional coverages (shared card style) */
#badaneCoversModal .coverage-card,
#badaneCoversModal .raya-coverage-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-right: none;
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#badaneCoversModal .coverage-card:hover {
    transform: none;
    box-shadow: 0 3px 10px rgba(24, 154, 216, 0.1);
    border-color: #bae6fd;
}

#badaneCoversModal .coverage-title {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

#badaneCoversModal .coverage-description {
    margin: 0;
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.65;
    text-align: right;
}

#badaneCoversModal .section-title {
    border-bottom: 2px solid #e0f2fe;
    padding-bottom: 0.55rem;
    color: #0369a1;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Policyholder / user-info wizard (all insurance lines) */
@media (min-width: 768px) {
    #raya .raya-user-info.choose_steps,
    #raya .content > .row > .raya-user-info + .choosed_info {
        height: auto;
        min-height: 0;
        margin-top: 1.25rem;
    }

    #raya .raya-user-info .row.boxes,
    #raya .raya-user-info .row.boxes-del {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    #raya .content > .row > .raya-user-info + .choosed_info .boxes {
        height: auto;
        min-height: 0;
        max-height: 420px;
        overflow-y: auto;
    }
}

#raya .raya-user-info.choose_steps {
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(24, 154, 216, 0.14);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
    padding: 1.15rem 1.25rem 1.35rem;
}

#raya .raya-user-info .raya-user-info-errors,
#raya .raya-user-info > form > .col-md-12 > .alert-danger {
    margin-bottom: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
    border-right: 4px solid #ef4444;
    color: #991b1b;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
}

#raya .raya-user-info .raya-user-info-errors ul,
#raya .raya-user-info > form > .col-md-12 > .alert-danger ul {
    margin: 0.5rem 0 0;
    padding-right: 1.1rem;
}

#raya .raya-user-info .raya-user-info-step,
#raya .raya-user-info form > div[id^="step"] {
    animation: raya-user-info-fade 0.25s ease;
}

@keyframes raya-user-info-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#raya .raya-user-info .raya-user-info-step__header,
#raya .raya-user-info .d-flex:has(.b-border) {
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #e0f2fe;
}

#raya .raya-user-info .raya-user-info-step__title,
#raya .raya-user-info h6.b-border {
    margin: 0;
    padding: 0;
    border: none !important;
    font-size: 1rem;
    font-weight: 700;
    color: #0369a1;
    line-height: 1.45;
    flex: 1;
}

#raya .raya-user-info .raya-user-info-step__reset,
#raya .raya-user-info .d-flex .btn-outline-warning {
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-color: #fbbf24;
    color: #b45309;
    background: #fffbeb;
    white-space: nowrap;
}

#raya .raya-user-info .raya-user-info-step__reset:hover,
#raya .raya-user-info .d-flex .btn-outline-warning:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

#raya .raya-user-info .raya-user-info-step__body,
#raya .raya-user-info .row.boxes,
#raya .raya-user-info .row.boxes-del {
    --raya-user-info-gap: 0.85rem;
    margin: 0;
    padding: 0.25rem 0 0;
    /*gap: var(--raya-user-info-gap);*/
}

#raya .raya-user-info .raya-user-info-step__body > [class*="col-"],
#raya .raya-user-info .row.boxes > [class*="col-"],
#raya .raya-user-info .row.boxes-del > [class*="col-"] {
    margin-bottom: 0.15rem;
}

#raya .raya-user-info .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

#raya .raya-user-info .form-label.text-primary {
    color: #0284c7 !important;
}

#raya .raya-user-info .form-label a[href] {
    display: inline-block;
    margin-right: 0.25rem;
    font-size: 0.72rem !important;
    font-weight: 500;
    color: #0284c7;
    text-decoration: none;
}

#raya .raya-user-info .form-label a[href]:hover {
    text-decoration: underline;
}

#raya .raya-user-info .form-control,
#raya .raya-user-info .form-select,
#raya .raya-user-info textarea.form-control {
    min-height: 42px;
    border-radius: 11px;
    border: 1.5px solid #dbe4ee;
    background: #fff;
    font-size: 0.9rem;
    color: #334155;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#raya .raya-user-info textarea.form-control {
    min-height: 72px;
    resize: vertical;
}

#raya .raya-user-info .form-control:focus,
#raya .raya-user-info .form-select:focus,
#raya .raya-user-info textarea.form-control:focus {
    border-color: #189ad8;
    box-shadow: 0 0 0 3px rgba(24, 154, 216, 0.12);
    outline: none;
}

#raya .raya-user-info .form-control:disabled {
    background: #f1f5f9;
    color: #64748b;
}

#raya .raya-user-info .vpd-input-group input,
#raya .raya-user-info .vpd-input-group .form-control {
    min-height: 42px;
    border-radius: 11px !important;
}

#raya .raya-user-info .row.boxes > p,
#raya .raya-user-info .row.boxes-del > p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    margin: 0 0 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 11px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 0.82rem;
    color: #92400e;
    line-height: 1.55;
}

#raya .raya-user-info .row.boxes > p img,
#raya .raya-user-info .row.boxes-del > p img {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

#raya .raya-user-info input[type="file"].form-control {
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
}

#raya .raya-user-info .form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.2em;
    border-radius: 4px;
}

#raya .raya-user-info .form-check-label {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #334155;
}

#raya .raya-user-info .raya-user-info-step__footer,
#raya .raya-user-info .buttons.btn-group,
#raya .raya-user-info .row.flex .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    max-width: 520px;
    margin: 1.25rem auto 0.5rem !important;
    padding-top: 0.85rem;
    border-top: 1px solid #e8edf3;
}

#raya .raya-user-info .buttons .btn,
#raya .raya-user-info .buttons.btn-group .btn,
#raya .raya-user-info .col-md-4.mx-auto .btn,
#raya .raya-user-info .col-md-6.mx-auto .btn {
    flex: 1 1 auto;
    min-width: 120px;
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#raya .raya-user-info .buttons .btn:hover,
#raya .raya-user-info .buttons.btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

#raya .raya-user-info .btn-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
}

#raya .raya-user-info .btn-blue {
    background: linear-gradient(135deg, #189ad8 0%, #0284c7 100%);
    color: #fff;
}

#raya .raya-user-info .btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

#raya .raya-user-info .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

#raya .raya-user-info .raya-user-info-step__body > .alert-danger {
    margin-top: 0.75rem;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    font-size: 0.84rem;
    line-height: 1.65;
}

#raya .raya-user-info .table {
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

#raya .raya-user-info .table td {
    vertical-align: middle;
    line-height: 1.55;
}

#raya .raya-user-info-help {
    margin-bottom: 0.75rem;
}

#raya .raya-user-info-help a {
    display: inline-block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#raya .raya-user-info-help a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 154, 216, 0.18);
}

@media (max-width: 767.98px) {
    #raya .raya-user-info.choose_steps {
        padding: 0.9rem 0.85rem 1rem;
        border-radius: 14px;
    }

    #raya .raya-user-info .raya-user-info-step__header,
    #raya .raya-user-info .d-flex:has(.b-border) {
        flex-wrap: wrap;
    }

    #raya .raya-user-info .buttons .btn,
    #raya .raya-user-info .buttons.btn-group .btn {
        min-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Mobile — site-wide responsive polish
   ═══════════════════════════════════════════════════════════════ */

html {
    -webkit-text-size-adjust: 100%;
}

body.raya-offcanvas-open {
    overflow: hidden;
    touch-action: none;
}

/* Sticky mobile top bar */
.raya-site-nav.top-menu {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.raya-mobile-bar {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0;
    min-height: 58px;
}

.raya-mobile-bar__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: linear-gradient(145deg, #e8f9fe 0%, #dbeafe 100%);
    box-shadow: 0 2px 8px rgba(24, 154, 216, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.raya-mobile-bar__menu-btn:hover,
.raya-mobile-bar__menu-btn:focus {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(24, 154, 216, 0.22);
    outline: none;
}

.raya-hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: #0369a1;
    border-radius: 2px;
    position: relative;
    transition: background 0.2s ease;
}

.raya-hamburger::before,
.raya-hamburger::after {
    content: '';
    position: absolute;
    right: 0;
    width: 20px;
    height: 2px;
    background: #0369a1;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.raya-hamburger::before {
    top: -6px;
}

.raya-hamburger::after {
    top: 6px;
}

.raya-mobile-bar__logo {
    flex: 1;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.raya-mobile-bar__logo img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.raya-mobile-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.raya-mobile-bar__login {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.3rem 0.55rem !important;
    border-radius: 8px !important;
    white-space: nowrap;
}

.raya-mobile-bar__user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fffbeb;
    color: #d97706;
    font-size: 1.35rem;
    text-decoration: none;
}

.raya-mobile-bar__support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--raya-blue-soft);
    transition: transform 0.15s ease;
}

.raya-mobile-bar__support:hover {
    transform: scale(1.05);
}

.raya-mobile-bar__support img {
    width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Offcanvas mobile menu */
.raya-mobile-nav.offcanvas {
    width: min(320px, 88vw);
    border: none;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
    background: #fff;
}

.raya-mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.75rem;
    background: linear-gradient(160deg, #e8f9fe 0%, #fff 55%);
    border-bottom: 1px solid #e0f2fe;
}

.raya-mobile-nav__brand img {
    display: block;
}

.raya-mobile-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: background 0.15s ease, color 0.15s ease;
}

.raya-mobile-nav__close:hover {
    background: #fef2f2;
    color: #ef4444;
}

.raya-mobile-nav__auth {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.raya-mobile-nav__user-card {
    margin-bottom: 0.65rem;
}

.raya-mobile-nav__user-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.raya-mobile-nav__user-greet {
    font-size: 0.78rem;
    color: #64748b;
}

.raya-mobile-nav__auth-actions {
    display: flex;
    gap: 0.5rem;
}

.raya-mobile-nav__auth-actions .btn-blue {
    background: linear-gradient(135deg, #189ad8 0%, #0284c7 100%);
    border: none;
    color: #fff;
    font-weight: 600;
}

.raya-mobile-nav__body {
    padding: 0.75rem 0 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.raya-mobile-nav__section-title {
    margin: 0.85rem 1rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.raya-mobile-nav__quick {
    list-style: none;
    margin: 0;
    padding: 0 0.65rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.raya-mobile-nav__quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.4rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    text-decoration: none;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.raya-mobile-nav__quick-link:hover {
    background: #fff;
    border-color: #bae6fd;
    box-shadow: 0 3px 10px rgba(24, 154, 216, 0.12);
    color: #0369a1;
}

.raya-mobile-nav__quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e0f2fe;
}

.raya-mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0 0.5rem;
}

.raya-mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.raya-mobile-nav__link i {
    width: 1.1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.raya-mobile-nav__link:hover {
    background: #f0f9ff;
    color: #0369a1;
}

.raya-mobile-nav__link:hover i {
    color: #0284c7;
}

.raya-mobile-nav__link--muted {
    font-weight: 500;
    font-size: 0.84rem;
}

.raya-mobile-nav__parent-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
    transition: background 0.15s ease;
}

.raya-mobile-nav__parent-toggle:hover {
    background: #f8fafc;
}

.raya-mobile-nav__parent-toggle:not(.collapsed) {
    background: #f0f9ff;
    color: #0369a1;
}

.raya-mobile-nav__parent-toggle:not(.collapsed) .raya-mobile-nav__caret {
    transform: rotate(180deg);
    color: #0284c7;
}

.raya-mobile-nav__caret {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.raya-mobile-nav__sub {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0.5rem 0.5rem 1.25rem;
}

.raya-mobile-nav__sublink {
    display: block;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.raya-mobile-nav__sublink:hover {
    background: #e0f2fe;
    color: #0369a1;
}

.raya-mobile-nav__list--compact .raya-mobile-nav__link {
    padding: 0.6rem 0.75rem;
    font-size: 0.84rem;
}

/* Site-wide mobile layout */
@media (max-width: 991.98px) {
    .container,
    .container-fluid.content,
    #raya .container.content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    #raya .content > .row {
        flex-direction: column;
    }

    #raya .choose_steps,
    #raya .choosed_info,
    #raya .raya-user-info {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    #raya .choosed_info {
        margin-top: 0.75rem !important;
        order: -1;
    }

    #raya .choosed_info > .covers,
    #raya .choosed_info .raya-selected-panel {
        margin-top: 0;
    }

    .profile > .row {
        flex-direction: column;
    }

    .profile .col-md-2,
    .profile .col-md-10 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .profile .raya-sidebar {
        position: static;
        margin-bottom: 1rem;
        padding: 0.85rem;
    }

    .profile .raya-sidebar__menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .profile .raya-sidebar__item {
        flex: 1 1 auto;
        min-width: calc(50% - 0.35rem);
    }

    .profile .raya-sidebar__link {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        font-size: 0.75rem !important;
        padding: 0.45rem 0.4rem !important;
    }

    .profile .raya-sidebar__sub {
        width: 100%;
    }

    .profile .col-md-10.bg-white {
        padding: 1rem !important;
    }

    .profile .alert .row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    #raya .bime-summary {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
    }

    #raya .bime-summary > p {
        white-space: normal;
    }

    .checkout-steps {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
    }

    .checkout-steps__list {
        min-width: max-content;
    }

    .table-responsive,
    .profile .table,
    .content-i .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .btn-group,
    .buttons.btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn,
    .buttons.btn-group .btn {
        width: 100%;
        border-radius: 10px !important;
    }

    .top-menu .navbar-brand img {
        max-height: 56px;
    }

    .only_mobile.slideshow img {
        max-height: 140px;
        object-fit: cover;
    }
}

@media (max-width: 575.98px) {
    .raya-mobile-nav__quick {
        grid-template-columns: 1fr;
    }

    .choose_bime {
        max-width: none;
        width: 100%;
    }

    .home-hero-tagline__title.only_desktop {
        display: block !important;
        font-size: 1.25rem !important;
    }

    .home-hero-tagline__eyebrow.only_desktop {
        display: block !important;
    }

    h1, h2, h3 {
        word-break: break-word;
    }

    .footer-main .col-md-4 {
        margin-bottom: 1.25rem;
    }

    .profile .raya-sidebar__item {
        min-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DataTables — site-wide modern styling
   ═══════════════════════════════════════════════════════════════ */

.dataTables_wrapper {
    --raya-dt-radius: 14px;
    --raya-dt-border: #e2e8f0;
    --raya-dt-header-bg: linear-gradient(180deg, #f0f9ff 0%, #e8f4fc 100%);
    --raya-dt-header-color: #0369a1;
    --raya-dt-hover: #f0f9ff;
    --raya-dt-stripe: #f8fafc;

    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem 1.15rem;
    background: #fff;
    border: 1px solid rgba(24, 154, 216, 0.12);
    border-radius: var(--raya-dt-radius);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.dataTables_wrapper::after {
    display: none;
}

/* Toolbar: length + search */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    float: none !important;
    margin: 0 0 0.85rem;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    color: #64748b;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_length select {
    min-width: 5.5rem;
    padding: 0.4rem 2rem 0.4rem 0.65rem;
    border: 1.5px solid var(--raya-dt-border);
    border-radius: 10px;
    background-color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--raya-blue);
    box-shadow: 0 0 0 3px rgba(24, 154, 216, 0.12);
    outline: none;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: min(280px, 100%);
    padding: 0.5rem 0.85rem 0.5rem 2.35rem;
    border: 1.5px solid var(--raya-dt-border) !important;
    border-radius: 11px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.106a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat left 0.75rem center;
    font-size: 0.88rem;
    color: #334155;
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--raya-blue) !important;
    box-shadow: 0 0 0 3px rgba(24, 154, 216, 0.12);
    outline: none;
}

.dataTables_wrapper .dataTables_filter input::placeholder {
    color: #94a3b8;
}

/* Export / extension buttons */
.dataTables_wrapper .dt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dt-buttons .dt-button,
.dataTables_wrapper .dt-buttons button.dt-button {
    padding: 0.4rem 0.85rem !important;
    border: 1px solid #dbe4ee !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.dataTables_wrapper .dt-buttons .dt-button:hover {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0369a1 !important;
}

/* Table */
.dataTables_wrapper .dataTables_scroll,
.dataTables_wrapper .table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: visible;
}

.dataTables_wrapper:has(.dropdown.show) .dataTables_scroll,
.dataTables_wrapper:has(.dropdown.show) .table-responsive {
    overflow: visible;
}

table.dataTable,
table.dataTable.table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid var(--raya-dt-border) !important;
    border-radius: 12px;
    overflow: visible;
    font-size: 0.875rem;
}

table.dataTable thead th,
table.dataTable thead td,
table.dataTable.table thead th {
    padding: 0.75rem 0.85rem !important;
    border: none !important;
    border-bottom: 2px solid #bae6fd !important;
    background: var(--raya-dt-header-bg) !important;
    color: var(--raya-dt-header-color) !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    padding-right: 1.75rem !important;
}

table.dataTable thead th.sorting:before,
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:before,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:before,
table.dataTable thead th.sorting_desc:after {
    right: 0.5rem;
    opacity: 0.35;
    font-size: 0.65rem;
}

table.dataTable thead th.sorting_asc:before,
table.dataTable thead th.sorting_desc:after {
    opacity: 0.85;
    color: var(--raya-blue);
}

table.dataTable tbody th,
table.dataTable tbody td,
table.dataTable.table tbody td,
table.dataTable.table tbody th {
    padding: 0.7rem 0.85rem !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    vertical-align: middle !important;
    text-align: center;
    color: #334155;
    line-height: 1.55;
}

table.dataTable tbody tr:last-child td {
    border-bottom: none !important;
}

table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd,
table.dataTable.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--raya-dt-stripe) !important;
}

table.dataTable.stripe tbody tr.odd > *,
table.dataTable.display tbody tr.odd > * {
    box-shadow: none !important;
}

table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover,
table.dataTable.table-hover tbody tr:hover {
    background-color: var(--raya-dt-hover) !important;
}

table.dataTable.hover tbody tr:hover > *,
table.dataTable.display tbody tr:hover > * {
    box-shadow: none !important;
}

table.dataTable tbody tr.selected,
table.dataTable tbody tr.selected > *,
.table tbody tr.selected {
    background: #e0f2fe !important;
    box-shadow: none !important;
    color: #0f172a !important;
}

table.dataTable.no-footer {
    border-bottom: 1px solid var(--raya-dt-border) !important;
}

table.dataTable tbody td.dataTables_empty {
    padding: 2rem 1rem !important;
    color: #94a3b8;
    font-weight: 600;
}

/* Footer filters (column select) */
table.dataTable tfoot th,
table.dataTable tfoot td {
    padding: 0.5rem !important;
    background: #f8fafc;
    border-top: 1px solid var(--raya-dt-border) !important;
}

table.dataTable tfoot select {
    width: 100%;
    max-width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--raya-dt-border);
    border-radius: 8px;
    font-size: 0.8rem;
    background: #fff;
}

/* Action dropdowns inside tables */
table.dataTable .dropdown-toggle {
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, #189ad8 0%, #0284c7 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(24, 154, 216, 0.25);
}

table.dataTable .dropdown-toggle:hover,
table.dataTable .dropdown-toggle:focus {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 4px 12px rgba(24, 154, 216, 0.3);
}

table.dataTable td .dropdown {
    position: relative;
}

table.dataTable .dropdown-menu {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    padding: 0.35rem;
    z-index: 1060;
}

table.dataTable .dropdown-menu.show {
    display: block;
}

table.dataTable .dropdown-item {
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.84rem;
    font-weight: 500;
}

table.dataTable .dropdown-item:hover {
    background: #f0f9ff;
    color: #0369a1;
}

table.dataTable .btn-outline-primary,
table.dataTable .btn-outline-success {
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 600;
}

table.dataTable a:not(.btn):not(.dropdown-item) {
    color: var(--raya-blue);
    font-weight: 600;
    text-decoration: none;
}

table.dataTable a:not(.btn):not(.dropdown-item):hover {
    text-decoration: underline;
}

/* Footer: info + pagination */
.dataTables_wrapper .dataTables_info {
    float: none !important;
    padding: 0.85rem 0 0.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

.dataTables_wrapper .dataTables_paginate {
    float: none !important;
    padding: 0.5rem 0 0;
    text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 2.25rem;
    padding: 0.4rem 0.7rem !important;
    margin: 0 0.15rem !important;
    border: 1px solid var(--raya-dt-border) !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #475569 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0369a1 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #189ad8 0%, #0284c7 100%) !important;
    border-color: #0284c7 !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(24, 154, 216, 0.3) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.45;
    background: #f8fafc !important;
    border-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

.dataTables_wrapper .dataTables_processing {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    color: #0369a1;
    font-weight: 600;
}

/* Profile / orders panel */
.orders-tables-wrapper .dataTables_wrapper,
.profile .col-md-10 .dataTables_wrapper,
.content-i .dataTables_wrapper {
    margin-top: 0.5rem;
}

.orders-filters {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.8rem 0.75rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.orders-filters__header {
    margin-bottom: 0.55rem;
}

.orders-filters__title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.orders-filters__title i {
    color: #0284c7;
    font-size: 0.8rem;
}

.orders-filters__hint {
    display: none;
}

.orders-filters__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    align-items: end;
}

.orders-filters__field {
    flex: 0 1 148px;
    min-width: 132px;
    max-width: 170px;
}

.orders-filters__field .form-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.2rem;
}

.orders-filters__field .form-select,
.orders-filters__field .form-control,
.orders-filters__field .vpd-input-group input {
    min-height: 2rem;
    height: 2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    border-color: #dbe3ee;
    font-size: 0.78rem;
}

.orders-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    flex: 0 0 auto;
    padding-bottom: 1px;
}

.orders-filters__actions .btn {
    min-height: 2rem;
    padding: 0.2rem 0.7rem;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
}

.orders-filters .vpd-wrapper,
.orders-filters .vpd-addon-input {
    width: 100%;
}

.orders-filters .vpd-input-group {
    min-height: 2rem;
}

.orders-filters .vpd-input-group .vpd-icon-btn {
    width: 1.85rem;
    min-width: 1.85rem;
    height: 2rem;
}

.orders-filters .vpd-wrapper .vpd-content {
    z-index: 30;
}

@media (max-width: 575.98px) {
    .orders-filters__field {
        flex: 1 1 calc(50% - 0.3rem);
        max-width: none;
        min-width: 0;
    }

    .orders-filters__actions {
        width: 100%;
    }
}

.orders-tables-wrapper .table-responsive {
    border: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.orders-tables-wrapper .dataTables_wrapper table.dataTable {
    min-width: 720px;
}

.orders-tables-wrapper .dataTables_wrapper .table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

.orders-tables-wrapper table.dataTable tbody td:last-child {
    position: relative;
    overflow: visible;
}

.raya-datatable-panel .table:not(.dataTable) {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
}

.raya-datatable-panel .table:not(.dataTable) thead th {
    background: linear-gradient(180deg, #f0f9ff 0%, #e8f4fc 100%);
    color: #0369a1;
    font-weight: 700;
    border-bottom: 2px solid #bae6fd;
}

/* Desktop toolbar layout */
@media (min-width: 768px) {
    .dataTables_wrapper {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.5rem 1rem;
    }

    .dataTables_wrapper .dt-buttons {
        grid-column: 1 / -1;
    }

    .dataTables_wrapper .dataTables_filter {
        grid-column: 1;
        justify-self: start;
        margin-bottom: 0;
    }

    .dataTables_wrapper .dataTables_length {
        grid-column: 2;
        justify-self: end;
        margin-bottom: 0;
    }

    .dataTables_wrapper table.dataTable,
    .dataTables_wrapper .dataTables_scroll {
        grid-column: 1 / -1;
    }

    .dataTables_wrapper .dataTables_info {
        grid-column: 1;
        justify-self: start;
        padding-top: 0.75rem;
    }

    .dataTables_wrapper .dataTables_paginate {
        grid-column: 2;
        justify-self: end;
        text-align: left;
        padding-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .dataTables_wrapper {
        padding: 0.75rem 0.65rem 1rem;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        width: 100%;
        text-align: center;
    }

    .dataTables_wrapper .dataTables_filter label,
    .dataTables_wrapper .dataTables_length label {
        justify-content: center;
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        min-width: 0;
    }

    table.dataTable thead th,
    table.dataTable tbody td {
        padding: 0.5rem 0.45rem !important;
        font-size: 0.8rem;
    }

    table.dataTable .dropdown-toggle span {
        display: none;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        min-width: 1.85rem;
        padding: 0.35rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Order invoice / factor pages (my_invoices detail)
   ═══════════════════════════════════════════════════════════════ */

body.raya-factor-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(160deg, #e8f4fc 0%, #f0f9ff 35%, #f8fafc 70%, #eef2f7 100%);
    font-family: IRANSansWeb, iransans, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.raya-factor {
    max-width: 1100px;
    padding: 1.25rem 0.75rem 2.5rem;
}

.raya-factor__card {
    background: #fff;
    border: 1px solid rgba(24, 154, 216, 0.14);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.raya-factor__header {
    padding: 1.35rem 1.35rem 1.15rem;
    background: linear-gradient(165deg, #f0f9ff 0%, #fff 55%);
    border-bottom: 1px solid #e0f2fe;
}

.raya-factor__logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.raya-factor__logo-raya {
    max-height: 64px;
    width: auto;
    object-fit: contain;
}

.raya-factor__logo-company {
    max-height: 56px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0.35rem;
    background: #fff;
}

.raya-factor__headline {
    text-align: center;
    margin-bottom: 1rem;
}

.raya-factor__title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 800;
    color: #0369a1;
    line-height: 1.45;
}

.raya-factor__date {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}

.raya-factor__date i {
    margin-left: 0.35rem;
    color: #94a3b8;
}

.raya-factor__date strong {
    color: #334155;
    font-weight: 700;
}

.raya-factor__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.raya-factor__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-width: 140px;
}

.raya-factor__badge--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.raya-factor__badge-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.02em;
}

.raya-factor__badge-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    direction: ltr;
    unicode-bidi: embed;
}

.raya-factor__badge--success .raya-factor__badge-value {
    color: #15803d;
}

.raya-factor__actions {
    display: flex;
    justify-content: center;
}

.raya-factor__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.15rem;
    border-radius: 11px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, #189ad8 0%, #0284c7 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(24, 154, 216, 0.28);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.raya-factor__back-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(24, 154, 216, 0.35);
    color: #fff !important;
}

.raya-factor__body {
    padding: 0.5rem 1.1rem 1.35rem;
}

.raya-factor__section {
    margin-bottom: 1.1rem;
    padding: 1rem 1rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 14px;
}

.raya-factor__section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #e0f2fe;
    font-size: 1rem;
    font-weight: 800;
    color: #0369a1;
}

.raya-factor__section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.85rem;
}

.raya-factor__table-wrap {
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.raya-factor__table {
    margin: 0 !important;
    font-size: 0.875rem;
}

.raya-factor__table thead th {
    background: linear-gradient(180deg, #f0f9ff 0%, #e8f4fc 100%) !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 0.7rem 0.65rem !important;
    border: none !important;
    border-bottom: 2px solid #bae6fd !important;
    white-space: nowrap;
}

.raya-factor__table tbody td {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 0.75rem 0.65rem !important;
    color: #334155 !important;
    border-color: #f1f5f9 !important;
    line-height: 1.55;
    word-break: break-word;
}

.raya-factor__table.table-striped tbody tr:nth-of-type(odd) {
    background: #fff;
}

.raya-factor__table.table-striped tbody tr:nth-of-type(even) {
    background: #fafbfc;
}

.raya-factor__payment {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.raya-factor__payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.raya-factor__payment-row:last-child {
    border-bottom: none;
}

.raya-factor__payment-row:nth-child(even) {
    background: #fafbfc;
}

.raya-factor__payment-row--total {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%) !important;
    border-top: 2px solid #bae6fd;
    padding: 0.85rem 1rem;
}

.raya-factor__payment-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #475569;
}

.raya-factor__payment-row--total .raya-factor__payment-label {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0369a1;
}

.raya-factor__payment-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    direction: ltr;
    unicode-bidi: embed;
}

.raya-factor__payment-row--total .raya-factor__payment-value {
    font-size: 1.05rem;
    color: #0284c7;
}

.raya-factor__payment-value--text {
    direction: rtl;
    unicode-bidi: normal;
    font-weight: 600;
    color: #334155;
}

.raya-factor__attachments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.raya-factor__attachment {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.raya-factor__attachment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 154, 216, 0.15);
}

.raya-factor__attachment img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

@media (max-width: 767.98px) {
    .raya-factor {
        padding: 0.75rem 0.5rem 1.5rem;
    }

    .raya-factor__header {
        padding: 1rem 0.85rem;
    }

    .raya-factor__logos {
        flex-direction: column;
        align-items: center;
    }

    .raya-factor__badge {
        width: 100%;
        min-width: 0;
    }

    .raya-factor__body {
        padding: 0.35rem 0.65rem 1rem;
    }

    .raya-factor__section {
        padding: 0.85rem 0.75rem;
    }

    .raya-factor__table thead {
        display: none;
    }

    .raya-factor__table tbody tr {
        display: block;
        margin-bottom: 0.65rem;
        padding: 0.5rem 0;
        border: 1px solid #e8edf3;
        border-radius: 10px;
        background: #fff !important;
    }

    .raya-factor__table tbody td {
        display: flex !important;
        align-items: flex-start;
        justify-content: space-between !important;
        gap: 0.75rem;
        text-align: right !important;
        padding: 0.55rem 0.75rem !important;
        border: none !important;
        border-bottom: 1px dashed #f1f5f9 !important;
    }

    .raya-factor__table tbody td:last-child {
        border-bottom: none !important;
    }

    .raya-factor__table tbody td::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 0.78rem;
        font-weight: 700;
        color: #64748b;
        max-width: 45%;
    }

    .raya-factor__payment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .raya-factor__payment-value {
        align-self: flex-end;
    }
}

/* Bootstrap 5: .badge has white text and no background.
   Old .badge-* color classes (Bootstrap 4) are missing, so labels
   like «اقساطی» were invisible (white on white). */
.badge.badge-primary,
.badge.badge-info,
.badge.bg-primary,
.badge.bg-info {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.badge.badge-success,
.badge.bg-success {
    background-color: #198754 !important;
    color: #fff !important;
}

.badge.badge-warning,
.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.badge-danger,
.badge.bg-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

#raya .tarh-group-card {
    background: #fff;
    border: 1px solid rgba(24, 154, 216, 0.12);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

#raya .tarh-group-head {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.15rem;
    background: #f8fcff;
    border-bottom: 1px solid rgba(24, 154, 216, 0.1);
}

#raya .tarh-group-head img {
    border-radius: 8px;
    object-fit: contain;
    max-height: 52px;
}

#raya .tarh-plan-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid rgba(24, 154, 216, 0.08);
}

#raya .tarh-plan-row:last-of-type {
    border-bottom: none;
}

#raya .tarh-plan-title {
    font-weight: 700;
    color: var(--raya-heading);
}

#raya .tarh-plan-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#raya .result .tarh-plan-prices {
    flex: 1;
    justify-content: center;
    padding: 0 0.5rem;
}

#raya .tarh-price-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 132px;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(24, 154, 216, 0.28);
    border-radius: 10px;
    background: #fff;
    color: var(--raya-blue);
    font-weight: 700;
    line-height: 1.4;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

#raya .tarh-price-btn small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--raya-text-muted);
}

#raya .tarh-price-btn:hover {
    background: #f0f9ff;
    box-shadow: 0 2px 10px rgba(24, 154, 216, 0.2);
    transform: translateY(-1px);
}

#raya .tarh-plan-row .result__detail {
    grid-column: 1 / -1;
    margin: 0;
}

@media (max-width: 767px) {
    #raya .tarh-plan-row {
        grid-template-columns: 1fr;
    }

    #raya .tarh-price-btn {
        flex: 1;
        min-width: 0;
    }
}

@media print {
    body.raya-factor-page {
        background: #fff;
    }

    .raya-factor__card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .noprint {
        display: none !important;
    }
}
